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

import androidx.datastore.preferences.protobuf.C1015d;
import java.util.Iterator;

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final byte[] f13788d;

    public C1260h(byte[] bArr) {
        this.f13792a = 0;
        bArr.getClass();
        this.f13788d = bArr;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.AbstractC1261i
    public byte e(int i6) {
        return this.f13788d[i6];
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof AbstractC1261i) || size() != ((AbstractC1261i) obj).size()) {
            return false;
        }
        if (size() == 0) {
            return true;
        }
        if (!(obj instanceof C1260h)) {
            return obj.equals(this);
        }
        C1260h c1260h = (C1260h) obj;
        int i6 = this.f13792a;
        int i7 = c1260h.f13792a;
        if (i6 != 0 && i7 != 0 && i6 != i7) {
            return false;
        }
        int size = size();
        if (size > c1260h.size()) {
            throw new IllegalArgumentException("Length too large: " + size + size());
        }
        if (size > c1260h.size()) {
            StringBuilder sbR = com.google.android.recaptcha.internal.a.r(size, "Ran off end of other: 0, ", ", ");
            sbR.append(c1260h.size());
            throw new IllegalArgumentException(sbR.toString());
        }
        int iL = l() + size;
        int iL2 = l();
        int iL3 = c1260h.l();
        while (iL2 < iL) {
            if (this.f13788d[iL2] != c1260h.f13788d[iL3]) {
                return false;
            }
            iL2++;
            iL3++;
        }
        return true;
    }

    @Override // java.lang.Iterable
    public final Iterator iterator() {
        return new C1015d(this);
    }

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

    public int l() {
        return 0;
    }

    public byte m(int i6) {
        return this.f13788d[i6];
    }

    @Override // com.google.crypto.tink.shaded.protobuf.AbstractC1261i
    public int size() {
        return this.f13788d.length;
    }
}
