package o;

import java.util.NoSuchElementException;
import kotlin.jvm.internal.o;

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

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

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

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

    public static final int a(int i6, int i7, int[] array) {
        o.h(array, "array");
        int i8 = i6 - 1;
        int i9 = 0;
        while (i9 <= i8) {
            int i10 = (i9 + i8) >>> 1;
            int i11 = array[i10];
            if (i11 < i7) {
                i9 = i10 + 1;
            } else {
                if (i11 <= i7) {
                    return i10;
                }
                i8 = i10 - 1;
            }
        }
        return ~i9;
    }

    public static final int b(long[] array, int i6, long j4) {
        o.h(array, "array");
        int i7 = i6 - 1;
        int i8 = 0;
        while (i8 <= i7) {
            int i9 = (i8 + i7) >>> 1;
            long j6 = array[i9];
            if (j6 < j4) {
                i8 = i9 + 1;
            } else {
                if (j6 <= j4) {
                    return i9;
                }
                i7 = i9 - 1;
            }
        }
        return ~i8;
    }

    public static final void c(String message) {
        o.h(message, "message");
        throw new IllegalArgumentException(message);
    }

    public static final void d(String message) {
        o.h(message, "message");
        throw new IndexOutOfBoundsException(message);
    }

    public static final void e(String message) {
        o.h(message, "message");
        throw new NoSuchElementException(message);
    }
}
