Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,104 @@
package com.google.android.gms.internal.ads;
import android.net.Uri;
import androidx.annotation.CheckResult;
import androidx.annotation.IntRange;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.util.Arrays;
/* loaded from: classes3.dex */
public final class zza {
public static final /* synthetic */ int zzi = 0;
public final long zza;
public final int zzb;
@Deprecated
public final Uri[] zzc;
public final zzar[] zzd;
public final int[] zze;
public final long[] zzf;
public final long zzg;
public final boolean zzh;
public zza(long j) {
this(0L, -1, -1, new int[0], new zzar[0], new long[0], 0L, false);
}
public final boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (obj != null && zza.class == obj.getClass()) {
zza zzaVar = (zza) obj;
if (this.zzb == zzaVar.zzb && Arrays.equals(this.zzd, zzaVar.zzd) && Arrays.equals(this.zze, zzaVar.zze) && Arrays.equals(this.zzf, zzaVar.zzf)) {
return true;
}
}
return false;
}
public final int hashCode() {
return ((((((((this.zzb * 31) - 1) * 961) + Arrays.hashCode(this.zzd)) * 31) + Arrays.hashCode(this.zze)) * 31) + Arrays.hashCode(this.zzf)) * 961;
}
public final int zza(@IntRange(from = -1) int i) {
int i2;
int i3 = i + 1;
while (true) {
int[] iArr = this.zze;
if (i3 >= iArr.length || (i2 = iArr[i3]) == 0 || i2 == 1) {
break;
}
i3++;
}
return i3;
}
@CheckResult
public final zza zzb(int i) {
int[] iArr = this.zze;
int length = iArr.length;
int max = Math.max(0, length);
int[] copyOf = Arrays.copyOf(iArr, max);
Arrays.fill(copyOf, length, max, 0);
long[] jArr = this.zzf;
int length2 = jArr.length;
int max2 = Math.max(0, length2);
long[] copyOf2 = Arrays.copyOf(jArr, max2);
Arrays.fill(copyOf2, length2, max2, C.TIME_UNSET);
return new zza(0L, 0, -1, copyOf, (zzar[]) Arrays.copyOf(this.zzd, 0), copyOf2, 0L, false);
}
private zza(long j, int i, int i2, int[] iArr, zzar[] zzarVarArr, long[] jArr, long j2, boolean z) {
Uri uri;
int length = iArr.length;
int length2 = zzarVarArr.length;
int i3 = 0;
zzcw.zzd(length == length2);
this.zza = 0L;
this.zzb = i;
this.zze = iArr;
this.zzd = zzarVarArr;
this.zzf = jArr;
this.zzg = 0L;
this.zzh = false;
this.zzc = new Uri[length2];
while (true) {
Uri[] uriArr = this.zzc;
if (i3 >= uriArr.length) {
return;
}
zzar zzarVar = zzarVarArr[i3];
if (zzarVar == null) {
uri = null;
} else {
zzam zzamVar = zzarVar.zzb;
zzamVar.getClass();
uri = zzamVar.zza;
}
uriArr[i3] = uri;
i3++;
}
}
}

View File

