package com.google.android.gms.internal.firebase_ml; import com.google.android.gms.internal.firebase_ml.zzue; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.io.IOException; import java.lang.reflect.Field; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.Map; import org.bouncycastle.asn1.cmp.PKIFailureInfo; import sun.misc.Unsafe; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public final class zzvs implements zzwe { private static final int[] zzbqv = new int[0]; private static final Unsafe zzbqw = zzxc.zztl(); private final int[] zzbqx; private final Object[] zzbqy; private final int zzbqz; private final int zzbra; private final zzvo zzbrb; private final boolean zzbrc; private final boolean zzbrd; private final boolean zzbre; private final boolean zzbrf; private final int[] zzbrg; private final int zzbrh; private final int zzbri; private final zzvw zzbrj; private final zzuy zzbrk; private final zzww zzbrl; private final zztt zzbrm; private final zzvj zzbrn; private zzvs(int[] iArr, Object[] objArr, int i, int i2, zzvo zzvoVar, boolean z, boolean z2, int[] iArr2, int i3, int i4, zzvw zzvwVar, zzuy zzuyVar, zzww zzwwVar, zztt zzttVar, zzvj zzvjVar) { this.zzbqx = iArr; this.zzbqy = objArr; this.zzbqz = i; this.zzbra = i2; this.zzbrd = zzvoVar instanceof zzue; this.zzbre = z; this.zzbrc = zzttVar != null && zzttVar.zze(zzvoVar); this.zzbrf = false; this.zzbrg = iArr2; this.zzbrh = i3; this.zzbri = i4; this.zzbrj = zzvwVar; this.zzbrk = zzuyVar; this.zzbrl = zzwwVar; this.zzbrm = zzttVar; this.zzbrb = zzvoVar; this.zzbrn = zzvjVar; } /* JADX INFO: Access modifiers changed from: package-private */ public static zzvs zza(Class cls, zzvm zzvmVar, zzvw zzvwVar, zzuy zzuyVar, zzww zzwwVar, zztt zzttVar, zzvj zzvjVar) { int i; int charAt; int charAt2; int i2; int i3; int i4; int i5; int[] iArr; int i6; int i7; char charAt3; int i8; char charAt4; int i9; char charAt5; int i10; char charAt6; int i11; char charAt7; int i12; char charAt8; int i13; char charAt9; int i14; char charAt10; int i15; int i16; boolean z; int i17; zzwd zzwdVar; int objectFieldOffset; int i18; int i19; Class cls2; String str; int i20; int i21; Field zza; int i22; char charAt11; int i23; Field zza2; Field zza3; int i24; char charAt12; int i25; char charAt13; int i26; char charAt14; int i27; char charAt15; char charAt16; if (zzvmVar instanceof zzwd) { zzwd zzwdVar2 = (zzwd) zzvmVar; int i28 = 0; boolean z2 = zzwdVar2.zzsh() == zzue.zzf.zzbox; String zzsq = zzwdVar2.zzsq(); int length = zzsq.length(); int charAt17 = zzsq.charAt(0); if (charAt17 >= 55296) { int i29 = charAt17 & 8191; int i30 = 1; int i31 = 13; while (true) { i = i30 + 1; charAt16 = zzsq.charAt(i30); if (charAt16 < 55296) { break; } i29 |= (charAt16 & 8191) << i31; i31 += 13; i30 = i; } charAt17 = i29 | (charAt16 << i31); } else { i = 1; } int i32 = i + 1; int charAt18 = zzsq.charAt(i); if (charAt18 >= 55296) { int i33 = charAt18 & 8191; int i34 = 13; while (true) { i27 = i32 + 1; charAt15 = zzsq.charAt(i32); if (charAt15 < 55296) { break; } i33 |= (charAt15 & 8191) << i34; i34 += 13; i32 = i27; } charAt18 = i33 | (charAt15 << i34); i32 = i27; } if (charAt18 == 0) { i6 = 0; charAt = 0; i4 = 0; charAt2 = 0; i5 = 0; iArr = zzbqv; i3 = 0; } else { int i35 = i32 + 1; int charAt19 = zzsq.charAt(i32); if (charAt19 >= 55296) { int i36 = charAt19 & 8191; int i37 = 13; while (true) { i14 = i35 + 1; charAt10 = zzsq.charAt(i35); if (charAt10 < 55296) { break; } i36 |= (charAt10 & 8191) << i37; i37 += 13; i35 = i14; } charAt19 = i36 | (charAt10 << i37); i35 = i14; } int i38 = i35 + 1; int charAt20 = zzsq.charAt(i35); if (charAt20 >= 55296) { int i39 = charAt20 & 8191; int i40 = 13; while (true) { i13 = i38 + 1; charAt9 = zzsq.charAt(i38); if (charAt9 < 55296) { break; } i39 |= (charAt9 & 8191) << i40; i40 += 13; i38 = i13; } charAt20 = i39 | (charAt9 << i40); i38 = i13; } int i41 = i38 + 1; charAt = zzsq.charAt(i38); if (charAt >= 55296) { int i42 = charAt & 8191; int i43 = 13; while (true) { i12 = i41 + 1; charAt8 = zzsq.charAt(i41); if (charAt8 < 55296) { break; } i42 |= (charAt8 & 8191) << i43; i43 += 13; i41 = i12; } charAt = i42 | (charAt8 << i43); i41 = i12; } int i44 = i41 + 1; int charAt21 = zzsq.charAt(i41); if (charAt21 >= 55296) { int i45 = charAt21 & 8191; int i46 = 13; while (true) { i11 = i44 + 1; charAt7 = zzsq.charAt(i44); if (charAt7 < 55296) { break; } i45 |= (charAt7 & 8191) << i46; i46 += 13; i44 = i11; } charAt21 = i45 | (charAt7 << i46); i44 = i11; } int i47 = i44 + 1; charAt2 = zzsq.charAt(i44); if (charAt2 >= 55296) { int i48 = charAt2 & 8191; int i49 = 13; while (true) { i10 = i47 + 1; charAt6 = zzsq.charAt(i47); if (charAt6 < 55296) { break; } i48 |= (charAt6 & 8191) << i49; i49 += 13; i47 = i10; } charAt2 = i48 | (charAt6 << i49); i47 = i10; } int i50 = i47 + 1; int charAt22 = zzsq.charAt(i47); if (charAt22 >= 55296) { int i51 = charAt22 & 8191; int i52 = 13; while (true) { i9 = i50 + 1; charAt5 = zzsq.charAt(i50); if (charAt5 < 55296) { break; } i51 |= (charAt5 & 8191) << i52; i52 += 13; i50 = i9; } charAt22 = i51 | (charAt5 << i52); i50 = i9; } int i53 = i50 + 1; int charAt23 = zzsq.charAt(i50); if (charAt23 >= 55296) { int i54 = charAt23 & 8191; int i55 = i53; int i56 = 13; while (true) { i8 = i55 + 1; charAt4 = zzsq.charAt(i55); if (charAt4 < 55296) { break; } i54 |= (charAt4 & 8191) << i56; i56 += 13; i55 = i8; } charAt23 = i54 | (charAt4 << i56); i2 = i8; } else { i2 = i53; } int i57 = i2 + 1; int charAt24 = zzsq.charAt(i2); if (charAt24 >= 55296) { int i58 = charAt24 & 8191; int i59 = i57; int i60 = 13; while (true) { i7 = i59 + 1; charAt3 = zzsq.charAt(i59); if (charAt3 < 55296) { break; } i58 |= (charAt3 & 8191) << i60; i60 += 13; i59 = i7; } charAt24 = i58 | (charAt3 << i60); i57 = i7; } int[] iArr2 = new int[charAt24 + charAt22 + charAt23]; int i61 = (charAt19 << 1) + charAt20; i3 = charAt21; i4 = i61; i5 = charAt24; i28 = charAt19; i32 = i57; int i62 = charAt22; iArr = iArr2; i6 = i62; } Unsafe unsafe = zzbqw; Object[] zzsr = zzwdVar2.zzsr(); Class cls3 = zzwdVar2.zzsj().getClass(); int i63 = i32; int[] iArr3 = new int[charAt2 * 3]; Object[] objArr = new Object[charAt2 << 1]; int i64 = i5 + i6; int i65 = i5; int i66 = i63; int i67 = i64; int i68 = 0; int i69 = 0; while (i66 < length) { int i70 = i66 + 1; int charAt25 = zzsq.charAt(i66); int i71 = length; if (charAt25 >= 55296) { int i72 = charAt25 & 8191; int i73 = i70; int i74 = 13; while (true) { i26 = i73 + 1; charAt14 = zzsq.charAt(i73); i15 = i5; if (charAt14 < 55296) { break; } i72 |= (charAt14 & 8191) << i74; i74 += 13; i73 = i26; i5 = i15; } charAt25 = i72 | (charAt14 << i74); i16 = i26; } else { i15 = i5; i16 = i70; } int i75 = i16 + 1; int charAt26 = zzsq.charAt(i16); if (charAt26 >= 55296) { int i76 = charAt26 & 8191; int i77 = i75; int i78 = 13; while (true) { i25 = i77 + 1; charAt13 = zzsq.charAt(i77); z = z2; if (charAt13 < 55296) { break; } i76 |= (charAt13 & 8191) << i78; i78 += 13; i77 = i25; z2 = z; } charAt26 = i76 | (charAt13 << i78); i17 = i25; } else { z = z2; i17 = i75; } int i79 = charAt26 & 255; int i80 = i3; if ((charAt26 & 1024) != 0) { iArr[i69] = i68; i69++; } int i81 = charAt; if (i79 >= 51) { int i82 = i17 + 1; int charAt27 = zzsq.charAt(i17); char c = 55296; if (charAt27 >= 55296) { int i83 = charAt27 & 8191; int i84 = 13; while (true) { i24 = i82 + 1; charAt12 = zzsq.charAt(i82); if (charAt12 < c) { break; } i83 |= (charAt12 & 8191) << i84; i84 += 13; i82 = i24; c = 55296; } charAt27 = i83 | (charAt12 << i84); i82 = i24; } int i85 = i79 - 51; int i86 = i82; if (i85 == 9 || i85 == 17) { objArr[((i68 / 3) << 1) + 1] = zzsr[i4]; i4++; } else if (i85 == 12 && (charAt17 & 1) == 1) { objArr[((i68 / 3) << 1) + 1] = zzsr[i4]; i4++; } int i87 = charAt27 << 1; Object obj = zzsr[i87]; if (obj instanceof Field) { zza2 = (Field) obj; } else { zza2 = zza(cls3, (String) obj); zzsr[i87] = zza2; } zzwdVar = zzwdVar2; String str2 = zzsq; int objectFieldOffset2 = (int) unsafe.objectFieldOffset(zza2); int i88 = i87 + 1; Object obj2 = zzsr[i88]; if (obj2 instanceof Field) { zza3 = (Field) obj2; } else { zza3 = zza(cls3, (String) obj2); zzsr[i88] = zza3; } cls2 = cls3; i18 = i4; i17 = i86; str = str2; i21 = 0; i20 = (int) unsafe.objectFieldOffset(zza3); objectFieldOffset = objectFieldOffset2; i19 = i28; } else { zzwdVar = zzwdVar2; String str3 = zzsq; int i89 = i4 + 1; Field zza4 = zza(cls3, (String) zzsr[i4]); if (i79 == 9 || i79 == 17) { objArr[((i68 / 3) << 1) + 1] = zza4.getType(); } else { if (i79 == 27 || i79 == 49) { i23 = i4 + 2; objArr[((i68 / 3) << 1) + 1] = zzsr[i89]; } else if (i79 == 12 || i79 == 30 || i79 == 44) { if ((charAt17 & 1) == 1) { i23 = i4 + 2; objArr[((i68 / 3) << 1) + 1] = zzsr[i89]; } } else if (i79 == 50) { int i90 = i65 + 1; iArr[i65] = i68; int i91 = (i68 / 3) << 1; int i92 = i4 + 2; objArr[i91] = zzsr[i89]; if ((charAt26 & 2048) != 0) { i89 = i4 + 3; objArr[i91 + 1] = zzsr[i92]; i65 = i90; } else { i65 = i90; i89 = i92; } } i89 = i23; } objectFieldOffset = (int) unsafe.objectFieldOffset(zza4); if ((charAt17 & 1) != 1) { i18 = i89; i19 = i28; cls2 = cls3; str = str3; } else if (i79 <= 17) { int i93 = i17 + 1; str = str3; int charAt28 = str.charAt(i17); if (charAt28 >= 55296) { int i94 = charAt28 & 8191; int i95 = 13; while (true) { i22 = i93 + 1; charAt11 = str.charAt(i93); if (charAt11 < 55296) { break; } i94 |= (charAt11 & 8191) << i95; i95 += 13; i93 = i22; } charAt28 = i94 | (charAt11 << i95); i93 = i22; } int i96 = (i28 << 1) + (charAt28 / 32); Object obj3 = zzsr[i96]; i18 = i89; if (obj3 instanceof Field) { zza = (Field) obj3; } else { zza = zza(cls3, (String) obj3); zzsr[i96] = zza; } i19 = i28; cls2 = cls3; i21 = charAt28 % 32; i20 = (int) unsafe.objectFieldOffset(zza); i17 = i93; if (i79 >= 18 && i79 <= 49) { iArr[i67] = objectFieldOffset; i67++; } } else { i18 = i89; i19 = i28; cls2 = cls3; str = str3; } i20 = 0; i21 = 0; if (i79 >= 18) { iArr[i67] = objectFieldOffset; i67++; } } iArr3[i68] = charAt25; iArr3[i68 + 1] = objectFieldOffset | ((charAt26 & 256) != 0 ? 268435456 : 0) | ((charAt26 & 512) != 0 ? PKIFailureInfo.duplicateCertReq : 0) | (i79 << 20); iArr3[i68 + 2] = (i21 << 20) | i20; i28 = i19; i68 += 3; zzsq = str; i66 = i17; cls3 = cls2; i3 = i80; length = i71; i5 = i15; z2 = z; charAt = i81; i4 = i18; zzwdVar2 = zzwdVar; } return new zzvs<>(iArr3, objArr, charAt, i3, zzwdVar2.zzsj(), z2, false, iArr, i5, i64, zzvwVar, zzuyVar, zzwwVar, zzttVar, zzvjVar); } ((zzwr) zzvmVar).zzsh(); int i97 = zzue.zzf.zzbox; throw new NoSuchMethodError(); } private static Field zza(Class cls, String str) { try { return cls.getDeclaredField(str); } catch (NoSuchFieldException unused) { Field[] declaredFields = cls.getDeclaredFields(); for (Field field : declaredFields) { if (str.equals(field.getName())) { return field; } } String name = cls.getName(); String arrays = Arrays.toString(declaredFields); StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 40 + String.valueOf(name).length() + String.valueOf(arrays).length()); sb.append("Field "); sb.append(str); sb.append(" for "); sb.append(name); sb.append(" not found. Known fields are "); sb.append(arrays); throw new RuntimeException(sb.toString()); } } @Override // com.google.android.gms.internal.firebase_ml.zzwe public final T newInstance() { return (T) this.zzbrj.newInstance(this.zzbrb); } /* JADX WARN: Failed to find 'out' block for switch in B:4:0x0016. Please report as an issue. */ /* JADX WARN: Removed duplicated region for block: B:17:0x01c1 A[SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:18:0x01c2 A[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 boolean equals(T r9, T r10) { /* Method dump skipped, instructions count: 638 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.firebase_ml.zzvs.equals(java.lang.Object, java.lang.Object):boolean"); } /* JADX WARN: Failed to find 'out' block for switch in B:4:0x0019. Please report as an issue. */ @Override // com.google.android.gms.internal.firebase_ml.zzwe public final int hashCode(T t) { int i; int zzz; int length = this.zzbqx.length; int i2 = 0; for (int i3 = 0; i3 < length; i3 += 3) { int zzdl = zzdl(i3); int i4 = this.zzbqx[i3]; long j = 1048575 & zzdl; switch ((zzdl & 267386880) >>> 20) { case 0: i = i2 * 53; zzz = zzug.zzz(Double.doubleToLongBits(zzxc.zzo(t, j))); i2 = i + zzz; break; case 1: i = i2 * 53; zzz = Float.floatToIntBits(zzxc.zzn(t, j)); i2 = i + zzz; break; case 2: i = i2 * 53; zzz = zzug.zzz(zzxc.zzl(t, j)); i2 = i + zzz; break; case 3: i = i2 * 53; zzz = zzug.zzz(zzxc.zzl(t, j)); i2 = i + zzz; break; case 4: i = i2 * 53; zzz = zzxc.zzk(t, j); i2 = i + zzz; break; case 5: i = i2 * 53; zzz = zzug.zzz(zzxc.zzl(t, j)); i2 = i + zzz; break; case 6: i = i2 * 53; zzz = zzxc.zzk(t, j); i2 = i + zzz; break; case 7: i = i2 * 53; zzz = zzug.zzaj(zzxc.zzm(t, j)); i2 = i + zzz; break; case 8: i = i2 * 53; zzz = ((String) zzxc.zzp(t, j)).hashCode(); i2 = i + zzz; break; case 9: Object zzp = zzxc.zzp(t, j); if (zzp != null) { zzz = zzp.hashCode(); i = i2 * 53; i2 = i + zzz; break; } zzz = 37; i = i2 * 53; i2 = i + zzz; case 10: i = i2 * 53; zzz = zzxc.zzp(t, j).hashCode(); i2 = i + zzz; break; case 11: i = i2 * 53; zzz = zzxc.zzk(t, j); i2 = i + zzz; break; case 12: i = i2 * 53; zzz = zzxc.zzk(t, j); i2 = i + zzz; break; case 13: i = i2 * 53; zzz = zzxc.zzk(t, j); i2 = i + zzz; break; case 14: i = i2 * 53; zzz = zzug.zzz(zzxc.zzl(t, j)); i2 = i + zzz; break; case 15: i = i2 * 53; zzz = zzxc.zzk(t, j); i2 = i + zzz; break; case 16: i = i2 * 53; zzz = zzug.zzz(zzxc.zzl(t, j)); i2 = i + zzz; break; case 17: Object zzp2 = zzxc.zzp(t, j); if (zzp2 != null) { zzz = zzp2.hashCode(); i = i2 * 53; i2 = i + zzz; break; } zzz = 37; i = i2 * 53; i2 = i + zzz; case 18: case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: i = i2 * 53; zzz = zzxc.zzp(t, j).hashCode(); i2 = i + zzz; break; case 50: i = i2 * 53; zzz = zzxc.zzp(t, j).hashCode(); i2 = i + zzz; break; case 51: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzug.zzz(Double.doubleToLongBits(zzf(t, j))); i2 = i + zzz; break; } else { break; } case 52: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = Float.floatToIntBits(zzg(t, j)); i2 = i + zzz; break; } else { break; } case 53: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzug.zzz(zzi(t, j)); i2 = i + zzz; break; } else { break; } case 54: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzug.zzz(zzi(t, j)); i2 = i + zzz; break; } else { break; } case 55: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzh(t, j); i2 = i + zzz; break; } else { break; } case 56: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzug.zzz(zzi(t, j)); i2 = i + zzz; break; } else { break; } case 57: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzh(t, j); i2 = i + zzz; break; } else { break; } case 58: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzug.zzaj(zzj(t, j)); i2 = i + zzz; break; } else { break; } case 59: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = ((String) zzxc.zzp(t, j)).hashCode(); i2 = i + zzz; break; } else { break; } case 60: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzxc.zzp(t, j).hashCode(); i2 = i + zzz; break; } else { break; } case 61: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzxc.zzp(t, j).hashCode(); i2 = i + zzz; break; } else { break; } case 62: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzh(t, j); i2 = i + zzz; break; } else { break; } case 63: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzh(t, j); i2 = i + zzz; break; } else { break; } case 64: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzh(t, j); i2 = i + zzz; break; } else { break; } case 65: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzug.zzz(zzi(t, j)); i2 = i + zzz; break; } else { break; } case 66: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzh(t, j); i2 = i + zzz; break; } else { break; } case 67: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzug.zzz(zzi(t, j)); i2 = i + zzz; break; } else { break; } case 68: if (zza((zzvs) t, i4, i3)) { i = i2 * 53; zzz = zzxc.zzp(t, j).hashCode(); i2 = i + zzz; break; } else { break; } } } int hashCode = (i2 * 53) + 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) { t2.getClass(); for (int i = 0; i < this.zzbqx.length; i += 3) { int zzdl = zzdl(i); long j = 1048575 & zzdl; int i2 = this.zzbqx[i]; switch ((zzdl & 267386880) >>> 20) { case 0: if (zza((zzvs) t2, i)) { zzxc.zza(t, j, zzxc.zzo(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 1: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzn(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 2: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzl(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 3: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzl(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 4: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzk(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 5: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzl(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 6: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzk(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 7: if (zza((zzvs) t2, i)) { zzxc.zza(t, j, zzxc.zzm(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 8: if (zza((zzvs) t2, i)) { zzxc.zza(t, j, zzxc.zzp(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 9: zza(t, t2, i); break; case 10: if (zza((zzvs) t2, i)) { zzxc.zza(t, j, zzxc.zzp(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 11: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzk(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 12: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzk(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 13: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzk(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 14: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzl(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 15: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzk(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 16: if (zza((zzvs) t2, i)) { zzxc.zza((Object) t, j, zzxc.zzl(t2, j)); zzb((zzvs) t, i); break; } else { break; } case 17: zza(t, t2, i); break; case 18: case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: this.zzbrk.zza(t, t2, j); break; case 50: zzwg.zza(this.zzbrn, t, t2, j); break; case 51: case 52: case 53: case 54: case 55: case 56: case 57: case 58: case 59: if (zza((zzvs) t2, i2, i)) { zzxc.zza(t, j, zzxc.zzp(t2, j)); zzb((zzvs) t, i2, i); break; } else { break; } case 60: zzb(t, t2, i); break; case 61: case 62: case 63: case 64: case 65: case 66: case 67: if (zza((zzvs) t2, i2, i)) { zzxc.zza(t, j, zzxc.zzp(t2, j)); zzb((zzvs) t, i2, i); break; } else { break; } case 68: zzb(t, t2, i); break; } } if (this.zzbre) { return; } zzwg.zza(this.zzbrl, t, t2); if (this.zzbrc) { zzwg.zza(this.zzbrm, t, t2); } } private final void zza(T t, T t2, int i) { long zzdl = zzdl(i) & 1048575; if (zza((zzvs) t2, i)) { Object zzp = zzxc.zzp(t, zzdl); Object zzp2 = zzxc.zzp(t2, zzdl); if (zzp != null && zzp2 != null) { zzxc.zza(t, zzdl, zzug.zze(zzp, zzp2)); zzb((zzvs) t, i); } else if (zzp2 != null) { zzxc.zza(t, zzdl, zzp2); zzb((zzvs) t, i); } } } private final void zzb(T t, T t2, int i) { int zzdl = zzdl(i); int i2 = this.zzbqx[i]; long j = zzdl & 1048575; if (zza((zzvs) t2, i2, i)) { Object zzp = zzxc.zzp(t, j); Object zzp2 = zzxc.zzp(t2, j); if (zzp != null && zzp2 != null) { zzxc.zza(t, j, zzug.zze(zzp, zzp2)); zzb((zzvs) t, i2, i); } else if (zzp2 != null) { zzxc.zza(t, j, zzp2); zzb((zzvs) t, i2, i); } } } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARN: Failed to find 'out' block for switch in B:11:0x0042. Please report as an issue. */ /* JADX WARN: Failed to find 'out' block for switch in B:298:0x054e. Please report as an issue. */ @Override // com.google.android.gms.internal.firebase_ml.zzwe public final int zzaa(T t) { int i; int i2; int i3; int i4; long j; int zzd; int zzc; int zzp; int zzv; int zzq; int zzcu; int zzcw; int zzb; int zzq2; int zzcu2; int zzcw2; int i5 = 267386880; int i6 = 1048575; int i7 = 1; int i8 = 0; if (this.zzbre) { Unsafe unsafe = zzbqw; int i9 = 0; int i10 = 0; while (i9 < this.zzbqx.length) { int zzdl = zzdl(i9); int i11 = (zzdl & i5) >>> 20; int i12 = this.zzbqx[i9]; long j2 = zzdl & 1048575; int i13 = (i11 < zztz.zzbmz.id() || i11 > zztz.zzbnm.id()) ? 0 : this.zzbqx[i9 + 2] & 1048575; switch (i11) { case 0: if (zza((zzvs) t, i9)) { zzb = zztl.zzb(i12, 0.0d); i10 += zzb; break; } else { break; } case 1: if (zza((zzvs) t, i9)) { zzb = zztl.zzb(i12, BitmapDescriptorFactory.HUE_RED); i10 += zzb; break; } else { break; } case 2: if (zza((zzvs) t, i9)) { zzb = zztl.zzd(i12, zzxc.zzl(t, j2)); i10 += zzb; break; } else { break; } case 3: if (zza((zzvs) t, i9)) { zzb = zztl.zze(i12, zzxc.zzl(t, j2)); i10 += zzb; break; } else { break; } case 4: if (zza((zzvs) t, i9)) { zzb = zztl.zzl(i12, zzxc.zzk(t, j2)); i10 += zzb; break; } else { break; } case 5: if (zza((zzvs) t, i9)) { zzb = zztl.zzg(i12, 0L); i10 += zzb; break; } else { break; } case 6: if (zza((zzvs) t, i9)) { zzb = zztl.zzo(i12, 0); i10 += zzb; break; } else { break; } case 7: if (zza((zzvs) t, i9)) { zzb = zztl.zzc(i12, true); i10 += zzb; break; } else { break; } case 8: if (zza((zzvs) t, i9)) { Object zzp2 = zzxc.zzp(t, j2); if (zzp2 instanceof zzsw) { zzb = zztl.zzc(i12, (zzsw) zzp2); } else { zzb = zztl.zzc(i12, (String) zzp2); } i10 += zzb; break; } else { break; } case 9: if (zza((zzvs) t, i9)) { zzb = zzwg.zzc(i12, zzxc.zzp(t, j2), zzdi(i9)); i10 += zzb; break; } else { break; } case 10: if (zza((zzvs) t, i9)) { zzb = zztl.zzc(i12, (zzsw) zzxc.zzp(t, j2)); i10 += zzb; break; } else { break; } case 11: if (zza((zzvs) t, i9)) { zzb = zztl.zzm(i12, zzxc.zzk(t, j2)); i10 += zzb; break; } else { break; } case 12: if (zza((zzvs) t, i9)) { zzb = zztl.zzq(i12, zzxc.zzk(t, j2)); i10 += zzb; break; } else { break; } case 13: if (zza((zzvs) t, i9)) { zzb = zztl.zzp(i12, 0); i10 += zzb; break; } else { break; } case 14: if (zza((zzvs) t, i9)) { zzb = zztl.zzh(i12, 0L); i10 += zzb; break; } else { break; } case 15: if (zza((zzvs) t, i9)) { zzb = zztl.zzn(i12, zzxc.zzk(t, j2)); i10 += zzb; break; } else { break; } case 16: if (zza((zzvs) t, i9)) { zzb = zztl.zzf(i12, zzxc.zzl(t, j2)); i10 += zzb; break; } else { break; } case 17: if (zza((zzvs) t, i9)) { zzb = zztl.zzc(i12, (zzvo) zzxc.zzp(t, j2), zzdi(i9)); i10 += zzb; break; } else { break; } case 18: zzb = zzwg.zzw(i12, zze(t, j2), false); i10 += zzb; break; case 19: zzb = zzwg.zzv(i12, zze(t, j2), false); i10 += zzb; break; case 20: zzb = zzwg.zzo(i12, zze(t, j2), false); i10 += zzb; break; case 21: zzb = zzwg.zzp(i12, zze(t, j2), false); i10 += zzb; break; case 22: zzb = zzwg.zzs(i12, zze(t, j2), false); i10 += zzb; break; case 23: zzb = zzwg.zzw(i12, zze(t, j2), false); i10 += zzb; break; case 24: zzb = zzwg.zzv(i12, zze(t, j2), false); i10 += zzb; break; case 25: zzb = zzwg.zzx(i12, zze(t, j2), false); i10 += zzb; break; case 26: zzb = zzwg.zzc(i12, zze(t, j2)); i10 += zzb; break; case 27: zzb = zzwg.zzc(i12, (List) zze(t, j2), zzdi(i9)); i10 += zzb; break; case 28: zzb = zzwg.zzd(i12, zze(t, j2)); i10 += zzb; break; case 29: zzb = zzwg.zzt(i12, zze(t, j2), false); i10 += zzb; break; case 30: zzb = zzwg.zzr(i12, zze(t, j2), false); i10 += zzb; break; case 31: zzb = zzwg.zzv(i12, zze(t, j2), false); i10 += zzb; break; case 32: zzb = zzwg.zzw(i12, zze(t, j2), false); i10 += zzb; break; case 33: zzb = zzwg.zzu(i12, zze(t, j2), false); i10 += zzb; break; case 34: zzb = zzwg.zzq(i12, zze(t, j2), false); i10 += zzb; break; case 35: zzq2 = zzwg.zzq((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 36: zzq2 = zzwg.zzp((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 37: zzq2 = zzwg.zzi((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 38: zzq2 = zzwg.zzj((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 39: zzq2 = zzwg.zzm((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 40: zzq2 = zzwg.zzq((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 41: zzq2 = zzwg.zzp((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 42: zzq2 = zzwg.zzr((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 43: zzq2 = zzwg.zzn((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 44: zzq2 = zzwg.zzl((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 45: zzq2 = zzwg.zzp((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 46: zzq2 = zzwg.zzq((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 47: zzq2 = zzwg.zzo((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 48: zzq2 = zzwg.zzk((List) unsafe.getObject(t, j2)); if (zzq2 <= 0) { break; } else { if (this.zzbrf) { unsafe.putInt(t, i13, zzq2); } zzcu2 = zztl.zzcu(i12); zzcw2 = zztl.zzcw(zzq2); zzb = zzcu2 + zzcw2 + zzq2; i10 += zzb; break; } case 49: zzb = zzwg.zzd(i12, zze(t, j2), zzdi(i9)); i10 += zzb; break; case 50: zzb = this.zzbrn.zzd(i12, zzxc.zzp(t, j2), zzdj(i9)); i10 += zzb; break; case 51: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzb(i12, 0.0d); i10 += zzb; break; } else { break; } case 52: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzb(i12, BitmapDescriptorFactory.HUE_RED); i10 += zzb; break; } else { break; } case 53: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzd(i12, zzi(t, j2)); i10 += zzb; break; } else { break; } case 54: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zze(i12, zzi(t, j2)); i10 += zzb; break; } else { break; } case 55: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzl(i12, zzh(t, j2)); i10 += zzb; break; } else { break; } case 56: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzg(i12, 0L); i10 += zzb; break; } else { break; } case 57: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzo(i12, 0); i10 += zzb; break; } else { break; } case 58: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzc(i12, true); i10 += zzb; break; } else { break; } case 59: if (zza((zzvs) t, i12, i9)) { Object zzp3 = zzxc.zzp(t, j2); if (zzp3 instanceof zzsw) { zzb = zztl.zzc(i12, (zzsw) zzp3); } else { zzb = zztl.zzc(i12, (String) zzp3); } i10 += zzb; break; } else { break; } case 60: if (zza((zzvs) t, i12, i9)) { zzb = zzwg.zzc(i12, zzxc.zzp(t, j2), zzdi(i9)); i10 += zzb; break; } else { break; } case 61: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzc(i12, (zzsw) zzxc.zzp(t, j2)); i10 += zzb; break; } else { break; } case 62: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzm(i12, zzh(t, j2)); i10 += zzb; break; } else { break; } case 63: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzq(i12, zzh(t, j2)); i10 += zzb; break; } else { break; } case 64: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzp(i12, 0); i10 += zzb; break; } else { break; } case 65: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzh(i12, 0L); i10 += zzb; break; } else { break; } case 66: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzn(i12, zzh(t, j2)); i10 += zzb; break; } else { break; } case 67: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzf(i12, zzi(t, j2)); i10 += zzb; break; } else { break; } case 68: if (zza((zzvs) t, i12, i9)) { zzb = zztl.zzc(i12, (zzvo) zzxc.zzp(t, j2), zzdi(i9)); i10 += zzb; break; } else { break; } } i9 += 3; i5 = 267386880; } return i10 + zza(this.zzbrl, t); } Unsafe unsafe2 = zzbqw; int i14 = -1; int i15 = 0; int i16 = 0; int i17 = 0; while (i15 < this.zzbqx.length) { int zzdl2 = zzdl(i15); int[] iArr = this.zzbqx; int i18 = iArr[i15]; int i19 = (zzdl2 & 267386880) >>> 20; if (i19 <= 17) { i = iArr[i15 + 2]; int i20 = i & i6; i2 = i7 << (i >>> 20); if (i20 != i14) { i17 = unsafe2.getInt(t, i20); i14 = i20; } } else { i = (!this.zzbrf || i19 < zztz.zzbmz.id() || i19 > zztz.zzbnm.id()) ? 0 : this.zzbqx[i15 + 2] & i6; i2 = 0; } long j3 = zzdl2 & i6; switch (i19) { case 0: i3 = 1; i4 = 0; j = 0; if ((i17 & i2) != 0) { i16 += zztl.zzb(i18, 0.0d); break; } break; case 1: i3 = 1; i4 = 0; j = 0; if ((i17 & i2) != 0) { i16 += zztl.zzb(i18, BitmapDescriptorFactory.HUE_RED); break; } case 2: i3 = 1; i4 = 0; j = 0; if ((i17 & i2) != 0) { zzd = zztl.zzd(i18, unsafe2.getLong(t, j3)); i16 += zzd; } break; case 3: i3 = 1; i4 = 0; j = 0; if ((i17 & i2) != 0) { zzd = zztl.zze(i18, unsafe2.getLong(t, j3)); i16 += zzd; } break; case 4: i3 = 1; i4 = 0; j = 0; if ((i17 & i2) != 0) { zzd = zztl.zzl(i18, unsafe2.getInt(t, j3)); i16 += zzd; } break; case 5: i3 = 1; i4 = 0; j = 0; if ((i17 & i2) != 0) { zzd = zztl.zzg(i18, 0L); i16 += zzd; } break; case 6: i3 = 1; i4 = 0; if ((i17 & i2) != 0) { i16 += zztl.zzo(i18, 0); } j = 0; break; case 7: if ((i17 & i2) != 0) { i3 = 1; i16 += zztl.zzc(i18, true); i4 = 0; j = 0; break; } i3 = 1; i4 = 0; j = 0; case 8: if ((i17 & i2) != 0) { Object object = unsafe2.getObject(t, j3); if (object instanceof zzsw) { zzc = zztl.zzc(i18, (zzsw) object); } else { zzc = zztl.zzc(i18, (String) object); } i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 9: if ((i17 & i2) != 0) { zzc = zzwg.zzc(i18, unsafe2.getObject(t, j3), zzdi(i15)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 10: if ((i17 & i2) != 0) { zzc = zztl.zzc(i18, (zzsw) unsafe2.getObject(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 11: if ((i17 & i2) != 0) { zzc = zztl.zzm(i18, unsafe2.getInt(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 12: if ((i17 & i2) != 0) { zzc = zztl.zzq(i18, unsafe2.getInt(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 13: if ((i17 & i2) != 0) { zzp = zztl.zzp(i18, 0); i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 14: if ((i17 & i2) != 0) { zzc = zztl.zzh(i18, 0L); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 15: if ((i17 & i2) != 0) { zzc = zztl.zzn(i18, unsafe2.getInt(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 16: if ((i17 & i2) != 0) { zzc = zztl.zzf(i18, unsafe2.getLong(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 17: if ((i17 & i2) != 0) { zzc = zztl.zzc(i18, (zzvo) unsafe2.getObject(t, j3), zzdi(i15)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 18: zzc = zzwg.zzw(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzc; i3 = 1; i4 = 0; j = 0; break; case 19: i4 = 0; zzv = zzwg.zzv(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 20: i4 = 0; zzv = zzwg.zzo(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 21: i4 = 0; zzv = zzwg.zzp(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 22: i4 = 0; zzv = zzwg.zzs(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 23: i4 = 0; zzv = zzwg.zzw(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 24: i4 = 0; zzv = zzwg.zzv(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 25: i4 = 0; zzv = zzwg.zzx(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 26: zzc = zzwg.zzc(i18, (List) unsafe2.getObject(t, j3)); i16 += zzc; i3 = 1; i4 = 0; j = 0; break; case 27: zzc = zzwg.zzc(i18, (List) unsafe2.getObject(t, j3), zzdi(i15)); i16 += zzc; i3 = 1; i4 = 0; j = 0; break; case 28: zzc = zzwg.zzd(i18, (List) unsafe2.getObject(t, j3)); i16 += zzc; i3 = 1; i4 = 0; j = 0; break; case 29: zzc = zzwg.zzt(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzc; i3 = 1; i4 = 0; j = 0; break; case 30: i4 = 0; zzv = zzwg.zzr(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 31: i4 = 0; zzv = zzwg.zzv(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 32: i4 = 0; zzv = zzwg.zzw(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 33: i4 = 0; zzv = zzwg.zzu(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 34: i4 = 0; zzv = zzwg.zzq(i18, (List) unsafe2.getObject(t, j3), false); i16 += zzv; i3 = 1; j = 0; break; case 35: zzq = zzwg.zzq((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 36: zzq = zzwg.zzp((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 37: zzq = zzwg.zzi((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 38: zzq = zzwg.zzj((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 39: zzq = zzwg.zzm((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 40: zzq = zzwg.zzq((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 41: zzq = zzwg.zzp((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 42: zzq = zzwg.zzr((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 43: zzq = zzwg.zzn((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 44: zzq = zzwg.zzl((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 45: zzq = zzwg.zzp((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 46: zzq = zzwg.zzq((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 47: zzq = zzwg.zzo((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 48: zzq = zzwg.zzk((List) unsafe2.getObject(t, j3)); if (zzq > 0) { if (this.zzbrf) { unsafe2.putInt(t, i, zzq); } zzcu = zztl.zzcu(i18); zzcw = zztl.zzcw(zzq); zzp = zzcu + zzcw + zzq; i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 49: zzc = zzwg.zzd(i18, (List) unsafe2.getObject(t, j3), zzdi(i15)); i16 += zzc; i3 = 1; i4 = 0; j = 0; break; case 50: zzc = this.zzbrn.zzd(i18, unsafe2.getObject(t, j3), zzdj(i15)); i16 += zzc; i3 = 1; i4 = 0; j = 0; break; case 51: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zzb(i18, 0.0d); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 52: if (zza((zzvs) t, i18, i15)) { zzp = zztl.zzb(i18, BitmapDescriptorFactory.HUE_RED); i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 53: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zzd(i18, zzi(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 54: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zze(i18, zzi(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 55: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zzl(i18, zzh(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 56: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zzg(i18, 0L); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 57: if (zza((zzvs) t, i18, i15)) { zzp = zztl.zzo(i18, 0); i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 58: if (zza((zzvs) t, i18, i15)) { zzp = zztl.zzc(i18, true); i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 59: if (zza((zzvs) t, i18, i15)) { Object object2 = unsafe2.getObject(t, j3); if (object2 instanceof zzsw) { zzc = zztl.zzc(i18, (zzsw) object2); } else { zzc = zztl.zzc(i18, (String) object2); } i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 60: if (zza((zzvs) t, i18, i15)) { zzc = zzwg.zzc(i18, unsafe2.getObject(t, j3), zzdi(i15)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 61: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zzc(i18, (zzsw) unsafe2.getObject(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 62: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zzm(i18, zzh(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 63: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zzq(i18, zzh(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 64: if (zza((zzvs) t, i18, i15)) { zzp = zztl.zzp(i18, 0); i16 += zzp; } i3 = 1; i4 = 0; j = 0; break; case 65: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zzh(i18, 0L); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 66: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zzn(i18, zzh(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 67: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zzf(i18, zzi(t, j3)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; case 68: if (zza((zzvs) t, i18, i15)) { zzc = zztl.zzc(i18, (zzvo) unsafe2.getObject(t, j3), zzdi(i15)); i16 += zzc; } i3 = 1; i4 = 0; j = 0; break; default: i3 = 1; i4 = 0; j = 0; break; } i15 += 3; i7 = i3; i8 = i4; i6 = 1048575; } int i21 = i8; int zza = i16 + zza(this.zzbrl, t); if (!this.zzbrc) { return zza; } zztw zzo = this.zzbrm.zzo(t); for (int i22 = i21; i22 < zzo.zzblk.zzsx(); i22++) { Map.Entry zzdp = zzo.zzblk.zzdp(i22); i21 += zztw.zzb((zzty) zzdp.getKey(), zzdp.getValue()); } for (Map.Entry entry : zzo.zzblk.zzsy()) { i21 += zztw.zzb((zzty) entry.getKey(), entry.getValue()); } return zza + i21; } private static int zza(zzww zzwwVar, T t) { return zzwwVar.zzaa(zzwwVar.zzae(t)); } private static List zze(Object obj, long j) { return (List) zzxc.zzp(obj, j); } /* JADX WARN: Removed duplicated region for block: B:10:0x003b */ /* JADX WARN: Removed duplicated region for block: B:277:0x0513 */ /* JADX WARN: Removed duplicated region for block: B:299:0x0552 */ /* JADX WARN: Removed duplicated region for block: B:566:0x0a2a */ @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 r14, com.google.android.gms.internal.firebase_ml.zzxr r15) throws java.io.IOException { /* Method dump skipped, instructions count: 2916 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.firebase_ml.zzvs.zza(java.lang.Object, com.google.android.gms.internal.firebase_ml.zzxr):void"); } /* JADX WARN: Removed duplicated region for block: B:224:0x048e */ /* JADX WARN: Removed duplicated region for block: B:8:0x002f */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private final void zzb(T r18, com.google.android.gms.internal.firebase_ml.zzxr r19) throws java.io.IOException { /* Method dump skipped, instructions count: 1336 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.firebase_ml.zzvs.zzb(java.lang.Object, com.google.android.gms.internal.firebase_ml.zzxr):void"); } private final void zza(zzxr zzxrVar, int i, Object obj, int i2) throws IOException { if (obj != null) { zzxrVar.zza(i, this.zzbrn.zzz(zzdj(i2)), this.zzbrn.zzv(obj)); } } private static void zza(zzww zzwwVar, T t, zzxr zzxrVar) throws IOException { zzwwVar.zza(zzwwVar.zzae(t), zzxrVar); } private static zzwx zzab(Object obj) { zzue zzueVar = (zzue) obj; zzwx zzwxVar = zzueVar.zzboh; if (zzwxVar != zzwx.zztg()) { return zzwxVar; } zzwx zzth = zzwx.zzth(); zzueVar.zzboh = zzth; return zzth; } /* JADX WARN: Failed to find 'out' block for switch in B:2:0x0008. Please report as an issue. */ private static int zza(byte[] bArr, int i, int i2, zzxl zzxlVar, Class cls, zzst zzstVar) throws IOException { switch (zzvt.zzblp[zzxlVar.ordinal()]) { case 1: int zzb = zzss.zzb(bArr, i, zzstVar); zzstVar.zzbki = Boolean.valueOf(zzstVar.zzbkh != 0); return zzb; case 2: return zzss.zze(bArr, i, zzstVar); case 3: zzstVar.zzbki = Double.valueOf(zzss.zzc(bArr, i)); return i + 8; case 4: case 5: zzstVar.zzbki = Integer.valueOf(zzss.zza(bArr, i)); return i + 4; case 6: case 7: zzstVar.zzbki = Long.valueOf(zzss.zzb(bArr, i)); return i + 8; case 8: zzstVar.zzbki = Float.valueOf(zzss.zzd(bArr, i)); return i + 4; case 9: case 10: case 11: int zza = zzss.zza(bArr, i, zzstVar); zzstVar.zzbki = Integer.valueOf(zzstVar.zzbkg); return zza; case 12: case 13: int zzb2 = zzss.zzb(bArr, i, zzstVar); zzstVar.zzbki = Long.valueOf(zzstVar.zzbkh); return zzb2; case 14: return zzss.zza(zzwb.zzso().zzk(cls), bArr, i, i2, zzstVar); case 15: int zza2 = zzss.zza(bArr, i, zzstVar); zzstVar.zzbki = Integer.valueOf(zzti.zzcp(zzstVar.zzbkg)); return zza2; case 16: int zzb3 = zzss.zzb(bArr, i, zzstVar); zzstVar.zzbki = Long.valueOf(zzti.zzp(zzstVar.zzbkh)); return zzb3; case 17: return zzss.zzd(bArr, i, zzstVar); default: throw new RuntimeException("unsupported field type."); } } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARN: Failed to find 'out' block for switch in B:9:0x0037. Please report as an issue. */ /* JADX WARN: Multi-variable type inference failed */ private final int zza(T t, byte[] bArr, int i, int i2, int i3, int i4, int i5, int i6, long j, int i7, long j2, zzst zzstVar) throws IOException { int zza; int i8 = i; Unsafe unsafe = zzbqw; zzun zzunVar = (zzun) unsafe.getObject(t, j2); if (!zzunVar.zzps()) { int size = zzunVar.size(); zzunVar = zzunVar.zzck(size == 0 ? 10 : size << 1); unsafe.putObject(t, j2, zzunVar); } switch (i7) { case 18: case 35: if (i5 == 2) { zzto zztoVar = (zzto) zzunVar; int zza2 = zzss.zza(bArr, i8, zzstVar); int i9 = zzstVar.zzbkg + zza2; while (zza2 < i9) { zztoVar.zze(zzss.zzc(bArr, zza2)); zza2 += 8; } if (zza2 == i9) { return zza2; } throw zzuo.zzrm(); } if (i5 == 1) { zzto zztoVar2 = (zzto) zzunVar; zztoVar2.zze(zzss.zzc(bArr, i)); while (true) { int i10 = i8 + 8; if (i10 >= i2) { return i10; } i8 = zzss.zza(bArr, i10, zzstVar); if (i3 != zzstVar.zzbkg) { return i10; } zztoVar2.zze(zzss.zzc(bArr, i8)); } } return i8; case 19: case 36: if (i5 == 2) { zzuc zzucVar = (zzuc) zzunVar; int zza3 = zzss.zza(bArr, i8, zzstVar); int i11 = zzstVar.zzbkg + zza3; while (zza3 < i11) { zzucVar.zzv(zzss.zzd(bArr, zza3)); zza3 += 4; } if (zza3 == i11) { return zza3; } throw zzuo.zzrm(); } if (i5 == 5) { zzuc zzucVar2 = (zzuc) zzunVar; zzucVar2.zzv(zzss.zzd(bArr, i)); while (true) { int i12 = i8 + 4; if (i12 >= i2) { return i12; } i8 = zzss.zza(bArr, i12, zzstVar); if (i3 != zzstVar.zzbkg) { return i12; } zzucVar2.zzv(zzss.zzd(bArr, i8)); } } return i8; case 20: case 21: case 37: case 38: if (i5 == 2) { zzvc zzvcVar = (zzvc) zzunVar; int zza4 = zzss.zza(bArr, i8, zzstVar); int i13 = zzstVar.zzbkg + zza4; while (zza4 < i13) { zza4 = zzss.zzb(bArr, zza4, zzstVar); zzvcVar.zzaa(zzstVar.zzbkh); } if (zza4 == i13) { return zza4; } throw zzuo.zzrm(); } if (i5 == 0) { zzvc zzvcVar2 = (zzvc) zzunVar; int zzb = zzss.zzb(bArr, i8, zzstVar); zzvcVar2.zzaa(zzstVar.zzbkh); while (zzb < i2) { int zza5 = zzss.zza(bArr, zzb, zzstVar); if (i3 != zzstVar.zzbkg) { return zzb; } zzb = zzss.zzb(bArr, zza5, zzstVar); zzvcVar2.zzaa(zzstVar.zzbkh); } return zzb; } return i8; case 22: case 29: case 39: case 43: if (i5 == 2) { return zzss.zza(bArr, i8, (zzun) zzunVar, zzstVar); } if (i5 == 0) { return zzss.zza(i3, bArr, i, i2, (zzun) zzunVar, zzstVar); } return i8; case 23: case 32: case 40: case 46: if (i5 == 2) { zzvc zzvcVar3 = (zzvc) zzunVar; int zza6 = zzss.zza(bArr, i8, zzstVar); int i14 = zzstVar.zzbkg + zza6; while (zza6 < i14) { zzvcVar3.zzaa(zzss.zzb(bArr, zza6)); zza6 += 8; } if (zza6 == i14) { return zza6; } throw zzuo.zzrm(); } if (i5 == 1) { zzvc zzvcVar4 = (zzvc) zzunVar; zzvcVar4.zzaa(zzss.zzb(bArr, i)); while (true) { int i15 = i8 + 8; if (i15 >= i2) { return i15; } i8 = zzss.zza(bArr, i15, zzstVar); if (i3 != zzstVar.zzbkg) { return i15; } zzvcVar4.zzaa(zzss.zzb(bArr, i8)); } } return i8; case 24: case 31: case 41: case 45: if (i5 == 2) { zzuf zzufVar = (zzuf) zzunVar; int zza7 = zzss.zza(bArr, i8, zzstVar); int i16 = zzstVar.zzbkg + zza7; while (zza7 < i16) { zzufVar.zzdh(zzss.zza(bArr, zza7)); zza7 += 4; } if (zza7 == i16) { return zza7; } throw zzuo.zzrm(); } if (i5 == 5) { zzuf zzufVar2 = (zzuf) zzunVar; zzufVar2.zzdh(zzss.zza(bArr, i)); while (true) { int i17 = i8 + 4; if (i17 >= i2) { return i17; } i8 = zzss.zza(bArr, i17, zzstVar); if (i3 != zzstVar.zzbkg) { return i17; } zzufVar2.zzdh(zzss.zza(bArr, i8)); } } return i8; case 25: case 42: if (i5 == 2) { zzsu zzsuVar = (zzsu) zzunVar; zza = zzss.zza(bArr, i8, zzstVar); int i18 = zzstVar.zzbkg + zza; while (zza < i18) { zza = zzss.zzb(bArr, zza, zzstVar); zzsuVar.addBoolean(zzstVar.zzbkh != 0); } if (zza != i18) { throw zzuo.zzrm(); } return zza; } if (i5 == 0) { zzsu zzsuVar2 = (zzsu) zzunVar; i8 = zzss.zzb(bArr, i8, zzstVar); zzsuVar2.addBoolean(zzstVar.zzbkh != 0); while (i8 < i2) { int zza8 = zzss.zza(bArr, i8, zzstVar); if (i3 == zzstVar.zzbkg) { i8 = zzss.zzb(bArr, zza8, zzstVar); zzsuVar2.addBoolean(zzstVar.zzbkh != 0); } } } return i8; case 26: if (i5 == 2) { if ((j & 536870912) == 0) { int zza9 = zzss.zza(bArr, i8, zzstVar); int i19 = zzstVar.zzbkg; if (i19 < 0) { throw zzuo.zzrn(); } if (i19 == 0) { zzunVar.add(""); } else { zzunVar.add(new String(bArr, zza9, i19, zzug.UTF_8)); zza9 += i19; } while (zza9 < i2) { int zza10 = zzss.zza(bArr, zza9, zzstVar); if (i3 != zzstVar.zzbkg) { return zza9; } zza9 = zzss.zza(bArr, zza10, zzstVar); int i20 = zzstVar.zzbkg; if (i20 < 0) { throw zzuo.zzrn(); } if (i20 == 0) { zzunVar.add(""); } else { zzunVar.add(new String(bArr, zza9, i20, zzug.UTF_8)); zza9 += i20; } } return zza9; } int zza11 = zzss.zza(bArr, i8, zzstVar); int i21 = zzstVar.zzbkg; if (i21 < 0) { throw zzuo.zzrn(); } if (i21 == 0) { zzunVar.add(""); } else { int i22 = zza11 + i21; if (!zzxe.zzf(bArr, zza11, i22)) { throw zzuo.zzrr(); } zzunVar.add(new String(bArr, zza11, i21, zzug.UTF_8)); zza11 = i22; } while (zza11 < i2) { int zza12 = zzss.zza(bArr, zza11, zzstVar); if (i3 != zzstVar.zzbkg) { return zza11; } zza11 = zzss.zza(bArr, zza12, zzstVar); int i23 = zzstVar.zzbkg; if (i23 < 0) { throw zzuo.zzrn(); } if (i23 == 0) { zzunVar.add(""); } else { int i24 = zza11 + i23; if (!zzxe.zzf(bArr, zza11, i24)) { throw zzuo.zzrr(); } zzunVar.add(new String(bArr, zza11, i23, zzug.UTF_8)); zza11 = i24; } } return zza11; } return i8; case 27: if (i5 == 2) { return zzss.zza(zzdi(i6), i3, bArr, i, i2, zzunVar, zzstVar); } return i8; case 28: if (i5 == 2) { int zza13 = zzss.zza(bArr, i8, zzstVar); int i25 = zzstVar.zzbkg; if (i25 < 0) { throw zzuo.zzrn(); } if (i25 > bArr.length - zza13) { throw zzuo.zzrm(); } if (i25 == 0) { zzunVar.add(zzsw.zzbkl); } else { zzunVar.add(zzsw.zzc(bArr, zza13, i25)); zza13 += i25; } while (zza13 < i2) { int zza14 = zzss.zza(bArr, zza13, zzstVar); if (i3 != zzstVar.zzbkg) { return zza13; } zza13 = zzss.zza(bArr, zza14, zzstVar); int i26 = zzstVar.zzbkg; if (i26 < 0) { throw zzuo.zzrn(); } if (i26 > bArr.length - zza13) { throw zzuo.zzrm(); } if (i26 == 0) { zzunVar.add(zzsw.zzbkl); } else { zzunVar.add(zzsw.zzc(bArr, zza13, i26)); zza13 += i26; } } return zza13; } return i8; case 30: case 44: if (i5 != 2) { if (i5 == 0) { zza = zzss.zza(i3, bArr, i, i2, (zzun) zzunVar, zzstVar); } return i8; } zza = zzss.zza(bArr, i8, (zzun) zzunVar, zzstVar); zzue zzueVar = (zzue) t; zzwx zzwxVar = zzueVar.zzboh; if (zzwxVar == zzwx.zztg()) { zzwxVar = null; } zzwx zzwxVar2 = (zzwx) zzwg.zza(i4, zzunVar, zzdk(i6), zzwxVar, this.zzbrl); if (zzwxVar2 != null) { zzueVar.zzboh = zzwxVar2; } return zza; case 33: case 47: if (i5 == 2) { zzuf zzufVar3 = (zzuf) zzunVar; int zza15 = zzss.zza(bArr, i8, zzstVar); int i27 = zzstVar.zzbkg + zza15; while (zza15 < i27) { zza15 = zzss.zza(bArr, zza15, zzstVar); zzufVar3.zzdh(zzti.zzcp(zzstVar.zzbkg)); } if (zza15 == i27) { return zza15; } throw zzuo.zzrm(); } if (i5 == 0) { zzuf zzufVar4 = (zzuf) zzunVar; int zza16 = zzss.zza(bArr, i8, zzstVar); zzufVar4.zzdh(zzti.zzcp(zzstVar.zzbkg)); while (zza16 < i2) { int zza17 = zzss.zza(bArr, zza16, zzstVar); if (i3 != zzstVar.zzbkg) { return zza16; } zza16 = zzss.zza(bArr, zza17, zzstVar); zzufVar4.zzdh(zzti.zzcp(zzstVar.zzbkg)); } return zza16; } return i8; case 34: case 48: if (i5 == 2) { zzvc zzvcVar5 = (zzvc) zzunVar; int zza18 = zzss.zza(bArr, i8, zzstVar); int i28 = zzstVar.zzbkg + zza18; while (zza18 < i28) { zza18 = zzss.zzb(bArr, zza18, zzstVar); zzvcVar5.zzaa(zzti.zzp(zzstVar.zzbkh)); } if (zza18 == i28) { return zza18; } throw zzuo.zzrm(); } if (i5 == 0) { zzvc zzvcVar6 = (zzvc) zzunVar; int zzb2 = zzss.zzb(bArr, i8, zzstVar); zzvcVar6.zzaa(zzti.zzp(zzstVar.zzbkh)); while (zzb2 < i2) { int zza19 = zzss.zza(bArr, zzb2, zzstVar); if (i3 != zzstVar.zzbkg) { return zzb2; } zzb2 = zzss.zzb(bArr, zza19, zzstVar); zzvcVar6.zzaa(zzti.zzp(zzstVar.zzbkh)); } return zzb2; } return i8; case 49: if (i5 == 3) { zzwe zzdi = zzdi(i6); int i29 = (i3 & (-8)) | 4; i8 = zzss.zza(zzdi, bArr, i, i2, i29, zzstVar); zzunVar.add(zzstVar.zzbki); while (i8 < i2) { int zza20 = zzss.zza(bArr, i8, zzstVar); if (i3 == zzstVar.zzbkg) { i8 = zzss.zza(zzdi, bArr, zza20, i2, i29, zzstVar); zzunVar.add(zzstVar.zzbki); } } } return i8; default: return i8; } } private final int zza(T t, byte[] bArr, int i, int i2, int i3, long j, zzst zzstVar) throws IOException { Unsafe unsafe = zzbqw; Object zzdj = zzdj(i3); Object object = unsafe.getObject(t, j); if (this.zzbrn.zzw(object)) { Object zzy = this.zzbrn.zzy(zzdj); this.zzbrn.zzf(zzy, object); unsafe.putObject(t, j, zzy); object = zzy; } zzvh zzz = this.zzbrn.zzz(zzdj); Map zzu = this.zzbrn.zzu(object); int zza = zzss.zza(bArr, i, zzstVar); int i4 = zzstVar.zzbkg; if (i4 < 0 || i4 > i2 - zza) { throw zzuo.zzrm(); } int i5 = i4 + zza; K k = zzz.zzbqp; V v = zzz.zzbqr; while (zza < i5) { int i6 = zza + 1; int i7 = bArr[zza]; if (i7 < 0) { i6 = zzss.zza(i7, bArr, i6, zzstVar); i7 = zzstVar.zzbkg; } int i8 = i6; int i9 = i7 >>> 3; int i10 = i7 & 7; if (i9 == 1) { if (i10 == zzz.zzbqo.zztq()) { zza = zza(bArr, i8, i2, zzz.zzbqo, (Class) null, zzstVar); k = (K) zzstVar.zzbki; } else { zza = zzss.zza(i7, bArr, i8, i2, zzstVar); } } else { if (i9 == 2 && i10 == zzz.zzbqq.zztq()) { zza = zza(bArr, i8, i2, zzz.zzbqq, zzz.zzbqr.getClass(), zzstVar); v = zzstVar.zzbki; } zza = zzss.zza(i7, bArr, i8, i2, zzstVar); } } if (zza != i5) { throw zzuo.zzrq(); } zzu.put(k, v); return i5; } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARN: Failed to find 'out' block for switch in B:2:0x0023. Please report as an issue. */ private final int zza(T t, byte[] bArr, int i, int i2, int i3, int i4, int i5, int i6, int i7, long j, int i8, zzst zzstVar) throws IOException { int zzb; Unsafe unsafe = zzbqw; long j2 = this.zzbqx[i8 + 2] & 1048575; switch (i7) { case 51: if (i5 == 1) { unsafe.putObject(t, j, Double.valueOf(zzss.zzc(bArr, i))); zzb = i + 8; unsafe.putInt(t, j2, i4); return zzb; } return i; case 52: if (i5 == 5) { unsafe.putObject(t, j, Float.valueOf(zzss.zzd(bArr, i))); zzb = i + 4; unsafe.putInt(t, j2, i4); return zzb; } return i; case 53: case 54: if (i5 == 0) { zzb = zzss.zzb(bArr, i, zzstVar); unsafe.putObject(t, j, Long.valueOf(zzstVar.zzbkh)); unsafe.putInt(t, j2, i4); return zzb; } return i; case 55: case 62: if (i5 == 0) { zzb = zzss.zza(bArr, i, zzstVar); unsafe.putObject(t, j, Integer.valueOf(zzstVar.zzbkg)); unsafe.putInt(t, j2, i4); return zzb; } return i; case 56: case 65: if (i5 == 1) { unsafe.putObject(t, j, Long.valueOf(zzss.zzb(bArr, i))); zzb = i + 8; unsafe.putInt(t, j2, i4); return zzb; } return i; case 57: case 64: if (i5 == 5) { unsafe.putObject(t, j, Integer.valueOf(zzss.zza(bArr, i))); zzb = i + 4; unsafe.putInt(t, j2, i4); return zzb; } return i; case 58: if (i5 == 0) { zzb = zzss.zzb(bArr, i, zzstVar); unsafe.putObject(t, j, Boolean.valueOf(zzstVar.zzbkh != 0)); unsafe.putInt(t, j2, i4); return zzb; } return i; case 59: if (i5 == 2) { int zza = zzss.zza(bArr, i, zzstVar); int i9 = zzstVar.zzbkg; if (i9 == 0) { unsafe.putObject(t, j, ""); } else { if ((i6 & PKIFailureInfo.duplicateCertReq) != 0 && !zzxe.zzf(bArr, zza, zza + i9)) { throw zzuo.zzrr(); } unsafe.putObject(t, j, new String(bArr, zza, i9, zzug.UTF_8)); zza += i9; } unsafe.putInt(t, j2, i4); return zza; } return i; case 60: if (i5 == 2) { int zza2 = zzss.zza(zzdi(i8), bArr, i, i2, zzstVar); Object object = unsafe.getInt(t, j2) == i4 ? unsafe.getObject(t, j) : null; if (object == null) { unsafe.putObject(t, j, zzstVar.zzbki); } else { unsafe.putObject(t, j, zzug.zze(object, zzstVar.zzbki)); } unsafe.putInt(t, j2, i4); return zza2; } return i; case 61: if (i5 == 2) { zzb = zzss.zze(bArr, i, zzstVar); unsafe.putObject(t, j, zzstVar.zzbki); unsafe.putInt(t, j2, i4); return zzb; } return i; case 63: if (i5 == 0) { int zza3 = zzss.zza(bArr, i, zzstVar); int i10 = zzstVar.zzbkg; zzuj zzdk = zzdk(i8); if (zzdk == null || zzdk.zze(i10)) { unsafe.putObject(t, j, Integer.valueOf(i10)); zzb = zza3; unsafe.putInt(t, j2, i4); return zzb; } zzab(t).zzb(i3, Long.valueOf(i10)); return zza3; } return i; case 66: if (i5 == 0) { zzb = zzss.zza(bArr, i, zzstVar); unsafe.putObject(t, j, Integer.valueOf(zzti.zzcp(zzstVar.zzbkg))); unsafe.putInt(t, j2, i4); return zzb; } return i; case 67: if (i5 == 0) { zzb = zzss.zzb(bArr, i, zzstVar); unsafe.putObject(t, j, Long.valueOf(zzti.zzp(zzstVar.zzbkh))); unsafe.putInt(t, j2, i4); return zzb; } return i; case 68: if (i5 == 3) { zzb = zzss.zza(zzdi(i8), bArr, i, i2, (i3 & (-8)) | 4, zzstVar); Object object2 = unsafe.getInt(t, j2) == i4 ? unsafe.getObject(t, j) : null; if (object2 == null) { unsafe.putObject(t, j, zzstVar.zzbki); } else { unsafe.putObject(t, j, zzug.zze(object2, zzstVar.zzbki)); } unsafe.putInt(t, j2, i4); return zzb; } return i; default: return i; } } private final zzwe zzdi(int i) { int i2 = (i / 3) << 1; zzwe zzweVar = (zzwe) this.zzbqy[i2]; if (zzweVar != null) { return zzweVar; } zzwe zzk = zzwb.zzso().zzk((Class) this.zzbqy[i2 + 1]); this.zzbqy[i2] = zzk; return zzk; } private final Object zzdj(int i) { return this.zzbqy[(i / 3) << 1]; } private final zzuj zzdk(int i) { return (zzuj) this.zzbqy[((i / 3) << 1) + 1]; } /* JADX INFO: Access modifiers changed from: package-private */ /* JADX WARN: Failed to find 'out' block for switch in B:120:0x0080. Please report as an issue. */ /* JADX WARN: Multi-variable type inference failed */ public final int zza(T t, byte[] bArr, int i, int i2, int i3, zzst zzstVar) throws IOException { Unsafe unsafe; int i4; zzvs zzvsVar; int i5; int i6; int i7; int i8; zzuj zzdk; int i9; int i10; int zzdn; int i11; int i12; int i13; zzst zzstVar2; int i14; int i15; int i16; int i17; int i18; int i19; int i20; int i21; int i22; int i23; int i24; int zze; int zza; int i25; int i26; int i27; int i28; int i29; zzvs zzvsVar2 = this; Object obj = t; byte[] bArr2 = bArr; int i30 = i2; int i31 = i3; zzst zzstVar3 = zzstVar; Unsafe unsafe2 = zzbqw; int i32 = i; int i33 = 0; int i34 = 0; int i35 = 0; int i36 = -1; int i37 = -1; while (true) { if (i32 < i30) { int i38 = i32 + 1; byte b = bArr2[i32]; if (b < 0) { i10 = zzss.zza(b, bArr2, i38, zzstVar3); i9 = zzstVar3.zzbkg; } else { i9 = b; i10 = i38; } int i39 = i9 >>> 3; int i40 = i9 & 7; if (i39 > i36) { zzdn = zzvsVar2.zzu(i39, i34 / 3); } else { zzdn = zzvsVar2.zzdn(i39); } int i41 = zzdn; if (i41 == -1) { i11 = i39; i12 = i10; i6 = i9; unsafe = unsafe2; i4 = i31; i13 = 0; } else { int[] iArr = zzvsVar2.zzbqx; int i42 = iArr[i41 + 1]; int i43 = (i42 & 267386880) >>> 20; int i44 = i9; long j = i42 & 1048575; if (i43 <= 17) { int i45 = iArr[i41 + 2]; int i46 = 1 << (i45 >>> 20); int i47 = i45 & 1048575; if (i47 != i37) { if (i37 != -1) { unsafe2.putInt(obj, i37, i35); } i35 = unsafe2.getInt(obj, i47); i37 = i47; } switch (i43) { case 0: i15 = i39; i16 = i10; i17 = i37; i18 = i44; bArr2 = bArr; i13 = i41; if (i40 == 1) { zzxc.zza(obj, j, zzss.zzc(bArr2, i16)); i19 = i16 + 8; i35 |= i46; i32 = i19; i33 = i18; i36 = i15; i34 = i13; i37 = i17; i30 = i2; i31 = i3; break; } else { i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 1: i15 = i39; i16 = i10; i17 = i37; i18 = i44; bArr2 = bArr; i13 = i41; if (i40 == 5) { zzxc.zza(obj, j, zzss.zzd(bArr2, i16)); i19 = i16 + 4; i35 |= i46; i32 = i19; i33 = i18; i36 = i15; i34 = i13; i37 = i17; i30 = i2; i31 = i3; break; } else { i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 2: case 3: i15 = i39; i16 = i10; i17 = i37; i18 = i44; i20 = i41; bArr2 = bArr; if (i40 == 0) { int zzb = zzss.zzb(bArr2, i16, zzstVar3); i13 = i20; unsafe2.putLong(t, j, zzstVar3.zzbkh); i35 |= i46; i32 = zzb; i33 = i18; i36 = i15; i34 = i13; i37 = i17; i30 = i2; i31 = i3; break; } else { i13 = i20; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 4: case 11: i15 = i39; i16 = i10; i17 = i37; i18 = i44; bArr2 = bArr; i20 = i41; if (i40 == 0) { zzstVar3 = zzstVar; int zza2 = zzss.zza(bArr2, i16, zzstVar3); unsafe2.putInt(obj, j, zzstVar3.zzbkg); i13 = i20; i19 = zza2; i35 |= i46; i32 = i19; i33 = i18; i36 = i15; i34 = i13; i37 = i17; i30 = i2; i31 = i3; break; } else { i13 = i20; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 5: case 14: i15 = i39; i21 = i41; i17 = i37; i18 = i44; bArr2 = bArr; if (i40 == 1) { unsafe2.putLong(t, j, zzss.zzb(bArr2, i10)); i16 = i10; i13 = i21; zzstVar3 = zzstVar; i19 = i16 + 8; i35 |= i46; i32 = i19; i33 = i18; i36 = i15; i34 = i13; i37 = i17; i30 = i2; i31 = i3; break; } else { i22 = i10; i23 = i21; i16 = i22; i13 = i23; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 6: case 13: i15 = i39; i21 = i41; i17 = i37; i18 = i44; bArr2 = bArr; i30 = i2; if (i40 == 5) { unsafe2.putInt(obj, j, zzss.zza(bArr2, i10)); i32 = i10 + 4; i35 |= i46; zzstVar3 = zzstVar; i34 = i21; i33 = i18; i36 = i15; i37 = i17; i31 = i3; break; } else { i22 = i10; i23 = i21; i16 = i22; i13 = i23; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 7: i15 = i39; i21 = i41; i17 = i37; i18 = i44; bArr2 = bArr; i30 = i2; if (i40 == 0) { int zzb2 = zzss.zzb(bArr2, i10, zzstVar3); zzxc.zza(obj, j, zzstVar3.zzbkh != 0); i35 |= i46; i32 = zzb2; zzstVar3 = zzstVar; i34 = i21; i33 = i18; i36 = i15; i37 = i17; i31 = i3; break; } else { i22 = i10; i23 = i21; i16 = i22; i13 = i23; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 8: i15 = i39; i24 = i41; i17 = i37; i18 = i44; bArr2 = bArr; i30 = i2; if (i40 == 2) { if ((i42 & PKIFailureInfo.duplicateCertReq) == 0) { i32 = zzss.zzc(bArr2, i10, zzstVar3); } else { i32 = zzss.zzd(bArr2, i10, zzstVar3); } unsafe2.putObject(obj, j, zzstVar3.zzbki); i21 = i24; i35 |= i46; zzstVar3 = zzstVar; i34 = i21; i33 = i18; i36 = i15; i37 = i17; i31 = i3; break; } else { i23 = i24; i22 = i10; i16 = i22; i13 = i23; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 9: i15 = i39; i24 = i41; i17 = i37; i18 = i44; bArr2 = bArr; if (i40 == 2) { i30 = i2; i32 = zzss.zza(zzvsVar2.zzdi(i24), bArr2, i10, i30, zzstVar3); if ((i35 & i46) == 0) { unsafe2.putObject(obj, j, zzstVar3.zzbki); } else { unsafe2.putObject(obj, j, zzug.zze(unsafe2.getObject(obj, j), zzstVar3.zzbki)); } i21 = i24; i35 |= i46; zzstVar3 = zzstVar; i34 = i21; i33 = i18; i36 = i15; i37 = i17; i31 = i3; break; } else { i23 = i24; i22 = i10; i16 = i22; i13 = i23; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 10: i15 = i39; i24 = i41; i17 = i37; i18 = i44; bArr2 = bArr; if (i40 == 2) { zze = zzss.zze(bArr2, i10, zzstVar3); unsafe2.putObject(obj, j, zzstVar3.zzbki); zza = zze; i35 |= i46; i19 = zza; i13 = i24; i32 = i19; i33 = i18; i36 = i15; i34 = i13; i37 = i17; i30 = i2; i31 = i3; break; } else { i23 = i24; i22 = i10; i16 = i22; i13 = i23; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 12: i15 = i39; i24 = i41; i17 = i37; i18 = i44; bArr2 = bArr; if (i40 != 0) { i23 = i24; i22 = i10; i16 = i22; i13 = i23; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } else { zza = zzss.zza(bArr2, i10, zzstVar3); int i48 = zzstVar3.zzbkg; zzuj zzdk2 = zzvsVar2.zzdk(i24); if (zzdk2 == null || zzdk2.zze(i48)) { unsafe2.putInt(obj, j, i48); i35 |= i46; i19 = zza; i13 = i24; i32 = i19; i33 = i18; i36 = i15; i34 = i13; i37 = i17; i30 = i2; i31 = i3; break; } else { zzab(t).zzb(i18, Long.valueOf(i48)); i19 = zza; i13 = i24; i32 = i19; i33 = i18; i36 = i15; i34 = i13; i37 = i17; i30 = i2; i31 = i3; } } break; case 15: i15 = i39; i24 = i41; i17 = i37; i18 = i44; bArr2 = bArr; if (i40 == 0) { zze = zzss.zza(bArr2, i10, zzstVar3); unsafe2.putInt(obj, j, zzti.zzcp(zzstVar3.zzbkg)); zza = zze; i35 |= i46; i19 = zza; i13 = i24; i32 = i19; i33 = i18; i36 = i15; i34 = i13; i37 = i17; i30 = i2; i31 = i3; break; } else { i23 = i24; i22 = i10; i16 = i22; i13 = i23; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 16: i15 = i39; i24 = i41; i17 = i37; i18 = i44; if (i40 == 0) { bArr2 = bArr; zza = zzss.zzb(bArr2, i10, zzstVar3); unsafe2.putLong(t, j, zzti.zzp(zzstVar3.zzbkh)); i35 |= i46; i19 = zza; i13 = i24; i32 = i19; i33 = i18; i36 = i15; i34 = i13; i37 = i17; i30 = i2; i31 = i3; break; } else { i23 = i24; i22 = i10; i16 = i22; i13 = i23; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } case 17: if (i40 == 3) { i15 = i39; i17 = i37; i32 = zzss.zza(zzvsVar2.zzdi(i41), bArr, i10, i2, (i39 << 3) | 4, zzstVar); if ((i35 & i46) == 0) { unsafe2.putObject(obj, j, zzstVar3.zzbki); } else { unsafe2.putObject(obj, j, zzug.zze(unsafe2.getObject(obj, j), zzstVar3.zzbki)); } i35 |= i46; bArr2 = bArr; i30 = i2; i33 = i44; i34 = i41; i36 = i15; i37 = i17; i31 = i3; break; } else { i15 = i39; i17 = i37; i18 = i44; i23 = i41; i22 = i10; i16 = i22; i13 = i23; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } default: i15 = i39; i13 = i41; i16 = i10; i17 = i37; i18 = i44; i4 = i3; i12 = i16; i6 = i18; unsafe = unsafe2; i11 = i15; i37 = i17; break; } } else { int i49 = i10; bArr2 = bArr; int i50 = i37; if (i43 == 27) { if (i40 == 2) { zzun zzunVar = (zzun) unsafe2.getObject(obj, j); if (!zzunVar.zzps()) { int size = zzunVar.size(); zzunVar = zzunVar.zzck(size == 0 ? 10 : size << 1); unsafe2.putObject(obj, j, zzunVar); } i32 = zzss.zza(zzvsVar2.zzdi(i41), i44, bArr, i49, i2, zzunVar, zzstVar); i36 = i39; i33 = i44; i34 = i41; i37 = i50; i30 = i2; i31 = i3; } else { i25 = i49; i26 = i44; i27 = i35; i11 = i39; unsafe = unsafe2; i28 = i41; } } else if (i43 <= 49) { i26 = i44; i27 = i35; i11 = i39; unsafe = unsafe2; i28 = i41; i32 = zza((zzvs) t, bArr, i49, i2, i44, i39, i40, i41, i42, i43, j, zzstVar); if (i32 == i49) { i29 = i32; i4 = i3; i12 = i29; i13 = i28; i37 = i50; i6 = i26; i35 = i27; } else { zzvsVar2 = this; obj = t; bArr2 = bArr; i30 = i2; i31 = i3; zzstVar3 = zzstVar; i34 = i28; i37 = i50; i33 = i26; i35 = i27; i36 = i11; unsafe2 = unsafe; } } else { i25 = i49; i26 = i44; i27 = i35; i11 = i39; unsafe = unsafe2; i28 = i41; if (i43 != 50) { i32 = zza((zzvs) t, bArr, i25, i2, i26, i11, i40, i42, i43, j, i28, zzstVar); if (i32 != i25) { zzvsVar2 = this; obj = t; i30 = i2; i31 = i3; i33 = i26; i36 = i11; i34 = i28; i37 = i50; i35 = i27; unsafe2 = unsafe; bArr2 = bArr; zzstVar3 = zzstVar; } } else if (i40 == 2) { i32 = zza((zzvs) t, bArr, i25, i2, i28, j, zzstVar); if (i32 != i25) { zzvsVar2 = this; obj = t; bArr2 = bArr; i30 = i2; i31 = i3; zzstVar3 = zzstVar; i34 = i28; i37 = i50; i33 = i26; i35 = i27; i36 = i11; unsafe2 = unsafe; } } i29 = i32; i4 = i3; i12 = i29; i13 = i28; i37 = i50; i6 = i26; i35 = i27; } i29 = i25; i4 = i3; i12 = i29; i13 = i28; i37 = i50; i6 = i26; i35 = i27; } } if (i6 != i4 || i4 == 0) { if (this.zzbrc) { zzstVar2 = zzstVar; if (zzstVar2.zzix != zztr.zzql()) { i14 = i11; if (zzstVar2.zzix.zza(this.zzbrb, i14) == null) { i32 = zzss.zza(i6, bArr, i12, i2, zzab(t), zzstVar); obj = t; i33 = i6; zzvsVar2 = this; zzstVar3 = zzstVar2; i36 = i14; i34 = i13; unsafe2 = unsafe; bArr2 = bArr; i30 = i2; i31 = i4; } else { zzue.zzd zzdVar = (zzue.zzd) t; zzdVar.zzrk(); zztw zztwVar = zzdVar.zzbon; throw new NoSuchMethodError(); } } else { obj = t; } } else { obj = t; zzstVar2 = zzstVar; } i14 = i11; i32 = zzss.zza(i6, bArr, i12, i2, zzab(t), zzstVar); i33 = i6; zzvsVar2 = this; zzstVar3 = zzstVar2; i36 = i14; i34 = i13; unsafe2 = unsafe; bArr2 = bArr; i30 = i2; i31 = i4; } else { zzvsVar = this; obj = t; i7 = i35; i8 = -1; i5 = i12; } } else { int i51 = i35; unsafe = unsafe2; i4 = i31; zzvsVar = zzvsVar2; i5 = i32; i6 = i33; i7 = i51; i8 = -1; } } if (i37 != i8) { unsafe.putInt(obj, i37, i7); } Object obj2 = null; for (int i52 = zzvsVar.zzbrh; i52 < zzvsVar.zzbri; i52++) { int i53 = zzvsVar.zzbrg[i52]; zzww zzwwVar = zzvsVar.zzbrl; int i54 = zzvsVar.zzbqx[i53]; Object zzp = zzxc.zzp(obj, zzvsVar.zzdl(i53) & 1048575); if (zzp != null && (zzdk = zzvsVar.zzdk(i53)) != null) { obj2 = zza(i53, i54, zzvsVar.zzbrn.zzu(zzp), zzdk, (zzuj) obj2, (zzww) zzwwVar); } obj2 = (zzwx) obj2; } if (obj2 != null) { zzvsVar.zzbrl.zzj(obj, obj2); } if (i4 == 0) { if (i5 != i2) { throw zzuo.zzrq(); } } else if (i5 > i2 || i6 != i4) { throw zzuo.zzrq(); } return i5; } /* JADX WARN: Code restructure failed: missing block: B:123:0x01df, code lost: if (r0 == r15) goto L105; */ /* JADX WARN: Code restructure failed: missing block: B:124:0x022d, code lost: r2 = r0; */ /* JADX WARN: Code restructure failed: missing block: B:130:0x020c, code lost: if (r0 == r15) goto L105; */ /* JADX WARN: Code restructure failed: missing block: B:132:0x022b, code lost: if (r0 == r15) goto L105; */ /* JADX WARN: Failed to find 'out' block for switch in B:16:0x0062. Please report as an issue. */ /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r3v13, types: [int] */ @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 r28, byte[] r29, int r30, int r31, com.google.android.gms.internal.firebase_ml.zzst r32) throws java.io.IOException { /* Method dump skipped, instructions count: 660 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.firebase_ml.zzvs.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) { int i; int i2 = this.zzbrh; while (true) { i = this.zzbri; if (i2 >= i) { break; } long zzdl = zzdl(this.zzbrg[i2]) & 1048575; Object zzp = zzxc.zzp(t, zzdl); if (zzp != null) { zzxc.zza(t, zzdl, this.zzbrn.zzx(zzp)); } i2++; } int length = this.zzbrg.length; while (i < length) { this.zzbrk.zzb(t, this.zzbrg[i]); i++; } this.zzbrl.zzq(t); if (this.zzbrc) { this.zzbrm.zzq(t); } } private final UB zza(int i, int i2, Map map, zzuj zzujVar, UB ub, zzww zzwwVar) { zzvh zzz = this.zzbrn.zzz(zzdj(i)); Iterator> it = map.entrySet().iterator(); while (it.hasNext()) { Map.Entry next = it.next(); if (!zzujVar.zze(((Integer) next.getValue()).intValue())) { if (ub == null) { ub = zzwwVar.zztf(); } zzte zzcn = zzsw.zzcn(zzvg.zza(zzz, next.getKey(), next.getValue())); try { zzvg.zza(zzcn.zzqc(), zzz, next.getKey(), next.getValue()); zzwwVar.zza((zzww) ub, i2, zzcn.zzqb()); it.remove(); } catch (IOException e) { throw new RuntimeException(e); } } } return ub; } /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r4v5, types: [com.google.android.gms.internal.firebase_ml.zzwe] */ /* JADX WARN: Type inference failed for: r5v16 */ /* JADX WARN: Type inference failed for: r5v17 */ /* JADX WARN: Type inference failed for: r5v18, types: [com.google.android.gms.internal.firebase_ml.zzwe] */ /* JADX WARN: Type inference failed for: r5v22 */ /* JADX WARN: Type inference failed for: r5v23 */ @Override // com.google.android.gms.internal.firebase_ml.zzwe public final boolean zzac(T t) { int i; int i2 = -1; int i3 = 0; for (int i4 = 0; i4 < this.zzbrh; i4++) { int i5 = this.zzbrg[i4]; int i6 = this.zzbqx[i5]; int zzdl = zzdl(i5); if (this.zzbre) { i = 0; } else { int i7 = this.zzbqx[i5 + 2]; int i8 = i7 & 1048575; i = 1 << (i7 >>> 20); if (i8 != i2) { i3 = zzbqw.getInt(t, i8); i2 = i8; } } if ((268435456 & zzdl) != 0 && !zza((zzvs) t, i5, i3, i)) { return false; } int i9 = (267386880 & zzdl) >>> 20; if (i9 == 9 || i9 == 17) { if (zza((zzvs) t, i5, i3, i) && !zza(t, zzdl, zzdi(i5))) { return false; } } else { if (i9 != 27) { if (i9 == 60 || i9 == 68) { if (zza((zzvs) t, i6, i5) && !zza(t, zzdl, zzdi(i5))) { return false; } } else if (i9 != 49) { if (i9 != 50) { continue; } else { Map zzv = this.zzbrn.zzv(zzxc.zzp(t, zzdl & 1048575)); if (zzv.isEmpty()) { continue; } else if (this.zzbrn.zzz(zzdj(i5)).zzbqq.zztp() == zzxq.MESSAGE) { ?? r5 = 0; for (Object obj : zzv.values()) { r5 = r5; if (r5 == 0) { r5 = zzwb.zzso().zzk(obj.getClass()); } if (!r5.zzac(obj)) { return false; } } } else { continue; } } } } List list = (List) zzxc.zzp(t, zzdl & 1048575); if (list.isEmpty()) { continue; } else { ?? zzdi = zzdi(i5); for (int i10 = 0; i10 < list.size(); i10++) { if (!zzdi.zzac(list.get(i10))) { return false; } } } } } return !this.zzbrc || this.zzbrm.zzo(t).isInitialized(); } /* JADX WARN: Multi-variable type inference failed */ private static boolean zza(Object obj, int i, zzwe zzweVar) { return zzweVar.zzac(zzxc.zzp(obj, i & 1048575)); } private static void zza(int i, Object obj, zzxr zzxrVar) throws IOException { if (obj instanceof String) { zzxrVar.zzb(i, (String) obj); } else { zzxrVar.zza(i, (zzsw) obj); } } private final int zzdl(int i) { return this.zzbqx[i + 1]; } private final int zzdm(int i) { return this.zzbqx[i + 2]; } private static double zzf(T t, long j) { return ((Double) zzxc.zzp(t, j)).doubleValue(); } private static float zzg(T t, long j) { return ((Float) zzxc.zzp(t, j)).floatValue(); } private static int zzh(T t, long j) { return ((Integer) zzxc.zzp(t, j)).intValue(); } private static long zzi(T t, long j) { return ((Long) zzxc.zzp(t, j)).longValue(); } private static boolean zzj(T t, long j) { return ((Boolean) zzxc.zzp(t, j)).booleanValue(); } private final boolean zzc(T t, T t2, int i) { return zza((zzvs) t, i) == zza((zzvs) t2, i); } private final boolean zza(T t, int i, int i2, int i3) { if (this.zzbre) { return zza((zzvs) t, i); } return (i2 & i3) != 0; } private final boolean zza(T t, int i) { if (this.zzbre) { int zzdl = zzdl(i); long j = zzdl & 1048575; switch ((zzdl & 267386880) >>> 20) { case 0: return zzxc.zzo(t, j) != 0.0d; case 1: return zzxc.zzn(t, j) != BitmapDescriptorFactory.HUE_RED; case 2: return zzxc.zzl(t, j) != 0; case 3: return zzxc.zzl(t, j) != 0; case 4: return zzxc.zzk(t, j) != 0; case 5: return zzxc.zzl(t, j) != 0; case 6: return zzxc.zzk(t, j) != 0; case 7: return zzxc.zzm(t, j); case 8: Object zzp = zzxc.zzp(t, j); if (zzp instanceof String) { return !((String) zzp).isEmpty(); } if (zzp instanceof zzsw) { return !zzsw.zzbkl.equals(zzp); } throw new IllegalArgumentException(); case 9: return zzxc.zzp(t, j) != null; case 10: return !zzsw.zzbkl.equals(zzxc.zzp(t, j)); case 11: return zzxc.zzk(t, j) != 0; case 12: return zzxc.zzk(t, j) != 0; case 13: return zzxc.zzk(t, j) != 0; case 14: return zzxc.zzl(t, j) != 0; case 15: return zzxc.zzk(t, j) != 0; case 16: return zzxc.zzl(t, j) != 0; case 17: return zzxc.zzp(t, j) != null; default: throw new IllegalArgumentException(); } } int zzdm = zzdm(i); return (zzxc.zzk(t, (long) (zzdm & 1048575)) & (1 << (zzdm >>> 20))) != 0; } private final void zzb(T t, int i) { if (this.zzbre) { return; } int zzdm = zzdm(i); long j = 1048575 & zzdm; zzxc.zza((Object) t, j, (1 << (zzdm >>> 20)) | zzxc.zzk(t, j)); } private final boolean zza(T t, int i, int i2) { return zzxc.zzk(t, (long) (zzdm(i2) & 1048575)) == i; } private final void zzb(T t, int i, int i2) { zzxc.zza((Object) t, zzdm(i2) & 1048575, i); } private final int zzdn(int i) { if (i < this.zzbqz || i > this.zzbra) { return -1; } return zzv(i, 0); } private final int zzu(int i, int i2) { if (i < this.zzbqz || i > this.zzbra) { return -1; } return zzv(i, i2); } private final int zzv(int i, int i2) { int length = (this.zzbqx.length / 3) - 1; while (i2 <= length) { int i3 = (length + i2) >>> 1; int i4 = i3 * 3; int i5 = this.zzbqx[i4]; if (i == i5) { return i4; } if (i < i5) { length = i3 - 1; } else { i2 = i3 + 1; } } return -1; } }