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

/* JADX INFO: renamed from: com.google.crypto.tink.shaded.protobuf.g, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class C1259g extends C1260h {

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

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

    public C1259g(byte[] bArr, int i6, int i7) {
        super(bArr);
        AbstractC1261i.g(i6, i6 + i7, bArr.length);
        this.f13786e = i6;
        this.f13787f = i7;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.C1260h, com.google.crypto.tink.shaded.protobuf.AbstractC1261i
    public final byte e(int i6) {
        int i7 = this.f13787f;
        if (((i7 - (i6 + 1)) | i6) >= 0) {
            return this.f13788d[this.f13786e + i6];
        }
        if (i6 < 0) {
            throw new ArrayIndexOutOfBoundsException(Z0.o.l("Index < 0: ", i6));
        }
        throw new ArrayIndexOutOfBoundsException(com.google.android.recaptcha.internal.a.i(i6, i7, "Index > length: ", ", "));
    }

    @Override // com.google.crypto.tink.shaded.protobuf.C1260h, com.google.crypto.tink.shaded.protobuf.AbstractC1261i
    public final void j(byte[] bArr, int i6) {
        System.arraycopy(this.f13788d, this.f13786e, bArr, 0, i6);
    }

    @Override // com.google.crypto.tink.shaded.protobuf.C1260h
    public final int l() {
        return this.f13786e;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.C1260h
    public final byte m(int i6) {
        return this.f13788d[this.f13786e + i6];
    }

    @Override // com.google.crypto.tink.shaded.protobuf.C1260h, com.google.crypto.tink.shaded.protobuf.AbstractC1261i
    public final int size() {
        return this.f13787f;
    }
}
