Files
rr3-apk/smali_classes3/com/google/android/gms/internal/ads/zzgaq.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

465 lines
6.9 KiB
Smali

.class public final Lcom/google/android/gms/internal/ads/zzgaq;
.super Lcom/google/android/gms/internal/ads/zzgar;
.source "SourceFile"
# direct methods
.method public static bridge synthetic zza([IIII)I
.locals 1
:goto_0
if-ge p2, p3, :cond_1
.line 1
aget v0, p0, p2
if-ne v0, p1, :cond_0
goto :goto_1
:cond_0
add-int/lit8 p2, p2, 0x1
goto :goto_0
:cond_1
const/4 p2, -0x1
:goto_1
return p2
.end method
.method public static zzb(J)I
.locals 3
long-to-int v0, p0
int-to-long v1, v0
cmp-long v1, v1, p0
if-nez v1, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
const-string v2, "Out of range: %s"
.line 1
invoke-static {v1, v2, p0, p1}, Lcom/google/android/gms/internal/ads/zzfun;->zzh(ZLjava/lang/String;J)V
return v0
.end method
.method public static zzc(III)I
.locals 5
const/4 p2, 0x1
const-string v0, "min (%s) must be less than or equal to max (%s)"
const v1, 0x3fffffff # 1.9999999f
.line 1
invoke-static {p2, v0, p1, v1}, Lcom/google/android/gms/internal/ads/zzfun;->zzj(ZLjava/lang/String;II)V
const/4 v0, 0x2
new-array v2, v0, [I
filled-new-array {p0, p1}, [I
move-result-object p0
const/4 p1, 0x0
aget v3, p0, p1
move v4, p2
:goto_0
if-ge v4, v0, :cond_1
aget v4, p0, p2
if-le v4, v3, :cond_0
move v3, v4
:cond_0
move v4, v0
goto :goto_0
:cond_1
aput v3, v2, p1
aput v1, v2, p2
move p0, p2
:goto_1
if-ge p0, v0, :cond_3
aget p0, v2, p2
if-ge p0, v3, :cond_2
move v3, p0
:cond_2
move p0, v0
goto :goto_1
:cond_3
return v3
.end method
.method public static zzd([B)I
.locals 6
.line 1
array-length v0, p0
const/4 v1, 0x0
const/4 v2, 0x1
const/4 v3, 0x4
if-lt v0, v3, :cond_0
move v4, v2
goto :goto_0
:cond_0
move v4, v1
:goto_0
const-string v5, "array too small: %s < %s"
invoke-static {v4, v5, v0, v3}, Lcom/google/android/gms/internal/ads/zzfun;->zzj(ZLjava/lang/String;II)V
.line 2
aget-byte v0, p0, v1
shl-int/lit8 v0, v0, 0x18
aget-byte v1, p0, v2
and-int/lit16 v1, v1, 0xff
const/4 v2, 0x2
aget-byte v2, p0, v2
and-int/lit16 v2, v2, 0xff
const/4 v3, 0x3
aget-byte p0, p0, v3
and-int/lit16 p0, p0, 0xff
shl-int/lit8 v1, v1, 0x10
or-int/2addr v0, v1
shl-int/lit8 v1, v2, 0x8
or-int/2addr v0, v1
or-int/2addr p0, v0
return p0
.end method
.method public static zze(J)I
.locals 2
const-wide/32 v0, 0x7fffffff
cmp-long v0, p0, v0
if-lez v0, :cond_0
const p0, 0x7fffffff
return p0
:cond_0
const-wide/32 v0, -0x80000000
cmp-long v0, p0, v0
if-gez v0, :cond_1
const/high16 p0, -0x80000000
return p0
:cond_1
long-to-int p0, p0
return p0
.end method
.method public static zzf(Ljava/lang/String;I)Ljava/lang/Integer;
.locals 11
.line 9
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 1
invoke-virtual {p0}, Ljava/lang/String;->isEmpty()Z
move-result p1
const/4 v0, 0x0
if-eqz p1, :cond_1
:cond_0
:goto_0
move-object p0, v0
goto/16 :goto_2
:cond_1
const/4 p1, 0x0
.line 2
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result v1
const/16 v2, 0x2d
if-ne v1, v2, :cond_2
const/4 p1, 0x1
:cond_2
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v3
if-ne p1, v3, :cond_3
goto :goto_0
:cond_3
add-int/lit8 v3, p1, 0x1
.line 3
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result p1
invoke-static {p1}, Lcom/google/android/gms/internal/ads/zzgas;->zza(C)I
move-result p1
if-ltz p1, :cond_0
const/16 v4, 0xa
if-lt p1, v4, :cond_4
goto :goto_0
:cond_4
neg-int p1, p1
int-to-long v5, p1
:goto_1
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result p1
const-wide/high16 v7, -0x8000000000000000L
if-ge v3, p1, :cond_7
add-int/lit8 p1, v3, 0x1
.line 4
invoke-virtual {p0, v3}, Ljava/lang/String;->charAt(I)C
move-result v3
invoke-static {v3}, Lcom/google/android/gms/internal/ads/zzgas;->zza(C)I
move-result v3
if-ltz v3, :cond_0
if-ge v3, v4, :cond_0
const-wide v9, -0xcccccccccccccccL
cmp-long v9, v5, v9
if-gez v9, :cond_5
goto :goto_0
:cond_5
const-wide/16 v9, 0xa
mul-long/2addr v5, v9
int-to-long v9, v3
add-long/2addr v7, v9
cmp-long v3, v5, v7
if-gez v3, :cond_6
goto :goto_0
:cond_6
sub-long/2addr v5, v9
move v3, p1
goto :goto_1
:cond_7
if-ne v1, v2, :cond_8
.line 5
invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p0
goto :goto_2
:cond_8
cmp-long p0, v5, v7
if-nez p0, :cond_9
goto :goto_0
:cond_9
neg-long p0, v5
.line 6
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p0
:goto_2
if-eqz p0, :cond_b
.line 7
invoke-virtual {p0}, Ljava/lang/Long;->longValue()J
move-result-wide v1
invoke-virtual {p0}, Ljava/lang/Long;->intValue()I
move-result p1
int-to-long v3, p1
cmp-long p1, v1, v3
if-eqz p1, :cond_a
goto :goto_3
.line 8
:cond_a
invoke-virtual {p0}, Ljava/lang/Long;->intValue()I
move-result p0
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
:cond_b
:goto_3
return-object v0
.end method
.method public static varargs zzg([I)Ljava/util/List;
.locals 3
.line 1
array-length v0, p0
if-nez v0, :cond_0
.line 2
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object p0
return-object p0
:cond_0
new-instance v1, Lcom/google/android/gms/internal/ads/zzgap;
const/4 v2, 0x0
.line 3
invoke-direct {v1, p0, v2, v0}, Lcom/google/android/gms/internal/ads/zzgap;-><init>([III)V
return-object v1
.end method
.method public static zzh(Ljava/util/Collection;)[I
.locals 4
.line 1
invoke-interface {p0}, Ljava/util/Collection;->toArray()[Ljava/lang/Object;
move-result-object p0
.line 2
array-length v0, p0
new-array v1, v0, [I
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_0
.line 3
aget-object v3, p0, v2
.line 4
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 3
check-cast v3, Ljava/lang/Number;
invoke-virtual {v3}, Ljava/lang/Number;->intValue()I
move-result v3
aput v3, v1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object v1
.end method