package com.google.android.gms.internal.ads; import java.nio.ByteBuffer; import java.util.concurrent.atomic.AtomicInteger; /* loaded from: classes3.dex */ public final class zzcdk extends zzcde implements zzgy { private static final AtomicInteger zzd = new AtomicInteger(0); private String zze; private final zzcbr zzf; private boolean zzg; private final zzcdj zzh; private final zzcco zzi; private ByteBuffer zzj; private boolean zzk; private final Object zzl; private final String zzm; private final int zzn; private boolean zzo; public zzcdk(zzcbs zzcbsVar, zzcbr zzcbrVar) { super(zzcbsVar); this.zzf = zzcbrVar; this.zzh = new zzcdj(); this.zzi = new zzcco(); this.zzl = new Object(); this.zzm = (String) zzful.zzd(zzcbsVar != null ? zzcbsVar.zzr() : null).zzb(""); this.zzn = zzcbsVar != null ? zzcbsVar.zzf() : 0; zzd.incrementAndGet(); } public static int zzi() { return zzd.get(); } public static final String zzv(String str) { return "cache:".concat(String.valueOf(com.google.android.gms.ads.internal.util.client.zzf.zzf(str))); } private final void zzx() { int zza = (int) this.zzh.zza(); int zza2 = (int) this.zzi.zza(this.zzj); int position = this.zzj.position(); int round = Math.round(zza2 * (position / zza)); int zzs = zzcbj.zzs(); int zzu = zzcbj.zzu(); String str = this.zze; zzn(str, zzv(str), position, zza, round, zza2, round > 0, zzs, zzu); } @Override // com.google.android.gms.internal.ads.zzcde, com.google.android.gms.common.api.Releasable public final void release() { zzd.decrementAndGet(); } @Override // com.google.android.gms.internal.ads.zzgy public final void zza(zzfy zzfyVar, zzgd zzgdVar, boolean z, int i) { } @Override // com.google.android.gms.internal.ads.zzgy public final void zzb(zzfy zzfyVar, zzgd zzgdVar, boolean z) { } @Override // com.google.android.gms.internal.ads.zzgy public final void zzc(zzfy zzfyVar, zzgd zzgdVar, boolean z) { } @Override // com.google.android.gms.internal.ads.zzgy public final void zzd(zzfy zzfyVar, zzgd zzgdVar, boolean z) { if (zzfyVar instanceof zzgl) { this.zzh.zzb((zzgl) zzfyVar); } } @Override // com.google.android.gms.internal.ads.zzcde public final void zzf() { this.zzg = true; } public final String zzk() { return this.zze; } public final ByteBuffer zzl() { synchronized (this.zzl) { try { ByteBuffer byteBuffer = this.zzj; if (byteBuffer != null && !this.zzk) { byteBuffer.flip(); this.zzk = true; } this.zzg = true; } catch (Throwable th) { throw th; } } return this.zzj; } public final boolean zzm() { return this.zzo; } /* JADX WARN: Code restructure failed: missing block: B:49:0x00ed, code lost: return true; */ /* JADX WARN: Code restructure failed: missing block: B:63:0x00b4, code lost: r21.zzo = true; zzj(r22, r4, (int) r21.zzi.zza(r21.zzj)); */ /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r3v2 */ /* JADX WARN: Type inference failed for: r3v8 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:56:? -> B:52:0x00d6). Please report as a decompilation issue!!! */ @Override // com.google.android.gms.internal.ads.zzcde /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final boolean zzt(java.lang.String r22) { /* Method dump skipped, instructions count: 412 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzcdk.zzt(java.lang.String):boolean"); } }