package com.google.android.gms.internal.ads; import android.text.TextUtils; import androidx.annotation.Nullable; /* loaded from: classes3.dex */ public final class zzcw { public static int zza(int i, int i2, int i3) { if (i < 0 || i >= i3) { throw new IndexOutOfBoundsException(); } return i; } public static Object zzb(@Nullable Object obj) { if (obj != null) { return obj; } throw new IllegalStateException(); } public static String zzc(@Nullable String str) { if (TextUtils.isEmpty(str)) { throw new IllegalArgumentException(); } return str; } public static void zzd(boolean z) { if (!z) { throw new IllegalArgumentException(); } } public static void zze(boolean z, Object obj) { if (!z) { throw new IllegalArgumentException((String) obj); } } public static void zzf(boolean z) { if (!z) { throw new IllegalStateException(); } } public static void zzg(boolean z, Object obj) { if (!z) { throw new IllegalStateException(String.valueOf(obj)); } } }