package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Jg0 extends Fg0 {
    public final /* synthetic */ int a = 1;
    public AbstractC3019yg0 b;

    public /* synthetic */ Jg0() {
    }

    @Override // o.Fg0, o.InterfaceC2829wg0
    public void e(AbstractC3019yg0 abstractC3019yg0) {
        switch (this.a) {
            case 1:
                Kg0 kg0 = (Kg0) this.b;
                if (!kg0.P) {
                    kg0.I();
                    kg0.P = true;
                    break;
                }
                break;
        }
    }

    @Override // o.InterfaceC2829wg0
    public final void f(AbstractC3019yg0 abstractC3019yg0) {
        switch (this.a) {
            case 0:
                this.b.B();
                abstractC3019yg0.y(this);
                break;
            default:
                Kg0 kg0 = (Kg0) this.b;
                int i = kg0.O - 1;
                kg0.O = i;
                if (i == 0) {
                    kg0.P = false;
                    kg0.n();
                }
                abstractC3019yg0.y(this);
                break;
        }
    }

    public Jg0(AbstractC3019yg0 abstractC3019yg0) {
        this.b = abstractC3019yg0;
    }
}
