package ῲ.ⁱ.K.ῲ;

import android.os.Build;
import android.util.Log;
import android.view.View;
import androidx.constraintlayout.solver.widgets.ConstraintWidget;
import androidx.constraintlayout.widget.ConstraintAttribute;
import java.util.HashMap;
import java.util.LinkedHashMap;
import ῲ.ⁱ.ʬ.C2059;
import ῲ.ⁱ.K.ῲ.AbstractC2113;
import ῲ.ⁱ.K.K.C2184;

/* renamed from: ῲ.ⁱ.K.ῲ.䁗  reason: contains not printable characters */
/* compiled from: MotionConstrainedPoint */
public class C2183 implements Comparable<C2183> {

    /* renamed from: ʬ  reason: contains not printable characters */
    public int f7576 = 0;

    /* renamed from: Ԕ  reason: contains not printable characters */
    public float f7577 = 0.0f;

    /* renamed from: ؿ  reason: contains not printable characters */
    public float f7578;

    /* renamed from: ݜ  reason: contains not printable characters */
    public LinkedHashMap<String, ConstraintAttribute> f7579 = new LinkedHashMap<>();

    /* renamed from: ඓ  reason: contains not printable characters */
    public float f7580 = 0.0f;

    /* renamed from: ᓣ  reason: contains not printable characters */
    public float f7581 = Float.NaN;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public float f7582 = Float.NaN;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public float f7583 = 1.0f;

    /* renamed from: ῲ  reason: contains not printable characters */
    public float f7584 = 1.0f;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public float f7585 = 0.0f;

    /* renamed from: 㑃  reason: contains not printable characters */
    public float f7586 = Float.NaN;

    /* renamed from: 㗗  reason: contains not printable characters */
    public float f7587 = 0.0f;

    /* renamed from: 㗽  reason: contains not printable characters */
    public float f7588 = Float.NaN;

    /* renamed from: 㳳  reason: contains not printable characters */
    public float f7589 = 1.0f;

    /* renamed from: 㴹  reason: contains not printable characters */
    public float f7590 = 0.0f;

    /* renamed from: 㸾  reason: contains not printable characters */
    public int f7591;

    /* renamed from: 㿎  reason: contains not printable characters */
    public float f7592 = 0.0f;

    /* renamed from: 䁗  reason: contains not printable characters */
    public float f7593 = 0.0f;

    static {
        new String[]{"position", "x", "y", "width", "height", "pathRotate"};
    }

    /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
    @Override // java.lang.Comparable
    public int compareTo(C2183 r2) {
        return Float.compare(this.f7578, r2.f7578);
    }

