package o;

import com.google.android.gms.common.api.Api;
import java.io.IOException;
import java.io.InputStream;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.ix, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1532ix extends C1150ex {
    public C1532ix(byte[] bArr) {
        super(bArr);
        this.l.mark(Api.BaseClientBuilder.API_PRIORITY_OTHER);
    }

    public final void c(long j) throws IOException {
        int i = this.n;
        if (i > j) {
            this.n = 0;
            this.l.reset();
        } else {
            j -= i;
        }
        b((int) j);
    }

    public C1532ix(InputStream inputStream) {
        super(inputStream);
        if (inputStream.markSupported()) {
            this.l.mark(Api.BaseClientBuilder.API_PRIORITY_OTHER);
            return;
        }
        throw new IllegalArgumentException("Cannot create SeekableByteOrderedDataInputStream with stream that does not support mark/reset");
    }
}
