/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.policy.Policy
 *  com.l7tech.policy.assertion.Include
 */
package com.l7tech.server.policy;

import com.l7tech.objectmodel.Goid;
import com.l7tech.policy.Policy;
import com.l7tech.policy.assertion.Include;
import com.l7tech.server.policy.PolicyCacheImpl;
import java.text.MessageFormat;
import java.util.function.Supplier;

class k
implements Supplier<String> {
    final Goid val$thisPolicyId;
    final Policy val$thisPolicy;
    final String val$includedGuid;
    final Include val$include;
    private static final String a = k.a(94, k.a("s\t}i\u0012FL\u0000\u001d!}Q\u0017\u0017\u0012\u001b8 \u0018Q\u000fO\u0013ue\u0002\u001f<L\nxc\b\u001fOXTl YD_^O"));

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    k(PolicyCacheImpl policyCacheImpl, Goid goid, Policy policy, String string, Include include) {
        this.val$thisPolicyId = goid;
        this.val$thisPolicy = policy;
        this.val$includedGuid = string;
        this.val$include = include;
    }

    @Override
    public String get() {
        return MessageFormat.format(a, this.val$thisPolicyId, this.val$thisPolicy.getName(), this.val$includedGuid, this.val$include.getPolicyName());
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x32);
        }
        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 -> 125;
                    case 1 -> 56;
                    case 2 -> 79;
                    case 3 -> 94;
                    case 4 -> 47;
                    case 5 -> 97;
                    default -> 50;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

