/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.SaveException
 *  com.l7tech.util.Functions$Binary
 */
package com.l7tech.server.folder;

import com.l7tech.objectmodel.SaveException;
import com.l7tech.server.folder.FolderAdminImpl;
import com.l7tech.util.Functions;

class a
implements Functions.Binary<SaveException, String, Throwable> {
    private static final String[] a;

    a(FolderAdminImpl folderAdminImpl) {
    }

    public SaveException call(String object, Throwable throwable) {
        String[] stringArray = a;
        object = stringArray[1] + FolderAdminImpl.b + stringArray[0];
        return new SaveException((String)object, throwable);
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "b#1tpXv8\t\u0003zn[v>\t\u0006tlQ|8\t\u0007p\"Qv?]\u0000q\"Yf>]\rpp\u0011\u001c\u0018A\u00005o^k%D\u0010x\"Y| M\u0000g\"[v<]\r5kL3";
        int n3 = "b#1tpXv8\t\u0003zn[v>\t\u0006tlQ|8\t\u0007p\"Qv?]\u0000q\"Yf>]\rpp\u0011\u001c\u0018A\u00005o^k%D\u0010x\"Y| M\u0000g\"[v<]\r5kL3".length();
        int n4 = 41;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = com.l7tech.server.folder.a.a(5, com.l7tech.server.folder.a.a(string.substring(n6, n6 + n4)));
            if ((n5 += n4) >= n3) {
                a = stringArray;
                return;
            }
            n4 = string.charAt(n5);
        }
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x16);
        }
        return cArray;
    }

    /*
     * Handled impossible loop by duplicating code
     * Enabled aggressive block sorting
     */
    private static String a(int n2, char[] cArray) {
        char[] cArray2;
        block11: {
            int n3;
            int n4;
            int n5;
            block10: {
                n5 = n2;
                cArray2 = cArray;
                n4 = cArray.length;
                n3 = 0;
                if (!true) break block10;
                n4 = n4;
                if (n4 <= n3) break block11;
            }
            do {
                n5 = n5;
                cArray2 = cArray2;
                int n6 = n3;
                cArray2[n6] = (char)(cArray2[n6] ^ (n5 ^ (switch (n3 % 7) {
                    case 0 -> 73;
                    case 1 -> 44;
                    case 2 -> 96;
                    case 3 -> 16;
                    case 4 -> 7;
                    case 5 -> 58;
                    default -> 22;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

