package o; import android.view.View; import androidx.constraintlayout.motion.widget.MotionLayout; import androidx.constraintlayout.widget.ConstraintLayout; import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import o.MQE; import o.miy; /* loaded from: classes.dex */ public final class Trr { public final MotionLayout a; public ArrayList d; public HashSet e; public ArrayList c = new ArrayList<>(); private String j = "ViewTransitionController"; public ArrayList b = new ArrayList<>(); public Trr(MotionLayout motionLayout) { this.a = motionLayout; } /* JADX INFO: Access modifiers changed from: package-private */ public final void b(int i, View... viewArr) { ArrayList arrayList = new ArrayList(); Iterator it = this.c.iterator(); while (it.hasNext()) { MQE next = it.next(); if (next.c == i) { int length = viewArr.length; for (int i2 = 0; i2 <= 0; i2++) { View view = viewArr[i2]; if (next.b(view)) { arrayList.add(view); } } if (!arrayList.isEmpty()) { e(next, (View[]) arrayList.toArray(new View[0])); arrayList.clear(); } } } } /* JADX INFO: Access modifiers changed from: package-private */ public final void c(MQE mqe, boolean z) { ConstraintLayout.d().d(mqe.b, new miy.LWm(this, mqe, mqe.b, z, mqe.j) { // from class: o.Trr.3 final MQE a; final Trr b; final int c; final int d; final boolean e; { this.b = this; this.a = mqe; this.c = r3; this.e = z; this.d = r5; } }); } private void e(MQE mqe, View... viewArr) { int i = this.a.e; if (mqe.h == 2) { mqe.d(this, this.a, i, null, viewArr); return; } if (i == -1) { return; } C16822rXU c16822rXU = this.a.q; yqQ e = c16822rXU == null ? null : c16822rXU.e(i); if (e == null) { return; } mqe.d(this, this.a, i, e, viewArr); } }