/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.policy.PolicyValidatorResult
 *  com.l7tech.policy.assertion.Assertion
 *  com.l7tech.policy.validator.PolicyValidationContext
 *  com.l7tech.util.ExceptionUtils
 */
package com.l7tech.server.service;

import com.l7tech.policy.PolicyValidatorResult;
import com.l7tech.policy.assertion.Assertion;
import com.l7tech.policy.validator.PolicyValidationContext;
import com.l7tech.server.service.ServiceAdminImpl;
import com.l7tech.util.ExceptionUtils;
import java.util.concurrent.Callable;
import java.util.logging.Level;

class p
implements Callable<PolicyValidatorResult> {
    final Assertion val$assertion;
    final PolicyValidationContext val$pvc;
    final ServiceAdminImpl this$0;
    private static final String a = p.a(68, p.a(">t*pCv,\u0018z*pDnx\u0007t(9Fne\u0002n4|\u001a/"));

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    p(ServiceAdminImpl serviceAdminImpl, Assertion assertion, PolicyValidationContext policyValidationContext) {
        this.this$0 = serviceAdminImpl;
        this.val$assertion = assertion;
        this.val$pvc = policyValidationContext;
    }

    @Override
    public PolicyValidatorResult call() throws Exception {
        try {
            return this.this$0.f.validate(this.val$assertion, this.val$pvc, this.this$0.b);
        }
        catch (Exception exception) {
            this.this$0.v.log(Level.WARNING, a + ExceptionUtils.getMessage((Throwable)exception), exception);
            throw new RuntimeException(exception);
        }
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x48);
        }
        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 -> 42;
                    case 1 -> 95;
                    case 2 -> 2;
                    case 3 -> 93;
                    case 4 -> 100;
                    case 5 -> 75;
                    default -> 72;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

