/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.objectmodel.PersistentEntity
 *  com.l7tech.util.CollectionUtils
 */
package com.l7tech.server.identity;

import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.PersistentEntity;
import com.l7tech.util.CollectionUtils;
import java.util.Set;

class e {
    private static final Set<String> a;
    private final Goid b;
    private final String c;
    private final Goid d;
    private final String e;
    private final int f;

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    private e(Goid goid, String string, Goid goid2, String string2) {
        if (string == null) throw new NullPointerException();
        try {
            if (string2 == null) {
                throw new NullPointerException();
            }
        }
        catch (NullPointerException nullPointerException) {
            throw com.l7tech.server.identity.e.a(nullPointerException);
        }
        this.b = goid;
        this.c = string;
        this.d = goid2;
        this.e = string2;
        this.f = this.b();
    }

    private boolean a() {
        boolean bl2;
        block5: {
            block4: {
                try {
                    try {
                        if (this.c.isEmpty() || a.contains(this.c)) break block4;
                    }
                    catch (NullPointerException nullPointerException) {
                        throw com.l7tech.server.identity.e.a(nullPointerException);
                    }
                    bl2 = true;
                    break block5;
                }
                catch (NullPointerException nullPointerException) {
                    throw com.l7tech.server.identity.e.a(nullPointerException);
                }
            }
            bl2 = false;
        }
        return bl2;
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public boolean equals(Object object) {
        e e10;
        block32: {
            block31: {
                block30: {
                    block29: {
                        block28: {
                            try {
                                if (this == object) {
                                    return true;
                                }
                            }
                            catch (NullPointerException nullPointerException) {
                                throw com.l7tech.server.identity.e.a(nullPointerException);
                            }
                            try {
                                try {
                                    if (object != null && this.getClass() == object.getClass()) break block28;
                                    return false;
                                }
                                catch (NullPointerException nullPointerException) {
                                    throw com.l7tech.server.identity.e.a(nullPointerException);
                                }
                            }
                            catch (NullPointerException nullPointerException) {
                                throw com.l7tech.server.identity.e.a(nullPointerException);
                            }
                        }
                        e10 = (e)object;
                        try {
                            try {
                                if (this.d == null) break block29;
                                if (this.d.equals((Object)e10.d)) break block30;
                                return false;
                            }
                            catch (NullPointerException nullPointerException) {
                                throw com.l7tech.server.identity.e.a(nullPointerException);
                            }
                        }
                        catch (NullPointerException nullPointerException) {
                            throw com.l7tech.server.identity.e.a(nullPointerException);
                        }
                    }
                    try {
                        if (e10.d == null) break block30;
                        return false;
                    }
                    catch (NullPointerException nullPointerException) {
                        throw com.l7tech.server.identity.e.a(nullPointerException);
                    }
                }
                try {
                    try {
                        if (this.b == null) break block31;
                        if (this.b.equals((Object)e10.b)) break block32;
                        return false;
                    }
                    catch (NullPointerException nullPointerException) {
                        throw com.l7tech.server.identity.e.a(nullPointerException);
                    }
                }
                catch (NullPointerException nullPointerException) {
                    throw com.l7tech.server.identity.e.a(nullPointerException);
                }
            }
            try {
                if (e10.b == null) break block32;
                return false;
            }
            catch (NullPointerException nullPointerException) {
                throw com.l7tech.server.identity.e.a(nullPointerException);
            }
        }
        try {
            if (!this.e.equals(e10.e)) {
                return false;
            }
        }
        catch (NullPointerException nullPointerException) {
            throw com.l7tech.server.identity.e.a(nullPointerException);
        }
        try {
            if (this.c.equals(e10.c)) return true;
            return false;
        }
        catch (NullPointerException nullPointerException) {
            throw com.l7tech.server.identity.e.a(nullPointerException);
        }
    }

    public int hashCode() {
        return this.f;
    }

    private int b() {
        int n2;
        int n3;
        int n4;
        try {
            n4 = this.b != null ? this.b.hashCode() : 0;
        }
        catch (NullPointerException nullPointerException) {
            throw com.l7tech.server.identity.e.a(nullPointerException);
        }
        int n5 = n4;
        n5 = 29 * n5 + this.c.hashCode();
        try {
            n3 = 29 * n5;
            n2 = this.d != null ? this.d.hashCode() : 0;
        }
        catch (NullPointerException nullPointerException) {
            throw com.l7tech.server.identity.e.a(nullPointerException);
        }
        n5 = n3 + n2;
        n5 = 29 * n5 + this.e.hashCode();
        return n5;
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String string = com.l7tech.server.identity.e.a(31, com.l7tech.server.identity.e.a("E="));
        a = CollectionUtils.set((Object[])new String[]{string, Goid.toString((Goid)PersistentEntity.DEFAULT_GOID)});
    }

    private static NullPointerException a(NullPointerException nullPointerException) {
        return nullPointerException;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 9);
        }
        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 -> 119;
                    case 1 -> 19;
                    case 2 -> 80;
                    case 3 -> 86;
                    case 4 -> 116;
                    case 5 -> 26;
                    default -> 9;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

