/*
 * Decompiled with CFR 0.152.
 */
public final class li
extends ay
implements mt {
    private static final String n = lh.d(574);
    private static final String o = lh.d(94);
    private static final String p = lh.d(446);
    private final lh u;
    private final ck v;
    private final lh w;
    private jt A;
    private int h;
    private int i;
    private gm j;
    private gm k;
    private gm l;
    private gm m;
    private jt x;
    private boolean y;
    private long z;

    private gm b(String string) {
        return dz.a(this.f, string, false, this.s.k);
    }

    public static void a(li li2, fk fk2) {
        li2.a(fk2);
    }

    public static int l() {
        return 31;
    }

    public final void b() {
        this.u.b((String)null);
    }

    public li(eb eb2, hj hj2, lh lh2, ck ck2, lh lh3, bi bi2) {
        super(eb2, hj2, bi2, false);
        this.u = lh2;
        this.v = ck2;
        this.w = lh3;
        this.h = -1;
    }

    public final void a(int n, jt jt2, String string, jt jt3) {
        super.a(jt2.a(), jt2.b(), jt2.c(), jt2.d());
        this.a(string);
        this.i = n;
        this.A = jt2;
        this.x = jt3;
        this.d(0);
    }

    public final cq d() {
        return jy.a;
    }

    public final cq e() {
        if (!lh.t()) {
            return jy.c;
        }
        return null;
    }

    public final boolean g() {
        return this.h == -1;
    }

    public final boolean o_() {
        return this.t && this.h == 1;
    }

    private boolean c(int n) {
        return (this.i | n) != 0;
    }

    public final int a(nj nj2) {
        switch (this.h) {
            case 4: {
                return this.a((Object)nj2);
            }
            case 1: {
                return 5;
            }
            case 0: {
                return this.a((Object)nj2);
            }
        }
        return 3;
    }

    private int p() {
        switch (this.h) {
            case 0: {
                return this.d(-1);
            }
            case 1: 
            case 3: 
            case 4: {
                return this.d(0);
            }
        }
        return 3;
    }

    public final void g_() {
        switch (this.h) {
            case 0: {
                if (this.t) {
                    this.h();
                }
            }
            default: {
                return;
            }
            case 4: 
        }
        this.q.d().g_();
    }

    public final void a(cq cq2, Object object) {
        if (!jy.i.equals(cq2)) {
            if (jy.a.equals(cq2) || jy.g.equals(cq2)) {
                this.p();
            }
            return;
        }
        this.a(fk.a(this.e.b().trim()));
    }

    private void a(fk fk2) {
        if (this.x.a() && fk2.b()) {
            this.q.a(fk2.b, 2, 0, new br(this));
            return;
        }
        this.c(fk2);
        long l = this.v.e();
        this.x.a(fk2, new Long(l));
        this.d(-1);
    }

    public final void i() {
        this.u.b((String)null);
        this.g = this.s.b(false, true);
        this.f = (hx)this.g.a();
        if (!ed.b(this.A.f())) {
            dz.a(this.f, this.A.f(), jj.a());
        }
        if (this.c(8) && this.w.m() && this.w.i()) {
            this.j = this.b(n);
        }
        if (this.c(16)) {
            this.k = this.b(o);
        }
        if (this.c(1)) {
            this.l = this.b(p);
        }
        if (this.c(4) && bj.a().u()) {
            this.m = this.e(this.f);
        }
        if (this.c(2)) {
            this.a(this.f);
        }
        this.f.B();
    }

    private int a(Object object) {
        int n = !(object instanceof pb) ? this.g.b((nj)object) : this.g.a((pb)object);
        if (n == -3) {
            object = this.f.r();
            if (!object.equals(this.j)) {
                if (!object.equals(this.k)) {
                    if (!object.equals(this.l)) {
                        if (!object.equals(this.m)) {
                            this.a(this.b(this.g(this.f)));
                            return 1;
                        }
                        return this.d(4);
                    }
                    return this.d(1);
                }
                return this.d(3);
            }
            this.a(fk.b(this.w.m()));
            return 1;
        }
        return 3;
    }

    /*
     * Enabled aggressive block sorting
     * Lifted jumps to return sites
     */
    private int d(int n) {
        this.h = n;
        switch (n) {
            case 1: {
                if (ed.b(this.A.e())) return 3;
                this.u.b(this.A.e());
                return 3;
            }
            case 4: {
                this.q.d().a(this.A.a());
            }
            default: {
                return 3;
            }
            case 3: {
                this.e.a("");
                this.e.a();
                return 3;
            }
            case 2: {
                this.z = System.currentTimeMillis() + (long)1000;
                return 3;
            }
            case 0: {
                this.h();
                return 3;
            }
            case -1: 
        }
        this.o();
        return 1;
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public final boolean a(boolean bl2) {
        switch (this.h) {
            case 4: {
                return this.q.d().a(bl2);
            }
            case 2: {
                if (this.z >= System.currentTimeMillis()) return true;
                this.a(fk.a(this.v.d()));
                this.d(-1);
                return true;
            }
            case 1: {
                if (bl2) {
                    bl2 = !this.y;
                    this.y = bl2;
                    return true;
                }
            }
            default: {
                return false;
            }
            case 0: 
        }
        return super.a(bl2);
    }

    /*
     * Enabled aggressive block sorting
     * Lifted jumps to return sites
     */
    public final void a(ht ht2) {
        switch (this.h) {
            case 2: {
                this.A.j();
                oa oa2 = this.v.b(this.v.d());
                this.s.a(ht2, this.A.h(), oa2.a, oa2.b, 0);
                if (ed.b(this.A.g())) return;
                ft ft2 = this.s.a(new String[]{this.A.g()}, new w[]{this.d}, oa2.a, oa2.b);
                ft2.a(ht2, (this.s.n() - ft2.r) / 2, 0);
                return;
            }
            case 4: {
                this.q.d().a(ht2);
            }
            default: {
                return;
            }
            case 1: {
                this.u.a(ht2);
                char c = !this.y ? (char)'\ued1b' : (char)ps.a(this.v);
                this.s.a(ht2, this.s.a / 2, this.s.b / 2, c);
                return;
            }
            case 0: 
        }
        super.a(ht2);
    }

    /*
     * Exception decompiling
     */
    public final int a(pb var1_1) {
        /*
         * 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: Tried to end blocks [1[CASE]], but top level block is 5[SWITCH]
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.processEndingBlocks(Op04StructuredStatement.java:435)
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.buildNestedBlocks(Op04StructuredStatement.java:484)
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op03SimpleStatement.createInitialStructuredBlock(Op03SimpleStatement.java:736)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:850)
         *     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");
    }
}

