what-the-bank/sources/com/google/android/gms/internal/measurement/zzbz.java

77 lines
2.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.measurement;
import android.os.Bundle;
import java.util.concurrent.atomic.AtomicReference;
/* loaded from: classes.dex */
public final class zzbz extends zzce {
private final AtomicReference<Bundle> zza = new AtomicReference<>();
private boolean zzb;
/* JADX WARN: Code restructure failed: missing block: B:2:0x0002, code lost:
r1 = r1.get(com.airbnb.deeplinkdispatch.base.MatchIndex.ROOT_VALUE);
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final <T> T zze(android.os.Bundle r1, java.lang.Class<T> r2) {
/*
if (r1 == 0) goto L2c
java.lang.String r0 = "r"
java.lang.Object r1 = r1.get(r0)
if (r1 == 0) goto L2c
java.lang.Object r1 = r2.cast(r1) // Catch: java.lang.ClassCastException -> Lf
goto L2d
Lf:
r0 = move-exception
java.lang.String r2 = r2.getCanonicalName()
java.lang.Class r1 = r1.getClass()
java.lang.String r1 = r1.getCanonicalName()
java.lang.Object[] r1 = new java.lang.Object[]{r2, r1}
java.lang.String r2 = "Unexpected object type. Expected, Received: %s, %s"
java.lang.String r1 = java.lang.String.format(r2, r1)
java.lang.String r2 = "AM"
android.util.Log.w(r2, r1, r0)
throw r0
L2c:
r1 = 0
L2d:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.measurement.zzbz.zze(android.os.Bundle, java.lang.Class):java.lang.Object");
}
public final Bundle zzb(long j) {
Bundle bundle;
synchronized (this.zza) {
if (!this.zzb) {
try {
this.zza.wait(j);
} catch (InterruptedException unused) {
return null;
}
}
bundle = this.zza.get();
}
return bundle;
}
public final String zzc(long j) {
return (String) zze(zzb(j), String.class);
}
@Override // com.google.android.gms.internal.measurement.zzcf
public final void zzd(Bundle bundle) {
synchronized (this.zza) {
try {
this.zza.set(bundle);
this.zzb = true;
} finally {
this.zza.notify();
}
}
}
}