package com.google.crypto.tink.shaded.protobuf;

import d5.AbstractC0844a;

/* JADX INFO: renamed from: com.google.crypto.tink.shaded.protobuf.f, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0740f extends C0741g {

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final int f10492u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final int f10493v;

    public C0740f(byte[] bArr, int i, int i5) {
        super(bArr);
        AbstractC0742h.b(i, i + i5, bArr.length);
        this.f10492u = i;
        this.f10493v = i5;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.C0741g, com.google.crypto.tink.shaded.protobuf.AbstractC0742h
    public final byte a(int i) {
        int i5 = this.f10493v;
        if (((i5 - (i + 1)) | i) >= 0) {
            return this.f10494t[this.f10492u + i];
        }
        if (i < 0) {
            throw new ArrayIndexOutOfBoundsException(AbstractC0844a.j("Index < 0: ", i));
        }
        throw new ArrayIndexOutOfBoundsException(I1.a.o("Index > length: ", i, i5, ", "));
    }

    @Override // com.google.crypto.tink.shaded.protobuf.C0741g, com.google.crypto.tink.shaded.protobuf.AbstractC0742h
    public final void f(int i, byte[] bArr) {
        System.arraycopy(this.f10494t, this.f10492u, bArr, 0, i);
    }

    @Override // com.google.crypto.tink.shaded.protobuf.C0741g
    public final int h() {
        return this.f10492u;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.C0741g
    public final byte i(int i) {
        return this.f10494t[this.f10492u + i];
    }

    @Override // com.google.crypto.tink.shaded.protobuf.C0741g, com.google.crypto.tink.shaded.protobuf.AbstractC0742h
    public final int size() {
        return this.f10493v;
    }
}
