package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Us0 extends Ws0 {

    /* renamed from: o, reason: collision with root package name */
    public final int f363o;

    public Us0(int i, byte[] bArr) {
        super(bArr);
        Ws0.e(0, i, bArr.length);
        this.f363o = i;
    }

    @Override // o.Ws0
    public final byte a(int i) {
        int i2 = this.f363o;
        if (((i2 - (i + 1)) | i) >= 0) {
            return this.m[i];
        }
        if (i < 0) {
            StringBuilder sb = new StringBuilder(String.valueOf(i).length() + 11);
            sb.append("Index < 0: ");
            sb.append(i);
            throw new ArrayIndexOutOfBoundsException(sb.toString());
        }
        StringBuilder sb2 = new StringBuilder(String.valueOf(i).length() + 18 + String.valueOf(i2).length());
        sb2.append("Index > length: ");
        sb2.append(i);
        sb2.append(", ");
        sb2.append(i2);
        throw new ArrayIndexOutOfBoundsException(sb2.toString());
    }

    @Override // o.Ws0
    public final byte b(int i) {
        return this.m[i];
    }

    @Override // o.Ws0
    public final int c() {
        return this.f363o;
    }
}
