package o; import com.google.protobuf.CodedOutputStream; import com.google.protobuf.InvalidProtocolBufferException; 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 o.MTP; import o.Nvr; import o.QwV; import o.Rkw; import o.rqb; import o.sjx; import o.xdS; import org.bouncycastle.asn1.cmp.PKIFailureInfo; import sun.misc.Unsafe; /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.bqJ, reason: case insensitive filesystem */ /* loaded from: classes2.dex */ public final class C5290bqJ implements Wnq { final InterfaceC15927jgv b; final InterfaceC16581pUl c; private final int[] d; private final int[] f; private final SSy g; private final int h; private final ZQK i; private final boolean j; private final boolean k; private final int l; private final IIk m; private final int n; /* renamed from: o, reason: collision with root package name */ private final Object[] f8582o; private final boolean p; private final boolean r; private final int s; private final Hjq t; private static final int[] e = new int[0]; private static final Unsafe a = vqr.c(); private static long e(int i) { return i & 1048575; } private C5290bqJ(int[] iArr, Object[] objArr, int i, int i2, InterfaceC16581pUl interfaceC16581pUl, boolean z, boolean z2, int[] iArr2, int i3, int i4, InterfaceC15927jgv interfaceC15927jgv, ZQK zqk, Hjq hjq, SSy sSy, IIk iIk) { this.d = iArr; this.f8582o = objArr; this.l = i; this.n = i2; this.k = interfaceC16581pUl instanceof KUw; this.r = z; this.j = sSy != null && sSy.c(interfaceC16581pUl); this.p = false; this.f = iArr2; this.h = i3; this.s = i4; this.b = interfaceC15927jgv; this.i = zqk; this.t = hjq; this.g = sSy; this.c = interfaceC16581pUl; this.m = iIk; } /* JADX INFO: Access modifiers changed from: package-private */ /* JADX WARN: Code restructure failed: missing block: B:130:0x02f9, code lost: if (r11 == false) goto L154; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static o.C5290bqJ d(o.InterfaceC16924sSR r33, o.InterfaceC15927jgv r34, o.ZQK r35, o.Hjq r36, o.SSy r37, o.IIk r38) { /* Method dump skipped, instructions count: 1023 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C5290bqJ.d(o.sSR, o.jgv, o.ZQK, o.Hjq, o.SSy, o.IIk):o.bqJ"); } private static Field b(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; } } StringBuilder sb = new StringBuilder("Field "); sb.append(str); sb.append(" for "); sb.append(cls.getName()); sb.append(" not found. Known fields are "); sb.append(Arrays.toString(declaredFields)); throw new RuntimeException(sb.toString()); } } @Override // o.Wnq public final T e() { return (T) this.b.d(this.c); } /* JADX WARN: Failed to find 'out' block for switch in B:4:0x0018. Please report as an issue. */ /* JADX WARN: Removed duplicated region for block: B:17:0x020d A[SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:18:0x020e A[SYNTHETIC] */ @Override // o.Wnq /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final boolean c(T r10, T r11) { /* Method dump skipped, instructions count: 714 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C5290bqJ.c(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 // o.Wnq public final int b(T t) { int i; int b; int length = this.d.length; int i2 = 0; for (int i3 = 0; i3 < length; i3 += 3) { int[] iArr = this.d; int i4 = iArr[i3 + 1]; int i5 = iArr[i3]; long j = 1048575 & i4; switch ((i4 & 267386880) >>> 20) { case 0: i = i2 * 53; b = MTP.b(Double.doubleToLongBits(vqr.h(t, j))); i2 = i + b; break; case 1: i = i2 * 53; b = Float.floatToIntBits(vqr.f(t, j)); i2 = i + b; break; case 2: i = i2 * 53; b = MTP.b(vqr.i(t, j)); i2 = i + b; break; case 3: i = i2 * 53; b = MTP.b(vqr.i(t, j)); i2 = i + b; break; case 4: i = i2 * 53; b = vqr.g(t, j); i2 = i + b; break; case 5: i = i2 * 53; b = MTP.b(vqr.i(t, j)); i2 = i + b; break; case 6: i = i2 * 53; b = vqr.g(t, j); i2 = i + b; break; case 7: i = i2 * 53; b = MTP.c(vqr.c(t, j)); i2 = i + b; break; case 8: i = i2 * 53; b = ((String) vqr.j(t, j)).hashCode(); i2 = i + b; break; case 9: Object j2 = vqr.j(t, j); if (j2 != null) { b = j2.hashCode(); i = i2 * 53; i2 = i + b; break; } b = 37; i = i2 * 53; i2 = i + b; case 10: i = i2 * 53; b = vqr.j(t, j).hashCode(); i2 = i + b; break; case 11: i = i2 * 53; b = vqr.g(t, j); i2 = i + b; break; case 12: i = i2 * 53; b = vqr.g(t, j); i2 = i + b; break; case 13: i = i2 * 53; b = vqr.g(t, j); i2 = i + b; break; case 14: i = i2 * 53; b = MTP.b(vqr.i(t, j)); i2 = i + b; break; case 15: i = i2 * 53; b = vqr.g(t, j); i2 = i + b; break; case 16: i = i2 * 53; b = MTP.b(vqr.i(t, j)); i2 = i + b; break; case 17: Object j3 = vqr.j(t, j); if (j3 != null) { b = j3.hashCode(); i = i2 * 53; i2 = i + b; break; } b = 37; i = i2 * 53; i2 = i + b; 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; b = vqr.j(t, j).hashCode(); i2 = i + b; break; case 50: i = i2 * 53; b = vqr.j(t, j).hashCode(); i2 = i + b; break; case 51: if (b(t, i5, i3)) { i = i2 * 53; b = MTP.b(Double.doubleToLongBits(((Double) vqr.j(t, j)).doubleValue())); i2 = i + b; break; } else { break; } case 52: if (b(t, i5, i3)) { i = i2 * 53; b = Float.floatToIntBits(((Float) vqr.j(t, j)).floatValue()); i2 = i + b; break; } else { break; } case 53: if (b(t, i5, i3)) { i = i2 * 53; b = MTP.b(((Long) vqr.j(t, j)).longValue()); i2 = i + b; break; } else { break; } case 54: if (b(t, i5, i3)) { i = i2 * 53; b = MTP.b(((Long) vqr.j(t, j)).longValue()); i2 = i + b; break; } else { break; } case 55: if (b(t, i5, i3)) { i = i2 * 53; b = ((Integer) vqr.j(t, j)).intValue(); i2 = i + b; break; } else { break; } case 56: if (b(t, i5, i3)) { i = i2 * 53; b = MTP.b(((Long) vqr.j(t, j)).longValue()); i2 = i + b; break; } else { break; } case 57: if (b(t, i5, i3)) { i = i2 * 53; b = ((Integer) vqr.j(t, j)).intValue(); i2 = i + b; break; } else { break; } case 58: if (b(t, i5, i3)) { i = i2 * 53; b = MTP.c(((Boolean) vqr.j(t, j)).booleanValue()); i2 = i + b; break; } else { break; } case 59: if (b(t, i5, i3)) { i = i2 * 53; b = ((String) vqr.j(t, j)).hashCode(); i2 = i + b; break; } else { break; } case 60: if (b(t, i5, i3)) { i = i2 * 53; b = vqr.j(t, j).hashCode(); i2 = i + b; break; } else { break; } case 61: if (b(t, i5, i3)) { i = i2 * 53; b = vqr.j(t, j).hashCode(); i2 = i + b; break; } else { break; } case 62: if (b(t, i5, i3)) { i = i2 * 53; b = ((Integer) vqr.j(t, j)).intValue(); i2 = i + b; break; } else { break; } case 63: if (b(t, i5, i3)) { i = i2 * 53; b = ((Integer) vqr.j(t, j)).intValue(); i2 = i + b; break; } else { break; } case 64: if (b(t, i5, i3)) { i = i2 * 53; b = ((Integer) vqr.j(t, j)).intValue(); i2 = i + b; break; } else { break; } case 65: if (b(t, i5, i3)) { i = i2 * 53; b = MTP.b(((Long) vqr.j(t, j)).longValue()); i2 = i + b; break; } else { break; } case 66: if (b(t, i5, i3)) { i = i2 * 53; b = ((Integer) vqr.j(t, j)).intValue(); i2 = i + b; break; } else { break; } case 67: if (b(t, i5, i3)) { i = i2 * 53; b = MTP.b(((Long) vqr.j(t, j)).longValue()); i2 = i + b; break; } else { break; } case 68: if (b(t, i5, i3)) { i = i2 * 53; b = vqr.j(t, j).hashCode(); i2 = i + b; break; } else { break; } } } int hashCode = (i2 * 53) + this.t.d(t).hashCode(); return this.j ? (hashCode * 53) + this.g.a(t).hashCode() : hashCode; } @Override // o.Wnq public final void a(T t, T t2) { int i = 0; while (true) { int[] iArr = this.d; if (i >= iArr.length) { jDR.a(this.t, t, t2); if (this.j) { jDR.c(this.g, t, t2); return; } return; } int i2 = iArr[i + 1]; long j = i2 & 1048575; int i3 = iArr[i]; switch ((i2 & 267386880) >>> 20) { case 0: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.e(t, j, vqr.h(t2, j)); d(t, i); break; } case 1: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.e((Object) t, j, vqr.f(t2, j)); d(t, i); break; } case 2: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.d(t, j, vqr.i(t2, j)); d(t, i); break; } case 3: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.d(t, j, vqr.i(t2, j)); d(t, i); break; } case 4: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.c(t, j, vqr.g(t2, j)); d(t, i); break; } case 5: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.d(t, j, vqr.i(t2, j)); d(t, i); break; } case 6: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.c(t, j, vqr.g(t2, j)); d(t, i); break; } case 7: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.d(t, j, vqr.c(t2, j)); d(t, i); break; } case 8: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.e(t, j, vqr.j(t2, j)); d(t, i); break; } case 9: d(t, t2, i); break; case 10: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.e(t, j, vqr.j(t2, j)); d(t, i); break; } case 11: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.c(t, j, vqr.g(t2, j)); d(t, i); break; } case 12: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.c(t, j, vqr.g(t2, j)); d(t, i); break; } case 13: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.c(t, j, vqr.g(t2, j)); d(t, i); break; } case 14: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.d(t, j, vqr.i(t2, j)); d(t, i); break; } case 15: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.c(t, j, vqr.g(t2, j)); d(t, i); break; } case 16: if (!a((C5290bqJ) t2, i)) { break; } else { vqr.d(t, j, vqr.i(t2, j)); d(t, i); break; } case 17: d(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.i.e(t, t2, j); break; case 50: jDR.d(this.m, t, t2, j); break; case 51: case 52: case 53: case 54: case 55: case 56: case 57: case 58: case 59: if (!b(t2, i3, i)) { break; } else { vqr.e(t, j, vqr.j(t2, j)); vqr.c(t, this.d[i + 2] & 1048575, i3); break; } case 60: a(t, t2, i); break; case 61: case 62: case 63: case 64: case 65: case 66: case 67: if (!b(t2, i3, i)) { break; } else { vqr.e(t, j, vqr.j(t2, j)); vqr.c(t, this.d[i + 2] & 1048575, i3); break; } case 68: a(t, t2, i); break; } i += 3; } } private void d(T t, T t2, int i) { long j = this.d[i + 1] & 1048575; if (a((C5290bqJ) t2, i)) { Object j2 = vqr.j(t, j); Object j3 = vqr.j(t2, j); if (j2 != null && j3 != null) { vqr.e(t, j, MTP.a(j2, j3)); d(t, i); } else if (j3 != null) { vqr.e(t, j, j3); d(t, i); } } } private void a(T t, T t2, int i) { int[] iArr = this.d; int i2 = iArr[i + 1]; int i3 = iArr[i]; long j = i2 & 1048575; if (b(t2, i3, i)) { Object j2 = b(t, i3, i) ? vqr.j(t, j) : null; Object j3 = vqr.j(t2, j); if (j2 != null && j3 != null) { vqr.e(t, j, MTP.a(j2, j3)); vqr.c(t, this.d[i + 2] & 1048575, i3); } else if (j3 != null) { vqr.e(t, j, j3); vqr.c(t, this.d[i + 2] & 1048575, i3); } } } /* JADX WARN: Failed to find 'out' block for switch in B:11:0x0038. Please report as an issue. */ /* JADX WARN: Failed to find 'out' block for switch in B:298:0x058a. Please report as an issue. */ @Override // o.Wnq public final int a(T t) { Iterable entrySet; int i; int i2; int b; int b2; int o2; int k; int b3; int b4; int o3; int k2; int i3 = 1048575; if (this.r) { Unsafe unsafe = a; int i4 = 0; int i5 = 0; while (true) { int[] iArr = this.d; if (i4 >= iArr.length) { Hjq hjq = this.t; return i5 + hjq.b(hjq.d(t)); } int i6 = iArr[i4 + 1]; int i7 = (i6 & 267386880) >>> 20; int i8 = iArr[i4]; long j = i6 & 1048575; int i9 = (i7 < CuI.DOUBLE_LIST_PACKED.id || i7 > CuI.SINT64_LIST_PACKED.id) ? 0 : this.d[i4 + 2] & 1048575; switch (i7) { case 0: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.b(i8); i5 += b3; break; } else { break; } case 1: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.i(i8); i5 += b3; break; } else { break; } case 2: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.a(i8, vqr.i(t, j)); i5 += b3; break; } else { break; } case 3: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.c(i8, vqr.i(t, j)); i5 += b3; break; } else { break; } case 4: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.e(i8, vqr.g(t, j)); i5 += b3; break; } else { break; } case 5: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.d(i8); i5 += b3; break; } else { break; } case 6: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.e(i8); i5 += b3; break; } else { break; } case 7: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.a(i8); i5 += b3; break; } else { break; } case 8: if (a((C5290bqJ) t, i4)) { Object j2 = vqr.j(t, j); if (j2 instanceof QwV) { b3 = CodedOutputStream.e(i8, (QwV) j2); } else { b3 = CodedOutputStream.b(i8, (String) j2); } i5 += b3; break; } else { break; } case 9: if (a((C5290bqJ) t, i4)) { b3 = jDR.a(i8, vqr.j(t, j), b(i4)); i5 += b3; break; } else { break; } case 10: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.e(i8, (QwV) vqr.j(t, j)); i5 += b3; break; } else { break; } case 11: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.b(i8, vqr.g(t, j)); i5 += b3; break; } else { break; } case 12: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.a(i8, vqr.g(t, j)); i5 += b3; break; } else { break; } case 13: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.n(i8); i5 += b3; break; } else { break; } case 14: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.l(i8); i5 += b3; break; } else { break; } case 15: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.d(i8, vqr.g(t, j)); i5 += b3; break; } else { break; } case 16: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.d(i8, vqr.i(t, j)); i5 += b3; break; } else { break; } case 17: if (a((C5290bqJ) t, i4)) { b3 = CodedOutputStream.d(i8, (InterfaceC16581pUl) vqr.j(t, j), b(i4)); i5 += b3; break; } else { break; } case 18: b3 = jDR.b(i8, (List) vqr.j(t, j)); i5 += b3; break; case 19: b3 = jDR.e(i8, (List) vqr.j(t, j)); i5 += b3; break; case 20: b3 = jDR.h(i8, (List) vqr.j(t, j)); i5 += b3; break; case 21: b3 = jDR.m(i8, (List) vqr.j(t, j)); i5 += b3; break; case 22: b3 = jDR.i(i8, (List) vqr.j(t, j)); i5 += b3; break; case 23: b3 = jDR.b(i8, (List) vqr.j(t, j)); i5 += b3; break; case 24: b3 = jDR.e(i8, (List) vqr.j(t, j)); i5 += b3; break; case 25: b3 = jDR.d(i8, (List) vqr.j(t, j)); i5 += b3; break; case 26: b3 = jDR.f(i8, (List) vqr.j(t, j)); i5 += b3; break; case 27: b3 = jDR.d(i8, (List) vqr.j(t, j), b(i4)); i5 += b3; break; case 28: b3 = jDR.c(i8, (List) vqr.j(t, j)); i5 += b3; break; case 29: b3 = jDR.k(i8, (List) vqr.j(t, j)); i5 += b3; break; case 30: b3 = jDR.a(i8, (List) vqr.j(t, j)); i5 += b3; break; case 31: b3 = jDR.e(i8, (List) vqr.j(t, j)); i5 += b3; break; case 32: b3 = jDR.b(i8, (List) vqr.j(t, j)); i5 += b3; break; case 33: b3 = jDR.g(i8, (List) vqr.j(t, j)); i5 += b3; break; case 34: b3 = jDR.j(i8, (List) vqr.j(t, j)); i5 += b3; break; case 35: b4 = jDR.b((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 36: b4 = jDR.a((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 37: b4 = jDR.j((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 38: b4 = jDR.g((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 39: b4 = jDR.e((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 40: b4 = jDR.b((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 41: b4 = jDR.a((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 42: b4 = jDR.c((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 43: b4 = jDR.f((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 44: b4 = jDR.d((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 45: b4 = jDR.a((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 46: b4 = jDR.b((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 47: b4 = jDR.i((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 48: b4 = jDR.h((List) unsafe.getObject(t, j)); if (b4 <= 0) { break; } else { if (this.p) { unsafe.putInt(t, i9, b4); } o3 = CodedOutputStream.o(i8); k2 = CodedOutputStream.k(b4); b3 = o3 + k2 + b4; i5 += b3; break; } case 49: b3 = jDR.a(i8, (List) vqr.j(t, j), b(i4)); i5 += b3; break; case 50: b3 = this.m.d(i8, vqr.j(t, j), this.f8582o[(i4 / 3) << 1]); i5 += b3; break; case 51: if (b(t, i8, i4)) { b3 = CodedOutputStream.b(i8); i5 += b3; break; } else { break; } case 52: if (b(t, i8, i4)) { b3 = CodedOutputStream.i(i8); i5 += b3; break; } else { break; } case 53: if (b(t, i8, i4)) { b3 = CodedOutputStream.a(i8, ((Long) vqr.j(t, j)).longValue()); i5 += b3; break; } else { break; } case 54: if (b(t, i8, i4)) { b3 = CodedOutputStream.c(i8, ((Long) vqr.j(t, j)).longValue()); i5 += b3; break; } else { break; } case 55: if (b(t, i8, i4)) { b3 = CodedOutputStream.e(i8, ((Integer) vqr.j(t, j)).intValue()); i5 += b3; break; } else { break; } case 56: if (b(t, i8, i4)) { b3 = CodedOutputStream.d(i8); i5 += b3; break; } else { break; } case 57: if (b(t, i8, i4)) { b3 = CodedOutputStream.e(i8); i5 += b3; break; } else { break; } case 58: if (b(t, i8, i4)) { b3 = CodedOutputStream.a(i8); i5 += b3; break; } else { break; } case 59: if (b(t, i8, i4)) { Object j3 = vqr.j(t, j); if (j3 instanceof QwV) { b3 = CodedOutputStream.e(i8, (QwV) j3); } else { b3 = CodedOutputStream.b(i8, (String) j3); } i5 += b3; break; } else { break; } case 60: if (b(t, i8, i4)) { b3 = jDR.a(i8, vqr.j(t, j), b(i4)); i5 += b3; break; } else { break; } case 61: if (b(t, i8, i4)) { b3 = CodedOutputStream.e(i8, (QwV) vqr.j(t, j)); i5 += b3; break; } else { break; } case 62: if (b(t, i8, i4)) { b3 = CodedOutputStream.b(i8, ((Integer) vqr.j(t, j)).intValue()); i5 += b3; break; } else { break; } case 63: if (b(t, i8, i4)) { b3 = CodedOutputStream.a(i8, ((Integer) vqr.j(t, j)).intValue()); i5 += b3; break; } else { break; } case 64: if (b(t, i8, i4)) { b3 = CodedOutputStream.n(i8); i5 += b3; break; } else { break; } case 65: if (b(t, i8, i4)) { b3 = CodedOutputStream.l(i8); i5 += b3; break; } else { break; } case 66: if (b(t, i8, i4)) { b3 = CodedOutputStream.d(i8, ((Integer) vqr.j(t, j)).intValue()); i5 += b3; break; } else { break; } case 67: if (b(t, i8, i4)) { b3 = CodedOutputStream.d(i8, ((Long) vqr.j(t, j)).longValue()); i5 += b3; break; } else { break; } case 68: if (b(t, i8, i4)) { b3 = CodedOutputStream.d(i8, (InterfaceC16581pUl) vqr.j(t, j), b(i4)); i5 += b3; break; } else { break; } } i4 += 3; } } else { Unsafe unsafe2 = a; int i10 = 1048575; int i11 = 0; int i12 = 0; int i13 = 0; while (true) { int[] iArr2 = this.d; if (i11 >= iArr2.length) { Hjq hjq2 = this.t; int b5 = i12 + hjq2.b(hjq2.d(t)); if (!this.j) { return b5; } Rkw a2 = this.g.a(t); int i14 = 0; for (int i15 = 0; i15 < a2.c.e.size(); i15++) { rqb.RVV rvv = a2.c.e.get(i15); i14 += Rkw.a((Rkw.Sts) rvv.getKey(), rvv.getValue()); } rqb rqbVar = a2.c; if (rqbVar.b.isEmpty()) { entrySet = rqb.HBt.c(); } else { entrySet = rqbVar.b.entrySet(); } for (Map.Entry entry : entrySet) { i14 += Rkw.a((Rkw.Sts) entry.getKey(), entry.getValue()); } return b5 + i14; } int i16 = iArr2[i11 + 1]; int i17 = iArr2[i11]; int i18 = (i16 & 267386880) >>> 20; if (i18 <= 17) { i = iArr2[i11 + 2]; int i19 = i & i3; i2 = 1 << (i >>> 20); if (i19 != i10) { i13 = unsafe2.getInt(t, i19); i10 = i19; } } else { i = (!this.p || i18 < CuI.DOUBLE_LIST_PACKED.id || i18 > CuI.SINT64_LIST_PACKED.id) ? 0 : this.d[i11 + 2] & i3; i2 = 0; } long j4 = i16 & i3; switch (i18) { case 0: if ((i13 & i2) != 0) { b = CodedOutputStream.b(i17); i12 += b; break; } else { break; } case 1: if ((i13 & i2) != 0) { b = CodedOutputStream.i(i17); i12 += b; break; } else { break; } case 2: if ((i13 & i2) != 0) { b = CodedOutputStream.a(i17, unsafe2.getLong(t, j4)); i12 += b; break; } else { break; } case 3: if ((i13 & i2) != 0) { b = CodedOutputStream.c(i17, unsafe2.getLong(t, j4)); i12 += b; break; } else { break; } case 4: if ((i13 & i2) != 0) { b = CodedOutputStream.e(i17, unsafe2.getInt(t, j4)); i12 += b; break; } else { break; } case 5: if ((i13 & i2) != 0) { b = CodedOutputStream.d(i17); i12 += b; break; } else { break; } case 6: if ((i13 & i2) != 0) { b = CodedOutputStream.e(i17); i12 += b; break; } else { break; } case 7: if ((i13 & i2) != 0) { b = CodedOutputStream.a(i17); i12 += b; break; } else { break; } case 8: if ((i13 & i2) != 0) { Object object = unsafe2.getObject(t, j4); if (object instanceof QwV) { b = CodedOutputStream.e(i17, (QwV) object); } else { b = CodedOutputStream.b(i17, (String) object); } i12 += b; break; } else { break; } case 9: if ((i13 & i2) != 0) { b = jDR.a(i17, unsafe2.getObject(t, j4), b(i11)); i12 += b; break; } else { break; } case 10: if ((i13 & i2) != 0) { b = CodedOutputStream.e(i17, (QwV) unsafe2.getObject(t, j4)); i12 += b; break; } else { break; } case 11: if ((i13 & i2) != 0) { b = CodedOutputStream.b(i17, unsafe2.getInt(t, j4)); i12 += b; break; } else { break; } case 12: if ((i13 & i2) != 0) { b = CodedOutputStream.a(i17, unsafe2.getInt(t, j4)); i12 += b; break; } else { break; } case 13: if ((i13 & i2) != 0) { b = CodedOutputStream.n(i17); i12 += b; break; } else { break; } case 14: if ((i13 & i2) != 0) { b = CodedOutputStream.l(i17); i12 += b; break; } else { break; } case 15: if ((i13 & i2) != 0) { b = CodedOutputStream.d(i17, unsafe2.getInt(t, j4)); i12 += b; break; } else { break; } case 16: if ((i13 & i2) != 0) { b = CodedOutputStream.d(i17, unsafe2.getLong(t, j4)); i12 += b; break; } else { break; } case 17: if ((i13 & i2) != 0) { b = CodedOutputStream.d(i17, (InterfaceC16581pUl) unsafe2.getObject(t, j4), b(i11)); i12 += b; break; } else { break; } case 18: b = jDR.b(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 19: b = jDR.e(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 20: b = jDR.h(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 21: b = jDR.m(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 22: b = jDR.i(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 23: b = jDR.b(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 24: b = jDR.e(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 25: b = jDR.d(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 26: b = jDR.f(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 27: b = jDR.d(i17, (List) unsafe2.getObject(t, j4), b(i11)); i12 += b; break; case 28: b = jDR.c(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 29: b = jDR.k(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 30: b = jDR.a(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 31: b = jDR.e(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 32: b = jDR.b(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 33: b = jDR.g(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 34: b = jDR.j(i17, (List) unsafe2.getObject(t, j4)); i12 += b; break; case 35: b2 = jDR.b((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 36: b2 = jDR.a((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 37: b2 = jDR.j((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 38: b2 = jDR.g((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 39: b2 = jDR.e((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 40: b2 = jDR.b((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 41: b2 = jDR.a((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 42: b2 = jDR.c((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 43: b2 = jDR.f((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 44: b2 = jDR.d((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 45: b2 = jDR.a((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 46: b2 = jDR.b((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 47: b2 = jDR.i((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 48: b2 = jDR.h((List) unsafe2.getObject(t, j4)); if (b2 <= 0) { break; } else { if (this.p) { unsafe2.putInt(t, i, b2); } o2 = CodedOutputStream.o(i17); k = CodedOutputStream.k(b2); b = b2 + o2 + k; i12 += b; break; } case 49: b = jDR.a(i17, (List) unsafe2.getObject(t, j4), b(i11)); i12 += b; break; case 50: b = this.m.d(i17, unsafe2.getObject(t, j4), this.f8582o[(i11 / 3) << 1]); i12 += b; break; case 51: if (b(t, i17, i11)) { b = CodedOutputStream.b(i17); i12 += b; break; } else { break; } case 52: if (b(t, i17, i11)) { b = CodedOutputStream.i(i17); i12 += b; break; } else { break; } case 53: if (b(t, i17, i11)) { b = CodedOutputStream.a(i17, ((Long) vqr.j(t, j4)).longValue()); i12 += b; break; } else { break; } case 54: if (b(t, i17, i11)) { b = CodedOutputStream.c(i17, ((Long) vqr.j(t, j4)).longValue()); i12 += b; break; } else { break; } case 55: if (b(t, i17, i11)) { b = CodedOutputStream.e(i17, ((Integer) vqr.j(t, j4)).intValue()); i12 += b; break; } else { break; } case 56: if (b(t, i17, i11)) { b = CodedOutputStream.d(i17); i12 += b; break; } else { break; } case 57: if (b(t, i17, i11)) { b = CodedOutputStream.e(i17); i12 += b; break; } else { break; } case 58: if (b(t, i17, i11)) { b = CodedOutputStream.a(i17); i12 += b; break; } else { break; } case 59: if (b(t, i17, i11)) { Object object2 = unsafe2.getObject(t, j4); if (object2 instanceof QwV) { b = CodedOutputStream.e(i17, (QwV) object2); } else { b = CodedOutputStream.b(i17, (String) object2); } i12 += b; break; } else { break; } case 60: if (b(t, i17, i11)) { b = jDR.a(i17, unsafe2.getObject(t, j4), b(i11)); i12 += b; break; } else { break; } case 61: if (b(t, i17, i11)) { b = CodedOutputStream.e(i17, (QwV) unsafe2.getObject(t, j4)); i12 += b; break; } else { break; } case 62: if (b(t, i17, i11)) { b = CodedOutputStream.b(i17, ((Integer) vqr.j(t, j4)).intValue()); i12 += b; break; } else { break; } case 63: if (b(t, i17, i11)) { b = CodedOutputStream.a(i17, ((Integer) vqr.j(t, j4)).intValue()); i12 += b; break; } else { break; } case 64: if (b(t, i17, i11)) { b = CodedOutputStream.n(i17); i12 += b; break; } else { break; } case 65: if (b(t, i17, i11)) { b = CodedOutputStream.l(i17); i12 += b; break; } else { break; } case 66: if (b(t, i17, i11)) { b = CodedOutputStream.d(i17, ((Integer) vqr.j(t, j4)).intValue()); i12 += b; break; } else { break; } case 67: if (b(t, i17, i11)) { b = CodedOutputStream.d(i17, ((Long) vqr.j(t, j4)).longValue()); i12 += b; break; } else { break; } case 68: if (b(t, i17, i11)) { b = CodedOutputStream.d(i17, (InterfaceC16581pUl) unsafe2.getObject(t, j4), b(i11)); i12 += b; break; } else { break; } } i11 += 3; i3 = 1048575; } } } /* JADX WARN: Removed duplicated region for block: B:16:0x006b */ /* JADX WARN: Removed duplicated region for block: B:291:0x05b1 */ /* JADX WARN: Removed duplicated region for block: B:317:0x05f0 */ /* JADX WARN: Removed duplicated region for block: B:592:0x0b3a */ @Override // o.Wnq /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final void a(T r13, o.InterfaceC16095lEl r14) throws java.io.IOException { /* Method dump skipped, instructions count: 3192 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C5290bqJ.a(java.lang.Object, o.lEl):void"); } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARN: Failed to find 'out' block for switch in B:29:0x007f. Please report as an issue. */ /* JADX WARN: Removed duplicated region for block: B:223:0x0500 */ /* JADX WARN: Removed duplicated region for block: B:8:0x0031 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private void b(T r18, o.InterfaceC16095lEl r19) throws java.io.IOException { /* Method dump skipped, instructions count: 1454 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C5290bqJ.b(java.lang.Object, o.lEl):void"); } private void d(InterfaceC16095lEl interfaceC16095lEl, int i, Object obj, int i2) throws IOException { if (obj != null) { interfaceC16095lEl.c(i, this.m.a(this.f8582o[(i2 / 3) << 1]), this.m.d(obj)); } } /* JADX WARN: Failed to find 'out' block for switch in B:12:0x0083. Please report as an issue. */ @Override // o.Wnq public final void c(T t, lfg lfgVar, ZjA zjA) throws IOException { Hjq hjq = this.t; SSy sSy = this.g; Object obj = null; Rkw rkw = null; while (true) { try { int e2 = lfgVar.e(); int a2 = (e2 < this.l || e2 > this.n) ? -1 : a(e2, 0); if (a2 >= 0) { int i = this.d[a2 + 1]; switch ((267386880 & i) >>> 20) { case 0: vqr.e(t, i & 1048575, lfgVar.c()); d(t, a2); break; case 1: vqr.e((Object) t, i & 1048575, lfgVar.i()); d(t, a2); break; case 2: vqr.d(t, i & 1048575, lfgVar.o()); d(t, a2); break; case 3: vqr.d(t, i & 1048575, lfgVar.q()); d(t, a2); break; case 4: vqr.c(t, i & 1048575, lfgVar.g()); d(t, a2); break; case 5: vqr.d(t, i & 1048575, lfgVar.h()); d(t, a2); break; case 6: vqr.c(t, i & 1048575, lfgVar.f()); d(t, a2); break; case 7: vqr.d(t, i & 1048575, lfgVar.a()); d(t, a2); break; case 8: d(t, i, lfgVar); d(t, a2); break; case 9: if (a((C5290bqJ) t, a2)) { long j = i & 1048575; vqr.e(t, j, MTP.a(vqr.j(t, j), lfgVar.b(b(a2), zjA))); break; } else { vqr.e(t, i & 1048575, lfgVar.b(b(a2), zjA)); d(t, a2); break; } case 10: vqr.e(t, i & 1048575, lfgVar.b()); d(t, a2); break; case 11: vqr.c(t, i & 1048575, lfgVar.t()); d(t, a2); break; case 12: int j2 = lfgVar.j(); MTP.LWm lWm = (MTP.LWm) this.f8582o[((a2 / 3) << 1) + 1]; if (lWm != null && !lWm.b()) { obj = jDR.d(e2, j2, obj, (Hjq) hjq); break; } vqr.c(t, i & 1048575, j2); d(t, a2); break; case 13: vqr.c(t, i & 1048575, lfgVar.n()); d(t, a2); break; case 14: vqr.d(t, i & 1048575, lfgVar.l()); d(t, a2); break; case 15: vqr.c(t, i & 1048575, lfgVar.m()); d(t, a2); break; case 16: vqr.d(t, i & 1048575, lfgVar.k()); d(t, a2); break; case 17: if (a((C5290bqJ) t, a2)) { long j3 = i & 1048575; vqr.e(t, j3, MTP.a(vqr.j(t, j3), lfgVar.d(b(a2), zjA))); break; } else { vqr.e(t, i & 1048575, lfgVar.d(b(a2), zjA)); d(t, a2); break; } case 18: lfgVar.a(this.i.b(t, i & 1048575)); break; case 19: lfgVar.f(this.i.b(t, i & 1048575)); break; case 20: lfgVar.j(this.i.b(t, i & 1048575)); break; case 21: lfgVar.r(this.i.b(t, i & 1048575)); break; case 22: lfgVar.g(this.i.b(t, i & 1048575)); break; case 23: lfgVar.i(this.i.b(t, i & 1048575)); break; case 24: lfgVar.d(this.i.b(t, i & 1048575)); break; case 25: lfgVar.e(this.i.b(t, i & 1048575)); break; case 26: if ((536870912 & i) != 0) { lfgVar.o(this.i.b(t, i & 1048575)); break; } else { lfgVar.l(this.i.b(t, i & 1048575)); break; } case 27: lfgVar.a(this.i.b(t, i & 1048575), b(a2), zjA); break; case 28: lfgVar.c(this.i.b(t, i & 1048575)); break; case 29: lfgVar.q(this.i.b(t, i & 1048575)); break; case 30: List b = this.i.b(t, i & 1048575); lfgVar.b(b); obj = jDR.a(e2, b, (MTP.LWm) this.f8582o[((a2 / 3) << 1) + 1], obj, hjq); break; case 31: lfgVar.h(this.i.b(t, i & 1048575)); break; case 32: lfgVar.m(this.i.b(t, i & 1048575)); break; case 33: lfgVar.n(this.i.b(t, i & 1048575)); break; case 34: lfgVar.k(this.i.b(t, i & 1048575)); break; case 35: lfgVar.a(this.i.b(t, i & 1048575)); break; case 36: lfgVar.f(this.i.b(t, i & 1048575)); break; case 37: lfgVar.j(this.i.b(t, i & 1048575)); break; case 38: lfgVar.r(this.i.b(t, i & 1048575)); break; case 39: lfgVar.g(this.i.b(t, i & 1048575)); break; case 40: lfgVar.i(this.i.b(t, i & 1048575)); break; case 41: lfgVar.d(this.i.b(t, i & 1048575)); break; case 42: lfgVar.e(this.i.b(t, i & 1048575)); break; case 43: lfgVar.q(this.i.b(t, i & 1048575)); break; case 44: List b2 = this.i.b(t, i & 1048575); lfgVar.b(b2); obj = jDR.a(e2, b2, (MTP.LWm) this.f8582o[((a2 / 3) << 1) + 1], obj, hjq); break; case 45: lfgVar.h(this.i.b(t, i & 1048575)); break; case 46: lfgVar.m(this.i.b(t, i & 1048575)); break; case 47: lfgVar.n(this.i.b(t, i & 1048575)); break; case 48: lfgVar.k(this.i.b(t, i & 1048575)); break; case 49: lfgVar.b(this.i.b(t, i & 1048575), b(a2), zjA); break; case 50: Object obj2 = this.f8582o[(a2 / 3) << 1]; long j4 = i & 1048575; Object j5 = vqr.j(t, j4); if (j5 == null) { j5 = this.m.b(); vqr.e(t, j4, j5); } else if (this.m.e(j5)) { Object b3 = this.m.b(); this.m.b(b3, j5); vqr.e(t, j4, b3); j5 = b3; } lfgVar.a(this.m.c(j5), this.m.a(obj2), zjA); break; case 51: vqr.e(t, i & 1048575, Double.valueOf(lfgVar.c())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 52: vqr.e(t, i & 1048575, Float.valueOf(lfgVar.i())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 53: vqr.e(t, i & 1048575, Long.valueOf(lfgVar.o())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 54: vqr.e(t, i & 1048575, Long.valueOf(lfgVar.q())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 55: vqr.e(t, i & 1048575, Integer.valueOf(lfgVar.g())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 56: vqr.e(t, i & 1048575, Long.valueOf(lfgVar.h())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 57: vqr.e(t, i & 1048575, Integer.valueOf(lfgVar.f())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 58: vqr.e(t, i & 1048575, Boolean.valueOf(lfgVar.a())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 59: d(t, i, lfgVar); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 60: if (b(t, e2, a2)) { long j6 = i & 1048575; vqr.e(t, j6, MTP.a(vqr.j(t, j6), lfgVar.b(b(a2), zjA))); } else { vqr.e(t, i & 1048575, lfgVar.b(b(a2), zjA)); d(t, a2); } vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 61: vqr.e(t, i & 1048575, lfgVar.b()); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 62: vqr.e(t, i & 1048575, Integer.valueOf(lfgVar.t())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 63: int j7 = lfgVar.j(); MTP.LWm lWm2 = (MTP.LWm) this.f8582o[((a2 / 3) << 1) + 1]; if (lWm2 != null && !lWm2.b()) { obj = jDR.d(e2, j7, obj, (Hjq) hjq); break; } vqr.e(t, i & 1048575, Integer.valueOf(j7)); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 64: vqr.e(t, i & 1048575, Integer.valueOf(lfgVar.n())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 65: vqr.e(t, i & 1048575, Long.valueOf(lfgVar.l())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 66: vqr.e(t, i & 1048575, Integer.valueOf(lfgVar.m())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 67: vqr.e(t, i & 1048575, Long.valueOf(lfgVar.k())); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; case 68: vqr.e(t, i & 1048575, lfgVar.d(b(a2), zjA)); vqr.c(t, this.d[a2 + 2] & 1048575, e2); break; default: if (obj == null) { try { obj = hjq.e(); } catch (InvalidProtocolBufferException.InvalidWireTypeException unused) { if (obj == null) { obj = hjq.e(t); } if (!hjq.a((Hjq) obj, lfgVar)) { for (int i2 = this.h; i2 < this.s; i2++) { obj = d((Object) t, this.f[i2], (int) obj, (Hjq) hjq); } if (obj != null) { hjq.a((Object) t, (T) obj); return; } return; } break; } } if (!hjq.a((Hjq) obj, lfgVar)) { for (int i3 = this.h; i3 < this.s; i3++) { obj = d((Object) t, this.f[i3], (int) obj, (Hjq) hjq); } if (obj != null) { hjq.a((Object) t, (T) obj); return; } return; } break; } } else { if (e2 == Integer.MAX_VALUE) { for (int i4 = this.h; i4 < this.s; i4++) { obj = d((Object) t, this.f[i4], (int) obj, (Hjq) hjq); } if (obj != null) { hjq.a((Object) t, (T) obj); return; } return; } Object c = !this.j ? null : sSy.c(zjA, this.c, e2); if (c != null) { if (rkw == null) { rkw = sSy.d(t); } obj = sSy.b(c); } else { if (obj == null) { obj = hjq.e(t); } if (!hjq.a((Hjq) obj, lfgVar)) { for (int i5 = this.h; i5 < this.s; i5++) { obj = d((Object) t, this.f[i5], (int) obj, (Hjq) hjq); } if (obj != null) { hjq.a((Object) t, (T) obj); return; } return; } } } } catch (Throwable th) { for (int i6 = this.h; i6 < this.s; i6++) { obj = d((Object) t, this.f[i6], (int) obj, (Hjq) hjq); } if (obj != null) { hjq.a((Object) t, (T) obj); } throw th; } } } /* JADX INFO: Access modifiers changed from: package-private */ public static C0526IsC d(Object obj) { KUw kUw = (KUw) obj; C0526IsC c0526IsC = kUw.unknownFields; if (c0526IsC != C0526IsC.d()) { return c0526IsC; } C0526IsC e2 = C0526IsC.e(); kUw.unknownFields = e2; return e2; } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.bqJ$5, reason: invalid class name */ /* loaded from: classes2.dex */ public static /* synthetic */ class AnonymousClass5 { static final int[] a; static { int[] iArr = new int[Nvr.HBt.values().length]; a = iArr; try { iArr[Nvr.HBt.BOOL.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { a[Nvr.HBt.BYTES.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { a[Nvr.HBt.DOUBLE.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { a[Nvr.HBt.FIXED32.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } try { a[Nvr.HBt.SFIXED32.ordinal()] = 5; } catch (NoSuchFieldError unused5) { } try { a[Nvr.HBt.FIXED64.ordinal()] = 6; } catch (NoSuchFieldError unused6) { } try { a[Nvr.HBt.SFIXED64.ordinal()] = 7; } catch (NoSuchFieldError unused7) { } try { a[Nvr.HBt.FLOAT.ordinal()] = 8; } catch (NoSuchFieldError unused8) { } try { a[Nvr.HBt.ENUM.ordinal()] = 9; } catch (NoSuchFieldError unused9) { } try { a[Nvr.HBt.INT32.ordinal()] = 10; } catch (NoSuchFieldError unused10) { } try { a[Nvr.HBt.UINT32.ordinal()] = 11; } catch (NoSuchFieldError unused11) { } try { a[Nvr.HBt.INT64.ordinal()] = 12; } catch (NoSuchFieldError unused12) { } try { a[Nvr.HBt.UINT64.ordinal()] = 13; } catch (NoSuchFieldError unused13) { } try { a[Nvr.HBt.MESSAGE.ordinal()] = 14; } catch (NoSuchFieldError unused14) { } try { a[Nvr.HBt.SINT32.ordinal()] = 15; } catch (NoSuchFieldError unused15) { } try { a[Nvr.HBt.SINT64.ordinal()] = 16; } catch (NoSuchFieldError unused16) { } try { a[Nvr.HBt.STRING.ordinal()] = 17; } catch (NoSuchFieldError unused17) { } } } /* JADX WARN: Failed to find 'out' block for switch in B:2:0x0008. Please report as an issue. */ private static int e(byte[] bArr, int i, int i2, Nvr.HBt hBt, Class cls, sjx.LWm lWm) throws IOException { int b; int b2; switch (AnonymousClass5.a[hBt.ordinal()]) { case 1: int e2 = sjx.e(bArr, i, lWm); lWm.b = Boolean.valueOf(lWm.a != 0); return e2; case 2: return sjx.b(bArr, i, lWm); case 3: lWm.b = Double.valueOf(Double.longBitsToDouble(sjx.c(bArr, i))); return i + 8; case 4: case 5: lWm.b = Integer.valueOf(sjx.d(bArr, i)); return i + 4; case 6: case 7: lWm.b = Long.valueOf(sjx.c(bArr, i)); return i + 8; case 8: lWm.b = Float.valueOf(Float.intBitsToFloat(sjx.d(bArr, i))); return i + 4; case 9: case 10: case 11: int i3 = i + 1; byte b3 = bArr[i]; if (b3 >= 0) { lWm.d = b3; b = i3; } else { b = sjx.b(b3, bArr, i3, lWm); } lWm.b = Integer.valueOf(lWm.d); return b; case 12: case 13: int e3 = sjx.e(bArr, i, lWm); lWm.b = Long.valueOf(lWm.a); return e3; case 14: return sjx.a(MvG.a().b(cls), bArr, i, i2, lWm); case 15: int i4 = i + 1; byte b4 = bArr[i]; if (b4 >= 0) { lWm.d = b4; b2 = i4; } else { b2 = sjx.b(b4, bArr, i4, lWm); } lWm.b = Integer.valueOf(cKE.c(lWm.d)); return b2; case 16: int e4 = sjx.e(bArr, i, lWm); lWm.b = Long.valueOf(cKE.b(lWm.a)); return e4; case 17: return sjx.a(bArr, i, lWm); 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:0x0039. Please report as an issue. */ /* JADX WARN: Multi-variable type inference failed */ private int a(T t, byte[] bArr, int i, int i2, int i3, int i4, int i5, int i6, long j, int i7, long j2, sjx.LWm lWm) throws IOException { int i8; int i9 = i; Unsafe unsafe = a; MTP.RVV rvv = (MTP.RVV) unsafe.getObject(t, j2); if (!rvv.e()) { int size = rvv.size(); rvv = rvv.b(size == 0 ? 10 : size << 1); unsafe.putObject(t, j2, rvv); } switch (i7) { case 18: case 35: if (i5 == 2) { Wqp wqp = (Wqp) rvv; int i10 = i9 + 1; byte b = bArr[i9]; if (b >= 0) { lWm.d = b; } else { i10 = sjx.b(b, bArr, i10, lWm); } int i11 = lWm.d + i10; while (i10 < i11) { wqp.c(Double.longBitsToDouble(sjx.c(bArr, i10))); i10 += 8; } if (i10 == i11) { return i10; } throw InvalidProtocolBufferException.g(); } if (i5 == 1) { Wqp wqp2 = (Wqp) rvv; wqp2.c(Double.longBitsToDouble(sjx.c(bArr, i))); while (true) { int i12 = i9 + 8; if (i12 >= i2) { return i12; } i9 = i12 + 1; byte b2 = bArr[i12]; if (b2 >= 0) { lWm.d = b2; } else { i9 = sjx.b(b2, bArr, i9, lWm); } if (i3 != lWm.d) { return i12; } wqp2.c(Double.longBitsToDouble(sjx.c(bArr, i9))); } } return i9; case 19: case 36: if (i5 == 2) { HFd hFd = (HFd) rvv; int i13 = i9 + 1; byte b3 = bArr[i9]; if (b3 >= 0) { lWm.d = b3; } else { i13 = sjx.b(b3, bArr, i13, lWm); } int i14 = lWm.d + i13; while (i13 < i14) { hFd.d(Float.intBitsToFloat(sjx.d(bArr, i13))); i13 += 4; } if (i13 == i14) { return i13; } throw InvalidProtocolBufferException.g(); } if (i5 == 5) { HFd hFd2 = (HFd) rvv; hFd2.d(Float.intBitsToFloat(sjx.d(bArr, i))); while (true) { int i15 = i9 + 4; if (i15 >= i2) { return i15; } i9 = i15 + 1; byte b4 = bArr[i15]; if (b4 >= 0) { lWm.d = b4; } else { i9 = sjx.b(b4, bArr, i9, lWm); } if (i3 != lWm.d) { return i15; } hFd2.d(Float.intBitsToFloat(sjx.d(bArr, i9))); } } return i9; case 20: case 21: case 37: case 38: if (i5 == 2) { C15673heO c15673heO = (C15673heO) rvv; int i16 = i9 + 1; byte b5 = bArr[i9]; if (b5 >= 0) { lWm.d = b5; } else { i16 = sjx.b(b5, bArr, i16, lWm); } int i17 = lWm.d + i16; while (i16 < i17) { i16 = sjx.e(bArr, i16, lWm); c15673heO.e(lWm.a); } if (i16 == i17) { return i16; } throw InvalidProtocolBufferException.g(); } if (i5 == 0) { C15673heO c15673heO2 = (C15673heO) rvv; int e2 = sjx.e(bArr, i9, lWm); c15673heO2.e(lWm.a); while (e2 < i2) { int i18 = e2 + 1; byte b6 = bArr[e2]; if (b6 >= 0) { lWm.d = b6; } else { i18 = sjx.b(b6, bArr, i18, lWm); } if (i3 != lWm.d) { return e2; } e2 = sjx.e(bArr, i18, lWm); c15673heO2.e(lWm.a); } return e2; } return i9; case 22: case 29: case 39: case 43: if (i5 == 2) { return sjx.d(bArr, i9, rvv, lWm); } if (i5 == 0) { return sjx.b(i3, bArr, i, i2, rvv, lWm); } return i9; case 23: case 32: case 40: case 46: if (i5 == 2) { C15673heO c15673heO3 = (C15673heO) rvv; int i19 = i9 + 1; byte b7 = bArr[i9]; if (b7 >= 0) { lWm.d = b7; } else { i19 = sjx.b(b7, bArr, i19, lWm); } int i20 = lWm.d + i19; while (i19 < i20) { c15673heO3.e(sjx.c(bArr, i19)); i19 += 8; } if (i19 == i20) { return i19; } throw InvalidProtocolBufferException.g(); } if (i5 == 1) { C15673heO c15673heO4 = (C15673heO) rvv; c15673heO4.e(sjx.c(bArr, i)); while (true) { int i21 = i9 + 8; if (i21 >= i2) { return i21; } i9 = i21 + 1; byte b8 = bArr[i21]; if (b8 >= 0) { lWm.d = b8; } else { i9 = sjx.b(b8, bArr, i9, lWm); } if (i3 != lWm.d) { return i21; } c15673heO4.e(sjx.c(bArr, i9)); } } return i9; case 24: case 31: case 41: case 45: if (i5 == 2) { Rjv rjv = (Rjv) rvv; int i22 = i9 + 1; byte b9 = bArr[i9]; if (b9 >= 0) { lWm.d = b9; } else { i22 = sjx.b(b9, bArr, i22, lWm); } int i23 = lWm.d + i22; while (i22 < i23) { rjv.a(sjx.d(bArr, i22)); i22 += 4; } if (i22 == i23) { return i22; } throw InvalidProtocolBufferException.g(); } if (i5 == 5) { Rjv rjv2 = (Rjv) rvv; rjv2.a(sjx.d(bArr, i)); while (true) { int i24 = i9 + 4; if (i24 >= i2) { return i24; } i9 = i24 + 1; byte b10 = bArr[i24]; if (b10 >= 0) { lWm.d = b10; } else { i9 = sjx.b(b10, bArr, i9, lWm); } if (i3 != lWm.d) { return i24; } rjv2.a(sjx.d(bArr, i9)); } } return i9; case 25: case 42: if (i5 == 2) { Twb twb = (Twb) rvv; i8 = i9 + 1; byte b11 = bArr[i9]; if (b11 >= 0) { lWm.d = b11; } else { i8 = sjx.b(b11, bArr, i8, lWm); } int i25 = lWm.d + i8; while (i8 < i25) { i8 = sjx.e(bArr, i8, lWm); twb.b(lWm.a != 0); } if (i8 != i25) { throw InvalidProtocolBufferException.g(); } return i8; } if (i5 == 0) { Twb twb2 = (Twb) rvv; i9 = sjx.e(bArr, i9, lWm); twb2.b(lWm.a != 0); while (i9 < i2) { int i26 = i9 + 1; byte b12 = bArr[i9]; if (b12 >= 0) { lWm.d = b12; } else { i26 = sjx.b(b12, bArr, i26, lWm); } if (i3 == lWm.d) { i9 = sjx.e(bArr, i26, lWm); twb2.b(lWm.a != 0); } } } return i9; case 26: if (i5 == 2) { if ((j & 536870912) == 0) { int i27 = i9 + 1; byte b13 = bArr[i9]; if (b13 >= 0) { lWm.d = b13; } else { i27 = sjx.b(b13, bArr, i27, lWm); } int i28 = lWm.d; if (i28 < 0) { throw InvalidProtocolBufferException.i(); } if (i28 == 0) { rvv.add(""); } else { rvv.add(new String(bArr, i27, i28, MTP.b)); i27 += i28; } while (i27 < i2) { int i29 = i27 + 1; byte b14 = bArr[i27]; if (b14 >= 0) { lWm.d = b14; } else { i29 = sjx.b(b14, bArr, i29, lWm); } if (i3 != lWm.d) { return i27; } i27 = i29 + 1; byte b15 = bArr[i29]; if (b15 >= 0) { lWm.d = b15; } else { i27 = sjx.b(b15, bArr, i27, lWm); } int i30 = lWm.d; if (i30 < 0) { throw InvalidProtocolBufferException.i(); } if (i30 == 0) { rvv.add(""); } else { rvv.add(new String(bArr, i27, i30, MTP.b)); i27 += i30; } } return i27; } int i31 = i9 + 1; byte b16 = bArr[i9]; if (b16 >= 0) { lWm.d = b16; } else { i31 = sjx.b(b16, bArr, i31, lWm); } int i32 = lWm.d; if (i32 < 0) { throw InvalidProtocolBufferException.i(); } if (i32 == 0) { rvv.add(""); } else { int i33 = i31 + i32; if (!C16752qto.a(bArr, i31, i33)) { throw InvalidProtocolBufferException.a(); } rvv.add(new String(bArr, i31, i32, MTP.b)); i31 = i33; } while (i31 < i2) { int i34 = i31 + 1; byte b17 = bArr[i31]; if (b17 >= 0) { lWm.d = b17; } else { i34 = sjx.b(b17, bArr, i34, lWm); } if (i3 != lWm.d) { return i31; } i31 = i34 + 1; byte b18 = bArr[i34]; if (b18 >= 0) { lWm.d = b18; } else { i31 = sjx.b(b18, bArr, i31, lWm); } int i35 = lWm.d; if (i35 < 0) { throw InvalidProtocolBufferException.i(); } if (i35 == 0) { rvv.add(""); } else { int i36 = i31 + i35; if (!C16752qto.a(bArr, i31, i36)) { throw InvalidProtocolBufferException.a(); } rvv.add(new String(bArr, i31, i35, MTP.b)); i31 = i36; } } return i31; } return i9; case 27: if (i5 == 2) { return sjx.c((Wnq) b(i6), i3, bArr, i, i2, (MTP.RVV) rvv, lWm); } return i9; case 28: if (i5 == 2) { int i37 = i9 + 1; byte b19 = bArr[i9]; if (b19 >= 0) { lWm.d = b19; } else { i37 = sjx.b(b19, bArr, i37, lWm); } int i38 = lWm.d; if (i38 < 0) { throw InvalidProtocolBufferException.i(); } if (i38 > bArr.length - i37) { throw InvalidProtocolBufferException.g(); } if (i38 == 0) { rvv.add(QwV.a); } else { rvv.add(QwV.c(bArr, i37, i38)); i37 += i38; } while (i37 < i2) { int i39 = i37 + 1; byte b20 = bArr[i37]; if (b20 >= 0) { lWm.d = b20; } else { i39 = sjx.b(b20, bArr, i39, lWm); } if (i3 != lWm.d) { return i37; } i37 = i39 + 1; byte b21 = bArr[i39]; if (b21 >= 0) { lWm.d = b21; } else { i37 = sjx.b(b21, bArr, i37, lWm); } int i40 = lWm.d; if (i40 < 0) { throw InvalidProtocolBufferException.i(); } if (i40 > bArr.length - i37) { throw InvalidProtocolBufferException.g(); } if (i40 == 0) { rvv.add(QwV.a); } else { rvv.add(QwV.c(bArr, i37, i40)); i37 += i40; } } return i37; } return i9; case 30: case 44: if (i5 != 2) { if (i5 == 0) { i8 = sjx.b(i3, bArr, i, i2, rvv, lWm); } return i9; } i8 = sjx.d(bArr, i9, rvv, lWm); KUw kUw = (KUw) t; C0526IsC c0526IsC = kUw.unknownFields; if (c0526IsC == C0526IsC.d()) { c0526IsC = null; } C0526IsC c0526IsC2 = (C0526IsC) jDR.a(i4, rvv, (MTP.LWm) this.f8582o[((i6 / 3) << 1) + 1], c0526IsC, this.t); if (c0526IsC2 != null) { kUw.unknownFields = c0526IsC2; } return i8; case 33: case 47: if (i5 == 2) { Rjv rjv3 = (Rjv) rvv; int i41 = i9 + 1; byte b22 = bArr[i9]; if (b22 >= 0) { lWm.d = b22; } else { i41 = sjx.b(b22, bArr, i41, lWm); } int i42 = lWm.d + i41; while (i41 < i42) { int i43 = i41 + 1; byte b23 = bArr[i41]; if (b23 >= 0) { lWm.d = b23; i41 = i43; } else { i41 = sjx.b(b23, bArr, i43, lWm); } rjv3.a(cKE.c(lWm.d)); } if (i41 == i42) { return i41; } throw InvalidProtocolBufferException.g(); } if (i5 == 0) { Rjv rjv4 = (Rjv) rvv; int i44 = i9 + 1; byte b24 = bArr[i9]; if (b24 >= 0) { lWm.d = b24; } else { i44 = sjx.b(b24, bArr, i44, lWm); } rjv4.a(cKE.c(lWm.d)); while (i44 < i2) { int i45 = i44 + 1; byte b25 = bArr[i44]; if (b25 >= 0) { lWm.d = b25; } else { i45 = sjx.b(b25, bArr, i45, lWm); } if (i3 != lWm.d) { return i44; } i44 = i45 + 1; byte b26 = bArr[i45]; if (b26 >= 0) { lWm.d = b26; } else { i44 = sjx.b(b26, bArr, i44, lWm); } rjv4.a(cKE.c(lWm.d)); } return i44; } return i9; case 34: case 48: if (i5 == 2) { C15673heO c15673heO5 = (C15673heO) rvv; int i46 = i9 + 1; byte b27 = bArr[i9]; if (b27 >= 0) { lWm.d = b27; } else { i46 = sjx.b(b27, bArr, i46, lWm); } int i47 = lWm.d + i46; while (i46 < i47) { i46 = sjx.e(bArr, i46, lWm); c15673heO5.e(cKE.b(lWm.a)); } if (i46 == i47) { return i46; } throw InvalidProtocolBufferException.g(); } if (i5 == 0) { C15673heO c15673heO6 = (C15673heO) rvv; int e3 = sjx.e(bArr, i9, lWm); c15673heO6.e(cKE.b(lWm.a)); while (e3 < i2) { int i48 = e3 + 1; byte b28 = bArr[e3]; if (b28 >= 0) { lWm.d = b28; } else { i48 = sjx.b(b28, bArr, i48, lWm); } if (i3 != lWm.d) { return e3; } e3 = sjx.e(bArr, i48, lWm); c15673heO6.e(cKE.b(lWm.a)); } return e3; } return i9; case 49: if (i5 == 3) { Wnq b29 = b(i6); int i49 = (i3 & (-8)) | 4; i9 = sjx.e(b29, bArr, i, i2, i49, lWm); rvv.add(lWm.b); while (i9 < i2) { int i50 = i9 + 1; byte b30 = bArr[i9]; if (b30 >= 0) { lWm.d = b30; } else { i50 = sjx.b(b30, bArr, i50, lWm); } if (i3 == lWm.d) { i9 = sjx.e(b29, bArr, i50, i2, i49, lWm); rvv.add(lWm.b); } } } return i9; default: return i9; } } /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r2v6, types: [int] */ private int b(T t, byte[] bArr, int i, int i2, int i3, long j, sjx.LWm lWm) throws IOException { Unsafe unsafe = a; Object obj = this.f8582o[(i3 / 3) << 1]; Object object = unsafe.getObject(t, j); if (this.m.e(object)) { Object b = this.m.b(); this.m.b(b, object); unsafe.putObject(t, j, b); object = b; } xdS.IeS a2 = this.m.a(obj); Map c = this.m.c(object); int i4 = i + 1; byte b2 = bArr[i]; if (b2 >= 0) { lWm.d = b2; } else { i4 = sjx.b(b2, bArr, i4, lWm); } int i5 = lWm.d; if (i5 < 0 || i5 > i2 - i4) { throw InvalidProtocolBufferException.g(); } int i6 = i4 + i5; Object obj2 = a2.a; Object obj3 = a2.e; while (i4 < i6) { int i7 = i4 + 1; byte b3 = bArr[i4]; if (b3 < 0) { i7 = sjx.b(b3, bArr, i7, lWm); b3 = lWm.d; } int i8 = b3 >>> 3; int i9 = b3 & 7; if (i8 != 1) { if (i8 == 2 && i9 == a2.b.wireType) { i4 = e(bArr, i7, i2, a2.b, a2.e.getClass(), lWm); obj3 = lWm.b; } i4 = sjx.c(b3, bArr, i7, i2, lWm); } else if (i9 == a2.d.wireType) { i4 = e(bArr, i7, i2, a2.d, null, lWm); obj2 = lWm.b; } else { i4 = sjx.c(b3, bArr, i7, i2, lWm); } } if (i4 != i6) { throw InvalidProtocolBufferException.f(); } c.put(obj2, obj3); return i6; } /* 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. */ /* JADX WARN: Multi-variable type inference failed */ private int e(T t, byte[] bArr, int i, int i2, int i3, int i4, int i5, int i6, int i7, long j, int i8, sjx.LWm lWm) throws IOException { int b; Unsafe unsafe = a; long j2 = this.d[i8 + 2] & 1048575; switch (i7) { case 51: if (i5 == 1) { unsafe.putObject(t, j, Double.valueOf(Double.longBitsToDouble(sjx.c(bArr, i)))); int i9 = i + 8; unsafe.putInt(t, j2, i4); return i9; } return i; case 52: if (i5 == 5) { unsafe.putObject(t, j, Float.valueOf(Float.intBitsToFloat(sjx.d(bArr, i)))); int i10 = i + 4; unsafe.putInt(t, j2, i4); return i10; } return i; case 53: case 54: if (i5 == 0) { int e2 = sjx.e(bArr, i, lWm); unsafe.putObject(t, j, Long.valueOf(lWm.a)); unsafe.putInt(t, j2, i4); return e2; } return i; case 55: case 62: if (i5 == 0) { int i11 = i + 1; byte b2 = bArr[i]; if (b2 >= 0) { lWm.d = b2; } else { i11 = sjx.b(b2, bArr, i11, lWm); } unsafe.putObject(t, j, Integer.valueOf(lWm.d)); unsafe.putInt(t, j2, i4); return i11; } return i; case 56: case 65: if (i5 == 1) { unsafe.putObject(t, j, Long.valueOf(sjx.c(bArr, i))); int i12 = i + 8; unsafe.putInt(t, j2, i4); return i12; } return i; case 57: case 64: if (i5 == 5) { unsafe.putObject(t, j, Integer.valueOf(sjx.d(bArr, i))); int i13 = i + 4; unsafe.putInt(t, j2, i4); return i13; } return i; case 58: if (i5 == 0) { int e3 = sjx.e(bArr, i, lWm); unsafe.putObject(t, j, Boolean.valueOf(lWm.a != 0)); unsafe.putInt(t, j2, i4); return e3; } return i; case 59: if (i5 == 2) { int i14 = i + 1; byte b3 = bArr[i]; if (b3 >= 0) { lWm.d = b3; } else { i14 = sjx.b(b3, bArr, i14, lWm); } int i15 = lWm.d; if (i15 == 0) { unsafe.putObject(t, j, ""); } else { if ((i6 & PKIFailureInfo.duplicateCertReq) != 0 && !C16752qto.a(bArr, i14, i14 + i15)) { throw InvalidProtocolBufferException.a(); } unsafe.putObject(t, j, new String(bArr, i14, i15, MTP.b)); i14 += i15; } unsafe.putInt(t, j2, i4); return i14; } return i; case 60: if (i5 == 2) { int a2 = sjx.a(b(i8), bArr, i, i2, lWm); Object object = unsafe.getInt(t, j2) == i4 ? unsafe.getObject(t, j) : null; if (object == null) { unsafe.putObject(t, j, lWm.b); } else { unsafe.putObject(t, j, MTP.a(object, lWm.b)); } unsafe.putInt(t, j2, i4); return a2; } return i; case 61: if (i5 == 2) { int b4 = sjx.b(bArr, i, lWm); unsafe.putObject(t, j, lWm.b); unsafe.putInt(t, j2, i4); return b4; } return i; case 63: if (i5 == 0) { int i16 = i + 1; byte b5 = bArr[i]; if (b5 >= 0) { lWm.d = b5; b = i16; } else { b = sjx.b(b5, bArr, i16, lWm); } int i17 = lWm.d; MTP.LWm lWm2 = (MTP.LWm) this.f8582o[((i8 / 3) << 1) + 1]; if (lWm2 == null || lWm2.b()) { unsafe.putObject(t, j, Integer.valueOf(i17)); unsafe.putInt(t, j2, i4); } else { KUw kUw = (KUw) t; C0526IsC c0526IsC = kUw.unknownFields; if (c0526IsC == C0526IsC.d()) { c0526IsC = C0526IsC.e(); kUw.unknownFields = c0526IsC; } c0526IsC.a(i3, Long.valueOf(i17)); } return b; } return i; case 66: if (i5 == 0) { int i18 = i + 1; byte b6 = bArr[i]; if (b6 >= 0) { lWm.d = b6; } else { i18 = sjx.b(b6, bArr, i18, lWm); } unsafe.putObject(t, j, Integer.valueOf(cKE.c(lWm.d))); unsafe.putInt(t, j2, i4); return i18; } return i; case 67: if (i5 == 0) { int e4 = sjx.e(bArr, i, lWm); unsafe.putObject(t, j, Long.valueOf(cKE.b(lWm.a))); unsafe.putInt(t, j2, i4); return e4; } return i; case 68: if (i5 == 3) { int e5 = sjx.e(b(i8), bArr, i, i2, (i3 & (-8)) | 4, lWm); Object object2 = unsafe.getInt(t, j2) == i4 ? unsafe.getObject(t, j) : null; if (object2 == null) { unsafe.putObject(t, j, lWm.b); } else { unsafe.putObject(t, j, MTP.a(object2, lWm.b)); } unsafe.putInt(t, j2, i4); return e5; } return i; default: return i; } } private Wnq b(int i) { int i2 = (i / 3) << 1; Wnq wnq = (Wnq) this.f8582o[i2]; if (wnq != null) { return wnq; } Wnq b = MvG.a().b((Class) this.f8582o[i2 + 1]); this.f8582o[i2] = b; return b; } /* JADX INFO: Access modifiers changed from: package-private */ /* JADX WARN: Failed to find 'out' block for switch in B:103:0x00a8. Please report as an issue. */ /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r6v3 */ public final int d(T t, byte[] bArr, int i, int i2, int i3, sjx.LWm lWm) throws IOException { Unsafe unsafe; int i4; T t2; C5290bqJ c5290bqJ; int i5; int i6; int i7; int i8; int i9; int i10; int i11; int i12; int i13; int i14; T t3; int i15; int i16; boolean z; int i17; int i18; int i19; int i20; int i21; int i22; C5290bqJ c5290bqJ2 = this; T t4 = t; byte[] bArr2 = bArr; int i23 = i2; int i24 = i3; sjx.LWm lWm2 = lWm; Unsafe unsafe2 = a; int i25 = i; int i26 = 0; int i27 = -1; int i28 = 0; int i29 = 0; int i30 = 1048575; while (true) { if (i25 < i23) { int i31 = i25 + 1; byte b = bArr2[i25]; if (b < 0) { i6 = sjx.b(b, bArr2, i31, lWm2); i5 = lWm2.d; } else { i5 = b; i6 = i31; } int i32 = i5 >>> 3; int i33 = i5 & 7; if (i32 <= i27) { if (i32 < c5290bqJ2.l || i32 > c5290bqJ2.n) { i7 = 0; i8 = -1; } else { i7 = 0; i8 = c5290bqJ2.a(i32, 0); } } else { i8 = (i32 < c5290bqJ2.l || i32 > c5290bqJ2.n) ? -1 : c5290bqJ2.a(i32, i28 / 3); i7 = 0; } if (i8 == -1) { i9 = i6; i10 = i7; i11 = i29; i12 = i30; i13 = i32; unsafe = unsafe2; i4 = i24; i14 = i5; } else { int[] iArr = c5290bqJ2.d; int i34 = iArr[i8 + 1]; int i35 = (i34 & 267386880) >>> 20; int i36 = i6; long j = i34 & 1048575; int i37 = i5; if (i35 <= 17) { int i38 = iArr[i8 + 2]; int i39 = 1 << (i38 >>> 20); int i40 = i38 & 1048575; int i41 = i8; if (i40 != i30) { if (i30 != 1048575) { unsafe2.putInt(t4, i30, i29); } i12 = i40; i15 = unsafe2.getInt(t4, i40); } else { i15 = i29; i12 = i30; } switch (i35) { case 0: i16 = i36; z = 1048575; i10 = i41; bArr2 = bArr; if (i33 == 1) { vqr.e(t4, j, Double.longBitsToDouble(sjx.c(bArr2, i16))); i25 = i16 + 8; i29 = i15 | i39; i30 = i12; i19 = i32; i24 = i3; i28 = i10; i27 = i19; i26 = i37; i23 = i2; break; } i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; case 1: i16 = i36; z = 1048575; i10 = i41; bArr2 = bArr; if (i33 == 5) { vqr.e((Object) t4, j, Float.intBitsToFloat(sjx.d(bArr2, i16))); i25 = i16 + 4; i29 = i15 | i39; i30 = i12; i19 = i32; i24 = i3; i28 = i10; i27 = i19; i26 = i37; i23 = i2; break; } i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; case 2: case 3: i16 = i36; z = 1048575; i10 = i41; bArr2 = bArr; if (i33 == 0) { int e2 = sjx.e(bArr2, i16, lWm2); unsafe2.putLong(t, j, lWm2.a); i29 = i15 | i39; i25 = e2; i30 = i12; i19 = i32; i24 = i3; i28 = i10; i27 = i19; i26 = i37; i23 = i2; break; } i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; case 4: case 11: i16 = i36; z = 1048575; i10 = i41; bArr2 = bArr; if (i33 == 0) { i25 = i16 + 1; byte b2 = bArr2[i16]; if (b2 >= 0) { lWm2.d = b2; } else { i25 = sjx.b(b2, bArr2, i25, lWm2); } unsafe2.putInt(t4, j, lWm2.d); i29 = i15 | i39; i30 = i12; i19 = i32; i24 = i3; i28 = i10; i27 = i19; i26 = i37; i23 = i2; break; } i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; case 5: case 14: i16 = i36; i17 = i37; z = 1048575; i10 = i41; bArr2 = bArr; if (i33 == 1) { i37 = i17; unsafe2.putLong(t, j, sjx.c(bArr2, i16)); i25 = i16 + 8; i29 = i15 | i39; i30 = i12; i19 = i32; i24 = i3; i28 = i10; i27 = i19; i26 = i37; i23 = i2; break; } i37 = i17; i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; case 6: case 13: i20 = i2; i16 = i36; i17 = i37; i10 = i41; bArr2 = bArr; if (i33 == 5) { unsafe2.putInt(t4, j, sjx.d(bArr2, i16)); i25 = i16 + 4; i24 = i3; i27 = i32; i28 = i10; i23 = i20; i29 = i15 | i39; i26 = i17; i30 = i12; break; } else { i37 = i17; i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; } case 7: i20 = i2; i16 = i36; i17 = i37; i10 = i41; bArr2 = bArr; if (i33 == 0) { i25 = sjx.e(bArr2, i16, lWm2); vqr.d(t4, j, lWm2.a != 0); i24 = i3; i27 = i32; i28 = i10; i23 = i20; i29 = i15 | i39; i26 = i17; i30 = i12; break; } else { i37 = i17; i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; } case 8: i20 = i2; i16 = i36; i17 = i37; i10 = i41; bArr2 = bArr; if (i33 == 2) { if ((536870912 & i34) == 0) { i25 = sjx.c(bArr2, i16, lWm2); } else { i25 = sjx.a(bArr2, i16, lWm2); } unsafe2.putObject(t4, j, lWm2.b); i24 = i3; i27 = i32; i28 = i10; i23 = i20; i29 = i15 | i39; i26 = i17; i30 = i12; break; } else { i37 = i17; i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; } case 9: i16 = i36; i18 = i37; i10 = i41; bArr2 = bArr; if (i33 == 2) { i20 = i2; i25 = sjx.a(c5290bqJ2.b(i10), bArr2, i16, i20, lWm2); if ((i15 & i39) == 0) { unsafe2.putObject(t4, j, lWm2.b); } else { unsafe2.putObject(t4, j, MTP.a(unsafe2.getObject(t4, j), lWm2.b)); } i17 = i18; i24 = i3; i27 = i32; i28 = i10; i23 = i20; i29 = i15 | i39; i26 = i17; i30 = i12; break; } else { i37 = i18; i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; } case 10: i16 = i36; i18 = i37; z = 1048575; i10 = i41; bArr2 = bArr; if (i33 == 2) { i25 = sjx.b(bArr2, i16, lWm2); unsafe2.putObject(t4, j, lWm2.b); i37 = i18; i29 = i15 | i39; i30 = i12; i19 = i32; i24 = i3; i28 = i10; i27 = i19; i26 = i37; i23 = i2; break; } i37 = i18; i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; case 12: i16 = i36; i18 = i37; z = 1048575; i10 = i41; bArr2 = bArr; if (i33 == 0) { i25 = i16 + 1; byte b3 = bArr2[i16]; if (b3 >= 0) { lWm2.d = b3; } else { i25 = sjx.b(b3, bArr2, i25, lWm2); } int i42 = lWm2.d; MTP.LWm lWm3 = (MTP.LWm) c5290bqJ2.f8582o[((i10 / 3) << 1) + 1]; if (lWm3 == null || lWm3.b()) { unsafe2.putInt(t4, j, i42); i37 = i18; i29 = i15 | i39; i30 = i12; i19 = i32; i24 = i3; i28 = i10; i27 = i19; i26 = i37; i23 = i2; break; } else { KUw kUw = (KUw) t4; C0526IsC c0526IsC = kUw.unknownFields; if (c0526IsC == C0526IsC.d()) { c0526IsC = C0526IsC.e(); kUw.unknownFields = c0526IsC; } c0526IsC.a(i18, Long.valueOf(i42)); i37 = i18; i29 = i15; i30 = i12; i19 = i32; i24 = i3; i28 = i10; i27 = i19; i26 = i37; i23 = i2; } } i37 = i18; i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; case 15: i16 = i36; i18 = i37; z = 1048575; i10 = i41; bArr2 = bArr; if (i33 == 0) { i25 = i16 + 1; byte b4 = bArr2[i16]; if (b4 >= 0) { lWm2.d = b4; } else { i25 = sjx.b(b4, bArr2, i25, lWm2); } unsafe2.putInt(t4, j, cKE.c(lWm2.d)); i37 = i18; i29 = i15 | i39; i30 = i12; i19 = i32; i24 = i3; i28 = i10; i27 = i19; i26 = i37; i23 = i2; break; } i37 = i18; i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; case 16: i16 = i36; i18 = i37; z = 1048575; if (i33 == 0) { bArr2 = bArr; int e3 = sjx.e(bArr2, i16, lWm2); i10 = i41; unsafe2.putLong(t, j, cKE.b(lWm2.a)); i29 = i15 | i39; i25 = e3; i37 = i18; i30 = i12; i19 = i32; i24 = i3; i28 = i10; i27 = i19; i26 = i37; i23 = i2; break; } else { i10 = i41; i37 = i18; i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; } case 17: if (i33 == 3) { i25 = sjx.e(c5290bqJ2.b(i41), bArr, i36, i2, (i32 << 3) | 4, lWm); if ((i15 & i39) == 0) { unsafe2.putObject(t4, j, lWm2.b); } else { unsafe2.putObject(t4, j, MTP.a(unsafe2.getObject(t4, j), lWm2.b)); } i29 = i15 | i39; bArr2 = bArr; i23 = i2; i24 = i3; i27 = i32; i28 = i41; i26 = i37; i30 = i12; break; } else { i16 = i36; i10 = i41; i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; } default: i10 = i41; i16 = i36; i4 = i3; i13 = i32; unsafe = unsafe2; i9 = i16; i14 = i37; i11 = i15; break; } } else { bArr2 = bArr; i10 = i8; if (i35 != 27) { i11 = i29; i12 = i30; i13 = i32; if (i35 <= 49) { unsafe = unsafe2; i22 = i10; i25 = a(t, bArr, i36, i2, i37, i13, i33, i10, i34, i35, j, lWm); if (i25 != i36) { c5290bqJ2 = this; t4 = t; bArr2 = bArr; i23 = i2; i24 = i3; lWm2 = lWm; i27 = i13; i29 = i11; i26 = i37; i28 = i22; i30 = i12; unsafe2 = unsafe; } else { i4 = i3; i9 = i25; i14 = i37; i10 = i22; } } else { i21 = i36; unsafe = unsafe2; i22 = i10; if (i35 != 50) { i25 = e(t, bArr, i21, i2, i37, i13, i33, i34, i35, j, i22, lWm); if (i25 != i21) { c5290bqJ2 = this; t4 = t; bArr2 = bArr; i23 = i2; i24 = i3; lWm2 = lWm; i27 = i13; i29 = i11; i26 = i37; i28 = i22; i30 = i12; unsafe2 = unsafe; } else { i4 = i3; i9 = i25; i14 = i37; i10 = i22; } } else if (i33 == 2) { i25 = b(t, bArr, i21, i2, i22, j, lWm); if (i25 != i21) { c5290bqJ2 = this; t4 = t; bArr2 = bArr; i23 = i2; i24 = i3; lWm2 = lWm; i27 = i13; i29 = i11; i26 = i37; i28 = i22; i30 = i12; unsafe2 = unsafe; } else { i4 = i3; i9 = i25; i14 = i37; i10 = i22; } } } } else if (i33 == 2) { MTP.RVV rvv = (MTP.RVV) unsafe2.getObject(t4, j); if (!rvv.e()) { int size = rvv.size(); rvv = rvv.b(size == 0 ? 10 : size << 1); unsafe2.putObject(t4, j, rvv); } i19 = i32; i25 = sjx.c((Wnq) c5290bqJ2.b(i10), i37, bArr, i36, i2, (MTP.RVV) rvv, lWm); i29 = i29; i30 = i30; i24 = i3; i28 = i10; i27 = i19; i26 = i37; i23 = i2; } else { i11 = i29; i12 = i30; i13 = i32; i21 = i36; unsafe = unsafe2; i22 = i10; } i25 = i21; i4 = i3; i9 = i25; i14 = i37; i10 = i22; } } if (i14 != i4 || i4 == 0) { if (this.j && lWm.e != ZjA.e()) { i25 = sjx.c(i14, bArr, i9, i2, t, this.c, lWm); t3 = t; } else { ?? r6 = t; KUw kUw2 = (KUw) r6; C0526IsC c0526IsC2 = kUw2.unknownFields; if (c0526IsC2 == C0526IsC.d()) { c0526IsC2 = C0526IsC.e(); kUw2.unknownFields = c0526IsC2; } i25 = sjx.d(i14, bArr, i9, i2, c0526IsC2, lWm); t3 = r6; } bArr2 = bArr; t4 = t3; i24 = i4; i26 = i14; c5290bqJ2 = this; lWm2 = lWm; i28 = i10; i27 = i13; i29 = i11; i30 = i12; unsafe2 = unsafe; i23 = i2; } else { c5290bqJ = this; t2 = t; i25 = i9; i26 = i14; i29 = i11; i30 = i12; } } else { unsafe = unsafe2; i4 = i24; t2 = t4; c5290bqJ = c5290bqJ2; } } if (i30 != 1048575) { unsafe.putInt(t2, i30, i29); } C0526IsC c0526IsC3 = null; for (int i43 = c5290bqJ.h; i43 < c5290bqJ.s; i43++) { c0526IsC3 = (C0526IsC) c5290bqJ.d((Object) t2, c5290bqJ.f[i43], (int) c0526IsC3, (Hjq) c5290bqJ.t); } if (c0526IsC3 != null) { c5290bqJ.t.a((Object) t2, (T) c0526IsC3); } if (i4 == 0) { if (i25 != i2) { throw InvalidProtocolBufferException.f(); } } else if (i25 > i2 || i26 != i4) { throw InvalidProtocolBufferException.f(); } return i25; } /* JADX WARN: Code restructure failed: missing block: B:48:0x0300, code lost: if (r0 != r15) goto L139; */ /* JADX WARN: Code restructure failed: missing block: B:49:0x035e, code lost: r7 = r32; r2 = r0; */ /* JADX WARN: Code restructure failed: missing block: B:50:0x0357, code lost: r7 = r32; r2 = r22; r6 = r26; */ /* JADX WARN: Code restructure failed: missing block: B:56:0x0334, code lost: if (r0 != r15) goto L139; */ /* JADX WARN: Code restructure failed: missing block: B:58:0x0355, code lost: if (r0 != r15) goto L139; */ /* JADX WARN: Failed to find 'out' block for switch in B:68:0x00a4. Please report as an issue. */ /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r3v33, types: [int] */ @Override // o.Wnq /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final void d(T r32, byte[] r33, int r34, int r35, o.sjx.LWm r36) throws java.io.IOException { /* Method dump skipped, instructions count: 1008 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C5290bqJ.d(java.lang.Object, byte[], int, int, o.sjx$LWm):void"); } @Override // o.Wnq public final void e(T t) { int i; int i2 = this.h; while (true) { i = this.s; if (i2 >= i) { break; } long j = this.d[this.f[i2] + 1] & 1048575; Object j2 = vqr.j(t, j); if (j2 != null) { vqr.e(t, j, this.m.b(j2)); } i2++; } int length = this.f.length; while (i < length) { this.i.e(t, this.f[i]); i++; } this.t.a(t); if (this.j) { this.g.e(t); } } private final UB d(Object obj, int i, UB ub, Hjq hjq) { MTP.LWm lWm; int i2 = this.d[i]; Object j = vqr.j(obj, r0[i + 1] & 1048575); return (j == null || (lWm = (MTP.LWm) this.f8582o[((i / 3) << 1) + 1]) == null) ? ub : (UB) d(i, i2, this.m.c(j), lWm, (MTP.LWm) ub, (Hjq) hjq); } private final UB d(int i, int i2, Map map, MTP.LWm lWm, UB ub, Hjq hjq) { xdS.IeS a2 = this.m.a(this.f8582o[(i / 3) << 1]); Iterator> it = map.entrySet().iterator(); while (it.hasNext()) { Map.Entry next = it.next(); if (!lWm.b()) { if (ub == null) { ub = hjq.e(); } QwV.jbe d = QwV.d(Rkw.b(a2.d, 1, next.getKey()) + Rkw.b(a2.b, 2, next.getValue())); CodedOutputStream codedOutputStream = d.a; try { K key = next.getKey(); V value = next.getValue(); Rkw.b(codedOutputStream, a2.d, 1, key); Rkw.b(codedOutputStream, a2.b, 2, value); if (d.a.i() == 0) { hjq.d((Hjq) ub, i2, new QwV.ojQ(d.c)); it.remove(); } else { throw new IllegalStateException("Did not write as much data as expected."); } } catch (IOException e2) { throw new RuntimeException(e2); } } } return ub; } /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Removed duplicated region for block: B:79:0x0111 A[SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:81:0x0112 A[SYNTHETIC] */ /* JADX WARN: Type inference failed for: r5v3, types: [o.Wnq] */ /* JADX WARN: Type inference failed for: r5v5, types: [o.Wnq] */ /* JADX WARN: Type inference failed for: r5v6, types: [o.Wnq] */ /* JADX WARN: Type inference failed for: r6v16 */ /* JADX WARN: Type inference failed for: r6v17 */ /* JADX WARN: Type inference failed for: r6v18, types: [o.Wnq] */ /* JADX WARN: Type inference failed for: r6v21 */ /* JADX WARN: Type inference failed for: r6v22 */ @Override // o.Wnq /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final boolean c(T r14) { /* Method dump skipped, instructions count: 296 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C5290bqJ.c(java.lang.Object):boolean"); } private void d(Object obj, int i, lfg lfgVar) throws IOException { if ((536870912 & i) != 0) { vqr.e(obj, i & 1048575, lfgVar.r()); } else if (this.k) { vqr.e(obj, i & 1048575, lfgVar.p()); } else { vqr.e(obj, i & 1048575, lfgVar.b()); } } private boolean a(T t, int i) { boolean equals; int[] iArr = this.d; int i2 = iArr[i + 2]; long j = i2 & 1048575; if (j != 1048575) { return (vqr.g(t, j) & (1 << (i2 >>> 20))) != 0; } int i3 = iArr[i + 1]; long j2 = i3 & 1048575; switch ((i3 & 267386880) >>> 20) { case 0: return Double.doubleToRawLongBits(vqr.h(t, j2)) != 0; case 1: return Float.floatToRawIntBits(vqr.f(t, j2)) != 0; case 2: return vqr.i(t, j2) != 0; case 3: return vqr.i(t, j2) != 0; case 4: return vqr.g(t, j2) != 0; case 5: return vqr.i(t, j2) != 0; case 6: return vqr.g(t, j2) != 0; case 7: return vqr.c(t, j2); case 8: Object j3 = vqr.j(t, j2); if (j3 instanceof String) { equals = ((String) j3).isEmpty(); break; } else if (j3 instanceof QwV) { equals = QwV.a.equals(j3); break; } else { throw new IllegalArgumentException(); } case 9: return vqr.j(t, j2) != null; case 10: equals = QwV.a.equals(vqr.j(t, j2)); break; case 11: return vqr.g(t, j2) != 0; case 12: return vqr.g(t, j2) != 0; case 13: return vqr.g(t, j2) != 0; case 14: return vqr.i(t, j2) != 0; case 15: return vqr.g(t, j2) != 0; case 16: return vqr.i(t, j2) != 0; case 17: return vqr.j(t, j2) != null; default: throw new IllegalArgumentException(); } return !equals; } private void d(T t, int i) { int i2 = this.d[i + 2]; long j = 1048575 & i2; if (j == 1048575) { return; } vqr.c(t, j, (1 << (i2 >>> 20)) | vqr.g(t, j)); } private boolean b(T t, int i, int i2) { return vqr.g(t, (long) (this.d[i2 + 2] & 1048575)) == i; } private int a(int i, int i2) { int length = (this.d.length / 3) - 1; while (i2 <= length) { int i3 = (length + i2) >>> 1; int i4 = i3 * 3; int i5 = this.d[i4]; if (i == i5) { return i4; } if (i < i5) { length = i3 - 1; } else { i2 = i3 + 1; } } return -1; } }