/*
 * Decompiled with CFR 0.152.
 */
/*
 * Duplicate member names - consider using --renamedupmembers true
 */
public final class og
extends ay
implements mt {
    public static final String h = lh.d(430);
    public static final String i = lh.d(425);
    private gr h;
    private String l;
    private boolean m;
    public int j;
    public String k;

    public final int l() {
        return -1;
    }

    public final boolean a(int n) {
        return true;
    }

    public final boolean a(String string) {
        return this.h.c(string);
    }

    public final void b(String string) {
        this.h.d(string);
    }

    public final void a(cq cq2, Object object) {
        if (cq2.equals(jy.i)) {
            String string = this.e.b().trim();
            if (string.length() != 0) {
                this.a(string);
                String string2 = dz.d(this.f);
                if (!string.equals(string2)) {
                    this.b(string2);
                }
                this.l = string;
                this.j = 1;
                return;
            }
            if (!this.b(this.f)) {
                this.b(dz.d(this.f));
            }
            this.h();
            return;
        }
        if (cq2.equals(jy.a)) {
            this.m = false;
        }
    }

    private int b(int n) {
        switch (n) {
            case -4: {
                this.e.a(dz.d(this.f));
                this.m = true;
                this.e.a();
                me.a((short)17, "e", dz.d(this.f));
                break;
            }
            case -3: {
                if (!this.b(this.f)) {
                    this.l = dz.d(this.f);
                    this.a(this.l);
                    this.j = 1;
                    me.a((short)17, "s", this.l);
                    break;
                }
                this.m = true;
                this.e.a();
            }
        }
        return this.j;
    }

    public final void i() {
        this.g = this.s.b(false, true);
        this.f = (hx)this.g.a();
        String string = h;
        if (string != null && string.length() > 0) {
            w w2 = jj.a();
            dz.a(this.f, string, w2);
        }
        dz.b(this.f, i);
        gm gm2 = this.d(this.f);
        this.a(this.f);
        this.m = false;
        this.f.B();
        this.f.l(gm2);
    }

    public final int a(pb pb2) {
        if (!this.m) {
            if (pb2.c != 8) {
                return this.b(this.f.a(pb2));
            }
            return 2;
        }
        return 3;
    }

    public final int a(nj nj2) {
        return this.b(this.g.b(nj2));
    }

    public og(eb eb2, hj hj2, String string, String string2, String string3, String string4, String string5, bi bi2) {
        this(eb2, hj2, string, string2, string3, string4, string5, bi2, false);
        this.j = 3;
        this.k = "o";
    }

    public og(eb eb2, hj hj2, String string, String string2, String string3, String string4, String string5, bi bi2, boolean bl2) {
        super(eb2, hj2, string, string2, string3, string4, bi2);
        this.h = gr.a(string5);
    }

    public og(eb eb2, hj hj2, bi bi2) {
        this(eb2, hj2, lh.d(95), lh.d(426) + lh.d(425), lh.d(388), lh.d(387), "queryMemory", bi2);
        this.l = "";
        this.m = false;
    }

    static {
        int[] nArray = new int[]{1, 2, 5, 10, 20, 50, 100, 1000};
    }

    public final void b() {
        super.b();
    }

    public final gp f() {
        return this.h;
    }

    public final String m() {
        return this.l;
    }

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

    public final boolean k() {
        return this.j == 2;
    }

    public final boolean g() {
        return this.j == 1 || this.j == 2 || this.j == 9;
    }

    public final void a() {
        super.a();
        this.h();
        this.j = 3;
    }

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

