package o;

import java.io.IOException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.zF, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C3080zF extends AbstractC2605uF {

    /* renamed from: o, reason: collision with root package name */
    public boolean f824o;

    @Override // o.AbstractC2605uF, o.T90
    public final long C(long j, C0732af c0732af) throws IOException {
        if (j < 0) {
            throw new IllegalArgumentException(AbstractC0126Ew.l("byteCount < 0: ", j).toString());
        }
        if (this.m) {
            throw new IllegalStateException("closed");
        }
        if (this.f824o) {
            return -1L;
        }
        long jC = super.C(j, c0732af);
        if (jC != -1) {
            return jC;
        }
        this.f824o = true;
        b();
        return -1L;
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public final void close() {
        if (this.m) {
            return;
        }
        if (!this.f824o) {
            b();
        }
        this.m = true;
    }
}
