/*
 * Decompiled with CFR 0.152.
 */
package com.l7tech.server.policy.assertion.xml;

import com.l7tech.server.policy.assertion.xml.ServerXslTransformation;
import org.xml.sax.Attributes;
import org.xml.sax.helpers.DefaultHandler;

class o
extends DefaultHandler {
    final String[] val$found;
    private static final String[] a;

    o(ServerXslTransformation serverXslTransformation, String[] stringArray) {
        this.val$found = stringArray;
    }

    @Override
    public void startElement(String string, String string2, String string3, Attributes attributes) {
        int n2 = attributes.getLength();
        for (int i2 = 0; i2 < n2; ++i2) {
            String string4 = attributes.getQName(i2);
            String string5 = attributes.getValue(i2);
            String[] stringArray = a;
            if (stringArray[0].equals(string4)) {
                this.val$found[0] = string5;
            } else {
                if (!a[1].equals(string4)) continue;
                this.val$found[1] = string5;
            }
            if (this.val$found[0] == null || this.val$found[1] == null) continue;
            return;
        }
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "&D\u00130\u0004:O\u00063";
        int n3 = "&D\u00130\u0004:O\u00063".length();
        int n4 = 4;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = o.a(110, o.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] ^ 0xD);
        }
        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 -> 32;
                    case 1 -> 88;
                    case 2 -> 24;
                    case 3 -> 56;
                    case 4 -> 73;
                    case 5 -> 70;
                    default -> 13;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

