package androidx.constraintlayout.solver.widgets; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; /* loaded from: classes.dex */ public class ConstraintWidgetGroup { public List a; int b; int c; public boolean d; public final int[] e; List f; List g; HashSet h; HashSet i; List j; List k; ConstraintWidgetGroup(List list) { this.b = -1; this.c = -1; this.d = false; this.e = new int[]{this.b, this.c}; this.f = new ArrayList(); this.g = new ArrayList(); this.h = new HashSet<>(); this.i = new HashSet<>(); this.j = new ArrayList(); this.k = new ArrayList(); this.a = list; } public List a(int i) { if (i == 0) { return this.f; } if (i == 1) { return this.g; } return null; } Set b(int i) { if (i == 0) { return this.h; } if (i == 1) { return this.i; } return null; } void a(ConstraintWidget constraintWidget, int i) { if (i == 0) { this.h.add(constraintWidget); } else if (i == 1) { this.i.add(constraintWidget); } } void b() { int size = this.k.size(); for (int i = 0; i < size; i++) { a(this.k.get(i)); } } List a() { if (!this.j.isEmpty()) { return this.j; } int size = this.a.size(); for (int i = 0; i < size; i++) { ConstraintWidget constraintWidget = this.a.get(i); if (!constraintWidget.b0) { a((ArrayList) this.j, constraintWidget); } } this.k.clear(); this.k.addAll(this.a); this.k.removeAll(this.j); return this.j; } ConstraintWidgetGroup(List list, boolean z) { this.b = -1; this.c = -1; this.d = false; this.e = new int[]{this.b, this.c}; this.f = new ArrayList(); this.g = new ArrayList(); this.h = new HashSet<>(); this.i = new HashSet<>(); this.j = new ArrayList(); this.k = new ArrayList(); this.a = list; this.d = z; } private void a(ArrayList arrayList, ConstraintWidget constraintWidget) { if (constraintWidget.d0) { return; } arrayList.add(constraintWidget); constraintWidget.d0 = true; if (constraintWidget.y()) { return; } if (constraintWidget instanceof Helper) { Helper helper = (Helper) constraintWidget; int i = helper.l0; for (int i2 = 0; i2 < i; i2++) { a(arrayList, helper.k0[i2]); } } int length = constraintWidget.A.length; for (int i3 = 0; i3 < length; i3++) { ConstraintAnchor constraintAnchor = constraintWidget.A[i3].d; if (constraintAnchor != null) { ConstraintWidget constraintWidget2 = constraintAnchor.b; if (constraintAnchor != null && constraintWidget2 != constraintWidget.k()) { a(arrayList, constraintWidget2); } } } } /* JADX WARN: Removed duplicated region for block: B:20:0x0048 */ /* JADX WARN: Removed duplicated region for block: B:23:0x006b */ /* JADX WARN: Removed duplicated region for block: B:28:0x0087 */ /* JADX WARN: Removed duplicated region for block: B:49:0x0050 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct code enable 'Show inconsistent code' option in preferences */ private void a(androidx.constraintlayout.solver.widgets.ConstraintWidget r7) { /* Method dump skipped, instructions count: 222 To view this dump change 'Code comments level' option to 'DEBUG' */ throw new UnsupportedOperationException("Method not decompiled: androidx.constraintlayout.solver.widgets.ConstraintWidgetGroup.a(androidx.constraintlayout.solver.widgets.ConstraintWidget):void"); } }