Files
rr3-apk/decompiled-community/sources/com/google/android/gms/internal/ads/zzaik.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

449 lines
19 KiB
Java

package com.google.android.gms.internal.ads;
import android.util.Pair;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import com.mbridge.msdk.playercommon.exoplayer2.extractor.ts.PsExtractor;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
/* loaded from: classes3.dex */
public final class zzaik {
public static final /* synthetic */ int zza = 0;
private static final byte[] zzb;
static {
int i = zzei.zza;
zzb = "OpusHead".getBytes(StandardCharsets.UTF_8);
}
public static int zza(int i) {
return (i >> 24) & 255;
}
@Nullable
public static zzay zzb(zzen zzenVar) {
zzem zzemVar;
zzeo zzb2 = zzenVar.zzb(1751411826);
zzeo zzb3 = zzenVar.zzb(1801812339);
zzeo zzb4 = zzenVar.zzb(1768715124);
if (zzb2 != null && zzb3 != null && zzb4 != null && zzi(zzb2.zza) == 1835299937) {
zzdy zzdyVar = zzb3.zza;
zzdyVar.zzL(12);
int zzg = zzdyVar.zzg();
String[] strArr = new String[zzg];
for (int i = 0; i < zzg; i++) {
int zzg2 = zzdyVar.zzg();
zzdyVar.zzM(4);
strArr[i] = zzdyVar.zzB(zzg2 - 8, StandardCharsets.UTF_8);
}
zzdy zzdyVar2 = zzb4.zza;
zzdyVar2.zzL(8);
ArrayList arrayList = new ArrayList();
while (zzdyVar2.zzb() > 8) {
int zzd = zzdyVar2.zzd() + zzdyVar2.zzg();
int zzg3 = zzdyVar2.zzg() - 1;
if (zzg3 < 0 || zzg3 >= zzg) {
zzdo.zzf("BoxParsers", "Skipped metadata with unknown key index: " + zzg3);
} else {
String str = strArr[zzg3];
while (true) {
int zzd2 = zzdyVar2.zzd();
if (zzd2 >= zzd) {
zzemVar = null;
break;
}
int zzg4 = zzdyVar2.zzg();
if (zzdyVar2.zzg() == 1684108385) {
int zzg5 = zzdyVar2.zzg();
int zzg6 = zzdyVar2.zzg();
int i2 = zzg4 - 16;
byte[] bArr = new byte[i2];
zzdyVar2.zzH(bArr, 0, i2);
zzemVar = new zzem(str, bArr, zzg6, zzg5);
break;
}
zzdyVar2.zzL(zzd2 + zzg4);
}
if (zzemVar != null) {
arrayList.add(zzemVar);
}
}
zzdyVar2.zzL(zzd);
}
if (!arrayList.isEmpty()) {
return new zzay(arrayList);
}
}
return null;
}
public static zzay zzc(zzeo zzeoVar) {
int zzn;
zzdy zzdyVar = zzeoVar.zza;
zzdyVar.zzL(8);
zzay zzayVar = new zzay(C.TIME_UNSET, new zzax[0]);
while (zzdyVar.zzb() >= 8) {
int zzd = zzdyVar.zzd();
int zzg = zzdyVar.zzg() + zzd;
int zzg2 = zzdyVar.zzg();
zzay zzayVar2 = null;
if (zzg2 == 1835365473) {
zzdyVar.zzL(zzd);
zzdyVar.zzM(8);
zzg(zzdyVar);
while (true) {
if (zzdyVar.zzd() >= zzg) {
break;
}
int zzd2 = zzdyVar.zzd();
int zzg3 = zzdyVar.zzg() + zzd2;
if (zzdyVar.zzg() == 1768715124) {
zzdyVar.zzL(zzd2);
zzdyVar.zzM(8);
ArrayList arrayList = new ArrayList();
while (zzdyVar.zzd() < zzg3) {
zzax zza2 = zzais.zza(zzdyVar);
if (zza2 != null) {
arrayList.add(zza2);
}
}
if (!arrayList.isEmpty()) {
zzayVar2 = new zzay(arrayList);
}
} else {
zzdyVar.zzL(zzg3);
}
}
zzayVar = zzayVar.zzd(zzayVar2);
} else if (zzg2 == 1936553057) {
zzdyVar.zzL(zzd);
zzdyVar.zzM(12);
while (true) {
if (zzdyVar.zzd() >= zzg) {
break;
}
int zzd3 = zzdyVar.zzd();
int zzg4 = zzdyVar.zzg();
if (zzdyVar.zzg() != 1935766900) {
zzdyVar.zzL(zzd3 + zzg4);
} else if (zzg4 >= 16) {
zzdyVar.zzM(4);
int i = -1;
int i2 = 0;
for (int i3 = 0; i3 < 2; i3++) {
int zzm = zzdyVar.zzm();
int zzm2 = zzdyVar.zzm();
if (zzm == 0) {
i = zzm2;
} else if (zzm == 1) {
i2 = zzm2;
}
}
if (i == 12) {
zzn = PsExtractor.VIDEO_STREAM_MASK;
} else if (i == 13) {
zzn = 120;
} else {
if (i == 21 && zzdyVar.zzb() >= 8 && zzdyVar.zzd() + 8 <= zzg) {
int zzg5 = zzdyVar.zzg();
int zzg6 = zzdyVar.zzg();
if (zzg5 >= 12 && zzg6 == 1936877170) {
zzn = zzdyVar.zzn();
}
}
zzn = -2147483647;
}
if (zzn != -2147483647) {
zzayVar2 = new zzay(C.TIME_UNSET, new zzahc(zzn, i2));
}
}
}
zzayVar = zzayVar.zzd(zzayVar2);
} else if (zzg2 == -1451722374) {
zzayVar = zzayVar.zzd(zzl(zzdyVar));
}
zzdyVar.zzL(zzg);
}
return zzayVar;
}
public static zzew zzd(zzdy zzdyVar) {
long zzt;
long zzt2;
zzdyVar.zzL(8);
if (zza(zzdyVar.zzg()) == 0) {
zzt = zzdyVar.zzu();
zzt2 = zzdyVar.zzu();
} else {
zzt = zzdyVar.zzt();
zzt2 = zzdyVar.zzt();
}
return new zzew(zzt, zzt2, zzdyVar.zzu());
}
/* JADX WARN: Removed duplicated region for block: B:100:0x04b5 */
/* JADX WARN: Removed duplicated region for block: B:129:0x0536 A[EDGE_INSN: B:129:0x0536->B:130:0x0536 BREAK A[LOOP:5: B:98:0x04b0->B:122:0x052c], SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:132:0x0540 */
/* JADX WARN: Removed duplicated region for block: B:135:0x0547 */
/* JADX WARN: Removed duplicated region for block: B:137:0x054e */
/* JADX WARN: Removed duplicated region for block: B:140:0x0557 */
/* JADX WARN: Removed duplicated region for block: B:142:0x055b */
/* JADX WARN: Removed duplicated region for block: B:146:0x056b */
/* JADX WARN: Removed duplicated region for block: B:171:0x061f */
/* JADX WARN: Removed duplicated region for block: B:174:0x0634 */
/* JADX WARN: Removed duplicated region for block: B:175:0x055e */
/* JADX WARN: Removed duplicated region for block: B:176:0x0552 */
/* JADX WARN: Removed duplicated region for block: B:177:0x054a */
/* JADX WARN: Removed duplicated region for block: B:178:0x0542 */
/* JADX WARN: Removed duplicated region for block: B:179:0x04a2 */
/* JADX WARN: Removed duplicated region for block: B:61:0x0375 */
/* JADX WARN: Removed duplicated region for block: B:63:0x038b */
/* JADX WARN: Removed duplicated region for block: B:84:0x0453 */
/* JADX WARN: Removed duplicated region for block: B:96:0x04a0 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static com.google.android.gms.internal.ads.zzaje zze(com.google.android.gms.internal.ads.zzajb r44, com.google.android.gms.internal.ads.zzen r45, com.google.android.gms.internal.ads.zzadb r46) throws com.google.android.gms.internal.ads.zzbc {
/*
Method dump skipped, instructions count: 1616
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzaik.zze(com.google.android.gms.internal.ads.zzajb, com.google.android.gms.internal.ads.zzen, com.google.android.gms.internal.ads.zzadb):com.google.android.gms.internal.ads.zzaje");
}
/* JADX WARN: Code restructure failed: missing block: B:36:0x00e0, code lost:
if (r9 == 0) goto L47;
*/
/* JADX WARN: Removed duplicated region for block: B:17:0x0c6d */
/* JADX WARN: Removed duplicated region for block: B:19:0x0c97 */
/* JADX WARN: Removed duplicated region for block: B:46:0x013e */
/* JADX WARN: Removed duplicated region for block: B:477:0x0ac5 */
/* JADX WARN: Removed duplicated region for block: B:479:0x0ac7 */
/* JADX WARN: Removed duplicated region for block: B:49:0x0153 */
/* JADX WARN: Removed duplicated region for block: B:524:0x0c33 */
/* JADX WARN: Removed duplicated region for block: B:525:0x0c37 */
/* JADX WARN: Removed duplicated region for block: B:52:0x0192 */
/* JADX WARN: Removed duplicated region for block: B:547:0x0ca4 A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:552:0x01df A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:554:0x01a6 */
/* JADX WARN: Removed duplicated region for block: B:555:0x0194 */
/* JADX WARN: Removed duplicated region for block: B:556:0x0156 */
/* JADX WARN: Removed duplicated region for block: B:557:0x0145 */
/* JADX WARN: Removed duplicated region for block: B:55:0x01a4 */
/* JADX WARN: Removed duplicated region for block: B:57:0x01aa */
/* JADX WARN: Removed duplicated region for block: B:69:0x0221 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static java.util.List zzf(com.google.android.gms.internal.ads.zzen r65, com.google.android.gms.internal.ads.zzadb r66, long r67, @androidx.annotation.Nullable com.google.android.gms.internal.ads.zzu r69, boolean r70, boolean r71, com.google.android.gms.internal.ads.zzfuc r72) throws com.google.android.gms.internal.ads.zzbc {
/*
Method dump skipped, instructions count: 3246
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzaik.zzf(com.google.android.gms.internal.ads.zzen, com.google.android.gms.internal.ads.zzadb, long, com.google.android.gms.internal.ads.zzu, boolean, boolean, com.google.android.gms.internal.ads.zzfuc):java.util.List");
}
public static void zzg(zzdy zzdyVar) {
int zzd = zzdyVar.zzd();
zzdyVar.zzM(4);
if (zzdyVar.zzg() != 1751411826) {
zzd += 4;
}
zzdyVar.zzL(zzd);
}
private static int zzh(zzdy zzdyVar) {
int zzm = zzdyVar.zzm();
int i = zzm & 127;
while ((zzm & 128) == 128) {
zzm = zzdyVar.zzm();
i = (i << 7) | (zzm & 127);
}
return i;
}
private static int zzi(zzdy zzdyVar) {
zzdyVar.zzL(16);
return zzdyVar.zzg();
}
@Nullable
private static Pair zzj(zzdy zzdyVar, int i, int i2) throws zzbc {
Integer num;
zzajc zzajcVar;
Pair create;
int i3;
int i4;
byte[] bArr;
int zzd = zzdyVar.zzd();
while (zzd - i < i2) {
zzdyVar.zzL(zzd);
int zzg = zzdyVar.zzg();
zzacr.zzb(zzg > 0, "childAtomSize must be positive");
if (zzdyVar.zzg() == 1936289382) {
int i5 = zzd + 8;
int i6 = 0;
int i7 = -1;
String str = null;
Integer num2 = null;
while (i5 - zzd < zzg) {
zzdyVar.zzL(i5);
int zzg2 = zzdyVar.zzg();
int zzg3 = zzdyVar.zzg();
if (zzg3 == 1718775137) {
num2 = Integer.valueOf(zzdyVar.zzg());
} else if (zzg3 == 1935894637) {
zzdyVar.zzM(4);
str = zzdyVar.zzB(4, StandardCharsets.UTF_8);
} else if (zzg3 == 1935894633) {
i7 = i5;
i6 = zzg2;
}
i5 += zzg2;
}
if (C.CENC_TYPE_cenc.equals(str) || C.CENC_TYPE_cbc1.equals(str) || C.CENC_TYPE_cens.equals(str) || C.CENC_TYPE_cbcs.equals(str)) {
zzacr.zzb(num2 != null, "frma atom is mandatory");
zzacr.zzb(i7 != -1, "schi atom is mandatory");
int i8 = i7 + 8;
while (true) {
if (i8 - i7 >= i6) {
num = num2;
zzajcVar = null;
break;
}
zzdyVar.zzL(i8);
int zzg4 = zzdyVar.zzg();
if (zzdyVar.zzg() == 1952804451) {
int zza2 = zza(zzdyVar.zzg());
zzdyVar.zzM(1);
if (zza2 == 0) {
zzdyVar.zzM(1);
i3 = 0;
i4 = 0;
} else {
int zzm = zzdyVar.zzm();
int i9 = (zzm & PsExtractor.VIDEO_STREAM_MASK) >> 4;
i3 = zzm & 15;
i4 = i9;
}
boolean z = zzdyVar.zzm() == 1;
int zzm2 = zzdyVar.zzm();
byte[] bArr2 = new byte[16];
zzdyVar.zzH(bArr2, 0, 16);
if (z && zzm2 == 0) {
int zzm3 = zzdyVar.zzm();
byte[] bArr3 = new byte[zzm3];
zzdyVar.zzH(bArr3, 0, zzm3);
bArr = bArr3;
} else {
bArr = null;
}
num = num2;
zzajcVar = new zzajc(z, str, zzm2, bArr2, i4, i3, bArr);
} else {
i8 += zzg4;
}
}
zzacr.zzb(zzajcVar != null, "tenc atom is mandatory");
int i10 = zzei.zza;
create = Pair.create(num, zzajcVar);
} else {
create = null;
}
if (create != null) {
return create;
}
}
zzd += zzg;
}
return null;
}
/* JADX WARN: Code restructure failed: missing block: B:81:0x0144, code lost:
if (r6 == 1) goto L73;
*/
/* JADX WARN: Removed duplicated region for block: B:12:0x007a */
/* JADX WARN: Removed duplicated region for block: B:73:0x017d */
/* JADX WARN: Removed duplicated region for block: B:9:0x0061 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static com.google.android.gms.internal.ads.zzk zzk(com.google.android.gms.internal.ads.zzdy r15) {
/*
Method dump skipped, instructions count: 397
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzaik.zzk(com.google.android.gms.internal.ads.zzdy):com.google.android.gms.internal.ads.zzk");
}
@Nullable
private static zzay zzl(zzdy zzdyVar) {
short zzE = zzdyVar.zzE();
zzdyVar.zzM(2);
String zzB = zzdyVar.zzB(zzE, StandardCharsets.UTF_8);
int max = Math.max(zzB.lastIndexOf(43), zzB.lastIndexOf(45));
try {
return new zzay(C.TIME_UNSET, new zzet(Float.parseFloat(zzB.substring(0, max)), Float.parseFloat(zzB.substring(max, zzB.length() - 1))));
} catch (IndexOutOfBoundsException | NumberFormatException unused) {
return null;
}
}
private static zzaia zzm(zzdy zzdyVar, int i) {
zzdyVar.zzL(i + 12);
zzdyVar.zzM(1);
zzh(zzdyVar);
zzdyVar.zzM(2);
int zzm = zzdyVar.zzm();
if ((zzm & 128) != 0) {
zzdyVar.zzM(2);
}
if ((zzm & 64) != 0) {
zzdyVar.zzM(zzdyVar.zzm());
}
if ((zzm & 32) != 0) {
zzdyVar.zzM(2);
}
zzdyVar.zzM(1);
zzh(zzdyVar);
String zzd = zzbb.zzd(zzdyVar.zzm());
if (MimeTypes.AUDIO_MPEG.equals(zzd) || MimeTypes.AUDIO_DTS.equals(zzd) || MimeTypes.AUDIO_DTS_HD.equals(zzd)) {
return new zzaia(zzd, null, -1L, -1L);
}
zzdyVar.zzM(4);
long zzu = zzdyVar.zzu();
long zzu2 = zzdyVar.zzu();
zzdyVar.zzM(1);
int zzh = zzh(zzdyVar);
byte[] bArr = new byte[zzh];
zzdyVar.zzH(bArr, 0, zzh);
return new zzaia(zzd, bArr, zzu2 <= 0 ? -1L : zzu2, zzu > 0 ? zzu : -1L);
}
private static ByteBuffer zzn() {
return ByteBuffer.allocate(25).order(ByteOrder.LITTLE_ENDIAN);
}
/* JADX WARN: Removed duplicated region for block: B:35:0x01c9 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void zzo(com.google.android.gms.internal.ads.zzdy r26, int r27, int r28, int r29, int r30, java.lang.String r31, boolean r32, @androidx.annotation.Nullable com.google.android.gms.internal.ads.zzu r33, com.google.android.gms.internal.ads.zzaif r34, int r35) throws com.google.android.gms.internal.ads.zzbc {
/*
Method dump skipped, instructions count: 1415
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzaik.zzo(com.google.android.gms.internal.ads.zzdy, int, int, int, int, java.lang.String, boolean, com.google.android.gms.internal.ads.zzu, com.google.android.gms.internal.ads.zzaif, int):void");
}
}