package r;

import P6.g;

/* JADX INFO: renamed from: r.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC1481a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final int[] f16345a = new int[0];

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final Object[] f16346b = new Object[0];

    public static final int a(int i, int i5, int[] iArr) {
        g.e(iArr, "array");
        int i8 = i - 1;
        int i9 = 0;
        while (i9 <= i8) {
            int i10 = (i9 + i8) >>> 1;
            int i11 = iArr[i10];
            if (i11 < i5) {
                i9 = i10 + 1;
            } else {
                if (i11 <= i5) {
                    return i10;
                }
                i8 = i10 - 1;
            }
        }
        return ~i9;
    }

    public static final int b(long[] jArr, int i, long j8) {
        g.e(jArr, "array");
        int i5 = i - 1;
        int i8 = 0;
        while (i8 <= i5) {
            int i9 = (i8 + i5) >>> 1;
            long j9 = jArr[i9];
            if (j9 < j8) {
                i8 = i9 + 1;
            } else {
                if (j9 <= j8) {
                    return i9;
                }
                i5 = i9 - 1;
            }
        }
        return ~i8;
    }

    public static final void c(String str) {
        g.e(str, "message");
        throw new IllegalArgumentException(str);
    }
}
