/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.policy.variable.BuiltinVariables
 */
package com.l7tech.server.policy.variable;

import com.l7tech.policy.variable.BuiltinVariables;
import com.l7tech.server.message.PolicyEnforcementContext;
import com.l7tech.server.policy.variable.ServerVariables;
import com.l7tech.server.policy.variable.bg;

class de
extends bg {
    private static final String[] a;

    de() {
    }

    @Override
    public Object get(String string, PolicyEnforcementContext policyEnforcementContext) {
        String string2 = string.substring(BuiltinVariables.SSGNODE_ENV_VAR_DOT_LENGTH);
        if (ServerVariables.o.matcher(string2).find()) {
            return System.getenv(string2);
        }
        String[] stringArray = a;
        ServerVariables.a.warning(stringArray[1] + string2 + stringArray[0] + ServerVariables.n);
        return null;
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "3{(UiBdg,(J%C|vhg\u0006*Cf=`~R,Oc=\u007f,T?Iy=|&J Or=z(T Mi\u007figC'ZJ\u007f`&Q\u0005Exg^,A,T6,Rx=C$\\\u007f3x&\u0006(Ohv\u007f:\u0006,B}z~&H$Ieg,?G;Ejq`,\u0006'Mfv,";
        int n3 = "3{(UiBdg,(J%C|vhg\u0006*Cf=`~R,Oc=\u007f,T?Iy=|&J Or=z(T Mi\u007figC'ZJ\u007f`&Q\u0005Exg^,A,T6,Rx=C$\\\u007f3x&\u0006(Ohv\u007f:\u0006,B}z~&H$Ieg,?G;Ejq`,\u0006'Mfv,".length();
        int n4 = 70;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = de.a(65, de.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] ^ 0x4A);
        }
        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 -> 82;
                    case 1 -> 77;
                    case 2 -> 8;
                    case 3 -> 103;
                    case 4 -> 8;
                    case 5 -> 109;
                    default -> 74;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

