package defpackage;

/* JADX INFO: loaded from: classes2.dex */
@az3
@ti2
public final class if7 {
    public static String a(int i, int i2, String str) {
        if (i < 0) {
            return m89.a("%s (%s) must not be negative", str, Integer.valueOf(i));
        }
        if (i2 >= 0) {
            return m89.a("%s (%s) must not be greater than size (%s)", str, Integer.valueOf(i), Integer.valueOf(i2));
        }
        throw new IllegalArgumentException(n41.k("negative size: ", i2));
    }

    public static void b(String str, int i, int i2, boolean z) {
        if (!z) {
            throw new IllegalArgumentException(m89.a(str, Integer.valueOf(i), Integer.valueOf(i2)));
        }
    }

    public static void c(String str, int i, boolean z) {
        if (!z) {
            throw new IllegalArgumentException(m89.a(str, Integer.valueOf(i)));
        }
    }

    public static void d(String str, boolean z, long j) {
        if (!z) {
            throw new IllegalArgumentException(m89.a(str, Long.valueOf(j)));
        }
    }

    public static void e(boolean z) {
        if (!z) {
            throw new IllegalArgumentException();
        }
    }

    public static void f(boolean z, Object obj) {
        if (!z) {
            throw new IllegalArgumentException(String.valueOf(obj));
        }
    }

    public static void g(boolean z, String str, long j, long j2) {
        if (!z) {
            throw new IllegalArgumentException(m89.a(str, Long.valueOf(j), Long.valueOf(j2)));
        }
    }

    public static void h(boolean z, String str, Object obj) {
        if (!z) {
            throw new IllegalArgumentException(m89.a(str, obj));
        }
    }

    public static void i(boolean z, String str, Object obj, Object obj2) {
        if (!z) {
            throw new IllegalArgumentException(m89.a(str, obj, obj2));
        }
    }

    public static void j(int i, int i2) {
        String strA;
        if (i < 0 || i >= i2) {
            if (i < 0) {
                strA = m89.a("%s (%s) must not be negative", "index", Integer.valueOf(i));
            } else {
                if (i2 < 0) {
                    throw new IllegalArgumentException(n41.k("negative size: ", i2));
                }
                strA = m89.a("%s (%s) must be less than size (%s)", "index", Integer.valueOf(i), Integer.valueOf(i2));
            }
            throw new IndexOutOfBoundsException(strA);
        }
    }

    public static void k(Object obj) {
        obj.getClass();
    }

    public static void l(Object obj, Object obj2) {
        if (obj == null) {
            throw new NullPointerException(String.valueOf(obj2));
        }
    }

    public static void m(int i, int i2) {
        if (i < 0 || i > i2) {
            throw new IndexOutOfBoundsException(a(i, i2, "index"));
        }
    }

    public static void n(int i, int i2, int i3) {
        if (i < 0 || i2 < i || i2 > i3) {
            throw new IndexOutOfBoundsException((i < 0 || i > i3) ? a(i, i3, "start index") : (i2 < 0 || i2 > i3) ? a(i2, i3, "end index") : m89.a("end index (%s) must not be less than start index (%s)", Integer.valueOf(i2), Integer.valueOf(i)));
        }
    }

    public static void o(boolean z) {
        if (!z) {
            throw new IllegalStateException();
        }
    }

    public static void p(boolean z, Object obj) {
        if (!z) {
            throw new IllegalStateException(String.valueOf(obj));
        }
    }

    public static void q(boolean z, String str, Object obj) {
        if (!z) {
            throw new IllegalStateException(m89.a(str, obj));
        }
    }
}
