what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzvu.java

205 lines
8.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.firebase_ml;
import java.io.IOException;
import java.util.Iterator;
import java.util.Map;
/* loaded from: classes2.dex */
final class zzvu<T> implements zzwe<T> {
private final zzvo zzbrb;
private final boolean zzbrc;
private final zzww<?, ?> zzbrl;
private final zztt<?> zzbrm;
private zzvu(zzww<?, ?> zzwwVar, zztt<?> zzttVar, zzvo zzvoVar) {
this.zzbrl = zzwwVar;
this.zzbrc = zzttVar.zze(zzvoVar);
this.zzbrm = zzttVar;
this.zzbrb = zzvoVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static <T> zzvu<T> zza(zzww<?, ?> zzwwVar, zztt<?> zzttVar, zzvo zzvoVar) {
return new zzvu<>(zzwwVar, zzttVar, zzvoVar);
}
@Override // com.google.android.gms.internal.firebase_ml.zzwe
public final T newInstance() {
return (T) this.zzbrb.zzrd().zzri();
}
@Override // com.google.android.gms.internal.firebase_ml.zzwe
public final boolean equals(T t, T t2) {
if (!this.zzbrl.zzae(t).equals(this.zzbrl.zzae(t2))) {
return false;
}
if (this.zzbrc) {
return this.zzbrm.zzo(t).equals(this.zzbrm.zzo(t2));
}
return true;
}
@Override // com.google.android.gms.internal.firebase_ml.zzwe
public final int hashCode(T t) {
int hashCode = this.zzbrl.zzae(t).hashCode();
return this.zzbrc ? (hashCode * 53) + this.zzbrm.zzo(t).hashCode() : hashCode;
}
@Override // com.google.android.gms.internal.firebase_ml.zzwe
public final void zzg(T t, T t2) {
zzwg.zza(this.zzbrl, t, t2);
if (this.zzbrc) {
zzwg.zza(this.zzbrm, t, t2);
}
}
@Override // com.google.android.gms.internal.firebase_ml.zzwe
public final void zza(T t, zzxr zzxrVar) throws IOException {
Iterator<Map.Entry<?, Object>> it = this.zzbrm.zzo(t).iterator();
while (it.hasNext()) {
Map.Entry<?, Object> next = it.next();
zzty zztyVar = (zzty) next.getKey();
if (zztyVar.zzqs() != zzxq.MESSAGE || zztyVar.zzqt() || zztyVar.zzqu()) {
throw new IllegalStateException("Found invalid MessageSet item.");
}
if (next instanceof zzut) {
zzxrVar.zza(zztyVar.zzo(), (Object) ((zzut) next).zzru().zzpp());
} else {
zzxrVar.zza(zztyVar.zzo(), next.getValue());
}
}
zzww<?, ?> zzwwVar = this.zzbrl;
zzwwVar.zzc(zzwwVar.zzae(t), zzxrVar);
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:22:0x0094 */
/* JADX WARN: Removed duplicated region for block: B:24:0x0099 A[EDGE_INSN: B:24:0x0099->B:25:0x0099 BREAK A[LOOP:1: B:10:0x0053->B:18:0x0053], SYNTHETIC] */
@Override // com.google.android.gms.internal.firebase_ml.zzwe
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void zza(T r10, byte[] r11, int r12, int r13, com.google.android.gms.internal.firebase_ml.zzst r14) throws java.io.IOException {
/*
r9 = this;
r0 = r10
com.google.android.gms.internal.firebase_ml.zzue r0 = (com.google.android.gms.internal.firebase_ml.zzue) r0
com.google.android.gms.internal.firebase_ml.zzwx r1 = r0.zzboh
com.google.android.gms.internal.firebase_ml.zzwx r2 = com.google.android.gms.internal.firebase_ml.zzwx.zztg()
if (r1 != r2) goto L11
com.google.android.gms.internal.firebase_ml.zzwx r1 = com.google.android.gms.internal.firebase_ml.zzwx.zzth()
r0.zzboh = r1
L11:
com.google.android.gms.internal.firebase_ml.zzue$zzd r10 = (com.google.android.gms.internal.firebase_ml.zzue.zzd) r10
r10.zzrk()
r10 = 0
r0 = r10
L18:
if (r12 >= r13) goto La4
int r4 = com.google.android.gms.internal.firebase_ml.zzss.zza(r11, r12, r14)
int r2 = r14.zzbkg
r12 = 11
r3 = 2
if (r2 == r12) goto L51
r12 = r2 & 7
if (r12 != r3) goto L4c
com.google.android.gms.internal.firebase_ml.zztt<?> r12 = r9.zzbrm
com.google.android.gms.internal.firebase_ml.zztr r0 = r14.zzix
com.google.android.gms.internal.firebase_ml.zzvo r3 = r9.zzbrb
int r5 = r2 >>> 3
java.lang.Object r12 = r12.zza(r0, r3, r5)
r0 = r12
com.google.android.gms.internal.firebase_ml.zzue$zze r0 = (com.google.android.gms.internal.firebase_ml.zzue.zze) r0
if (r0 != 0) goto L43
r3 = r11
r5 = r13
r6 = r1
r7 = r14
int r12 = com.google.android.gms.internal.firebase_ml.zzss.zza(r2, r3, r4, r5, r6, r7)
goto L18
L43:
com.google.android.gms.internal.firebase_ml.zzwb.zzso()
java.lang.NoSuchMethodError r10 = new java.lang.NoSuchMethodError
r10.<init>()
throw r10
L4c:
int r12 = com.google.android.gms.internal.firebase_ml.zzss.zza(r2, r11, r4, r13, r14)
goto L18
L51:
r12 = 0
r2 = r10
L53:
if (r4 >= r13) goto L99
int r4 = com.google.android.gms.internal.firebase_ml.zzss.zza(r11, r4, r14)
int r5 = r14.zzbkg
int r6 = r5 >>> 3
r7 = r5 & 7
if (r6 == r3) goto L7b
r8 = 3
if (r6 == r8) goto L65
goto L90
L65:
if (r0 != 0) goto L72
if (r7 != r3) goto L90
int r4 = com.google.android.gms.internal.firebase_ml.zzss.zze(r11, r4, r14)
java.lang.Object r2 = r14.zzbki
com.google.android.gms.internal.firebase_ml.zzsw r2 = (com.google.android.gms.internal.firebase_ml.zzsw) r2
goto L53
L72:
com.google.android.gms.internal.firebase_ml.zzwb.zzso()
java.lang.NoSuchMethodError r10 = new java.lang.NoSuchMethodError
r10.<init>()
throw r10
L7b:
if (r7 != 0) goto L90
int r4 = com.google.android.gms.internal.firebase_ml.zzss.zza(r11, r4, r14)
int r12 = r14.zzbkg
com.google.android.gms.internal.firebase_ml.zztt<?> r0 = r9.zzbrm
com.google.android.gms.internal.firebase_ml.zztr r5 = r14.zzix
com.google.android.gms.internal.firebase_ml.zzvo r6 = r9.zzbrb
java.lang.Object r0 = r0.zza(r5, r6, r12)
com.google.android.gms.internal.firebase_ml.zzue$zze r0 = (com.google.android.gms.internal.firebase_ml.zzue.zze) r0
goto L53
L90:
r6 = 12
if (r5 == r6) goto L99
int r4 = com.google.android.gms.internal.firebase_ml.zzss.zza(r5, r11, r4, r13, r14)
goto L53
L99:
if (r2 == 0) goto La1
int r12 = r12 << 3
r12 = r12 | r3
r1.zzb(r12, r2)
La1:
r12 = r4
goto L18
La4:
if (r12 != r13) goto La7
return
La7:
com.google.android.gms.internal.firebase_ml.zzuo r10 = com.google.android.gms.internal.firebase_ml.zzuo.zzrq()
throw r10
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.firebase_ml.zzvu.zza(java.lang.Object, byte[], int, int, com.google.android.gms.internal.firebase_ml.zzst):void");
}
@Override // com.google.android.gms.internal.firebase_ml.zzwe
public final void zzq(T t) {
this.zzbrl.zzq(t);
this.zzbrm.zzq(t);
}
@Override // com.google.android.gms.internal.firebase_ml.zzwe
public final boolean zzac(T t) {
return this.zzbrm.zzo(t).isInitialized();
}
@Override // com.google.android.gms.internal.firebase_ml.zzwe
public final int zzaa(T t) {
zzww<?, ?> zzwwVar = this.zzbrl;
int zzaf = zzwwVar.zzaf(zzwwVar.zzae(t));
return this.zzbrc ? zzaf + this.zzbrm.zzo(t).zzqq() : zzaf;
}
}