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

import com.l7tech.server.policy.assertion.ServerAssertion;
import com.l7tech.server.policy.variable.DebugTraceVariableContext;
import com.l7tech.server.policy.variable.ExpandVariables;
import com.l7tech.util.Functions;

class a0
implements Functions.Unary<ExpandVariables.Selector.Selection, DebugTraceVariableContext> {
    private static final String a = a0.a(100, a0.a(",4m/4c\u000f29"));

    a0() {
    }

    public ExpandVariables.Selector.Selection call(DebugTraceVariableContext debugTraceVariableContext) {
        ServerAssertion serverAssertion = debugTraceVariableContext.getContext().getTracedAssertion();
        Object var3_3 = serverAssertion == null ? null : serverAssertion.getAssertion();
        return new ExpandVariables.Selector.Selection(var3_3 == null ? null : var3_3.meta().get(a));
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0xA);
        }
        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 -> 59;
                    case 1 -> 56;
                    case 2 -> 102;
                    case 3 -> 57;
                    case 4 -> 36;
                    case 5 -> 73;
                    default -> 10;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