@@ -0,0 +1,292 @@
package com.google.android.gms.internal.ads;
import android.content.Context;
import android.view.Surface;
import androidx.annotation.FloatRange;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executor;
/* loaded from: classes3.dex */
final class zzaab implements zzabh, zzaac {
final /* synthetic */ zzaah zza;
private final int zzb;
private final ArrayList zzc;
private final zzaaj zzd;
@Nullable
private zzab zze;
private long zzf;
private long zzg;
private long zzh;
private long zzi;
private boolean zzj;
private long zzk;
private boolean zzl;
private boolean zzm;
private long zzn;
private zzabe zzo;
private Executor zzp;
public zzaab(zzaah zzaahVar, Context context) {
Executor executor;
this.zza = zzaahVar;
this.zzb = true != zzei.zzK(context) ? 5 : 1;
this.zzc = new ArrayList();
this.zzd = new zzaaj();
this.zzk = C.TIME_UNSET;
this.zzo = zzabe.zzb;
executor = zzaah.zza;
this.zzp = executor;
}
private final void zzB() {
zzk zzw;
if (this.zze == null) {
return;
}
new ArrayList(this.zzc);
zzab zzabVar = this.zze;
zzabVar.getClass();
zzz zzb = zzabVar.zzb();
zzw = zzaah.zzw(zzabVar.zzC);
zzb.zzB(zzw);
zzb.zzag();
zzcw.zzb(null);
throw null;
}
@Override // com.google.android.gms.internal.ads.zzaac
public final void zzA(zzaah zzaahVar, final zzcd zzcdVar) {
final zzabe zzabeVar = this.zzo;
this.zzp.execute(new Runnable() { // from class: com.google.android.gms.internal.ads.zzzy
@Override // java.lang.Runnable
public final void run() {
zzabeVar.zzc(zzaab.this, zzcdVar);
}
});
}
@Override // com.google.android.gms.internal.ads.zzabh
public final Surface zza() {
zzcw.zzf(false);
zzcw.zzb(null);
throw null;
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzb() {
this.zza.zzq();
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzc() {
zzabh zzabhVar;
zzabhVar = this.zza.zzh;
zzabhVar.zzc();
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzd(boolean z) {
this.zzl = false;
this.zzk = C.TIME_UNSET;
zzaah.zzl(this.zza, z);
this.zzn = C.TIME_UNSET;
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zze(zzab zzabVar) throws zzabg {
zzaah.zzc(this.zza, zzabVar);
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzf(boolean z) {
zzabh zzabhVar;
zzabhVar = this.zza.zzh;
zzabhVar.zzf(z);
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzg(int i, zzab zzabVar) {
zzcw.zzf(false);
this.zze = zzabVar;
if (this.zzl) {
zzcw.zzf(this.zzk != C.TIME_UNSET);
this.zzm = true;
this.zzn = this.zzk;
} else {
zzB();
this.zzl = true;
this.zzm = false;
this.zzn = C.TIME_UNSET;
}
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzh() {
zzabh zzabhVar;
zzabhVar = this.zza.zzh;
zzabhVar.zzh();
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzi(boolean z) {
zzabh zzabhVar;
zzabhVar = this.zza.zzh;
zzabhVar.zzi(z);
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzj() {
zzabh zzabhVar;
zzabhVar = this.zza.zzh;
zzabhVar.zzj();
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzk() {
zzabh zzabhVar;
zzabhVar = this.zza.zzh;
zzabhVar.zzk();
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzl() {
this.zza.zzs();
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzm(long j, long j2) throws zzabg {
this.zza.zzh.zzm(j, j2);
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzn(int i) {
zzabh zzabhVar;
zzabhVar = this.zza.zzh;
zzabhVar.zzn(i);
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzo(zzabe zzabeVar, Executor executor) {
this.zzo = zzabeVar;
this.zzp = executor;
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzp(Surface surface, zzdz zzdzVar) {
this.zza.zzt(surface, zzdzVar);
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzq(@FloatRange(from = 0.0d, fromInclusive = false) float f) {
this.zza.zzh.zzq(f);
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzr(long j, long j2, long j3, long j4) {
boolean z = this.zzj;
boolean z2 = true;
if (this.zzg == j2 && this.zzh == j3) {
z2 = false;
}
this.zzj = z | z2;
this.zzf = j;
this.zzg = j2;
this.zzh = j3;
this.zzi = j4;
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzs(List list) {
List list2;
if (this.zzc.equals(list)) {
return;
}
this.zzc.clear();
this.zzc.addAll(list);
ArrayList arrayList = this.zzc;
list2 = this.zza.zzg;
arrayList.addAll(list2);
zzB();
}
@Override // com.google.android.gms.internal.ads.zzabh
public final void zzt(zzaai zzaaiVar) {
this.zza.zzk = zzaaiVar;
}
@Override // com.google.android.gms.internal.ads.zzabh
public final boolean zzu(long j, boolean z, long j2, long j3, zzabf zzabfVar) throws zzabg {
zzaal zzaalVar;
zzcw.zzf(false);
long j4 = j - this.zzh;
try {
zzaalVar = this.zza.zzd;
if (zzaalVar.zza(j4, j2, j3, this.zzf, z, this.zzd) != 4) {
if (j4 < this.zzi && !z) {
zzzm zzzmVar = (zzzm) zzabfVar;
zzzmVar.zzd.zzaQ(zzzmVar.zza, zzzmVar.zzb, zzzmVar.zzc);
return true;
}
this.zza.zzh.zzm(j2, j3);
if (this.zzm) {
long j5 = this.zzn;
if (j5 == C.TIME_UNSET || zzaah.zzu(this.zza, j5)) {
zzB();
this.zzm = false;
this.zzn = C.TIME_UNSET;
}
}
zzcw.zzb(null);
throw null;
}
return false;
} catch (zzib e) {
zzab zzabVar = this.zze;
zzcw.zzb(zzabVar);
throw new zzabg(e, zzabVar);
}
}
@Override // com.google.android.gms.internal.ads.zzabh
public final boolean zzv() {
return false;
}
@Override // com.google.android.gms.internal.ads.zzabh
public final boolean zzw() {
return false;
}
@Override // com.google.android.gms.internal.ads.zzabh
public final boolean zzx(boolean z) {
boolean zzx;
zzx = this.zza.zzh.zzx(false);
return zzx;
}
@Override // com.google.android.gms.internal.ads.zzaac
public final void zzy(zzaah zzaahVar) {
final zzabe zzabeVar = this.zzo;
this.zzp.execute(new Runnable() { // from class: com.google.android.gms.internal.ads.zzzz
@Override // java.lang.Runnable
public final void run() {
zzabeVar.zza(zzaab.this);
}
});
}
@Override // com.google.android.gms.internal.ads.zzaac
public final void zzz(zzaah zzaahVar) {
final zzabe zzabeVar = this.zzo;
this.zzp.execute(new Runnable() { // from class: com.google.android.gms.internal.ads.zzaaa
@Override // java.lang.Runnable
public final void run() {
zzabeVar.zzb(zzaab.this);
}
});
}
}

View File

@@ -0,0 +1,10 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public interface zzaac {
void zzA(zzaah zzaahVar, zzcd zzcdVar);
void zzy(zzaah zzaahVar);
void zzz(zzaah zzaahVar);
}

View File

@@ -0,0 +1,30 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
final class zzaae implements zzca {
public static final /* synthetic */ int zza = 0;
static {
zzfvj.zza(new zzfvf() { // from class: com.google.android.gms.internal.ads.zzaad
@Override // com.google.android.gms.internal.ads.zzfvf
public final Object zza() {
int i = zzaae.zza;
try {
Class<?> cls = Class.forName("androidx.media3.effect.DefaultVideoFrameProcessor$Factory$Builder");
Object invoke = cls.getMethod("build", new Class[0]).invoke(cls.getConstructor(new Class[0]).newInstance(new Object[0]), new Object[0]);
invoke.getClass();
return (zzca) invoke;
} catch (Exception e) {
throw new IllegalStateException(e);
}
}
});
}
private zzaae() {
throw null;
}
public /* synthetic */ zzaae(zzaag zzaagVar) {
}
}

View File

@@ -0,0 +1,36 @@
package com.google.android.gms.internal.ads;
import android.content.Context;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.lang.reflect.Constructor;
import java.util.List;
import java.util.concurrent.Executor;
/* loaded from: classes3.dex */
final class zzaaf implements zzbl {
private final zzca zza;
public zzaaf(zzca zzcaVar) {
this.zza = zzcaVar;
}
@Override // com.google.android.gms.internal.ads.zzbl
public final zzbm zza(Context context, zzk zzkVar, zzn zznVar, zzcc zzccVar, Executor executor, List list, long j) throws zzbz {
try {
Constructor<?> constructor = Class.forName("androidx.media3.effect.PreviewingSingleInputVideoGraph$Factory").getConstructor(zzca.class);
Object[] objArr = new Object[1];
try {
objArr[0] = this.zza;
return ((zzbl) constructor.newInstance(objArr)).zza(context, zzkVar, zznVar, zzccVar, executor, list, 0L);
} catch (Exception e) {
e = e;
if (e instanceof zzbz) {
throw ((zzbz) e);
}
throw new zzbz(e, C.TIME_UNSET);
}
} catch (Exception e2) {
e = e2;
}
}
}

View File

@@ -0,0 +1,167 @@
package com.google.android.gms.internal.ads;
import android.content.Context;
import android.os.Looper;
import android.util.Pair;
import android.view.Surface;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.CopyOnWriteArraySet;
import java.util.concurrent.Executor;
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
/* loaded from: classes3.dex */
public final class zzaah implements zzcc {
private static final Executor zza = new Executor() { // from class: com.google.android.gms.internal.ads.zzzu
@Override // java.util.concurrent.Executor
public final void execute(Runnable runnable) {
}
};
private final Context zzb;
private final zzaab zzc;
private final zzaal zzd;
private final zzaaq zze;
private final zzbl zzf;
private final List zzg;
private final zzabh zzh;
private final zzcx zzi;
private final CopyOnWriteArraySet zzj;
private zzaai zzk;
private zzdh zzl;
@Nullable
private Pair zzm;
private int zzn;
private int zzo;
public /* synthetic */ zzaah(zzzw zzzwVar, zzaag zzaagVar) {
Context context;
zzcx zzcxVar;
zzaal zzaalVar;
zzbl zzblVar;
List list;
context = zzzwVar.zza;
this.zzb = context;
zzaab zzaabVar = new zzaab(this, context);
this.zzc = zzaabVar;
zzcxVar = zzzwVar.zzf;
this.zzi = zzcxVar;
zzaalVar = zzzwVar.zzb;
this.zzd = zzaalVar;
zzaalVar.zzk(zzcxVar);
zzaaq zzaaqVar = new zzaaq(new zzzx(this, null), zzaalVar);
this.zze = zzaaqVar;
zzblVar = zzzwVar.zzd;
zzcw.zzb(zzblVar);
this.zzf = zzblVar;
list = zzzwVar.zze;
this.zzg = list;
this.zzh = new zzzh(zzaalVar, zzaaqVar);
CopyOnWriteArraySet copyOnWriteArraySet = new CopyOnWriteArraySet();
this.zzj = copyOnWriteArraySet;
this.zzo = 0;
new zzz().zzag();
copyOnWriteArraySet.add(zzaabVar);
}
public static /* bridge */ /* synthetic */ zzcb zzc(zzaah zzaahVar, zzab zzabVar) {
zzcw.zzf(zzaahVar.zzo == 0);
zzk zzw = zzw(zzabVar.zzC);
if (zzw.zzd == 7 && zzei.zza < 34) {
zzi zzc = zzw.zzc();
zzc.zzd(6);
zzw = zzc.zzg();
}
zzk zzkVar = zzw;
zzcx zzcxVar = zzaahVar.zzi;
Looper myLooper = Looper.myLooper();
zzcw.zzb(myLooper);
final zzdh zzd = zzcxVar.zzd(myLooper, null);
zzaahVar.zzl = zzd;
try {
zzbl zzblVar = zzaahVar.zzf;
Context context = zzaahVar.zzb;
zzn zznVar = zzn.zza;
Objects.requireNonNull(zzd);
zzblVar.zza(context, zzkVar, zznVar, zzaahVar, new Executor() { // from class: com.google.android.gms.internal.ads.zzzv
@Override // java.util.concurrent.Executor
public final void execute(Runnable runnable) {
zzdh.this.zzh(runnable);
}
}, zzfxn.zzn(), 0L);
Pair pair = zzaahVar.zzm;
if (pair == null) {
throw null;
}
zzdz zzdzVar = (zzdz) pair.second;
zzdzVar.zzb();
zzdzVar.zza();
throw null;
} catch (zzbz e) {
throw new zzabg(e, zzabVar);
}
}
public static /* bridge */ /* synthetic */ void zzl(final zzaah zzaahVar, boolean z) {
if (zzaahVar.zzo == 1) {
zzaahVar.zzn++;
zzaahVar.zzh.zzd(z);
zzdh zzdhVar = zzaahVar.zzl;
zzcw.zzb(zzdhVar);
zzdhVar.zzh(new Runnable() { // from class: com.google.android.gms.internal.ads.zzzt
@Override // java.lang.Runnable
public final void run() {
zzaah.this.zzr();
}
});
}
}
public static /* bridge */ /* synthetic */ boolean zzu(zzaah zzaahVar, long j) {
return zzaahVar.zzn == 0 && zzaahVar.zze.zze(j);
}
/* JADX INFO: Access modifiers changed from: private */
public static zzk zzw(@Nullable zzk zzkVar) {
return (zzkVar == null || !zzkVar.zzf()) ? zzk.zza : zzkVar;
}
public final zzabh zzh() {
return this.zzc;
}
public final void zzq() {
zzdz zzdzVar = zzdz.zza;
zzdzVar.zzb();
zzdzVar.zza();
this.zzm = null;
}
public final /* synthetic */ void zzr() {
this.zzn--;
}
public final void zzs() {
if (this.zzo == 2) {
return;
}
zzdh zzdhVar = this.zzl;
if (zzdhVar != null) {
zzdhVar.zze(null);
}
this.zzm = null;
this.zzo = 2;
}
public final void zzt(Surface surface, zzdz zzdzVar) {
Pair pair = this.zzm;
if (pair != null && ((Surface) pair.first).equals(surface) && ((zzdz) this.zzm.second).equals(zzdzVar)) {
return;
}
this.zzm = Pair.create(surface, zzdzVar);
zzdzVar.zzb();
zzdzVar.zza();
}
}

View File

@@ -0,0 +1,9 @@
package com.google.android.gms.internal.ads;
import android.media.MediaFormat;
import androidx.annotation.Nullable;
/* loaded from: classes3.dex */
public interface zzaai {
void zza(long j, long j2, zzab zzabVar, @Nullable MediaFormat mediaFormat);
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.internal.ads;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes3.dex */
public final class zzaaj {
private long zza = C.TIME_UNSET;
private long zzb = C.TIME_UNSET;
public static /* bridge */ /* synthetic */ void zzg(zzaaj zzaajVar) {
zzaajVar.zza = C.TIME_UNSET;
zzaajVar.zzb = C.TIME_UNSET;
}
public final long zzc() {
return this.zza;
}
public final long zzd() {
return this.zzb;
}
}

View File

@@ -0,0 +1,5 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public interface zzaak {
}

View File

@@ -0,0 +1,143 @@
package com.google.android.gms.internal.ads;
import android.content.Context;
import android.view.Surface;
import androidx.annotation.FloatRange;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes3.dex */
public final class zzaal {
private final zzaak zza;
private final zzaap zzb;
private boolean zzc;
private long zzf;
private boolean zzi;
private int zzd = 0;
private long zze = C.TIME_UNSET;
private long zzg = C.TIME_UNSET;
private long zzh = C.TIME_UNSET;
private float zzj = 1.0f;
private zzcx zzk = zzcx.zza;
public zzaal(Context context, zzaak zzaakVar, long j) {
this.zza = zzaakVar;
this.zzb = new zzaap(context);
}
private final void zzq(int i) {
this.zzd = Math.min(this.zzd, i);
}
/* JADX WARN: Code restructure failed: missing block: B:51:0x0079, code lost:
if (r15 > 100000) goto L35;
*/
/* JADX WARN: Code restructure failed: missing block: B:55:0x0084, code lost:
if (r20 >= r24) goto L35;
*/
/* JADX WARN: Code restructure failed: missing block: B:58:0x0089, code lost:
if (r17.zzc != false) goto L35;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final int zza(long r18, long r20, long r22, long r24, boolean r26, com.google.android.gms.internal.ads.zzaaj r27) throws com.google.android.gms.internal.ads.zzib {
/*
Method dump skipped, instructions count: 255
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzaal.zza(long, long, long, long, boolean, com.google.android.gms.internal.ads.zzaaj):int");
}
public final void zzb() {
if (this.zzd == 0) {
this.zzd = 1;
}
}
public final void zzc(boolean z) {
this.zzi = z;
this.zzh = C.TIME_UNSET;
}
public final void zzd() {
zzq(0);
}
public final void zze(boolean z) {
this.zzd = z ? 1 : 0;
}
public final void zzf() {
zzq(2);
}
public final void zzg() {
this.zzc = true;
this.zzf = zzei.zzs(this.zzk.zzb());
this.zzb.zzg();
}
public final void zzh() {
this.zzc = false;
this.zzh = C.TIME_UNSET;
this.zzb.zzh();
}
public final void zzi() {
this.zzb.zzf();
this.zzg = C.TIME_UNSET;
this.zze = C.TIME_UNSET;
zzq(1);
this.zzh = C.TIME_UNSET;
}
public final void zzj(int i) {
this.zzb.zzj(i);
}
public final void zzk(zzcx zzcxVar) {
this.zzk = zzcxVar;
}
public final void zzl(float f) {
this.zzb.zzc(f);
}
public final void zzm(@Nullable Surface surface) {
this.zzb.zzi(surface);
zzq(1);
}
public final void zzn(@FloatRange(from = 0.0d, fromInclusive = false) float f) {
zzcw.zzd(f > 0.0f);
if (f == this.zzj) {
return;
}
this.zzj = f;
this.zzb.zze(f);
}
public final boolean zzo(boolean z) {
if (!z || this.zzd != 3) {
if (this.zzh == C.TIME_UNSET) {
return false;
}
r2 = this.zzk.zzb() < this.zzh;
return r2;
}
this.zzh = C.TIME_UNSET;
return r2;
}
public final boolean zzp() {
int i = this.zzd;
this.zzd = 3;
this.zzf = zzei.zzs(this.zzk.zzb());
return i != 3;
}
}

View File

@@ -0,0 +1,16 @@
package com.google.android.gms.internal.ads;
import android.view.Surface;
import androidx.annotation.RequiresApi;
@RequiresApi(30)
/* loaded from: classes3.dex */
final class zzaam {
public static void zza(Surface surface, float f) {
try {
surface.setFrameRate(f, f == 0.0f ? 0 : 1);
} catch (IllegalStateException e) {
zzdo.zzd("VideoFrameReleaseHelper", "Failed to call Surface.setFrameRate", e);
}
}
}

View File

@@ -0,0 +1,43 @@
package com.google.android.gms.internal.ads;
import android.hardware.display.DisplayManager;
import android.view.Display;
/* loaded from: classes3.dex */
final class zzaan implements DisplayManager.DisplayListener {
final /* synthetic */ zzaap zza;
private final DisplayManager zzb;
public zzaan(zzaap zzaapVar, DisplayManager displayManager) {
this.zza = zzaapVar;
this.zzb = displayManager;
}
private final Display zzc() {
return this.zzb.getDisplay(0);
}
@Override // android.hardware.display.DisplayManager.DisplayListener
public final void onDisplayAdded(int i) {
}
@Override // android.hardware.display.DisplayManager.DisplayListener
public final void onDisplayChanged(int i) {
if (i == 0) {
zzaap.zzb(this.zza, zzc());
}
}
@Override // android.hardware.display.DisplayManager.DisplayListener
public final void onDisplayRemoved(int i) {
}
public final void zza() {
this.zzb.registerDisplayListener(this, zzei.zzy(null));
zzaap.zzb(this.zza, zzc());
}
public final void zzb() {
this.zzb.unregisterDisplayListener(this);
}
}

View File

@@ -0,0 +1,83 @@
package com.google.android.gms.internal.ads;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Message;
import android.view.Choreographer;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes3.dex */
final class zzaao implements Choreographer.FrameCallback, Handler.Callback {
private static final zzaao zzb = new zzaao();
public volatile long zza = C.TIME_UNSET;
private final Handler zzc;
private final HandlerThread zzd;
private Choreographer zze;
private int zzf;
private zzaao() {
HandlerThread handlerThread = new HandlerThread("ExoPlayer:FrameReleaseChoreographer");
this.zzd = handlerThread;
handlerThread.start();
Handler handler = new Handler(handlerThread.getLooper(), this);
this.zzc = handler;
handler.sendEmptyMessage(1);
}
public static zzaao zza() {
return zzb;
}
@Override // android.os.Handler.Callback
public final boolean handleMessage(Message message) {
int i = message.what;
if (i == 1) {
try {
this.zze = Choreographer.getInstance();
} catch (RuntimeException e) {
zzdo.zzg("VideoFrameReleaseHelper", "Vsync sampling disabled due to platform error", e);
}
return true;
}
if (i == 2) {
Choreographer choreographer = this.zze;
if (choreographer != null) {
int i2 = this.zzf + 1;
this.zzf = i2;
if (i2 == 1) {
choreographer.postFrameCallback(this);
}
}
return true;
}
if (i != 3) {
return false;
}
Choreographer choreographer2 = this.zze;
if (choreographer2 != null) {
int i3 = this.zzf - 1;
this.zzf = i3;
if (i3 == 0) {
choreographer2.removeFrameCallback(this);
this.zza = C.TIME_UNSET;
}
}
return true;
}
public final void zzb() {
this.zzc.sendEmptyMessage(2);
}
public final void zzc() {
this.zzc.sendEmptyMessage(3);
}
@Override // android.view.Choreographer.FrameCallback
public final void doFrame(long j) {
this.zza = j;
Choreographer choreographer = this.zze;
choreographer.getClass();
choreographer.postFrameCallbackDelayed(this, 500L);
}
}

View File

@@ -0,0 +1,218 @@
package com.google.android.gms.internal.ads;
import android.content.Context;
import android.hardware.display.DisplayManager;
import android.view.Display;
import android.view.Surface;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes3.dex */
public final class zzaap {
private final zzzj zza = new zzzj();
@Nullable
private final zzaan zzb;
@Nullable
private final zzaao zzc;
private boolean zzd;
@Nullable
private Surface zze;
private float zzf;
private float zzg;
private float zzh;
private float zzi;
private int zzj;
private long zzk;
private long zzl;
private long zzm;
private long zzn;
private long zzo;
private long zzp;
private long zzq;
public static /* bridge */ /* synthetic */ void zzb(zzaap zzaapVar, Display display) {
if (display != null) {
long refreshRate = (long) (1.0E9d / display.getRefreshRate());
zzaapVar.zzk = refreshRate;
zzaapVar.zzl = (refreshRate * 80) / 100;
} else {
zzdo.zzf("VideoFrameReleaseHelper", "Unable to query display refresh rate");
zzaapVar.zzk = C.TIME_UNSET;
zzaapVar.zzl = C.TIME_UNSET;
}
}
private final void zzk() {
Surface surface;
if (zzei.zza < 30 || (surface = this.zze) == null || this.zzj == Integer.MIN_VALUE || this.zzh == 0.0f) {
return;
}
this.zzh = 0.0f;
zzaam.zza(surface, 0.0f);
}
private final void zzl() {
this.zzm = 0L;
this.zzp = -1L;
this.zzn = -1L;
}
private final void zzm() {
if (zzei.zza < 30 || this.zze == null) {
return;
}
float zza = this.zza.zzg() ? this.zza.zza() : this.zzf;
float f = this.zzg;
if (zza != f) {
if (zza != -1.0f && f != -1.0f) {
float f2 = 1.0f;
if (this.zza.zzg() && this.zza.zzd() >= 5000000000L) {
f2 = 0.02f;
}
if (Math.abs(zza - this.zzg) < f2) {
return;
}
} else if (zza == -1.0f && this.zza.zzb() < 30) {
return;
}
this.zzg = zza;
zzn(false);
}
}
private final void zzn(boolean z) {
Surface surface;
if (zzei.zza < 30 || (surface = this.zze) == null || this.zzj == Integer.MIN_VALUE) {
return;
}
float f = 0.0f;
if (this.zzd) {
float f2 = this.zzg;
if (f2 != -1.0f) {
f = this.zzi * f2;
}
}
if (z || this.zzh != f) {
this.zzh = f;
zzaam.zza(surface, f);
}
}
public final long zza(long j) {
long j2;
if (this.zzp != -1 && this.zza.zzg()) {
long zzc = this.zza.zzc();
long j3 = this.zzq + ((long) ((zzc * (this.zzm - this.zzp)) / this.zzi));
if (Math.abs(j - j3) > 20000000) {
zzl();
} else {
j = j3;
}
}
this.zzn = this.zzm;
this.zzo = j;
zzaao zzaaoVar = this.zzc;
if (zzaaoVar != null && this.zzk != C.TIME_UNSET) {
long j4 = zzaaoVar.zza;
if (j4 != C.TIME_UNSET) {
long j5 = this.zzk;
long j6 = j4 + (((j - j4) / j5) * j5);
if (j <= j6) {
j2 = j6 - j5;
} else {
j6 = j5 + j6;
j2 = j6;
}
long j7 = this.zzl;
if (j6 - j >= j - j2) {
j6 = j2;
}
return j6 - j7;
}
}
return j;
}
public final void zzc(float f) {
this.zzf = f;
this.zza.zzf();
zzm();
}
public final void zzd(long j) {
long j2 = this.zzn;
if (j2 != -1) {
this.zzp = j2;
this.zzq = this.zzo;
}
this.zzm++;
this.zza.zze(j * 1000);
zzm();
}
public final void zze(float f) {
this.zzi = f;
zzl();
zzn(false);
}
public final void zzf() {
zzl();
}
public final void zzg() {
this.zzd = true;
zzl();
if (this.zzb != null) {
zzaao zzaaoVar = this.zzc;
zzaaoVar.getClass();
zzaaoVar.zzb();
this.zzb.zza();
}
zzn(false);
}
public final void zzh() {
this.zzd = false;
zzaan zzaanVar = this.zzb;
if (zzaanVar != null) {
zzaanVar.zzb();
zzaao zzaaoVar = this.zzc;
zzaaoVar.getClass();
zzaaoVar.zzc();
}
zzk();
}
public final void zzi(@Nullable Surface surface) {
if (this.zze == surface) {
return;
}
zzk();
this.zze = surface;
zzn(true);
}
public final void zzj(int i) {
if (this.zzj == i) {
return;
}
this.zzj = i;
zzn(true);
}
public zzaap(@Nullable Context context) {
DisplayManager displayManager;
zzaan zzaanVar = (context == null || (displayManager = (DisplayManager) context.getSystemService("display")) == null) ? null : new zzaan(this, displayManager);
this.zzb = zzaanVar;
this.zzc = zzaanVar != null ? zzaao.zza() : null;
this.zzk = C.TIME_UNSET;
this.zzl = C.TIME_UNSET;
this.zzf = -1.0f;
this.zzi = 1.0f;
this.zzj = 0;
}
}

View File

@@ -0,0 +1,108 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArraySet;
/* loaded from: classes3.dex */
final class zzaaq {
private final zzaal zza;
@Nullable
private zzcd zzf;
private long zzh;
private final zzzx zzj;
private final zzaaj zzb = new zzaaj();
private final zzee zzc = new zzee(10);
private final zzee zzd = new zzee(10);
private final zzdq zze = new zzdq(16);
private zzcd zzg = zzcd.zza;
private long zzi = C.TIME_UNSET;
public zzaaq(zzzx zzzxVar, zzaal zzaalVar) {
this.zzj = zzzxVar;
this.zza = zzaalVar;
}
private static Object zzf(zzee zzeeVar) {
zzcw.zzd(zzeeVar.zza() > 0);
while (zzeeVar.zza() > 1) {
zzeeVar.zzb();
}
Object zzb = zzeeVar.zzb();
zzb.getClass();
return zzb;
}
public final void zza() {
this.zze.zzc();
this.zzi = C.TIME_UNSET;
zzee zzeeVar = this.zzd;
if (zzeeVar.zza() > 0) {
this.zzd.zzd(0L, Long.valueOf(((Long) zzf(zzeeVar)).longValue()));
}
if (this.zzf != null) {
this.zzc.zze();
return;
}
zzee zzeeVar2 = this.zzc;
if (zzeeVar2.zza() > 0) {
this.zzf = (zzcd) zzf(zzeeVar2);
}
}
public final void zzb(int i, int i2) {
this.zzf = new zzcd(i, i2, 1.0f);
}
public final void zzc(long j, long j2) {
this.zzd.zzd(j, Long.valueOf(j2));
}
public final void zzd(long j, long j2) throws zzib {
CopyOnWriteArraySet copyOnWriteArraySet;
while (true) {
zzdq zzdqVar = this.zze;
if (zzdqVar.zzd()) {
return;
}
zzee zzeeVar = this.zzd;
long zza = zzdqVar.zza();
Long l = (Long) zzeeVar.zzc(zza);
if (l != null && l.longValue() != this.zzh) {
this.zzh = l.longValue();
this.zza.zzf();
}
int zza2 = this.zza.zza(zza, j, j2, this.zzh, false, this.zzb);
if (zza2 != 0 && zza2 != 1) {
if (zza2 == 2 || zza2 == 3 || zza2 == 4) {
this.zzi = zza;
this.zze.zzb();
zzzx zzzxVar = this.zzj;
copyOnWriteArraySet = zzzxVar.zza.zzj;
Iterator it = copyOnWriteArraySet.iterator();
while (it.hasNext()) {
((zzaac) it.next()).zzz(zzzxVar.zza);
}
zzcw.zzb(null);
throw null;
}
return;
}
this.zzi = zza;
long longValue = Long.valueOf(this.zze.zzb()).longValue();
zzcd zzcdVar = (zzcd) this.zzc.zzc(longValue);
if (zzcdVar != null && !zzcdVar.equals(zzcd.zza) && !zzcdVar.equals(this.zzg)) {
this.zzg = zzcdVar;
this.zzj.zza(zzcdVar);
}
this.zzj.zzb(zza2 == 0 ? -1L : this.zzb.zzd(), longValue, this.zza.zzp());
}
}
public final boolean zze(long j) {
long j2 = this.zzi;
return j2 != C.TIME_UNSET && j2 >= j;
}
}

View File

@@ -0,0 +1,176 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import com.ironsource.mediationsdk.logger.IronSourceError;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
/* loaded from: classes3.dex */
public final class zzab {
public static final /* synthetic */ int zzL = 0;
@Nullable
public final byte[] zzA;
public final int zzB;
@Nullable
public final zzk zzC;
public final int zzD;
public final int zzE;
public final int zzF;
public final int zzG;
public final int zzH;
public final int zzI;
public final int zzJ;
public final int zzK;
private int zzM;
@Nullable
public final String zza;
@Nullable
public final String zzb;
public final List zzc;
@Nullable
public final String zzd;
public final int zze;
public final int zzf;
public final int zzg;
public final int zzh;
public final int zzi;
public final int zzj;
@Nullable
public final String zzk;
@Nullable
public final zzay zzl;
@Nullable
public final Object zzm;
@Nullable
public final String zzn;
@Nullable
public final String zzo;
public final int zzp;
public final int zzq;
public final List zzr;
@Nullable
public final zzu zzs;
public final long zzt;
public final boolean zzu;
public final int zzv;
public final int zzw;
public final float zzx;
public final int zzy;
public final float zzz;
static {
new zzab(new zzz());
}
/* JADX WARN: Code restructure failed: missing block: B:54:0x008a, code lost:
if (r0 == null) goto L23;
*/
/* JADX WARN: Incorrect condition in loop: B:59:0x0097 */
/* JADX WARN: Removed duplicated region for block: B:11:0x0115 */
/* JADX WARN: Removed duplicated region for block: B:14:0x014a */
/* JADX WARN: Removed duplicated region for block: B:17:0x015c */
/* JADX WARN: Removed duplicated region for block: B:20:0x018f */
/* JADX WARN: Removed duplicated region for block: B:23:0x019e */
/* JADX WARN: Removed duplicated region for block: B:26:0x01b6 A[ADDED_TO_REGION] */
/* JADX WARN: Removed duplicated region for block: B:32:0x0191 */
/* JADX WARN: Removed duplicated region for block: B:33:0x015f */
/* JADX WARN: Removed duplicated region for block: B:34:0x014c */
/* JADX WARN: Removed duplicated region for block: B:35:0x011a */
/* JADX WARN: Removed duplicated region for block: B:8:0x00e5 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private zzab(com.google.android.gms.internal.ads.zzz r8) {
/*
Method dump skipped, instructions count: 450
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzab.<init>(com.google.android.gms.internal.ads.zzz):void");
}
public final boolean equals(@Nullable Object obj) {
int i;
if (this == obj) {
return true;
}
if (obj != null && zzab.class == obj.getClass()) {
zzab zzabVar = (zzab) obj;
int i2 = this.zzM;
if ((i2 == 0 || (i = zzabVar.zzM) == 0 || i2 == i) && this.zze == zzabVar.zze && this.zzf == zzabVar.zzf && this.zzh == zzabVar.zzh && this.zzi == zzabVar.zzi && this.zzp == zzabVar.zzp && this.zzt == zzabVar.zzt && this.zzv == zzabVar.zzv && this.zzw == zzabVar.zzw && this.zzy == zzabVar.zzy && this.zzB == zzabVar.zzB && this.zzD == zzabVar.zzD && this.zzE == zzabVar.zzE && this.zzF == zzabVar.zzF && this.zzG == zzabVar.zzG && this.zzH == zzabVar.zzH && this.zzI == zzabVar.zzI && this.zzK == zzabVar.zzK && Float.compare(this.zzx, zzabVar.zzx) == 0 && Float.compare(this.zzz, zzabVar.zzz) == 0 && Objects.equals(this.zza, zzabVar.zza) && Objects.equals(this.zzb, zzabVar.zzb) && this.zzc.equals(zzabVar.zzc) && Objects.equals(this.zzk, zzabVar.zzk) && Objects.equals(this.zzn, zzabVar.zzn) && Objects.equals(this.zzo, zzabVar.zzo) && Objects.equals(this.zzd, zzabVar.zzd) && Arrays.equals(this.zzA, zzabVar.zzA) && Objects.equals(this.zzl, zzabVar.zzl) && Objects.equals(this.zzC, zzabVar.zzC) && Objects.equals(this.zzs, zzabVar.zzs) && zzd(zzabVar)) {
return true;
}
}
return false;
}
public final int hashCode() {
int i = this.zzM;
if (i != 0) {
return i;
}
String str = this.zza;
int hashCode = str == null ? 0 : str.hashCode();
String str2 = this.zzb;
int hashCode2 = ((((hashCode + IronSourceError.ERROR_NON_EXISTENT_INSTANCE) * 31) + (str2 == null ? 0 : str2.hashCode())) * 31) + this.zzc.hashCode();
String str3 = this.zzd;
int hashCode3 = ((((((((((hashCode2 * 31) + (str3 == null ? 0 : str3.hashCode())) * 31) + this.zze) * 31) + this.zzf) * 961) + this.zzh) * 31) + this.zzi) * 31;
String str4 = this.zzk;
int hashCode4 = (hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
zzay zzayVar = this.zzl;
int hashCode5 = (hashCode4 + (zzayVar == null ? 0 : zzayVar.hashCode())) * 961;
String str5 = this.zzn;
int hashCode6 = (hashCode5 + (str5 == null ? 0 : str5.hashCode())) * 31;
int hashCode7 = ((((((((((((((((((((((((((((((((((hashCode6 + (this.zzo != null ? r2.hashCode() : 0)) * 31) + this.zzp) * 31) + ((int) this.zzt)) * 31) + this.zzv) * 31) + this.zzw) * 31) + Float.floatToIntBits(this.zzx)) * 31) + this.zzy) * 31) + Float.floatToIntBits(this.zzz)) * 31) + this.zzB) * 31) + this.zzD) * 31) + this.zzE) * 31) + this.zzF) * 31) + this.zzG) * 31) + this.zzH) * 31) + this.zzI) * 31) - 1) * 31) - 1) * 31) + this.zzK;
this.zzM = hashCode7;
return hashCode7;
}
public final String toString() {
return "Format(" + this.zza + ", " + this.zzb + ", " + this.zzn + ", " + this.zzo + ", " + this.zzk + ", " + this.zzj + ", " + this.zzd + ", [" + this.zzv + ", " + this.zzw + ", " + this.zzx + ", " + String.valueOf(this.zzC) + "], [" + this.zzD + ", " + this.zzE + "])";
}
public final int zza() {
int i;
int i2 = this.zzv;
if (i2 == -1 || (i = this.zzw) == -1) {
return -1;
}
return i2 * i;
}
public final zzz zzb() {
return new zzz(this, null);
}
public final zzab zzc(int i) {
zzz zzzVar = new zzz(this, null);
zzzVar.zzD(i);
return new zzab(zzzVar);
}
public final boolean zzd(zzab zzabVar) {
if (this.zzr.size() != zzabVar.zzr.size()) {
return false;
}
for (int i = 0; i < this.zzr.size(); i++) {
if (!Arrays.equals((byte[]) this.zzr.get(i), (byte[]) zzabVar.zzr.get(i))) {
return false;
}
}
return true;
}
}

View File

@@ -0,0 +1,193 @@
package com.google.android.gms.internal.ads;
import android.os.Handler;
import android.os.SystemClock;
import androidx.annotation.Nullable;
/* loaded from: classes3.dex */
public final class zzabb {
@Nullable
private final Handler zza;
@Nullable
private final zzabc zzb;
public zzabb(@Nullable Handler handler, @Nullable zzabc zzabcVar) {
this.zza = zzabcVar == null ? null : handler;
this.zzb = zzabcVar;
}
public final void zza(final String str, final long j, final long j2) {
Handler handler = this.zza;
if (handler != null) {
handler.post(new Runnable() { // from class: com.google.android.gms.internal.ads.zzaar
@Override // java.lang.Runnable
public final void run() {
zzabb.this.zzg(str, j, j2);
}
});
}
}
public final void zzb(final String str) {
Handler handler = this.zza;
if (handler != null) {
handler.post(new Runnable() { // from class: com.google.android.gms.internal.ads.zzaba
@Override // java.lang.Runnable
public final void run() {
zzabb.this.zzh(str);
}
});
}
}
public final void zzc(final zzhs zzhsVar) {
zzhsVar.zza();
Handler handler = this.zza;
if (handler != null) {
handler.post(new Runnable() { // from class: com.google.android.gms.internal.ads.zzaaz
@Override // java.lang.Runnable
public final void run() {
zzabb.this.zzi(zzhsVar);
}
});
}
}
public final void zzd(final int i, final long j) {
Handler handler = this.zza;
if (handler != null) {
handler.post(new Runnable() { // from class: com.google.android.gms.internal.ads.zzaat
@Override // java.lang.Runnable
public final void run() {
zzabb.this.zzj(i, j);
}
});
}
}
public final void zze(final zzhs zzhsVar) {
Handler handler = this.zza;
if (handler != null) {
handler.post(new Runnable() { // from class: com.google.android.gms.internal.ads.zzaax
@Override // java.lang.Runnable
public final void run() {
zzabb.this.zzk(zzhsVar);
}
});
}
}
public final void zzf(final zzab zzabVar, @Nullable final zzht zzhtVar) {
Handler handler = this.zza;
if (handler != null) {
handler.post(new Runnable() { // from class: com.google.android.gms.internal.ads.zzaay
@Override // java.lang.Runnable
public final void run() {
zzabb.this.zzl(zzabVar, zzhtVar);
}
});
}
}
public final /* synthetic */ void zzg(String str, long j, long j2) {
int i = zzei.zza;
this.zzb.zzp(str, j, j2);
}
public final /* synthetic */ void zzh(String str) {
int i = zzei.zza;
this.zzb.zzq(str);
}
public final /* synthetic */ void zzi(zzhs zzhsVar) {
zzhsVar.zza();
int i = zzei.zza;
this.zzb.zzr(zzhsVar);
}
public final /* synthetic */ void zzj(int i, long j) {
int i2 = zzei.zza;
this.zzb.zzl(i, j);
}
public final /* synthetic */ void zzk(zzhs zzhsVar) {
int i = zzei.zza;
this.zzb.zzs(zzhsVar);
}
public final /* synthetic */ void zzl(zzab zzabVar, zzht zzhtVar) {
int i = zzei.zza;
this.zzb.zzu(zzabVar, zzhtVar);
}
public final /* synthetic */ void zzm(Object obj, long j) {
int i = zzei.zza;
this.zzb.zzm(obj, j);
}
public final /* synthetic */ void zzn(long j, int i) {
int i2 = zzei.zza;
this.zzb.zzt(j, i);
}
public final /* synthetic */ void zzo(Exception exc) {
int i = zzei.zza;
this.zzb.zzo(exc);
}
public final /* synthetic */ void zzp(zzcd zzcdVar) {
int i = zzei.zza;
this.zzb.zzv(zzcdVar);
}
public final void zzq(final Object obj) {
Handler handler = this.zza;
if (handler != null) {
final long elapsedRealtime = SystemClock.elapsedRealtime();
handler.post(new Runnable() { // from class: com.google.android.gms.internal.ads.zzaau
@Override // java.lang.Runnable
public final void run() {
zzabb.this.zzm(obj, elapsedRealtime);
}
});
}
}
public final void zzr(final long j, final int i) {
Handler handler = this.zza;
if (handler != null) {
handler.post(new Runnable() { // from class: com.google.android.gms.internal.ads.zzaav
@Override // java.lang.Runnable
public final void run() {
zzabb.this.zzn(j, i);
}
});
}
}
public final void zzs(final Exception exc) {
Handler handler = this.zza;
if (handler != null) {
handler.post(new Runnable() { // from class: com.google.android.gms.internal.ads.zzaaw
@Override // java.lang.Runnable
public final void run() {
zzabb.this.zzo(exc);
}
});
}
}
public final void zzt(final zzcd zzcdVar) {
Handler handler = this.zza;
if (handler != null) {
handler.post(new Runnable() { // from class: com.google.android.gms.internal.ads.zzaas
@Override // java.lang.Runnable
public final void run() {
zzabb.this.zzp(zzcdVar);
}
});
}
}
}

View File

@@ -0,0 +1,26 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
/* loaded from: classes3.dex */
public interface zzabc {
void zzl(int i, long j);
void zzm(Object obj, long j);
void zzo(Exception exc);
void zzp(String str, long j, long j2);
void zzq(String str);
void zzr(zzhs zzhsVar);
void zzs(zzhs zzhsVar);
void zzt(long j, int i);
void zzu(zzab zzabVar, @Nullable zzht zzhtVar);
void zzv(zzcd zzcdVar);
}

View File

@@ -0,0 +1,16 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
final class zzabd implements zzabe {
@Override // com.google.android.gms.internal.ads.zzabe
public final void zza(zzabh zzabhVar) {
}
@Override // com.google.android.gms.internal.ads.zzabe
public final void zzb(zzabh zzabhVar) {
}
@Override // com.google.android.gms.internal.ads.zzabe
public final void zzc(zzabh zzabhVar, zzcd zzcdVar) {
}
}

View File

@@ -0,0 +1,12 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public interface zzabe {
public static final zzabe zzb = new zzabd();
void zza(zzabh zzabhVar);
void zzb(zzabh zzabhVar);
void zzc(zzabh zzabhVar, zzcd zzcdVar);
}

View File

@@ -0,0 +1,5 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public interface zzabf {
}

View File

@@ -0,0 +1,11 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzabg extends Exception {
public final zzab zza;
public zzabg(Throwable th, zzab zzabVar) {
super(th);
this.zza = zzabVar;
}
}

View File

@@ -0,0 +1,57 @@
package com.google.android.gms.internal.ads;
import android.view.Surface;
import androidx.annotation.FloatRange;
import java.util.List;
import java.util.concurrent.Executor;
/* loaded from: classes3.dex */
public interface zzabh {
Surface zza();
void zzb();
void zzc();
void zzd(boolean z);
void zze(zzab zzabVar) throws zzabg;
void zzf(boolean z);
void zzg(int i, zzab zzabVar);
void zzh();
void zzi(boolean z);
void zzj();
void zzk();
void zzl();
void zzm(long j, long j2) throws zzabg;
void zzn(int i);
void zzo(zzabe zzabeVar, Executor executor);
void zzp(Surface surface, zzdz zzdzVar);
void zzq(@FloatRange(from = 0.0d, fromInclusive = false) float f);
void zzr(long j, long j2, long j3, long j4);
void zzs(List list);
void zzt(zzaai zzaaiVar);
boolean zzu(long j, boolean z, long j2, long j3, zzabf zzabfVar) throws zzabg;
boolean zzv();
boolean zzw();
boolean zzx(boolean z);
}

View File

@@ -0,0 +1,14 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzabi {
public final int zza;
public final int zzb;
public final String zzc;
public /* synthetic */ zzabi(int i, int i2, String str, zzabj zzabjVar) {
this.zza = i;
this.zzb = i2;
this.zzc = str;
}
}

View File

@@ -0,0 +1,183 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzabk {
public static final /* synthetic */ int zza = 0;
private static final int[] zzb = {96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350};
private static final int[] zzc = {0, 1, 2, 3, 4, 5, 6, 8, -1, -1, -1, 7, 8, -1, 8, -1};
public static zzabi zza(byte[] bArr) throws zzbc {
return zzb(new zzdx(bArr, bArr.length), false);
}
/* JADX WARN: Code restructure failed: missing block: B:46:0x00b4, code lost:
if (r11 != 3) goto L58;
*/
/* JADX WARN: Removed duplicated region for block: B:32:0x008f */
/* JADX WARN: Removed duplicated region for block: B:44:0x00ae */
/*
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.zzabi zzb(com.google.android.gms.internal.ads.zzdx r11, boolean r12) throws com.google.android.gms.internal.ads.zzbc {
/*
int r0 = zzc(r11)
int r1 = zzd(r11)
r2 = 4
int r3 = r11.zzd(r2)
java.lang.StringBuilder r4 = new java.lang.StringBuilder
r4.<init>()
java.lang.String r5 = "mp4a.40."
r4.append(r5)
r4.append(r0)
java.lang.String r4 = r4.toString()
r5 = 5
r6 = 22
if (r0 == r5) goto L27
r5 = 29
if (r0 != r5) goto L35
L27:
int r1 = zzd(r11)
int r0 = zzc(r11)
if (r0 != r6) goto L35
int r3 = r11.zzd(r2)
L35:
if (r12 == 0) goto Ld4
r12 = 17
r5 = 6
r7 = 1
r8 = 2
r9 = 3
if (r0 == r7) goto L65
if (r0 == r8) goto L65
if (r0 == r9) goto L65
if (r0 == r2) goto L65
if (r0 == r5) goto L65
r2 = 7
if (r0 == r2) goto L65
if (r0 == r12) goto L65
switch(r0) {
case 19: goto L65;
case 20: goto L65;
case 21: goto L65;
case 22: goto L65;
case 23: goto L65;
default: goto L4f;
}
L4f:
java.lang.StringBuilder r11 = new java.lang.StringBuilder
r11.<init>()
java.lang.String r12 = "Unsupported audio object type: "
r11.append(r12)
r11.append(r0)
java.lang.String r11 = r11.toString()
com.google.android.gms.internal.ads.zzbc r11 = com.google.android.gms.internal.ads.zzbc.zzc(r11)
throw r11
L65:
boolean r2 = r11.zzp()
if (r2 == 0) goto L72
java.lang.String r2 = "AacUtil"
java.lang.String r10 = "Unexpected frameLengthFlag = 1"
com.google.android.gms.internal.ads.zzdo.zzf(r2, r10)
L72:
boolean r2 = r11.zzp()
if (r2 == 0) goto L7d
r2 = 14
r11.zzn(r2)
L7d:
boolean r2 = r11.zzp()
if (r3 == 0) goto Lce
r10 = 20
if (r0 == r5) goto L8a
if (r0 != r10) goto L8d
r0 = r10
L8a:
r11.zzn(r9)
L8d:
if (r2 == 0) goto Laa
if (r0 != r6) goto L97
r2 = 16
r11.zzn(r2)
goto L98
L97:
r6 = r0
L98:
if (r6 == r12) goto La4
r12 = 19
if (r6 == r12) goto La4
if (r6 == r10) goto La4
r12 = 23
if (r6 != r12) goto La7
La4:
r11.zzn(r9)
La7:
r11.zzn(r7)
Laa:
switch(r0) {
case 17: goto Lae;
case 18: goto Lad;
case 19: goto Lae;
case 20: goto Lae;
case 21: goto Lae;
case 22: goto Lae;
case 23: goto Lae;
default: goto Lad;
}
Lad:
goto Ld4
Lae:
int r11 = r11.zzd(r8)
if (r11 == r8) goto Lb7
if (r11 == r9) goto Lb8
goto Ld4
Lb7:
r9 = r11
Lb8:
java.lang.StringBuilder r11 = new java.lang.StringBuilder
r11.<init>()
java.lang.String r12 = "Unsupported epConfig: "
r11.append(r12)
r11.append(r9)
java.lang.String r11 = r11.toString()
com.google.android.gms.internal.ads.zzbc r11 = com.google.android.gms.internal.ads.zzbc.zzc(r11)
throw r11
Lce:
java.lang.UnsupportedOperationException r11 = new java.lang.UnsupportedOperationException
r11.<init>()
throw r11
Ld4:
int[] r11 = com.google.android.gms.internal.ads.zzabk.zzc
r11 = r11[r3]
r12 = -1
r0 = 0
if (r11 == r12) goto Le2
com.google.android.gms.internal.ads.zzabi r12 = new com.google.android.gms.internal.ads.zzabi
r12.<init>(r1, r11, r4, r0)
return r12
Le2:
com.google.android.gms.internal.ads.zzbc r11 = com.google.android.gms.internal.ads.zzbc.zza(r0, r0)
throw r11
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzabk.zzb(com.google.android.gms.internal.ads.zzdx, boolean):com.google.android.gms.internal.ads.zzabi");
}
private static int zzc(zzdx zzdxVar) {
int zzd = zzdxVar.zzd(5);
return zzd == 31 ? zzdxVar.zzd(6) + 32 : zzd;
}
private static int zzd(zzdx zzdxVar) throws zzbc {
int zzd = zzdxVar.zzd(4);
if (zzd == 15) {
if (zzdxVar.zza() >= 24) {
return zzdxVar.zzd(24);
}
throw zzbc.zza("AAC header insufficient data", null);
}
if (zzd < 13) {
return zzb[zzd];
}
throw zzbc.zza("AAC header wrong Sampling Frequency Index", null);
}
}

View File

@@ -0,0 +1,24 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
/* loaded from: classes3.dex */
public final class zzabl {
@Nullable
public final String zza;
public final int zzb;
public final int zzc;
public final int zzd;
public final int zze;
public final int zzf;
public /* synthetic */ zzabl(String str, int i, int i2, int i3, int i4, int i5, int i6, zzabm zzabmVar) {
this.zza = str;
this.zzc = i2;
this.zzb = i3;
this.zzd = i4;
this.zze = i5;
this.zzf = i6;
}
}

View File

@@ -0,0 +1,358 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.extractor.ts.PsExtractor;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
import com.vungle.ads.internal.protos.Sdk;
import java.nio.ByteBuffer;
import org.apache.http.HttpStatus;
/* loaded from: classes3.dex */
public final class zzabn {
public static final /* synthetic */ int zza = 0;
private static final int[] zzb = {1, 2, 3, 6};
private static final int[] zzc = {48000, 44100, 32000};
private static final int[] zzd = {24000, 22050, 16000};
private static final int[] zze = {2, 1, 2, 3, 3, 4, 4, 5};
private static final int[] zzf = {32, 40, 48, 56, 64, 80, 96, 112, 128, 160, PsExtractor.AUDIO_STREAM, 224, 256, Sdk.SDKError.Reason.WEBVIEW_ERROR_VALUE, 384, 448, 512, 576, 640};
private static final int[] zzg = {69, 87, 104, 121, 139, 174, 208, 243, 278, 348, HttpStatus.SC_EXPECTATION_FAILED, 487, 557, 696, 835, 975, 1114, 1253, 1393};
public static int zza(ByteBuffer byteBuffer) {
if (((byteBuffer.get(byteBuffer.position() + 5) & 248) >> 3) > 10) {
return zzb[((byteBuffer.get(byteBuffer.position() + 4) & 192) >> 6) != 3 ? (byteBuffer.get(byteBuffer.position() + 4) & 48) >> 4 : 3] * 256;
}
return 1536;
}
public static int zzb(byte[] bArr) {
if (bArr.length < 6) {
return -1;
}
if (((bArr[5] & 248) >> 3) <= 10) {
byte b = bArr[4];
return zzf((b & 192) >> 6, b & 63);
}
int i = bArr[2] & 7;
int i2 = ((bArr[3] & 255) | (i << 8)) + 1;
return i2 + i2;
}
public static zzab zzc(zzdy zzdyVar, String str, String str2, @Nullable zzu zzuVar) {
zzdx zzdxVar = new zzdx();
zzdxVar.zzj(zzdyVar);
int i = zzc[zzdxVar.zzd(2)];
zzdxVar.zzn(8);
int i2 = zze[zzdxVar.zzd(3)];
if (zzdxVar.zzd(1) != 0) {
i2++;
}
int i3 = zzf[zzdxVar.zzd(5)] * 1000;
zzdxVar.zzf();
zzdyVar.zzL(zzdxVar.zzb());
zzz zzzVar = new zzz();
zzzVar.zzM(str);
zzzVar.zzaa(MimeTypes.AUDIO_AC3);
zzzVar.zzz(i2);
zzzVar.zzab(i);
zzzVar.zzF(zzuVar);
zzzVar.zzQ(str2);
zzzVar.zzy(i3);
zzzVar.zzV(i3);
return zzzVar.zzag();
}
public static zzab zzd(zzdy zzdyVar, String str, String str2, @Nullable zzu zzuVar) {
String str3;
zzdx zzdxVar = new zzdx();
zzdxVar.zzj(zzdyVar);
int zzd2 = zzdxVar.zzd(13) * 1000;
zzdxVar.zzn(3);
int i = zzc[zzdxVar.zzd(2)];
zzdxVar.zzn(10);
int i2 = zze[zzdxVar.zzd(3)];
if (zzdxVar.zzd(1) != 0) {
i2++;
}
zzdxVar.zzn(3);
int zzd3 = zzdxVar.zzd(4);
zzdxVar.zzn(1);
if (zzd3 > 0) {
zzdxVar.zzn(6);
if (zzdxVar.zzd(1) != 0) {
i2 += 2;
}
zzdxVar.zzn(1);
}
if (zzdxVar.zza() > 7) {
zzdxVar.zzn(7);
if (zzdxVar.zzd(1) != 0) {
str3 = MimeTypes.AUDIO_E_AC3_JOC;
zzdxVar.zzf();
zzdyVar.zzL(zzdxVar.zzb());
zzz zzzVar = new zzz();
zzzVar.zzM(str);
zzzVar.zzaa(str3);
zzzVar.zzz(i2);
zzzVar.zzab(i);
zzzVar.zzF(zzuVar);
zzzVar.zzQ(str2);
zzzVar.zzV(zzd2);
return zzzVar.zzag();
}
}
str3 = MimeTypes.AUDIO_E_AC3;
zzdxVar.zzf();
zzdyVar.zzL(zzdxVar.zzb());
zzz zzzVar2 = new zzz();
zzzVar2.zzM(str);
zzzVar2.zzaa(str3);
zzzVar2.zzz(i2);
zzzVar2.zzab(i);
zzzVar2.zzF(zzuVar);
zzzVar2.zzQ(str2);
zzzVar2.zzV(zzd2);
return zzzVar2.zzag();
}
public static zzabl zze(zzdx zzdxVar) {
int i;
int i2;
String str;
int i3;
int i4;
int i5;
int i6;
int i7;
int i8;
int i9;
int i10;
int i11;
int zzc2 = zzdxVar.zzc();
zzdxVar.zzn(40);
int zzd2 = zzdxVar.zzd(5);
zzdxVar.zzl(zzc2);
int i12 = -1;
if (zzd2 > 10) {
zzdxVar.zzn(16);
int zzd3 = zzdxVar.zzd(2);
if (zzd3 == 0) {
i12 = 0;
} else if (zzd3 == 1) {
i12 = 1;
} else if (zzd3 == 2) {
i12 = 2;
}
zzdxVar.zzn(3);
int zzd4 = zzdxVar.zzd(11) + 1;
int zzd5 = zzdxVar.zzd(2);
if (zzd5 == 3) {
i8 = zzd[zzdxVar.zzd(2)];
i9 = 6;
i7 = 3;
} else {
int zzd6 = zzdxVar.zzd(2);
int i13 = zzb[zzd6];
i7 = zzd6;
i8 = zzc[zzd5];
i9 = i13;
}
int i14 = zzd4 + zzd4;
int i15 = (i14 * i8) / (i9 * 32);
int zzd7 = zzdxVar.zzd(3);
boolean zzp = zzdxVar.zzp();
i = zze[zzd7] + (zzp ? 1 : 0);
zzdxVar.zzn(10);
if (zzdxVar.zzp()) {
zzdxVar.zzn(8);
}
if (zzd7 == 0) {
zzdxVar.zzn(5);
if (zzdxVar.zzp()) {
zzdxVar.zzn(8);
}
i10 = 0;
zzd7 = 0;
} else {
i10 = zzd7;
}
if (i12 == 1) {
if (zzdxVar.zzp()) {
zzdxVar.zzn(16);
}
i11 = 1;
} else {
i11 = i12;
}
if (zzdxVar.zzp()) {
if (i10 > 2) {
zzdxVar.zzn(2);
}
if ((i10 & 1) != 0 && i10 > 2) {
zzdxVar.zzn(6);
}
if ((i10 & 4) != 0) {
zzdxVar.zzn(6);
}
if (zzp && zzdxVar.zzp()) {
zzdxVar.zzn(5);
}
if (i11 == 0) {
if (zzdxVar.zzp()) {
zzdxVar.zzn(6);
}
if (i10 == 0 && zzdxVar.zzp()) {
zzdxVar.zzn(6);
}
if (zzdxVar.zzp()) {
zzdxVar.zzn(6);
}
int zzd8 = zzdxVar.zzd(2);
if (zzd8 == 1) {
zzdxVar.zzn(5);
} else if (zzd8 == 2) {
zzdxVar.zzn(12);
} else if (zzd8 == 3) {
int zzd9 = zzdxVar.zzd(5);
if (zzdxVar.zzp()) {
zzdxVar.zzn(5);
if (zzdxVar.zzp()) {
zzdxVar.zzn(4);
}
if (zzdxVar.zzp()) {
zzdxVar.zzn(4);
}
if (zzdxVar.zzp()) {
zzdxVar.zzn(4);
}
if (zzdxVar.zzp()) {
zzdxVar.zzn(4);
}
if (zzdxVar.zzp()) {
zzdxVar.zzn(4);
}
if (zzdxVar.zzp()) {
zzdxVar.zzn(4);
}
if (zzdxVar.zzp()) {
zzdxVar.zzn(4);
}
if (zzdxVar.zzp()) {
if (zzdxVar.zzp()) {
zzdxVar.zzn(4);
}
if (zzdxVar.zzp()) {
zzdxVar.zzn(4);
}
}
}
if (zzdxVar.zzp()) {
zzdxVar.zzn(5);
if (zzdxVar.zzp()) {
zzdxVar.zzn(7);
if (zzdxVar.zzp()) {
zzdxVar.zzn(8);
}
}
}
zzdxVar.zzn((zzd9 + 2) * 8);
zzdxVar.zzf();
}
if (i10 < 2) {
if (zzdxVar.zzp()) {
zzdxVar.zzn(14);
}
if (zzd7 == 0 && zzdxVar.zzp()) {
zzdxVar.zzn(14);
}
}
if (zzdxVar.zzp()) {
if (i7 == 0) {
zzdxVar.zzn(5);
i11 = 0;
i7 = 0;
} else {
for (int i16 = 0; i16 < i9; i16++) {
if (zzdxVar.zzp()) {
zzdxVar.zzn(5);
}
}
}
}
i11 = 0;
}
}
if (zzdxVar.zzp()) {
zzdxVar.zzn(5);
if (i10 == 2) {
zzdxVar.zzn(4);
i10 = 2;
}
if (i10 >= 6) {
zzdxVar.zzn(2);
}
if (zzdxVar.zzp()) {
zzdxVar.zzn(8);
}
if (i10 == 0 && zzdxVar.zzp()) {
zzdxVar.zzn(8);
}
if (zzd5 < 3) {
zzdxVar.zzm();
}
}
if (i11 == 0 && i7 != 3) {
zzdxVar.zzm();
}
if (i11 == 2 && (i7 == 3 || zzdxVar.zzp())) {
zzdxVar.zzn(6);
}
str = (zzdxVar.zzp() && zzdxVar.zzd(6) == 1 && zzdxVar.zzd(8) == 1) ? MimeTypes.AUDIO_E_AC3_JOC : MimeTypes.AUDIO_E_AC3;
i2 = i12;
i4 = i14;
i5 = i8;
i6 = i9 * 256;
i3 = i15;
} else {
zzdxVar.zzn(32);
int zzd10 = zzdxVar.zzd(2);
String str2 = zzd10 == 3 ? null : MimeTypes.AUDIO_AC3;
int zzd11 = zzdxVar.zzd(6);
int i17 = zzf[zzd11 / 2] * 1000;
int zzf2 = zzf(zzd10, zzd11);
zzdxVar.zzn(8);
int zzd12 = zzdxVar.zzd(3);
if ((zzd12 & 1) != 0 && zzd12 != 1) {
zzdxVar.zzn(2);
}
if ((zzd12 & 4) != 0) {
zzdxVar.zzn(2);
}
if (zzd12 == 2) {
zzdxVar.zzn(2);
}
int i18 = zzd10 < 3 ? zzc[zzd10] : -1;
i = zze[zzd12] + (zzdxVar.zzp() ? 1 : 0);
i2 = -1;
str = str2;
i3 = i17;
i4 = zzf2;
i5 = i18;
i6 = 1536;
}
return new zzabl(str, i2, i, i5, i4, i6, i3, null);
}
private static int zzf(int i, int i2) {
int i3;
if (i < 0 || i >= 3 || i2 < 0 || (i3 = i2 >> 1) >= 19) {
return -1;
}
int i4 = zzc[i];
if (i4 == 44100) {
int i5 = zzg[i3] + (i2 & 1);
return i5 + i5;
}
int i6 = zzf[i3];
return i4 == 32000 ? i6 * 6 : i6 * 4;
}
}

View File

@@ -0,0 +1,14 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzabo {
public final int zza;
public final int zzb;
public final int zzc;
public /* synthetic */ zzabo(int i, int i2, int i3, int i4, int i5, zzabp zzabpVar) {
this.zza = i3;
this.zzb = i4;
this.zzc = i5;
}
}

View File

@@ -0,0 +1,145 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzabq {
public static final /* synthetic */ int zza = 0;
private static final int[] zzb = {2002, 2000, 1920, 1601, 1600, 1001, 1000, 960, 800, 800, 480, 400, 400, 2048};
/* JADX WARN: Code restructure failed: missing block: B:43:0x0090, code lost:
if (r12 != 11) goto L45;
*/
/* JADX WARN: Code restructure failed: missing block: B:46:0x0098, code lost:
if (r12 != 11) goto L45;
*/
/* JADX WARN: Code restructure failed: missing block: B:48:0x009d, code lost:
if (r12 != 8) goto L45;
*/
/*
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.zzabo zza(com.google.android.gms.internal.ads.zzdx r12) {
/*
r0 = 16
int r1 = r12.zzd(r0)
int r0 = r12.zzd(r0)
r2 = 65535(0xffff, float:9.1834E-41)
r3 = 4
if (r0 != r2) goto L18
r0 = 24
int r0 = r12.zzd(r0)
r2 = 7
goto L19
L18:
r2 = r3
L19:
int r0 = r0 + r2
r2 = 44097(0xac41, float:6.1793E-41)
if (r1 != r2) goto L21
int r0 = r0 + 2
L21:
r8 = r0
r0 = 2
int r1 = r12.zzd(r0)
r2 = 0
r4 = 3
if (r1 != r4) goto L38
r1 = r2
L2c:
int r5 = r12.zzd(r0)
int r1 = r1 + r5
boolean r5 = r12.zzp()
if (r5 != 0) goto L3a
int r1 = r1 + r4
L38:
r5 = r1
goto L3e
L3a:
int r1 = r1 + 1
int r1 = r1 << r0
goto L2c
L3e:
r1 = 10
int r1 = r12.zzd(r1)
boolean r6 = r12.zzp()
if (r6 == 0) goto L53
int r6 = r12.zzd(r4)
if (r6 <= 0) goto L53
r12.zzn(r0)
L53:
boolean r6 = r12.zzp()
r7 = 48000(0xbb80, float:6.7262E-41)
r9 = 44100(0xac44, float:6.1797E-41)
r10 = 1
if (r10 == r6) goto L62
r11 = r9
goto L63
L62:
r11 = r7
L63:
int r12 = r12.zzd(r3)
if (r11 != r9) goto L73
r6 = 13
if (r12 != r6) goto L73
int[] r12 = com.google.android.gms.internal.ads.zzabq.zzb
r12 = r12[r6]
r9 = r12
goto La0
L73:
if (r11 != r7) goto L94
r6 = 14
if (r12 >= r6) goto L94
int[] r2 = com.google.android.gms.internal.ads.zzabq.zzb
r2 = r2[r12]
int r1 = r1 % 5
r6 = 8
if (r1 == r10) goto L9b
r7 = 11
if (r1 == r0) goto L96
if (r1 == r4) goto L9b
if (r1 == r3) goto L8c
goto L94
L8c:
if (r12 == r4) goto L92
if (r12 == r6) goto L92
if (r12 != r7) goto L94
L92:
int r2 = r2 + 1
L94:
r9 = r2
goto La0
L96:
if (r12 == r6) goto L92
if (r12 != r7) goto L94
goto L92
L9b:
if (r12 == r4) goto L92
if (r12 != r6) goto L94
goto L92
La0:
com.google.android.gms.internal.ads.zzabo r12 = new com.google.android.gms.internal.ads.zzabo
r6 = 2
r10 = 0
r4 = r12
r7 = r11
r4.<init>(r5, r6, r7, r8, r9, r10)
return r12
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzabq.zza(com.google.android.gms.internal.ads.zzdx):com.google.android.gms.internal.ads.zzabo");
}
public static void zzb(int i, zzdy zzdyVar) {
zzdyVar.zzI(7);
byte[] zzN = zzdyVar.zzN();
zzN[0] = -84;
zzN[1] = 64;
zzN[2] = -1;
zzN[3] = -1;
zzN[4] = (byte) ((i >> 16) & 255);
zzN[5] = (byte) ((i >> 8) & 255);
zzN[6] = (byte) (i & 255);
}
}

View File

@@ -0,0 +1,111 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes3.dex */
public final class zzabr {
public final List zza;
public final int zzb;
public final int zzc;
public final int zzd;
public final int zze;
public final int zzf;
public final int zzg;
public final int zzh;
public final int zzi;
public final int zzj;
public final float zzk;
@Nullable
public final String zzl;
private zzabr(List list, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, float f, @Nullable String str) {
this.zza = list;
this.zzb = i;
this.zzc = i2;
this.zzd = i3;
this.zze = i4;
this.zzf = i5;
this.zzg = i6;
this.zzh = i7;
this.zzi = i8;
this.zzj = i9;
this.zzk = f;
this.zzl = str;
}
public static zzabr zza(zzdy zzdyVar) throws zzbc {
int i;
int i2;
int i3;
int i4;
int i5;
int i6;
int i7;
int i8;
String str;
float f;
try {
zzdyVar.zzM(4);
int zzm = zzdyVar.zzm() & 3;
int i9 = zzm + 1;
if (i9 == 3) {
throw new IllegalStateException();
}
ArrayList arrayList = new ArrayList();
int zzm2 = zzdyVar.zzm() & 31;
for (int i10 = 0; i10 < zzm2; i10++) {
arrayList.add(zzb(zzdyVar));
}
int zzm3 = zzdyVar.zzm();
for (int i11 = 0; i11 < zzm3; i11++) {
arrayList.add(zzb(zzdyVar));
}
if (zzm2 > 0) {
zzfj zzf = zzfk.zzf((byte[]) arrayList.get(0), zzm + 2, ((byte[]) arrayList.get(0)).length);
int i12 = zzf.zze;
int i13 = zzf.zzf;
int i14 = zzf.zzh + 8;
int i15 = zzf.zzi + 8;
int i16 = zzf.zzj;
int i17 = zzf.zzk;
int i18 = zzf.zzl;
int i19 = zzf.zzm;
float f2 = zzf.zzg;
str = zzcy.zzc(zzf.zza, zzf.zzb, zzf.zzc);
i7 = i18;
i8 = i19;
f = f2;
i4 = i15;
i5 = i16;
i6 = i17;
i = i12;
i2 = i13;
i3 = i14;
} else {
i = -1;
i2 = -1;
i3 = -1;
i4 = -1;
i5 = -1;
i6 = -1;
i7 = -1;
i8 = 16;
str = null;
f = 1.0f;
}
return new zzabr(arrayList, i9, i, i2, i3, i4, i5, i6, i7, i8, f, str);
} catch (ArrayIndexOutOfBoundsException e) {
throw zzbc.zza("Error parsing AVC config", e);
}
}
private static byte[] zzb(zzdy zzdyVar) {
int zzq = zzdyVar.zzq();
int zzd = zzdyVar.zzd();
zzdyVar.zzM(zzq);
return zzcy.zze(zzdyVar.zzN(), zzd, zzq);
}
}

View File

@@ -0,0 +1,40 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzabs implements zzadm {
private final zzabv zza;
private final long zzb;
private final long zzc;
private final long zzd;
private final long zze;
private final long zzf;
public zzabs(zzabv zzabvVar, long j, long j2, long j3, long j4, long j5, long j6) {
this.zza = zzabvVar;
this.zzb = j;
this.zzc = j3;
this.zzd = j4;
this.zze = j5;
this.zzf = j6;
}
@Override // com.google.android.gms.internal.ads.zzadm
public final long zza() {
return this.zzb;
}
public final long zzf(long j) {
return this.zza.zza(j);
}
@Override // com.google.android.gms.internal.ads.zzadm
public final zzadk zzg(long j) {
zzadn zzadnVar = new zzadn(j, zzabu.zzf(this.zza.zza(j), 0L, this.zzc, this.zzd, this.zze, this.zzf));
return new zzadk(zzadnVar, zzadnVar);
}
@Override // com.google.android.gms.internal.ads.zzadm
public final boolean zzh() {
return true;
}
}

View File

@@ -0,0 +1,9 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzabt implements zzabv {
@Override // com.google.android.gms.internal.ads.zzabv
public final long zza(long j) {
return j;
}
}

View File

@@ -0,0 +1,47 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzabu {
private final long zza;
private final long zzb;
private final long zzc;
private long zzd = 0;
private long zze;
private long zzf;
private long zzg;
private long zzh;
public zzabu(long j, long j2, long j3, long j4, long j5, long j6, long j7) {
this.zza = j;
this.zzb = j2;
this.zze = j4;
this.zzf = j5;
this.zzg = j6;
this.zzc = j7;
this.zzh = zzf(j2, 0L, j4, j5, j6, j7);
}
public static long zzf(long j, long j2, long j3, long j4, long j5, long j6) {
if (j4 + 1 >= j5 || 1 + j2 >= j3) {
return j4;
}
long j7 = (long) ((j - j2) * ((j5 - j4) / (j3 - j2)));
return Math.max(j4, Math.min(((j4 + j7) - j6) - (j7 / 20), j5 - 1));
}
public static /* bridge */ /* synthetic */ void zzg(zzabu zzabuVar, long j, long j2) {
zzabuVar.zze = j;
zzabuVar.zzg = j2;
zzabuVar.zzi();
}
public static /* bridge */ /* synthetic */ void zzh(zzabu zzabuVar, long j, long j2) {
zzabuVar.zzd = j;
zzabuVar.zzf = j2;
zzabuVar.zzi();
}
private final void zzi() {
this.zzh = zzf(this.zzb, this.zzd, this.zze, this.zzf, this.zzg, this.zzc);
}
}

View File

@@ -0,0 +1,6 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public interface zzabv {
long zza(long j);
}

View File

@@ -0,0 +1,29 @@
package com.google.android.gms.internal.ads;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes3.dex */
public final class zzabw {
public static final zzabw zza = new zzabw(-3, C.TIME_UNSET, -1);
private final int zzb;
private final long zzc;
private final long zzd;
private zzabw(int i, long j, long j2) {
this.zzb = i;
this.zzc = j;
this.zzd = j2;
}
public static zzabw zzd(long j, long j2) {
return new zzabw(-1, j, j2);
}
public static zzabw zze(long j) {
return new zzabw(0, C.TIME_UNSET, j);
}
public static zzabw zzf(long j, long j2) {
return new zzabw(-2, j, j2);
}
}

View File

@@ -0,0 +1,10 @@
package com.google.android.gms.internal.ads;
import java.io.IOException;
/* loaded from: classes3.dex */
public interface zzabx {
zzabw zza(zzaco zzacoVar, long j) throws IOException;
void zzb();
}

View File

@@ -0,0 +1,128 @@
package com.google.android.gms.internal.ads;
import android.support.v4.media.session.PlaybackStateCompat;
import androidx.annotation.Nullable;
import java.io.IOException;
/* loaded from: classes3.dex */
public class zzaby {
protected final zzabs zza;
protected final zzabx zzb;
@Nullable
protected zzabu zzc;
private final int zzd;
public zzaby(zzabv zzabvVar, zzabx zzabxVar, long j, long j2, long j3, long j4, long j5, long j6, int i) {
this.zzb = zzabxVar;
this.zzd = i;
this.zza = new zzabs(zzabvVar, j, 0L, j3, j4, j5, j6);
}
public static final int zzf(zzaco zzacoVar, long j, zzadj zzadjVar) {
if (j == zzacoVar.zzf()) {
return 0;
}
zzadjVar.zza = j;
return 1;
}
public static final boolean zzg(zzaco zzacoVar, long j) throws IOException {
long zzf = j - zzacoVar.zzf();
if (zzf < 0 || zzf > PlaybackStateCompat.ACTION_SET_REPEAT_MODE) {
return false;
}
zzacoVar.zzk((int) zzf);
return true;
}
public final int zza(zzaco zzacoVar, zzadj zzadjVar) throws IOException {
long j;
long j2;
long j3;
long j4;
int i;
long j5;
long j6;
long j7;
long j8;
long j9;
long j10;
long j11;
while (true) {
zzabu zzabuVar = this.zzc;
zzcw.zzb(zzabuVar);
j = zzabuVar.zzf;
j2 = zzabuVar.zzg;
j3 = zzabuVar.zzh;
if (j2 - j <= this.zzd) {
zzc(false, j);
return zzf(zzacoVar, j, zzadjVar);
}
if (!zzg(zzacoVar, j3)) {
return zzf(zzacoVar, j3, zzadjVar);
}
zzacoVar.zzj();
zzabx zzabxVar = this.zzb;
j4 = zzabuVar.zzb;
zzabw zza = zzabxVar.zza(zzacoVar, j4);
i = zza.zzb;
if (i == -3) {
zzc(false, j3);
return zzf(zzacoVar, j3, zzadjVar);
}
if (i == -2) {
j10 = zza.zzc;
j11 = zza.zzd;
zzabu.zzh(zzabuVar, j10, j11);
} else {
if (i != -1) {
j5 = zza.zzd;
zzg(zzacoVar, j5);
j6 = zza.zzd;
zzc(true, j6);
j7 = zza.zzd;
return zzf(zzacoVar, j7, zzadjVar);
}
j8 = zza.zzc;
j9 = zza.zzd;
zzabu.zzg(zzabuVar, j8, j9);
}
}
}
public final zzadm zzb() {
return this.zza;
}
public final void zzc(boolean z, long j) {
this.zzc = null;
this.zzb.zzb();
}
public final void zzd(long j) {
long j2;
long j3;
long j4;
long j5;
long j6;
zzabu zzabuVar = this.zzc;
if (zzabuVar != null) {
j6 = zzabuVar.zza;
if (j6 == j) {
return;
}
}
zzabs zzabsVar = this.zza;
long zzf = zzabsVar.zzf(j);
j2 = zzabsVar.zzc;
j3 = zzabsVar.zzd;
j4 = zzabsVar.zze;
j5 = zzabsVar.zzf;
this.zzc = new zzabu(j, zzf, 0L, j2, j3, j4, j5);
}
public final boolean zze() {
return this.zzc != null;
}
}

View File

@@ -0,0 +1,72 @@
package com.google.android.gms.internal.ads;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes3.dex */
public final class zzabz {
public static void zza(long j, zzdy zzdyVar, zzadt[] zzadtVarArr) {
int i;
while (true) {
if (zzdyVar.zzb() <= 1) {
return;
}
int zzc = zzc(zzdyVar);
int zzc2 = zzc(zzdyVar);
int zzd = zzdyVar.zzd() + zzc2;
if (zzc2 == -1 || zzc2 > zzdyVar.zzb()) {
zzdo.zzf("CeaUtil", "Skipping remainder of malformed SEI NAL unit.");
zzd = zzdyVar.zze();
} else if (zzc == 4 && zzc2 >= 8) {
int zzm = zzdyVar.zzm();
int zzq = zzdyVar.zzq();
if (zzq == 49) {
i = zzdyVar.zzg();
zzq = 49;
} else {
i = 0;
}
int zzm2 = zzdyVar.zzm();
if (zzq == 47) {
zzdyVar.zzM(1);
zzq = 47;
}
boolean z = zzm == 181 && (zzq == 49 || zzq == 47) && zzm2 == 3;
if (zzq == 49) {
z &= i == 1195456820;
}
if (z) {
zzb(j, zzdyVar, zzadtVarArr);
}
}
zzdyVar.zzL(zzd);
}
}
public static void zzb(long j, zzdy zzdyVar, zzadt[] zzadtVarArr) {
int zzm = zzdyVar.zzm();
if ((zzm & 64) != 0) {
int i = zzm & 31;
zzdyVar.zzM(1);
int zzd = zzdyVar.zzd();
for (zzadt zzadtVar : zzadtVarArr) {
int i2 = i * 3;
zzdyVar.zzL(zzd);
zzadtVar.zzr(zzdyVar, i2);
zzcw.zzf(j != C.TIME_UNSET);
zzadtVar.zzt(j, 1, i2, 0, null);
}
}
}
private static int zzc(zzdy zzdyVar) {
int i = 0;
while (zzdyVar.zzb() != 0) {
int zzm = zzdyVar.zzm();
i += zzm;
if (zzm != 255) {
return i;
}
}
return -1;
}
}

View File

@@ -0,0 +1,7 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzac extends IllegalStateException {
public zzac(zzbq zzbqVar, int i, long j) {
}
}

View File

@@ -0,0 +1,57 @@
package com.google.android.gms.internal.ads;
import java.util.Arrays;
/* loaded from: classes3.dex */
public final class zzaca implements zzadm {
public final int zza;
public final int[] zzb;
public final long[] zzc;
public final long[] zzd;
public final long[] zze;
private final long zzf;
public zzaca(int[] iArr, long[] jArr, long[] jArr2, long[] jArr3) {
this.zzb = iArr;
this.zzc = jArr;
this.zzd = jArr2;
this.zze = jArr3;
int length = iArr.length;
this.zza = length;
if (length <= 0) {
this.zzf = 0L;
} else {
int i = length - 1;
this.zzf = jArr2[i] + jArr3[i];
}
}
public final String toString() {
long[] jArr = this.zzd;
long[] jArr2 = this.zze;
long[] jArr3 = this.zzc;
return "ChunkIndex(length=" + this.zza + ", sizes=" + Arrays.toString(this.zzb) + ", offsets=" + Arrays.toString(jArr3) + ", timeUs=" + Arrays.toString(jArr2) + ", durationsUs=" + Arrays.toString(jArr) + ")";
}
@Override // com.google.android.gms.internal.ads.zzadm
public final long zza() {
return this.zzf;
}
@Override // com.google.android.gms.internal.ads.zzadm
public final zzadk zzg(long j) {
long[] jArr = this.zze;
int zzd = zzei.zzd(jArr, j, true, true);
zzadn zzadnVar = new zzadn(jArr[zzd], this.zzc[zzd]);
if (zzadnVar.zzb >= j || zzd == this.zza - 1) {
return new zzadk(zzadnVar, zzadnVar);
}
int i = zzd + 1;
return new zzadk(zzadnVar, new zzadn(this.zze[i], this.zzc[i]));
}
@Override // com.google.android.gms.internal.ads.zzadm
public final boolean zzh() {
return true;
}
}

View File

@@ -0,0 +1,71 @@
package com.google.android.gms.internal.ads;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes3.dex */
public class zzacb implements zzadm {
private final long zza;
private final long zzb;
private final int zzc;
private final long zzd;
private final int zze;
private final long zzf;
public zzacb(long j, long j2, int i, int i2, boolean z) {
long zzc;
this.zza = j;
this.zzb = j2;
this.zzc = i2 == -1 ? 1 : i2;
this.zze = i;
if (j == -1) {
this.zzd = -1L;
zzc = C.TIME_UNSET;
} else {
this.zzd = j - j2;
zzc = zzc(j, j2, i);
}
this.zzf = zzc;
}
private static long zzc(long j, long j2, int i) {
return (Math.max(0L, j - j2) * 8000000) / i;
}
@Override // com.google.android.gms.internal.ads.zzadm
public final long zza() {
return this.zzf;
}
public final long zzb(long j) {
return zzc(j, this.zzb, this.zze);
}
@Override // com.google.android.gms.internal.ads.zzadm
public final zzadk zzg(long j) {
long j2 = this.zzd;
if (j2 == -1) {
zzadn zzadnVar = new zzadn(0L, this.zzb);
return new zzadk(zzadnVar, zzadnVar);
}
long j3 = this.zzc;
long j4 = (((this.zze * j) / 8000000) / j3) * j3;
if (j2 != -1) {
j4 = Math.min(j4, j2 - j3);
}
long max = this.zzb + Math.max(j4, 0L);
long zzb = zzb(max);
zzadn zzadnVar2 = new zzadn(zzb, max);
if (this.zzd != -1 && zzb < j) {
long j5 = max + this.zzc;
if (j5 < this.zza) {
return new zzadk(zzadnVar2, new zzadn(zzb(j5), j5));
}
}
return new zzadk(zzadnVar2, zzadnVar2);
}
@Override // com.google.android.gms.internal.ads.zzadm
public final boolean zzh() {
return this.zzd != -1;
}
}

View File

@@ -0,0 +1,205 @@
package com.google.android.gms.internal.ads;
import java.io.EOFException;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.util.Arrays;
/* loaded from: classes3.dex */
public final class zzacc implements zzaco {
private final zzl zzb;
private final long zzc;
private long zzd;
private int zzf;
private int zzg;
private byte[] zze = new byte[65536];
private final byte[] zza = new byte[4096];
static {
zzas.zzb("media3.extractor");
}
public zzacc(zzl zzlVar, long j, long j2) {
this.zzb = zzlVar;
this.zzd = j;
this.zzc = j2;
}
private final int zzp(byte[] bArr, int i, int i2) {
int i3 = this.zzg;
if (i3 == 0) {
return 0;
}
int min = Math.min(i3, i2);
System.arraycopy(this.zze, 0, bArr, i, min);
zzu(min);
return min;
}
private final int zzq(byte[] bArr, int i, int i2, int i3, boolean z) throws IOException {
if (Thread.interrupted()) {
throw new InterruptedIOException();
}
int zza = this.zzb.zza(bArr, i + i3, i2 - i3);
if (zza != -1) {
return i3 + zza;
}
if (i3 == 0 && z) {
return -1;
}
throw new EOFException();
}
private final int zzr(int i) {
int min = Math.min(this.zzg, i);
zzu(min);
return min;
}
private final void zzs(int i) {
if (i != -1) {
this.zzd += i;
}
}
private final void zzt(int i) {
int i2 = this.zzf + i;
int length = this.zze.length;
if (i2 > length) {
this.zze = Arrays.copyOf(this.zze, Math.max(65536 + i2, Math.min(length + length, i2 + 524288)));
}
}
private final void zzu(int i) {
int i2 = this.zzg - i;
this.zzg = i2;
this.zzf = 0;
byte[] bArr = this.zze;
byte[] bArr2 = i2 < bArr.length + (-524288) ? new byte[65536 + i2] : bArr;
System.arraycopy(bArr, i, bArr2, 0, i2);
this.zze = bArr2;
}
@Override // com.google.android.gms.internal.ads.zzaco, com.google.android.gms.internal.ads.zzl
public final int zza(byte[] bArr, int i, int i2) throws IOException {
int zzp = zzp(bArr, i, i2);
if (zzp == 0) {
zzp = zzq(bArr, i, i2, 0, true);
}
zzs(zzp);
return zzp;
}
@Override // com.google.android.gms.internal.ads.zzaco
public final int zzb(byte[] bArr, int i, int i2) throws IOException {
int min;
zzt(i2);
int i3 = this.zzg;
int i4 = this.zzf;
int i5 = i3 - i4;
if (i5 == 0) {
min = zzq(this.zze, i4, i2, 0, true);
if (min == -1) {
return -1;
}
this.zzg += min;
} else {
min = Math.min(i2, i5);
}
System.arraycopy(this.zze, this.zzf, bArr, i, min);
this.zzf += min;
return min;
}
@Override // com.google.android.gms.internal.ads.zzaco
public final int zzc(int i) throws IOException {
int zzr = zzr(1);
if (zzr == 0) {
zzr = zzq(this.zza, 0, Math.min(1, 4096), 0, true);
}
zzs(zzr);
return zzr;
}
@Override // com.google.android.gms.internal.ads.zzaco
public final long zzd() {
return this.zzc;
}
@Override // com.google.android.gms.internal.ads.zzaco
public final long zze() {
return this.zzd + this.zzf;
}
@Override // com.google.android.gms.internal.ads.zzaco
public final long zzf() {
return this.zzd;
}
@Override // com.google.android.gms.internal.ads.zzaco
public final void zzg(int i) throws IOException {
zzl(i, false);
}
@Override // com.google.android.gms.internal.ads.zzaco
public final void zzh(byte[] bArr, int i, int i2) throws IOException {
zzm(bArr, i, i2, false);
}
@Override // com.google.android.gms.internal.ads.zzaco
public final void zzi(byte[] bArr, int i, int i2) throws IOException {
zzn(bArr, i, i2, false);
}
@Override // com.google.android.gms.internal.ads.zzaco
public final void zzj() {
this.zzf = 0;
}
@Override // com.google.android.gms.internal.ads.zzaco
public final void zzk(int i) throws IOException {
zzo(i, false);
}
public final boolean zzl(int i, boolean z) throws IOException {
zzt(i);
int i2 = this.zzg - this.zzf;
while (i2 < i) {
i2 = zzq(this.zze, this.zzf, i, i2, z);
if (i2 == -1) {
return false;
}
this.zzg = this.zzf + i2;
}
this.zzf += i;
return true;
}
@Override // com.google.android.gms.internal.ads.zzaco
public final boolean zzm(byte[] bArr, int i, int i2, boolean z) throws IOException {
if (!zzl(i2, z)) {
return false;
}
System.arraycopy(this.zze, this.zzf - i2, bArr, i, i2);
return true;
}
@Override // com.google.android.gms.internal.ads.zzaco
public final boolean zzn(byte[] bArr, int i, int i2, boolean z) throws IOException {
int zzp = zzp(bArr, i, i2);
while (zzp < i2 && zzp != -1) {
zzp = zzq(bArr, i, i2, zzp, z);
}
zzs(zzp);
return zzp != -1;
}
public final boolean zzo(int i, boolean z) throws IOException {
int zzr = zzr(i);
while (zzr < i && zzr != -1) {
zzr = zzq(this.zza, -zzr, Math.min(i, zzr + 4096), zzr, false);
}
zzs(zzr);
return zzr != -1;
}
}

View File

@@ -0,0 +1,11 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
/* loaded from: classes3.dex */
public interface zzacf {
@Nullable
Constructor zza() throws InvocationTargetException, IllegalAccessException, NoSuchMethodException, ClassNotFoundException;
}

View File

@@ -0,0 +1,40 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.lang.reflect.Constructor;
import java.util.concurrent.atomic.AtomicBoolean;
/* loaded from: classes3.dex */
final class zzacg {
private final zzacf zza;
private final AtomicBoolean zzb = new AtomicBoolean(false);
public zzacg(zzacf zzacfVar) {
this.zza = zzacfVar;
}
@Nullable
public final zzacn zza(Object... objArr) {
Constructor zza;
synchronized (this.zzb) {
if (!this.zzb.get()) {
try {
zza = this.zza.zza();
} catch (ClassNotFoundException unused) {
this.zzb.set(true);
} catch (Exception e) {
throw new RuntimeException("Error instantiating extension", e);
}
}
zza = null;
}
if (zza == null) {
return null;
}
try {
return (zzacn) zza.newInstance(objArr);
} catch (Exception e2) {
throw new IllegalStateException("Unexpected error creating extractor", e2);
}
}
}

View File

@@ -0,0 +1,128 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.lang.reflect.Constructor;
import java.util.List;
/* loaded from: classes3.dex */
public final class zzach implements zzacs {
private static final int[] zza = {5, 4, 12, 8, 3, 10, 9, 11, 6, 2, 0, 1, 7, 16, 15, 14, 17, 18, 19, 20, 21};
private static final zzacg zzb = new zzacg(new zzacf() { // from class: com.google.android.gms.internal.ads.zzacd
@Override // com.google.android.gms.internal.ads.zzacf
public final Constructor zza() {
if (Boolean.TRUE.equals(Class.forName("androidx.media3.decoder.flac.FlacLibrary").getMethod("isAvailable", new Class[0]).invoke(null, new Object[0]))) {
return Class.forName("androidx.media3.decoder.flac.FlacExtractor").asSubclass(zzacn.class).getConstructor(Integer.TYPE);
}
return null;
}
});
private static final zzacg zzc = new zzacg(new zzacf() { // from class: com.google.android.gms.internal.ads.zzace
@Override // com.google.android.gms.internal.ads.zzacf
public final Constructor zza() {
return Class.forName("androidx.media3.decoder.midi.MidiExtractor").asSubclass(zzacn.class).getConstructor(new Class[0]);
}
});
@Nullable
private zzfxn zzd;
private final zzakd zze = new zzajy();
/* JADX WARN: Removed duplicated region for block: B:13:0x01fb A[Catch: all -> 0x0026, TryCatch #0 {all -> 0x0026, blocks: (B:4:0x0003, B:6:0x0017, B:8:0x001f, B:13:0x01fb, B:14:0x01fe, B:19:0x03b1, B:20:0x03b4, B:22:0x03b9, B:25:0x03bf, B:27:0x03c2, B:31:0x03c5, B:36:0x0207, B:38:0x020f, B:40:0x021a, B:43:0x0226, B:45:0x022e, B:47:0x0239, B:50:0x0244, B:53:0x024f, B:56:0x025a, B:58:0x0262, B:60:0x026a, B:62:0x0276, B:64:0x0284, B:66:0x028f, B:69:0x029a, B:71:0x02a2, B:73:0x02b0, B:75:0x02be, B:77:0x02d0, B:79:0x02de, B:81:0x02ea, B:83:0x02f2, B:85:0x02fa, B:87:0x0302, B:89:0x030e, B:91:0x0316, B:93:0x0327, B:95:0x032f, B:97:0x033a, B:99:0x0342, B:101:0x034e, B:103:0x0356, B:105:0x0360, B:108:0x036a, B:111:0x0374, B:114:0x037f, B:116:0x0387, B:118:0x0392, B:120:0x039a, B:122:0x03a4, B:138:0x004c, B:139:0x0054, B:142:0x01c3, B:165:0x0059, B:168:0x0065, B:171:0x0071, B:174:0x007d, B:177:0x0089, B:180:0x0094, B:183:0x00a0, B:186:0x00ab, B:189:0x00b6, B:192:0x00c2, B:195:0x00ce, B:198:0x00d9, B:201:0x00e4, B:204:0x00ef, B:207:0x00fa, B:210:0x0106, B:213:0x0111, B:216:0x011c, B:219:0x0128, B:222:0x0134, B:225:0x0140, B:228:0x014c, B:231:0x0158, B:234:0x0164, B:237:0x016f, B:240:0x017a, B:243:0x0185, B:246:0x0190, B:249:0x019a, B:252:0x01a4, B:255:0x01ae, B:258:0x01b8), top: B:3:0x0003 }] */
/* JADX WARN: Removed duplicated region for block: B:18:0x03af A[ADDED_TO_REGION] */
/* JADX WARN: Removed duplicated region for block: B:22:0x03b9 A[Catch: all -> 0x0026, TryCatch #0 {all -> 0x0026, blocks: (B:4:0x0003, B:6:0x0017, B:8:0x001f, B:13:0x01fb, B:14:0x01fe, B:19:0x03b1, B:20:0x03b4, B:22:0x03b9, B:25:0x03bf, B:27:0x03c2, B:31:0x03c5, B:36:0x0207, B:38:0x020f, B:40:0x021a, B:43:0x0226, B:45:0x022e, B:47:0x0239, B:50:0x0244, B:53:0x024f, B:56:0x025a, B:58:0x0262, B:60:0x026a, B:62:0x0276, B:64:0x0284, B:66:0x028f, B:69:0x029a, B:71:0x02a2, B:73:0x02b0, B:75:0x02be, B:77:0x02d0, B:79:0x02de, B:81:0x02ea, B:83:0x02f2, B:85:0x02fa, B:87:0x0302, B:89:0x030e, B:91:0x0316, B:93:0x0327, B:95:0x032f, B:97:0x033a, B:99:0x0342, B:101:0x034e, B:103:0x0356, B:105:0x0360, B:108:0x036a, B:111:0x0374, B:114:0x037f, B:116:0x0387, B:118:0x0392, B:120:0x039a, B:122:0x03a4, B:138:0x004c, B:139:0x0054, B:142:0x01c3, B:165:0x0059, B:168:0x0065, B:171:0x0071, B:174:0x007d, B:177:0x0089, B:180:0x0094, B:183:0x00a0, B:186:0x00ab, B:189:0x00b6, B:192:0x00c2, B:195:0x00ce, B:198:0x00d9, B:201:0x00e4, B:204:0x00ef, B:207:0x00fa, B:210:0x0106, B:213:0x0111, B:216:0x011c, B:219:0x0128, B:222:0x0134, B:225:0x0140, B:228:0x014c, B:231:0x0158, B:234:0x0164, B:237:0x016f, B:240:0x017a, B:243:0x0185, B:246:0x0190, B:249:0x019a, B:252:0x01a4, B:255:0x01ae, B:258:0x01b8), top: B:3:0x0003 }] */
/* JADX WARN: Removed duplicated region for block: B:36:0x0207 A[Catch: all -> 0x0026, TryCatch #0 {all -> 0x0026, blocks: (B:4:0x0003, B:6:0x0017, B:8:0x001f, B:13:0x01fb, B:14:0x01fe, B:19:0x03b1, B:20:0x03b4, B:22:0x03b9, B:25:0x03bf, B:27:0x03c2, B:31:0x03c5, B:36:0x0207, B:38:0x020f, B:40:0x021a, B:43:0x0226, B:45:0x022e, B:47:0x0239, B:50:0x0244, B:53:0x024f, B:56:0x025a, B:58:0x0262, B:60:0x026a, B:62:0x0276, B:64:0x0284, B:66:0x028f, B:69:0x029a, B:71:0x02a2, B:73:0x02b0, B:75:0x02be, B:77:0x02d0, B:79:0x02de, B:81:0x02ea, B:83:0x02f2, B:85:0x02fa, B:87:0x0302, B:89:0x030e, B:91:0x0316, B:93:0x0327, B:95:0x032f, B:97:0x033a, B:99:0x0342, B:101:0x034e, B:103:0x0356, B:105:0x0360, B:108:0x036a, B:111:0x0374, B:114:0x037f, B:116:0x0387, B:118:0x0392, B:120:0x039a, B:122:0x03a4, B:138:0x004c, B:139:0x0054, B:142:0x01c3, B:165:0x0059, B:168:0x0065, B:171:0x0071, B:174:0x007d, B:177:0x0089, B:180:0x0094, B:183:0x00a0, B:186:0x00ab, B:189:0x00b6, B:192:0x00c2, B:195:0x00ce, B:198:0x00d9, B:201:0x00e4, B:204:0x00ef, B:207:0x00fa, B:210:0x0106, B:213:0x0111, B:216:0x011c, B:219:0x0128, B:222:0x0134, B:225:0x0140, B:228:0x014c, B:231:0x0158, B:234:0x0164, B:237:0x016f, B:240:0x017a, B:243:0x0185, B:246:0x0190, B:249:0x019a, B:252:0x01a4, B:255:0x01ae, B:258:0x01b8), top: B:3:0x0003 }] */
@Override // com.google.android.gms.internal.ads.zzacs
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final synchronized com.google.android.gms.internal.ads.zzacn[] zza(android.net.Uri r25, java.util.Map r26) {
/*
Method dump skipped, instructions count: 1180
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzach.zza(android.net.Uri, java.util.Map):com.google.android.gms.internal.ads.zzacn[]");
}
private final void zzb(int i, List list) {
switch (i) {
case 0:
list.add(new zzama());
break;
case 1:
list.add(new zzamc());
break;
case 2:
list.add(new zzame(0));
break;
case 3:
list.add(new zzaea(0));
break;
case 4:
zzacn zza2 = zzb.zza(0);
if (zza2 == null) {
list.add(new zzaes(0));
break;
} else {
list.add(zza2);
break;
}
case 5:
list.add(new zzaeu());
break;
case 6:
list.add(new zzahm(this.zze, 0));
break;
case 7:
list.add(new zzahs(0));
break;
case 8:
list.add(new zzaiq(this.zze, 0, null, null, zzfxn.zzn(), null));
list.add(new zzaiv(this.zze, 0));
break;
case 9:
list.add(new zzajl());
break;
case 10:
list.add(new zzanj());
break;
case 11:
if (this.zzd == null) {
this.zzd = zzfxn.zzn();
}
list.add(new zzant(1, 0, this.zze, new zzef(0L), new zzamg(0, this.zzd), 112800));
break;
case 12:
list.add(new zzaoe());
break;
case 14:
list.add(new zzafa(0));
break;
case 15:
zzacn zza3 = zzc.zza(new Object[0]);
if (zza3 != null) {
list.add(zza3);
break;
}
break;
case 16:
list.add(new zzaef(0, this.zze));
break;
case 17:
list.add(new zzajw());
break;
case 18:
list.add(new zzaoj());
break;
case 19:
list.add(new zzaen());
break;
case 20:
list.add(new zzaez());
break;
case 21:
list.add(new zzaem());
break;
}
}
}

View File

@@ -0,0 +1,49 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.io.EOFException;
import java.io.IOException;
/* loaded from: classes3.dex */
public final class zzaci implements zzadt {
private final byte[] zza = new byte[4096];
@Override // com.google.android.gms.internal.ads.zzadt
public final /* synthetic */ int zzf(zzl zzlVar, int i, boolean z) {
return zzadr.zza(this, zzlVar, i, z);
}
@Override // com.google.android.gms.internal.ads.zzadt
public final int zzg(zzl zzlVar, int i, boolean z, int i2) throws IOException {
int zza = zzlVar.zza(this.zza, 0, Math.min(4096, i));
if (zza != -1) {
return zza;
}
if (z) {
return -1;
}
throw new EOFException();
}
@Override // com.google.android.gms.internal.ads.zzadt
public final /* synthetic */ void zzl(long j) {
}
@Override // com.google.android.gms.internal.ads.zzadt
public final void zzm(zzab zzabVar) {
}
@Override // com.google.android.gms.internal.ads.zzadt
public final /* synthetic */ void zzr(zzdy zzdyVar, int i) {
zzadr.zzb(this, zzdyVar, i);
}
@Override // com.google.android.gms.internal.ads.zzadt
public final void zzs(zzdy zzdyVar, int i, int i2) {
zzdyVar.zzM(i);
}
@Override // com.google.android.gms.internal.ads.zzadt
public final void zzt(long j, int i, int i2, int i3, @Nullable zzads zzadsVar) {
}
}

View File

@@ -0,0 +1,41 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import csdk.gluads.Consts;
/* loaded from: classes3.dex */
public final class zzacj {
public final String zza;
private zzacj(int i, int i2, String str) {
this.zza = str;
}
@Nullable
public static zzacj zza(zzdy zzdyVar) {
String str;
zzdyVar.zzM(2);
int zzm = zzdyVar.zzm();
int i = zzm >> 1;
int i2 = zzm & 1;
int zzm2 = zzdyVar.zzm() >> 3;
if (i == 4 || i == 5 || i == 7) {
str = "dvhe";
} else if (i == 8) {
str = "hev1";
} else {
if (i != 9) {
return null;
}
str = "avc3";
}
int i3 = zzm2 | (i2 << 5);
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(".0");
sb.append(i);
sb.append(i3 >= 10 ? Consts.STRING_PERIOD : ".0");
sb.append(i3);
return new zzacj(i, i3, sb.toString());
}
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzack {
public final String zza;
public final int zzb;
public final int zzc;
public final int zzd;
public final long zze;
public /* synthetic */ zzack(String str, int i, int i2, int i3, long j, int i4, zzacl zzaclVar) {
this.zza = str;
this.zzc = i;
this.zzb = i2;
this.zzd = i3;
this.zze = j;
}
}

View File

@@ -0,0 +1,249 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import androidx.core.internal.view.SupportMenu;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
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 csdk.gluads.Consts;
import java.math.RoundingMode;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicInteger;
/* loaded from: classes3.dex */
public final class zzacm {
public static final /* synthetic */ int zza = 0;
private static final int[] zzb = {1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 6, 6, 6, 7, 8, 8};
private static final int[] zzc = {-1, 8000, 16000, 32000, -1, -1, 11025, 22050, 44100, -1, -1, 12000, 24000, 48000, -1, -1};
private static final int[] zzd = {64, 112, 128, PsExtractor.AUDIO_STREAM, 224, 256, 384, 448, 512, 640, 768, 896, 1024, 1152, 1280, 1536, 1920, 2048, IronSourceConstants.IS_AD_UNIT_CAPPED, 2560, 2688, 2816, 2823, 2944, 3072, 3840, 4096, Consts.GEMS_CUSTOM_DATA_LIMIT, 7680};
private static final int[] zze = {8000, 16000, 32000, 64000, 128000, 22050, 44100, 88200, 176400, 352800, 12000, 24000, 48000, 96000, 192000, 384000};
private static final int[] zzf = {5, 8, 10, 12};
private static final int[] zzg = {6, 9, 12, 15};
private static final int[] zzh = {2, 4, 6, 8};
private static final int[] zzi = {9, 11, 13, 16};
private static final int[] zzj = {5, 8, 10, 12};
public static int zza(byte[] bArr) {
zzdx zzg2 = zzg(bArr);
zzg2.zzn(42);
return zzg2.zzd(true != zzg2.zzp() ? 8 : 12) + 1;
}
public static int zzb(byte[] bArr) {
zzdx zzg2 = zzg(bArr);
zzg2.zzn(32);
return zzf(zzg2, zzj, true) + 1;
}
public static zzab zzc(byte[] bArr, @Nullable String str, @Nullable String str2, int i, @Nullable zzu zzuVar) {
zzdx zzg2 = zzg(bArr);
zzg2.zzn(60);
int i2 = zzb[zzg2.zzd(6)];
int i3 = zzc[zzg2.zzd(4)];
int zzd2 = zzg2.zzd(5);
int i4 = zzd2 >= 29 ? -1 : (zzd[zzd2] * 1000) / 2;
zzg2.zzn(10);
int i5 = i2 + (zzg2.zzd(2) > 0 ? 1 : 0);
zzz zzzVar = new zzz();
zzzVar.zzM(str);
zzzVar.zzaa(MimeTypes.AUDIO_DTS);
zzzVar.zzy(i4);
zzzVar.zzz(i5);
zzzVar.zzab(i3);
zzzVar.zzF(null);
zzzVar.zzQ(str2);
zzzVar.zzY(i);
return zzzVar.zzag();
}
public static zzack zzd(byte[] bArr) throws zzbc {
int i;
int i2;
int i3;
long j;
int i4;
zzdx zzg2 = zzg(bArr);
zzg2.zzn(40);
int zzd2 = zzg2.zzd(2);
boolean zzp = zzg2.zzp();
int i5 = true != zzp ? 16 : 20;
zzg2.zzn(true != zzp ? 8 : 12);
int zzd3 = zzg2.zzd(i5) + 1;
boolean zzp2 = zzg2.zzp();
int i6 = 0;
if (zzp2) {
i = zzg2.zzd(2);
int zzd4 = zzg2.zzd(3) + 1;
if (zzg2.zzp()) {
zzg2.zzn(36);
}
int zzd5 = zzg2.zzd(3) + 1;
int zzd6 = zzg2.zzd(3) + 1;
if (zzd5 != 1 || zzd6 != 1) {
throw zzbc.zzc("Multiple audio presentations or assets not supported");
}
int i7 = zzd2 + 1;
int zzd7 = zzg2.zzd(i7);
for (int i8 = 0; i8 < i7; i8++) {
if (((zzd7 >> i8) & 1) == 1) {
zzg2.zzn(8);
}
}
int i9 = zzd4 * 512;
if (zzg2.zzp()) {
zzg2.zzn(2);
int zzd8 = (zzg2.zzd(2) + 1) << 2;
int zzd9 = zzg2.zzd(2) + 1;
while (i6 < zzd9) {
zzg2.zzn(zzd8);
i6++;
}
}
i6 = i9;
} else {
i = -1;
}
zzg2.zzn(i5);
zzg2.zzn(12);
if (zzp2) {
if (zzg2.zzp()) {
zzg2.zzn(4);
}
if (zzg2.zzp()) {
zzg2.zzn(24);
}
if (zzg2.zzp()) {
zzg2.zzo(zzg2.zzd(10) + 1);
}
zzg2.zzn(5);
int i10 = zze[zzg2.zzd(4)];
i3 = zzg2.zzd(8) + 1;
i2 = i10;
} else {
i2 = -2147483647;
i3 = -1;
}
if (zzp2) {
if (i == 0) {
i4 = 32000;
} else if (i == 1) {
i4 = 44100;
} else {
if (i != 2) {
throw zzbc.zza("Unsupported reference clock code in DTS HD header: " + i, null);
}
i4 = 48000;
}
j = zzei.zzu(i6, 1000000L, i4, RoundingMode.DOWN);
} else {
j = C.TIME_UNSET;
}
return new zzack(MimeTypes.AUDIO_DTS_EXPRESS, i3, i2, zzd3, j, 0, null);
}
public static zzack zze(byte[] bArr, AtomicInteger atomicInteger) throws zzbc {
long j;
int i;
int i2;
int i3;
zzdx zzg2 = zzg(bArr);
int zzd2 = zzg2.zzd(32);
int zzf2 = zzf(zzg2, zzf, true);
int i4 = zzf2 + 1;
char c = zzd2 == 1078008818 ? (char) 1 : (char) 0;
if (c == 0) {
j = C.TIME_UNSET;
i = -2147483647;
} else {
if (!zzg2.zzp()) {
throw zzbc.zzc("Only supports full channel mask-based audio presentation");
}
int i5 = zzf2 - 1;
if (((bArr[zzf2] & 255) | ((char) (bArr[i5] << 8))) != zzei.zze(bArr, 0, i5, SupportMenu.USER_MASK)) {
throw zzbc.zza("CRC check failed", null);
}
int zzd3 = zzg2.zzd(2);
if (zzd3 == 0) {
i2 = 512;
} else if (zzd3 == 1) {
i2 = 480;
} else {
if (zzd3 != 2) {
throw zzbc.zza("Unsupported base duration index in DTS UHD header: " + zzd3, null);
}
i2 = 384;
}
int zzd4 = zzg2.zzd(3) + 1;
int zzd5 = zzg2.zzd(2);
if (zzd5 == 0) {
i3 = 32000;
} else if (zzd5 == 1) {
i3 = 44100;
} else {
if (zzd5 != 2) {
throw zzbc.zza("Unsupported clock rate index in DTS UHD header: " + zzd5, null);
}
i3 = 48000;
}
if (zzg2.zzp()) {
zzg2.zzn(36);
}
i = (1 << zzg2.zzd(2)) * i3;
j = zzei.zzu(i2 * zzd4, 1000000L, i3, RoundingMode.DOWN);
}
int i6 = i;
long j2 = j;
int i7 = 0;
for (char c2 = 0; c2 < c; c2 = 1) {
i7 += zzf(zzg2, zzg, true);
}
for (int i8 = 0; i8 <= 0; i8++) {
if (c != 0) {
atomicInteger.set(zzf(zzg2, zzh, true));
}
i7 += atomicInteger.get() != 0 ? zzf(zzg2, zzi, true) : 0;
}
return new zzack("audio/vnd.dts.uhd;profile=p2", 2, i6, i4 + i7, j2, 0, null);
}
private static int zzf(zzdx zzdxVar, int[] iArr, boolean z) {
int i = 0;
for (int i2 = 0; i2 < 3 && zzdxVar.zzp(); i2++) {
i++;
}
int i3 = 0;
for (int i4 = 0; i4 < i; i4++) {
i3 += 1 << iArr[i4];
}
return i3 + zzdxVar.zzd(iArr[i]);
}
private static zzdx zzg(byte[] bArr) {
byte b = bArr[0];
if (b == Byte.MAX_VALUE || b == 100 || b == 64 || b == 113) {
return new zzdx(bArr, bArr.length);
}
byte[] copyOf = Arrays.copyOf(bArr, bArr.length);
byte b2 = copyOf[0];
if (b2 == -2 || b2 == -1 || b2 == 37 || b2 == -14 || b2 == -24) {
for (int i = 0; i < copyOf.length - 1; i += 2) {
byte b3 = copyOf[i];
int i2 = i + 1;
copyOf[i] = copyOf[i2];
copyOf[i2] = b3;
}
}
int length = copyOf.length;
zzdx zzdxVar = new zzdx(copyOf, length);
if (copyOf[0] == 31) {
zzdx zzdxVar2 = new zzdx(copyOf, length);
while (zzdxVar2.zza() >= 16) {
zzdxVar2.zzn(2);
zzdxVar.zzg(zzdxVar2.zzd(14), 14);
}
}
zzdxVar.zzk(copyOf, copyOf.length);
return zzdxVar;
}
}

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.internal.ads;
import java.io.IOException;
import java.util.List;
/* loaded from: classes3.dex */
public interface zzacn {
int zzb(zzaco zzacoVar, zzadj zzadjVar) throws IOException;
zzacn zzc();
List zzd();
void zze(zzacq zzacqVar);
void zzf(long j, long j2);
boolean zzi(zzaco zzacoVar) throws IOException;
}

View File

@@ -0,0 +1,33 @@
package com.google.android.gms.internal.ads;
import java.io.IOException;
/* loaded from: classes3.dex */
public interface zzaco extends zzl {
@Override // com.google.android.gms.internal.ads.zzl
int zza(byte[] bArr, int i, int i2) throws IOException;
int zzb(byte[] bArr, int i, int i2) throws IOException;
int zzc(int i) throws IOException;
long zzd();
long zze();
long zzf();
void zzg(int i) throws IOException;
void zzh(byte[] bArr, int i, int i2) throws IOException;
void zzi(byte[] bArr, int i, int i2) throws IOException;
void zzj();
void zzk(int i) throws IOException;
boolean zzm(byte[] bArr, int i, int i2, boolean z) throws IOException;
boolean zzn(byte[] bArr, int i, int i2, boolean z) throws IOException;
}

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
final class zzacp implements zzacq {
@Override // com.google.android.gms.internal.ads.zzacq
public final void zzD() {
throw new UnsupportedOperationException();
}
@Override // com.google.android.gms.internal.ads.zzacq
public final void zzO(zzadm zzadmVar) {
throw new UnsupportedOperationException();
}
@Override // com.google.android.gms.internal.ads.zzacq
public final zzadt zzw(int i, int i2) {
throw new UnsupportedOperationException();
}
}

View File

@@ -0,0 +1,12 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public interface zzacq {
public static final zzacq zza = new zzacp();
void zzD();
void zzO(zzadm zzadmVar);
zzadt zzw(int i, int i2);
}

View File

@@ -0,0 +1,55 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.io.EOFException;
import java.io.IOException;
/* loaded from: classes3.dex */
public final class zzacr {
public static int zza(zzaco zzacoVar, byte[] bArr, int i, int i2) throws IOException {
int i3 = 0;
while (i3 < i2) {
int zzb = zzacoVar.zzb(bArr, i + i3, i2 - i3);
if (zzb == -1) {
break;
}
i3 += zzb;
}
return i3;
}
public static void zzb(boolean z, @Nullable String str) throws zzbc {
if (!z) {
throw zzbc.zza(str, null);
}
}
public static boolean zzc(zzaco zzacoVar, byte[] bArr, int i, int i2, boolean z) throws IOException {
try {
return zzacoVar.zzm(bArr, 0, i2, z);
} catch (EOFException e) {
if (z) {
return false;
}
throw e;
}
}
public static boolean zzd(zzaco zzacoVar, byte[] bArr, int i, int i2) throws IOException {
try {
zzacoVar.zzi(bArr, i, i2);
return true;
} catch (EOFException unused) {
return false;
}
}
public static boolean zze(zzaco zzacoVar, int i) throws IOException {
try {
zzacoVar.zzk(i);
return true;
} catch (EOFException unused) {
return false;
}
}
}

View File

@@ -0,0 +1,9 @@
package com.google.android.gms.internal.ads;
import android.net.Uri;
import java.util.Map;
/* loaded from: classes3.dex */
public interface zzacs {
zzacn[] zza(Uri uri, Map map);
}

View File

@@ -0,0 +1,6 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzact {
public long zza;
}

View File

@@ -0,0 +1,193 @@
package com.google.android.gms.internal.ads;
import com.mbridge.msdk.playercommon.exoplayer2.extractor.ts.PsExtractor;
import java.io.IOException;
/* loaded from: classes3.dex */
public final class zzacu {
public static int zza(zzdy zzdyVar, int i) {
switch (i) {
case 1:
return PsExtractor.AUDIO_STREAM;
case 2:
case 3:
case 4:
case 5:
return 576 << (i - 2);
case 6:
return zzdyVar.zzm() + 1;
case 7:
return zzdyVar.zzq() + 1;
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
return 256 << (i - 8);
default:
return -1;
}
}
public static long zzb(zzaco zzacoVar, zzacy zzacyVar) throws IOException {
zzacoVar.zzj();
zzacoVar.zzg(1);
byte[] bArr = new byte[1];
zzacoVar.zzh(bArr, 0, 1);
int i = bArr[0] & 1;
boolean z = 1 == i;
zzacoVar.zzg(2);
int i2 = 1 != i ? 6 : 7;
zzdy zzdyVar = new zzdy(i2);
zzdyVar.zzK(zzacr.zza(zzacoVar, zzdyVar.zzN(), 0, i2));
zzacoVar.zzj();
zzact zzactVar = new zzact();
if (zzd(zzdyVar, zzacyVar, z, zzactVar)) {
return zzactVar.zza;
}
throw zzbc.zza(null, null);
}
/* JADX WARN: Code restructure failed: missing block: B:30:0x007d, code lost:
if (r3 != r22.zzf) goto L54;
*/
/* JADX WARN: Code restructure failed: missing block: B:34:0x008a, code lost:
if ((r21.zzm() * 1000) == r5) goto L50;
*/
/* JADX WARN: Code restructure failed: missing block: B:40:0x0099, code lost:
if (r4 == r5) goto L50;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static boolean zzc(com.google.android.gms.internal.ads.zzdy r21, com.google.android.gms.internal.ads.zzacy r22, int r23, com.google.android.gms.internal.ads.zzact r24) {
/*
r0 = r21
r1 = r22
int r2 = r21.zzd()
long r3 = r21.zzu()
r5 = 16
long r5 = r3 >>> r5
r7 = r23
long r7 = (long) r7
int r7 = (r5 > r7 ? 1 : (r5 == r7 ? 0 : -1))
r8 = 0
if (r7 == 0) goto L19
return r8
L19:
r9 = 1
long r5 = r5 & r9
int r5 = (r5 > r9 ? 1 : (r5 == r9 ? 0 : -1))
r6 = 1
if (r5 != 0) goto L23
r5 = r6
goto L24
L23:
r5 = r8
L24:
r7 = 12
long r11 = r3 >> r7
r13 = 8
long r13 = r3 >> r13
r15 = 4
long r15 = r3 >> r15
long r17 = r3 >> r6
long r3 = r3 & r9
r19 = 15
long r6 = r15 & r19
int r6 = (int) r6
r7 = 7
r15 = -1
if (r6 > r7) goto L41
int r7 = r1.zzg
int r7 = r7 + r15
if (r6 != r7) goto Lb0
goto L4a
L41:
r7 = 10
if (r6 > r7) goto Lb0
int r6 = r1.zzg
r7 = 2
if (r6 != r7) goto Lb0
L4a:
r6 = 7
long r6 = r17 & r6
int r6 = (int) r6
if (r6 != 0) goto L52
goto L56
L52:
int r7 = r1.zzi
if (r6 != r7) goto Lb0
L56:
int r3 = (r3 > r9 ? 1 : (r3 == r9 ? 0 : -1))
if (r3 == 0) goto Lb0
r3 = r24
boolean r3 = zzd(r0, r1, r5, r3)
if (r3 == 0) goto Lb0
long r3 = r11 & r19
int r3 = (int) r3
int r3 = zza(r0, r3)
if (r3 == r15) goto Lb0
int r4 = r1.zzb
if (r3 > r4) goto Lb0
long r3 = r13 & r19
int r5 = r1.zze
int r3 = (int) r3
if (r3 != 0) goto L77
goto L9b
L77:
r4 = 11
if (r3 > r4) goto L80
int r1 = r1.zzf
if (r3 == r1) goto L9b
goto Lb0
L80:
r1 = 12
if (r3 != r1) goto L8d
int r1 = r21.zzm()
int r1 = r1 * 1000
if (r1 != r5) goto Lb0
goto L9b
L8d:
r1 = 14
if (r3 > r1) goto Lb0
int r4 = r21.zzq()
if (r3 != r1) goto L99
int r4 = r4 * 10
L99:
if (r4 != r5) goto Lb0
L9b:
int r1 = r21.zzm()
int r3 = r21.zzd()
byte[] r0 = r21.zzN()
int r3 = r3 + r15
int r0 = com.google.android.gms.internal.ads.zzei.zzg(r0, r2, r3, r8)
if (r1 != r0) goto Lb0
r0 = 1
return r0
Lb0:
return r8
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzacu.zzc(com.google.android.gms.internal.ads.zzdy, com.google.android.gms.internal.ads.zzacy, int, com.google.android.gms.internal.ads.zzact):boolean");
}
private static boolean zzd(zzdy zzdyVar, zzacy zzacyVar, boolean z, zzact zzactVar) {
try {
long zzx = zzdyVar.zzx();
if (!z) {
zzx *= zzacyVar.zzb;
}
zzactVar.zza = zzx;
return true;
} catch (NumberFormatException unused) {
return false;
}
}
}

View File

@@ -0,0 +1,45 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.io.IOException;
import java.util.Arrays;
/* loaded from: classes3.dex */
public final class zzacv {
public static zzacx zzb(zzdy zzdyVar) {
zzdyVar.zzM(1);
int zzo = zzdyVar.zzo();
long zzd = zzdyVar.zzd();
long j = zzo;
int i = zzo / 18;
long[] jArr = new long[i];
long[] jArr2 = new long[i];
int i2 = 0;
while (true) {
if (i2 >= i) {
break;
}
long zzt = zzdyVar.zzt();
if (zzt == -1) {
jArr = Arrays.copyOf(jArr, i2);
jArr2 = Arrays.copyOf(jArr2, i2);
break;
}
jArr[i2] = zzt;
jArr2[i2] = zzdyVar.zzt();
zzdyVar.zzM(2);
i2++;
}
zzdyVar.zzM((int) ((zzd + j) - zzdyVar.zzd()));
return new zzacx(jArr, jArr2);
}
@Nullable
public static zzay zza(zzaco zzacoVar, boolean z) throws IOException {
zzay zza = new zzadd().zza(zzacoVar, z ? null : zzagg.zza);
if (zza == null || zza.zza() == 0) {
return null;
}
return zza;
}
}

View File

@@ -0,0 +1,42 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzacw implements zzadm {
private final zzacy zza;
private final long zzb;
public zzacw(zzacy zzacyVar, long j) {
this.zza = zzacyVar;
this.zzb = j;
}
private final zzadn zzb(long j, long j2) {
return new zzadn((j * 1000000) / this.zza.zze, this.zzb + j2);
}
@Override // com.google.android.gms.internal.ads.zzadm
public final long zza() {
return this.zza.zza();
}
@Override // com.google.android.gms.internal.ads.zzadm
public final zzadk zzg(long j) {
zzcw.zzb(this.zza.zzk);
zzacy zzacyVar = this.zza;
zzacx zzacxVar = zzacyVar.zzk;
long[] jArr = zzacxVar.zza;
long[] jArr2 = zzacxVar.zzb;
int zzd = zzei.zzd(jArr, zzacyVar.zzb(j), true, false);
zzadn zzb = zzb(zzd == -1 ? 0L : jArr[zzd], zzd != -1 ? jArr2[zzd] : 0L);
if (zzb.zzb == j || zzd == jArr.length - 1) {
return new zzadk(zzb, zzb);
}
int i = zzd + 1;
return new zzadk(zzb, zzb(jArr[i], jArr2[i]));
}
@Override // com.google.android.gms.internal.ads.zzadm
public final boolean zzh() {
return true;
}
}

View File

@@ -0,0 +1,12 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzacx {
public final long[] zza;
public final long[] zzb;
public zzacx(long[] jArr, long[] jArr2) {
this.zza = jArr;
this.zzb = jArr2;
}
}

View File

@@ -0,0 +1,152 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
import java.util.Collections;
import java.util.List;
import kotlin.jvm.internal.ByteCompanionObject;
/* loaded from: classes3.dex */
public final class zzacy {
public final int zza;
public final int zzb;
public final int zzc;
public final int zzd;
public final int zze;
public final int zzf;
public final int zzg;
public final int zzh;
public final int zzi;
public final long zzj;
@Nullable
public final zzacx zzk;
@Nullable
private final zzay zzl;
private zzacy(int i, int i2, int i3, int i4, int i5, int i6, int i7, long j, @Nullable zzacx zzacxVar, @Nullable zzay zzayVar) {
this.zza = i;
this.zzb = i2;
this.zzc = i3;
this.zzd = i4;
this.zze = i5;
this.zzf = zzi(i5);
this.zzg = i6;
this.zzh = i7;
this.zzi = zzh(i7);
this.zzj = j;
this.zzk = zzacxVar;
this.zzl = zzayVar;
}
public zzacy(byte[] bArr, int i) {
zzdx zzdxVar = new zzdx(bArr, bArr.length);
zzdxVar.zzl(i * 8);
this.zza = zzdxVar.zzd(16);
this.zzb = zzdxVar.zzd(16);
this.zzc = zzdxVar.zzd(24);
this.zzd = zzdxVar.zzd(24);
int zzd = zzdxVar.zzd(20);
this.zze = zzd;
this.zzf = zzi(zzd);
this.zzg = zzdxVar.zzd(3) + 1;
int zzd2 = zzdxVar.zzd(5) + 1;
this.zzh = zzd2;
this.zzi = zzh(zzd2);
this.zzj = zzdxVar.zze(36);
this.zzk = null;
this.zzl = null;
}
private static int zzh(int i) {
if (i == 8) {
return 1;
}
if (i == 12) {
return 2;
}
if (i == 16) {
return 4;
}
if (i != 20) {
return i != 24 ? -1 : 6;
}
return 5;
}
private static int zzi(int i) {
switch (i) {
case 8000:
return 4;
case 16000:
return 5;
case 22050:
return 6;
case 24000:
return 7;
case 32000:
return 8;
case 44100:
return 9;
case 48000:
return 10;
case 88200:
return 1;
case 96000:
return 11;
case 176400:
return 2;
case 192000:
return 3;
default:
return -1;
}
}
public final long zza() {
long j = this.zzj;
return j == 0 ? C.TIME_UNSET : (j * 1000000) / this.zze;
}
public final long zzb(long j) {
return Math.max(0L, Math.min((j * this.zze) / 1000000, this.zzj - 1));
}
public final zzab zzc(byte[] bArr, @Nullable zzay zzayVar) {
bArr[4] = ByteCompanionObject.MIN_VALUE;
zzay zzd = zzd(zzayVar);
zzz zzzVar = new zzz();
zzzVar.zzaa(MimeTypes.AUDIO_FLAC);
int i = this.zzd;
if (i <= 0) {
i = -1;
}
zzzVar.zzR(i);
zzzVar.zzz(this.zzg);
zzzVar.zzab(this.zze);
zzzVar.zzU(zzei.zzn(this.zzh));
zzzVar.zzN(Collections.singletonList(bArr));
zzzVar.zzT(zzd);
return zzzVar.zzag();
}
@Nullable
public final zzay zzd(@Nullable zzay zzayVar) {
zzay zzayVar2 = this.zzl;
return zzayVar2 == null ? zzayVar : zzayVar2.zzd(zzayVar);
}
public final zzacy zze(List list) {
return new zzacy(this.zza, this.zzb, this.zzc, this.zzd, this.zze, this.zzg, this.zzh, this.zzj, this.zzk, zzd(new zzay(list)));
}
public final zzacy zzf(@Nullable zzacx zzacxVar) {
return new zzacy(this.zza, this.zzb, this.zzc, this.zzd, this.zze, this.zzg, this.zzh, this.zzj, zzacxVar, this.zzl);
}
public final zzacy zzg(List list) {
return new zzacy(this.zza, this.zzb, this.zzc, this.zzd, this.zze, this.zzg, this.zzh, this.zzj, this.zzk, zzd(zzadz.zzb(list)));
}
}

View File

@@ -0,0 +1,77 @@
package com.google.android.gms.internal.ads;
import java.io.IOException;
/* loaded from: classes3.dex */
public class zzacz implements zzaco {
private final zzaco zza;
public zzacz(zzaco zzacoVar) {
this.zza = zzacoVar;
}
@Override // com.google.android.gms.internal.ads.zzaco, com.google.android.gms.internal.ads.zzl
public final int zza(byte[] bArr, int i, int i2) throws IOException {
return this.zza.zza(bArr, i, i2);
}
@Override // com.google.android.gms.internal.ads.zzaco
public final int zzb(byte[] bArr, int i, int i2) throws IOException {
return this.zza.zzb(bArr, i, i2);
}
@Override // com.google.android.gms.internal.ads.zzaco
public final int zzc(int i) throws IOException {
return this.zza.zzc(1);
}
@Override // com.google.android.gms.internal.ads.zzaco
public long zzd() {
return this.zza.zzd();
}
@Override // com.google.android.gms.internal.ads.zzaco
public long zze() {
return this.zza.zze();
}
@Override // com.google.android.gms.internal.ads.zzaco
public long zzf() {
return this.zza.zzf();
}
@Override // com.google.android.gms.internal.ads.zzaco
public final void zzg(int i) throws IOException {
this.zza.zzg(i);
}
@Override // com.google.android.gms.internal.ads.zzaco
public final void zzh(byte[] bArr, int i, int i2) throws IOException {
this.zza.zzh(bArr, i, i2);
}
@Override // com.google.android.gms.internal.ads.zzaco
public final void zzi(byte[] bArr, int i, int i2) throws IOException {
this.zza.zzi(bArr, i, i2);
}
@Override // com.google.android.gms.internal.ads.zzaco
public final void zzj() {
this.zza.zzj();
}
@Override // com.google.android.gms.internal.ads.zzaco
public final void zzk(int i) throws IOException {
this.zza.zzk(i);
}
@Override // com.google.android.gms.internal.ads.zzaco
public final boolean zzm(byte[] bArr, int i, int i2, boolean z) throws IOException {
return this.zza.zzm(bArr, 0, i2, z);
}
@Override // com.google.android.gms.internal.ads.zzaco
public final boolean zzn(byte[] bArr, int i, int i2, boolean z) throws IOException {
return this.zza.zzn(bArr, 0, i2, z);
}
}

View File

@@ -0,0 +1,36 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.util.Objects;
/* loaded from: classes3.dex */
public final class zzad {
@Nullable
public final String zza;
public final String zzb;
public zzad(@Nullable String str, String str2) {
this.zza = zzei.zzE(str);
this.zzb = str2;
}
public final boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (obj != null && zzad.class == obj.getClass()) {
zzad zzadVar = (zzad) obj;
if (Objects.equals(this.zza, zzadVar.zza) && Objects.equals(this.zzb, zzadVar.zzb)) {
return true;
}
}
return false;
}
public final int hashCode() {
int hashCode = this.zzb.hashCode() * 31;
String str = this.zza;
return hashCode + (str != null ? str.hashCode() : 0);
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public class zzada implements zzadm {
private final zzadm zza;
public zzada(zzadm zzadmVar) {
this.zza = zzadmVar;
}
@Override // com.google.android.gms.internal.ads.zzadm
public long zza() {
return this.zza.zza();
}
@Override // com.google.android.gms.internal.ads.zzadm
public zzadk zzg(long j) {
return this.zza.zzg(j);
}
@Override // com.google.android.gms.internal.ads.zzadm
public final boolean zzh() {
return this.zza.zzh();
}
}

View File

@@ -0,0 +1,56 @@
package com.google.android.gms.internal.ads;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/* loaded from: classes3.dex */
public final class zzadb {
private static final Pattern zzc = Pattern.compile("^ [0-9a-fA-F]{8} ([0-9a-fA-F]{8}) ([0-9a-fA-F]{8})");
public int zza = -1;
public int zzb = -1;
private final boolean zzc(String str) {
Matcher matcher = zzc.matcher(str);
if (!matcher.find()) {
return false;
}
try {
String group = matcher.group(1);
int i = zzei.zza;
int parseInt = Integer.parseInt(group, 16);
int parseInt2 = Integer.parseInt(matcher.group(2), 16);
if (parseInt <= 0 && parseInt2 <= 0) {
return false;
}
this.zza = parseInt;
this.zzb = parseInt2;
return true;
} catch (NumberFormatException unused) {
return false;
}
}
public final boolean zza() {
return (this.zza == -1 || this.zzb == -1) ? false : true;
}
public final boolean zzb(zzay zzayVar) {
for (int i = 0; i < zzayVar.zza(); i++) {
zzax zzb = zzayVar.zzb(i);
if (zzb instanceof zzagb) {
zzagb zzagbVar = (zzagb) zzb;
if ("iTunSMPB".equals(zzagbVar.zzb) && zzc(zzagbVar.zzc)) {
return true;
}
} else if (zzb instanceof zzagk) {
zzagk zzagkVar = (zzagk) zzb;
if ("com.apple.iTunes".equals(zzagkVar.zza) && "iTunSMPB".equals(zzagkVar.zzb) && zzc(zzagkVar.zzc)) {
return true;
}
} else {
continue;
}
}
return false;
}
}

View File

@@ -0,0 +1,61 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.util.List;
/* loaded from: classes3.dex */
public final class zzadc {
public final List zza;
public final int zzb;
public final int zzc;
public final int zzd;
public final int zze;
public final int zzf;
public final int zzg;
public final int zzh;
public final float zzi;
public final int zzj;
@Nullable
public final String zzk;
@Nullable
public final zzfh zzl;
private zzadc(List list, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, float f, int i10, @Nullable String str, @Nullable zzfh zzfhVar) {
this.zza = list;
this.zzb = i;
this.zzc = i4;
this.zzd = i5;
this.zze = i6;
this.zzf = i7;
this.zzg = i8;
this.zzh = i9;
this.zzi = f;
this.zzj = i10;
this.zzk = str;
this.zzl = zzfhVar;
}
public static zzadc zza(zzdy zzdyVar) throws zzbc {
return zzc(zzdyVar, false, null);
}
public static zzadc zzb(zzdy zzdyVar, zzfh zzfhVar) throws zzbc {
return zzc(zzdyVar, true, zzfhVar);
}
/* JADX WARN: Removed duplicated region for block: B:19:0x0290 */
/* JADX WARN: Removed duplicated region for block: B:23:0x0293 */
/*
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.zzadc zzc(com.google.android.gms.internal.ads.zzdy r46, boolean r47, @androidx.annotation.Nullable com.google.android.gms.internal.ads.zzfh r48) throws com.google.android.gms.internal.ads.zzbc {
/*
Method dump skipped, instructions count: 672
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzadc.zzc(com.google.android.gms.internal.ads.zzdy, boolean, com.google.android.gms.internal.ads.zzfh):com.google.android.gms.internal.ads.zzadc");
}
}

View File

@@ -0,0 +1,41 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.io.EOFException;
import java.io.IOException;
/* loaded from: classes3.dex */
public final class zzadd {
private final zzdy zza = new zzdy(10);
@Nullable
public final zzay zza(zzaco zzacoVar, @Nullable zzage zzageVar) throws IOException {
zzay zzayVar = null;
int i = 0;
while (true) {
try {
zzacoVar.zzh(this.zza.zzN(), 0, 10);
this.zza.zzL(0);
if (this.zza.zzo() != 4801587) {
break;
}
this.zza.zzM(3);
int zzl = this.zza.zzl();
int i2 = zzl + 10;
if (zzayVar == null) {
byte[] bArr = new byte[i2];
System.arraycopy(this.zza.zzN(), 0, bArr, 0, 10);
zzacoVar.zzh(bArr, 10, zzl);
zzayVar = zzagg.zza(bArr, i2, zzageVar, new zzafi());
} else {
zzacoVar.zzg(zzl);
}
i += i2;
} catch (EOFException unused) {
}
}
zzacoVar.zzj();
zzacoVar.zzg(i);
return zzayVar;
}
}

View File

@@ -0,0 +1,58 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzade implements zzadm {
private final zzdp zza;
private final zzdp zzb;
private long zzc;
public zzade(long[] jArr, long[] jArr2, long j) {
int length = jArr.length;
int length2 = jArr2.length;
zzcw.zzd(length == length2);
if (length2 <= 0 || jArr2[0] <= 0) {
this.zza = new zzdp(length2);
this.zzb = new zzdp(length2);
} else {
int i = length2 + 1;
zzdp zzdpVar = new zzdp(i);
this.zza = zzdpVar;
zzdp zzdpVar2 = new zzdp(i);
this.zzb = zzdpVar2;
zzdpVar.zzc(0L);
zzdpVar2.zzc(0L);
}
this.zza.zzd(jArr);
this.zzb.zzd(jArr2);
this.zzc = j;
}
@Override // com.google.android.gms.internal.ads.zzadm
public final long zza() {
return this.zzc;
}
@Override // com.google.android.gms.internal.ads.zzadm
public final zzadk zzg(long j) {
zzdp zzdpVar = this.zzb;
if (zzdpVar.zza() == 0) {
zzadn zzadnVar = zzadn.zza;
return new zzadk(zzadnVar, zzadnVar);
}
int zzb = zzei.zzb(zzdpVar, j, true, true);
zzadn zzadnVar2 = new zzadn(this.zzb.zzb(zzb), this.zza.zzb(zzb));
if (zzadnVar2.zzb != j) {
zzdp zzdpVar2 = this.zzb;
if (zzb != zzdpVar2.zza() - 1) {
int i = zzb + 1;
return new zzadk(zzadnVar2, new zzadn(zzdpVar2.zzb(i), this.zza.zzb(i)));
}
}
return new zzadk(zzadnVar2, zzadnVar2);
}
@Override // com.google.android.gms.internal.ads.zzadm
public final boolean zzh() {
return this.zzb.zza() > 0;
}
}

View File

@@ -0,0 +1,98 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
/* loaded from: classes3.dex */
public final class zzadf {
public int zza;
@Nullable
public String zzb;
public int zzc;
public int zzd;
public int zze;
public int zzf;
public int zzg;
public zzadf() {
}
public zzadf(zzadf zzadfVar) {
this.zza = zzadfVar.zza;
this.zzb = zzadfVar.zzb;
this.zzc = zzadfVar.zzc;
this.zzd = zzadfVar.zzd;
this.zze = zzadfVar.zze;
this.zzf = zzadfVar.zzf;
this.zzg = zzadfVar.zzg;
}
public final boolean zza(int i) {
boolean zzm;
int i2;
int i3;
int i4;
int i5;
String[] strArr;
int[] iArr;
int zzl;
int[] iArr2;
int[] iArr3;
int i6;
int[] iArr4;
int[] iArr5;
int i7;
int[] iArr6;
zzm = zzadg.zzm(i);
if (!zzm || (i2 = (i >>> 19) & 3) == 1 || (i3 = (i >>> 17) & 3) == 0 || (i4 = (i >>> 12) & 15) == 0 || i4 == 15 || (i5 = (i >>> 10) & 3) == 3) {
return false;
}
int i8 = i4 - 1;
this.zza = i2;
strArr = zzadg.zza;
this.zzb = strArr[3 - i3];
iArr = zzadg.zzb;
int i9 = iArr[i5];
this.zzd = i9;
if (i2 == 2) {
i9 /= 2;
this.zzd = i9;
} else if (i2 == 0) {
i9 /= 4;
this.zzd = i9;
}
int i10 = (i >>> 9) & 1;
zzl = zzadg.zzl(i2, i3);
this.zzg = zzl;
if (i3 == 3) {
if (i2 == 3) {
iArr6 = zzadg.zzc;
i7 = iArr6[i8];
} else {
iArr5 = zzadg.zzd;
i7 = iArr5[i8];
}
this.zzf = i7;
this.zzc = (((i7 * 12) / i9) + i10) * 4;
} else {
if (i2 == 3) {
if (i3 == 2) {
iArr4 = zzadg.zze;
i6 = iArr4[i8];
} else {
iArr3 = zzadg.zzf;
i6 = iArr3[i8];
}
this.zzf = i6;
this.zzc = ((i6 * 144) / i9) + i10;
} else {
iArr2 = zzadg.zzg;
int i11 = iArr2[i8];
this.zzf = i11;
this.zzc = (((i3 == 1 ? 72 : 144) * i11) / i9) + i10;
}
}
this.zze = ((i >> 6) & 3) == 3 ? 1 : 2;
return true;
}
}

View File

@@ -0,0 +1,66 @@
package com.google.android.gms.internal.ads;
import com.google.android.gms.auth.blockstore.BlockstoreStatusCodes;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
/* loaded from: classes3.dex */
public final class zzadg {
private static final String[] zza = {MimeTypes.AUDIO_MPEG_L1, MimeTypes.AUDIO_MPEG_L2, MimeTypes.AUDIO_MPEG};
private static final int[] zzb = {44100, 48000, 32000};
private static final int[] zzc = {32000, 64000, 96000, 128000, 160000, 192000, 224000, 256000, 288000, 320000, 352000, 384000, 416000, 448000};
private static final int[] zzd = {32000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 144000, 160000, 176000, 192000, 224000, 256000};
private static final int[] zze = {32000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 320000, 384000};
private static final int[] zzf = {32000, BlockstoreStatusCodes.MAX_SIZE_EXCEEDED, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 320000};
private static final int[] zzg = {8000, 16000, 24000, 32000, BlockstoreStatusCodes.MAX_SIZE_EXCEEDED, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 144000, 160000};
public static int zzc(int i) {
int i2;
int i3;
if (!zzm(i) || (i2 = (i >>> 19) & 3) == 1 || (i3 = (i >>> 17) & 3) == 0) {
return -1;
}
int i4 = i >>> 12;
int i5 = (i >>> 10) & 3;
int i6 = i4 & 15;
if (i6 == 0 || i6 == 15 || i5 == 3) {
return -1;
}
return zzl(i2, i3);
}
/* JADX INFO: Access modifiers changed from: private */
public static int zzl(int i, int i2) {
return i2 != 1 ? i2 != 2 ? 384 : 1152 : i == 3 ? 1152 : 576;
}
/* JADX INFO: Access modifiers changed from: private */
public static boolean zzm(int i) {
return (i & (-2097152)) == -2097152;
}
public static int zzb(int i) {
int i2;
int i3;
int i4;
int i5;
if (!zzm(i) || (i2 = (i >>> 19) & 3) == 1 || (i3 = (i >>> 17) & 3) == 0 || (i4 = (i >>> 12) & 15) == 0 || i4 == 15 || (i5 = (i >>> 10) & 3) == 3) {
return -1;
}
int i6 = i4 - 1;
int i7 = zzb[i5];
if (i2 == 2) {
i7 /= 2;
} else if (i2 == 0) {
i7 /= 4;
}
int i8 = (i >>> 9) & 1;
if (i3 == 3) {
return ((((i2 == 3 ? zzc[i6] : zzd[i6]) * 12) / i7) + i8) * 4;
}
int i9 = i2 == 3 ? i3 == 2 ? zze[i6] : zzf[i6] : zzg[i6];
if (i2 == 3) {
return ((i9 * 144) / i7) + i8;
}
return (((i3 == 1 ? 72 : 144) * i9) / i7) + i8;
}
}

View File

@@ -0,0 +1,17 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzadh implements zzacq {
@Override // com.google.android.gms.internal.ads.zzacq
public final void zzD() {
}
@Override // com.google.android.gms.internal.ads.zzacq
public final void zzO(zzadm zzadmVar) {
}
@Override // com.google.android.gms.internal.ads.zzacq
public final zzadt zzw(int i, int i2) {
return new zzaci();
}
}

View File

@@ -0,0 +1,82 @@
package com.google.android.gms.internal.ads;
import com.applovin.exoplayer2.common.base.Ascii;
import com.mbridge.msdk.newreward.function.common.MBridgeCommon;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes3.dex */
public final class zzadi {
public static int zza(byte[] bArr) {
return (bArr[10] & 255) | ((bArr[11] & 255) << 8);
}
public static int zzb(ByteBuffer byteBuffer) {
int i;
if ((byteBuffer.get(5) & 2) == 0) {
i = 0;
} else {
byte b = byteBuffer.get(26);
int i2 = 28;
int i3 = 28;
for (int i4 = 0; i4 < b; i4++) {
i3 += byteBuffer.get(i4 + 27);
}
byte b2 = byteBuffer.get(i3 + 26);
for (int i5 = 0; i5 < b2; i5++) {
i2 += byteBuffer.get(i3 + 27 + i5);
}
i = i3 + i2;
}
int i6 = byteBuffer.get(i + 26) + Ascii.ESC + i;
return (int) ((zzg(byteBuffer.get(i6), byteBuffer.limit() - i6 > 1 ? byteBuffer.get(i6 + 1) : (byte) 0) * 48000) / 1000000);
}
public static int zzc(ByteBuffer byteBuffer) {
return (int) ((zzg(byteBuffer.get(0), byteBuffer.limit() > 1 ? byteBuffer.get(1) : (byte) 0) * 48000) / 1000000);
}
public static long zzd(byte[] bArr) {
return zzg(bArr[0], bArr.length > 1 ? bArr[1] : (byte) 0);
}
public static List zze(byte[] bArr) {
long zza = zza(bArr);
ArrayList arrayList = new ArrayList(3);
arrayList.add(bArr);
arrayList.add(zzi(zzh(zza)));
arrayList.add(zzi(zzh(3840L)));
return arrayList;
}
public static boolean zzf(long j, long j2) {
return j - j2 <= zzh(3840L) / 1000;
}
private static long zzg(byte b, byte b2) {
int i;
int i2 = b & 255;
int i3 = b & 3;
if (i3 != 0) {
i = 2;
if (i3 != 1 && i3 != 2) {
i = b2 & 63;
}
} else {
i = 1;
}
int i4 = i2 >> 3;
return i * (i4 >= 16 ? 2500 << r6 : i4 >= 12 ? 10000 << (i4 & 1) : (i4 & 3) == 3 ? MBridgeCommon.DEFAULT_LOAD_TIMEOUT : 10000 << r6);
}
private static long zzh(long j) {
return (j * C.NANOS_PER_SECOND) / 48000;
}
private static byte[] zzi(long j) {
return ByteBuffer.allocate(8).order(ByteOrder.nativeOrder()).putLong(j).array();
}
}

View File

@@ -0,0 +1,6 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzadj {
public long zza;
}

View File

@@ -0,0 +1,38 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import com.ironsource.v8;
/* loaded from: classes3.dex */
public final class zzadk {
public final zzadn zza;
public final zzadn zzb;
public zzadk(zzadn zzadnVar, zzadn zzadnVar2) {
this.zza = zzadnVar;
this.zzb = zzadnVar2;
}
public final boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (obj != null && zzadk.class == obj.getClass()) {
zzadk zzadkVar = (zzadk) obj;
if (this.zza.equals(zzadkVar.zza) && this.zzb.equals(zzadkVar.zzb)) {
return true;
}
}
return false;
}
public final int hashCode() {
return (this.zza.hashCode() * 31) + this.zzb.hashCode();
}
public final String toString() {
zzadn zzadnVar = this.zza;
zzadn zzadnVar2 = this.zzb;
return v8.i.d + zzadnVar.toString() + (zzadnVar.equals(zzadnVar2) ? "" : ", ".concat(this.zzb.toString())) + v8.i.e;
}
}

View File

@@ -0,0 +1,28 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public class zzadl implements zzadm {
private final long zza;
private final zzadk zzb;
@Override // com.google.android.gms.internal.ads.zzadm
public final long zza() {
return this.zza;
}
@Override // com.google.android.gms.internal.ads.zzadm
public final zzadk zzg(long j) {
return this.zzb;
}
@Override // com.google.android.gms.internal.ads.zzadm
public final boolean zzh() {
return false;
}
public zzadl(long j, long j2) {
this.zza = j;
zzadn zzadnVar = j2 == 0 ? zzadn.zza : new zzadn(0L, j2);
this.zzb = new zzadk(zzadnVar, zzadnVar);
}
}

View File

@@ -0,0 +1,10 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public interface zzadm {
long zza();
zzadk zzg(long j);
boolean zzh();
}

View File

@@ -0,0 +1,37 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import com.ironsource.v8;
/* loaded from: classes3.dex */
public final class zzadn {
public static final zzadn zza = new zzadn(0, 0);
public final long zzb;
public final long zzc;
public zzadn(long j, long j2) {
this.zzb = j;
this.zzc = j2;
}
public final boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (obj != null && zzadn.class == obj.getClass()) {
zzadn zzadnVar = (zzadn) obj;
if (this.zzb == zzadnVar.zzb && this.zzc == zzadnVar.zzc) {
return true;
}
}
return false;
}
public final int hashCode() {
return (((int) this.zzb) * 31) + ((int) this.zzc);
}
public final String toString() {
return "[timeUs=" + this.zzb + ", position=" + this.zzc + v8.i.e;
}
}

View File

@@ -0,0 +1,83 @@
package com.google.android.gms.internal.ads;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.io.IOException;
import java.util.List;
/* loaded from: classes3.dex */
public final class zzado implements zzacn {
private final int zza;
private final int zzb;
private final String zzc;
private int zzd;
private int zze;
private zzacq zzf;
private zzadt zzg;
public zzado(int i, int i2, String str) {
this.zza = i;
this.zzb = i2;
this.zzc = str;
}
@Override // com.google.android.gms.internal.ads.zzacn
public final /* synthetic */ zzacn zzc() {
return this;
}
@Override // com.google.android.gms.internal.ads.zzacn
public final /* synthetic */ List zzd() {
return zzfxn.zzn();
}
@Override // com.google.android.gms.internal.ads.zzacn
public final void zze(zzacq zzacqVar) {
this.zzf = zzacqVar;
zzadt zzw = zzacqVar.zzw(1024, 4);
this.zzg = zzw;
zzz zzzVar = new zzz();
zzzVar.zzaa(this.zzc);
zzw.zzm(zzzVar.zzag());
this.zzf.zzD();
this.zzf.zzO(new zzadp(C.TIME_UNSET));
this.zze = 1;
}
@Override // com.google.android.gms.internal.ads.zzacn
public final void zzf(long j, long j2) {
if (j == 0 || this.zze == 1) {
this.zze = 1;
this.zzd = 0;
}
}
@Override // com.google.android.gms.internal.ads.zzacn
public final boolean zzi(zzaco zzacoVar) throws IOException {
zzcw.zzf((this.zza == -1 || this.zzb == -1) ? false : true);
zzdy zzdyVar = new zzdy(this.zzb);
((zzacc) zzacoVar).zzm(zzdyVar.zzN(), 0, this.zzb, false);
return zzdyVar.zzq() == this.zza;
}
@Override // com.google.android.gms.internal.ads.zzacn
public final int zzb(zzaco zzacoVar, zzadj zzadjVar) throws IOException {
int i = this.zze;
if (i != 1) {
if (i == 2) {
return -1;
}
throw new IllegalStateException();
}
zzadt zzadtVar = this.zzg;
zzadtVar.getClass();
int zzf = zzadtVar.zzf(zzacoVar, 1024, true);
if (zzf == -1) {
this.zze = 2;
this.zzg.zzt(0L, 1, this.zzd, 0, null);
this.zzd = 0;
} else {
this.zzd += zzf;
}
return 0;
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.internal.ads;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes3.dex */
public final class zzadp implements zzadm {
public zzadp(long j) {
}
@Override // com.google.android.gms.internal.ads.zzadm
public final long zza() {
return C.TIME_UNSET;
}
@Override // com.google.android.gms.internal.ads.zzadm
public final zzadk zzg(long j) {
zzadn zzadnVar = new zzadn(j, 0L);
return new zzadk(zzadnVar, zzadnVar);
}
@Override // com.google.android.gms.internal.ads.zzadm
public final boolean zzh() {
return true;
}
}

View File

@@ -0,0 +1,5 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public interface zzadq {
}

View File

@@ -0,0 +1,14 @@
package com.google.android.gms.internal.ads;
import java.io.IOException;
/* loaded from: classes3.dex */
public final /* synthetic */ class zzadr {
public static int zza(zzadt zzadtVar, zzl zzlVar, int i, boolean z) throws IOException {
return zzadtVar.zzg(zzlVar, i, z, 0);
}
public static void zzb(zzadt zzadtVar, zzdy zzdyVar, int i) {
zzadtVar.zzs(zzdyVar, i, 0);
}
}

View File

@@ -0,0 +1,36 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.util.Arrays;
/* loaded from: classes3.dex */
public final class zzads {
public final int zza;
public final byte[] zzb;
public final int zzc;
public final int zzd;
public zzads(int i, byte[] bArr, int i2, int i3) {
this.zza = i;
this.zzb = bArr;
this.zzc = i2;
this.zzd = i3;
}
public final boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (obj != null && zzads.class == obj.getClass()) {
zzads zzadsVar = (zzads) obj;
if (this.zza == zzadsVar.zza && this.zzc == zzadsVar.zzc && this.zzd == zzadsVar.zzd && Arrays.equals(this.zzb, zzadsVar.zzb)) {
return true;
}
}
return false;
}
public final int hashCode() {
return (((((this.zza * 31) + Arrays.hashCode(this.zzb)) * 31) + this.zzc) * 31) + this.zzd;
}
}

View File

@@ -0,0 +1,21 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.io.IOException;
/* loaded from: classes3.dex */
public interface zzadt {
int zzf(zzl zzlVar, int i, boolean z) throws IOException;
int zzg(zzl zzlVar, int i, boolean z, int i2) throws IOException;
void zzl(long j);
void zzm(zzab zzabVar);
void zzr(zzdy zzdyVar, int i);
void zzs(zzdy zzdyVar, int i, int i2);
void zzt(long j, int i, int i2, int i3, @Nullable zzads zzadsVar);
}

View File

@@ -0,0 +1,59 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import java.io.IOException;
/* loaded from: classes3.dex */
public final class zzadu {
private final byte[] zza = new byte[10];
private boolean zzb;
private int zzc;
private long zzd;
private int zze;
private int zzf;
private int zzg;
public final void zza(zzadt zzadtVar, @Nullable zzads zzadsVar) {
if (this.zzc > 0) {
zzadtVar.zzt(this.zzd, this.zze, this.zzf, this.zzg, zzadsVar);
this.zzc = 0;
}
}
public final void zzb() {
this.zzb = false;
this.zzc = 0;
}
public final void zzc(zzadt zzadtVar, long j, int i, int i2, int i3, @Nullable zzads zzadsVar) {
zzcw.zzg(this.zzg <= i2 + i3, "TrueHD chunk samples must be contiguous in the sample queue.");
if (this.zzb) {
int i4 = this.zzc;
int i5 = i4 + 1;
this.zzc = i5;
if (i4 == 0) {
this.zzd = j;
this.zze = i;
this.zzf = 0;
}
this.zzf += i2;
this.zzg = i3;
if (i5 >= 16) {
zza(zzadtVar, zzadsVar);
}
}
}
public final void zzd(zzaco zzacoVar) throws IOException {
if (this.zzb) {
return;
}
zzacoVar.zzh(this.zza, 0, 10);
zzacoVar.zzj();
byte[] bArr = this.zza;
int i = zzabn.zza;
if (bArr[4] == -8 && bArr[5] == 114 && bArr[6] == 111 && (bArr[7] & 254) == 186) {
this.zzb = true;
}
}
}

View File

@@ -0,0 +1,61 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzadv {
private final byte[] zza;
private final int zzb;
private int zzc;
private int zzd;
public zzadv(byte[] bArr) {
this.zza = bArr;
this.zzb = bArr.length;
}
public final int zza() {
return (this.zzc * 8) + this.zzd;
}
public final int zzb(int i) {
int i2 = this.zzc;
int i3 = 8 - this.zzd;
int i4 = i2 + 1;
byte[] bArr = this.zza;
int min = Math.min(i, i3);
int i5 = ((bArr[i2] & 255) >> this.zzd) & (255 >> (8 - min));
while (min < i) {
i5 |= (this.zza[i4] & 255) << min;
min += 8;
i4++;
}
int i6 = i5 & ((-1) >>> (32 - i));
zzc(i);
return i6;
}
public final void zzc(int i) {
int i2;
int i3 = i / 8;
int i4 = this.zzc + i3;
this.zzc = i4;
int i5 = this.zzd + (i - (i3 * 8));
this.zzd = i5;
if (i5 > 7) {
i4++;
this.zzc = i4;
i5 -= 8;
this.zzd = i5;
}
boolean z = false;
if (i4 >= 0 && (i4 < (i2 = this.zzb) || (i4 == i2 && i5 == 0))) {
z = true;
}
zzcw.zzf(z);
}
public final boolean zzd() {
int i = (this.zza[this.zzc] & 255) >> this.zzd;
zzc(1);
return 1 == (i & 1);
}
}

View File

@@ -0,0 +1,10 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzadw {
public final String[] zza;
public zzadw(String str, String[] strArr, int i) {
this.zza = strArr;
}
}

View File

@@ -0,0 +1,10 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzadx {
public final boolean zza;
public zzadx(boolean z, int i, int i2, int i3) {
this.zza = z;
}
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzady {
public final int zza;
public final int zzb;
public final int zzc;
public final int zzd;
public final int zze;
public final int zzf;
public final byte[] zzg;
public zzady(int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, boolean z, byte[] bArr) {
this.zza = i2;
this.zzb = i3;
this.zzc = i4;
this.zzd = i5;
this.zze = i7;
this.zzf = i8;
this.zzg = bArr;
}
}

View File

@@ -0,0 +1,87 @@
package com.google.android.gms.internal.ads;
import android.util.Base64;
import androidx.annotation.Nullable;
import com.ironsource.v8;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes3.dex */
public final class zzadz {
public static int zza(int i) {
int i2 = 0;
while (i > 0) {
i >>>= 1;
i2++;
}
return i2;
}
@Nullable
public static zzay zzb(List list) {
ArrayList arrayList = new ArrayList();
for (int i = 0; i < list.size(); i++) {
String str = (String) list.get(i);
int i2 = zzei.zza;
String[] split = str.split(v8.i.b, 2);
if (split.length != 2) {
zzdo.zzf("VorbisUtil", "Failed to parse Vorbis comment: ".concat(str));
} else if (split[0].equals("METADATA_BLOCK_PICTURE")) {
try {
arrayList.add(zzafn.zzb(new zzdy(Base64.decode(split[1], 0))));
} catch (RuntimeException e) {
zzdo.zzg("VorbisUtil", "Failed to parse vorbis picture", e);
}
} else {
arrayList.add(new zzahe(split[0], split[1]));
}
}
if (arrayList.isEmpty()) {
return null;
}
return new zzay(arrayList);
}
public static zzadw zzc(zzdy zzdyVar, boolean z, boolean z2) throws zzbc {
if (z) {
zzd(3, zzdyVar, false);
}
String zzB = zzdyVar.zzB((int) zzdyVar.zzs(), StandardCharsets.UTF_8);
int length = zzB.length();
long zzs = zzdyVar.zzs();
String[] strArr = new String[(int) zzs];
int i = length + 15;
for (int i2 = 0; i2 < zzs; i2++) {
String zzB2 = zzdyVar.zzB((int) zzdyVar.zzs(), StandardCharsets.UTF_8);
strArr[i2] = zzB2;
i = i + 4 + zzB2.length();
}
if (z2 && (zzdyVar.zzm() & 1) == 0) {
throw zzbc.zza("framing bit expected to be set", null);
}
return new zzadw(zzB, strArr, i + 1);
}
public static boolean zzd(int i, zzdy zzdyVar, boolean z) throws zzbc {
if (zzdyVar.zzb() < 7) {
if (z) {
return false;
}
throw zzbc.zza("too short header: " + zzdyVar.zzb(), null);
}
if (zzdyVar.zzm() != i) {
if (z) {
return false;
}
throw zzbc.zza("expected header type ".concat(String.valueOf(Integer.toHexString(i))), null);
}
if (zzdyVar.zzm() == 118 && zzdyVar.zzm() == 111 && zzdyVar.zzm() == 114 && zzdyVar.zzm() == 98 && zzdyVar.zzm() == 105 && zzdyVar.zzm() == 115) {
return true;
}
if (z) {
return false;
}
throw zzbc.zza("expected characters 'vorbis'", null);
}
}

View File

@@ -0,0 +1,14 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
/* loaded from: classes3.dex */
public final class zzae {
public final boolean equals(@Nullable Object obj) {
throw null;
}
public final int hashCode() {
throw null;
}
}

View File

@@ -0,0 +1,255 @@
package com.google.android.gms.internal.ads;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.List;
/* loaded from: classes3.dex */
public final class zzaea implements zzacn {
private static final int[] zza = {13, 14, 16, 18, 20, 21, 27, 32, 6, 7, 6, 6, 1, 1, 1, 1};
private static final int[] zzb = {18, 24, 33, 37, 41, 47, 51, 59, 61, 6, 1, 1, 1, 1, 1, 1};
private static final byte[] zzc;
private static final byte[] zzd;
private final byte[] zze;
private final zzadt zzf;
private boolean zzg;
private long zzh;
private int zzi;
private int zzj;
private int zzk;
private int zzl;
private long zzm;
private zzacq zzn;
private zzadt zzo;
private zzadt zzp;
private zzadm zzq;
private long zzr;
private boolean zzs;
static {
int i = zzei.zza;
Charset charset = StandardCharsets.UTF_8;
zzc = "#!AMR\n".getBytes(charset);
zzd = "#!AMR-WB\n".getBytes(charset);
}
public zzaea() {
throw null;
}
public zzaea(int i) {
this.zze = new byte[1];
this.zzk = -1;
zzaci zzaciVar = new zzaci();
this.zzf = zzaciVar;
this.zzp = zzaciVar;
}
/* JADX WARN: Removed duplicated region for block: B:23:0x0036 A[Catch: EOFException -> 0x008d, TryCatch #0 {EOFException -> 0x008d, blocks: (B:13:0x0007, B:15:0x0018, B:23:0x0036, B:24:0x003f, B:30:0x003b, B:40:0x0059, B:41:0x0076, B:42:0x0077, B:43:0x008c), top: B:12:0x0007 }] */
/* JADX WARN: Removed duplicated region for block: B:27:0x0047 */
/* JADX WARN: Removed duplicated region for block: B:29:0x004c */
/* JADX WARN: Removed duplicated region for block: B:30:0x003b A[Catch: EOFException -> 0x008d, TryCatch #0 {EOFException -> 0x008d, blocks: (B:13:0x0007, B:15:0x0018, B:23:0x0036, B:24:0x003f, B:30:0x003b, B:40:0x0059, B:41:0x0076, B:42:0x0077, B:43:0x008c), top: B:12:0x0007 }] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final int zza(com.google.android.gms.internal.ads.zzaco r12) throws java.io.IOException {
/*
r11 = this;
int r0 = r11.zzj
r1 = -1
r2 = 1
r3 = 0
if (r0 != 0) goto L8e
r12.zzj() // Catch: java.io.EOFException -> L8d
byte[] r0 = r11.zze // Catch: java.io.EOFException -> L8d
r12.zzh(r0, r3, r2) // Catch: java.io.EOFException -> L8d
byte[] r0 = r11.zze // Catch: java.io.EOFException -> L8d
r0 = r0[r3] // Catch: java.io.EOFException -> L8d
r4 = r0 & 131(0x83, float:1.84E-43)
r5 = 0
if (r4 > 0) goto L77
int r0 = r0 >> 3
boolean r4 = r11.zzg // Catch: java.io.EOFException -> L8d
r0 = r0 & 15
if (r4 == 0) goto L29
r6 = 10
if (r0 < r6) goto L34
r6 = 13
if (r0 <= r6) goto L29
goto L34
L29:
if (r4 != 0) goto L52
r6 = 12
if (r0 < r6) goto L34
r6 = 14
if (r0 > r6) goto L34
goto L52
L34:
if (r4 == 0) goto L3b
int[] r4 = com.google.android.gms.internal.ads.zzaea.zzb // Catch: java.io.EOFException -> L8d
r0 = r4[r0] // Catch: java.io.EOFException -> L8d
goto L3f
L3b:
int[] r4 = com.google.android.gms.internal.ads.zzaea.zza // Catch: java.io.EOFException -> L8d
r0 = r4[r0] // Catch: java.io.EOFException -> L8d
L3f:
r11.zzi = r0 // Catch: java.io.EOFException -> L8d
r11.zzj = r0
int r4 = r11.zzk
if (r4 != r1) goto L4a
r11.zzk = r0
r4 = r0
L4a:
if (r4 != r0) goto L8e
int r4 = r11.zzl
int r4 = r4 + r2
r11.zzl = r4
goto L8e
L52:
java.lang.String r12 = "WB"
java.lang.String r3 = "NB"
if (r2 == r4) goto L59
r12 = r3
L59:
java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch: java.io.EOFException -> L8d
r2.<init>() // Catch: java.io.EOFException -> L8d
java.lang.String r3 = "Illegal AMR "
r2.append(r3) // Catch: java.io.EOFException -> L8d
r2.append(r12) // Catch: java.io.EOFException -> L8d
java.lang.String r12 = " frame type "
r2.append(r12) // Catch: java.io.EOFException -> L8d
r2.append(r0) // Catch: java.io.EOFException -> L8d
java.lang.String r12 = r2.toString() // Catch: java.io.EOFException -> L8d
com.google.android.gms.internal.ads.zzbc r12 = com.google.android.gms.internal.ads.zzbc.zza(r12, r5) // Catch: java.io.EOFException -> L8d
throw r12 // Catch: java.io.EOFException -> L8d
L77:
java.lang.StringBuilder r12 = new java.lang.StringBuilder // Catch: java.io.EOFException -> L8d
r12.<init>() // Catch: java.io.EOFException -> L8d
java.lang.String r2 = "Invalid padding bits for frame header "
r12.append(r2) // Catch: java.io.EOFException -> L8d
r12.append(r0) // Catch: java.io.EOFException -> L8d
java.lang.String r12 = r12.toString() // Catch: java.io.EOFException -> L8d
com.google.android.gms.internal.ads.zzbc r12 = com.google.android.gms.internal.ads.zzbc.zza(r12, r5) // Catch: java.io.EOFException -> L8d
throw r12 // Catch: java.io.EOFException -> L8d
L8d:
return r1
L8e:
com.google.android.gms.internal.ads.zzadt r4 = r11.zzp
int r12 = r4.zzf(r12, r0, r2)
if (r12 != r1) goto L97
return r1
L97:
int r0 = r11.zzj
int r0 = r0 - r12
r11.zzj = r0
if (r0 <= 0) goto L9f
return r3
L9f:
com.google.android.gms.internal.ads.zzadt r4 = r11.zzp
long r5 = r11.zzh
r7 = 1
int r8 = r11.zzi
r9 = 0
r10 = 0
r4.zzt(r5, r7, r8, r9, r10)
long r0 = r11.zzh
r4 = 20000(0x4e20, double:9.8813E-320)
long r0 = r0 + r4
r11.zzh = r0
return r3
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzaea.zza(com.google.android.gms.internal.ads.zzaco):int");
}
private static boolean zzg(zzaco zzacoVar, byte[] bArr) throws IOException {
zzacoVar.zzj();
int length = bArr.length;
byte[] bArr2 = new byte[length];
zzacoVar.zzh(bArr2, 0, length);
return Arrays.equals(bArr2, bArr);
}
private final boolean zzh(zzaco zzacoVar) throws IOException {
byte[] bArr = zzc;
if (zzg(zzacoVar, bArr)) {
this.zzg = false;
zzacoVar.zzk(bArr.length);
return true;
}
byte[] bArr2 = zzd;
if (!zzg(zzacoVar, bArr2)) {
return false;
}
this.zzg = true;
zzacoVar.zzk(bArr2.length);
return true;
}
@Override // com.google.android.gms.internal.ads.zzacn
public final int zzb(zzaco zzacoVar, zzadj zzadjVar) throws IOException {
zzcw.zzb(this.zzo);
int i = zzei.zza;
if (zzacoVar.zzf() == 0 && !zzh(zzacoVar)) {
throw zzbc.zza("Could not find AMR header.", null);
}
if (!this.zzs) {
this.zzs = true;
boolean z = this.zzg;
String str = true != z ? MimeTypes.AUDIO_AMR_NB : MimeTypes.AUDIO_AMR_WB;
int i2 = true != z ? 8000 : 16000;
int i3 = z ? zzb[8] : zza[7];
zzadt zzadtVar = this.zzp;
zzz zzzVar = new zzz();
zzzVar.zzaa(str);
zzzVar.zzR(i3);
zzzVar.zzz(1);
zzzVar.zzab(i2);
zzadtVar.zzm(zzzVar.zzag());
}
int zza2 = zza(zzacoVar);
if (this.zzq == null) {
zzadl zzadlVar = new zzadl(C.TIME_UNSET, 0L);
this.zzq = zzadlVar;
this.zzn.zzO(zzadlVar);
}
return zza2 == -1 ? -1 : 0;
}
@Override // com.google.android.gms.internal.ads.zzacn
public final /* synthetic */ zzacn zzc() {
return this;
}
@Override // com.google.android.gms.internal.ads.zzacn
public final /* synthetic */ List zzd() {
return zzfxn.zzn();
}
@Override // com.google.android.gms.internal.ads.zzacn
public final void zze(zzacq zzacqVar) {
this.zzn = zzacqVar;
zzadt zzw = zzacqVar.zzw(0, 1);
this.zzo = zzw;
this.zzp = zzw;
zzacqVar.zzD();
}
@Override // com.google.android.gms.internal.ads.zzacn
public final void zzf(long j, long j2) {
this.zzh = 0L;
this.zzi = 0;
this.zzj = 0;
this.zzr = j2;
this.zzm = 0L;
}
@Override // com.google.android.gms.internal.ads.zzacn
public final boolean zzi(zzaco zzacoVar) throws IOException {
return zzh(zzacoVar);
}
}

View File

@@ -0,0 +1,6 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
interface zzaeb {
int zza();
}

View File

@@ -0,0 +1,45 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
final class zzaec implements zzadm {
final /* synthetic */ zzaef zza;
private final long zzb;
public zzaec(zzaef zzaefVar, long j) {
this.zza = zzaefVar;
this.zzb = j;
}
@Override // com.google.android.gms.internal.ads.zzadm
public final long zza() {
return this.zzb;
}
@Override // com.google.android.gms.internal.ads.zzadm
public final zzadk zzg(long j) {
zzaei[] zzaeiVarArr;
zzaei[] zzaeiVarArr2;
zzaei[] zzaeiVarArr3;
zzaeiVarArr = this.zza.zzi;
zzadk zza = zzaeiVarArr[0].zza(j);
int i = 1;
while (true) {
zzaef zzaefVar = this.zza;
zzaeiVarArr2 = zzaefVar.zzi;
if (i >= zzaeiVarArr2.length) {
return zza;
}
zzaeiVarArr3 = zzaefVar.zzi;
zzadk zza2 = zzaeiVarArr3[i].zza(j);
if (zza2.zza.zzc < zza.zza.zzc) {
zza = zza2;
}
i++;
}
}
@Override // com.google.android.gms.internal.ads.zzadm
public final boolean zzh() {
return true;
}
}

View File

@@ -0,0 +1,21 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
final class zzaed {
public int zza;
public int zzb;
public int zzc;
private zzaed() {
throw null;
}
public /* synthetic */ zzaed(zzaee zzaeeVar) {
}
public final void zza(zzdy zzdyVar) {
this.zza = zzdyVar.zzi();
this.zzb = zzdyVar.zzi();
this.zzc = 0;
}
}

View File

@@ -0,0 +1,117 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.io.IOException;
import java.util.List;
/* loaded from: classes3.dex */
public final class zzaef implements zzacn {
private final zzdy zza;
private final zzaed zzb;
private final boolean zzc;
private final zzakd zzd;
private int zze;
private zzacq zzf;
private zzaeg zzg;
private long zzh;
private zzaei[] zzi;
private long zzj;
@Nullable
private zzaei zzk;
private int zzl;
private long zzm;
private long zzn;
private int zzo;
private boolean zzp;
@Deprecated
public zzaef() {
this(1, zzakd.zza);
}
@Nullable
private final zzaei zzg(int i) {
for (zzaei zzaeiVar : this.zzi) {
if (zzaeiVar.zzf(i)) {
return zzaeiVar;
}
}
return null;
}
@Override // com.google.android.gms.internal.ads.zzacn
public final /* synthetic */ zzacn zzc() {
return this;
}
@Override // com.google.android.gms.internal.ads.zzacn
public final /* synthetic */ List zzd() {
return zzfxn.zzn();
}
@Override // com.google.android.gms.internal.ads.zzacn
public final void zze(zzacq zzacqVar) {
this.zze = 0;
if (this.zzc) {
zzacqVar = new zzakg(zzacqVar, this.zzd);
}
this.zzf = zzacqVar;
this.zzj = -1L;
}
@Override // com.google.android.gms.internal.ads.zzacn
public final void zzf(long j, long j2) {
this.zzj = -1L;
this.zzk = null;
for (zzaei zzaeiVar : this.zzi) {
zzaeiVar.zze(j);
}
if (j == 0) {
this.zze = this.zzi.length != 0 ? 3 : 0;
} else {
this.zze = 6;
}
}
@Override // com.google.android.gms.internal.ads.zzacn
public final boolean zzi(zzaco zzacoVar) throws IOException {
zzacoVar.zzh(this.zza.zzN(), 0, 12);
this.zza.zzL(0);
if (this.zza.zzi() != 1179011410) {
return false;
}
this.zza.zzM(4);
return this.zza.zzi() == 541677121;
}
public zzaef(int i, zzakd zzakdVar) {
this.zzd = zzakdVar;
this.zzc = 1 == (i ^ 1);
this.zza = new zzdy(12);
this.zzb = new zzaed(null);
this.zzf = new zzadh();
this.zzi = new zzaei[0];
this.zzm = -1L;
this.zzn = -1L;
this.zzl = -1;
this.zzh = C.TIME_UNSET;
}
/* JADX WARN: Removed duplicated region for block: B:125:0x02fd */
/* JADX WARN: Removed duplicated region for block: B:12:0x002f A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:14:0x0030 */
@Override // com.google.android.gms.internal.ads.zzacn
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final int zzb(com.google.android.gms.internal.ads.zzaco r28, com.google.android.gms.internal.ads.zzadj r29) throws java.io.IOException {
/*
Method dump skipped, instructions count: 946
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzaef.zzb(com.google.android.gms.internal.ads.zzaco, com.google.android.gms.internal.ads.zzadj):int");
}
}

View File

@@ -0,0 +1,30 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
final class zzaeg implements zzaeb {
public final int zza;
public final int zzb;
public final int zzc;
private zzaeg(int i, int i2, int i3, int i4) {
this.zza = i;
this.zzb = i2;
this.zzc = i3;
}
public static zzaeg zzb(zzdy zzdyVar) {
int zzi = zzdyVar.zzi();
zzdyVar.zzM(8);
int zzi2 = zzdyVar.zzi();
int zzi3 = zzdyVar.zzi();
zzdyVar.zzM(4);
int zzi4 = zzdyVar.zzi();
zzdyVar.zzM(12);
return new zzaeg(zzi, zzi2, zzi3, zzi4);
}
@Override // com.google.android.gms.internal.ads.zzaeb
public final int zza() {
return 1751742049;
}
}

View File

@@ -0,0 +1,36 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
final class zzaeh implements zzaeb {
public final int zza;
public final int zzb;
public final int zzc;
public final int zzd;
public final int zze;
private zzaeh(int i, int i2, int i3, int i4, int i5, int i6) {
this.zza = i;
this.zzb = i3;
this.zzc = i4;
this.zzd = i5;
this.zze = i6;
}
public static zzaeh zzb(zzdy zzdyVar) {
int zzi = zzdyVar.zzi();
zzdyVar.zzM(12);
int zzi2 = zzdyVar.zzi();
int zzi3 = zzdyVar.zzi();
int zzi4 = zzdyVar.zzi();
zzdyVar.zzM(4);
int zzi5 = zzdyVar.zzi();
int zzi6 = zzdyVar.zzi();
zzdyVar.zzM(8);
return new zzaeh(zzi, zzi2, zzi3, zzi4, zzi5, zzi6);
}
@Override // com.google.android.gms.internal.ads.zzaeb
public final int zza() {
return 1752331379;
}
}

View File

@@ -0,0 +1,117 @@
package com.google.android.gms.internal.ads;
import java.io.IOException;
import java.util.Arrays;
/* loaded from: classes3.dex */
final class zzaei {
protected final zzadt zza;
private final int zzb;
private final int zzc;
private final long zzd;
private final int zze;
private int zzf;
private int zzg;
private int zzh;
private int zzi;
private int zzj;
private long zzk;
private long[] zzl;
private int[] zzm;
public zzaei(int i, int i2, long j, int i3, zzadt zzadtVar) {
i2 = i2 != 1 ? 2 : i2;
this.zzd = j;
this.zze = i3;
this.zza = zzadtVar;
this.zzb = zzh(i, i2 == 2 ? 1667497984 : 1651965952);
this.zzc = i2 == 2 ? zzh(i, 1650720768) : -1;
this.zzk = -1L;
this.zzl = new long[512];
this.zzm = new int[512];
}
private static int zzh(int i, int i2) {
return (((i % 10) + 48) << 8) | ((i / 10) + 48) | i2;
}
private final long zzi(int i) {
return (this.zzd * i) / this.zze;
}
private final zzadn zzj(int i) {
return new zzadn(this.zzm[i] * zzi(1), this.zzl[i]);
}
public final zzadk zza(long j) {
if (this.zzj == 0) {
zzadn zzadnVar = new zzadn(0L, this.zzk);
return new zzadk(zzadnVar, zzadnVar);
}
int zzi = (int) (j / zzi(1));
int zzc = zzei.zzc(this.zzm, zzi, true, true);
if (this.zzm[zzc] == zzi) {
zzadn zzj = zzj(zzc);
return new zzadk(zzj, zzj);
}
zzadn zzj2 = zzj(zzc);
int i = zzc + 1;
return i < this.zzl.length ? new zzadk(zzj2, zzj(i)) : new zzadk(zzj2, zzj2);
}
public final void zzb(long j, boolean z) {
if (this.zzk == -1) {
this.zzk = j;
}
if (z) {
if (this.zzj == this.zzm.length) {
long[] jArr = this.zzl;
this.zzl = Arrays.copyOf(jArr, (jArr.length * 3) / 2);
int[] iArr = this.zzm;
this.zzm = Arrays.copyOf(iArr, (iArr.length * 3) / 2);
}
long[] jArr2 = this.zzl;
int i = this.zzj;
jArr2[i] = j;
this.zzm[i] = this.zzi;
this.zzj = i + 1;
}
this.zzi++;
}
public final void zzc() {
this.zzl = Arrays.copyOf(this.zzl, this.zzj);
this.zzm = Arrays.copyOf(this.zzm, this.zzj);
}
public final void zzd(int i) {
this.zzf = i;
this.zzg = i;
}
public final void zze(long j) {
if (this.zzj == 0) {
this.zzh = 0;
} else {
this.zzh = this.zzm[zzei.zzd(this.zzl, j, true, true)];
}
}
public final boolean zzf(int i) {
return this.zzb == i || this.zzc == i;
}
public final boolean zzg(zzaco zzacoVar) throws IOException {
int i = this.zzg;
int zzf = i - this.zza.zzf(zzacoVar, i, false);
this.zzg = zzf;
boolean z = zzf == 0;
if (z) {
if (this.zzf > 0) {
this.zza.zzt(zzi(this.zzh), Arrays.binarySearch(this.zzm, this.zzh) >= 0 ? 1 : 0, this.zzf, 0, null);
}
this.zzh++;
}
return z;
}
}

View File

@@ -0,0 +1,163 @@
package com.google.android.gms.internal.ads;
import androidx.annotation.Nullable;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
/* loaded from: classes3.dex */
final class zzaej implements zzaeb {
public final zzfxn zza;
private final int zzb;
private zzaej(int i, zzfxn zzfxnVar) {
this.zzb = i;
this.zza = zzfxnVar;
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
public static zzaej zzc(int i, zzdy zzdyVar) {
zzaeb zzaekVar;
String str;
zzfxk zzfxkVar = new zzfxk();
int zze = zzdyVar.zze();
int i2 = -2;
while (zzdyVar.zzb() > 8) {
int zzi = zzdyVar.zzi();
int zzd = zzdyVar.zzd() + zzdyVar.zzi();
zzdyVar.zzK(zzd);
if (zzi != 1414744396) {
zzaek zzaekVar2 = null;
switch (zzi) {
case 1718776947:
if (i2 == 2) {
zzdyVar.zzM(4);
int zzi2 = zzdyVar.zzi();
int zzi3 = zzdyVar.zzi();
zzdyVar.zzM(4);
int zzi4 = zzdyVar.zzi();
switch (zzi4) {
case 808802372:
case 877677894:
case 1145656883:
case 1145656920:
case 1482049860:
case 1684633208:
case 2021026148:
str = MimeTypes.VIDEO_MP4V;
break;
case 826496577:
case 828601953:
case 875967048:
str = "video/avc";
break;
case 842289229:
str = "video/mp42";
break;
case 859066445:
str = "video/mp43";
break;
case 1196444237:
case 1735420525:
str = "video/mjpeg";
break;
default:
str = null;
break;
}
if (str == null) {
zzdo.zzf("StreamFormatChunk", "Ignoring track with unsupported compression " + zzi4);
} else {
zzz zzzVar = new zzz();
zzzVar.zzaf(zzi2);
zzzVar.zzK(zzi3);
zzzVar.zzaa(str);
zzaekVar2 = new zzaek(zzzVar.zzag());
}
} else if (i2 == 1) {
int zzk = zzdyVar.zzk();
String str2 = zzk != 1 ? zzk != 85 ? zzk != 255 ? zzk != 8192 ? zzk != 8193 ? null : MimeTypes.AUDIO_DTS : MimeTypes.AUDIO_AC3 : MimeTypes.AUDIO_AAC : MimeTypes.AUDIO_MPEG : MimeTypes.AUDIO_RAW;
if (str2 != null) {
int zzk2 = zzdyVar.zzk();
int zzi5 = zzdyVar.zzi();
zzdyVar.zzM(6);
int zzn = zzei.zzn(zzdyVar.zzk());
int zzk3 = zzdyVar.zzb() > 0 ? zzdyVar.zzk() : 0;
byte[] bArr = new byte[zzk3];
zzdyVar.zzH(bArr, 0, zzk3);
zzz zzzVar2 = new zzz();
zzzVar2.zzaa(str2);
zzzVar2.zzz(zzk2);
zzzVar2.zzab(zzi5);
if (MimeTypes.AUDIO_RAW.equals(str2) && zzn != 0) {
zzzVar2.zzU(zzn);
}
if (MimeTypes.AUDIO_AAC.equals(str2) && zzk3 > 0) {
zzzVar2.zzN(zzfxn.zzo(bArr));
}
zzaekVar = new zzaek(zzzVar2.zzag());
break;
} else {
zzdo.zzf("StreamFormatChunk", "Ignoring track with unsupported format tag " + zzk);
}
} else {
zzdo.zzf("StreamFormatChunk", "Ignoring strf box for unsupported track type: ".concat(zzei.zzD(i2)));
}
zzaekVar = zzaekVar2;
break;
case 1751742049:
zzaekVar = zzaeg.zzb(zzdyVar);
break;
case 1752331379:
zzaekVar = zzaeh.zzb(zzdyVar);
break;
case 1852994675:
zzaekVar = zzael.zzb(zzdyVar);
break;
default:
zzaekVar = zzaekVar2;
break;
}
} else {
zzaekVar = zzc(zzdyVar.zzi(), zzdyVar);
}
if (zzaekVar != null) {
if (zzaekVar.zza() == 1752331379) {
int i3 = ((zzaeh) zzaekVar).zza;
if (i3 == 1935960438) {
i2 = 2;
} else if (i3 == 1935963489) {
i2 = 1;
} else if (i3 != 1937012852) {
zzdo.zzf("AviStreamHeaderChunk", "Found unsupported streamType fourCC: ".concat(String.valueOf(Integer.toHexString(i3))));
i2 = -1;
} else {
i2 = 3;
}
}
zzfxkVar.zzf(zzaekVar);
}
zzdyVar.zzL(zzd);
zzdyVar.zzK(zze);
}
return new zzaej(i, zzfxkVar.zzi());
}
@Override // com.google.android.gms.internal.ads.zzaeb
public final int zza() {
return this.zzb;
}
@Nullable
public final zzaeb zzb(Class cls) {
zzfxn zzfxnVar = this.zza;
int size = zzfxnVar.size();
int i = 0;
while (i < size) {
zzaeb zzaebVar = (zzaeb) zzfxnVar.get(i);
i++;
if (zzaebVar.getClass() == cls) {
return zzaebVar;
}
}
return null;
}
}

View File

@@ -0,0 +1,15 @@
package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
final class zzaek implements zzaeb {
public final zzab zza;
public zzaek(zzab zzabVar) {
this.zza = zzabVar;
}
@Override // com.google.android.gms.internal.ads.zzaeb
public final int zza() {
return 1718776947;
}
}

Some files were not shown because too many files have changed in this diff Show More