    /* renamed from: K  reason: contains not printable characters */
    public final boolean m5720(float f, float f2) {
        if (Float.isNaN(f) || Float.isNaN(f2)) {
            if (Float.isNaN(f) != Float.isNaN(f2)) {
                return true;
            }
            return false;
        } else if (Math.abs(f - f2) > 1.0E-6f) {
            return true;
        } else {
            return false;
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5719(HashMap<String, AbstractC2113> hashMap, int i) {
        for (String str : hashMap.keySet()) {
            AbstractC2113 r2 = hashMap.get(str);
            char c = 65535;
            switch (str.hashCode()) {
                case -1249320806:
                    if (str.equals("rotationX")) {
                        c = 3;
                        break;
                    }
                    break;
                case -1249320805:
                    if (str.equals("rotationY")) {
                        c = 4;
                        break;
                    }
                    break;
                case -1225497657:
                    if (str.equals("translationX")) {
                        c = 11;
                        break;
                    }
                    break;
                case -1225497656:
                    if (str.equals("translationY")) {
                        c = '\f';
                        break;
                    }
                    break;
                case -1225497655:
                    if (str.equals("translationZ")) {
                        c = '\r';
                        break;
                    }
                    break;
                case -1001078227:
                    if (str.equals("progress")) {
                        c = '\b';
                        break;
                    }
                    break;
                case -908189618:
                    if (str.equals("scaleX")) {
                        c = '\t';
                        break;
                    }
                    break;
                case -908189617:
                    if (str.equals("scaleY")) {
                        c = '\n';
                        break;
                    }
                    break;
                case -760884510:
                    if (str.equals("transformPivotX")) {
                        c = 5;
                        break;
                    }
                    break;
                case -760884509:
                    if (str.equals("transformPivotY")) {
                        c = 6;
                        break;
                    }
                    break;
                case -40300674:
                    if (str.equals("rotation")) {
                        c = 2;
                        break;
                    }
                    break;
                case -4379043:
                    if (str.equals("elevation")) {
                        c = 1;
                        break;
                    }
                    break;
                case 37232917:
                    if (str.equals("transitionPathRotate")) {
                        c = 7;
                        break;
                    }
                    break;
                case 92909918:
                    if (str.equals("alpha")) {
                        c = 0;
                        break;
                    }
                    break;
            }
            float f = 1.0f;
            float f2 = 0.0f;
            switch (c) {
                case 0:
                    if (!Float.isNaN(this.f7584)) {
                        f = this.f7584;
                    }
                    r2.m5603(i, f);
                    break;
                case 1:
                    if (!Float.isNaN(this.f7580)) {
                        f2 = this.f7580;
                    }
                    r2.m5603(i, f2);
                    break;
                case 2:
                    if (!Float.isNaN(this.f7590)) {
                        f2 = this.f7590;
                    }
                    r2.m5603(i, f2);
                    break;
                case 3:
                    if (!Float.isNaN(this.f7585)) {
                        f2 = this.f7585;
                    }
                    r2.m5603(i, f2);
                    break;
                case 4:
                    if (!Float.isNaN(this.f7592)) {
                        f2 = this.f7592;
                    }
                    r2.m5603(i, f2);
                    break;
                case 5:
                    if (!Float.isNaN(this.f7582)) {
                        f2 = this.f7582;
                    }
                    r2.m5603(i, f2);
                    break;
                case 6:
                    if (!Float.isNaN(this.f7586)) {
                        f2 = this.f7586;
                    }
                    r2.m5603(i, f2);
                    break;
                case 7:
                    if (!Float.isNaN(this.f7581)) {
                        f2 = this.f7581;
                    }
                    r2.m5603(i, f2);
                    break;
                case '\b':
                    if (!Float.isNaN(this.f7588)) {
                        f2 = this.f7588;
                    }
                    r2.m5603(i, f2);
                    break;
                case '\t':
                    if (!Float.isNaN(this.f7583)) {
                        f = this.f7583;
                    }
                    r2.m5603(i, f);
                    break;
                case '\n':
                    if (!Float.isNaN(this.f7589)) {
                        f = this.f7589;
                    }
                    r2.m5603(i, f);
                    break;
                case 11:
                    if (!Float.isNaN(this.f7593)) {
                        f2 = this.f7593;
                    }
                    r2.m5603(i, f2);
                    break;
                case '\f':
                    if (!Float.isNaN(this.f7577)) {
                        f2 = this.f7577;
                    }
                    r2.m5603(i, f2);
                    break;
                case '\r':
                    if (!Float.isNaN(this.f7587)) {
                        f2 = this.f7587;
                    }
                    r2.m5603(i, f2);
                    break;
                default:
                    if (str.startsWith("CUSTOM")) {
                        String str2 = str.split(",")[1];
                        if (this.f7579.containsKey(str2)) {
                            ConstraintAttribute constraintAttribute = this.f7579.get(str2);
                            if (r2 instanceof AbstractC2113.C2119) {
                                ((AbstractC2113.C2119) r2).f7381.append(i, constraintAttribute);
                                break;
                            } else {
                                Log.e("MotionPaths", str + " splineSet not a CustomSet frame = " + i + ", value" + constraintAttribute.m544() + r2);
                                break;
                            }
                        } else {
                            Log.e("MotionPaths", "UNKNOWN customName " + str2);
                            break;
                        }
                    } else {
                        Log.e("MotionPaths", "UNKNOWN spline " + str);
                        break;
                    }
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5717(View view) {
        view.getX();
        view.getY();
        view.getWidth();
        view.getHeight();
        this.f7591 = view.getVisibility();
        this.f7584 = view.getVisibility() != 0 ? 0.0f : view.getAlpha();
        int i = Build.VERSION.SDK_INT;
        this.f7580 = view.getElevation();
        this.f7590 = view.getRotation();
        this.f7585 = view.getRotationX();
        this.f7592 = view.getRotationY();
        this.f7583 = view.getScaleX();
        this.f7589 = view.getScaleY();
        this.f7582 = view.getPivotX();
        this.f7586 = view.getPivotY();
        this.f7593 = view.getTranslationX();
        this.f7577 = view.getTranslationY();
        int i2 = Build.VERSION.SDK_INT;
        this.f7587 = view.getTranslationZ();
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5718(ConstraintWidget constraintWidget, C2059 r5, int i) {
        constraintWidget.m506();
        constraintWidget.m476();
        constraintWidget.m478();
        constraintWidget.m473();
        C2059.C2063 r4 = r5.m5369(i);
        C2059.C2064 r52 = r4.f7096;
        this.f7576 = r52.f7100;
        int i2 = r52.f7102;
        this.f7591 = i2;
        this.f7584 = (i2 == 0 || this.f7576 != 0) ? r4.f7096.f7104 : 0.0f;
        C2059.C2061 r53 = r4.f7095;
        boolean z = r53.f7025;
        this.f7580 = r53.f7030;
        this.f7590 = r53.f7022;
        this.f7585 = r53.f7018;
        this.f7592 = r53.f7028;
        this.f7583 = r53.f7019;
        this.f7589 = r53.f7027;
        this.f7582 = r53.f7023;
        this.f7586 = r53.f7029;
        this.f7593 = r53.f7021;
        this.f7577 = r53.f7026;
        this.f7587 = r53.f7020;
        C2184.m5721(r4.f7094.f7010);
        C2059.C2060 r54 = r4.f7094;
        this.f7581 = r54.f7013;
        int i3 = r54.f7011;
        this.f7588 = r4.f7096.f7101;
        for (String str : r4.f7098.keySet()) {
            ConstraintAttribute constraintAttribute = r4.f7098.get(str);
            if (constraintAttribute.f984 != ConstraintAttribute.AttributeType.STRING_TYPE) {
                this.f7579.put(str, constraintAttribute);
            }
        }
    }
}
