package com.google.android.recaptcha.internal;

/* JADX INFO: loaded from: classes3.dex */
public final class zzjf {
    public static void zza(boolean z6) {
        if (!z6) {
            throw new IllegalArgumentException();
        }
    }

    public static void zzb(boolean z6, Object obj) {
        if (!z6) {
            throw new IllegalArgumentException((String) obj);
        }
    }

    public static void zzc(boolean z6, String str, char c6) {
        if (!z6) {
            throw new IllegalArgumentException(zzji.zza(str, Character.valueOf(c6)));
        }
    }

    public static void zzd(int i6, int i7, int i8) {
        if (i6 < 0 || i7 < i6 || i7 > i8) {
            throw new IndexOutOfBoundsException((i6 < 0 || i6 > i8) ? zzf(i6, i8, "start index") : (i7 < 0 || i7 > i8) ? zzf(i7, i8, "end index") : zzji.zza("end index (%s) must not be less than start index (%s)", Integer.valueOf(i7), Integer.valueOf(i6)));
        }
    }

    public static void zze(boolean z6, Object obj) {
        if (!z6) {
            throw new IllegalStateException((String) obj);
        }
    }

    private static String zzf(int i6, int i7, String str) {
        return i6 < 0 ? zzji.zza("%s (%s) must not be negative", str, Integer.valueOf(i6)) : zzji.zza("%s (%s) must not be greater than size (%s)", str, Integer.valueOf(i6), Integer.valueOf(i7));
    }
}
