package o; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import o.C1230Yni; import o.EsB; import org.bouncycastle.asn1.cmp.PKIFailureInfo; /* renamed from: o.tNn, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public class C17026tNn { public LWm[] B; public C1230Yni[] C; protected C17026tNn[] G; protected C17026tNn[] P; protected int Q; protected int R; public C17026tNn S; public float T; public int W; public int Z; private boolean aA; private boolean aB; private int aC; private int aD; private int aF; private int aG; private String aH; private boolean aI; private boolean aK; private boolean aM; private boolean aO; private C17026tNn aQ; public float[] ab; public int ac; public QAm ad; public int af; protected int ag; protected int ah; private boolean ai; private int ao; private int ap; private int ar; private boolean at; private boolean au; private int av; private int aw; private boolean ax; private C17026tNn ay; private boolean az; public QAm b; public int f; public boolean g; protected ArrayList i; public int k; public boolean l; public C1230Yni m; public int p; public int q; public String r; public float s; public Object t; public float u; public int x; boolean[] y; public boolean ae = false; private Bgk[] aS = new Bgk[2]; public Vlp h = null; public UhD ak = null; private boolean[] am = {true, true}; private boolean aL = false; public boolean O = true; private boolean a = false; private boolean e = true; private int aP = -1; private int as = -1; private VQX c = new VQX(this); private boolean aN = false; private boolean aU = false; public boolean j = false; public boolean al = false; public int v = -1; public int aa = -1; public int Y = 0; public int H = 0; public int I = 0; public int[] U = new int[2]; public int L = 0; public int E = 0; public float M = 1.0f; public int N = 0; public int F = 0; public float K = 1.0f; private int aJ = -1; private float aE = 1.0f; public int[] J = {Integer.MAX_VALUE, Integer.MAX_VALUE}; private float an = BitmapDescriptorFactory.HUE_RED; public boolean d = false; public boolean w = false; public int z = 0; public int A = 0; public C1230Yni D = new C1230Yni(this, C1230Yni.HBt.LEFT); public C1230Yni V = new C1230Yni(this, C1230Yni.HBt.TOP); public C1230Yni X = new C1230Yni(this, C1230Yni.HBt.RIGHT); public C1230Yni n = new C1230Yni(this, C1230Yni.HBt.BOTTOM); /* renamed from: o, reason: collision with root package name */ public C1230Yni f9277o = new C1230Yni(this, C1230Yni.HBt.BASELINE); private C1230Yni aj = new C1230Yni(this, C1230Yni.HBt.CENTER_X); private C1230Yni aq = new C1230Yni(this, C1230Yni.HBt.CENTER_Y); /* renamed from: o.tNn$LWm */ /* loaded from: classes.dex */ public enum LWm { FIXED, WRAP_CONTENT, MATCH_CONSTRAINT, MATCH_PARENT } public final void t() { this.aN = false; this.aU = false; this.j = false; this.al = false; int size = this.i.size(); for (int i = 0; i < size; i++) { C1230Yni c1230Yni = this.i.get(i); c1230Yni.d = false; c1230Yni.c = 0; } } public final boolean d(int i) { if (i == 0) { return (this.D.f != null ? 1 : 0) + (this.X.f != null ? 1 : 0) < 2; } return ((this.V.f != null ? 1 : 0) + (this.n.f != null ? 1 : 0)) + (this.f9277o.f != null ? 1 : 0) < 2; } public final boolean b(int i, int i2) { if (i == 0) { if (this.D.f == null || !this.D.f.d || this.X.f == null || !this.X.f.d) { return false; } C1230Yni c1230Yni = this.X.f; int i3 = !c1230Yni.d ? 0 : c1230Yni.c; int e = this.X.e(); C1230Yni c1230Yni2 = this.D.f; return (i3 - e) - ((!c1230Yni2.d ? 0 : c1230Yni2.c) + this.D.e()) >= i2; } if (this.V.f == null || !this.V.f.d || this.n.f == null || !this.n.f.d) { return false; } C1230Yni c1230Yni3 = this.n.f; int i4 = !c1230Yni3.d ? 0 : c1230Yni3.c; int e2 = this.n.e(); C1230Yni c1230Yni4 = this.V.f; return (i4 - e2) - ((!c1230Yni4.d ? 0 : c1230Yni4.c) + this.V.e()) >= i2; } public void m() { this.D.a(); this.V.a(); this.X.a(); this.n.a(); this.f9277o.a(); this.aj.a(); this.aq.a(); this.m.a(); this.S = null; this.an = BitmapDescriptorFactory.HUE_RED; this.ac = 0; this.p = 0; this.s = BitmapDescriptorFactory.HUE_RED; this.q = -1; this.ag = 0; this.ah = 0; this.aD = 0; this.aC = 0; this.k = 0; this.R = 0; this.Q = 0; this.u = 0.5f; this.T = 0.5f; this.B[0] = LWm.FIXED; this.B[1] = LWm.FIXED; this.t = null; this.ao = 0; this.Z = 0; this.aH = null; this.ax = false; this.aO = false; this.x = 0; this.W = 0; this.au = false; this.aM = false; float[] fArr = this.ab; fArr[0] = -1.0f; fArr[1] = -1.0f; this.v = -1; this.aa = -1; int[] iArr = this.J; iArr[0] = Integer.MAX_VALUE; iArr[1] = Integer.MAX_VALUE; this.H = 0; this.I = 0; this.M = 1.0f; this.K = 1.0f; this.E = Integer.MAX_VALUE; this.F = Integer.MAX_VALUE; this.L = 0; this.N = 0; this.aL = false; this.aJ = -1; this.aE = 1.0f; this.at = false; boolean[] zArr = this.am; zArr[0] = true; zArr[1] = true; this.w = false; boolean[] zArr2 = this.y; zArr2[0] = false; zArr2[1] = false; this.O = true; int[] iArr2 = this.U; iArr2[0] = 0; iArr2[1] = 0; this.aP = -1; this.as = -1; } public C17026tNn() { C1230Yni c1230Yni = new C1230Yni(this, C1230Yni.HBt.CENTER); this.m = c1230Yni; this.C = new C1230Yni[]{this.D, this.X, this.V, this.n, this.f9277o, c1230Yni}; this.i = new ArrayList<>(); this.y = new boolean[2]; this.B = new LWm[]{LWm.FIXED, LWm.FIXED}; this.S = null; this.ac = 0; this.p = 0; this.s = BitmapDescriptorFactory.HUE_RED; this.q = -1; this.ag = 0; this.ah = 0; this.aF = 0; this.aG = 0; this.aD = 0; this.aC = 0; this.k = 0; this.u = 0.5f; this.T = 0.5f; this.ao = 0; this.Z = 0; this.l = false; this.r = null; this.aH = null; this.at = false; this.x = 0; this.W = 0; this.ab = new float[]{-1.0f, -1.0f}; this.G = new C17026tNn[]{null, null}; this.P = new C17026tNn[]{null, null}; this.ay = null; this.aQ = null; this.f = -1; this.af = -1; this.i.add(this.D); this.i.add(this.V); this.i.add(this.X); this.i.add(this.n); this.i.add(this.aj); this.i.add(this.aq); this.i.add(this.m); this.i.add(this.f9277o); } public final void g_() { if (this.h == null) { this.h = new Vlp(this); } if (this.ak == null) { this.ak = new UhD(this); } } public void d(ogI ogi) { C1230Yni c1230Yni = this.D; EsB esB = c1230Yni.h; if (esB == null) { c1230Yni.h = new EsB(EsB.RVV.UNRESTRICTED); } else { esB.c(); } C1230Yni c1230Yni2 = this.V; EsB esB2 = c1230Yni2.h; if (esB2 == null) { c1230Yni2.h = new EsB(EsB.RVV.UNRESTRICTED); } else { esB2.c(); } C1230Yni c1230Yni3 = this.X; EsB esB3 = c1230Yni3.h; if (esB3 == null) { c1230Yni3.h = new EsB(EsB.RVV.UNRESTRICTED); } else { esB3.c(); } C1230Yni c1230Yni4 = this.n; EsB esB4 = c1230Yni4.h; if (esB4 == null) { c1230Yni4.h = new EsB(EsB.RVV.UNRESTRICTED); } else { esB4.c(); } C1230Yni c1230Yni5 = this.f9277o; EsB esB5 = c1230Yni5.h; if (esB5 == null) { c1230Yni5.h = new EsB(EsB.RVV.UNRESTRICTED); } else { esB5.c(); } C1230Yni c1230Yni6 = this.m; EsB esB6 = c1230Yni6.h; if (esB6 == null) { c1230Yni6.h = new EsB(EsB.RVV.UNRESTRICTED); } else { esB6.c(); } C1230Yni c1230Yni7 = this.aj; EsB esB7 = c1230Yni7.h; if (esB7 == null) { c1230Yni7.h = new EsB(EsB.RVV.UNRESTRICTED); } else { esB7.c(); } C1230Yni c1230Yni8 = this.aq; EsB esB8 = c1230Yni8.h; if (esB8 == null) { c1230Yni8.h = new EsB(EsB.RVV.UNRESTRICTED); } else { esB8.c(); } } public final void b(C17026tNn c17026tNn, float f, int i) { e(C1230Yni.HBt.CENTER).b(c17026tNn.e(C1230Yni.HBt.CENTER), i, 0, true); this.an = f; } public final void d(Npn npn) { npn.b(this.D); npn.b(this.V); npn.b(this.X); npn.b(this.n); if (this.k > 0) { npn.b(this.f9277o); } } public String toString() { String str; StringBuilder sb = new StringBuilder(); String str2 = ""; if (this.aH != null) { StringBuilder sb2 = new StringBuilder("type: "); sb2.append(this.aH); sb2.append(" "); str = sb2.toString(); } else { str = ""; } sb.append(str); if (this.r != null) { StringBuilder sb3 = new StringBuilder("id: "); sb3.append(this.r); sb3.append(" "); str2 = sb3.toString(); } sb.append(str2); sb.append("("); sb.append(this.ag); sb.append(", "); sb.append(this.ah); sb.append(") - ("); sb.append(this.ac); sb.append(" x "); sb.append(this.p); sb.append(")"); return sb.toString(); } public final int f() { C17026tNn c17026tNn = this.S; return (c17026tNn == null || !(c17026tNn instanceof WqU)) ? this.ag : ((WqU) c17026tNn).ap + this.ag; } public final int l() { C17026tNn c17026tNn = this.S; return (c17026tNn == null || !(c17026tNn instanceof WqU)) ? this.ah : ((WqU) c17026tNn).as + this.ah; } public final int h_() { return f() + this.ac; } public final int h() { return l() + this.p; } /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:38:0x0082 -> B:31:0x0083). Please report as a decompilation issue!!! */ public final void c(String str) { float f; int i = 0; if (str == null || str.length() == 0) { this.s = BitmapDescriptorFactory.HUE_RED; return; } int length = str.length(); int indexOf = str.indexOf(44); int i2 = -1; int i3 = 0; if (indexOf > 0 && indexOf < length - 1) { String substring = str.substring(0, indexOf); if (substring.equalsIgnoreCase("W")) { i2 = 0; } else if (substring.equalsIgnoreCase("H")) { i2 = 1; } i3 = indexOf + 1; } int indexOf2 = str.indexOf(58); if (indexOf2 >= 0 && indexOf2 < length - 1) { String substring2 = str.substring(i3, indexOf2); String substring3 = str.substring(indexOf2 + 1); if (substring2.length() > 0 && substring3.length() > 0) { float parseFloat = Float.parseFloat(substring2); float parseFloat2 = Float.parseFloat(substring3); if (parseFloat > BitmapDescriptorFactory.HUE_RED && parseFloat2 > BitmapDescriptorFactory.HUE_RED) { if (i2 == 1) { f = Math.abs(parseFloat2 / parseFloat); } else { f = Math.abs(parseFloat / parseFloat2); } } } f = i; } else { String substring4 = str.substring(i3); if (substring4.length() > 0) { f = Float.parseFloat(substring4); } f = i; } i = (f > i ? 1 : (f == i ? 0 : -1)); if (i > 0) { this.s = f; this.q = i2; } } /* JADX INFO: Access modifiers changed from: package-private */ public final void d(C1230Yni.HBt hBt, C17026tNn c17026tNn, C1230Yni.HBt hBt2, int i) { boolean z; if (hBt == C1230Yni.HBt.CENTER) { if (hBt2 == C1230Yni.HBt.CENTER) { C1230Yni e = e(C1230Yni.HBt.LEFT); C1230Yni e2 = e(C1230Yni.HBt.RIGHT); C1230Yni e3 = e(C1230Yni.HBt.TOP); C1230Yni e4 = e(C1230Yni.HBt.BOTTOM); boolean z2 = true; if ((e == null || e.f == null) && (e2 == null || e2.f == null)) { d(C1230Yni.HBt.LEFT, c17026tNn, C1230Yni.HBt.LEFT, 0); d(C1230Yni.HBt.RIGHT, c17026tNn, C1230Yni.HBt.RIGHT, 0); z = true; } else { z = false; } if ((e3 == null || e3.f == null) && (e4 == null || e4.f == null)) { d(C1230Yni.HBt.TOP, c17026tNn, C1230Yni.HBt.TOP, 0); d(C1230Yni.HBt.BOTTOM, c17026tNn, C1230Yni.HBt.BOTTOM, 0); } else { z2 = false; } if (z && z2) { e(C1230Yni.HBt.CENTER).b(c17026tNn.e(C1230Yni.HBt.CENTER), 0, PKIFailureInfo.systemUnavail, false); return; } else if (z) { e(C1230Yni.HBt.CENTER_X).b(c17026tNn.e(C1230Yni.HBt.CENTER_X), 0, PKIFailureInfo.systemUnavail, false); return; } else { if (z2) { e(C1230Yni.HBt.CENTER_Y).b(c17026tNn.e(C1230Yni.HBt.CENTER_Y), 0, PKIFailureInfo.systemUnavail, false); return; } return; } } if (hBt2 == C1230Yni.HBt.LEFT || hBt2 == C1230Yni.HBt.RIGHT) { d(C1230Yni.HBt.LEFT, c17026tNn, hBt2, 0); d(C1230Yni.HBt.RIGHT, c17026tNn, hBt2, 0); e(C1230Yni.HBt.CENTER).b(c17026tNn.e(hBt2), 0, PKIFailureInfo.systemUnavail, false); return; } else { if (hBt2 == C1230Yni.HBt.TOP || hBt2 == C1230Yni.HBt.BOTTOM) { d(C1230Yni.HBt.TOP, c17026tNn, hBt2, 0); d(C1230Yni.HBt.BOTTOM, c17026tNn, hBt2, 0); e(C1230Yni.HBt.CENTER).b(c17026tNn.e(hBt2), 0, PKIFailureInfo.systemUnavail, false); return; } return; } } if (hBt == C1230Yni.HBt.CENTER_X && (hBt2 == C1230Yni.HBt.LEFT || hBt2 == C1230Yni.HBt.RIGHT)) { C1230Yni e5 = e(C1230Yni.HBt.LEFT); C1230Yni e6 = c17026tNn.e(hBt2); C1230Yni e7 = e(C1230Yni.HBt.RIGHT); e5.b(e6, 0, PKIFailureInfo.systemUnavail, false); e7.b(e6, 0, PKIFailureInfo.systemUnavail, false); e(C1230Yni.HBt.CENTER_X).b(e6, 0, PKIFailureInfo.systemUnavail, false); return; } if (hBt == C1230Yni.HBt.CENTER_Y && (hBt2 == C1230Yni.HBt.TOP || hBt2 == C1230Yni.HBt.BOTTOM)) { C1230Yni e8 = c17026tNn.e(hBt2); e(C1230Yni.HBt.TOP).b(e8, 0, PKIFailureInfo.systemUnavail, false); e(C1230Yni.HBt.BOTTOM).b(e8, 0, PKIFailureInfo.systemUnavail, false); e(C1230Yni.HBt.CENTER_Y).b(e8, 0, PKIFailureInfo.systemUnavail, false); return; } if (hBt != C1230Yni.HBt.CENTER_X || hBt2 != C1230Yni.HBt.CENTER_X) { if (hBt != C1230Yni.HBt.CENTER_Y || hBt2 != C1230Yni.HBt.CENTER_Y) { C1230Yni e9 = e(hBt); C1230Yni e10 = c17026tNn.e(hBt2); if (e9.e(e10)) { if (hBt == C1230Yni.HBt.BASELINE) { C1230Yni e11 = e(C1230Yni.HBt.TOP); C1230Yni e12 = e(C1230Yni.HBt.BOTTOM); if (e11 != null) { e11.a(); } if (e12 != null) { e12.a(); } } else if (hBt == C1230Yni.HBt.TOP || hBt == C1230Yni.HBt.BOTTOM) { C1230Yni e13 = e(C1230Yni.HBt.BASELINE); if (e13 != null) { e13.a(); } C1230Yni e14 = e(C1230Yni.HBt.CENTER); if (e14.f != e10) { e14.a(); } C1230Yni b = e(hBt).b(); C1230Yni e15 = e(C1230Yni.HBt.CENTER_Y); if (e15.f != null) { b.a(); e15.a(); } } else if (hBt == C1230Yni.HBt.LEFT || hBt == C1230Yni.HBt.RIGHT) { C1230Yni e16 = e(C1230Yni.HBt.CENTER); if (e16.f != e10) { e16.a(); } C1230Yni b2 = e(hBt).b(); C1230Yni e17 = e(C1230Yni.HBt.CENTER_X); if (e17.f != null) { b2.a(); e17.a(); } } e9.b(e10, i, PKIFailureInfo.systemUnavail, false); return; } return; } e(C1230Yni.HBt.TOP).b(c17026tNn.e(C1230Yni.HBt.TOP), 0, PKIFailureInfo.systemUnavail, false); e(C1230Yni.HBt.BOTTOM).b(c17026tNn.e(C1230Yni.HBt.BOTTOM), 0, PKIFailureInfo.systemUnavail, false); e(C1230Yni.HBt.CENTER_Y).b(c17026tNn.e(hBt2), 0, PKIFailureInfo.systemUnavail, false); return; } e(C1230Yni.HBt.LEFT).b(c17026tNn.e(C1230Yni.HBt.LEFT), 0, PKIFailureInfo.systemUnavail, false); e(C1230Yni.HBt.RIGHT).b(c17026tNn.e(C1230Yni.HBt.RIGHT), 0, PKIFailureInfo.systemUnavail, false); e(C1230Yni.HBt.CENTER_X).b(c17026tNn.e(hBt2), 0, PKIFailureInfo.systemUnavail, false); } public final void s() { q(); this.T = 0.5f; this.u = 0.5f; } public C1230Yni e(C1230Yni.HBt hBt) { switch (AnonymousClass3.d[hBt.ordinal()]) { case 1: return this.D; case 2: return this.V; case 3: return this.X; case 4: return this.n; case 5: return this.f9277o; case 6: return this.m; case 7: return this.aj; case 8: return this.aq; case 9: return null; default: throw new AssertionError(hBt.name()); } } public final boolean o() { if (this.D.f == null || this.D.f.f != this.D) { return this.X.f != null && this.X.f.f == this.X; } return true; } public final C17026tNn e(int i) { if (i == 0) { if (this.D.f == null) { return null; } C1230Yni c1230Yni = this.D.f.f; C1230Yni c1230Yni2 = this.D; if (c1230Yni == c1230Yni2) { return c1230Yni2.f.i; } return null; } if (i != 1 || this.V.f == null) { return null; } C1230Yni c1230Yni3 = this.V.f.f; C1230Yni c1230Yni4 = this.V; if (c1230Yni3 == c1230Yni4) { return c1230Yni4.f.i; } return null; } public final C17026tNn b(int i) { if (i == 0) { if (this.X.f == null) { return null; } C1230Yni c1230Yni = this.X.f.f; C1230Yni c1230Yni2 = this.X; if (c1230Yni == c1230Yni2) { return c1230Yni2.f.i; } return null; } if (i != 1 || this.n.f == null) { return null; } C1230Yni c1230Yni3 = this.n.f.f; C1230Yni c1230Yni4 = this.n; if (c1230Yni3 == c1230Yni4) { return c1230Yni4.f.i; } return null; } public final boolean k() { if (this.V.f == null || this.V.f.f != this.V) { return this.n.f != null && this.n.f.f == this.n; } return true; } private boolean k(int i) { int i2 = i << 1; if (this.C[i2].f != null) { C1230Yni c1230Yni = this.C[i2].f.f; C1230Yni[] c1230YniArr = this.C; if (c1230Yni != c1230YniArr[i2]) { int i3 = i2 + 1; if (c1230YniArr[i3].f != null && this.C[i3].f.f == this.C[i3]) { return true; } } } return false; } /* JADX WARN: Code restructure failed: missing block: B:368:0x00de, code lost: if (r3 > (!r8.d ? 0 : r8.c)) goto L65; */ /* JADX WARN: Code restructure failed: missing block: B:379:0x010b, code lost: if (r2 > (!r3.d ? 0 : r3.c)) goto L79; */ /* JADX WARN: Code restructure failed: missing block: B:409:0x0174, code lost: if (r2 > (!r3.d ? 0 : r3.c)) goto L107; */ /* JADX WARN: Code restructure failed: missing block: B:420:0x01a1, code lost: if (r2 > (!r3.d ? 0 : r3.c)) goto L121; */ /* JADX WARN: Removed duplicated region for block: B:108:0x030e */ /* JADX WARN: Removed duplicated region for block: B:111:0x0315 */ /* JADX WARN: Removed duplicated region for block: B:114:0x031e */ /* JADX WARN: Removed duplicated region for block: B:117:0x0329 */ /* JADX WARN: Removed duplicated region for block: B:188:0x048c */ /* JADX WARN: Removed duplicated region for block: B:193:0x0499 */ /* JADX WARN: Removed duplicated region for block: B:199:0x04ae */ /* JADX WARN: Removed duplicated region for block: B:203:0x04b9 */ /* JADX WARN: Removed duplicated region for block: B:206:0x04c4 */ /* JADX WARN: Removed duplicated region for block: B:209:0x04db */ /* JADX WARN: Removed duplicated region for block: B:229:0x052f */ /* JADX WARN: Removed duplicated region for block: B:232:0x053e */ /* JADX WARN: Removed duplicated region for block: B:235:0x0568 */ /* JADX WARN: Removed duplicated region for block: B:238:0x05d2 */ /* JADX WARN: Removed duplicated region for block: B:23:0x0074 */ /* JADX WARN: Removed duplicated region for block: B:254:0x0650 A[ADDED_TO_REGION] */ /* JADX WARN: Removed duplicated region for block: B:277:0x06eb */ /* JADX WARN: Removed duplicated region for block: B:281:0x0737 */ /* JADX WARN: Removed duplicated region for block: B:286:0x0774 */ /* JADX WARN: Removed duplicated region for block: B:290:0x076c */ /* JADX WARN: Removed duplicated region for block: B:291:0x06ee */ /* JADX WARN: Removed duplicated region for block: B:310:0x063c */ /* JADX WARN: Removed duplicated region for block: B:311:0x056b */ /* JADX WARN: Removed duplicated region for block: B:312:0x0546 */ /* JADX WARN: Removed duplicated region for block: B:313:0x0538 */ /* JADX WARN: Removed duplicated region for block: B:315:0x04c8 */ /* JADX WARN: Removed duplicated region for block: B:316:0x04bc */ /* JADX WARN: Removed duplicated region for block: B:31:0x008b A[SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:341:0x0458 */ /* JADX WARN: Removed duplicated region for block: B:344:0x046e */ /* JADX WARN: Removed duplicated region for block: B:346:0x032b */ /* JADX WARN: Removed duplicated region for block: B:347:0x0320 */ /* JADX WARN: Removed duplicated region for block: B:350:0x0304 */ /* JADX WARN: Removed duplicated region for block: B:352:0x00a1 */ /* JADX WARN: Removed duplicated region for block: B:389:0x0122 */ /* JADX WARN: Removed duplicated region for block: B:73:0x0255 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public void d(o.Npn r51, boolean r52) { /* Method dump skipped, instructions count: 2104 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C17026tNn.d(o.Npn, boolean):void"); } /* JADX WARN: Code restructure failed: missing block: B:137:0x03fd, code lost: if ((r5 instanceof o.kpn) != false) goto L262; */ /* JADX WARN: Removed duplicated region for block: B:115:0x037f */ /* JADX WARN: Removed duplicated region for block: B:124:0x03d8 */ /* JADX WARN: Removed duplicated region for block: B:130:0x03eb */ /* JADX WARN: Removed duplicated region for block: B:149:0x043f */ /* JADX WARN: Removed duplicated region for block: B:179:0x048c */ /* JADX WARN: Removed duplicated region for block: B:185:0x049c A[ADDED_TO_REGION] */ /* JADX WARN: Removed duplicated region for block: B:199:0x041b */ /* JADX WARN: Removed duplicated region for block: B:201:0x03e7 */ /* JADX WARN: Removed duplicated region for block: B:203:0x03c6 */ /* JADX WARN: Removed duplicated region for block: B:276:0x04d8 A[ADDED_TO_REGION] */ /* JADX WARN: Removed duplicated region for block: B:302:? A[ADDED_TO_REGION, RETURN, SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:304:0x00e5 */ /* JADX WARN: Removed duplicated region for block: B:35:0x00a0 */ /* JADX WARN: Removed duplicated region for block: B:37:0x00a5 */ /* JADX WARN: Removed duplicated region for block: B:45:0x00be */ /* JADX WARN: Removed duplicated region for block: B:55:0x01d4 A[ADDED_TO_REGION] */ /* JADX WARN: Removed duplicated region for block: B:62:0x04b8 A[ADDED_TO_REGION] */ /* JADX WARN: Removed duplicated region for block: B:73:? A[ADDED_TO_REGION, RETURN, SYNTHETIC] */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private void b(o.Npn r37, boolean r38, boolean r39, boolean r40, boolean r41, o.EsB r42, o.EsB r43, o.C17026tNn.LWm r44, boolean r45, o.C1230Yni r46, o.C1230Yni r47, int r48, int r49, int r50, int r51, float r52, boolean r53, boolean r54, boolean r55, boolean r56, boolean r57, int r58, int r59, int r60, int r61, float r62, boolean r63) { /* Method dump skipped, instructions count: 1306 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C17026tNn.b(o.Npn, boolean, boolean, boolean, boolean, o.EsB, o.EsB, o.tNn$LWm, boolean, o.Yni, o.Yni, int, int, int, int, float, boolean, boolean, boolean, boolean, boolean, int, int, int, int, float, boolean):void"); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.tNn$3, reason: invalid class name */ /* loaded from: classes.dex */ public static /* synthetic */ class AnonymousClass3 { static final int[] d; static final int[] e; static { int[] iArr = new int[LWm.values().length]; e = iArr; try { iArr[LWm.FIXED.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { e[LWm.WRAP_CONTENT.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { e[LWm.MATCH_PARENT.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { e[LWm.MATCH_CONSTRAINT.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } int[] iArr2 = new int[C1230Yni.HBt.values().length]; d = iArr2; try { iArr2[C1230Yni.HBt.LEFT.ordinal()] = 1; } catch (NoSuchFieldError unused5) { } try { d[C1230Yni.HBt.TOP.ordinal()] = 2; } catch (NoSuchFieldError unused6) { } try { d[C1230Yni.HBt.RIGHT.ordinal()] = 3; } catch (NoSuchFieldError unused7) { } try { d[C1230Yni.HBt.BOTTOM.ordinal()] = 4; } catch (NoSuchFieldError unused8) { } try { d[C1230Yni.HBt.BASELINE.ordinal()] = 5; } catch (NoSuchFieldError unused9) { } try { d[C1230Yni.HBt.CENTER.ordinal()] = 6; } catch (NoSuchFieldError unused10) { } try { d[C1230Yni.HBt.CENTER_X.ordinal()] = 7; } catch (NoSuchFieldError unused11) { } try { d[C1230Yni.HBt.CENTER_Y.ordinal()] = 8; } catch (NoSuchFieldError unused12) { } try { d[C1230Yni.HBt.NONE.ordinal()] = 9; } catch (NoSuchFieldError unused13) { } } } public void e(C17026tNn c17026tNn, HashMap hashMap) { this.v = c17026tNn.v; this.aa = c17026tNn.aa; this.H = c17026tNn.H; this.I = c17026tNn.I; int[] iArr = this.U; int[] iArr2 = c17026tNn.U; iArr[0] = iArr2[0]; iArr[1] = iArr2[1]; this.L = c17026tNn.L; this.E = c17026tNn.E; this.N = c17026tNn.N; this.F = c17026tNn.F; this.K = c17026tNn.K; this.az = c17026tNn.az; this.aB = c17026tNn.aB; this.aJ = c17026tNn.aJ; this.aE = c17026tNn.aE; int[] iArr3 = c17026tNn.J; this.J = Arrays.copyOf(iArr3, iArr3.length); this.an = c17026tNn.an; this.d = c17026tNn.d; this.g = c17026tNn.g; this.D.a(); this.V.a(); this.X.a(); this.n.a(); this.f9277o.a(); this.aj.a(); this.aq.a(); this.m.a(); this.B = (LWm[]) Arrays.copyOf(this.B, 2); this.S = this.S == null ? null : hashMap.get(c17026tNn.S); this.ac = c17026tNn.ac; this.p = c17026tNn.p; this.s = c17026tNn.s; this.q = c17026tNn.q; this.ag = c17026tNn.ag; this.ah = c17026tNn.ah; this.aF = c17026tNn.aF; this.aG = c17026tNn.aG; this.aD = c17026tNn.aD; this.aC = c17026tNn.aC; this.k = c17026tNn.k; this.R = c17026tNn.R; this.Q = c17026tNn.Q; this.u = c17026tNn.u; this.T = c17026tNn.T; this.t = c17026tNn.t; this.ao = c17026tNn.ao; this.Z = c17026tNn.Z; this.l = c17026tNn.l; this.r = c17026tNn.r; this.aH = c17026tNn.aH; this.av = c17026tNn.av; this.ap = c17026tNn.ap; this.aw = c17026tNn.aw; this.ar = c17026tNn.ar; this.aA = c17026tNn.aA; this.aK = c17026tNn.aK; this.aI = c17026tNn.aI; this.ai = c17026tNn.ai; this.ax = c17026tNn.ax; this.aO = c17026tNn.aO; this.x = c17026tNn.x; this.W = c17026tNn.W; this.au = c17026tNn.au; this.aM = c17026tNn.aM; float[] fArr = this.ab; float[] fArr2 = c17026tNn.ab; fArr[0] = fArr2[0]; fArr[1] = fArr2[1]; C17026tNn[] c17026tNnArr = this.G; C17026tNn[] c17026tNnArr2 = c17026tNn.G; c17026tNnArr[0] = c17026tNnArr2[0]; c17026tNnArr[1] = c17026tNnArr2[1]; C17026tNn[] c17026tNnArr3 = this.P; C17026tNn[] c17026tNnArr4 = c17026tNn.P; c17026tNnArr3[0] = c17026tNnArr4[0]; c17026tNnArr3[1] = c17026tNnArr4[1]; C17026tNn c17026tNn2 = c17026tNn.ay; this.ay = c17026tNn2 == null ? null : hashMap.get(c17026tNn2); C17026tNn c17026tNn3 = c17026tNn.aQ; this.aQ = c17026tNn3 != null ? hashMap.get(c17026tNn3) : null; } public final void b(WqU wqU, Npn npn, HashSet hashSet, int i, boolean z) { if (z) { if (!hashSet.contains(this)) { return; } Cdx.c(wqU, npn, this); hashSet.remove(this); d(npn, (wqU.an & 64) == 64); } if (i == 0) { HashSet hashSet2 = this.D.e; if (hashSet2 != null) { Iterator it = hashSet2.iterator(); while (it.hasNext()) { it.next().i.b(wqU, npn, hashSet, i, true); } } HashSet hashSet3 = this.X.e; if (hashSet3 != null) { Iterator it2 = hashSet3.iterator(); while (it2.hasNext()) { it2.next().i.b(wqU, npn, hashSet, i, true); } return; } return; } HashSet hashSet4 = this.V.e; if (hashSet4 != null) { Iterator it3 = hashSet4.iterator(); while (it3.hasNext()) { it3.next().i.b(wqU, npn, hashSet, i, true); } } HashSet hashSet5 = this.n.e; if (hashSet5 != null) { Iterator it4 = hashSet5.iterator(); while (it4.hasNext()) { it4.next().i.b(wqU, npn, hashSet, i, true); } } HashSet hashSet6 = this.f9277o.e; if (hashSet6 != null) { Iterator it5 = hashSet6.iterator(); while (it5.hasNext()) { it5.next().i.b(wqU, npn, hashSet, i, true); } } } public boolean a() { return this.aN || (this.D.d && this.X.d); } public boolean d() { return this.aU || (this.V.d && this.n.d); } public final void q() { C17026tNn c17026tNn = this.S; if (c17026tNn != null && (c17026tNn instanceof WqU)) { } int size = this.i.size(); for (int i = 0; i < size; i++) { this.i.get(i).a(); } } public final void a(int i) { if (this.d) { int i2 = i - this.k; int i3 = this.p; this.ah = i2; C1230Yni c1230Yni = this.V; c1230Yni.c = i2; c1230Yni.d = true; C1230Yni c1230Yni2 = this.n; c1230Yni2.c = i3 + i2; c1230Yni2.d = true; C1230Yni c1230Yni3 = this.f9277o; c1230Yni3.c = i; c1230Yni3.d = true; this.aU = true; } } public final void a(int i, int i2) { if (this.aN) { return; } C1230Yni c1230Yni = this.D; c1230Yni.c = i; c1230Yni.d = true; C1230Yni c1230Yni2 = this.X; c1230Yni2.c = i2; c1230Yni2.d = true; this.ag = i; this.ac = i2 - i; this.aN = true; } public final void r() { C1230Yni c1230Yni = this.D; c1230Yni.c = 0; c1230Yni.d = true; this.ag = 0; } public final void p() { C1230Yni c1230Yni = this.V; c1230Yni.c = 0; c1230Yni.d = true; this.ah = 0; } public final void c(int i, int i2) { if (this.aU) { return; } C1230Yni c1230Yni = this.V; c1230Yni.c = i; c1230Yni.d = true; C1230Yni c1230Yni2 = this.n; c1230Yni2.c = i2; c1230Yni2.d = true; this.ah = i; this.p = i2 - i; if (this.d) { C1230Yni c1230Yni3 = this.f9277o; c1230Yni3.c = i + this.k; c1230Yni3.d = true; } this.aU = true; } public void d(boolean z, boolean z2) { int i; int i2; boolean z3 = z & this.h.j; boolean z4 = z2 & this.ak.j; int i3 = this.h.f8108o.l; int i4 = this.ak.f8108o.l; int i5 = this.h.c.l; int i6 = this.ak.c.l; if (i5 - i3 < 0 || i6 - i4 < 0 || i3 == Integer.MIN_VALUE || i3 == Integer.MAX_VALUE || i4 == Integer.MIN_VALUE || i4 == Integer.MAX_VALUE || i5 == Integer.MIN_VALUE || i5 == Integer.MAX_VALUE || i6 == Integer.MIN_VALUE || i6 == Integer.MAX_VALUE) { i3 = 0; i4 = 0; i5 = 0; i6 = 0; } int i7 = i5 - i3; int i8 = i6 - i4; if (z3) { this.ag = i3; } if (z4) { this.ah = i4; } if (this.Z == 8) { this.ac = 0; this.p = 0; return; } if (z3) { if (this.B[0] == LWm.FIXED && i7 < (i2 = this.ac)) { i7 = i2; } this.ac = i7; int i9 = this.R; if (i7 < i9) { this.ac = i9; } } if (z4) { if (this.B[1] == LWm.FIXED && i8 < (i = this.p)) { i8 = i; } this.p = i8; int i10 = this.Q; if (i8 < i10) { this.p = i10; } } } public void a(boolean z) { int i; int i2; UhD uhD; Vlp vlp; EsB esB = this.D.h; int i3 = esB != null ? (int) (esB.c + 0.5f) : 0; EsB esB2 = this.V.h; int i4 = esB2 != null ? (int) (esB2.c + 0.5f) : 0; EsB esB3 = this.X.h; int i5 = esB3 != null ? (int) (esB3.c + 0.5f) : 0; EsB esB4 = this.n.h; int i6 = esB4 != null ? (int) (esB4.c + 0.5f) : 0; if (z && (vlp = this.h) != null && vlp.f8108o.j && this.h.c.j) { i3 = this.h.f8108o.l; i5 = this.h.c.l; } if (z && (uhD = this.ak) != null && uhD.f8108o.j && this.ak.c.j) { i4 = this.ak.f8108o.l; i6 = this.ak.c.l; } if (i5 - i3 < 0 || i6 - i4 < 0 || i3 == Integer.MIN_VALUE || i3 == Integer.MAX_VALUE || i4 == Integer.MIN_VALUE || i4 == Integer.MAX_VALUE || i5 == Integer.MIN_VALUE || i5 == Integer.MAX_VALUE || i6 == Integer.MIN_VALUE || i6 == Integer.MAX_VALUE) { i3 = 0; i6 = 0; i4 = 0; i5 = 0; } int i7 = i5 - i3; int i8 = i6 - i4; this.ag = i3; this.ah = i4; if (this.Z == 8) { this.ac = 0; this.p = 0; return; } if (this.B[0] == LWm.FIXED && i7 < (i2 = this.ac)) { i7 = i2; } if (this.B[1] == LWm.FIXED && i8 < (i = this.p)) { i8 = i; } this.ac = i7; this.p = i8; int i9 = this.Q; if (i8 < i9) { this.p = i9; } int i10 = this.R; if (i7 < i10) { this.ac = i10; } if (this.E > 0 && this.B[0] == LWm.MATCH_CONSTRAINT) { this.ac = Math.min(this.ac, this.E); } if (this.F > 0 && this.B[1] == LWm.MATCH_CONSTRAINT) { this.p = Math.min(this.p, this.F); } int i11 = this.ac; if (i7 != i11) { this.aP = i11; } int i12 = this.p; if (i8 != i12) { this.as = i12; } } public final void h(int i) { this.ah = i; } public final void f(int i) { this.ag = i; } public final void i(int i) { this.ac = i; int i2 = this.R; if (i < i2) { this.ac = i2; } } public final void b(int i, int i2, int i3, float f) { this.I = i; this.N = i2; if (i3 == Integer.MAX_VALUE) { i3 = 0; } this.F = i3; this.K = f; if (f <= BitmapDescriptorFactory.HUE_RED || f >= 1.0f || i != 0) { return; } this.I = 2; } public final void f(int i, int i2) { this.ah = i; int i3 = i2 - i; this.p = i3; int i4 = this.Q; if (i3 < i4) { this.p = i4; } } public final void d(int i, int i2) { this.ag = i; this.ah = i2; } public final void g(int i) { if (i < 0) { this.R = 0; } else { this.R = i; } } public final void j(int i) { if (i < 0) { this.Q = 0; } else { this.Q = i; } } public final void c(int i, int i2, int i3, float f) { this.H = i; this.L = i2; if (i3 == Integer.MAX_VALUE) { i3 = 0; } this.E = i3; this.M = f; if (f <= BitmapDescriptorFactory.HUE_RED || f >= 1.0f || i != 0) { return; } this.H = 2; } public final void e(int i, int i2) { this.ag = i; int i3 = i2 - i; this.ac = i3; int i4 = this.R; if (i3 < i4) { this.ac = i4; } } public final void c(int i) { this.p = i; int i2 = this.Q; if (i < i2) { this.p = i2; } } public final boolean n() { return (this.aP == -1 && this.as == -1) ? false : true; } public final int i() { return this.R; } public final int g() { return this.Q; } public boolean c() { return this.Z != 8; } }