package ῲ.ⁱ.ῲ.㿎.ᕣ;

import androidx.constraintlayout.solver.widgets.ConstraintAnchor;
import androidx.constraintlayout.solver.widgets.ConstraintWidget;
import androidx.constraintlayout.solver.widgets.analyzer.DependencyNode;
import androidx.constraintlayout.solver.widgets.analyzer.WidgetRun;
import androidx.constraintlayout.widget.ConstraintLayout;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import ඓ.K.K.K.C1293;
import ῲ.ⁱ.ῲ.㿎.C2082;
import ῲ.ⁱ.ῲ.㿎.C2083;
import ῲ.ⁱ.ῲ.㿎.C2102;
import ῲ.ⁱ.ῲ.㿎.ᕣ.C2088;

/* renamed from: ῲ.ⁱ.ῲ.㿎.ᕣ.ඓ  reason: contains not printable characters */
/* compiled from: DependencyGraph */
public class C2085 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public boolean f7211 = true;

    /* renamed from: ඓ  reason: contains not printable characters */
    public ArrayList<WidgetRun> f7212 = new ArrayList<>();

    /* renamed from: ῲ  reason: contains not printable characters */
    public boolean f7213 = true;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public C2088.C2090 f7214;

    /* renamed from: K  reason: contains not printable characters */
    public C2082 f7215;

    /* renamed from: 㴹  reason: contains not printable characters */
    public C2088.AbstractC2089 f7216;

    /* renamed from: 㸾  reason: contains not printable characters */
    public C2082 f7217;

    /* renamed from: 㿎  reason: contains not printable characters */
    public ArrayList<C2086> f7218;

    public C2085(C2082 r2) {
        new ArrayList();
        this.f7216 = null;
        this.f7214 = new C2088.C2090();
        this.f7218 = new ArrayList<>();
        this.f7215 = r2;
        this.f7217 = r2;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public void m5500() {
        C2095 r2;
        Iterator<ConstraintWidget> it2 = this.f7215.f7284.iterator();
        while (it2.hasNext()) {
            ConstraintWidget next = it2.next();
            if (!next.f861) {
                ConstraintWidget.DimensionBehaviour[] dimensionBehaviourArr = next.f886;
                boolean z = false;
                ConstraintWidget.DimensionBehaviour dimensionBehaviour = dimensionBehaviourArr[0];
                ConstraintWidget.DimensionBehaviour dimensionBehaviour2 = dimensionBehaviourArr[1];
                int i = next.f874;
                int i2 = next.f827;
                boolean z2 = dimensionBehaviour == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT || (dimensionBehaviour == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && i == 1);
                if (dimensionBehaviour2 == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT || (dimensionBehaviour2 == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && i2 == 1)) {
                    z = true;
                }
                C2095 r4 = next.f896.f920;
                boolean z3 = r4.f914;
                C2095 r6 = next.f835.f920;
                boolean z4 = r6.f914;
                if (z3 && z4) {
                    ConstraintWidget.DimensionBehaviour dimensionBehaviour3 = ConstraintWidget.DimensionBehaviour.FIXED;
                    m5503(next, dimensionBehaviour3, r4.f911, dimensionBehaviour3, r6.f911);
                    next.f861 = true;
                } else if (z3 && z) {
                    m5503(next, ConstraintWidget.DimensionBehaviour.FIXED, next.f896.f920.f911, ConstraintWidget.DimensionBehaviour.WRAP_CONTENT, next.f835.f920.f911);
                    if (dimensionBehaviour2 == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT) {
                        next.f835.f920.f7240 = next.m473();
                    } else {
                        next.f835.f920.m5539(next.m473());
                        next.f861 = true;
                    }
                } else if (z4 && z2) {
                    m5503(next, ConstraintWidget.DimensionBehaviour.WRAP_CONTENT, next.f896.f920.f911, ConstraintWidget.DimensionBehaviour.FIXED, next.f835.f920.f911);
                    if (dimensionBehaviour == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT) {
                        next.f896.f920.f7240 = next.m478();
                    } else {
                        next.f896.f920.m5539(next.m478());
                        next.f861 = true;
                    }
                }
                if (next.f861 && (r2 = next.f835.f7238) != null) {
                    r2.m5539(next.f865);
                }
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public final int m5501(C2082 r17, int i) {
        long r0;
        C2085 r02 = this;
        C2082 r1 = r17;
        int size = r02.f7218.size();
        long j = 0;
        int i2 = 0;
        long j2 = 0;
        while (i2 < size) {
            C2086 r9 = r02.f7218.get(i2);
            WidgetRun widgetRun = r9.f7221;
            if (widgetRun instanceof C2084) {
                if (((C2084) widgetRun).f926 != i) {
                    j = Math.max(j, j2);
                    i2++;
                    j2 = 0;
                    r02 = this;
                    r1 = r17;
                }
            } else if (i == 0) {
                if (!(widgetRun instanceof C2094)) {
                    j = Math.max(j, j2);
                    i2++;
                    j2 = 0;
                    r02 = this;
                    r1 = r17;
                }
            } else if (!(widgetRun instanceof C2093)) {
                j = Math.max(j, j2);
                i2++;
                j2 = 0;
                r02 = this;
                r1 = r17;
            }
            DependencyNode dependencyNode = (i == 0 ? r1.f896 : r1.f835).f928;
            DependencyNode dependencyNode2 = (i == 0 ? r1.f896 : r1.f835).f921;
            boolean contains = r9.f7221.f928.f913.contains(dependencyNode);
            boolean contains2 = r9.f7221.f921.f913.contains(dependencyNode2);
            long r12 = r9.f7221.m529();
            if (!contains || !contains2) {
                if (contains) {
                    DependencyNode dependencyNode3 = r9.f7221.f928;
                    r0 = Math.max(r9.m5507(dependencyNode3, (long) dependencyNode3.f915), ((long) r9.f7221.f928.f915) + r12);
                } else if (contains2) {
                    DependencyNode dependencyNode4 = r9.f7221.f921;
                    r0 = Math.max(-r9.m5508(dependencyNode4, (long) dependencyNode4.f915), ((long) (-r9.f7221.f921.f915)) + r12);
                } else {
                    WidgetRun widgetRun2 = r9.f7221;
                    r0 = (widgetRun2.m529() + ((long) widgetRun2.f928.f915)) - ((long) r9.f7221.f921.f915);
                }
                j2 = r0;
                j = Math.max(j, j2);
                i2++;
                j2 = 0;
                r02 = this;
                r1 = r17;
            } else {
                long r10 = r9.m5507(r9.f7221.f928, j2);
                long r7 = r9.m5508(r9.f7221.f921, j2);
                long j3 = r10 - r12;
                int i3 = r9.f7221.f921.f915;
                if (j3 >= ((long) (-i3))) {
                    j3 += (long) i3;
                }
                long j4 = (long) r9.f7221.f928.f915;
                long j5 = ((-r7) - r12) - j4;
                if (j5 >= j4) {
                    j5 -= j4;
                }
                float r72 = r9.f7221.f922.m487(i);
                float f = (float) (r72 > 0.0f ? (long) ((((float) j3) / (1.0f - r72)) + (((float) j5) / r72)) : 0);
                long r102 = ((long) ((f * r72) + 0.5f)) + r12 + ((long) C1293.m3403(1.0f, r72, f, 0.5f));
                WidgetRun widgetRun3 = r9.f7221;
                j2 = (((long) widgetRun3.f928.f915) + r102) - ((long) widgetRun3.f921.f915);
                j = Math.max(j, j2);
                i2++;
                j2 = 0;
                r02 = this;
                r1 = r17;
            }
        }
        return (int) j;
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m5503(ConstraintWidget constraintWidget, ConstraintWidget.DimensionBehaviour dimensionBehaviour, int i, ConstraintWidget.DimensionBehaviour dimensionBehaviour2, int i2) {
        C2088.C2090 k = this.f7214;
        k.f7231 = dimensionBehaviour;
        k.f7229 = dimensionBehaviour2;
        k.f7226 = i;
        k.f7234 = i2;
        ((ConstraintLayout.C0139) this.f7216).m564(constraintWidget, k);
        constraintWidget.m502(this.f7214.f7227);
        constraintWidget.m479(this.f7214.f7233);
        C2088.C2090 k2 = this.f7214;
        constraintWidget.f852 = k2.f7235;
        constraintWidget.m513(k2.f7230);
    }

    /* renamed from: K  reason: contains not printable characters */
    public final boolean m5506(C2082 r14) {
        int i;
        ConstraintWidget.DimensionBehaviour[] dimensionBehaviourArr;
        ConstraintWidget.DimensionBehaviour dimensionBehaviour;
        int i2;
        int i3;
        Iterator<ConstraintWidget> it2 = r14.f7284.iterator();
        while (it2.hasNext()) {
            ConstraintWidget next = it2.next();
            ConstraintWidget.DimensionBehaviour[] dimensionBehaviourArr2 = next.f886;
            ConstraintWidget.DimensionBehaviour dimensionBehaviour2 = dimensionBehaviourArr2[0];
            ConstraintWidget.DimensionBehaviour dimensionBehaviour3 = dimensionBehaviourArr2[1];
            if (next.f840 == 8) {
                next.f861 = true;
            } else {
                if (next.f901 < 1.0f && dimensionBehaviour2 == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT) {
                    next.f874 = 2;
                }
                if (next.f846 < 1.0f && dimensionBehaviour3 == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT) {
                    next.f827 = 2;
                }
                if (next.f842 > 0.0f) {
                    if (dimensionBehaviour2 == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && (dimensionBehaviour3 == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT || dimensionBehaviour3 == ConstraintWidget.DimensionBehaviour.FIXED)) {
                        next.f874 = 3;
                    } else if (dimensionBehaviour3 == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && (dimensionBehaviour2 == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT || dimensionBehaviour2 == ConstraintWidget.DimensionBehaviour.FIXED)) {
                        next.f827 = 3;
                    } else {
                        ConstraintWidget.DimensionBehaviour dimensionBehaviour4 = ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT;
                        if (dimensionBehaviour2 == dimensionBehaviour4 && dimensionBehaviour3 == dimensionBehaviour4) {
                            if (next.f874 == 0) {
                                next.f874 = 3;
                            }
                            if (next.f827 == 0) {
                                next.f827 = 3;
                            }
                        }
                    }
                }
                if (dimensionBehaviour2 == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && next.f874 == 1 && (next.f820.f812 == null || next.f833.f812 == null)) {
                    dimensionBehaviour2 = ConstraintWidget.DimensionBehaviour.WRAP_CONTENT;
                }
                ConstraintWidget.DimensionBehaviour dimensionBehaviour5 = dimensionBehaviour2;
                if (dimensionBehaviour3 == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && next.f827 == 1 && (next.f885.f812 == null || next.f841.f812 == null)) {
                    dimensionBehaviour3 = ConstraintWidget.DimensionBehaviour.WRAP_CONTENT;
                }
                ConstraintWidget.DimensionBehaviour dimensionBehaviour6 = dimensionBehaviour3;
                C2094 r3 = next.f896;
                r3.f927 = dimensionBehaviour5;
                r3.f924 = next.f874;
                C2093 r32 = next.f835;
                r32.f927 = dimensionBehaviour6;
                r32.f924 = next.f827;
                if ((dimensionBehaviour5 == ConstraintWidget.DimensionBehaviour.MATCH_PARENT || dimensionBehaviour5 == ConstraintWidget.DimensionBehaviour.FIXED || dimensionBehaviour5 == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT) && (dimensionBehaviour6 == ConstraintWidget.DimensionBehaviour.MATCH_PARENT || dimensionBehaviour6 == ConstraintWidget.DimensionBehaviour.FIXED || dimensionBehaviour6 == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT)) {
                    int r2 = next.m478();
                    if (dimensionBehaviour5 == ConstraintWidget.DimensionBehaviour.MATCH_PARENT) {
                        i2 = (r14.m478() - next.f820.f810) - next.f833.f810;
                        dimensionBehaviour5 = ConstraintWidget.DimensionBehaviour.FIXED;
                    } else {
                        i2 = r2;
                    }
                    int r22 = next.m473();
                    if (dimensionBehaviour6 == ConstraintWidget.DimensionBehaviour.MATCH_PARENT) {
                        i3 = (r14.m473() - next.f885.f810) - next.f841.f810;
                        dimensionBehaviour6 = ConstraintWidget.DimensionBehaviour.FIXED;
                    } else {
                        i3 = r22;
                    }
                    m5503(next, dimensionBehaviour5, i2, dimensionBehaviour6, i3);
                    next.f896.f920.m5539(next.m478());
                    next.f835.f920.m5539(next.m473());
                    next.f861 = true;
                } else {
                    if (dimensionBehaviour5 == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && (dimensionBehaviour6 == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT || dimensionBehaviour6 == ConstraintWidget.DimensionBehaviour.FIXED)) {
                        int i4 = next.f874;
                        if (i4 == 3) {
                            ConstraintWidget.DimensionBehaviour dimensionBehaviour7 = ConstraintWidget.DimensionBehaviour.WRAP_CONTENT;
                            if (dimensionBehaviour6 == dimensionBehaviour7) {
                                m5503(next, dimensionBehaviour7, 0, dimensionBehaviour7, 0);
                            }
                            int r8 = next.m473();
                            ConstraintWidget.DimensionBehaviour dimensionBehaviour8 = ConstraintWidget.DimensionBehaviour.FIXED;
                            m5503(next, dimensionBehaviour8, (int) ((((float) r8) * next.f842) + 0.5f), dimensionBehaviour8, r8);
                            next.f896.f920.m5539(next.m478());
                            next.f835.f920.m5539(next.m473());
                            next.f861 = true;
                        } else if (i4 == 1) {
                            m5503(next, ConstraintWidget.DimensionBehaviour.WRAP_CONTENT, 0, dimensionBehaviour6, 0);
                            next.f896.f920.f7240 = next.m478();
                        } else if (i4 == 2) {
                            ConstraintWidget.DimensionBehaviour[] dimensionBehaviourArr3 = r14.f886;
                            if (dimensionBehaviourArr3[0] == ConstraintWidget.DimensionBehaviour.FIXED || dimensionBehaviourArr3[0] == ConstraintWidget.DimensionBehaviour.MATCH_PARENT) {
                                m5503(next, ConstraintWidget.DimensionBehaviour.FIXED, (int) ((next.f901 * ((float) r14.m478())) + 0.5f), dimensionBehaviour6, next.m473());
                                next.f896.f920.m5539(next.m478());
                                next.f835.f920.m5539(next.m473());
                                next.f861 = true;
                            }
                        } else {
                            ConstraintAnchor[] constraintAnchorArr = next.f856;
                            if (constraintAnchorArr[0].f812 == null || constraintAnchorArr[1].f812 == null) {
                                m5503(next, ConstraintWidget.DimensionBehaviour.WRAP_CONTENT, 0, dimensionBehaviour6, 0);
                                next.f896.f920.m5539(next.m478());
                                next.f835.f920.m5539(next.m473());
                                next.f861 = true;
                            }
                        }
                    }
                    if (dimensionBehaviour6 == ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT && (dimensionBehaviour5 == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT || dimensionBehaviour5 == ConstraintWidget.DimensionBehaviour.FIXED)) {
                        int i5 = next.f827;
                        if (i5 == 3) {
                            ConstraintWidget.DimensionBehaviour dimensionBehaviour9 = ConstraintWidget.DimensionBehaviour.WRAP_CONTENT;
                            if (dimensionBehaviour5 == dimensionBehaviour9) {
                                m5503(next, dimensionBehaviour9, 0, dimensionBehaviour9, 0);
                            }
                            int r6 = next.m478();
                            float f = next.f842;
                            if (next.f855 == -1) {
                                f = 1.0f / f;
                            }
                            ConstraintWidget.DimensionBehaviour dimensionBehaviour10 = ConstraintWidget.DimensionBehaviour.FIXED;
                            m5503(next, dimensionBehaviour10, r6, dimensionBehaviour10, (int) ((((float) r6) * f) + 0.5f));
                            next.f896.f920.m5539(next.m478());
                            next.f835.f920.m5539(next.m473());
                            next.f861 = true;
                        } else if (i5 == 1) {
                            m5503(next, dimensionBehaviour5, 0, ConstraintWidget.DimensionBehaviour.WRAP_CONTENT, 0);
                            next.f835.f920.f7240 = next.m473();
                        } else if (i5 == 2) {
                            ConstraintWidget.DimensionBehaviour[] dimensionBehaviourArr4 = r14.f886;
                            if (dimensionBehaviourArr4[1] == ConstraintWidget.DimensionBehaviour.FIXED || dimensionBehaviourArr4[1] == ConstraintWidget.DimensionBehaviour.MATCH_PARENT) {
                                m5503(next, dimensionBehaviour5, next.m478(), ConstraintWidget.DimensionBehaviour.FIXED, (int) ((next.f846 * ((float) r14.m473())) + 0.5f));
                                next.f896.f920.m5539(next.m478());
                                next.f835.f920.m5539(next.m473());
                                next.f861 = true;
                            }
                        } else {
                            ConstraintAnchor[] constraintAnchorArr2 = next.f856;
                            if (constraintAnchorArr2[2].f812 == null || constraintAnchorArr2[3].f812 == null) {
                                m5503(next, ConstraintWidget.DimensionBehaviour.WRAP_CONTENT, 0, dimensionBehaviour6, 0);
                                next.f896.f920.m5539(next.m478());
                                next.f835.f920.m5539(next.m473());
                                next.f861 = true;
                            }
                        }
                    }
                    ConstraintWidget.DimensionBehaviour dimensionBehaviour11 = ConstraintWidget.DimensionBehaviour.MATCH_CONSTRAINT;
                    if (dimensionBehaviour5 == dimensionBehaviour11 && dimensionBehaviour6 == dimensionBehaviour11) {
                        int i6 = next.f874;
                        if (i6 == 1 || (i = next.f827) == 1) {
                            ConstraintWidget.DimensionBehaviour dimensionBehaviour12 = ConstraintWidget.DimensionBehaviour.WRAP_CONTENT;
                            m5503(next, dimensionBehaviour12, 0, dimensionBehaviour12, 0);
                            next.f896.f920.f7240 = next.m478();
                            next.f835.f920.f7240 = next.m473();
                        } else if (i == 2 && i6 == 2) {
                            ConstraintWidget.DimensionBehaviour[] dimensionBehaviourArr5 = r14.f886;
                            ConstraintWidget.DimensionBehaviour dimensionBehaviour13 = dimensionBehaviourArr5[0];
                            ConstraintWidget.DimensionBehaviour dimensionBehaviour14 = ConstraintWidget.DimensionBehaviour.FIXED;
                            if ((dimensionBehaviour13 == dimensionBehaviour14 || dimensionBehaviourArr5[0] == dimensionBehaviour14) && ((dimensionBehaviourArr = r14.f886)[1] == (dimensionBehaviour = ConstraintWidget.DimensionBehaviour.FIXED) || dimensionBehaviourArr[1] == dimensionBehaviour)) {
                                float f2 = next.f901;
                                float f3 = next.f846;
                                ConstraintWidget.DimensionBehaviour dimensionBehaviour15 = ConstraintWidget.DimensionBehaviour.FIXED;
                                m5503(next, dimensionBehaviour15, (int) ((f2 * ((float) r14.m478())) + 0.5f), dimensionBehaviour15, (int) ((f3 * ((float) r14.m473())) + 0.5f));
                                next.f896.f920.m5539(next.m478());
                                next.f835.f920.m5539(next.m473());
                                next.f861 = true;
                            }
                        }
                    }
                }
            }
        }
        return false;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5502() {
        ArrayList<WidgetRun> arrayList = this.f7212;
        arrayList.clear();
        this.f7217.f896.m5532();
        this.f7217.f835.m5526();
        arrayList.add(this.f7217.f896);
        arrayList.add(this.f7217.f835);
        Iterator<ConstraintWidget> it2 = this.f7217.f7284.iterator();
        HashSet hashSet = null;
        while (it2.hasNext()) {
            ConstraintWidget next = it2.next();
            if (next instanceof C2083) {
                arrayList.add(new C2097(next));
            } else {
                if (next.m503()) {
                    if (next.f858 == null) {
                        next.f858 = new C2084(next, 0);
                    }
                    if (hashSet == null) {
                        hashSet = new HashSet();
                    }
                    hashSet.add(next.f858);
                } else {
                    arrayList.add(next.f896);
                }
                if (next.m514()) {
                    if (next.f817 == null) {
                        next.f817 = new C2084(next, 1);
                    }
                    if (hashSet == null) {
                        hashSet = new HashSet();
                    }
                    hashSet.add(next.f817);
                } else {
                    arrayList.add(next.f835);
                }
                if (next instanceof C2102) {
                    arrayList.add(new C2087(next));
                }
            }
        }
        if (hashSet != null) {
            arrayList.addAll(hashSet);
        }
        Iterator<WidgetRun> it3 = arrayList.iterator();
        while (it3.hasNext()) {
            it3.next().m518();
        }
        Iterator<WidgetRun> it4 = arrayList.iterator();
        while (it4.hasNext()) {
            WidgetRun next2 = it4.next();
            if (next2.f922 != this.f7217) {
                next2.m524();
            }
        }
        this.f7218.clear();
        C2086.f7219 = 0;
        m5505(this.f7215.f896, 0, this.f7218);
        m5505(this.f7215.f835, 1, this.f7218);
        this.f7213 = false;
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m5504(DependencyNode dependencyNode, int i, int i2, DependencyNode dependencyNode2, ArrayList<C2086> arrayList, C2086 r14) {
        WidgetRun widgetRun = dependencyNode.f916;
        if (widgetRun.f919 == null) {
            C2082 r0 = this.f7215;
            if (!(widgetRun == r0.f896 || widgetRun == r0.f835)) {
                if (r14 == null) {
                    r14 = new C2086(widgetRun, i2);
                    arrayList.add(r14);
                }
                widgetRun.f919 = r14;
                r14.f7220.add(widgetRun);
                for (AbstractC2096 r02 : widgetRun.f928.f908) {
                    if (r02 instanceof DependencyNode) {
                        m5504((DependencyNode) r02, i, 0, dependencyNode2, arrayList, r14);
                    }
                }
                for (AbstractC2096 r03 : widgetRun.f921.f908) {
                    if (r03 instanceof DependencyNode) {
                        m5504((DependencyNode) r03, i, 1, dependencyNode2, arrayList, r14);
                    }
                }
                if (i == 1 && (widgetRun instanceof C2093)) {
                    for (AbstractC2096 r04 : ((C2093) widgetRun).f7237.f908) {
                        if (r04 instanceof DependencyNode) {
                            m5504((DependencyNode) r04, i, 2, dependencyNode2, arrayList, r14);
                        }
                    }
                }
                for (DependencyNode dependencyNode3 : widgetRun.f928.f913) {
                    if (dependencyNode3 == dependencyNode2) {
                        r14.f7222 = true;
                    }
                    m5504(dependencyNode3, i, 0, dependencyNode2, arrayList, r14);
                }
                for (DependencyNode dependencyNode4 : widgetRun.f921.f913) {
                    if (dependencyNode4 == dependencyNode2) {
                        r14.f7222 = true;
                    }
                    m5504(dependencyNode4, i, 1, dependencyNode2, arrayList, r14);
                }
                if (i == 1 && (widgetRun instanceof C2093)) {
                    for (DependencyNode dependencyNode5 : ((C2093) widgetRun).f7237.f913) {
                        m5504(dependencyNode5, i, 2, dependencyNode2, arrayList, r14);
                    }
                }
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m5505(WidgetRun widgetRun, int i, ArrayList<C2086> arrayList) {
        for (AbstractC2096 r1 : widgetRun.f928.f908) {
            if (r1 instanceof DependencyNode) {
                m5504((DependencyNode) r1, i, 0, widgetRun.f921, arrayList, null);
            } else if (r1 instanceof WidgetRun) {
                m5504(((WidgetRun) r1).f928, i, 0, widgetRun.f921, arrayList, null);
            }
        }
        for (AbstractC2096 r12 : widgetRun.f921.f908) {
            if (r12 instanceof DependencyNode) {
                m5504((DependencyNode) r12, i, 1, widgetRun.f928, arrayList, null);
            } else if (r12 instanceof WidgetRun) {
                m5504(((WidgetRun) r12).f921, i, 1, widgetRun.f928, arrayList, null);
            }
        }
        if (i == 1) {
            for (AbstractC2096 r0 : ((C2093) widgetRun).f7237.f908) {
                if (r0 instanceof DependencyNode) {
                    m5504((DependencyNode) r0, i, 2, null, arrayList, null);
                }
            }
        }
    }
}
