package o; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.ref.WeakReference; import java.util.HashSet; import java.util.Iterator; import o.C17026tNn; import o.zvH; /* loaded from: classes.dex */ public final class WqU extends C16458oZD { private int aC; private int aE; private whc aG; int ap; int as; public int aw; public zvH e = new zvH(this); public lLR ai = new lLR(this); public zvH.RVV ao = null; public boolean aq = false; private Npn aH = new Npn(); public int ar = 0; public int av = 0; ZzW[] au = new ZzW[4]; ZzW[] aj = new ZzW[4]; private boolean ax = false; private boolean aF = false; private boolean aJ = false; private int aK = 0; private int aL = 0; public int an = 257; private boolean aI = false; public boolean at = false; public boolean am = false; private int ay = 0; WeakReference aA = null; WeakReference c = null; WeakReference aB = null; WeakReference a = null; private HashSet aN = new HashSet<>(); private zvH.Sts aD = new zvH.Sts(); private boolean a(boolean z, int i) { boolean z2; boolean z3; lLR llr = this.ai; boolean z4 = z & true; C17026tNn.LWm lWm = llr.c.B[0]; C17026tNn.LWm lWm2 = llr.c.B[1]; int f = llr.c.f(); int l = llr.c.l(); if (z4 && (lWm == C17026tNn.LWm.WRAP_CONTENT || lWm2 == C17026tNn.LWm.WRAP_CONTENT)) { Iterator it = llr.i.iterator(); while (true) { if (!it.hasNext()) { break; } Bgk next = it.next(); if (next.f == i && !next.d()) { z4 = false; break; } } if (i == 0) { if (z4 && lWm == C17026tNn.LWm.WRAP_CONTENT) { llr.c.B[0] = C17026tNn.LWm.FIXED; WqU wqU = llr.c; wqU.i(llr.b(wqU, 0)); FgJ fgJ = llr.c.h.e; WqU wqU2 = llr.c; fgJ.d(wqU2.Z == 8 ? 0 : wqU2.ac); } } else if (z4 && lWm2 == C17026tNn.LWm.WRAP_CONTENT) { llr.c.B[1] = C17026tNn.LWm.FIXED; WqU wqU3 = llr.c; wqU3.c(llr.b(wqU3, 1)); FgJ fgJ2 = llr.c.ak.e; WqU wqU4 = llr.c; fgJ2.d(wqU4.Z == 8 ? 0 : wqU4.p); } } if (i == 0) { if (llr.c.B[0] == C17026tNn.LWm.FIXED || llr.c.B[0] == C17026tNn.LWm.MATCH_PARENT) { WqU wqU5 = llr.c; int i2 = (wqU5.Z == 8 ? 0 : wqU5.ac) + f; llr.c.h.c.d(i2); llr.c.h.e.d(i2 - f); z2 = true; } z2 = false; } else { if (llr.c.B[1] == C17026tNn.LWm.FIXED || llr.c.B[1] == C17026tNn.LWm.MATCH_PARENT) { WqU wqU6 = llr.c; int i3 = (wqU6.Z == 8 ? 0 : wqU6.p) + l; llr.c.ak.c.d(i3); llr.c.ak.e.d(i3 - l); z2 = true; } z2 = false; } llr.d(); Iterator it2 = llr.i.iterator(); while (it2.hasNext()) { Bgk next2 = it2.next(); if (next2.f == i && (next2.l != llr.c || next2.j)) { next2.c(); } } Iterator it3 = llr.i.iterator(); while (it3.hasNext()) { Bgk next3 = it3.next(); if (next3.f == i && (z2 || next3.l != llr.c)) { if (!next3.f8108o.j || !next3.c.j || (!(next3 instanceof QAm) && !next3.e.j)) { z3 = false; break; } } } z3 = true; llr.c.B[0] = lWm; llr.c.B[1] = lWm2; return z3; } @Override // o.C16458oZD, o.C17026tNn public final void m() { this.aH.a(); this.ap = 0; this.aC = 0; this.as = 0; this.aE = 0; this.aI = false; super.m(); } @Override // o.C17026tNn public final void d(boolean z, boolean z2) { super.d(z, z2); int size = ((C16458oZD) this).az.size(); for (int i = 0; i < size; i++) { ((C16458oZD) this).az.get(i).d(z, z2); } } /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Removed duplicated region for block: B:118:0x0886 */ /* JADX WARN: Removed duplicated region for block: B:121:0x0896 */ /* JADX WARN: Removed duplicated region for block: B:130:0x08c6 */ /* JADX WARN: Removed duplicated region for block: B:166:0x0953 */ /* JADX WARN: Removed duplicated region for block: B:169:0x095f */ /* JADX WARN: Removed duplicated region for block: B:171:0x0965 */ /* JADX WARN: Removed duplicated region for block: B:174:0x097a */ /* JADX WARN: Removed duplicated region for block: B:177:0x0986 */ /* JADX WARN: Removed duplicated region for block: B:179:0x098c */ /* JADX WARN: Removed duplicated region for block: B:181:0x099b */ /* JADX WARN: Removed duplicated region for block: B:194:0x09d4 */ /* JADX WARN: Removed duplicated region for block: B:196:0x09de */ /* JADX WARN: Removed duplicated region for block: B:198:0x09f5 */ /* JADX WARN: Removed duplicated region for block: B:201:0x09f8 */ /* JADX WARN: Removed duplicated region for block: B:204:0x09d8 */ /* JADX WARN: Removed duplicated region for block: B:208:0x0988 */ /* JADX WARN: Removed duplicated region for block: B:209:0x097c */ /* JADX WARN: Removed duplicated region for block: B:210:0x0961 */ /* JADX WARN: Removed duplicated region for block: B:211:0x0955 */ /* JADX WARN: Removed duplicated region for block: B:212:0x0888 */ /* JADX WARN: Removed duplicated region for block: B:213:0x08ab */ /* JADX WARN: Removed duplicated region for block: B:448:0x0a10 */ /* JADX WARN: Removed duplicated region for block: B:452:0x052b */ /* JADX WARN: Removed duplicated region for block: B:65:0x04d4 */ /* JADX WARN: Removed duplicated region for block: B:673:0x041b */ /* JADX WARN: Removed duplicated region for block: B:697:0x045c A[ADDED_TO_REGION] */ /* JADX WARN: Removed duplicated region for block: B:700:0x046a */ /* JADX WARN: Removed duplicated region for block: B:709:0x0499 */ /* JADX WARN: Removed duplicated region for block: B:70:0x04e9 A[ADDED_TO_REGION] */ /* JADX WARN: Removed duplicated region for block: B:722:0x04bb */ /* JADX WARN: Removed duplicated region for block: B:728:0x048e */ /* JADX WARN: Removed duplicated region for block: B:74:0x04fc */ /* JADX WARN: Removed duplicated region for block: B:79:0x0510 */ /* JADX WARN: Removed duplicated region for block: B:88:0x0529 */ /* JADX WARN: Removed duplicated region for block: B:91:0x0533 */ /* JADX WARN: Type inference failed for: r1v35 */ /* JADX WARN: Type inference failed for: r1v36, types: [boolean] */ /* JADX WARN: Type inference failed for: r1v39 */ /* JADX WARN: Type inference failed for: r6v25 */ /* JADX WARN: Type inference failed for: r6v26 */ /* JADX WARN: Type inference failed for: r6v31, types: [o.kpn] */ /* JADX WARN: Type inference failed for: r6v32, types: [o.NsV, o.kpn] */ /* JADX WARN: Type inference failed for: r6v34 */ /* JADX WARN: Type inference failed for: r6v35 */ /* JADX WARN: Type inference failed for: r6v39 */ /* JADX WARN: Type inference failed for: r6v40 */ /* JADX WARN: Type inference failed for: r6v41 */ @Override // o.C16458oZD /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final void e() { /* Method dump skipped, instructions count: 2594 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.WqU.e():void"); } public static boolean e(C17026tNn c17026tNn, zvH.RVV rvv, zvH.Sts sts) { int i; int i2; if (rvv == null) { return false; } if (c17026tNn.Z == 8 || (c17026tNn instanceof WAE) || (c17026tNn instanceof kpn)) { sts.g = 0; sts.f = 0; return false; } sts.e = c17026tNn.B[0]; sts.h = c17026tNn.B[1]; sts.a = c17026tNn.Z == 8 ? 0 : c17026tNn.ac; sts.j = c17026tNn.Z == 8 ? 0 : c17026tNn.p; sts.i = false; sts.c = 0; boolean z = sts.e == C17026tNn.LWm.MATCH_CONSTRAINT; boolean z2 = sts.h == C17026tNn.LWm.MATCH_CONSTRAINT; boolean z3 = z && c17026tNn.s > BitmapDescriptorFactory.HUE_RED; boolean z4 = z2 && c17026tNn.s > BitmapDescriptorFactory.HUE_RED; if (z && c17026tNn.d(0) && c17026tNn.H == 0 && !z3) { sts.e = C17026tNn.LWm.WRAP_CONTENT; if (z2 && c17026tNn.I == 0) { sts.e = C17026tNn.LWm.FIXED; } z = false; } if (z2 && c17026tNn.d(1) && c17026tNn.I == 0 && !z4) { sts.h = C17026tNn.LWm.WRAP_CONTENT; if (z && c17026tNn.H == 0) { sts.h = C17026tNn.LWm.FIXED; } z2 = false; } if (c17026tNn.a()) { sts.e = C17026tNn.LWm.FIXED; z = false; } if (c17026tNn.d()) { sts.h = C17026tNn.LWm.FIXED; z2 = false; } if (z3) { if (c17026tNn.U[0] == 4) { sts.e = C17026tNn.LWm.FIXED; } else if (!z2) { if (sts.h == C17026tNn.LWm.FIXED) { i2 = sts.j; } else { sts.e = C17026tNn.LWm.WRAP_CONTENT; rvv.a(c17026tNn, sts); i2 = sts.f; } sts.e = C17026tNn.LWm.FIXED; sts.a = (int) (c17026tNn.s * i2); } } if (z4) { if (c17026tNn.U[1] == 4) { sts.h = C17026tNn.LWm.FIXED; } else if (!z) { if (sts.e == C17026tNn.LWm.FIXED) { i = sts.a; } else { sts.h = C17026tNn.LWm.WRAP_CONTENT; rvv.a(c17026tNn, sts); i = sts.g; } sts.h = C17026tNn.LWm.FIXED; if (c17026tNn.q == -1) { sts.j = (int) (i / c17026tNn.s); } else { sts.j = (int) (c17026tNn.s * i); } } } rvv.a(c17026tNn, sts); c17026tNn.i(sts.g); c17026tNn.c(sts.f); c17026tNn.d = sts.b; int i3 = sts.d; c17026tNn.k = i3; c17026tNn.d = i3 > 0; sts.c = 0; return sts.i; } /* JADX WARN: Removed duplicated region for block: B:123:0x03b6 */ /* JADX WARN: Removed duplicated region for block: B:196:0x047a */ /* JADX WARN: Removed duplicated region for block: B:199:0x0480 A[SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:416:0x0305 */ /* JADX WARN: Removed duplicated region for block: B:424:0x039c */ /* JADX WARN: Removed duplicated region for block: B:426:0x03ac */ /* JADX WARN: Removed duplicated region for block: B:427:0x03a7 */ /* JADX WARN: Removed duplicated region for block: B:428:0x0376 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final long a(int r22, int r23, int r24, int r25, int r26, int r27, int r28) { /* Method dump skipped, instructions count: 1664 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.WqU.a(int, int, int, int, int, int, int):long"); } }