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

import com.l7tech.message.SoapKnob;
import com.l7tech.server.message.PolicyEnforcementContext;
import com.l7tech.server.policy.variable.ServerVariables;
import com.l7tech.server.policy.variable.bg;
import com.l7tech.util.ExceptionUtils;
import java.util.logging.Level;
import javax.xml.namespace.QName;

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

    private eg() {
    }

    /*
     * Loose catch block
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    @Override
    public Object get(String string, PolicyEnforcementContext policyEnforcementContext) {
        SoapKnob soapKnob = (SoapKnob)policyEnforcementContext.getRequest().getKnob(SoapKnob.class);
        try {
            if (soapKnob == null) {
                ServerVariables.a.fine(a[1]);
                return null;
            }
        }
        catch (Exception exception) {
            throw eg.a(exception);
        }
        try {
            QName[] qNameArray;
            block9: {
                qNameArray = soapKnob.getPayloadNames();
                if (qNameArray == null) return null;
                try {
                    if (qNameArray.length >= 1) break block9;
                    return null;
                    catch (Exception exception) {
                        throw eg.a(exception);
                    }
                }
                catch (Exception exception) {
                    throw eg.a(exception);
                }
            }
            String string2 = qNameArray[0].getNamespaceURI();
            return string2;
        }
        catch (Exception exception) {
            ServerVariables.a.log(Level.WARNING, a[0], ExceptionUtils.getDebugException((Throwable)exception));
            return null;
        }
    }

    private static Exception a(Exception exception) {
        return exception;
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "J'\u0012>\u0013c\u0001}h\u00007\u0003-uF\t7r\u0019lKl;\u00173\u0014h-J)\tu\u0003-Al<G\u00018Lv)&\u0006?\u0012~Vh+\u0002r\u0011bT)&\b<Z^iH\u0018G?\u0012~Uh/\u0002";
        int n3 = "J'\u0012>\u0013c\u0001}h\u00007\u0003-uF\t7r\u0019lKl;\u00173\u0014h-J)\tu\u0003-Al<G\u00018Lv)&\u0006?\u0012~Vh+\u0002r\u0011bT)&\b<Z^iH\u0018G?\u0012~Uh/\u0002".length();
        int n4 = 27;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = eg.a(27, eg.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] ^ 0x3D);
        }
        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 -> 18;
                    case 1 -> 83;
                    case 2 -> 124;
                    case 3 -> 73;
                    case 4 -> 108;
                    case 5 -> 22;
                    default -> 61;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

