/*
 * Decompiled with CFR 0.152.
 */
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;

/*
 * Duplicate member names - consider using --renamedupmembers true
 */
public final class jt
implements jf,
jz,
ee,
fh,
nf,
lc,
jq,
Runnable {
    private volatile hl a;
    private volatile boolean g;
    private static final long[] c;
    private final bu a;
    private final ej[] a;
    private final ij[][][] b;
    private final ji[] b;
    private final dk b;
    private final ck d;
    private final Object e;
    private final ma e;
    private final lh e;
    private final jt[] f;
    public final ar b;
    private static Object a;
    private Hashtable a;
    private Hashtable b;
    private long b;
    private int c;
    private long c;
    private Long d;
    private int d;
    private ny e;
    private hd f;
    public iv a;
    public jt a;
    public int b;
    public jt b;
    public cw b;
    public fb c;
    public dm c;
    public boolean e;

    private static ke a(ke ke2) {
        return new ke(4, ke2);
    }

    public boolean a(DataInput object) {
        lk lk2 = new lk(kn.b);
        lk2.a((InputStream)object, object.readInt());
        switch (lk2.d(1)) {
            case 0: {
                lk2 = lk2.f(2);
                if (lk2.h(3)) {
                    kw.a(lk2.g(3));
                }
                if ((lk2 = lk2.e(2, 0)).d(1) == 0) {
                    lk2 = lk2.f(2);
                    lk lk3 = lk2.f(1);
                    int n = lk3.d(1) / 10;
                    int n2 = lk3.d(2) / 10;
                    iv iv2 = new iv(n, n2);
                    n = lk2.d(3);
                    n2 = lk2.d(4);
                    object = new jt(0, iv2, n, n2);
                } else {
                    object = jt.a();
                }
                this.f[0] = object;
                break;
            }
            default: {
                this.f[0] = jt.a();
            }
        }
        if (this.e != null) {
            this.e.a(this.f);
        }
        return true;
    }

    public void a(DataOutput dataOutput) {
        lk lk2 = new lk(kn.a);
        lk2.h(1, 0);
        lk lk3 = new lk(ky.u);
        lk2.b(2, lk3);
        lk lk4 = new lk(ky.t);
        lk3.a(4, lk4);
        lk lk5 = new lk(ky.l);
        String string = kw.a();
        if (!ed.b(string)) {
            lk5.b(3, string);
        }
        if (this.a != null) {
            lk5.b(6, this.a[0].f());
            lk4.b(1, this.a[0].g());
        }
        lk3.b(1, lk5);
        dataOutput.writeInt(lk2.b());
        lk2.a((OutputStream)((Object)dataOutput));
    }

    public void a(Vector vector, Vector vector2) {
        if (vector.size() > 0 || vector2.size() > 0) {
            String string;
            long l;
            int n;
            Vector<ar> vector3 = new Vector<ar>();
            ek ek2 = new ek();
            Vector<String> vector4 = new Vector<String>();
            int n2 = vector.size();
            for (n = 0; n < n2; ++n) {
                lk lk2 = (lk)vector.elementAt(n);
                l = lk2.e(4);
                jt jt2 = this.a.a(l);
                if (jt2 == null) {
                    l = lk2.e(4);
                    string = lk2.g(5);
                    String string2 = lk2.g(6);
                    jt2 = new jt(false, new ar(null, string, 0));
                    ar.f(jt2.b.a, 110);
                    jt2.c(l);
                    jt2.c(string2);
                    vector3.addElement(jt2.b);
                }
                jt2.a(0);
                ek2.a(jt2.h());
                vector4.addElement(jt2.m());
            }
            l = -1;
            n2 = vector2.size();
            for (n = 0; n < n2; ++n) {
                string = (String)vector2.elementAt(n);
                if (vector4.contains(string) || this.a.a(string) != null) continue;
                while (ek2.b(--l) || this.a.a(l) != null) {
                }
                jt jt3 = new jt(false, new ar(null, string, 0));
                ar.f(jt3.b.a, 110);
                jt3.c(l);
                jt3.c(string);
                jt3.a(0);
                vector3.addElement(jt3.b);
            }
            ar[] arArray = new ar[this.a.z.a() + vector3.size()];
            n2 = this.a.z.a();
            for (n = 0; n < n2; ++n) {
                arArray[n] = (ar)this.a.z.c(n);
            }
            n2 = vector3.size();
            for (n = 0; n < n2; ++n) {
                arArray[n + this.a.z.a()] = (ar)vector3.elementAt(n);
            }
            cw cw2 = new cw(this.a.x.d(), this.a.x.c(), this.a.x.m());
            n = this.a.x.k();
            n2 = this.a.x.l();
            this.a.a(new ps(arArray, cw2, n, n2), false);
        }
    }

    public boolean a(jb jb2) {
        int n;
        int n2;
        eh eh2 = null;
        Vector<eh> vector = null;
        for (n2 = 0; n2 <= this.d.d; ++n2) {
            int n3;
            int n4;
            if (this.b[n2] == null) continue;
            n = 0;
            block1: for (n4 = 0; n4 < this.d.d(n2); ++n4) {
                for (n3 = 0; n3 < this.d.e(n2); ++n3) {
                    if (this.b[n2][n4][n3].d != 1) {
                        continue;
                    }
                    n = 1;
                    continue block1;
                }
            }
            if (n == 0) continue;
            if (vector == null) {
                vector = new Vector<eh>();
            }
            n3 = 0;
            eh eh3 = new eh(jb2, this.d.b);
            eh3.a = false;
            eh3.a(n2);
            for (n4 = 0; n4 < this.d.d(n2); ++n4) {
                for (n = 0; n < this.d.e(n2); ++n) {
                    ij ij2 = this.b[n2][n4][n];
                    if (ij2.d != 1) continue;
                    ++n3;
                    ij2.c();
                    eh3.a(n4, n);
                }
            }
            if (n3 == 0) continue;
            eh2 = eh3;
            vector.addElement(eh3);
        }
        if (eh2 != null) {
            eh2.a = true;
        }
        if (vector != null && (n = vector.size()) != 0) {
            for (n2 = 0; n2 < n; ++n2) {
                ((eh)vector.elementAt(n2)).j();
            }
            return true;
        }
        return false;
    }

    /*
     * Unable to fully structure code
     * Could not resolve type clashes
     */
    public boolean a(dx var1_1, boolean var2_2) {
        var5_3 = null;
        var12_4 = var1_1.e;
        if (this.e && var12_4.c.b >= 9 && var12_4.c.b <= 19) {
            var5_3 = this.b.a(jt.a(var1_1.e), (boolean)var2_2);
        }
        var2_2 = 0;
        if (this.e && (var13_5 = this.b.a(jt.a(var1_1.e), false)) != null && var13_5.a()) {
            if (!var13_5.c()) {
                var2_2 = (int)var13_5.b();
            }
            var13_5.b = System.currentTimeMillis();
        }
        var3_6 = this.b != null ? this.b.c() : 0;
        var15_7 = var2_2 * 29 + var3_6;
        if (!false && !var1_1.d()) lbl-1000:
        // 2 sources

        {
            return false;
        }
        ** while (var1_1.a || var1_1.g == var15_7)
lbl16:
        // 1 sources

        if ((var5_3 != null || this.b != null) && var1_1.g == 0) {
            if (var5_3 != null && !var5_3.a()) {
                var5_3 = null;
            }
            var16_8 = new ii();
            if (var5_3 != null) {
                var10_9 = new ny(false, false, false);
                var19_10 = this.a;
                var19_10.b;
                var5_3.b = System.currentTimeMillis();
                var17_11 = var5_3.c;
                var12_4 = var5_3.b;
                var4_12 = var12_4.c;
                var9_13 = var5_3.e;
                var2_2 = var4_12.b <= 13 ? (var4_12.b <= 11 ? (var4_12.b > 9 ? 6 : 5) : 8) : 9;
                var6_14 = var10_9.b();
                var14_15 = var2_2 << 8;
                for (var3_6 = 0; var3_6 < var17_11.length; ++var3_6) {
                    var11_18 = var17_11[var3_6];
                    jt.a(var6_14, var11_18[0], var4_12, false, (boolean)var9_13);
                    for (var7_16 = 1; var7_16 < var11_18.length; ++var7_16) {
                        var8_17 = var11_18[var7_16];
                        var2_2 = var8_17.a() != false ? 0 : 1;
                        jt.a(var6_14, var8_17, var4_12, (boolean)var2_2, (boolean)var9_13);
                    }
                }
                var10_9.a(var6_14, -2130706433, (int)var14_15);
                var4_12 = var12_4.c;
                var14_15 = var5_3.e;
                if (var4_12.b <= 13) {
                    if (var4_12.b <= 11) {
                        if (var4_12.b <= 9) {
                            // empty if block
                        }
                        var2_2 = 2;
                    } else {
                        var2_2 = 3;
                    }
                } else {
                    var2_2 = 4;
                }
                var20_19 = var2_2 << 8;
                for (var9_13 = 0; var9_13 < var17_11.length; ++var9_13) {
                    var11_18 = var17_11[var9_13];
                    v0 = var11_18[0];
                    var6_14 = var19_10.a(var10_9, v0, var4_12, var14_15);
                    var3_6 = jt.a(v0);
                    for (var2_2 = 1; var2_2 < var11_18.length; ++var2_2) {
                        var8_17 = var11_18[var2_2];
                        var7_16 = var8_17.a() == false ? 1 : 0;
                        jt.a(var6_14, var8_17, var4_12, (boolean)var7_16, var14_15);
                        if (var8_17.a() || (var7_16 = jt.a(var8_17)) == var3_6) continue;
                        jt.a(var10_9, var6_14, var3_6, var20_19);
                        var6_14 = var19_10.a(var10_9, var8_17, var4_12, var14_15);
                        var3_6 = var7_16;
                    }
                    jt.a(var10_9, var6_14, var3_6, var20_19);
                }
                var16_8.a(var10_9.a, -1);
            }
            if (this.b != null && (var6_14 = ny.a(this.b, var1_1.e)) != null) {
                var16_8.a(var6_14, -1);
            }
            if (ny.a(var16_8)) {
                if (this.e == null) {
                    this.e = new ny(128, 128);
                    this.e.v;
                }
                var18_20 = this.e.a(var1_1.g(), var16_8);
            } else {
                var18_20 = null;
            }
            if (var18_20 != null) {
                var1_1.a(var18_20, var15_7);
lbl84:
                // 2 sources

                return true;
            }
            var1_1.a(var1_1.g(), var15_7);
            return true;
        }
        ** while (var1_1.g == 0 || var1_1.g == var15_7)
lbl89:
        // 1 sources

        var1_1.f();
        var1_1.g();
        return true;
    }

    /*
     * Enabled aggressive block sorting
     */
    public void a(fb[] fbArray) {
        int n = fbArray != null ? fbArray.length : 0;
        int n2 = this.c == null ? 0 : 1;
        if ((n2 = n + n2) == 0) {
            this.b = null;
            return;
        }
        if (this.c != null) {
            fb[] fbArray2 = new fb[n2];
            if (fbArray != null) {
                System.arraycopy(fbArray, 0, fbArray2, 0, fbArray.length);
            }
            fbArray2[n2 - 1] = this.c;
            this.b = new cw(fbArray2);
            return;
        } else {
            if (fbArray == null) return;
            this.b = new cw(fbArray);
            return;
        }
    }

    public void a(byte[] byArray) {
        Long l = this.a.x().h();
        byte[] byArray2 = null;
        dk dk2 = (dk)bu.a(this.a).get(l);
        try {
            le le2 = lh.k().g().a(byArray, 96);
            byArray = fo.a(le2);
            le le3 = le2;
            byArray2 = byArray;
            int n = this.a.u.c().b('\ued49');
            le3 = le3.a(n, n);
            int n2 = this.a.u.d().b('\ued49');
            le le4 = le3.a(n2, n2);
            int n3 = this.a.u.e().b('\ued49');
            le le5 = le4.a(n3, n3);
            dk dk3 = new dk(le3, le4, le5, this.a.x().h());
            bu.a(this.a).put(l, dk3);
        }
        catch (OutOfMemoryError outOfMemoryError) {
            me.a("FriendsLayer", outOfMemoryError);
            byArray = byArray2;
        }
        catch (IOException iOException) {
            me.b("FriendsLayer", iOException);
            byArray = byArray2;
        }
        if (byArray != null) {
            ck.e().a(new am(null, null, null, null, byArray, bu.c(this.a), new jt(this, l, dk2)));
        }
    }

    public void d(String string) {
        jt jt2 = this.a.x();
        String string2 = jt2.r();
        if (ed.b(string2)) {
            string2 = jt2.b.f();
        }
        ck.e().a(new am(null, string, null, string2, null, bu.c(this.a), new ko(this, jt2)));
        bu.d((bu)this.a).b.z();
    }

    public boolean a(jt jt2) {
        if (this.a != null) {
            iv iv2 = jt2.c == null ? null : jt2.c.d();
            iv iv3 = jt2.b.c != null ? jt2.b.c.d() : null;
            jt2.c = this.a;
            jt2.b.a(this.a);
            jt2.b(this.b);
            jt2.a(this.c);
            if (iv2 == null || iv3 == null || this.a.a != iv2.a || this.a.a != iv3.a || this.a.b != iv2.b || this.a.b != iv3.b) {
                return true;
            }
        }
        return false;
    }

    public boolean a(char c, ht ht2, int n, int n2) {
        int n3 = ht2.e();
        int n4 = 'e' != c ? ('s' != c ? ('t' == c ? 16762880 : -1) : 196380) : 0xFF1E1E;
        if (this.a(c)) {
            n += 5;
            n2 += 5;
            if (c == '/') {
                ht2.a(10429978);
                ht2.c(n - 2, n2 - 2, 5, 5);
                ht2.a(0);
                ht2.c(n - 2, n2 - 2 + 1, 5, 3);
                ht2.c(n - 2 + 1, n2 - 2, 3, 5);
                return true;
            }
            ht2.a(0);
            ps.b(ht2, n, n2, 5);
            ht2.a(n4);
            ps.b(ht2, n, n2, 3);
            ht2.a(n3);
            return true;
        }
        return false;
    }

    public void d() {
        this.d = 0;
        for (int i = 0; i <= this.d.d; ++i) {
            if (this.b[i] == null) continue;
            for (int k = 0; k < this.d.d(i); ++k) {
                for (int i2 = 0; i2 < this.d.e(i); ++i2) {
                    ij ij2 = this.b[i][k][i2];
                    if (i == 0) {
                        ij2.d();
                        if (ij2.d != 3) continue;
                        ++this.d;
                        continue;
                    }
                    ij2.e();
                }
            }
        }
    }

    public void c() {
        for (int i = 1; i <= this.d.d; ++i) {
            if (this.b[i] == null) continue;
            for (int k = 0; k < this.d.d(i); ++k) {
                for (int i2 = 0; i2 < this.d.e(i); ++i2) {
                    ij ij2 = this.b[i][k][i2];
                    if (ij2.e >= this.c) continue;
                    ij2.d();
                }
            }
        }
    }

    public void b() {
        for (int i = 0; i <= this.d.d; ++i) {
            if (this.b[i] == null) continue;
            for (int k = 0; k < this.d.d(i); ++k) {
                for (int i2 = 0; i2 < this.d.e(i); ++i2) {
                    this.b[i][k][i2].b();
                }
            }
        }
    }

    private ij a(int n, int n2, int n3) {
        if (this.b[n] == null) {
            int n4 = this.d.d(n);
            int n5 = this.d.e(n);
            this.b[n] = new ij[n4][];
            for (int i = 0; i < n4; ++i) {
                this.b[n][i] = new ij[n5];
                for (int k = 0; k < n5; ++k) {
                    this.b[n][i][k] = new ij();
                }
            }
        }
        return this.b[n][n2][n3];
    }

    public le b(int n, int n2, int n3, boolean bl2) {
        le le2 = this.a(n, n2, n3).a(this.c);
        if (le2 == null && bl2 && n > 0) {
            ij ij2 = this.a(n, n2, n3);
            le2 = ij2.c;
            if (le2 == null) {
                le2 = this.b(0, n2 >> n, n3 >> n, false);
                if (le2 != null) {
                    int n4 = 64 >> n;
                    int n5 = (1 << n) - 1;
                    ij2.c = le2.a((n5 & n2) * n4, (n5 & n3) * n4, n4, n4, 64, 64);
                    return ij2.c;
                }
                return null;
            }
        }
        return le2;
    }

    public synchronized mg a(ke ke2, boolean bl2) {
        block6: {
            mg mg2;
            block9: {
                mg mg3;
                block8: {
                    block7: {
                        if (ke2.c.b > 19) break block6;
                        mg3 = (mg)this.a.get(ke2);
                        mg2 = (mg)this.b.get(ke2);
                        if (mg3 == null) break block7;
                        long l = System.currentTimeMillis() - mg3.b();
                        if (bl2 && mg2 == null && l > this.c / (long)2 && (System.currentTimeMillis() > this.b || this.a != null)) {
                            this.a(ke2, mg3);
                            return mg3;
                        }
                        break block8;
                    }
                    if (mg2 != null) break block9;
                    mg3 = new mg(ke2);
                    if (bl2) {
                        this.a(ke2, mg3);
                    }
                }
                return mg3;
            }
            return mg2;
        }
        return null;
    }

    private synchronized void d(long l) {
        Enumeration enumeration = this.a.keys();
        while (enumeration.hasMoreElements()) {
            ke ke2 = (ke)enumeration.nextElement();
            mg mg2 = (mg)this.a.get(ke2);
            if (System.currentTimeMillis() - mg2.b <= l) continue;
            this.a.remove(ke2);
        }
    }

    public void a(boolean bl2) {
        if (this.f != null) {
            this.f.b();
        }
        if (this.g && !bl2) {
            long l;
            this.f = new hd(this);
            Object object = a;
            synchronized (object) {
                l = c[0];
            }
            this.f.a(l);
        }
    }

    /*
     * Exception decompiling
     */
    public void run() {
        /*
         * This method has failed to decompile.  When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.
         * 
         * org.benf.cfr.reader.util.ConfusedCFRException: Back jump on a try block [egrp 0[TRYBLOCK] [1, 0 : 24->53)] java.lang.OutOfMemoryError
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op02WithProcessedDataAndRefs.insertExceptionBlocks(Op02WithProcessedDataAndRefs.java:2283)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:415)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisOrWrapFail(CodeAnalyser.java:278)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysis(CodeAnalyser.java:201)
         *     at org.benf.cfr.reader.entities.attributes.AttributeCode.analyse(AttributeCode.java:94)
         *     at org.benf.cfr.reader.entities.Method.analyse(Method.java:531)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:1055)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseTop(ClassFile.java:942)
         *     at org.benf.cfr.reader.Driver.doJarVersionTypes(Driver.java:257)
         *     at org.benf.cfr.reader.Driver.doJar(Driver.java:139)
         *     at org.benf.cfr.reader.CfrDriverImpl.analyse(CfrDriverImpl.java:76)
         *     at org.benf.cfr.reader.Main.main(Main.java:54)
         */
        throw new IllegalStateException("Decompilation failed");
    }

    public synchronized void s() {
        this.e = true;
        Object object = this.e;
        synchronized (object) {
            this.e.notifyAll();
            return;
        }
    }

    public void l() {
        jt jt2 = this.a.x();
        if (jt2 != null) {
            if (this.a(jt2)) {
                bu.a(this.a, true);
            }
            if (this.a.z != null && (this.a.z.i() == 1 || this.a.z.i() == 0) && this.a.z.w() == 0) {
                if (bu.j(this.a)) {
                    bu.b(this.a, true);
                }
                this.a.d();
            }
        }
    }

    public void a(Vector vector) {
        for (int i = 0; i < vector.size(); ++i) {
            jt jt2 = (jt)vector.elementAt(i);
            bu.e(this.a).removeElement(jt2);
            jt2.a(-1);
            jt2.b.b = 0;
        }
        bu.f(this.a);
        this.a.z();
    }

    public void i() {
        ek ek2 = new ek();
        ek2.a(this.b.h());
        ek ek3 = ek2;
        ck.e().a(new bq(null, null, null, null, ek3, null, null, null, bu.c(this.a), null));
        this.b.a(-1);
        this.b.b.b = 0;
        bu.a(this.a, true);
        bu.f(this.a);
        this.a.z();
    }

    public void c(int n) {
        this.b.a.w.a(lh.d(153), 0);
        if (bu.a(this.b.a).containsKey(this.d)) {
            bu.a(this.b.a).remove(this.d);
            if (this.b != null) {
                bu.a(this.b.a).put(this.d, this.b);
            }
        }
    }

    public void a(int n) {
        if (this.b.a != null && this.b.a.h(110)) {
            this.b.a.f(110).h(128, n);
        }
    }

    public void a(String string) {
        if (this.b.a != null && this.b.a.h(110)) {
            this.b.a.f(110).b(113, string);
        }
    }

    public boolean g() {
        lk lk2;
        return !this.e && (lk2 = ar.b(this.b.a, 110)).h(133) && lk2.b(133);
    }

    public boolean f() {
        lk lk2;
        return !this.e && (lk2 = ar.b(this.b.a, 110)).h(132) && lk2.b(132);
    }

    public boolean q() {
        return ar.b(this.b.a, 110).b(134) && this.o();
    }

    public boolean o() {
        long l = this.k();
        if (l >= 0L) {
            long l2 = ar.c(this.b.a, 110, 131);
            l2 = l2 != (long)-1 ? (l2 -= this.i()) : 2400000L;
            if (l < l2) {
                return true;
            }
        }
        return false;
    }

    public boolean p() {
        return this.k() < 86400000L;
    }

    public boolean c() {
        return this.s() == 0;
    }

    public boolean b() {
        return this.c == 0;
    }

    public boolean i() {
        return this.s() == 1;
    }

    public boolean h() {
        return this.s() == 2;
    }

    public void h_() {
        if (iu.g()) {
            this.f();
        }
    }

    public synchronized void q() {
        if (this.e) {
            this.e = false;
            Thread thread = new Thread(this);
            thread.setPriority(1);
            thread.start();
        }
    }

    private void g() {
        this.g = false;
        if (this.f != null) {
            this.f.b();
        }
    }

    public synchronized void k() {
        if (this.a != null) {
            ck.e().a(this.a);
            this.a = null;
            this.b = System.currentTimeMillis() + this.c;
        }
    }

    private void c(String string) {
        lk lk2 = ar.b(this.b.a, 110);
        if (lk2 != null) {
            lk2.b(112, string);
        }
    }

    public String r() {
        lk lk2 = ar.b(this.b.a, 110);
        if (lk2.h(136)) {
            return lk2.g(136);
        }
        return null;
    }

    public Long h() {
        if (this.d == null) {
            lk lk2 = ar.b(this.b.a, 110);
            this.d = new Long(lk2.e(111));
        }
        return this.d;
    }

    private void c(long l) {
        ar.b(this.b.a, 110).b(111, l);
        this.d = new Long(l);
    }

    public void c(boolean bl2) {
        ar.b(this.b.a, 110).a(129, bl2);
    }

    public void b(boolean bl2) {
        ar.b(this.b.a, 110).a(132, bl2);
    }

    public void b(String string) {
        ar.b(this.b.a, 110).b(136, string);
    }

    public boolean e() {
        return ar.b(this.b.a, 110).b(129);
    }

    private int s() {
        return ar.a(this.b.a, 110, 128, -1);
    }

    public long k() {
        return ar.c(this.b.a, 110, 130);
    }

    public long l() {
        return ar.c(this.b.a, 110, 122);
    }

    public long i() {
        return ar.c(this.b.a, 110, 121);
    }

    public String i() {
        return ar.a(this.b.a, 110, 113);
    }

    public String m() {
        return ar.a(this.b.a, 110, 112);
    }

    public String j() {
        return ar.a(this.b.a, 110, 127);
    }

    public void b(long l) {
        lk lk2 = this.b.a.f(110);
        if (l >= 0L) {
            lk2.b(122, l);
            return;
        }
        lk2.b(122, (long)-1);
    }

    public void a(long l) {
        lk lk2 = this.b.a.f(110);
        lk2.b(121, l);
        if (l < 0L) {
            lk2.b(130, (long)-1);
            return;
        }
        lk2.b(130, System.currentTimeMillis() - l);
    }

    public void n() {
        lk lk2 = this.b.a;
        while (lk2.i(4) > 0) {
            lk2.g(4, 0);
        }
    }

    public void a(cx cx2) {
        if (gu.p()) {
            this.c = cx2;
            this.a((fb[])null);
        }
    }

    public boolean a(char c) {
        return "est/".indexOf(c) >= 0;
    }

    public boolean a(ck ck2) {
        ke[] keArray = ck2.c;
        if (keArray != null) {
            for (int i = 0; i < keArray.length; ++i) {
                mg mg2 = this.b.a(jt.a(keArray[i]), false);
                if (mg2 != null && mg2.a() && (mg2.c() || mg2.b() == 0L)) {
                    continue;
                }
                return false;
            }
        }
        return true;
    }

    /*
     * Enabled aggressive block sorting
     */
    public void a(Object object, Object object2, boolean bl2) {
        if (!bl2) {
            Object v2 = this.a.get(object);
            if (v2 != null && !v2.equals(object2)) {
                throw new IllegalStateException("Dangling value.");
            }
            v2 = this.b.get(object2);
            if (v2 != null && !v2.equals(object)) {
                throw new IllegalStateException("Dangling key.");
            }
            this.a.put(object, object2);
            this.b.put(object2, object);
            return;
        } else {
            Object object3 = this.a.put(object, object2);
            if (object3 != null && !object3.equals(object2)) {
                this.b.remove(object3);
            }
            if ((object2 = this.b.put(object2, object)) == null || object2.equals(object)) return;
            this.a.remove(object2);
            return;
        }
    }

    private synchronized void a(ke ke2, mg mg2) {
        if (this.a == null) {
            this.a = new hl(this);
        }
        this.a.a(mg2);
        this.b.put(ke2, mg2);
    }

    public void a(fk fk2, Long l) {
        bu.g(this.a).a(fk2.c, l, true);
        this.a.x.a(fk2.c);
        this.a.k();
    }

    public void a(iv iv2, lh lh2) {
        bu.c(this.a).a(new mi(this, lh2));
    }

    public String c(boolean bl2) {
        String string;
        if (bl2 && !ed.b(string = this.b.b())) {
            return string;
        }
        return this.b.c();
    }

    private static void a(ny ny2, ny ny3, int n, int n2) {
        if (n == 1627382784 || n == 0x30990000) {
            int n3 = n == 1627382784 ? 1627372032 : -1605894144;
            ny2.a(ny3, n3, n2 + 384);
        }
        ny2.a(ny3, n, n2);
    }

    private static void a(ny ny2, jm jm2, cn cn2, boolean bl2, boolean bl3) {
        int n = jm2.c << 8;
        int n2 = jm2.d << 8;
        int n3 = cn2.b <= 10 ? 4 : 5;
        int n4 = jm2.b;
        if (!bl3) {
            n4 += 180;
        }
        int n5 = n + (n3 << 7) * ck.h(n4) / 250;
        n4 = n2 + (n3 << 7) * ck.i(n4) / 250;
        if (bl2) {
            ny2.a(n5, n4);
            return;
        }
        ny2.b(n5, n4);
    }

    private static int a(jm jm2) {
        if (!jm2.a()) {
            if (jm2.b()) {
                if (jm2.a >= 25) {
                    if (jm2.a < 50) {
                        return 1627382784;
                    }
                    return 1610660864;
                }
                return 0x30990000;
            }
            return 1624363473;
        }
        return 0xFFFFFF;
    }

    public boolean a(int n, int n2, int n3, boolean bl2) {
        ij ij2 = this.a(n, n2, n3);
        if (ij2.d != 3) {
            if (bl2) {
                ij2.a();
            }
            return false;
        }
        return true;
    }

    public void a(int n, int n2, int n3, byte[] byArray) {
        ij ij2 = this.a(n, n2, n3);
        ++this.d;
        this.b += byArray.length;
        ij2.a(byArray);
    }

    public void a() {
        ++this.c;
    }

    private void f() {
        this.g = true;
        this.a(this);
    }

    public void m() {
        this.b.k();
        this.e = null;
    }

    public void o() {
        jt jt2 = this.b;
        int cfr_ignored_0 = jt2.b;
        nz.b(jt2);
        jt2.s();
    }

    public void t() {
        this.b.a.w.a(lh.d(239), 2);
    }

    public void j_() {
        this.f();
    }

    public void i_() {
        this.g();
    }

    public void s_() {
        this.g();
    }

    public jt() {
    }

    public jt(boolean bl2, boolean bl3, boolean bl4, boolean bl5) {
    }

    public jt(bu bu2, boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6, boolean bl7) {
    }

    public jt(boolean bl2, ar ar2) {
        this.e = bl2;
        this.b = ar2;
        this.c = ar2.c;
    }

    public jt(bu bu2, jt jt2) {
        this.a = bu2;
        this.b = jt2;
    }

    public jt(ck ck2, lh lh2) {
        this.d = ck2;
        this.e = lh2;
    }

    public jt(jt jt2, int n) {
        this.a = jt2;
        this.b = n;
    }

    public jt(bu bu2, boolean bl2) {
        this.a = bu2;
    }

    public jt(bu bu2) {
        this.a = bu2;
    }

    public jt(bu bu2, boolean bl2, boolean bl3, boolean bl4, boolean bl5, boolean bl6) {
        this.a = bu2;
    }

    public jt(bu bu2, boolean bl2, boolean bl3) {
        this.a = bu2;
    }

    public jt(bu bu2, boolean bl2, boolean bl3, boolean bl4) {
        this.a = bu2;
    }

    private jt(bu bu2, boolean bl2, boolean bl3, boolean bl4, boolean bl5) {
        this.a = bu2;
    }

    public jt(ej[] ejArray, ji[] jiArray, boolean bl2, boolean bl3, ma ma2) {
        this.a = ejArray;
        this.b = jiArray;
        this.e = ma2;
        this.g = bl2;
        this.e = bl3;
        this.f = new jt[1];
    }

    public jt(jt jt2, Long l, dk dk2) {
        this.b = jt2;
        this.d = l;
        this.b = dk2;
    }

    private jt(int n, iv iv2, int n2, int n3) {
        this.c = n;
        this.a = iv2;
        this.b = n2;
    }

    public jt(boolean bl2) {
        this.a = new jt(false, false, false, false);
        this.a((fb[])null);
    }

    public jt(int n) {
        this.e = new Object();
        this.e = true;
        this.c = n;
        this.a = new Hashtable();
        this.b = new Hashtable();
        nz.a(this);
        this.q();
    }

    public jt(boolean bl2, boolean bl3) {
        this.a = new Hashtable();
        this.b = new Hashtable();
    }

    public jt(ck ck2) {
        this.d = ck2;
        this.b = new ij[ck2.d + 1][][];
    }

    public void b(jt jt2) {
        this.b = jt2;
    }

    public void d(boolean bl2) {
        this.e = bl2;
    }

    public jt(boolean bl2, boolean bl3, boolean bl4) {
        this(false);
    }

    public jt(bu bu2, mb mb2) {
        this(bu2, false, false, false, false);
    }

    public void a(hd hd2) {
        hd2.b();
        this.a(this);
    }

    public Object a(Object object) {
        return this.b.get(object);
    }

    public Object b(Object object) {
        return this.a.get(object);
    }

    public static iv a(jt jt2, iv iv2) {
        jt2.a = iv2;
        return iv2;
    }

    public static long a(jt jt2, long l) {
        jt2.b = l;
        return l;
    }

    public static long b(jt jt2, long l) {
        jt2.c = l;
        return l;
    }

    public String e() {
        return lh.d(444);
    }

    public String d() {
        return lh.d(384);
    }

    public String c() {
        return lh.d(386);
    }

    public String g() {
        return lh.d(591);
    }

    public String f() {
        return lh.d(36);
    }

    public String a() {
        return lh.d(99);
    }

    public String b() {
        return lh.d(99);
    }

    public static Hashtable b(jt jt2) {
        return jt2.a;
    }

    public static Hashtable a(jt jt2) {
        return jt2.b;
    }

    public static bu a(jt jt2) {
        return jt2.a;
    }

    public static bu b(jt jt2) {
        return jt2.a;
    }

    public boolean y_() {
        return this.g;
    }

    public boolean z_() {
        return this.e;
    }

    public boolean j() {
        return this.e;
    }

    public cw e() {
        return this.b;
    }

    public void af() {
        this.a.clear();
    }

    public void e() {
        ck.e().a(this);
    }

    public void e(String string) {
        throw new IllegalStateException();
    }

    public void f(String string) {
        throw new IllegalStateException();
    }

    static {
        a = new Object();
        c = new long[]{120000L, 180000L, 300000L, 600000L, 1200000L};
    }

    public void k_() {
    }

    public void a(int n, lh lh2) {
    }

    public void a(jt jt2) {
        this.e.a(false, false);
        new ps("", this.d.e, this.d.k(), this.d.l(), 7, 0).a = jt2;
        ck.e().a(new ps("", this.d.e, this.d.k(), this.d.l(), 7, 0));
    }

    public static jt a() {
        return new jt(1, null, 0, 0);
    }

    private ny a(ny ny2, jm jm2, cn cn2, boolean bl2) {
        ny ny3 = ny2.b();
        jt.a(ny3, jm2, cn2, false, bl2);
        return ny3;
    }

    public String h() {
        return "est/";
    }

    public int z() {
        return 41;
    }

    public int c(char c) {
        return 11;
    }

    public int b(char c) {
        return 11;
    }

    public boolean A_() {
        return false;
    }

    public boolean a() {
        return true;
    }

    public byte h() {
        return 5;
    }

    public iv j() {
        return null;
    }
}

