package androidx.constraintlayout.widget; import android.content.Context; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Paint; import android.util.AttributeSet; import android.util.SparseArray; import android.util.SparseIntArray; import android.view.View; import android.view.ViewGroup; import androidx.constraintlayout.widget.Constraints; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.util.ArrayList; import java.util.HashMap; import o.AtR; import o.C1230Yni; import o.C16458oZD; import o.C17026tNn; import o.C2832alz; import o.C3345avm; import o.Cdx; import o.Npn; import o.WAE; import o.WqU; import o.ZXE; import o.miy; import o.yqQ; import o.zvH; import okhttp3.internal.http2.Http2Connection; import org.bouncycastle.asn1.cmp.PKIFailureInfo; /* loaded from: classes.dex */ public class ConstraintLayout extends ViewGroup { private static miy e; public boolean A; private yqQ a; private int b; private ArrayList c; private AtR d; private int f; private HashMap g; private int h; private int i; private int j; private int k; private int l; private LWm m; private int n; /* renamed from: o, reason: collision with root package name */ private int f6382o; private int p; private int q; private int r; private int s; private int t; public SparseArray w; private SparseArray x; public C2832alz y; public WqU z; @Override // android.view.ViewGroup public boolean shouldDelayChildPressedState() { return false; } public static miy d() { if (e == null) { e = new miy(); } return e; } public void setDesignInformation(int i, Object obj, Object obj2) { if (i == 0 && (obj instanceof String) && (obj2 instanceof Integer)) { if (this.g == null) { this.g = new HashMap<>(); } String str = (String) obj; int indexOf = str.indexOf("/"); if (indexOf != -1) { str = str.substring(indexOf + 1); } this.g.put(str, Integer.valueOf(((Integer) obj2).intValue())); } } public final Object e(Object obj) { if (!(obj instanceof String)) { return null; } String str = (String) obj; HashMap hashMap = this.g; if (hashMap == null || !hashMap.containsKey(str)) { return null; } return this.g.get(str); } public ConstraintLayout(Context context) { super(context); this.w = new SparseArray<>(); this.c = new ArrayList<>(4); this.z = new WqU(); this.r = 0; this.t = 0; this.n = Integer.MAX_VALUE; this.f6382o = Integer.MAX_VALUE; this.A = true; this.p = 257; this.a = null; this.y = null; this.b = -1; this.g = new HashMap<>(); this.j = -1; this.f = -1; this.l = -1; this.h = -1; this.k = 0; this.i = 0; this.x = new SparseArray<>(); this.m = new LWm(this, this); this.s = 0; this.q = 0; lg_(null, 0); } public ConstraintLayout(Context context, AttributeSet attributeSet) { super(context, attributeSet); this.w = new SparseArray<>(); this.c = new ArrayList<>(4); this.z = new WqU(); this.r = 0; this.t = 0; this.n = Integer.MAX_VALUE; this.f6382o = Integer.MAX_VALUE; this.A = true; this.p = 257; this.a = null; this.y = null; this.b = -1; this.g = new HashMap<>(); this.j = -1; this.f = -1; this.l = -1; this.h = -1; this.k = 0; this.i = 0; this.x = new SparseArray<>(); this.m = new LWm(this, this); this.s = 0; this.q = 0; lg_(attributeSet, 0); } public ConstraintLayout(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); this.w = new SparseArray<>(); this.c = new ArrayList<>(4); this.z = new WqU(); this.r = 0; this.t = 0; this.n = Integer.MAX_VALUE; this.f6382o = Integer.MAX_VALUE; this.A = true; this.p = 257; this.a = null; this.y = null; this.b = -1; this.g = new HashMap<>(); this.j = -1; this.f = -1; this.l = -1; this.h = -1; this.k = 0; this.i = 0; this.x = new SparseArray<>(); this.m = new LWm(this, this); this.s = 0; this.q = 0; lg_(attributeSet, i); } @Override // android.view.View public void setId(int i) { this.w.remove(getId()); super.setId(i); this.w.put(getId(), this); } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public class LWm implements zvH.RVV { int a; private int b; private ConstraintLayout c; final ConstraintLayout d; int e; private int f; private int g; private int i; public LWm(ConstraintLayout constraintLayout, ConstraintLayout constraintLayout2) { this.d = constraintLayout; this.c = constraintLayout2; } private static boolean b(int i, int i2, int i3) { if (i == i2) { return true; } int mode = View.MeasureSpec.getMode(i); View.MeasureSpec.getSize(i); int mode2 = View.MeasureSpec.getMode(i2); int size = View.MeasureSpec.getSize(i2); if (mode2 == 1073741824) { return (mode == Integer.MIN_VALUE || mode == 0) && i3 == size; } return false; } @Override // o.zvH.RVV public final void e() { int childCount = this.c.getChildCount(); for (int i = 0; i < childCount; i++) { View childAt = this.c.getChildAt(i); if (childAt instanceof Placeholder) { Placeholder placeholder = (Placeholder) childAt; if (placeholder.c != null) { Sts sts = (Sts) placeholder.getLayoutParams(); Sts sts2 = (Sts) placeholder.c.getLayoutParams(); sts2.as.Z = 0; if (sts.as.B[0] != C17026tNn.LWm.FIXED) { C17026tNn c17026tNn = sts.as; C17026tNn c17026tNn2 = sts2.as; c17026tNn.i(c17026tNn2.Z == 8 ? 0 : c17026tNn2.ac); } if (sts.as.B[1] != C17026tNn.LWm.FIXED) { C17026tNn c17026tNn3 = sts.as; C17026tNn c17026tNn4 = sts2.as; c17026tNn3.c(c17026tNn4.Z == 8 ? 0 : c17026tNn4.p); } sts2.as.Z = 8; } } } int size = this.c.c.size(); if (size > 0) { for (int i2 = 0; i2 < size; i2++) { } } } @Override // o.zvH.RVV public final void a(C17026tNn c17026tNn, zvH.Sts sts) { int makeMeasureSpec; int makeMeasureSpec2; int baseline; int max; int i; int i2; boolean z; int measuredHeight; int i3; if (c17026tNn == null) { return; } if (c17026tNn.Z == 8 && !c17026tNn.g) { sts.g = 0; sts.f = 0; sts.d = 0; return; } if (c17026tNn.S == null) { return; } C17026tNn.LWm lWm = sts.e; C17026tNn.LWm lWm2 = sts.h; int i4 = sts.a; int i5 = sts.j; int i6 = this.g + this.f; int i7 = this.e; View view = (View) c17026tNn.t; int i8 = AnonymousClass5.a[lWm.ordinal()]; if (i8 == 1) { makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(i4, 1073741824); } else if (i8 == 2) { makeMeasureSpec = ViewGroup.getChildMeasureSpec(this.i, i7, -2); } else if (i8 == 3) { int i9 = this.i; C1230Yni c1230Yni = c17026tNn.D; int i10 = c1230Yni != null ? c1230Yni.b : 0; C1230Yni c1230Yni2 = c17026tNn.X; if (c1230Yni2 != null) { i10 += c1230Yni2.b; } makeMeasureSpec = ViewGroup.getChildMeasureSpec(i9, i7 + i10, -1); } else if (i8 != 4) { makeMeasureSpec = 0; } else { makeMeasureSpec = ViewGroup.getChildMeasureSpec(this.i, i7, -2); boolean z2 = c17026tNn.H == 1; if (sts.c == 1 || sts.c == 2) { boolean z3 = view.getMeasuredHeight() == (c17026tNn.Z == 8 ? 0 : c17026tNn.p); if (sts.c == 2 || !z2 || ((z2 && z3) || (view instanceof Placeholder) || c17026tNn.a())) { makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(c17026tNn.Z == 8 ? 0 : c17026tNn.ac, 1073741824); } } } int i11 = AnonymousClass5.a[lWm2.ordinal()]; if (i11 == 1) { makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(i5, 1073741824); } else if (i11 == 2) { makeMeasureSpec2 = ViewGroup.getChildMeasureSpec(this.b, i6, -2); } else if (i11 == 3) { int i12 = this.b; int i13 = c17026tNn.D != null ? c17026tNn.V.b : 0; if (c17026tNn.X != null) { i13 += c17026tNn.n.b; } makeMeasureSpec2 = ViewGroup.getChildMeasureSpec(i12, i6 + i13, -1); } else if (i11 != 4) { makeMeasureSpec2 = 0; } else { makeMeasureSpec2 = ViewGroup.getChildMeasureSpec(this.b, i6, -2); boolean z4 = c17026tNn.I == 1; if (sts.c == 1 || sts.c == 2) { boolean z5 = view.getMeasuredWidth() == (c17026tNn.Z == 8 ? 0 : c17026tNn.ac); if (sts.c == 2 || !z4 || ((z4 && z5) || (view instanceof Placeholder) || c17026tNn.d())) { makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(c17026tNn.Z == 8 ? 0 : c17026tNn.p, 1073741824); } } } WqU wqU = (WqU) c17026tNn.S; if (wqU != null && Cdx.c(this.d.p, 256)) { if (view.getMeasuredWidth() == (c17026tNn.Z == 8 ? 0 : c17026tNn.ac)) { if (view.getMeasuredWidth() < (wqU.Z == 8 ? 0 : wqU.ac)) { if (view.getMeasuredHeight() == (c17026tNn.Z == 8 ? 0 : c17026tNn.p)) { if (view.getMeasuredHeight() < (wqU.Z == 8 ? 0 : wqU.p) && view.getBaseline() == c17026tNn.k && (!c17026tNn.O || c17026tNn.Z == 8)) { if (b(c17026tNn.z, makeMeasureSpec, c17026tNn.Z == 8 ? 0 : c17026tNn.ac)) { if (b(c17026tNn.A, makeMeasureSpec2, c17026tNn.Z == 8 ? 0 : c17026tNn.p)) { sts.g = c17026tNn.Z == 8 ? 0 : c17026tNn.ac; sts.f = c17026tNn.Z == 8 ? 0 : c17026tNn.p; sts.d = c17026tNn.k; return; } } } } } } } boolean z6 = lWm == C17026tNn.LWm.MATCH_CONSTRAINT; boolean z7 = lWm2 == C17026tNn.LWm.MATCH_CONSTRAINT; boolean z8 = lWm2 == C17026tNn.LWm.MATCH_PARENT || lWm2 == C17026tNn.LWm.FIXED; boolean z9 = lWm == C17026tNn.LWm.MATCH_PARENT || lWm == C17026tNn.LWm.FIXED; boolean z10 = z6 && c17026tNn.s > BitmapDescriptorFactory.HUE_RED; boolean z11 = z7 && c17026tNn.s > BitmapDescriptorFactory.HUE_RED; if (view == null) { return; } Sts sts2 = (Sts) view.getLayoutParams(); if (sts.c != 1 && sts.c != 2 && z6 && c17026tNn.H == 0 && z7 && c17026tNn.I == 0) { i3 = -1; measuredHeight = 0; z = false; baseline = 0; max = 0; } else { if ((view instanceof VirtualLayout) && (c17026tNn instanceof ZXE)) { ((VirtualLayout) view).d((ZXE) c17026tNn, makeMeasureSpec, makeMeasureSpec2); } else { view.measure(makeMeasureSpec, makeMeasureSpec2); } c17026tNn.z = makeMeasureSpec; c17026tNn.A = makeMeasureSpec2; c17026tNn.O = false; int measuredWidth = view.getMeasuredWidth(); int measuredHeight2 = view.getMeasuredHeight(); baseline = view.getBaseline(); max = c17026tNn.L > 0 ? Math.max(c17026tNn.L, measuredWidth) : measuredWidth; if (c17026tNn.E > 0) { max = Math.min(c17026tNn.E, max); } if (c17026tNn.N > 0) { i2 = Math.max(c17026tNn.N, measuredHeight2); i = makeMeasureSpec2; } else { i = makeMeasureSpec2; i2 = measuredHeight2; } if (c17026tNn.F > 0) { i2 = Math.min(c17026tNn.F, i2); } if (!Cdx.c(this.d.p, 1)) { if (z10 && z8) { max = (int) ((i2 * c17026tNn.s) + 0.5f); } else if (z11 && z9) { i2 = (int) ((max / c17026tNn.s) + 0.5f); } } if (measuredWidth == max && measuredHeight2 == i2) { measuredHeight = i2; i3 = -1; z = false; } else { if (measuredWidth != max) { makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(max, 1073741824); } int makeMeasureSpec3 = measuredHeight2 != i2 ? View.MeasureSpec.makeMeasureSpec(i2, 1073741824) : i; view.measure(makeMeasureSpec, makeMeasureSpec3); c17026tNn.z = makeMeasureSpec; c17026tNn.A = makeMeasureSpec3; z = false; c17026tNn.O = false; int measuredWidth2 = view.getMeasuredWidth(); measuredHeight = view.getMeasuredHeight(); max = measuredWidth2; baseline = view.getBaseline(); i3 = -1; } } boolean z12 = baseline != i3 ? true : z; sts.i = (max == sts.a && measuredHeight == sts.j) ? z : true; if (sts2.W) { z12 = true; } if (z12 && baseline != -1 && c17026tNn.k != baseline) { sts.i = true; } sts.g = max; sts.f = measuredHeight; sts.b = z12; sts.d = baseline; } public final void a(int i, int i2, int i3, int i4, int i5, int i6) { this.g = i3; this.f = i4; this.e = i5; this.a = i6; this.i = i; this.b = i2; } } /* renamed from: androidx.constraintlayout.widget.ConstraintLayout$5, reason: invalid class name */ /* loaded from: classes.dex */ static /* synthetic */ class AnonymousClass5 { static final int[] a; static { int[] iArr = new int[C17026tNn.LWm.values().length]; a = iArr; try { iArr[C17026tNn.LWm.FIXED.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { a[C17026tNn.LWm.WRAP_CONTENT.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { a[C17026tNn.LWm.MATCH_PARENT.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { a[C17026tNn.LWm.MATCH_CONSTRAINT.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } } } protected void e(int i) { this.y = new C2832alz(getContext(), this, i); } @Override // android.view.ViewGroup public void onViewAdded(View view) { super.onViewAdded(view); C17026tNn e2 = e(view); if ((view instanceof Guideline) && !(e2 instanceof WAE)) { Sts sts = (Sts) view.getLayoutParams(); sts.as = new WAE(); sts.I = true; ((WAE) sts.as).o(sts.U); } if (view instanceof ConstraintHelper) { ConstraintHelper constraintHelper = (ConstraintHelper) view; constraintHelper.d(); ((Sts) view.getLayoutParams()).K = true; if (!this.c.contains(constraintHelper)) { this.c.add(constraintHelper); } } this.w.put(view.getId(), view); this.A = true; } @Override // android.view.ViewGroup public void onViewRemoved(View view) { super.onViewRemoved(view); this.w.remove(view.getId()); C17026tNn e2 = e(view); ((C16458oZD) this.z).az.remove(e2); e2.m(); this.c.remove(view); this.A = true; } public void setMinWidth(int i) { if (i == this.r) { return; } this.r = i; requestLayout(); } public void setMinHeight(int i) { if (i == this.t) { return; } this.t = i; requestLayout(); } public void setMaxWidth(int i) { if (i == this.n) { return; } this.n = i; requestLayout(); } public void setMaxHeight(int i) { if (i == this.f6382o) { return; } this.f6382o = i; requestLayout(); } private boolean j() { boolean z; C17026tNn c17026tNn; int childCount = getChildCount(); int i = 0; int i2 = 0; while (true) { if (i2 >= childCount) { z = false; break; } if (getChildAt(i2).isLayoutRequested()) { z = true; break; } i2++; } if (z) { boolean isInEditMode = isInEditMode(); int childCount2 = getChildCount(); for (int i3 = 0; i3 < childCount2; i3++) { C17026tNn e2 = e(getChildAt(i3)); if (e2 != null) { e2.m(); } } int i4 = -1; if (isInEditMode) { for (int i5 = 0; i5 < childCount2; i5++) { View childAt = getChildAt(i5); try { String resourceName = getResources().getResourceName(childAt.getId()); setDesignInformation(0, resourceName, Integer.valueOf(childAt.getId())); int indexOf = resourceName.indexOf(47); if (indexOf != -1) { resourceName = resourceName.substring(indexOf + 1); } int id = childAt.getId(); if (id == 0) { c17026tNn = this.z; } else { View view = this.w.get(id); if (view == null && (view = findViewById(id)) != null && view != this && view.getParent() == this) { onViewAdded(view); } if (view == this) { c17026tNn = this.z; } else { c17026tNn = view == null ? null : ((Sts) view.getLayoutParams()).as; } } c17026tNn.r = resourceName; } catch (Resources.NotFoundException unused) { } } } if (this.b != -1) { int i6 = 0; while (i6 < childCount2) { View childAt2 = getChildAt(i6); if (childAt2.getId() == this.b && (childAt2 instanceof Constraints)) { Constraints constraints = (Constraints) childAt2; if (constraints.d == null) { constraints.d = new yqQ(); } yqQ yqq = constraints.d; int childCount3 = constraints.getChildCount(); yqq.a.clear(); int i7 = i; while (i7 < childCount3) { View childAt3 = constraints.getChildAt(i7); Constraints.HBt hBt = (Constraints.HBt) childAt3.getLayoutParams(); int id2 = childAt3.getId(); if (yqq.e && id2 == i4) { throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet"); } if (!yqq.a.containsKey(Integer.valueOf(id2))) { yqq.a.put(Integer.valueOf(id2), new yqQ.Sts()); } yqQ.Sts sts = yqq.a.get(Integer.valueOf(id2)); if (sts != null) { if (childAt3 instanceof ConstraintHelper) { ConstraintHelper constraintHelper = (ConstraintHelper) childAt3; sts.d(id2, hBt); if (constraintHelper instanceof Barrier) { sts.a.W = 1; Barrier barrier = (Barrier) constraintHelper; sts.a.Q = barrier.d; sts.a.T = barrier.e(); sts.a.S = barrier.a.a; } } sts.d(id2, hBt); } i7++; i4 = -1; } this.a = constraints.d; } i6++; i4 = -1; i = 0; } } yqQ yqq2 = this.a; if (yqq2 != null) { yqq2.a(this); } ((C16458oZD) this.z).az.clear(); int size = this.c.size(); if (size > 0) { for (int i8 = 0; i8 < size; i8++) { this.c.get(i8).c(this); } } for (int i9 = 0; i9 < childCount2; i9++) { View childAt4 = getChildAt(i9); if (childAt4 instanceof Placeholder) { Placeholder placeholder = (Placeholder) childAt4; if (placeholder.d == -1 && !placeholder.isInEditMode()) { placeholder.setVisibility(placeholder.a); } View findViewById = findViewById(placeholder.d); placeholder.c = findViewById; if (findViewById != null) { ((Sts) findViewById.getLayoutParams()).J = true; placeholder.c.setVisibility(0); placeholder.setVisibility(0); } } } this.x.clear(); this.x.put(0, this.z); this.x.put(getId(), this.z); for (int i10 = 0; i10 < childCount2; i10++) { View childAt5 = getChildAt(i10); this.x.put(childAt5.getId(), e(childAt5)); } for (int i11 = 0; i11 < childCount2; i11++) { View childAt6 = getChildAt(i11); C17026tNn e3 = e(childAt6); if (e3 != null) { Sts sts2 = (Sts) childAt6.getLayoutParams(); this.z.c(e3); li_(isInEditMode, childAt6, e3, sts2, this.x); } } } return z; } public final void li_(boolean z, View view, C17026tNn c17026tNn, Sts sts, SparseArray sparseArray) { C17026tNn c17026tNn2; C17026tNn c17026tNn3; C17026tNn c17026tNn4; C17026tNn c17026tNn5; sts.d(); sts.B = false; c17026tNn.Z = view.getVisibility(); if (sts.J) { c17026tNn.g = true; c17026tNn.Z = 8; } c17026tNn.t = view; if (view instanceof ConstraintHelper) { ((ConstraintHelper) view).e(c17026tNn, this.z.aq); } if (sts.I) { WAE wae = (WAE) c17026tNn; int i = sts.Y; int i2 = sts.ab; float f = sts.aa; if (f != -1.0f) { if (f > -1.0f) { wae.ai = f; wae.e = -1; wae.am = -1; return; } return; } if (i != -1) { if (i >= 0) { wae.ai = -1.0f; wae.e = i; wae.am = -1; return; } return; } if (i2 == -1 || i2 < 0) { return; } wae.ai = -1.0f; wae.e = -1; wae.am = i2; return; } int i3 = sts.ae; int i4 = sts.ag; int i5 = sts.af; int i6 = sts.ah; int i7 = sts.ac; int i8 = sts.Z; float f2 = sts.ad; if (sts.i != -1) { C17026tNn c17026tNn6 = sparseArray.get(sts.i); if (c17026tNn6 != null) { c17026tNn.b(c17026tNn6, sts.h, sts.j); } } else { if (i3 != -1) { C17026tNn c17026tNn7 = sparseArray.get(i3); if (c17026tNn7 != null) { c17026tNn.e(C1230Yni.HBt.LEFT).b(c17026tNn7.e(C1230Yni.HBt.LEFT), ((ViewGroup.MarginLayoutParams) sts).leftMargin, i7, true); } } else if (i4 != -1 && (c17026tNn2 = sparseArray.get(i4)) != null) { c17026tNn.e(C1230Yni.HBt.LEFT).b(c17026tNn2.e(C1230Yni.HBt.RIGHT), ((ViewGroup.MarginLayoutParams) sts).leftMargin, i7, true); } if (i5 != -1) { C17026tNn c17026tNn8 = sparseArray.get(i5); if (c17026tNn8 != null) { c17026tNn.e(C1230Yni.HBt.RIGHT).b(c17026tNn8.e(C1230Yni.HBt.LEFT), ((ViewGroup.MarginLayoutParams) sts).rightMargin, i8, true); } } else if (i6 != -1 && (c17026tNn3 = sparseArray.get(i6)) != null) { c17026tNn.e(C1230Yni.HBt.RIGHT).b(c17026tNn3.e(C1230Yni.HBt.RIGHT), ((ViewGroup.MarginLayoutParams) sts).rightMargin, i8, true); } if (sts.an != -1) { C17026tNn c17026tNn9 = sparseArray.get(sts.an); if (c17026tNn9 != null) { c17026tNn.e(C1230Yni.HBt.TOP).b(c17026tNn9.e(C1230Yni.HBt.TOP), ((ViewGroup.MarginLayoutParams) sts).topMargin, sts.z, true); } } else if (sts.aj != -1 && (c17026tNn4 = sparseArray.get(sts.aj)) != null) { c17026tNn.e(C1230Yni.HBt.TOP).b(c17026tNn4.e(C1230Yni.HBt.BOTTOM), ((ViewGroup.MarginLayoutParams) sts).topMargin, sts.z, true); } if (sts.g != -1) { C17026tNn c17026tNn10 = sparseArray.get(sts.g); if (c17026tNn10 != null) { c17026tNn.e(C1230Yni.HBt.BOTTOM).b(c17026tNn10.e(C1230Yni.HBt.TOP), ((ViewGroup.MarginLayoutParams) sts).bottomMargin, sts.x, true); } } else if (sts.b != -1 && (c17026tNn5 = sparseArray.get(sts.b)) != null) { c17026tNn.e(C1230Yni.HBt.BOTTOM).b(c17026tNn5.e(C1230Yni.HBt.BOTTOM), ((ViewGroup.MarginLayoutParams) sts).bottomMargin, sts.x, true); } if (sts.c != -1) { lh_(c17026tNn, sts, sparseArray, sts.c, C1230Yni.HBt.BASELINE); } else if (sts.a != -1) { lh_(c17026tNn, sts, sparseArray, sts.a, C1230Yni.HBt.TOP); } else if (sts.d != -1) { lh_(c17026tNn, sts, sparseArray, sts.d, C1230Yni.HBt.BOTTOM); } if (f2 >= BitmapDescriptorFactory.HUE_RED) { c17026tNn.u = f2; } if (sts.aq >= BitmapDescriptorFactory.HUE_RED) { c17026tNn.T = sts.aq; } } if (z && (sts.q != -1 || sts.s != -1)) { c17026tNn.d(sts.q, sts.s); } if (!sts.G) { if (((ViewGroup.LayoutParams) sts).width == -1) { if (sts.m) { c17026tNn.B[0] = C17026tNn.LWm.MATCH_CONSTRAINT; } else { c17026tNn.B[0] = C17026tNn.LWm.MATCH_PARENT; } c17026tNn.e(C1230Yni.HBt.LEFT).b = ((ViewGroup.MarginLayoutParams) sts).leftMargin; c17026tNn.e(C1230Yni.HBt.RIGHT).b = ((ViewGroup.MarginLayoutParams) sts).rightMargin; } else { c17026tNn.B[0] = C17026tNn.LWm.MATCH_CONSTRAINT; c17026tNn.i(0); } } else { c17026tNn.B[0] = C17026tNn.LWm.FIXED; c17026tNn.i(((ViewGroup.LayoutParams) sts).width); if (((ViewGroup.LayoutParams) sts).width == -2) { c17026tNn.B[0] = C17026tNn.LWm.WRAP_CONTENT; } } if (!sts.ar) { if (((ViewGroup.LayoutParams) sts).height == -1) { if (sts.f) { c17026tNn.B[1] = C17026tNn.LWm.MATCH_CONSTRAINT; } else { c17026tNn.B[1] = C17026tNn.LWm.MATCH_PARENT; } c17026tNn.e(C1230Yni.HBt.TOP).b = ((ViewGroup.MarginLayoutParams) sts).topMargin; c17026tNn.e(C1230Yni.HBt.BOTTOM).b = ((ViewGroup.MarginLayoutParams) sts).bottomMargin; } else { c17026tNn.B[1] = C17026tNn.LWm.MATCH_CONSTRAINT; c17026tNn.c(0); } } else { c17026tNn.B[1] = C17026tNn.LWm.FIXED; c17026tNn.c(((ViewGroup.LayoutParams) sts).height); if (((ViewGroup.LayoutParams) sts).height == -2) { c17026tNn.B[1] = C17026tNn.LWm.WRAP_CONTENT; } } c17026tNn.c(sts.l); c17026tNn.ab[0] = sts.F; c17026tNn.ab[1] = sts.ao; c17026tNn.x = sts.H; c17026tNn.W = sts.ap; int i9 = sts.au; if (i9 >= 0 && i9 <= 3) { c17026tNn.Y = i9; } c17026tNn.c(sts.S, sts.X, sts.Q, sts.T); c17026tNn.b(sts.O, sts.R, sts.P, sts.V); } private void lh_(C17026tNn c17026tNn, Sts sts, SparseArray sparseArray, int i, C1230Yni.HBt hBt) { View view = this.w.get(i); C17026tNn c17026tNn2 = sparseArray.get(i); if (c17026tNn2 == null || view == null || !(view.getLayoutParams() instanceof Sts)) { return; } sts.W = true; if (hBt == C1230Yni.HBt.BASELINE) { Sts sts2 = (Sts) view.getLayoutParams(); sts2.W = true; sts2.as.d = true; } c17026tNn.e(C1230Yni.HBt.BASELINE).b(c17026tNn2.e(hBt), sts.e, sts.r, true); c17026tNn.d = true; c17026tNn.e(C1230Yni.HBt.TOP).a(); c17026tNn.e(C1230Yni.HBt.BOTTOM).a(); } public final C17026tNn e(View view) { if (view == this) { return this.z; } if (view == null) { return null; } if (view.getLayoutParams() instanceof Sts) { return ((Sts) view.getLayoutParams()).as; } view.setLayoutParams(generateLayoutParams(view.getLayoutParams())); if (view.getLayoutParams() instanceof Sts) { return ((Sts) view.getLayoutParams()).as; } return null; } public final void a(WqU wqU, int i, int i2, int i3) { int mode = View.MeasureSpec.getMode(i2); int size = View.MeasureSpec.getSize(i2); int mode2 = View.MeasureSpec.getMode(i3); int size2 = View.MeasureSpec.getSize(i3); int max = Math.max(0, getPaddingTop()); int max2 = Math.max(0, getPaddingBottom()); int i4 = max + max2; int b = b(); this.m.a(i2, i3, max, max2, b, i4); int max3 = Math.max(0, getPaddingStart()); int max4 = Math.max(0, getPaddingEnd()); if (max3 > 0 || max4 > 0) { if (c()) { max3 = max4; } } else { max3 = Math.max(0, getPaddingLeft()); } int i5 = size - b; int i6 = size2 - i4; c(wqU, mode, i5, mode2, i6); wqU.a(i, mode, i5, mode2, i6, max3, max); } public final void e(int i, int i2, int i3, int i4, boolean z, boolean z2) { int i5 = this.m.a; int resolveSizeAndState = resolveSizeAndState(i3 + this.m.e, i, 0); int resolveSizeAndState2 = resolveSizeAndState(i4 + i5, i2, 0); int min = Math.min(this.n, resolveSizeAndState & 16777215); int min2 = Math.min(this.f6382o, resolveSizeAndState2 & 16777215); if (z) { min |= Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE; } if (z2) { min2 |= Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE; } setMeasuredDimension(min, min2); this.j = min; this.f = min2; } @Override // android.view.View public void onMeasure(int i, int i2) { if (!this.A) { int childCount = getChildCount(); int i3 = 0; while (true) { if (i3 >= childCount) { break; } if (getChildAt(i3).isLayoutRequested()) { this.A = true; break; } i3++; } } this.s = i; this.q = i2; this.z.aq = c(); if (this.A) { this.A = false; if (j()) { WqU wqU = this.z; wqU.e.d(wqU); } } a(this.z, this.p, i, i2); WqU wqU2 = this.z; int i4 = wqU2.Z == 8 ? 0 : wqU2.ac; WqU wqU3 = this.z; e(i, i2, i4, wqU3.Z != 8 ? wqU3.p : 0, this.z.at, this.z.am); } public final boolean c() { return (getContext().getApplicationInfo().flags & 4194304) != 0 && 1 == getLayoutDirection(); } private int b() { int max = Math.max(0, getPaddingLeft()) + Math.max(0, getPaddingRight()); int max2 = Math.max(0, getPaddingStart()) + Math.max(0, getPaddingEnd()); return max2 > 0 ? max2 : max; } /* JADX WARN: Code restructure failed: missing block: B:18:0x0076, code lost: if (r13 != (r9.Z == 8 ? 0 : r9.p)) goto L38; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private void c(o.WqU r9, int r10, int r11, int r12, int r13) { /* r8 = this; androidx.constraintlayout.widget.ConstraintLayout$LWm r0 = r8.m int r0 = r0.a androidx.constraintlayout.widget.ConstraintLayout$LWm r1 = r8.m int r1 = r1.e o.tNn$LWm r2 = o.C17026tNn.LWm.FIXED o.tNn$LWm r3 = o.C17026tNn.LWm.FIXED int r4 = r8.getChildCount() r5 = 1073741824(0x40000000, float:2.0) r6 = 0 r7 = -2147483648(0xffffffff80000000, float:-0.0) if (r10 == r7) goto L31 if (r10 == 0) goto L24 if (r10 == r5) goto L1c goto L2f L1c: int r10 = r8.n int r10 = r10 - r1 int r11 = java.lang.Math.min(r10, r11) goto L3b L24: o.tNn$LWm r2 = o.C17026tNn.LWm.WRAP_CONTENT if (r4 != 0) goto L2f int r10 = r8.r int r11 = java.lang.Math.max(r6, r10) goto L3b L2f: r11 = r6 goto L3b L31: o.tNn$LWm r2 = o.C17026tNn.LWm.WRAP_CONTENT if (r4 != 0) goto L3b int r10 = r8.r int r11 = java.lang.Math.max(r6, r10) L3b: if (r12 == r7) goto L57 if (r12 == 0) goto L4a if (r12 == r5) goto L42 goto L55 L42: int r10 = r8.f6382o int r10 = r10 - r0 int r13 = java.lang.Math.min(r10, r13) goto L61 L4a: o.tNn$LWm r3 = o.C17026tNn.LWm.WRAP_CONTENT if (r4 != 0) goto L55 int r10 = r8.t int r13 = java.lang.Math.max(r6, r10) goto L61 L55: r13 = r6 goto L61 L57: o.tNn$LWm r3 = o.C17026tNn.LWm.WRAP_CONTENT if (r4 != 0) goto L61 int r10 = r8.t int r13 = java.lang.Math.max(r6, r10) L61: int r10 = r9.Z r12 = 8 if (r10 != r12) goto L69 r10 = r6 goto L6b L69: int r10 = r9.ac L6b: r4 = 1 if (r11 != r10) goto L78 int r10 = r9.Z if (r10 != r12) goto L74 r10 = r6 goto L76 L74: int r10 = r9.p L76: if (r13 == r10) goto L7c L78: o.lLR r10 = r9.ai r10.b = r4 L7c: r9.f(r6) r9.h(r6) int r10 = r8.n int r10 = r10 - r1 int[] r12 = r9.J r12[r6] = r10 int r10 = r8.f6382o int r10 = r10 - r0 int[] r12 = r9.J r12[r4] = r10 r9.g(r6) r9.j(r6) o.tNn$LWm[] r10 = r9.B r10[r6] = r2 r9.i(r11) o.tNn$LWm[] r10 = r9.B r10[r4] = r3 r9.c(r13) int r10 = r8.r int r10 = r10 - r1 r9.g(r10) int r10 = r8.t int r10 = r10 - r0 r9.j(r10) return */ throw new UnsupportedOperationException("Method not decompiled: androidx.constraintlayout.widget.ConstraintLayout.c(o.WqU, int, int, int, int):void"); } public void setState(int i, int i2, int i3) { C2832alz c2832alz = this.y; if (c2832alz != null) { c2832alz.a(i, i2, i3); } } @Override // android.view.ViewGroup, android.view.View public void onLayout(boolean z, int i, int i2, int i3, int i4) { int i5; View view; int childCount = getChildCount(); boolean isInEditMode = isInEditMode(); for (0; i5 < childCount; i5 + 1) { View childAt = getChildAt(i5); Sts sts = (Sts) childAt.getLayoutParams(); C17026tNn c17026tNn = sts.as; if (childAt.getVisibility() == 8 && !sts.I && !sts.K) { boolean z2 = sts.N; i5 = isInEditMode ? 0 : i5 + 1; } if (!sts.J) { int f = c17026tNn.f(); int l = c17026tNn.l(); int i6 = (c17026tNn.Z == 8 ? 0 : c17026tNn.ac) + f; int i7 = (c17026tNn.Z == 8 ? 0 : c17026tNn.p) + l; childAt.layout(f, l, i6, i7); if ((childAt instanceof Placeholder) && (view = ((Placeholder) childAt).c) != null) { view.setVisibility(0); view.layout(f, l, i6, i7); } } } int size = this.c.size(); if (size > 0) { for (int i8 = 0; i8 < size; i8++) { this.c.get(i8).a(); } } } public void setOptimizationLevel(int i) { this.p = i; WqU wqU = this.z; wqU.an = i; Npn.e = (wqU.an & 512) == 512; } public static Sts a() { return new Sts(); } @Override // android.view.ViewGroup protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) { return new Sts(layoutParams); } @Override // android.view.ViewGroup protected boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) { return layoutParams instanceof Sts; } @Override // android.view.ViewGroup, android.view.View public void dispatchDraw(Canvas canvas) { Object tag; int size; ArrayList arrayList = this.c; if (arrayList != null && (size = arrayList.size()) > 0) { for (int i = 0; i < size; i++) { this.c.get(i); } } super.dispatchDraw(canvas); if (isInEditMode()) { float width = getWidth(); float height = getHeight(); int childCount = getChildCount(); for (int i2 = 0; i2 < childCount; i2++) { View childAt = getChildAt(i2); if (childAt.getVisibility() != 8 && (tag = childAt.getTag()) != null && (tag instanceof String)) { String[] split = ((String) tag).split(","); if (split.length == 4) { int parseInt = Integer.parseInt(split[0]); int parseInt2 = Integer.parseInt(split[1]); int parseInt3 = Integer.parseInt(split[2]); int i3 = (int) ((parseInt / 1080.0f) * width); int i4 = (int) ((parseInt2 / 1920.0f) * height); Paint paint = new Paint(); paint.setColor(-65536); float f = i3; float f2 = i4; float f3 = i3 + ((int) ((parseInt3 / 1080.0f) * width)); canvas.drawLine(f, f2, f3, f2, paint); float parseInt4 = i4 + ((int) ((Integer.parseInt(split[3]) / 1920.0f) * height)); canvas.drawLine(f3, f2, f3, parseInt4, paint); canvas.drawLine(f3, parseInt4, f, parseInt4, paint); canvas.drawLine(f, parseInt4, f, f2, paint); paint.setColor(-16711936); canvas.drawLine(f, f2, f3, parseInt4, paint); canvas.drawLine(f, parseInt4, f3, f2, paint); } } } } } /* loaded from: classes.dex */ public static class Sts extends ViewGroup.MarginLayoutParams { public int A; public boolean B; public float C; public int D; public float E; public float F; boolean G; public int H; boolean I; boolean J; boolean K; public int L; public int M; boolean N; public int O; public int P; public int Q; public int R; public int S; public float T; public int U; public float V; boolean W; public int X; int Y; int Z; public int a; float aa; int ab; int ac; float ad; int ae; int af; int ag; int ah; public int ai; public int aj; public int ak; public int al; public int am; public int an; public float ao; public int ap; public float aq; boolean ar; C17026tNn as; private boolean at; public int au; private boolean av; private boolean aw; public int b; public int c; public int d; public int e; public boolean f; public int g; public float h; public int i; public int j; public int k; public String l; public boolean m; public float n; /* renamed from: o, reason: collision with root package name */ public String f6383o; public int p; public int q; public int r; public int s; public int t; public int u; public int v; public int w; public int x; public int y; public int z; /* renamed from: androidx.constraintlayout.widget.ConstraintLayout$Sts$Sts, reason: collision with other inner class name */ /* loaded from: classes.dex */ static class C0001Sts { public static final SparseIntArray d; static { SparseIntArray sparseIntArray = new SparseIntArray(); d = sparseIntArray; sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintWidth, 64); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintHeight, 65); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintLeft_toLeftOf, 8); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintLeft_toRightOf, 9); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintRight_toLeftOf, 10); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintRight_toRightOf, 11); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintTop_toTopOf, 12); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintTop_toBottomOf, 13); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintBottom_toTopOf, 14); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintBottom_toBottomOf, 15); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintBaseline_toBaselineOf, 16); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintBaseline_toTopOf, 52); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintBaseline_toBottomOf, 53); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintCircle, 2); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintCircleRadius, 3); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintCircleAngle, 4); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_editor_absoluteX, 49); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_editor_absoluteY, 50); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintGuide_begin, 5); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintGuide_end, 6); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintGuide_percent, 7); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_guidelineUseRtl, 67); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_android_orientation, 1); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintStart_toEndOf, 17); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintStart_toStartOf, 18); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintEnd_toStartOf, 19); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintEnd_toEndOf, 20); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_goneMarginLeft, 21); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_goneMarginTop, 22); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_goneMarginRight, 23); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_goneMarginBottom, 24); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_goneMarginStart, 25); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_goneMarginEnd, 26); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_goneMarginBaseline, 55); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_marginBaseline, 54); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintHorizontal_bias, 29); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintVertical_bias, 30); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintDimensionRatio, 44); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintHorizontal_weight, 45); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintVertical_weight, 46); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintHorizontal_chainStyle, 47); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintVertical_chainStyle, 48); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constrainedWidth, 27); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constrainedHeight, 28); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintWidth_default, 31); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintHeight_default, 32); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintWidth_min, 33); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintWidth_max, 34); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintWidth_percent, 35); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintHeight_min, 36); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintHeight_max, 37); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintHeight_percent, 38); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintLeft_creator, 39); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintTop_creator, 40); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintRight_creator, 41); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintBottom_creator, 42); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintBaseline_creator, 43); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_constraintTag, 51); sparseIntArray.append(C3345avm.IeS.ConstraintLayout_Layout_layout_wrapBehaviorInParent, 66); } } public Sts(Context context, AttributeSet attributeSet) { super(context, attributeSet); this.A = -1; this.D = -1; this.C = -1.0f; this.aw = true; this.L = -1; this.M = -1; this.al = -1; this.am = -1; this.an = -1; this.aj = -1; this.g = -1; this.b = -1; this.c = -1; this.a = -1; this.d = -1; this.i = -1; this.j = 0; this.h = BitmapDescriptorFactory.HUE_RED; this.ai = -1; this.ak = -1; this.t = -1; this.p = -1; this.w = PKIFailureInfo.systemUnavail; this.z = PKIFailureInfo.systemUnavail; this.v = PKIFailureInfo.systemUnavail; this.x = PKIFailureInfo.systemUnavail; this.y = PKIFailureInfo.systemUnavail; this.u = PKIFailureInfo.systemUnavail; this.r = PKIFailureInfo.systemUnavail; this.e = 0; this.av = true; this.at = true; this.E = 0.5f; this.aq = 0.5f; this.l = null; this.n = BitmapDescriptorFactory.HUE_RED; this.k = 1; this.F = -1.0f; this.ao = -1.0f; this.H = 0; this.ap = 0; this.S = 0; this.O = 0; this.X = 0; this.R = 0; this.Q = 0; this.P = 0; this.T = 1.0f; this.V = 1.0f; this.q = -1; this.s = -1; this.U = -1; this.m = false; this.f = false; this.f6383o = null; this.au = 0; this.G = true; this.ar = true; this.W = false; this.I = false; this.K = false; this.J = false; this.N = false; this.ae = -1; this.ag = -1; this.af = -1; this.ah = -1; this.ac = PKIFailureInfo.systemUnavail; this.Z = PKIFailureInfo.systemUnavail; this.ad = 0.5f; this.as = new C17026tNn(); this.B = false; TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C3345avm.IeS.ConstraintLayout_Layout); int indexCount = obtainStyledAttributes.getIndexCount(); for (int i = 0; i < indexCount; i++) { int index = obtainStyledAttributes.getIndex(i); int i2 = C0001Sts.d.get(index); switch (i2) { case 1: this.U = obtainStyledAttributes.getInt(index, this.U); break; case 2: int resourceId = obtainStyledAttributes.getResourceId(index, this.i); this.i = resourceId; if (resourceId == -1) { this.i = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 3: this.j = obtainStyledAttributes.getDimensionPixelSize(index, this.j); break; case 4: float f = obtainStyledAttributes.getFloat(index, this.h) % 360.0f; this.h = f; if (f < BitmapDescriptorFactory.HUE_RED) { this.h = (360.0f - f) % 360.0f; break; } else { break; } case 5: this.A = obtainStyledAttributes.getDimensionPixelOffset(index, this.A); break; case 6: this.D = obtainStyledAttributes.getDimensionPixelOffset(index, this.D); break; case 7: this.C = obtainStyledAttributes.getFloat(index, this.C); break; case 8: int resourceId2 = obtainStyledAttributes.getResourceId(index, this.L); this.L = resourceId2; if (resourceId2 == -1) { this.L = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 9: int resourceId3 = obtainStyledAttributes.getResourceId(index, this.M); this.M = resourceId3; if (resourceId3 == -1) { this.M = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 10: int resourceId4 = obtainStyledAttributes.getResourceId(index, this.al); this.al = resourceId4; if (resourceId4 == -1) { this.al = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 11: int resourceId5 = obtainStyledAttributes.getResourceId(index, this.am); this.am = resourceId5; if (resourceId5 == -1) { this.am = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 12: int resourceId6 = obtainStyledAttributes.getResourceId(index, this.an); this.an = resourceId6; if (resourceId6 == -1) { this.an = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 13: int resourceId7 = obtainStyledAttributes.getResourceId(index, this.aj); this.aj = resourceId7; if (resourceId7 == -1) { this.aj = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 14: int resourceId8 = obtainStyledAttributes.getResourceId(index, this.g); this.g = resourceId8; if (resourceId8 == -1) { this.g = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 15: int resourceId9 = obtainStyledAttributes.getResourceId(index, this.b); this.b = resourceId9; if (resourceId9 == -1) { this.b = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 16: int resourceId10 = obtainStyledAttributes.getResourceId(index, this.c); this.c = resourceId10; if (resourceId10 == -1) { this.c = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 17: int resourceId11 = obtainStyledAttributes.getResourceId(index, this.ai); this.ai = resourceId11; if (resourceId11 == -1) { this.ai = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 18: int resourceId12 = obtainStyledAttributes.getResourceId(index, this.ak); this.ak = resourceId12; if (resourceId12 == -1) { this.ak = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 19: int resourceId13 = obtainStyledAttributes.getResourceId(index, this.t); this.t = resourceId13; if (resourceId13 == -1) { this.t = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 20: int resourceId14 = obtainStyledAttributes.getResourceId(index, this.p); this.p = resourceId14; if (resourceId14 == -1) { this.p = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 21: this.w = obtainStyledAttributes.getDimensionPixelSize(index, this.w); break; case 22: this.z = obtainStyledAttributes.getDimensionPixelSize(index, this.z); break; case 23: this.v = obtainStyledAttributes.getDimensionPixelSize(index, this.v); break; case 24: this.x = obtainStyledAttributes.getDimensionPixelSize(index, this.x); break; case 25: this.y = obtainStyledAttributes.getDimensionPixelSize(index, this.y); break; case 26: this.u = obtainStyledAttributes.getDimensionPixelSize(index, this.u); break; case 27: this.m = obtainStyledAttributes.getBoolean(index, this.m); break; case 28: this.f = obtainStyledAttributes.getBoolean(index, this.f); break; case 29: this.E = obtainStyledAttributes.getFloat(index, this.E); break; case 30: this.aq = obtainStyledAttributes.getFloat(index, this.aq); break; case 31: this.S = obtainStyledAttributes.getInt(index, 0); break; case 32: this.O = obtainStyledAttributes.getInt(index, 0); break; case 33: try { this.X = obtainStyledAttributes.getDimensionPixelSize(index, this.X); break; } catch (Exception unused) { if (obtainStyledAttributes.getInt(index, this.X) == -2) { this.X = -2; break; } else { break; } } case 34: try { this.Q = obtainStyledAttributes.getDimensionPixelSize(index, this.Q); break; } catch (Exception unused2) { if (obtainStyledAttributes.getInt(index, this.Q) == -2) { this.Q = -2; break; } else { break; } } case 35: this.T = Math.max(BitmapDescriptorFactory.HUE_RED, obtainStyledAttributes.getFloat(index, this.T)); this.S = 2; break; case 36: try { this.R = obtainStyledAttributes.getDimensionPixelSize(index, this.R); break; } catch (Exception unused3) { if (obtainStyledAttributes.getInt(index, this.R) == -2) { this.R = -2; break; } else { break; } } case 37: try { this.P = obtainStyledAttributes.getDimensionPixelSize(index, this.P); break; } catch (Exception unused4) { if (obtainStyledAttributes.getInt(index, this.P) == -2) { this.P = -2; break; } else { break; } } case 38: this.V = Math.max(BitmapDescriptorFactory.HUE_RED, obtainStyledAttributes.getFloat(index, this.V)); this.O = 2; break; default: switch (i2) { case 44: yqQ.c(this, obtainStyledAttributes.getString(index)); break; case 45: this.F = obtainStyledAttributes.getFloat(index, this.F); break; case 46: this.ao = obtainStyledAttributes.getFloat(index, this.ao); break; case 47: this.H = obtainStyledAttributes.getInt(index, 0); break; case 48: this.ap = obtainStyledAttributes.getInt(index, 0); break; case 49: this.q = obtainStyledAttributes.getDimensionPixelOffset(index, this.q); break; case 50: this.s = obtainStyledAttributes.getDimensionPixelOffset(index, this.s); break; case 51: this.f6383o = obtainStyledAttributes.getString(index); break; case 52: int resourceId15 = obtainStyledAttributes.getResourceId(index, this.a); this.a = resourceId15; if (resourceId15 == -1) { this.a = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 53: int resourceId16 = obtainStyledAttributes.getResourceId(index, this.d); this.d = resourceId16; if (resourceId16 == -1) { this.d = obtainStyledAttributes.getInt(index, -1); break; } else { break; } case 54: this.e = obtainStyledAttributes.getDimensionPixelSize(index, this.e); break; case 55: this.r = obtainStyledAttributes.getDimensionPixelSize(index, this.r); break; default: switch (i2) { case 64: yqQ.ll_(this, obtainStyledAttributes, index, 0); this.av = true; break; case 65: yqQ.ll_(this, obtainStyledAttributes, index, 1); this.at = true; break; case 66: this.au = obtainStyledAttributes.getInt(index, this.au); break; case 67: this.aw = obtainStyledAttributes.getBoolean(index, this.aw); break; } } } } obtainStyledAttributes.recycle(); d(); } public final void d() { this.I = false; this.G = true; this.ar = true; if (((ViewGroup.LayoutParams) this).width == -2 && this.m) { this.G = false; if (this.S == 0) { this.S = 1; } } if (((ViewGroup.LayoutParams) this).height == -2 && this.f) { this.ar = false; if (this.O == 0) { this.O = 1; } } if (((ViewGroup.LayoutParams) this).width == 0 || ((ViewGroup.LayoutParams) this).width == -1) { this.G = false; if (((ViewGroup.LayoutParams) this).width == 0 && this.S == 1) { ((ViewGroup.LayoutParams) this).width = -2; this.m = true; } } if (((ViewGroup.LayoutParams) this).height == 0 || ((ViewGroup.LayoutParams) this).height == -1) { this.ar = false; if (((ViewGroup.LayoutParams) this).height == 0 && this.O == 1) { ((ViewGroup.LayoutParams) this).height = -2; this.f = true; } } if (this.C == -1.0f && this.A == -1 && this.D == -1) { return; } this.I = true; this.G = true; this.ar = true; if (!(this.as instanceof WAE)) { this.as = new WAE(); } ((WAE) this.as).o(this.U); } public Sts() { super(-2, -2); this.A = -1; this.D = -1; this.C = -1.0f; this.aw = true; this.L = -1; this.M = -1; this.al = -1; this.am = -1; this.an = -1; this.aj = -1; this.g = -1; this.b = -1; this.c = -1; this.a = -1; this.d = -1; this.i = -1; this.j = 0; this.h = BitmapDescriptorFactory.HUE_RED; this.ai = -1; this.ak = -1; this.t = -1; this.p = -1; this.w = PKIFailureInfo.systemUnavail; this.z = PKIFailureInfo.systemUnavail; this.v = PKIFailureInfo.systemUnavail; this.x = PKIFailureInfo.systemUnavail; this.y = PKIFailureInfo.systemUnavail; this.u = PKIFailureInfo.systemUnavail; this.r = PKIFailureInfo.systemUnavail; this.e = 0; this.av = true; this.at = true; this.E = 0.5f; this.aq = 0.5f; this.l = null; this.n = BitmapDescriptorFactory.HUE_RED; this.k = 1; this.F = -1.0f; this.ao = -1.0f; this.H = 0; this.ap = 0; this.S = 0; this.O = 0; this.X = 0; this.R = 0; this.Q = 0; this.P = 0; this.T = 1.0f; this.V = 1.0f; this.q = -1; this.s = -1; this.U = -1; this.m = false; this.f = false; this.f6383o = null; this.au = 0; this.G = true; this.ar = true; this.W = false; this.I = false; this.K = false; this.J = false; this.N = false; this.ae = -1; this.ag = -1; this.af = -1; this.ah = -1; this.ac = PKIFailureInfo.systemUnavail; this.Z = PKIFailureInfo.systemUnavail; this.ad = 0.5f; this.as = new C17026tNn(); this.B = false; } public Sts(ViewGroup.LayoutParams layoutParams) { super(layoutParams); this.A = -1; this.D = -1; this.C = -1.0f; this.aw = true; this.L = -1; this.M = -1; this.al = -1; this.am = -1; this.an = -1; this.aj = -1; this.g = -1; this.b = -1; this.c = -1; this.a = -1; this.d = -1; this.i = -1; this.j = 0; this.h = BitmapDescriptorFactory.HUE_RED; this.ai = -1; this.ak = -1; this.t = -1; this.p = -1; this.w = PKIFailureInfo.systemUnavail; this.z = PKIFailureInfo.systemUnavail; this.v = PKIFailureInfo.systemUnavail; this.x = PKIFailureInfo.systemUnavail; this.y = PKIFailureInfo.systemUnavail; this.u = PKIFailureInfo.systemUnavail; this.r = PKIFailureInfo.systemUnavail; this.e = 0; this.av = true; this.at = true; this.E = 0.5f; this.aq = 0.5f; this.l = null; this.n = BitmapDescriptorFactory.HUE_RED; this.k = 1; this.F = -1.0f; this.ao = -1.0f; this.H = 0; this.ap = 0; this.S = 0; this.O = 0; this.X = 0; this.R = 0; this.Q = 0; this.P = 0; this.T = 1.0f; this.V = 1.0f; this.q = -1; this.s = -1; this.U = -1; this.m = false; this.f = false; this.f6383o = null; this.au = 0; this.G = true; this.ar = true; this.W = false; this.I = false; this.K = false; this.J = false; this.N = false; this.ae = -1; this.ag = -1; this.af = -1; this.ah = -1; this.ac = PKIFailureInfo.systemUnavail; this.Z = PKIFailureInfo.systemUnavail; this.ad = 0.5f; this.as = new C17026tNn(); this.B = false; } /* JADX WARN: Removed duplicated region for block: B:12:0x0049 */ /* JADX WARN: Removed duplicated region for block: B:15:0x0050 */ /* JADX WARN: Removed duplicated region for block: B:18:0x0057 */ /* JADX WARN: Removed duplicated region for block: B:21:0x005d */ /* JADX WARN: Removed duplicated region for block: B:24:0x0063 */ /* JADX WARN: Removed duplicated region for block: B:33:0x0079 */ /* JADX WARN: Removed duplicated region for block: B:34:0x0081 */ @Override // android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.LayoutParams /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public void resolveLayoutDirection(int r11) { /* Method dump skipped, instructions count: 256 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: androidx.constraintlayout.widget.ConstraintLayout.Sts.resolveLayoutDirection(int):void"); } } @Override // android.view.View, android.view.ViewParent public void requestLayout() { e(); super.requestLayout(); } @Override // android.view.View public void forceLayout() { e(); super.forceLayout(); } private void lg_(AttributeSet attributeSet, int i) { this.z.t = this; WqU wqU = this.z; LWm lWm = this.m; wqU.ao = lWm; wqU.ai.d = lWm; this.w.put(getId(), this); this.a = null; if (attributeSet != null) { TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, C3345avm.IeS.ConstraintLayout_Layout, i, 0); int indexCount = obtainStyledAttributes.getIndexCount(); for (int i2 = 0; i2 < indexCount; i2++) { int index = obtainStyledAttributes.getIndex(i2); if (index == C3345avm.IeS.ConstraintLayout_Layout_android_minWidth) { this.r = obtainStyledAttributes.getDimensionPixelOffset(index, this.r); } else if (index == C3345avm.IeS.ConstraintLayout_Layout_android_minHeight) { this.t = obtainStyledAttributes.getDimensionPixelOffset(index, this.t); } else if (index == C3345avm.IeS.ConstraintLayout_Layout_android_maxWidth) { this.n = obtainStyledAttributes.getDimensionPixelOffset(index, this.n); } else if (index == C3345avm.IeS.ConstraintLayout_Layout_android_maxHeight) { this.f6382o = obtainStyledAttributes.getDimensionPixelOffset(index, this.f6382o); } else if (index == C3345avm.IeS.ConstraintLayout_Layout_layout_optimizationLevel) { this.p = obtainStyledAttributes.getInt(index, this.p); } else if (index == C3345avm.IeS.ConstraintLayout_Layout_layoutDescription) { int resourceId = obtainStyledAttributes.getResourceId(index, 0); if (resourceId != 0) { try { e(resourceId); } catch (Resources.NotFoundException unused) { this.y = null; } } } else if (index == C3345avm.IeS.ConstraintLayout_Layout_constraintSet) { int resourceId2 = obtainStyledAttributes.getResourceId(index, 0); try { yqQ yqq = new yqQ(); this.a = yqq; yqq.e(getContext(), resourceId2); } catch (Resources.NotFoundException unused2) { this.a = null; } this.b = resourceId2; } } obtainStyledAttributes.recycle(); } WqU wqU2 = this.z; wqU2.an = this.p; Npn.e = (wqU2.an & 512) == 512; } public void setOnConstraintsChanged(AtR atR) { this.d = atR; C2832alz c2832alz = this.y; if (c2832alz != null) { c2832alz.c = atR; } } @Override // android.view.ViewGroup public /* synthetic */ ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) { return new Sts(getContext(), attributeSet); } @Override // android.view.ViewGroup protected /* synthetic */ ViewGroup.LayoutParams generateDefaultLayoutParams() { return new Sts(); } public void setConstraintSet(yqQ yqq) { this.a = yqq; } private void e() { this.A = true; this.j = -1; this.f = -1; this.l = -1; this.h = -1; this.k = 0; this.i = 0; } }