/*
 * Decompiled with CFR 0.152.
 */
public final class fa
extends gm {
    private static int a = 200;
    private w b;
    private String c;
    private ij d;
    private int e;

    public final int h() {
        return Math.min(this.b.a(this.c), this.r);
    }

    public final int i() {
        return this.b.l();
    }

    public final void c_(int n) {
        if (this.d != null) {
            this.e += n;
            if (this.e > a) {
                this.t();
                this.e = 0;
            }
        }
    }

    public final void a(int n, int n2) {
        if (n != this.r) {
            this.l(Math.min(n, this.h()));
        }
    }

    public fa(w w2, String string) {
        this.b = w2;
        this.c = string;
        this.m(w2.l());
    }

    public final void b(ht ht2, int n, int n2) {
        if (this.d == null) {
            this.b.a(ht2, this.c, n, n2);
            return;
        }
        this.d.a(ht2, n, n2);
    }

    public final void b(int n, int n2, int n3, int n4) {
        if (this.b.a(this.c) > this.r) {
            this.d = new ij(this.b, this.c, this.r, this.b.t());
            return;
        }
        this.d = null;
    }
}

