/*
 * Decompiled with CFR 0.152.
 */
public final class u {
    private static final u b = new u();
    private final dc d = new dc();
    private final dc f;
    private final dc e = new dc();
    private final dc g;
    private final dc h;
    private final dc i;
    private boolean c;
    private int j;
    private int k;
    public boolean a;

    public final boolean g() {
        return this.j <= 0;
    }

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

    public final int c() {
        if (this.j > 0) {
            return 1;
        }
        return 2;
    }

    public final boolean e() {
        return this.j <= 1;
    }

    private boolean m() {
        boolean bl2 = this.c;
        boolean bl3 = ck.e().h >= 16384;
        this.c = bl2 | bl3;
        return this.c;
    }

    public final dc a(boolean bl2, boolean bl3) {
        if (bl3) {
            if (bl2) {
                return this.d;
            }
            return this.f;
        }
        if (bl2) {
            return this.e;
        }
        return this.g;
    }

    public final dc a(boolean bl2) {
        if (bl2) {
            return this.h;
        }
        return this.i;
    }

    public final String k() {
        StringBuffer stringBuffer = new StringBuffer().append("").append(this.c()).append("-").append(0).append(",m").append(this.j).append(",");
        String string = this.e() ? "F," : "nF,";
        stringBuffer = stringBuffer.append(string);
        string = this.m() ? "T," : "nT,";
        stringBuffer = stringBuffer.append(string);
        string = !this.m() ? "Sn," : "Fn,";
        stringBuffer = stringBuffer.append(string);
        string = !true ? "Sr" : "Fr";
        return stringBuffer.append(string).toString();
    }

    public final void a(fo fo2) {
        block4: while (true) {
            ++this.j;
            this.k = Math.max(this.k, this.j);
            switch (this.j) {
                case 2: {
                    if (!fo2.f) continue block4;
                    gu.a(this.j, "f");
                    return;
                }
                case 1: {
                    gu.a(this.j, "t");
                    return;
                }
            }
            break;
        }
        this.h();
    }

    public final void h() {
        this.a = true;
        gu.a(this.j, "d");
    }

    public final void b() {
        this.c = false;
        this.a = false;
        this.j = 0;
    }

    public final void l() {
        gu.a(this.d, this.e, this.f, this.g, this.h, this.i);
    }

    private u() {
        this.f = new dc();
        this.g = new dc();
        this.h = new dc();
        this.i = new dc();
        this.b();
    }

    public static int d() {
        return 0;
    }

    public static boolean i() {
        return true;
    }

    public final boolean f() {
        return this.m();
    }

    public static u a() {
        return b;
    }
}

