package V1;

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

/* JADX INFO: loaded from: classes.dex */
public final class f extends b {
    public f(byte[] bArr) {
        super(bArr);
        this.f7192a.mark(Integer.MAX_VALUE);
    }

    public final void b(long j4) throws IOException {
        int i6 = this.f7193b;
        if (i6 > j4) {
            this.f7193b = 0;
            this.f7192a.reset();
        } else {
            j4 -= (long) i6;
        }
        a((int) j4);
    }

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