package com.google.android.gms.internal.vision; import com.google.android.gms.internal.vision.zzfy; 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; /* loaded from: classes2.dex */ final class zzhj implements zzhw { private static final int[] zzzb = new int[0]; private static final Unsafe zzzc = zziu.zzhj(); private final int[] zzzd; private final Object[] zzze; private final int zzzf; private final int zzzg; private final zzhf zzzh; private final boolean zzzi; private final boolean zzzj; private final boolean zzzk; private final boolean zzzl; private final int[] zzzm; private final int zzzn; private final int zzzo; private final zzhn zzzp; private final zzgp zzzq; private final zzio zzzr; private final zzfl zzzs; private final zzha zzzt; private zzhj(int[] iArr, Object[] objArr, int i, int i2, zzhf zzhfVar, boolean z, boolean z2, int[] iArr2, int i3, int i4, zzhn zzhnVar, zzgp zzgpVar, zzio zzioVar, zzfl zzflVar, zzha zzhaVar) { this.zzzd = iArr; this.zzze = objArr; this.zzzf = i; this.zzzg = i2; this.zzzj = zzhfVar instanceof zzfy; this.zzzk = z; this.zzzi = zzflVar != null && zzflVar.zze(zzhfVar); this.zzzl = false; this.zzzm = iArr2; this.zzzn = i3; this.zzzo = i4; this.zzzp = zzhnVar; this.zzzq = zzgpVar; this.zzzr = zzioVar; this.zzzs = zzflVar; this.zzzh = zzhfVar; this.zzzt = zzhaVar; } private static boolean zzbm(int i) { return (i & PKIFailureInfo.duplicateCertReq) != 0; } /* JADX INFO: Access modifiers changed from: package-private */ public static zzhj zza(Class cls, zzhd zzhdVar, zzhn zzhnVar, zzgp zzgpVar, zzio zzioVar, zzfl zzflVar, zzha zzhaVar) { 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; zzhu zzhuVar; 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 (zzhdVar instanceof zzhu) { zzhu zzhuVar2 = (zzhu) zzhdVar; int i28 = 0; boolean z2 = zzhuVar2.zzge() == zzfy.zzg.zzxg; String zzgn = zzhuVar2.zzgn(); int length = zzgn.length(); int charAt17 = zzgn.charAt(0); if (charAt17 >= 55296) { int i29 = charAt17 & 8191; int i30 = 1; int i31 = 13; while (true) { i = i30 + 1; charAt16 = zzgn.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 = zzgn.charAt(i); if (charAt18 >= 55296) { int i33 = charAt18 & 8191; int i34 = 13; while (true) { i27 = i32 + 1; charAt15 = zzgn.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 = zzzb; i3 = 0; } else { int i35 = i32 + 1; int charAt19 = zzgn.charAt(i32); if (charAt19 >= 55296) { int i36 = charAt19 & 8191; int i37 = 13; while (true) { i14 = i35 + 1; charAt10 = zzgn.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 = zzgn.charAt(i35); if (charAt20 >= 55296) { int i39 = charAt20 & 8191; int i40 = 13; while (true) { i13 = i38 + 1; charAt9 = zzgn.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 = zzgn.charAt(i38); if (charAt >= 55296) { int i42 = charAt & 8191; int i43 = 13; while (true) { i12 = i41 + 1; charAt8 = zzgn.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 = zzgn.charAt(i41); if (charAt21 >= 55296) { int i45 = charAt21 & 8191; int i46 = 13; while (true) { i11 = i44 + 1; charAt7 = zzgn.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 = zzgn.charAt(i44); if (charAt2 >= 55296) { int i48 = charAt2 & 8191; int i49 = 13; while (true) { i10 = i47 + 1; charAt6 = zzgn.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 = zzgn.charAt(i47); if (charAt22 >= 55296) { int i51 = charAt22 & 8191; int i52 = 13; while (true) { i9 = i50 + 1; charAt5 = zzgn.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 = zzgn.charAt(i50); if (charAt23 >= 55296) { int i54 = charAt23 & 8191; int i55 = i53; int i56 = 13; while (true) { i8 = i55 + 1; charAt4 = zzgn.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 = zzgn.charAt(i2); if (charAt24 >= 55296) { int i58 = charAt24 & 8191; int i59 = i57; int i60 = 13; while (true) { i7 = i59 + 1; charAt3 = zzgn.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 = zzzc; Object[] zzgo = zzhuVar2.zzgo(); Class cls3 = zzhuVar2.zzgg().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 = zzgn.charAt(i66); int i71 = length; if (charAt25 >= 55296) { int i72 = charAt25 & 8191; int i73 = i70; int i74 = 13; while (true) { i26 = i73 + 1; charAt14 = zzgn.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 = zzgn.charAt(i16); if (charAt26 >= 55296) { int i76 = charAt26 & 8191; int i77 = i75; int i78 = 13; while (true) { i25 = i77 + 1; charAt13 = zzgn.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 = zzgn.charAt(i17); char c = 55296; if (charAt27 >= 55296) { int i83 = charAt27 & 8191; int i84 = 13; while (true) { i24 = i82 + 1; charAt12 = zzgn.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] = zzgo[i4]; i4++; } else if (i85 == 12 && (charAt17 & 1) == 1) { objArr[((i68 / 3) << 1) + 1] = zzgo[i4]; i4++; } int i87 = charAt27 << 1; Object obj = zzgo[i87]; if (obj instanceof Field) { zza2 = (Field) obj; } else { zza2 = zza(cls3, (String) obj); zzgo[i87] = zza2; } zzhuVar = zzhuVar2; String str2 = zzgn; int objectFieldOffset2 = (int) unsafe.objectFieldOffset(zza2); int i88 = i87 + 1; Object obj2 = zzgo[i88]; if (obj2 instanceof Field) { zza3 = (Field) obj2; } else { zza3 = zza(cls3, (String) obj2); zzgo[i88] = zza3; } cls2 = cls3; i18 = i4; i17 = i86; str = str2; i21 = 0; i20 = (int) unsafe.objectFieldOffset(zza3); objectFieldOffset = objectFieldOffset2; i19 = i28; } else { zzhuVar = zzhuVar2; String str3 = zzgn; int i89 = i4 + 1; Field zza4 = zza(cls3, (String) zzgo[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] = zzgo[i89]; } else if (i79 == 12 || i79 == 30 || i79 == 44) { if ((charAt17 & 1) == 1) { i23 = i4 + 2; objArr[((i68 / 3) << 1) + 1] = zzgo[i89]; } } else if (i79 == 50) { int i90 = i65 + 1; iArr[i65] = i68; int i91 = (i68 / 3) << 1; int i92 = i4 + 2; objArr[i91] = zzgo[i89]; if ((charAt26 & 2048) != 0) { i89 = i4 + 3; objArr[i91 + 1] = zzgo[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 = zzgo[i96]; i18 = i89; if (obj3 instanceof Field) { zza = (Field) obj3; } else { zza = zza(cls3, (String) obj3); zzgo[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; zzgn = str; i66 = i17; cls3 = cls2; i3 = i80; length = i71; i5 = i15; z2 = z; charAt = i81; i4 = i18; zzhuVar2 = zzhuVar; } return new zzhj<>(iArr3, objArr, charAt, i3, zzhuVar2.zzgg(), z2, false, iArr, i5, i64, zzhnVar, zzgpVar, zzioVar, zzflVar, zzhaVar); } ((zzij) zzhdVar).zzge(); 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.vision.zzhw public final T newInstance() { return (T) this.zzzp.newInstance(this.zzzh); } /* 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.vision.zzhw /* 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.vision.zzhj.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.vision.zzhw public final int hashCode(T t) { int i; int zzo; int length = this.zzzd.length; int i2 = 0; for (int i3 = 0; i3 < length; i3 += 3) { int zzbk = zzbk(i3); int i4 = this.zzzd[i3]; long j = 1048575 & zzbk; switch ((zzbk & 267386880) >>> 20) { case 0: i = i2 * 53; zzo = zzga.zzo(Double.doubleToLongBits(zziu.zzo(t, j))); i2 = i + zzo; break; case 1: i = i2 * 53; zzo = Float.floatToIntBits(zziu.zzn(t, j)); i2 = i + zzo; break; case 2: i = i2 * 53; zzo = zzga.zzo(zziu.zzl(t, j)); i2 = i + zzo; break; case 3: i = i2 * 53; zzo = zzga.zzo(zziu.zzl(t, j)); i2 = i + zzo; break; case 4: i = i2 * 53; zzo = zziu.zzk(t, j); i2 = i + zzo; break; case 5: i = i2 * 53; zzo = zzga.zzo(zziu.zzl(t, j)); i2 = i + zzo; break; case 6: i = i2 * 53; zzo = zziu.zzk(t, j); i2 = i + zzo; break; case 7: i = i2 * 53; zzo = zzga.zzj(zziu.zzm(t, j)); i2 = i + zzo; break; case 8: i = i2 * 53; zzo = ((String) zziu.zzp(t, j)).hashCode(); i2 = i + zzo; break; case 9: Object zzp = zziu.zzp(t, j); if (zzp != null) { zzo = zzp.hashCode(); i = i2 * 53; i2 = i + zzo; break; } zzo = 37; i = i2 * 53; i2 = i + zzo; case 10: i = i2 * 53; zzo = zziu.zzp(t, j).hashCode(); i2 = i + zzo; break; case 11: i = i2 * 53; zzo = zziu.zzk(t, j); i2 = i + zzo; break; case 12: i = i2 * 53; zzo = zziu.zzk(t, j); i2 = i + zzo; break; case 13: i = i2 * 53; zzo = zziu.zzk(t, j); i2 = i + zzo; break; case 14: i = i2 * 53; zzo = zzga.zzo(zziu.zzl(t, j)); i2 = i + zzo; break; case 15: i = i2 * 53; zzo = zziu.zzk(t, j); i2 = i + zzo; break; case 16: i = i2 * 53; zzo = zzga.zzo(zziu.zzl(t, j)); i2 = i + zzo; break; case 17: Object zzp2 = zziu.zzp(t, j); if (zzp2 != null) { zzo = zzp2.hashCode(); i = i2 * 53; i2 = i + zzo; break; } zzo = 37; i = i2 * 53; i2 = i + zzo; 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; zzo = zziu.zzp(t, j).hashCode(); i2 = i + zzo; break; case 50: i = i2 * 53; zzo = zziu.zzp(t, j).hashCode(); i2 = i + zzo; break; case 51: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzga.zzo(Double.doubleToLongBits(zzf(t, j))); i2 = i + zzo; break; } else { break; } case 52: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = Float.floatToIntBits(zzg(t, j)); i2 = i + zzo; break; } else { break; } case 53: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzga.zzo(zzi(t, j)); i2 = i + zzo; break; } else { break; } case 54: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzga.zzo(zzi(t, j)); i2 = i + zzo; break; } else { break; } case 55: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzh(t, j); i2 = i + zzo; break; } else { break; } case 56: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzga.zzo(zzi(t, j)); i2 = i + zzo; break; } else { break; } case 57: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzh(t, j); i2 = i + zzo; break; } else { break; } case 58: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzga.zzj(zzj(t, j)); i2 = i + zzo; break; } else { break; } case 59: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = ((String) zziu.zzp(t, j)).hashCode(); i2 = i + zzo; break; } else { break; } case 60: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zziu.zzp(t, j).hashCode(); i2 = i + zzo; break; } else { break; } case 61: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zziu.zzp(t, j).hashCode(); i2 = i + zzo; break; } else { break; } case 62: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzh(t, j); i2 = i + zzo; break; } else { break; } case 63: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzh(t, j); i2 = i + zzo; break; } else { break; } case 64: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzh(t, j); i2 = i + zzo; break; } else { break; } case 65: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzga.zzo(zzi(t, j)); i2 = i + zzo; break; } else { break; } case 66: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzh(t, j); i2 = i + zzo; break; } else { break; } case 67: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zzga.zzo(zzi(t, j)); i2 = i + zzo; break; } else { break; } case 68: if (zza((zzhj) t, i4, i3)) { i = i2 * 53; zzo = zziu.zzp(t, j).hashCode(); i2 = i + zzo; break; } else { break; } } } int hashCode = (i2 * 53) + this.zzzr.zzt(t).hashCode(); return this.zzzi ? (hashCode * 53) + this.zzzs.zzc(t).hashCode() : hashCode; } @Override // com.google.android.gms.internal.vision.zzhw public final void zzc(T t, T t2) { t2.getClass(); for (int i = 0; i < this.zzzd.length; i += 3) { int zzbk = zzbk(i); long j = 1048575 & zzbk; int i2 = this.zzzd[i]; switch ((zzbk & 267386880) >>> 20) { case 0: if (zza((zzhj) t2, i)) { zziu.zza(t, j, zziu.zzo(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 1: if (zza((zzhj) t2, i)) { zziu.zza((Object) t, j, zziu.zzn(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 2: if (zza((zzhj) t2, i)) { zziu.zza((Object) t, j, zziu.zzl(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 3: if (zza((zzhj) t2, i)) { zziu.zza((Object) t, j, zziu.zzl(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 4: if (zza((zzhj) t2, i)) { zziu.zzb(t, j, zziu.zzk(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 5: if (zza((zzhj) t2, i)) { zziu.zza((Object) t, j, zziu.zzl(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 6: if (zza((zzhj) t2, i)) { zziu.zzb(t, j, zziu.zzk(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 7: if (zza((zzhj) t2, i)) { zziu.zza(t, j, zziu.zzm(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 8: if (zza((zzhj) t2, i)) { zziu.zza(t, j, zziu.zzp(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 9: zza(t, t2, i); break; case 10: if (zza((zzhj) t2, i)) { zziu.zza(t, j, zziu.zzp(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 11: if (zza((zzhj) t2, i)) { zziu.zzb(t, j, zziu.zzk(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 12: if (zza((zzhj) t2, i)) { zziu.zzb(t, j, zziu.zzk(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 13: if (zza((zzhj) t2, i)) { zziu.zzb(t, j, zziu.zzk(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 14: if (zza((zzhj) t2, i)) { zziu.zza((Object) t, j, zziu.zzl(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 15: if (zza((zzhj) t2, i)) { zziu.zzb(t, j, zziu.zzk(t2, j)); zzb((zzhj) t, i); break; } else { break; } case 16: if (zza((zzhj) t2, i)) { zziu.zza((Object) t, j, zziu.zzl(t2, j)); zzb((zzhj) 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.zzzq.zza(t, t2, j); break; case 50: zzhy.zza(this.zzzt, t, t2, j); break; case 51: case 52: case 53: case 54: case 55: case 56: case 57: case 58: case 59: if (zza((zzhj) t2, i2, i)) { zziu.zza(t, j, zziu.zzp(t2, j)); zzb((zzhj) 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((zzhj) t2, i2, i)) { zziu.zza(t, j, zziu.zzp(t2, j)); zzb((zzhj) t, i2, i); break; } else { break; } case 68: zzb(t, t2, i); break; } } if (this.zzzk) { return; } zzhy.zza(this.zzzr, t, t2); if (this.zzzi) { zzhy.zza(this.zzzs, t, t2); } } private final void zza(T t, T t2, int i) { long zzbk = zzbk(i) & 1048575; if (zza((zzhj) t2, i)) { Object zzp = zziu.zzp(t, zzbk); Object zzp2 = zziu.zzp(t2, zzbk); if (zzp != null && zzp2 != null) { zziu.zza(t, zzbk, zzga.zza(zzp, zzp2)); zzb((zzhj) t, i); } else if (zzp2 != null) { zziu.zza(t, zzbk, zzp2); zzb((zzhj) t, i); } } } private final void zzb(T t, T t2, int i) { int zzbk = zzbk(i); int i2 = this.zzzd[i]; long j = zzbk & 1048575; if (zza((zzhj) t2, i2, i)) { Object zzp = zziu.zzp(t, j); Object zzp2 = zziu.zzp(t2, j); if (zzp != null && zzp2 != null) { zziu.zza(t, j, zzga.zza(zzp, zzp2)); zzb((zzhj) t, i2, i); } else if (zzp2 != null) { zziu.zza(t, j, zzp2); zzb((zzhj) 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.vision.zzhw public final int zzp(T t) { int i; int i2; boolean z; boolean z2; long j; int zzd; int zzc; int zzm; boolean z3; int zzv; int zzy; int zzav; int zzax; int zzb; int zzy2; int zzav2; int zzax2; int i3 = 267386880; if (this.zzzk) { Unsafe unsafe = zzzc; int i4 = 0; int i5 = 0; while (i4 < this.zzzd.length) { int zzbk = zzbk(i4); int i6 = (zzbk & i3) >>> 20; int i7 = this.zzzd[i4]; long j2 = zzbk & 1048575; int i8 = (i6 < zzfs.zzva.id() || i6 > zzfs.zzvn.id()) ? 0 : this.zzzd[i4 + 2] & 1048575; switch (i6) { case 0: if (zza((zzhj) t, i4)) { zzb = zzfe.zzb(i7, 0.0d); i5 += zzb; break; } else { break; } case 1: if (zza((zzhj) t, i4)) { zzb = zzfe.zzb(i7, BitmapDescriptorFactory.HUE_RED); i5 += zzb; break; } else { break; } case 2: if (zza((zzhj) t, i4)) { zzb = zzfe.zzd(i7, zziu.zzl(t, j2)); i5 += zzb; break; } else { break; } case 3: if (zza((zzhj) t, i4)) { zzb = zzfe.zze(i7, zziu.zzl(t, j2)); i5 += zzb; break; } else { break; } case 4: if (zza((zzhj) t, i4)) { zzb = zzfe.zzi(i7, zziu.zzk(t, j2)); i5 += zzb; break; } else { break; } case 5: if (zza((zzhj) t, i4)) { zzb = zzfe.zzg(i7, 0L); i5 += zzb; break; } else { break; } case 6: if (zza((zzhj) t, i4)) { zzb = zzfe.zzl(i7, 0); i5 += zzb; break; } else { break; } case 7: if (zza((zzhj) t, i4)) { zzb = zzfe.zzc(i7, true); i5 += zzb; break; } else { break; } case 8: if (zza((zzhj) t, i4)) { Object zzp = zziu.zzp(t, j2); if (zzp instanceof zzeo) { zzb = zzfe.zzc(i7, (zzeo) zzp); } else { zzb = zzfe.zzb(i7, (String) zzp); } i5 += zzb; break; } else { break; } case 9: if (zza((zzhj) t, i4)) { zzb = zzhy.zzc(i7, zziu.zzp(t, j2), zzbh(i4)); i5 += zzb; break; } else { break; } case 10: if (zza((zzhj) t, i4)) { zzb = zzfe.zzc(i7, (zzeo) zziu.zzp(t, j2)); i5 += zzb; break; } else { break; } case 11: if (zza((zzhj) t, i4)) { zzb = zzfe.zzj(i7, zziu.zzk(t, j2)); i5 += zzb; break; } else { break; } case 12: if (zza((zzhj) t, i4)) { zzb = zzfe.zzn(i7, zziu.zzk(t, j2)); i5 += zzb; break; } else { break; } case 13: if (zza((zzhj) t, i4)) { zzb = zzfe.zzm(i7, 0); i5 += zzb; break; } else { break; } case 14: if (zza((zzhj) t, i4)) { zzb = zzfe.zzh(i7, 0L); i5 += zzb; break; } else { break; } case 15: if (zza((zzhj) t, i4)) { zzb = zzfe.zzk(i7, zziu.zzk(t, j2)); i5 += zzb; break; } else { break; } case 16: if (zza((zzhj) t, i4)) { zzb = zzfe.zzf(i7, zziu.zzl(t, j2)); i5 += zzb; break; } else { break; } case 17: if (zza((zzhj) t, i4)) { zzb = zzfe.zzc(i7, (zzhf) zziu.zzp(t, j2), zzbh(i4)); i5 += zzb; break; } else { break; } case 18: zzb = zzhy.zzw(i7, zze(t, j2), false); i5 += zzb; break; case 19: zzb = zzhy.zzv(i7, zze(t, j2), false); i5 += zzb; break; case 20: zzb = zzhy.zzo(i7, zze(t, j2), false); i5 += zzb; break; case 21: zzb = zzhy.zzp(i7, zze(t, j2), false); i5 += zzb; break; case 22: zzb = zzhy.zzs(i7, zze(t, j2), false); i5 += zzb; break; case 23: zzb = zzhy.zzw(i7, zze(t, j2), false); i5 += zzb; break; case 24: zzb = zzhy.zzv(i7, zze(t, j2), false); i5 += zzb; break; case 25: zzb = zzhy.zzx(i7, zze(t, j2), false); i5 += zzb; break; case 26: zzb = zzhy.zzc(i7, zze(t, j2)); i5 += zzb; break; case 27: zzb = zzhy.zzc(i7, (List) zze(t, j2), zzbh(i4)); i5 += zzb; break; case 28: zzb = zzhy.zzd(i7, (List) zze(t, j2)); i5 += zzb; break; case 29: zzb = zzhy.zzt(i7, zze(t, j2), false); i5 += zzb; break; case 30: zzb = zzhy.zzr(i7, zze(t, j2), false); i5 += zzb; break; case 31: zzb = zzhy.zzv(i7, zze(t, j2), false); i5 += zzb; break; case 32: zzb = zzhy.zzw(i7, zze(t, j2), false); i5 += zzb; break; case 33: zzb = zzhy.zzu(i7, zze(t, j2), false); i5 += zzb; break; case 34: zzb = zzhy.zzq(i7, zze(t, j2), false); i5 += zzb; break; case 35: zzy2 = zzhy.zzy((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 36: zzy2 = zzhy.zzx((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 37: zzy2 = zzhy.zzq((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 38: zzy2 = zzhy.zzr((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 39: zzy2 = zzhy.zzu((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 40: zzy2 = zzhy.zzy((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 41: zzy2 = zzhy.zzx((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 42: zzy2 = zzhy.zzz((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 43: zzy2 = zzhy.zzv((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 44: zzy2 = zzhy.zzt((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 45: zzy2 = zzhy.zzx((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 46: zzy2 = zzhy.zzy((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 47: zzy2 = zzhy.zzw((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 48: zzy2 = zzhy.zzs((List) unsafe.getObject(t, j2)); if (zzy2 <= 0) { break; } else { if (this.zzzl) { unsafe.putInt(t, i8, zzy2); } zzav2 = zzfe.zzav(i7); zzax2 = zzfe.zzax(zzy2); zzb = zzav2 + zzax2 + zzy2; i5 += zzb; break; } case 49: zzb = zzhy.zzd(i7, zze(t, j2), zzbh(i4)); i5 += zzb; break; case 50: zzb = this.zzzt.zzb(i7, zziu.zzp(t, j2), zzbi(i4)); i5 += zzb; break; case 51: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzb(i7, 0.0d); i5 += zzb; break; } else { break; } case 52: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzb(i7, BitmapDescriptorFactory.HUE_RED); i5 += zzb; break; } else { break; } case 53: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzd(i7, zzi(t, j2)); i5 += zzb; break; } else { break; } case 54: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zze(i7, zzi(t, j2)); i5 += zzb; break; } else { break; } case 55: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzi(i7, zzh(t, j2)); i5 += zzb; break; } else { break; } case 56: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzg(i7, 0L); i5 += zzb; break; } else { break; } case 57: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzl(i7, 0); i5 += zzb; break; } else { break; } case 58: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzc(i7, true); i5 += zzb; break; } else { break; } case 59: if (zza((zzhj) t, i7, i4)) { Object zzp2 = zziu.zzp(t, j2); if (zzp2 instanceof zzeo) { zzb = zzfe.zzc(i7, (zzeo) zzp2); } else { zzb = zzfe.zzb(i7, (String) zzp2); } i5 += zzb; break; } else { break; } case 60: if (zza((zzhj) t, i7, i4)) { zzb = zzhy.zzc(i7, zziu.zzp(t, j2), zzbh(i4)); i5 += zzb; break; } else { break; } case 61: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzc(i7, (zzeo) zziu.zzp(t, j2)); i5 += zzb; break; } else { break; } case 62: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzj(i7, zzh(t, j2)); i5 += zzb; break; } else { break; } case 63: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzn(i7, zzh(t, j2)); i5 += zzb; break; } else { break; } case 64: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzm(i7, 0); i5 += zzb; break; } else { break; } case 65: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzh(i7, 0L); i5 += zzb; break; } else { break; } case 66: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzk(i7, zzh(t, j2)); i5 += zzb; break; } else { break; } case 67: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzf(i7, zzi(t, j2)); i5 += zzb; break; } else { break; } case 68: if (zza((zzhj) t, i7, i4)) { zzb = zzfe.zzc(i7, (zzhf) zziu.zzp(t, j2), zzbh(i4)); i5 += zzb; break; } else { break; } } i4 += 3; i3 = 267386880; } return i5 + zza(this.zzzr, t); } Unsafe unsafe2 = zzzc; int i9 = -1; int i10 = 0; int i11 = 0; for (int i12 = 0; i12 < this.zzzd.length; i12 += 3) { int zzbk2 = zzbk(i12); int[] iArr = this.zzzd; int i13 = iArr[i12]; int i14 = (zzbk2 & 267386880) >>> 20; if (i14 <= 17) { i = iArr[i12 + 2]; int i15 = i & 1048575; i2 = 1 << (i >>> 20); if (i15 != i9) { i11 = unsafe2.getInt(t, i15); i9 = i15; } } else { i = (!this.zzzl || i14 < zzfs.zzva.id() || i14 > zzfs.zzvn.id()) ? 0 : this.zzzd[i12 + 2] & 1048575; i2 = 0; } long j3 = zzbk2 & 1048575; switch (i14) { case 0: z = false; z2 = false; j = 0; if ((i11 & i2) != 0) { i10 += zzfe.zzb(i13, 0.0d); break; } break; case 1: z = false; j = 0; if ((i11 & i2) != 0) { z2 = false; i10 += zzfe.zzb(i13, BitmapDescriptorFactory.HUE_RED); break; } z2 = false; case 2: z = false; j = 0; if ((i11 & i2) != 0) { zzd = zzfe.zzd(i13, unsafe2.getLong(t, j3)); i10 += zzd; } z2 = false; break; case 3: z = false; j = 0; if ((i11 & i2) != 0) { zzd = zzfe.zze(i13, unsafe2.getLong(t, j3)); i10 += zzd; } z2 = false; break; case 4: z = false; j = 0; if ((i11 & i2) != 0) { zzd = zzfe.zzi(i13, unsafe2.getInt(t, j3)); i10 += zzd; } z2 = false; break; case 5: z = false; j = 0; if ((i11 & i2) != 0) { zzd = zzfe.zzg(i13, 0L); i10 += zzd; } z2 = false; break; case 6: if ((i11 & i2) != 0) { z = false; i10 += zzfe.zzl(i13, 0); z2 = false; j = 0; break; } z = false; z2 = false; j = 0; case 7: if ((i11 & i2) != 0) { zzc = zzfe.zzc(i13, true); i10 += zzc; } z = false; z2 = false; j = 0; break; case 8: if ((i11 & i2) != 0) { Object object = unsafe2.getObject(t, j3); if (object instanceof zzeo) { zzc = zzfe.zzc(i13, (zzeo) object); } else { zzc = zzfe.zzb(i13, (String) object); } i10 += zzc; } z = false; z2 = false; j = 0; break; case 9: if ((i11 & i2) != 0) { zzc = zzhy.zzc(i13, unsafe2.getObject(t, j3), zzbh(i12)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 10: if ((i11 & i2) != 0) { zzc = zzfe.zzc(i13, (zzeo) unsafe2.getObject(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 11: if ((i11 & i2) != 0) { zzc = zzfe.zzj(i13, unsafe2.getInt(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 12: if ((i11 & i2) != 0) { zzc = zzfe.zzn(i13, unsafe2.getInt(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 13: if ((i11 & i2) != 0) { zzm = zzfe.zzm(i13, 0); i10 += zzm; } z = false; z2 = false; j = 0; break; case 14: if ((i11 & i2) != 0) { zzc = zzfe.zzh(i13, 0L); i10 += zzc; } z = false; z2 = false; j = 0; break; case 15: if ((i11 & i2) != 0) { zzc = zzfe.zzk(i13, unsafe2.getInt(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 16: if ((i11 & i2) != 0) { zzc = zzfe.zzf(i13, unsafe2.getLong(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 17: if ((i11 & i2) != 0) { zzc = zzfe.zzc(i13, (zzhf) unsafe2.getObject(t, j3), zzbh(i12)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 18: zzc = zzhy.zzw(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzc; z = false; z2 = false; j = 0; break; case 19: z3 = false; zzv = zzhy.zzv(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 20: z3 = false; zzv = zzhy.zzo(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 21: z3 = false; zzv = zzhy.zzp(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 22: z3 = false; zzv = zzhy.zzs(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 23: z3 = false; zzv = zzhy.zzw(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 24: z3 = false; zzv = zzhy.zzv(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 25: z3 = false; zzv = zzhy.zzx(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 26: zzc = zzhy.zzc(i13, (List) unsafe2.getObject(t, j3)); i10 += zzc; z = false; z2 = false; j = 0; break; case 27: zzc = zzhy.zzc(i13, (List) unsafe2.getObject(t, j3), zzbh(i12)); i10 += zzc; z = false; z2 = false; j = 0; break; case 28: zzc = zzhy.zzd(i13, (List) unsafe2.getObject(t, j3)); i10 += zzc; z = false; z2 = false; j = 0; break; case 29: zzc = zzhy.zzt(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzc; z = false; z2 = false; j = 0; break; case 30: z3 = false; zzv = zzhy.zzr(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 31: z3 = false; zzv = zzhy.zzv(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 32: z3 = false; zzv = zzhy.zzw(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 33: z3 = false; zzv = zzhy.zzu(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 34: z3 = false; zzv = zzhy.zzq(i13, (List) unsafe2.getObject(t, j3), false); i10 += zzv; z = z3; z2 = false; j = 0; break; case 35: zzy = zzhy.zzy((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 36: zzy = zzhy.zzx((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 37: zzy = zzhy.zzq((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 38: zzy = zzhy.zzr((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 39: zzy = zzhy.zzu((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 40: zzy = zzhy.zzy((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 41: zzy = zzhy.zzx((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 42: zzy = zzhy.zzz((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 43: zzy = zzhy.zzv((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 44: zzy = zzhy.zzt((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 45: zzy = zzhy.zzx((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 46: zzy = zzhy.zzy((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 47: zzy = zzhy.zzw((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 48: zzy = zzhy.zzs((List) unsafe2.getObject(t, j3)); if (zzy > 0) { if (this.zzzl) { unsafe2.putInt(t, i, zzy); } zzav = zzfe.zzav(i13); zzax = zzfe.zzax(zzy); zzm = zzav + zzax + zzy; i10 += zzm; } z = false; z2 = false; j = 0; break; case 49: zzc = zzhy.zzd(i13, (List) unsafe2.getObject(t, j3), zzbh(i12)); i10 += zzc; z = false; z2 = false; j = 0; break; case 50: zzc = this.zzzt.zzb(i13, unsafe2.getObject(t, j3), zzbi(i12)); i10 += zzc; z = false; z2 = false; j = 0; break; case 51: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzb(i13, 0.0d); i10 += zzc; } z = false; z2 = false; j = 0; break; case 52: if (zza((zzhj) t, i13, i12)) { zzm = zzfe.zzb(i13, BitmapDescriptorFactory.HUE_RED); i10 += zzm; } z = false; z2 = false; j = 0; break; case 53: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzd(i13, zzi(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 54: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zze(i13, zzi(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 55: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzi(i13, zzh(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 56: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzg(i13, 0L); i10 += zzc; } z = false; z2 = false; j = 0; break; case 57: if (zza((zzhj) t, i13, i12)) { zzm = zzfe.zzl(i13, 0); i10 += zzm; } z = false; z2 = false; j = 0; break; case 58: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzc(i13, true); i10 += zzc; } z = false; z2 = false; j = 0; break; case 59: if (zza((zzhj) t, i13, i12)) { Object object2 = unsafe2.getObject(t, j3); if (object2 instanceof zzeo) { zzc = zzfe.zzc(i13, (zzeo) object2); } else { zzc = zzfe.zzb(i13, (String) object2); } i10 += zzc; } z = false; z2 = false; j = 0; break; case 60: if (zza((zzhj) t, i13, i12)) { zzc = zzhy.zzc(i13, unsafe2.getObject(t, j3), zzbh(i12)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 61: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzc(i13, (zzeo) unsafe2.getObject(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 62: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzj(i13, zzh(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 63: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzn(i13, zzh(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 64: if (zza((zzhj) t, i13, i12)) { zzm = zzfe.zzm(i13, 0); i10 += zzm; } z = false; z2 = false; j = 0; break; case 65: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzh(i13, 0L); i10 += zzc; } z = false; z2 = false; j = 0; break; case 66: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzk(i13, zzh(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 67: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzf(i13, zzi(t, j3)); i10 += zzc; } z = false; z2 = false; j = 0; break; case 68: if (zza((zzhj) t, i13, i12)) { zzc = zzfe.zzc(i13, (zzhf) unsafe2.getObject(t, j3), zzbh(i12)); i10 += zzc; } z = false; z2 = false; j = 0; break; default: z = false; z2 = false; j = 0; break; } } int zza = i10 + zza(this.zzzr, t); return this.zzzi ? zza + this.zzzs.zzc(t).zzeq() : zza; } private static int zza(zzio zzioVar, T t) { return zzioVar.zzp(zzioVar.zzt(t)); } private static List zze(Object obj, long j) { return (List) zziu.zzp(obj, j); } /* JADX WARN: Removed duplicated region for block: B:10:0x0039 */ /* JADX WARN: Removed duplicated region for block: B:277:0x0511 */ /* JADX WARN: Removed duplicated region for block: B:299:0x054e */ /* JADX WARN: Removed duplicated region for block: B:566:0x0a26 */ @Override // com.google.android.gms.internal.vision.zzhw /* 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.vision.zzjj r15) throws java.io.IOException { /* Method dump skipped, instructions count: 2912 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.vision.zzhj.zza(java.lang.Object, com.google.android.gms.internal.vision.zzjj):void"); } /* JADX WARN: Removed duplicated region for block: B:224:0x048c */ /* JADX WARN: Removed duplicated region for block: B:8:0x002d */ /* 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.vision.zzjj r19) throws java.io.IOException { /* Method dump skipped, instructions count: 1334 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.vision.zzhj.zzb(java.lang.Object, com.google.android.gms.internal.vision.zzjj):void"); } private final void zza(zzjj zzjjVar, int i, Object obj, int i2) throws IOException { if (obj != null) { zzjjVar.zza(i, this.zzzt.zzo(zzbi(i2)), this.zzzt.zzk(obj)); } } private static void zza(zzio zzioVar, T t, zzjj zzjjVar) throws IOException { zzioVar.zza((zzio) zzioVar.zzt(t), zzjjVar); } /* JADX WARN: Failed to find 'out' block for switch in B:8:0x0084. Please report as an issue. */ @Override // com.google.android.gms.internal.vision.zzhw public final void zza(T t, zzhv zzhvVar, zzfk zzfkVar) throws IOException { zzfkVar.getClass(); zzio zzioVar = this.zzzr; zzfl zzflVar = this.zzzs; zzfp zzfpVar = null; Object obj = null; while (true) { try { int zzcn = zzhvVar.zzcn(); int zzbn = zzbn(zzcn); if (zzbn < 0) { if (zzcn == Integer.MAX_VALUE) { for (int i = this.zzzn; i < this.zzzo; i++) { obj = zza((Object) t, this.zzzm[i], (int) obj, (zzio) zzioVar); } if (obj != null) { zzioVar.zzf(t, obj); return; } return; } Object zza = !this.zzzi ? null : zzflVar.zza(zzfkVar, this.zzzh, zzcn); if (zza != null) { if (zzfpVar == null) { zzfpVar = zzflVar.zzd(t); } zzfp zzfpVar2 = zzfpVar; obj = zzflVar.zza(zzhvVar, zza, zzfkVar, zzfpVar2, obj, zzioVar); zzfpVar = zzfpVar2; } else { zzioVar.zza(zzhvVar); if (obj == null) { obj = zzioVar.zzu(t); } if (!zzioVar.zza((zzio) obj, zzhvVar)) { for (int i2 = this.zzzn; i2 < this.zzzo; i2++) { obj = zza((Object) t, this.zzzm[i2], (int) obj, (zzio) zzioVar); } if (obj != null) { zzioVar.zzf(t, obj); return; } return; } } } else { int zzbk = zzbk(zzbn); switch ((267386880 & zzbk) >>> 20) { case 0: zziu.zza(t, zzbk & 1048575, zzhvVar.readDouble()); zzb((zzhj) t, zzbn); break; case 1: zziu.zza((Object) t, zzbk & 1048575, zzhvVar.readFloat()); zzb((zzhj) t, zzbn); break; case 2: zziu.zza((Object) t, zzbk & 1048575, zzhvVar.zzcq()); zzb((zzhj) t, zzbn); break; case 3: zziu.zza((Object) t, zzbk & 1048575, zzhvVar.zzcp()); zzb((zzhj) t, zzbn); break; case 4: zziu.zzb(t, zzbk & 1048575, zzhvVar.zzcr()); zzb((zzhj) t, zzbn); break; case 5: zziu.zza((Object) t, zzbk & 1048575, zzhvVar.zzcs()); zzb((zzhj) t, zzbn); break; case 6: zziu.zzb(t, zzbk & 1048575, zzhvVar.zzct()); zzb((zzhj) t, zzbn); break; case 7: zziu.zza(t, zzbk & 1048575, zzhvVar.zzcu()); zzb((zzhj) t, zzbn); break; case 8: zza(t, zzbk, zzhvVar); zzb((zzhj) t, zzbn); break; case 9: if (zza((zzhj) t, zzbn)) { long j = zzbk & 1048575; zziu.zza(t, j, zzga.zza(zziu.zzp(t, j), zzhvVar.zza(zzbh(zzbn), zzfkVar))); break; } else { zziu.zza(t, zzbk & 1048575, zzhvVar.zza(zzbh(zzbn), zzfkVar)); zzb((zzhj) t, zzbn); break; } case 10: zziu.zza(t, zzbk & 1048575, zzhvVar.zzcw()); zzb((zzhj) t, zzbn); break; case 11: zziu.zzb(t, zzbk & 1048575, zzhvVar.zzcx()); zzb((zzhj) t, zzbn); break; case 12: int zzcy = zzhvVar.zzcy(); zzgd zzbj = zzbj(zzbn); if (zzbj != null && !zzbj.zzh(zzcy)) { obj = zzhy.zza(zzcn, zzcy, obj, (zzio) zzioVar); break; } zziu.zzb(t, zzbk & 1048575, zzcy); zzb((zzhj) t, zzbn); break; case 13: zziu.zzb(t, zzbk & 1048575, zzhvVar.zzcz()); zzb((zzhj) t, zzbn); break; case 14: zziu.zza((Object) t, zzbk & 1048575, zzhvVar.zzda()); zzb((zzhj) t, zzbn); break; case 15: zziu.zzb(t, zzbk & 1048575, zzhvVar.zzdb()); zzb((zzhj) t, zzbn); break; case 16: zziu.zza((Object) t, zzbk & 1048575, zzhvVar.zzdc()); zzb((zzhj) t, zzbn); break; case 17: if (zza((zzhj) t, zzbn)) { long j2 = zzbk & 1048575; zziu.zza(t, j2, zzga.zza(zziu.zzp(t, j2), zzhvVar.zzc(zzbh(zzbn), zzfkVar))); break; } else { zziu.zza(t, zzbk & 1048575, zzhvVar.zzc(zzbh(zzbn), zzfkVar)); zzb((zzhj) t, zzbn); break; } case 18: zzhvVar.zza(this.zzzq.zza(t, zzbk & 1048575)); break; case 19: zzhvVar.zzb(this.zzzq.zza(t, zzbk & 1048575)); break; case 20: zzhvVar.zzd(this.zzzq.zza(t, zzbk & 1048575)); break; case 21: zzhvVar.zzc(this.zzzq.zza(t, zzbk & 1048575)); break; case 22: zzhvVar.zze(this.zzzq.zza(t, zzbk & 1048575)); break; case 23: zzhvVar.zzf(this.zzzq.zza(t, zzbk & 1048575)); break; case 24: zzhvVar.zzg(this.zzzq.zza(t, zzbk & 1048575)); break; case 25: zzhvVar.zzh(this.zzzq.zza(t, zzbk & 1048575)); break; case 26: if (zzbm(zzbk)) { zzhvVar.zzi(this.zzzq.zza(t, zzbk & 1048575)); break; } else { zzhvVar.readStringList(this.zzzq.zza(t, zzbk & 1048575)); break; } case 27: zzhvVar.zza(this.zzzq.zza(t, zzbk & 1048575), zzbh(zzbn), zzfkVar); break; case 28: zzhvVar.zzj(this.zzzq.zza(t, zzbk & 1048575)); break; case 29: zzhvVar.zzk(this.zzzq.zza(t, zzbk & 1048575)); break; case 30: List zza2 = this.zzzq.zza(t, zzbk & 1048575); zzhvVar.zzl(zza2); obj = zzhy.zza(zzcn, zza2, zzbj(zzbn), obj, (zzio) zzioVar); break; case 31: zzhvVar.zzm(this.zzzq.zza(t, zzbk & 1048575)); break; case 32: zzhvVar.zzn(this.zzzq.zza(t, zzbk & 1048575)); break; case 33: zzhvVar.zzo(this.zzzq.zza(t, zzbk & 1048575)); break; case 34: zzhvVar.zzp(this.zzzq.zza(t, zzbk & 1048575)); break; case 35: zzhvVar.zza(this.zzzq.zza(t, zzbk & 1048575)); break; case 36: zzhvVar.zzb(this.zzzq.zza(t, zzbk & 1048575)); break; case 37: zzhvVar.zzd(this.zzzq.zza(t, zzbk & 1048575)); break; case 38: zzhvVar.zzc(this.zzzq.zza(t, zzbk & 1048575)); break; case 39: zzhvVar.zze(this.zzzq.zza(t, zzbk & 1048575)); break; case 40: zzhvVar.zzf(this.zzzq.zza(t, zzbk & 1048575)); break; case 41: zzhvVar.zzg(this.zzzq.zza(t, zzbk & 1048575)); break; case 42: zzhvVar.zzh(this.zzzq.zza(t, zzbk & 1048575)); break; case 43: zzhvVar.zzk(this.zzzq.zza(t, zzbk & 1048575)); break; case 44: List zza3 = this.zzzq.zza(t, zzbk & 1048575); zzhvVar.zzl(zza3); obj = zzhy.zza(zzcn, zza3, zzbj(zzbn), obj, (zzio) zzioVar); break; case 45: zzhvVar.zzm(this.zzzq.zza(t, zzbk & 1048575)); break; case 46: zzhvVar.zzn(this.zzzq.zza(t, zzbk & 1048575)); break; case 47: zzhvVar.zzo(this.zzzq.zza(t, zzbk & 1048575)); break; case 48: zzhvVar.zzp(this.zzzq.zza(t, zzbk & 1048575)); break; case 49: zzhvVar.zzb(this.zzzq.zza(t, zzbk & 1048575), zzbh(zzbn), zzfkVar); break; case 50: Object zzbi = zzbi(zzbn); long zzbk2 = zzbk(zzbn) & 1048575; Object zzp = zziu.zzp(t, zzbk2); if (zzp == null) { zzp = this.zzzt.zzn(zzbi); zziu.zza(t, zzbk2, zzp); } else if (this.zzzt.zzl(zzp)) { Object zzn = this.zzzt.zzn(zzbi); this.zzzt.zzb(zzn, zzp); zziu.zza(t, zzbk2, zzn); zzp = zzn; } zzhvVar.zza(this.zzzt.zzj(zzp), this.zzzt.zzo(zzbi), zzfkVar); break; case 51: zziu.zza(t, zzbk & 1048575, Double.valueOf(zzhvVar.readDouble())); zzb((zzhj) t, zzcn, zzbn); break; case 52: zziu.zza(t, zzbk & 1048575, Float.valueOf(zzhvVar.readFloat())); zzb((zzhj) t, zzcn, zzbn); break; case 53: zziu.zza(t, zzbk & 1048575, Long.valueOf(zzhvVar.zzcq())); zzb((zzhj) t, zzcn, zzbn); break; case 54: zziu.zza(t, zzbk & 1048575, Long.valueOf(zzhvVar.zzcp())); zzb((zzhj) t, zzcn, zzbn); break; case 55: zziu.zza(t, zzbk & 1048575, Integer.valueOf(zzhvVar.zzcr())); zzb((zzhj) t, zzcn, zzbn); break; case 56: zziu.zza(t, zzbk & 1048575, Long.valueOf(zzhvVar.zzcs())); zzb((zzhj) t, zzcn, zzbn); break; case 57: zziu.zza(t, zzbk & 1048575, Integer.valueOf(zzhvVar.zzct())); zzb((zzhj) t, zzcn, zzbn); break; case 58: zziu.zza(t, zzbk & 1048575, Boolean.valueOf(zzhvVar.zzcu())); zzb((zzhj) t, zzcn, zzbn); break; case 59: zza(t, zzbk, zzhvVar); zzb((zzhj) t, zzcn, zzbn); break; case 60: if (zza((zzhj) t, zzcn, zzbn)) { long j3 = zzbk & 1048575; zziu.zza(t, j3, zzga.zza(zziu.zzp(t, j3), zzhvVar.zza(zzbh(zzbn), zzfkVar))); } else { zziu.zza(t, zzbk & 1048575, zzhvVar.zza(zzbh(zzbn), zzfkVar)); zzb((zzhj) t, zzbn); } zzb((zzhj) t, zzcn, zzbn); break; case 61: zziu.zza(t, zzbk & 1048575, zzhvVar.zzcw()); zzb((zzhj) t, zzcn, zzbn); break; case 62: zziu.zza(t, zzbk & 1048575, Integer.valueOf(zzhvVar.zzcx())); zzb((zzhj) t, zzcn, zzbn); break; case 63: int zzcy2 = zzhvVar.zzcy(); zzgd zzbj2 = zzbj(zzbn); if (zzbj2 != null && !zzbj2.zzh(zzcy2)) { obj = zzhy.zza(zzcn, zzcy2, obj, (zzio) zzioVar); break; } zziu.zza(t, zzbk & 1048575, Integer.valueOf(zzcy2)); zzb((zzhj) t, zzcn, zzbn); break; case 64: zziu.zza(t, zzbk & 1048575, Integer.valueOf(zzhvVar.zzcz())); zzb((zzhj) t, zzcn, zzbn); break; case 65: zziu.zza(t, zzbk & 1048575, Long.valueOf(zzhvVar.zzda())); zzb((zzhj) t, zzcn, zzbn); break; case 66: zziu.zza(t, zzbk & 1048575, Integer.valueOf(zzhvVar.zzdb())); zzb((zzhj) t, zzcn, zzbn); break; case 67: zziu.zza(t, zzbk & 1048575, Long.valueOf(zzhvVar.zzdc())); zzb((zzhj) t, zzcn, zzbn); break; case 68: zziu.zza(t, zzbk & 1048575, zzhvVar.zzc(zzbh(zzbn), zzfkVar)); zzb((zzhj) t, zzcn, zzbn); break; default: if (obj == null) { try { obj = zzioVar.zzhd(); } catch (zzgg unused) { zzioVar.zza(zzhvVar); if (obj == null) { obj = zzioVar.zzu(t); } if (!zzioVar.zza((zzio) obj, zzhvVar)) { for (int i3 = this.zzzn; i3 < this.zzzo; i3++) { obj = zza((Object) t, this.zzzm[i3], (int) obj, (zzio) zzioVar); } if (obj != null) { zzioVar.zzf(t, obj); return; } return; } break; } } if (!zzioVar.zza((zzio) obj, zzhvVar)) { for (int i4 = this.zzzn; i4 < this.zzzo; i4++) { obj = zza((Object) t, this.zzzm[i4], (int) obj, (zzio) zzioVar); } if (obj != null) { zzioVar.zzf(t, obj); return; } return; } break; } } } catch (Throwable th) { for (int i5 = this.zzzn; i5 < this.zzzo; i5++) { obj = zza((Object) t, this.zzzm[i5], (int) obj, (zzio) zzioVar); } if (obj != null) { zzioVar.zzf(t, obj); } throw th; } } } private static zzip zzq(Object obj) { zzfy zzfyVar = (zzfy) obj; zzip zzipVar = zzfyVar.zzwj; if (zzipVar != zzip.zzhe()) { return zzipVar; } zzip zzhf = zzip.zzhf(); zzfyVar.zzwj = zzhf; return zzhf; } /* JADX WARN: Multi-variable type inference failed */ private static int zza(zzhw zzhwVar, byte[] bArr, int i, int i2, zzei zzeiVar) throws IOException { int i3 = i + 1; int i4 = bArr[i]; if (i4 < 0) { i3 = zzeh.zza(i4, bArr, i3, zzeiVar); i4 = zzeiVar.zzro; } int i5 = i3; if (i4 < 0 || i4 > i2 - i5) { throw zzgf.zzfh(); } Object newInstance = zzhwVar.newInstance(); int i6 = i4 + i5; zzhwVar.zza(newInstance, bArr, i5, i6, zzeiVar); zzhwVar.zze(newInstance); zzeiVar.zzrq = newInstance; return i6; } /* JADX WARN: Multi-variable type inference failed */ private static int zza(zzhw zzhwVar, byte[] bArr, int i, int i2, int i3, zzei zzeiVar) throws IOException { zzhj zzhjVar = (zzhj) zzhwVar; Object newInstance = zzhjVar.newInstance(); int zza = zzhjVar.zza((zzhj) newInstance, bArr, i, i2, i3, zzeiVar); zzhjVar.zze(newInstance); zzeiVar.zzrq = newInstance; return zza; } private static int zza(zzhw zzhwVar, int i, byte[] bArr, int i2, int i3, zzge zzgeVar, zzei zzeiVar) throws IOException { int zza = zza((zzhw) zzhwVar, bArr, i2, i3, zzeiVar); zzgeVar.add(zzeiVar.zzrq); while (zza < i3) { int zza2 = zzeh.zza(bArr, zza, zzeiVar); if (i != zzeiVar.zzro) { break; } zza = zza((zzhw) zzhwVar, bArr, zza2, i3, zzeiVar); zzgeVar.add(zzeiVar.zzrq); } return zza; } /* 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, zzjd zzjdVar, Class cls, zzei zzeiVar) throws IOException { switch (zzhk.zzrr[zzjdVar.ordinal()]) { case 1: int zzb = zzeh.zzb(bArr, i, zzeiVar); zzeiVar.zzrq = Boolean.valueOf(zzeiVar.zzrp != 0); return zzb; case 2: return zzeh.zze(bArr, i, zzeiVar); case 3: zzeiVar.zzrq = Double.valueOf(zzeh.zzc(bArr, i)); return i + 8; case 4: case 5: zzeiVar.zzrq = Integer.valueOf(zzeh.zza(bArr, i)); return i + 4; case 6: case 7: zzeiVar.zzrq = Long.valueOf(zzeh.zzb(bArr, i)); return i + 8; case 8: zzeiVar.zzrq = Float.valueOf(zzeh.zzd(bArr, i)); return i + 4; case 9: case 10: case 11: int zza = zzeh.zza(bArr, i, zzeiVar); zzeiVar.zzrq = Integer.valueOf(zzeiVar.zzro); return zza; case 12: case 13: int zzb2 = zzeh.zzb(bArr, i, zzeiVar); zzeiVar.zzrq = Long.valueOf(zzeiVar.zzrp); return zzb2; case 14: return zza((zzhw) zzhs.zzgl().zzf(cls), bArr, i, i2, zzeiVar); case 15: int zza2 = zzeh.zza(bArr, i, zzeiVar); zzeiVar.zzrq = Integer.valueOf(zzez.zzaq(zzeiVar.zzro)); return zza2; case 16: int zzb3 = zzeh.zzb(bArr, i, zzeiVar); zzeiVar.zzrq = Long.valueOf(zzez.zzd(zzeiVar.zzrp)); return zzb3; case 17: return zzeh.zzd(bArr, i, zzeiVar); default: throw new RuntimeException("unsupported field type."); } } private static int zza(int i, byte[] bArr, int i2, int i3, Object obj, zzei zzeiVar) throws IOException { return zzeh.zza(i, bArr, i2, i3, zzq(obj), zzeiVar); } /* 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, zzei zzeiVar) throws IOException { int zza; int i8 = i; Unsafe unsafe = zzzc; zzge zzgeVar = (zzge) unsafe.getObject(t, j2); if (!zzgeVar.zzch()) { int size = zzgeVar.size(); zzgeVar = zzgeVar.zzah(size == 0 ? 10 : size << 1); unsafe.putObject(t, j2, zzgeVar); } switch (i7) { case 18: case 35: if (i5 == 2) { zzfh zzfhVar = (zzfh) zzgeVar; int zza2 = zzeh.zza(bArr, i8, zzeiVar); int i9 = zzeiVar.zzro + zza2; while (zza2 < i9) { zzfhVar.zzc(zzeh.zzc(bArr, zza2)); zza2 += 8; } if (zza2 == i9) { return zza2; } throw zzgf.zzfh(); } if (i5 == 1) { zzfh zzfhVar2 = (zzfh) zzgeVar; zzfhVar2.zzc(zzeh.zzc(bArr, i)); while (true) { int i10 = i8 + 8; if (i10 >= i2) { return i10; } i8 = zzeh.zza(bArr, i10, zzeiVar); if (i3 != zzeiVar.zzro) { return i10; } zzfhVar2.zzc(zzeh.zzc(bArr, i8)); } } return i8; case 19: case 36: if (i5 == 2) { zzfv zzfvVar = (zzfv) zzgeVar; int zza3 = zzeh.zza(bArr, i8, zzeiVar); int i11 = zzeiVar.zzro + zza3; while (zza3 < i11) { zzfvVar.zzh(zzeh.zzd(bArr, zza3)); zza3 += 4; } if (zza3 == i11) { return zza3; } throw zzgf.zzfh(); } if (i5 == 5) { zzfv zzfvVar2 = (zzfv) zzgeVar; zzfvVar2.zzh(zzeh.zzd(bArr, i)); while (true) { int i12 = i8 + 4; if (i12 >= i2) { return i12; } i8 = zzeh.zza(bArr, i12, zzeiVar); if (i3 != zzeiVar.zzro) { return i12; } zzfvVar2.zzh(zzeh.zzd(bArr, i8)); } } return i8; case 20: case 21: case 37: case 38: if (i5 == 2) { zzgt zzgtVar = (zzgt) zzgeVar; int zza4 = zzeh.zza(bArr, i8, zzeiVar); int i13 = zzeiVar.zzro + zza4; while (zza4 < i13) { zza4 = zzeh.zzb(bArr, zza4, zzeiVar); zzgtVar.zzp(zzeiVar.zzrp); } if (zza4 == i13) { return zza4; } throw zzgf.zzfh(); } if (i5 == 0) { zzgt zzgtVar2 = (zzgt) zzgeVar; int zzb = zzeh.zzb(bArr, i8, zzeiVar); zzgtVar2.zzp(zzeiVar.zzrp); while (zzb < i2) { int zza5 = zzeh.zza(bArr, zzb, zzeiVar); if (i3 != zzeiVar.zzro) { return zzb; } zzb = zzeh.zzb(bArr, zza5, zzeiVar); zzgtVar2.zzp(zzeiVar.zzrp); } return zzb; } return i8; case 22: case 29: case 39: case 43: if (i5 == 2) { return zzeh.zza(bArr, i8, (zzge) zzgeVar, zzeiVar); } if (i5 == 0) { return zzeh.zza(i3, bArr, i, i2, (zzge) zzgeVar, zzeiVar); } return i8; case 23: case 32: case 40: case 46: if (i5 == 2) { zzgt zzgtVar3 = (zzgt) zzgeVar; int zza6 = zzeh.zza(bArr, i8, zzeiVar); int i14 = zzeiVar.zzro + zza6; while (zza6 < i14) { zzgtVar3.zzp(zzeh.zzb(bArr, zza6)); zza6 += 8; } if (zza6 == i14) { return zza6; } throw zzgf.zzfh(); } if (i5 == 1) { zzgt zzgtVar4 = (zzgt) zzgeVar; zzgtVar4.zzp(zzeh.zzb(bArr, i)); while (true) { int i15 = i8 + 8; if (i15 >= i2) { return i15; } i8 = zzeh.zza(bArr, i15, zzeiVar); if (i3 != zzeiVar.zzro) { return i15; } zzgtVar4.zzp(zzeh.zzb(bArr, i8)); } } return i8; case 24: case 31: case 41: case 45: if (i5 == 2) { zzfz zzfzVar = (zzfz) zzgeVar; int zza7 = zzeh.zza(bArr, i8, zzeiVar); int i16 = zzeiVar.zzro + zza7; while (zza7 < i16) { zzfzVar.zzbg(zzeh.zza(bArr, zza7)); zza7 += 4; } if (zza7 == i16) { return zza7; } throw zzgf.zzfh(); } if (i5 == 5) { zzfz zzfzVar2 = (zzfz) zzgeVar; zzfzVar2.zzbg(zzeh.zza(bArr, i)); while (true) { int i17 = i8 + 4; if (i17 >= i2) { return i17; } i8 = zzeh.zza(bArr, i17, zzeiVar); if (i3 != zzeiVar.zzro) { return i17; } zzfzVar2.zzbg(zzeh.zza(bArr, i8)); } } return i8; case 25: case 42: if (i5 == 2) { zzem zzemVar = (zzem) zzgeVar; zza = zzeh.zza(bArr, i8, zzeiVar); int i18 = zzeiVar.zzro + zza; while (zza < i18) { zza = zzeh.zzb(bArr, zza, zzeiVar); zzemVar.addBoolean(zzeiVar.zzrp != 0); } if (zza != i18) { throw zzgf.zzfh(); } return zza; } if (i5 == 0) { zzem zzemVar2 = (zzem) zzgeVar; i8 = zzeh.zzb(bArr, i8, zzeiVar); zzemVar2.addBoolean(zzeiVar.zzrp != 0); while (i8 < i2) { int zza8 = zzeh.zza(bArr, i8, zzeiVar); if (i3 == zzeiVar.zzro) { i8 = zzeh.zzb(bArr, zza8, zzeiVar); zzemVar2.addBoolean(zzeiVar.zzrp != 0); } } } return i8; case 26: if (i5 == 2) { if ((j & 536870912) == 0) { int zza9 = zzeh.zza(bArr, i8, zzeiVar); int i19 = zzeiVar.zzro; if (i19 < 0) { throw zzgf.zzfi(); } if (i19 == 0) { zzgeVar.add(""); } else { zzgeVar.add(new String(bArr, zza9, i19, zzga.UTF_8)); zza9 += i19; } while (zza9 < i2) { int zza10 = zzeh.zza(bArr, zza9, zzeiVar); if (i3 != zzeiVar.zzro) { return zza9; } zza9 = zzeh.zza(bArr, zza10, zzeiVar); int i20 = zzeiVar.zzro; if (i20 < 0) { throw zzgf.zzfi(); } if (i20 == 0) { zzgeVar.add(""); } else { zzgeVar.add(new String(bArr, zza9, i20, zzga.UTF_8)); zza9 += i20; } } return zza9; } int zza11 = zzeh.zza(bArr, i8, zzeiVar); int i21 = zzeiVar.zzro; if (i21 < 0) { throw zzgf.zzfi(); } if (i21 == 0) { zzgeVar.add(""); } else { int i22 = zza11 + i21; if (!zziw.zzg(bArr, zza11, i22)) { throw zzgf.zzfp(); } zzgeVar.add(new String(bArr, zza11, i21, zzga.UTF_8)); zza11 = i22; } while (zza11 < i2) { int zza12 = zzeh.zza(bArr, zza11, zzeiVar); if (i3 != zzeiVar.zzro) { return zza11; } zza11 = zzeh.zza(bArr, zza12, zzeiVar); int i23 = zzeiVar.zzro; if (i23 < 0) { throw zzgf.zzfi(); } if (i23 == 0) { zzgeVar.add(""); } else { int i24 = zza11 + i23; if (!zziw.zzg(bArr, zza11, i24)) { throw zzgf.zzfp(); } zzgeVar.add(new String(bArr, zza11, i23, zzga.UTF_8)); zza11 = i24; } } return zza11; } return i8; case 27: if (i5 == 2) { return zza((zzhw) zzbh(i6), i3, bArr, i, i2, (zzge) zzgeVar, zzeiVar); } return i8; case 28: if (i5 == 2) { int zza13 = zzeh.zza(bArr, i8, zzeiVar); int i25 = zzeiVar.zzro; if (i25 < 0) { throw zzgf.zzfi(); } if (i25 > bArr.length - zza13) { throw zzgf.zzfh(); } if (i25 == 0) { zzgeVar.add(zzeo.zzrx); } else { zzgeVar.add(zzeo.zzb(bArr, zza13, i25)); zza13 += i25; } while (zza13 < i2) { int zza14 = zzeh.zza(bArr, zza13, zzeiVar); if (i3 != zzeiVar.zzro) { return zza13; } zza13 = zzeh.zza(bArr, zza14, zzeiVar); int i26 = zzeiVar.zzro; if (i26 < 0) { throw zzgf.zzfi(); } if (i26 > bArr.length - zza13) { throw zzgf.zzfh(); } if (i26 == 0) { zzgeVar.add(zzeo.zzrx); } else { zzgeVar.add(zzeo.zzb(bArr, zza13, i26)); zza13 += i26; } } return zza13; } return i8; case 30: case 44: if (i5 != 2) { if (i5 == 0) { zza = zzeh.zza(i3, bArr, i, i2, (zzge) zzgeVar, zzeiVar); } return i8; } zza = zzeh.zza(bArr, i8, (zzge) zzgeVar, zzeiVar); zzfy zzfyVar = (zzfy) t; zzip zzipVar = zzfyVar.zzwj; if (zzipVar == zzip.zzhe()) { zzipVar = null; } zzip zzipVar2 = (zzip) zzhy.zza(i4, (List) zzgeVar, zzbj(i6), zzipVar, (zzio) this.zzzr); if (zzipVar2 != null) { zzfyVar.zzwj = zzipVar2; } return zza; case 33: case 47: if (i5 == 2) { zzfz zzfzVar3 = (zzfz) zzgeVar; int zza15 = zzeh.zza(bArr, i8, zzeiVar); int i27 = zzeiVar.zzro + zza15; while (zza15 < i27) { zza15 = zzeh.zza(bArr, zza15, zzeiVar); zzfzVar3.zzbg(zzez.zzaq(zzeiVar.zzro)); } if (zza15 == i27) { return zza15; } throw zzgf.zzfh(); } if (i5 == 0) { zzfz zzfzVar4 = (zzfz) zzgeVar; int zza16 = zzeh.zza(bArr, i8, zzeiVar); zzfzVar4.zzbg(zzez.zzaq(zzeiVar.zzro)); while (zza16 < i2) { int zza17 = zzeh.zza(bArr, zza16, zzeiVar); if (i3 != zzeiVar.zzro) { return zza16; } zza16 = zzeh.zza(bArr, zza17, zzeiVar); zzfzVar4.zzbg(zzez.zzaq(zzeiVar.zzro)); } return zza16; } return i8; case 34: case 48: if (i5 == 2) { zzgt zzgtVar5 = (zzgt) zzgeVar; int zza18 = zzeh.zza(bArr, i8, zzeiVar); int i28 = zzeiVar.zzro + zza18; while (zza18 < i28) { zza18 = zzeh.zzb(bArr, zza18, zzeiVar); zzgtVar5.zzp(zzez.zzd(zzeiVar.zzrp)); } if (zza18 == i28) { return zza18; } throw zzgf.zzfh(); } if (i5 == 0) { zzgt zzgtVar6 = (zzgt) zzgeVar; int zzb2 = zzeh.zzb(bArr, i8, zzeiVar); zzgtVar6.zzp(zzez.zzd(zzeiVar.zzrp)); while (zzb2 < i2) { int zza19 = zzeh.zza(bArr, zzb2, zzeiVar); if (i3 != zzeiVar.zzro) { return zzb2; } zzb2 = zzeh.zzb(bArr, zza19, zzeiVar); zzgtVar6.zzp(zzez.zzd(zzeiVar.zzrp)); } return zzb2; } return i8; case 49: if (i5 == 3) { zzhw zzbh = zzbh(i6); int i29 = (i3 & (-8)) | 4; i8 = zza(zzbh, bArr, i, i2, i29, zzeiVar); zzgeVar.add(zzeiVar.zzrq); while (i8 < i2) { int zza20 = zzeh.zza(bArr, i8, zzeiVar); if (i3 == zzeiVar.zzro) { i8 = zza(zzbh, bArr, zza20, i2, i29, zzeiVar); zzgeVar.add(zzeiVar.zzrq); } } } return i8; default: return i8; } } private final int zza(T t, byte[] bArr, int i, int i2, int i3, long j, zzei zzeiVar) throws IOException { Unsafe unsafe = zzzc; Object zzbi = zzbi(i3); Object object = unsafe.getObject(t, j); if (this.zzzt.zzl(object)) { Object zzn = this.zzzt.zzn(zzbi); this.zzzt.zzb(zzn, object); unsafe.putObject(t, j, zzn); object = zzn; } zzgy zzo = this.zzzt.zzo(zzbi); Map zzj = this.zzzt.zzj(object); int zza = zzeh.zza(bArr, i, zzeiVar); int i4 = zzeiVar.zzro; if (i4 < 0 || i4 > i2 - zza) { throw zzgf.zzfh(); } int i5 = i4 + zza; K k = zzo.zzyw; V v = zzo.zzgq; while (zza < i5) { int i6 = zza + 1; int i7 = bArr[zza]; if (i7 < 0) { i6 = zzeh.zza(i7, bArr, i6, zzeiVar); i7 = zzeiVar.zzro; } int i8 = i6; int i9 = i7 >>> 3; int i10 = i7 & 7; if (i9 == 1) { if (i10 == zzo.zzyv.zzhp()) { zza = zza(bArr, i8, i2, zzo.zzyv, (Class) null, zzeiVar); k = (K) zzeiVar.zzrq; } else { zza = zzeh.zza(i7, bArr, i8, i2, zzeiVar); } } else { if (i9 == 2 && i10 == zzo.zzyx.zzhp()) { zza = zza(bArr, i8, i2, zzo.zzyx, zzo.zzgq.getClass(), zzeiVar); v = zzeiVar.zzrq; } zza = zzeh.zza(i7, bArr, i8, i2, zzeiVar); } } if (zza != i5) { throw zzgf.zzfo(); } zzj.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, zzei zzeiVar) throws IOException { int zzb; Unsafe unsafe = zzzc; long j2 = this.zzzd[i8 + 2] & 1048575; switch (i7) { case 51: if (i5 == 1) { unsafe.putObject(t, j, Double.valueOf(zzeh.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(zzeh.zzd(bArr, i))); zzb = i + 4; unsafe.putInt(t, j2, i4); return zzb; } return i; case 53: case 54: if (i5 == 0) { zzb = zzeh.zzb(bArr, i, zzeiVar); unsafe.putObject(t, j, Long.valueOf(zzeiVar.zzrp)); unsafe.putInt(t, j2, i4); return zzb; } return i; case 55: case 62: if (i5 == 0) { zzb = zzeh.zza(bArr, i, zzeiVar); unsafe.putObject(t, j, Integer.valueOf(zzeiVar.zzro)); unsafe.putInt(t, j2, i4); return zzb; } return i; case 56: case 65: if (i5 == 1) { unsafe.putObject(t, j, Long.valueOf(zzeh.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(zzeh.zza(bArr, i))); zzb = i + 4; unsafe.putInt(t, j2, i4); return zzb; } return i; case 58: if (i5 == 0) { zzb = zzeh.zzb(bArr, i, zzeiVar); unsafe.putObject(t, j, Boolean.valueOf(zzeiVar.zzrp != 0)); unsafe.putInt(t, j2, i4); return zzb; } return i; case 59: if (i5 == 2) { int zza = zzeh.zza(bArr, i, zzeiVar); int i9 = zzeiVar.zzro; if (i9 == 0) { unsafe.putObject(t, j, ""); } else { if ((i6 & PKIFailureInfo.duplicateCertReq) != 0 && !zziw.zzg(bArr, zza, zza + i9)) { throw zzgf.zzfp(); } unsafe.putObject(t, j, new String(bArr, zza, i9, zzga.UTF_8)); zza += i9; } unsafe.putInt(t, j2, i4); return zza; } return i; case 60: if (i5 == 2) { int zza2 = zza(zzbh(i8), bArr, i, i2, zzeiVar); Object object = unsafe.getInt(t, j2) == i4 ? unsafe.getObject(t, j) : null; if (object == null) { unsafe.putObject(t, j, zzeiVar.zzrq); } else { unsafe.putObject(t, j, zzga.zza(object, zzeiVar.zzrq)); } unsafe.putInt(t, j2, i4); return zza2; } return i; case 61: if (i5 == 2) { zzb = zzeh.zze(bArr, i, zzeiVar); unsafe.putObject(t, j, zzeiVar.zzrq); unsafe.putInt(t, j2, i4); return zzb; } return i; case 63: if (i5 == 0) { int zza3 = zzeh.zza(bArr, i, zzeiVar); int i10 = zzeiVar.zzro; zzgd zzbj = zzbj(i8); if (zzbj == null || zzbj.zzh(i10)) { unsafe.putObject(t, j, Integer.valueOf(i10)); zzb = zza3; unsafe.putInt(t, j2, i4); return zzb; } zzq(t).zzb(i3, Long.valueOf(i10)); return zza3; } return i; case 66: if (i5 == 0) { zzb = zzeh.zza(bArr, i, zzeiVar); unsafe.putObject(t, j, Integer.valueOf(zzez.zzaq(zzeiVar.zzro))); unsafe.putInt(t, j2, i4); return zzb; } return i; case 67: if (i5 == 0) { zzb = zzeh.zzb(bArr, i, zzeiVar); unsafe.putObject(t, j, Long.valueOf(zzez.zzd(zzeiVar.zzrp))); unsafe.putInt(t, j2, i4); return zzb; } return i; case 68: if (i5 == 3) { zzb = zza(zzbh(i8), bArr, i, i2, (i3 & (-8)) | 4, zzeiVar); Object object2 = unsafe.getInt(t, j2) == i4 ? unsafe.getObject(t, j) : null; if (object2 == null) { unsafe.putObject(t, j, zzeiVar.zzrq); } else { unsafe.putObject(t, j, zzga.zza(object2, zzeiVar.zzrq)); } unsafe.putInt(t, j2, i4); return zzb; } return i; default: return i; } } private final zzhw zzbh(int i) { int i2 = (i / 3) << 1; zzhw zzhwVar = (zzhw) this.zzze[i2]; if (zzhwVar != null) { return zzhwVar; } zzhw zzf = zzhs.zzgl().zzf((Class) this.zzze[i2 + 1]); this.zzze[i2] = zzf; return zzf; } private final Object zzbi(int i) { return this.zzze[(i / 3) << 1]; } private final zzgd zzbj(int i) { return (zzgd) this.zzze[((i / 3) << 1) + 1]; } /* JADX WARN: Failed to find 'out' block for switch in B:91:0x0080. Please report as an issue. */ private final int zza(T t, byte[] bArr, int i, int i2, int i3, zzei zzeiVar) throws IOException { Unsafe unsafe; int i4; T t2; int i5; int i6; int zzbn; int i7; int i8; int i9; int i10; int i11; int i12; int i13; int i14; int zzb; int i15; int i16; int i17; int i18; int i19; int i20; int i21; int i22; int i23; int i24; zzhj zzhjVar = this; T t3 = t; byte[] bArr2 = bArr; int i25 = i2; int i26 = i3; zzei zzeiVar2 = zzeiVar; Unsafe unsafe2 = zzzc; int i27 = i; int i28 = 0; int i29 = 0; int i30 = 0; int i31 = -1; int i32 = -1; while (true) { if (i27 < i25) { int i33 = i27 + 1; byte b = bArr2[i27]; if (b < 0) { i6 = zzeh.zza(b, bArr2, i33, zzeiVar2); i5 = zzeiVar2.zzro; } else { i5 = b; i6 = i33; } int i34 = i5 >>> 3; int i35 = i5 & 7; if (i34 > i31) { zzbn = zzhjVar.zzr(i34, i29 / 3); } else { zzbn = zzhjVar.zzbn(i34); } int i36 = zzbn; if (i36 == -1) { i7 = i34; i8 = i6; i9 = i5; unsafe = unsafe2; i4 = i26; i10 = 0; } else { int[] iArr = zzhjVar.zzzd; int i37 = iArr[i36 + 1]; int i38 = (i37 & 267386880) >>> 20; int i39 = i5; long j = i37 & 1048575; if (i38 <= 17) { int i40 = iArr[i36 + 2]; int i41 = 1 << (i40 >>> 20); int i42 = i40 & 1048575; if (i42 != i32) { if (i32 != -1) { unsafe2.putInt(t3, i32, i30); } i30 = unsafe2.getInt(t3, i42); i32 = i42; } switch (i38) { case 0: i7 = i34; i10 = i36; i11 = i6; i12 = i39; bArr2 = bArr; i25 = i2; if (i35 == 1) { zziu.zza(t3, j, zzeh.zzc(bArr2, i11)); i13 = i11 + 8; i27 = i13; i30 |= i41; i19 = i30; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 1: i7 = i34; i10 = i36; i11 = i6; i12 = i39; bArr2 = bArr; i25 = i2; if (i35 == 5) { zziu.zza((Object) t3, j, zzeh.zzd(bArr2, i11)); i13 = i11 + 4; i27 = i13; i30 |= i41; i19 = i30; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 2: case 3: i7 = i34; i10 = i36; i11 = i6; i14 = i39; bArr2 = bArr; i25 = i2; if (i35 == 0) { zzb = zzeh.zzb(bArr2, i11, zzeiVar2); i12 = i14; unsafe2.putLong(t, j, zzeiVar2.zzrp); i30 |= i41; i27 = zzb; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i12 = i14; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 4: case 11: i7 = i34; i10 = i36; i11 = i6; i14 = i39; bArr2 = bArr; i25 = i2; if (i35 == 0) { zzeiVar2 = zzeiVar; i27 = zzeh.zza(bArr2, i11, zzeiVar2); unsafe2.putInt(t3, j, zzeiVar2.zzro); i12 = i14; i30 |= i41; i19 = i30; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i12 = i14; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 5: case 14: i7 = i34; i10 = i36; i15 = i39; bArr2 = bArr; i25 = i2; if (i35 == 1) { unsafe2.putLong(t, j, zzeh.zzb(bArr2, i6)); i11 = i6; i12 = i15; zzeiVar2 = zzeiVar; i13 = i11 + 8; i27 = i13; i30 |= i41; i19 = i30; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i16 = i6; i17 = i15; i11 = i16; i12 = i17; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 6: case 13: i7 = i34; i10 = i36; i15 = i39; bArr2 = bArr; i25 = i2; if (i35 == 5) { unsafe2.putInt(t3, j, zzeh.zza(bArr2, i6)); i27 = i6 + 4; i19 = i30 | i41; zzeiVar2 = zzeiVar; i12 = i15; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i16 = i6; i17 = i15; i11 = i16; i12 = i17; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 7: i7 = i34; i10 = i36; i15 = i39; bArr2 = bArr; i25 = i2; if (i35 == 0) { int zzb2 = zzeh.zzb(bArr2, i6, zzeiVar2); zziu.zza(t3, j, zzeiVar2.zzrp != 0); i27 = zzb2; i19 = i30 | i41; zzeiVar2 = zzeiVar; i12 = i15; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i16 = i6; i17 = i15; i11 = i16; i12 = i17; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 8: i7 = i34; i10 = i36; i18 = i39; bArr2 = bArr; i25 = i2; if (i35 == 2) { if ((i37 & PKIFailureInfo.duplicateCertReq) == 0) { i27 = zzeh.zzc(bArr2, i6, zzeiVar2); } else { i27 = zzeh.zzd(bArr2, i6, zzeiVar2); } unsafe2.putObject(t3, j, zzeiVar2.zzrq); i15 = i18; i19 = i30 | i41; zzeiVar2 = zzeiVar; i12 = i15; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i17 = i18; i16 = i6; i11 = i16; i12 = i17; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 9: i7 = i34; i10 = i36; i18 = i39; bArr2 = bArr; if (i35 == 2) { i25 = i2; i27 = zza(zzhjVar.zzbh(i10), bArr2, i6, i25, zzeiVar2); if ((i30 & i41) == 0) { unsafe2.putObject(t3, j, zzeiVar2.zzrq); } else { unsafe2.putObject(t3, j, zzga.zza(unsafe2.getObject(t3, j), zzeiVar2.zzrq)); } i15 = i18; i19 = i30 | i41; zzeiVar2 = zzeiVar; i12 = i15; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i17 = i18; i16 = i6; i11 = i16; i12 = i17; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 10: i7 = i34; i10 = i36; i18 = i39; bArr2 = bArr; if (i35 == 2) { i27 = zzeh.zze(bArr2, i6, zzeiVar2); unsafe2.putObject(t3, j, zzeiVar2.zzrq); i25 = i2; i12 = i18; i30 |= i41; i19 = i30; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i17 = i18; i16 = i6; i11 = i16; i12 = i17; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 12: i7 = i34; i10 = i36; i18 = i39; bArr2 = bArr; if (i35 != 0) { i17 = i18; i16 = i6; i11 = i16; i12 = i17; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } else { i27 = zzeh.zza(bArr2, i6, zzeiVar2); int i43 = zzeiVar2.zzro; zzgd zzbj = zzhjVar.zzbj(i10); if (zzbj == null || zzbj.zzh(i43)) { unsafe2.putInt(t3, j, i43); i25 = i2; i12 = i18; i30 |= i41; i19 = i30; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { zzq(t).zzb(i18, Long.valueOf(i43)); i25 = i2; i12 = i18; i19 = i30; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; } } break; case 15: i7 = i34; i10 = i36; i18 = i39; bArr2 = bArr; if (i35 == 0) { i27 = zzeh.zza(bArr2, i6, zzeiVar2); unsafe2.putInt(t3, j, zzez.zzaq(zzeiVar2.zzro)); i25 = i2; i12 = i18; i30 |= i41; i19 = i30; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i17 = i18; i16 = i6; i11 = i16; i12 = i17; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 16: i7 = i34; i10 = i36; i18 = i39; if (i35 == 0) { bArr2 = bArr; int zzb3 = zzeh.zzb(bArr2, i6, zzeiVar2); unsafe2.putLong(t, j, zzez.zzd(zzeiVar2.zzrp)); i12 = i18; zzb = zzb3; i25 = i2; i30 |= i41; i27 = zzb; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i17 = i18; i16 = i6; i11 = i16; i12 = i17; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } case 17: if (i35 == 3) { i7 = i34; i10 = i36; i18 = i39; i27 = zza(zzhjVar.zzbh(i36), bArr, i6, i2, (i34 << 3) | 4, zzeiVar); if ((i30 & i41) == 0) { unsafe2.putObject(t3, j, zzeiVar2.zzrq); } else { unsafe2.putObject(t3, j, zzga.zza(unsafe2.getObject(t3, j), zzeiVar2.zzrq)); } i30 |= i41; bArr2 = bArr; i25 = i2; i12 = i18; i19 = i30; i30 = i19; i28 = i12; i29 = i10; i31 = i7; i26 = i3; break; } else { i7 = i34; i10 = i36; i18 = i39; i17 = i18; i16 = i6; i11 = i16; i12 = i17; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } default: i7 = i34; i10 = i36; i11 = i6; i12 = i39; i9 = i12; i4 = i3; i8 = i11; unsafe = unsafe2; break; } } else { i7 = i34; int i44 = i6; if (i38 != 27) { i20 = i32; if (i38 <= 49) { i22 = i30; i23 = i36; unsafe = unsafe2; i27 = zza((zzhj) t, bArr, i44, i2, i39, i7, i35, i36, i37, i38, j, zzeiVar); if (i27 == i44) { i24 = i27; i9 = i39; i4 = i3; i8 = i24; i10 = i23; i32 = i20; i30 = i22; } else { zzhjVar = this; t3 = t; bArr2 = bArr; i28 = i39; i25 = i2; i26 = i3; zzeiVar2 = zzeiVar; i29 = i23; i31 = i7; i32 = i20; i30 = i22; unsafe2 = unsafe; } } else { i21 = i44; i22 = i30; i23 = i36; unsafe = unsafe2; if (i38 != 50) { i27 = zza((zzhj) t, bArr, i21, i2, i39, i7, i35, i37, i38, j, i23, zzeiVar); if (i27 != i21) { i9 = i39; i4 = i3; i29 = i23; i32 = i20; i30 = i22; zzhjVar = this; t3 = t; bArr2 = bArr; i25 = i2; i26 = i4; i28 = i9; i31 = i7; unsafe2 = unsafe; zzeiVar2 = zzeiVar; } } else if (i35 == 2) { i27 = zza((zzhj) t, bArr, i21, i2, i23, j, zzeiVar); if (i27 != i21) { zzhjVar = this; t3 = t; bArr2 = bArr; i28 = i39; i25 = i2; i26 = i3; zzeiVar2 = zzeiVar; i29 = i23; i31 = i7; i32 = i20; i30 = i22; unsafe2 = unsafe; } } else { i24 = i21; i9 = i39; i4 = i3; i8 = i24; i10 = i23; i32 = i20; i30 = i22; } i24 = i27; i9 = i39; i4 = i3; i8 = i24; i10 = i23; i32 = i20; i30 = i22; } } else if (i35 == 2) { zzge zzgeVar = (zzge) unsafe2.getObject(t3, j); if (!zzgeVar.zzch()) { int size = zzgeVar.size(); zzgeVar = zzgeVar.zzah(size == 0 ? 10 : size << 1); unsafe2.putObject(t3, j, zzgeVar); } i27 = zza((zzhw) zzhjVar.zzbh(i36), i39, bArr, i44, i2, (zzge) zzgeVar, zzeiVar); i9 = i39; i29 = i36; unsafe = unsafe2; i32 = i32; i4 = i3; zzhjVar = this; t3 = t; bArr2 = bArr; i25 = i2; i26 = i4; i28 = i9; i31 = i7; unsafe2 = unsafe; zzeiVar2 = zzeiVar; } else { i20 = i32; i21 = i44; i22 = i30; i23 = i36; unsafe = unsafe2; i24 = i21; i9 = i39; i4 = i3; i8 = i24; i10 = i23; i32 = i20; i30 = i22; } } } if (i9 != i4 || i4 == 0) { i27 = zza(i9, bArr, i8, i2, t, zzeiVar); i29 = i10; zzhjVar = this; t3 = t; bArr2 = bArr; i25 = i2; i26 = i4; i28 = i9; i31 = i7; unsafe2 = unsafe; zzeiVar2 = zzeiVar; } else { i27 = i8; i28 = i9; } } else { unsafe = unsafe2; i4 = i26; } } if (i32 != -1) { t2 = t; unsafe.putInt(t2, i32, i30); } else { t2 = t; } zzip zzipVar = null; for (int i45 = this.zzzn; i45 < this.zzzo; i45++) { zzipVar = (zzip) zza((Object) t2, this.zzzm[i45], (int) zzipVar, (zzio) this.zzzr); } if (zzipVar != null) { this.zzzr.zzf(t2, zzipVar); } if (i4 == 0) { if (i27 != i2) { throw zzgf.zzfo(); } } else if (i27 > i2 || i28 != i4) { throw zzgf.zzfo(); } return i27; } /* 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.vision.zzhw /* 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.vision.zzei r32) throws java.io.IOException { /* Method dump skipped, instructions count: 658 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.vision.zzhj.zza(java.lang.Object, byte[], int, int, com.google.android.gms.internal.vision.zzei):void"); } @Override // com.google.android.gms.internal.vision.zzhw public final void zze(T t) { int i; int i2 = this.zzzn; while (true) { i = this.zzzo; if (i2 >= i) { break; } long zzbk = zzbk(this.zzzm[i2]) & 1048575; Object zzp = zziu.zzp(t, zzbk); if (zzp != null) { zziu.zza(t, zzbk, this.zzzt.zzm(zzp)); } i2++; } int length = this.zzzm.length; while (i < length) { this.zzzq.zzb(t, this.zzzm[i]); i++; } this.zzzr.zze(t); if (this.zzzi) { this.zzzs.zze(t); } } private final UB zza(Object obj, int i, UB ub, zzio zzioVar) { zzgd zzbj; int i2 = this.zzzd[i]; Object zzp = zziu.zzp(obj, zzbk(i) & 1048575); return (zzp == null || (zzbj = zzbj(i)) == null) ? ub : (UB) zza(i, i2, this.zzzt.zzj(zzp), zzbj, (zzgd) ub, (zzio) zzioVar); } private final UB zza(int i, int i2, Map map, zzgd zzgdVar, UB ub, zzio zzioVar) { zzgy zzo = this.zzzt.zzo(zzbi(i)); Iterator> it = map.entrySet().iterator(); while (it.hasNext()) { Map.Entry next = it.next(); if (!zzgdVar.zzh(((Integer) next.getValue()).intValue())) { if (ub == null) { ub = zzioVar.zzhd(); } zzev zzaj = zzeo.zzaj(zzgx.zza(zzo, next.getKey(), next.getValue())); try { zzgx.zza(zzaj.zzdp(), zzo, next.getKey(), next.getValue()); zzioVar.zza((zzio) ub, i2, zzaj.zzdo()); 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.vision.zzhw] */ /* 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.vision.zzhw] */ /* JADX WARN: Type inference failed for: r5v22 */ /* JADX WARN: Type inference failed for: r5v23 */ @Override // com.google.android.gms.internal.vision.zzhw public final boolean zzr(T t) { int i; int i2 = -1; int i3 = 0; for (int i4 = 0; i4 < this.zzzn; i4++) { int i5 = this.zzzm[i4]; int i6 = this.zzzd[i5]; int zzbk = zzbk(i5); if (this.zzzk) { i = 0; } else { int i7 = this.zzzd[i5 + 2]; int i8 = i7 & 1048575; i = 1 << (i7 >>> 20); if (i8 != i2) { i3 = zzzc.getInt(t, i8); i2 = i8; } } if ((268435456 & zzbk) != 0 && !zza((zzhj) t, i5, i3, i)) { return false; } int i9 = (267386880 & zzbk) >>> 20; if (i9 == 9 || i9 == 17) { if (zza((zzhj) t, i5, i3, i) && !zza(t, zzbk, zzbh(i5))) { return false; } } else { if (i9 != 27) { if (i9 == 60 || i9 == 68) { if (zza((zzhj) t, i6, i5) && !zza(t, zzbk, zzbh(i5))) { return false; } } else if (i9 != 49) { if (i9 != 50) { continue; } else { Map zzk = this.zzzt.zzk(zziu.zzp(t, zzbk & 1048575)); if (zzk.isEmpty()) { continue; } else if (this.zzzt.zzo(zzbi(i5)).zzyx.zzho() == zzji.MESSAGE) { ?? r5 = 0; for (Object obj : zzk.values()) { r5 = r5; if (r5 == 0) { r5 = zzhs.zzgl().zzf(obj.getClass()); } if (!r5.zzr(obj)) { return false; } } } else { continue; } } } } List list = (List) zziu.zzp(t, zzbk & 1048575); if (list.isEmpty()) { continue; } else { ?? zzbh = zzbh(i5); for (int i10 = 0; i10 < list.size(); i10++) { if (!zzbh.zzr(list.get(i10))) { return false; } } } } } return !this.zzzi || this.zzzs.zzc(t).isInitialized(); } /* JADX WARN: Multi-variable type inference failed */ private static boolean zza(Object obj, int i, zzhw zzhwVar) { return zzhwVar.zzr(zziu.zzp(obj, i & 1048575)); } private static void zza(int i, Object obj, zzjj zzjjVar) throws IOException { if (obj instanceof String) { zzjjVar.zza(i, (String) obj); } else { zzjjVar.zza(i, (zzeo) obj); } } private final void zza(Object obj, int i, zzhv zzhvVar) throws IOException { if (zzbm(i)) { zziu.zza(obj, i & 1048575, zzhvVar.zzcv()); } else if (this.zzzj) { zziu.zza(obj, i & 1048575, zzhvVar.readString()); } else { zziu.zza(obj, i & 1048575, zzhvVar.zzcw()); } } private final int zzbk(int i) { return this.zzzd[i + 1]; } private final int zzbl(int i) { return this.zzzd[i + 2]; } private static double zzf(T t, long j) { return ((Double) zziu.zzp(t, j)).doubleValue(); } private static float zzg(T t, long j) { return ((Float) zziu.zzp(t, j)).floatValue(); } private static int zzh(T t, long j) { return ((Integer) zziu.zzp(t, j)).intValue(); } private static long zzi(T t, long j) { return ((Long) zziu.zzp(t, j)).longValue(); } private static boolean zzj(T t, long j) { return ((Boolean) zziu.zzp(t, j)).booleanValue(); } private final boolean zzc(T t, T t2, int i) { return zza((zzhj) t, i) == zza((zzhj) t2, i); } private final boolean zza(T t, int i, int i2, int i3) { if (this.zzzk) { return zza((zzhj) t, i); } return (i2 & i3) != 0; } private final boolean zza(T t, int i) { if (this.zzzk) { int zzbk = zzbk(i); long j = zzbk & 1048575; switch ((zzbk & 267386880) >>> 20) { case 0: return zziu.zzo(t, j) != 0.0d; case 1: return zziu.zzn(t, j) != BitmapDescriptorFactory.HUE_RED; case 2: return zziu.zzl(t, j) != 0; case 3: return zziu.zzl(t, j) != 0; case 4: return zziu.zzk(t, j) != 0; case 5: return zziu.zzl(t, j) != 0; case 6: return zziu.zzk(t, j) != 0; case 7: return zziu.zzm(t, j); case 8: Object zzp = zziu.zzp(t, j); if (zzp instanceof String) { return !((String) zzp).isEmpty(); } if (zzp instanceof zzeo) { return !zzeo.zzrx.equals(zzp); } throw new IllegalArgumentException(); case 9: return zziu.zzp(t, j) != null; case 10: return !zzeo.zzrx.equals(zziu.zzp(t, j)); case 11: return zziu.zzk(t, j) != 0; case 12: return zziu.zzk(t, j) != 0; case 13: return zziu.zzk(t, j) != 0; case 14: return zziu.zzl(t, j) != 0; case 15: return zziu.zzk(t, j) != 0; case 16: return zziu.zzl(t, j) != 0; case 17: return zziu.zzp(t, j) != null; default: throw new IllegalArgumentException(); } } int zzbl = zzbl(i); return (zziu.zzk(t, (long) (zzbl & 1048575)) & (1 << (zzbl >>> 20))) != 0; } private final void zzb(T t, int i) { if (this.zzzk) { return; } int zzbl = zzbl(i); long j = 1048575 & zzbl; zziu.zzb(t, j, (1 << (zzbl >>> 20)) | zziu.zzk(t, j)); } private final boolean zza(T t, int i, int i2) { return zziu.zzk(t, (long) (zzbl(i2) & 1048575)) == i; } private final void zzb(T t, int i, int i2) { zziu.zzb(t, zzbl(i2) & 1048575, i); } private final int zzbn(int i) { if (i < this.zzzf || i > this.zzzg) { return -1; } return zzs(i, 0); } private final int zzr(int i, int i2) { if (i < this.zzzf || i > this.zzzg) { return -1; } return zzs(i, i2); } private final int zzs(int i, int i2) { int length = (this.zzzd.length / 3) - 1; while (i2 <= length) { int i3 = (length + i2) >>> 1; int i4 = i3 * 3; int i5 = this.zzzd[i4]; if (i == i5) { return i4; } if (i < i5) { length = i3 - 1; } else { i2 = i3 + 1; } } return -1; } }