granularity level: instruction
.class public final Lcom/google/android/gms/internal/common/zzs;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"
.annotation runtime Lorg/jspecify/nullness/NullMarked;
.end annotation
.method public static zza(IILjava/lang/String;)I
.locals 5
if-ltz p0, :cond_1
if-lt p0, p1, :cond_0
goto :goto_0
:cond_0
return p0
:goto_0
:cond_1
new-instance p2, Ljava/lang/IndexOutOfBoundsException;
const-string v0, "index"
const/4 v1, 0x1
const/4 v2, 0x0
const/4 v3, 0x2
if-ltz p0, :cond_3
if-gez p1, :cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "negative size: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
:cond_2
const/4 v4, 0x3
new-array v4, v4, [Ljava/lang/Object;
aput-object v0, v4, v2
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
aput-object p0, v4, v1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
aput-object p0, v4, v3
const-string p0, "%s (%s) must be less than size (%s)"
invoke-static {p0, v4}, Lcom/google/android/gms/internal/common/zzy;->zza(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
goto :goto_1
:cond_3
new-array p1, v3, [Ljava/lang/Object;
aput-object v0, p1, v2
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
aput-object p0, p1, v1
const-string p0, "%s (%s) must not be negative"
invoke-static {p0, p1}, Lcom/google/android/gms/internal/common/zzy;->zza(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
:goto_1
invoke-direct {p2, p0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method public static zzb(IILjava/lang/String;)I
.locals 1
if-ltz p0, :cond_0
if-gt p0, p1, :cond_0
return p0
:cond_0
new-instance p2, Ljava/lang/IndexOutOfBoundsException;
const-string v0, "index"
invoke-static {p0, p1, v0}, Lcom/google/android/gms/internal/common/zzs;->zzd(IILjava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-direct {p2, p0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method public static zzc(III)V
.locals 2
if-ltz p0, :cond_1
if-lt p1, p0, :cond_1
if-le p1, p2, :cond_0
goto :goto_0
:cond_0
return-void
:goto_0
:cond_1
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
if-ltz p0, :cond_4
if-gt p0, p2, :cond_4
if-ltz p1, :cond_3
if-le p1, p2, :cond_2
goto :goto_1
:cond_2
const/4 p2, 0x2
new-array p2, p2, [Ljava/lang/Object;
const/4 v1, 0x0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, p2, v1
const/4 p1, 0x1
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
aput-object p0, p2, p1
const-string p0, "end index (%s) must not be less than start index (%s)"
invoke-static {p0, p2}, Lcom/google/android/gms/internal/common/zzy;->zza(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
goto :goto_2
:goto_1
:cond_3
const-string p0, "end index"
invoke-static {p1, p2, p0}, Lcom/google/android/gms/internal/common/zzs;->zzd(IILjava/lang/String;)Ljava/lang/String;
move-result-object p0
goto :goto_2
:cond_4
const-string p1, "start index"
invoke-static {p0, p2, p1}, Lcom/google/android/gms/internal/common/zzs;->zzd(IILjava/lang/String;)Ljava/lang/String;
move-result-object p0
:goto_2
invoke-direct {v0, p0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private static zzd(IILjava/lang/String;)Ljava/lang/String;
.locals 4
const/4 v0, 0x1
const/4 v1, 0x0
const/4 v2, 0x2
if-gez p0, :cond_0
new-array p1, v2, [Ljava/lang/Object;
aput-object p2, p1, v1
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
aput-object p0, p1, v0
const-string p0, "%s (%s) must not be negative"
invoke-static {p0, p1}, Lcom/google/android/gms/internal/common/zzy;->zza(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_0
if-ltz p1, :cond_1
const/4 v3, 0x3
new-array v3, v3, [Ljava/lang/Object;
aput-object p2, v3, v1
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
aput-object p0, v3, v0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
aput-object p0, v3, v2
const-string p0, "%s (%s) must not be greater than size (%s)"
invoke-static {p0, v3}, Lcom/google/android/gms/internal/common/zzy;->zza(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_1
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "negative size: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method