package o;

import java.io.IOException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.uF, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC2605uF implements T90 {
    public final MB l;
    public boolean m;
    public final /* synthetic */ C2689v7 n;

    public AbstractC2605uF(C2689v7 c2689v7) {
        this.n = c2689v7;
        this.l = new MB(((InterfaceC1687kf) c2689v7.d).a());
    }

    @Override // o.T90
    public long C(long j, C0732af c0732af) throws IOException {
        C2689v7 c2689v7 = this.n;
        try {
            return ((InterfaceC1687kf) c2689v7.d).C(j, c0732af);
        } catch (IOException e) {
            ((C2486t00) c2689v7.c).k();
            b();
            throw e;
        }
    }

    @Override // o.T90
    public final Cf0 a() {
        return this.l;
    }

    public final void b() {
        C2689v7 c2689v7 = this.n;
        int i = c2689v7.a;
        if (i == 6) {
            return;
        }
        if (i != 5) {
            throw new IllegalStateException("state: " + c2689v7.a);
        }
        MB mb = this.l;
        Cf0 cf0 = mb.e;
        mb.e = Cf0.d;
        cf0.a();
        cf0.b();
        c2689v7.a = 6;
    }
}
