/*
 * Decompiled with CFR 0.152.
 */
public final class ih
extends ep {
    private iy a;
    private hx b;
    private String c;
    private String d;
    private String e;
    private String f;
    private jt g;
    private jp h;
    private jp i;
    private int j = 0;

    public ih(eb eb2, hj hj2) {
        super(eb2, hj2);
    }

    private void l() {
        this.a = this.s.b(false, true);
        this.b = (hx)this.a.a();
        w w2 = jj.a();
        w w3 = jj.a(false);
        if (this.c != null) {
            dz.a(this.b, this.c, w2);
        }
        if (this.d != null) {
            dz.a(this.b, this.d, w3);
        }
        if (this.d != null || this.c != null) {
            dz.a(this.b, 4);
            dz.a(this.b, 4);
        }
        this.h = dz.a(this.b, this.e, false, 4, this.s.k);
        this.i = dz.a(this.b, this.f, false, 4, this.s.k);
    }

    /*
     * Enabled aggressive block sorting
     */
    public final int a(pb pb2) {
        int n;
        gm gm2;
        if ((this.b != null && pb2.d == 6 || pb2.c == 7) && (gm2 = this.b.r()) != null) {
            if (gm2 == this.h) {
                this.j = 1;
                return 1;
            }
            if (gm2 == this.i) {
                this.j = 0;
                return 1;
            }
        }
        if ((n = pb2.d) != 5 && n != 8) {
            this.a.a(pb2);
            return 3;
        }
        this.j = 0;
        return 1;
    }

    public final void b() {
        if (this.j == 1) {
            this.g.i();
        }
        this.g = null;
    }

    public final int a(nj nj2) {
        if (this.a.b(nj2) == -3) {
            return this.a(pb.a(7));
        }
        return 3;
    }

    public final boolean a(boolean bl2) {
        return this.a(this.a);
    }

    public final void a(ht ht2) {
        this.a.a(ht2, 0, 0);
    }

    public final void a(String string, String string2, String string3, String string4, jt jt2) {
        this.c = string;
        this.d = string2;
        this.e = lh.d(345);
        this.f = lh.d(23);
        this.g = jt2;
        this.n();
    }

    public final void a() {
        this.l();
    }

    public final void g_() {
        this.l();
    }

    public final cq e() {
        return jy.c;
    }

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

