package ῲ.ⁱ.ῲ.㿎;

import androidx.constraintlayout.solver.SolverVariable;
import androidx.constraintlayout.solver.widgets.ConstraintAnchor;
import androidx.constraintlayout.solver.widgets.ConstraintWidget;
import java.util.HashMap;
import ῲ.ⁱ.ῲ.C2073;
import ῲ.ⁱ.ῲ.C2080;

/* renamed from: ῲ.ⁱ.ῲ.㿎.ඓ  reason: contains not printable characters */
/* compiled from: Guideline */
public class C2083 extends ConstraintWidget {

    /* renamed from: ჹ  reason: contains not printable characters */
    public int f7203;

    /* renamed from: ᑁ  reason: contains not printable characters */
    public boolean f7204;

    /* renamed from: ᬈ  reason: contains not printable characters */
    public int f7205 = -1;

    /* renamed from: ẫ  reason: contains not printable characters */
    public int f7206 = -1;

    /* renamed from: 㒎  reason: contains not printable characters */
    public ConstraintAnchor f7207 = this.f885;

    /* renamed from: 䅹  reason: contains not printable characters */
    public float f7208 = -1.0f;

    public C2083() {
        this.f7203 = 0;
        this.f831.clear();
        this.f831.add(this.f7207);
        int length = this.f856.length;
        for (int i = 0; i < length; i++) {
            this.f856[i] = this.f7207;
        }
    }

    /* renamed from: Ԕ  reason: contains not printable characters */
    public void m5483(int i) {
        if (this.f7203 != i) {
            this.f7203 = i;
            this.f831.clear();
            if (this.f7203 == 1) {
                this.f7207 = this.f820;
            } else {
                this.f7207 = this.f885;
            }
            this.f831.add(this.f7207);
            int length = this.f856.length;
            for (int i2 = 0; i2 < length; i2++) {
                this.f856[i2] = this.f7207;
            }
        }
    }

    @Override // androidx.constraintlayout.solver.widgets.ConstraintWidget
    /* renamed from: ؿ  reason: contains not printable characters */
    public boolean m5484() {
        return this.f7204;
    }

    @Override // androidx.constraintlayout.solver.widgets.ConstraintWidget
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m5485(C2080 r3, boolean z) {
        if (this.f867 != null) {
            int r32 = r3.m5446(this.f7207);
            if (this.f7203 == 1) {
                this.f822 = r32;
                this.f892 = 0;
                m479(this.f867.m473());
                m502(0);
                return;
            }
            this.f822 = 0;
            this.f892 = r32;
            m502(this.f867.m478());
            m479(0);
        }
    }

    @Override // androidx.constraintlayout.solver.widgets.ConstraintWidget
    /* renamed from: ῲ  reason: contains not printable characters */
    public boolean m5486() {
        return true;
    }

    @Override // androidx.constraintlayout.solver.widgets.ConstraintWidget
    /* renamed from: K  reason: contains not printable characters */
    public void m5488(ConstraintWidget constraintWidget, HashMap<ConstraintWidget, ConstraintWidget> hashMap) {
        super.m494(constraintWidget, hashMap);
        C2083 r1 = (C2083) constraintWidget;
        this.f7208 = r1.f7208;
        this.f7205 = r1.f7205;
        this.f7206 = r1.f7206;
        m5483(r1.f7203);
    }

    @Override // androidx.constraintlayout.solver.widgets.ConstraintWidget
    /* renamed from: 㗗  reason: contains not printable characters */
    public boolean m5490() {
        return this.f7204;
    }

    /* renamed from: 䁗  reason: contains not printable characters */
    public void m5491(int i) {
        ConstraintAnchor constraintAnchor = this.f7207;
        constraintAnchor.f809 = i;
        constraintAnchor.f806 = true;
        this.f7204 = true;
    }

    @Override // androidx.constraintlayout.solver.widgets.ConstraintWidget
    /* renamed from: K  reason: contains not printable characters */
    public ConstraintAnchor m5487(ConstraintAnchor.Type type) {
        switch (type.ordinal()) {
            case 0:
            case 5:
            case 6:
            case 7:
            case 8:
                return null;
            case 1:
            case 3:
                if (this.f7203 == 1) {
                    return this.f7207;
                }
                break;
            case 2:
            case 4:
                if (this.f7203 == 0) {
                    return this.f7207;
                }
                break;
        }
        throw new AssertionError(type.name());
    }

    @Override // androidx.constraintlayout.solver.widgets.ConstraintWidget
    /* renamed from: K  reason: contains not printable characters */
    public void m5489(C2080 r8, boolean z) {
        C2082 r9 = (C2082) this.f867;
        if (r9 != null) {
            Object r0 = r9.m488(ConstraintAnchor.Type.LEFT);
            Object r1 = r9.m488(ConstraintAnchor.Type.RIGHT);
            ConstraintWidget constraintWidget = this.f867;
            boolean z2 = constraintWidget != null && constraintWidget.f886[0] == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT;
            if (this.f7203 == 0) {
                r0 = r9.m488(ConstraintAnchor.Type.TOP);
                r1 = r9.m488(ConstraintAnchor.Type.BOTTOM);
                ConstraintWidget constraintWidget2 = this.f867;
                z2 = constraintWidget2 != null && constraintWidget2.f886[1] == ConstraintWidget.DimensionBehaviour.WRAP_CONTENT;
            }
            if (this.f7204) {
                ConstraintAnchor constraintAnchor = this.f7207;
                if (constraintAnchor.f806) {
                    SolverVariable r92 = r8.m5454(constraintAnchor);
                    r8.m5457(r92, this.f7207.m459());
                    if (this.f7205 != -1) {
                        if (z2) {
                            r8.m5449(r8.m5454(r1), r92, 0, 5);
                        }
                    } else if (this.f7206 != -1 && z2) {
                        SolverVariable r12 = r8.m5454(r1);
                        r8.m5449(r92, r8.m5454(r0), 0, 5);
                        r8.m5449(r12, r92, 0, 5);
                    }
                    this.f7204 = false;
                    return;
                }
            }
            if (this.f7205 != -1) {
                SolverVariable r93 = r8.m5454(this.f7207);
                r8.m5455(r93, r8.m5454(r0), this.f7205, 8);
                if (z2) {
                    r8.m5449(r8.m5454(r1), r93, 0, 5);
                }
            } else if (this.f7206 != -1) {
                SolverVariable r94 = r8.m5454(this.f7207);
                SolverVariable r13 = r8.m5454(r1);
                r8.m5455(r94, r13, -this.f7206, 8);
                if (z2) {
                    r8.m5449(r94, r8.m5454(r0), 0, 5);
                    r8.m5449(r13, r94, 0, 5);
                }
            } else if (this.f7208 != -1.0f) {
                SolverVariable r95 = r8.m5454(this.f7207);
                SolverVariable r14 = r8.m5454(r1);
                float f = this.f7208;
                C2073 r3 = r8.m5448();
                r3.f7138.m5420(r95, -1.0f);
                r3.f7138.m5420(r14, f);
                r8.m5461(r3);
            }
        }
    }
}
