package f0;

import java.io.IOException;
import java.io.InputStream;

/* JADX INFO: renamed from: f0.f, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0906f extends C0902b {
    public C0906f(byte[] bArr) {
        super(bArr);
        this.f12607q.mark(Integer.MAX_VALUE);
    }

    public final void b(long j8) throws IOException {
        int i = this.f12608r;
        if (i > j8) {
            this.f12608r = 0;
            this.f12607q.reset();
        } else {
            j8 -= (long) i;
        }
        a((int) j8);
    }

    public C0906f(InputStream inputStream) {
        super(inputStream);
        if (inputStream.markSupported()) {
            this.f12607q.mark(Integer.MAX_VALUE);
            return;
        }
        throw new IllegalArgumentException("Cannot create SeekableByteOrderedDataInputStream with stream that does not support mark/reset");
    }
}
