package ῲ.ⁱ.ῲ.㿎.ᕣ;

import androidx.constraintlayout.solver.widgets.ConstraintWidget;
import androidx.constraintlayout.solver.widgets.analyzer.DependencyNode;
import androidx.constraintlayout.solver.widgets.analyzer.WidgetRun;
import ῲ.ⁱ.ῲ.㿎.C2103;

/* renamed from: ῲ.ⁱ.ῲ.㿎.ᕣ.ᨨ  reason: contains not printable characters */
/* compiled from: HelperReferences */
public class C2087 extends WidgetRun {
    public C2087(ConstraintWidget constraintWidget) {
        super(constraintWidget);
    }

    @Override // androidx.constraintlayout.solver.widgets.analyzer.WidgetRun
    /* renamed from: ʬ  reason: contains not printable characters */
    public void m5509() {
        this.f919 = null;
        this.f928.m515();
    }

    @Override // androidx.constraintlayout.solver.widgets.analyzer.WidgetRun
    /* renamed from: ඓ  reason: contains not printable characters */
    public boolean m5510() {
        return false;
    }

    @Override // androidx.constraintlayout.solver.widgets.analyzer.WidgetRun
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m5511() {
        ConstraintWidget constraintWidget = this.f922;
        if (constraintWidget instanceof C2103) {
            int i = ((C2103) constraintWidget).f7282;
            if (i == 0 || i == 1) {
                this.f922.f822 = this.f928.f911;
                return;
            }
            constraintWidget.f892 = this.f928.f911;
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m5513(DependencyNode dependencyNode) {
        this.f928.f908.add(dependencyNode);
        dependencyNode.f913.add(this.f928);
    }

    @Override // androidx.constraintlayout.solver.widgets.analyzer.WidgetRun
    /* renamed from: K  reason: contains not printable characters */
    public void m5512() {
        ConstraintWidget constraintWidget = this.f922;
        if (constraintWidget instanceof C2103) {
            DependencyNode dependencyNode = this.f928;
            dependencyNode.f910 = true;
            C2103 k = (C2103) constraintWidget;
            int i = k.f7282;
            boolean z = k.f7283;
            int i2 = 0;
            if (i == 0) {
                dependencyNode.f907 = DependencyNode.Type.LEFT;
                while (i2 < k.f7278) {
                    ConstraintWidget constraintWidget2 = k.f7279[i2];
                    if (z || constraintWidget2.f840 != 8) {
                        DependencyNode dependencyNode2 = constraintWidget2.f896.f928;
                        dependencyNode2.f908.add(this.f928);
                        this.f928.f913.add(dependencyNode2);
                    }
                    i2++;
                }
                m5513(this.f922.f896.f928);
                m5513(this.f922.f896.f921);
            } else if (i == 1) {
                dependencyNode.f907 = DependencyNode.Type.RIGHT;
                while (i2 < k.f7278) {
                    ConstraintWidget constraintWidget3 = k.f7279[i2];
                    if (z || constraintWidget3.f840 != 8) {
                        DependencyNode dependencyNode3 = constraintWidget3.f896.f921;
                        dependencyNode3.f908.add(this.f928);
                        this.f928.f913.add(dependencyNode3);
                    }
                    i2++;
                }
                m5513(this.f922.f896.f928);
                m5513(this.f922.f896.f921);
            } else if (i == 2) {
                dependencyNode.f907 = DependencyNode.Type.TOP;
                while (i2 < k.f7278) {
                    ConstraintWidget constraintWidget4 = k.f7279[i2];
                    if (z || constraintWidget4.f840 != 8) {
                        DependencyNode dependencyNode4 = constraintWidget4.f835.f928;
                        dependencyNode4.f908.add(this.f928);
                        this.f928.f913.add(dependencyNode4);
                    }
                    i2++;
                }
                m5513(this.f922.f835.f928);
                m5513(this.f922.f835.f921);
            } else if (i == 3) {
                dependencyNode.f907 = DependencyNode.Type.BOTTOM;
                while (i2 < k.f7278) {
                    ConstraintWidget constraintWidget5 = k.f7279[i2];
                    if (z || constraintWidget5.f840 != 8) {
                        DependencyNode dependencyNode5 = constraintWidget5.f835.f921;
                        dependencyNode5.f908.add(this.f928);
                        this.f928.f913.add(dependencyNode5);
                    }
                    i2++;
                }
                m5513(this.f922.f835.f928);
                m5513(this.f922.f835.f921);
            }
        }
    }

    @Override // ῲ.ⁱ.ῲ.㿎.ᕣ.AbstractC2096, androidx.constraintlayout.solver.widgets.analyzer.WidgetRun
    /* renamed from: K  reason: contains not printable characters */
    public void m5514(AbstractC2096 r7) {
        C2103 k = (C2103) this.f922;
        int i = k.f7282;
        int i2 = -1;
        int i3 = 0;
        for (DependencyNode dependencyNode : this.f928.f913) {
            int i4 = dependencyNode.f911;
            if (i2 == -1 || i4 < i2) {
                i2 = i4;
            }
            if (i3 < i4) {
                i3 = i4;
            }
        }
        if (i == 0 || i == 2) {
            this.f928.m516(i2 + k.f7280);
        } else {
            this.f928.m516(i3 + k.f7280);
        }
    }
}
