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

final class ba {
    private final String a;
    private final String b;
    private static final String[] c;

    private ba(String string, String string2) {
        if (string == null) {
            String[] stringArray = c;
            throw new IllegalArgumentException(stringArray[0]);
        }
        try {
            if (string2 == null) {
                throw new IllegalArgumentException(c[1]);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw ba.a(illegalArgumentException);
        }
        this.a = string;
        this.b = string2;
    }

    public boolean equals(Object object) {
        block13: {
            try {
                if (this == object) {
                    return true;
                }
            }
            catch (IllegalArgumentException illegalArgumentException) {
                throw ba.a(illegalArgumentException);
            }
            try {
                try {
                    if (object != null && this.getClass() == object.getClass()) break block13;
                }
                catch (IllegalArgumentException illegalArgumentException) {
                    throw ba.a(illegalArgumentException);
                }
                return false;
            }
            catch (IllegalArgumentException illegalArgumentException) {
                throw ba.a(illegalArgumentException);
            }
        }
        ba ba2 = (ba)object;
        try {
            if (!this.b.equals(ba2.b)) {
                return false;
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw ba.a(illegalArgumentException);
        }
        try {
            if (!this.a.equals(ba2.a)) {
                return false;
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw ba.a(illegalArgumentException);
        }
        return true;
    }

    public int hashCode() {
        int n2 = this.a.hashCode();
        n2 = 31 * n2 + this.b.hashCode();
        return n2;
    }

    private static IllegalArgumentException a(IllegalArgumentException illegalArgumentException) {
        return illegalArgumentException;
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "A\u0001d\u000eQ\rI\u0015\nq\u001a\u0004\rHP\u001c\u0016\\\u001cq\u0005\u0005\r\\\\\u001dfK\u0018\u0017\u001aG\u001de\u001e\u0018\u0016_Q";
        int n3 = "A\u0001d\u000eQ\rI\u0015\nq\u001a\u0004\rHP\u001c\u0016\\\u001cq\u0005\u0005\r\\\\\u001dfK\u0018\u0017\u001aG\u001de\u001e\u0018\u0016_Q".length();
        int n4 = 16;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = ba.a(117, ba.a(string.substring(n6, n6 + n4)));
            if ((n5 += n4) >= n3) {
                c = 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] ^ 0x4F);
        }
        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 -> 64;
                    case 1 -> 13;
                    case 2 -> 97;
                    case 3 -> 30;
                    case 4 -> 4;
                    case 5 -> 17;
                    default -> 79;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

