/*
 * Decompiled with CFR 0.152.
 */
public final class cd
extends t {
    private static final String m = lh.d(422);
    private static final String n = lh.d(423);
    private static final String o = lh.d(95);
    private static final String p = lh.d(288);
    private String l;
    public ps h;
    public int i = 2;
    public boolean j = false;
    public byte k = 0;

    public cd(eb eb2, ps ps2) {
        super(eb2);
        this.h = ps2;
    }

    public final String h() {
        if (this.l == null) {
            return this.h.b;
        }
        return this.l;
    }

    public final cq d() {
        if (this.k != 3 && this.k != 2) {
            return jy.b;
        }
        return jy.g;
    }

    public final void f() {
        this.d = this.s.b(true, true);
        this.e = (hx)this.d.a();
        dz.a(this.e, lh.d(308), this.a);
        String string = this.h.b;
        dz.a(this.e, ed.a(lh.d(433), string), this.c);
        this.a(m, 4);
        this.a(n, 4);
        if (this.h.p()) {
            dz.a(this.e, lh.d(28), this.c);
            String[] stringArray = this.h.f;
            for (int i = 0; i < stringArray.length; ++i) {
                this.a(stringArray[i], 4);
            }
        }
        dz.a(this.e, lh.d(349), this.c);
        this.a(o, 4);
        if (!lh.r()) {
            this.a(p, 4);
        }
        this.e.s();
        this.e.B();
    }

    public final int a(pb pb2) {
        if (pb2.c != 8) {
            if (this.e.a(pb2) == -3) {
                this.f = ((jp)this.e.r()).c();
                this.j = false;
                this.l = null;
                if (!this.f.equals(m)) {
                    if (!this.f.equals(n)) {
                        if (!this.f.equals(o)) {
                            if (this.f.equals(p)) {
                                this.i = 4;
                                return 1;
                            }
                            this.l = this.f;
                            this.i = 8;
                            return 1;
                        }
                        this.j = true;
                        return 1;
                    }
                    this.i = 0;
                    return 1;
                }
                this.i = 1;
                return 1;
            }
            return 3;
        }
        return 2;
    }
}

