package ῲ.ⁱ.K.ῲ;

import androidx.constraintlayout.widget.ConstraintAttribute;
import java.util.LinkedHashMap;
import ῲ.ⁱ.ʬ.C2059;
import ῲ.ⁱ.K.K.C2184;

/* renamed from: ῲ.ⁱ.K.ῲ.ؿ  reason: contains not printable characters */
/* compiled from: MotionPaths */
public class C2112 implements Comparable<C2112> {

    /* renamed from: ؿ  reason: contains not printable characters */
    public static String[] f7360 = {"position", "x", "y", "width", "height", "pathRotate"};

    /* renamed from: ʬ  reason: contains not printable characters */
    public int f7361;

    /* renamed from: Ԕ  reason: contains not printable characters */
    public double[] f7362;

    /* renamed from: ඓ  reason: contains not printable characters */
    public float f7363;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public int f7364;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public float f7365;

    /* renamed from: ῲ  reason: contains not printable characters */
    public C2184 f7366;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public float f7367;

    /* renamed from: 㑃  reason: contains not printable characters */
    public LinkedHashMap<String, ConstraintAttribute> f7368;

    /* renamed from: 㗗  reason: contains not printable characters */
    public double[] f7369;

    /* renamed from: 㳳  reason: contains not printable characters */
    public float f7370;

    /* renamed from: 㴹  reason: contains not printable characters */
    public float f7371;

    /* renamed from: 㸾  reason: contains not printable characters */
    public float f7372;

    /* renamed from: 㿎  reason: contains not printable characters */
    public float f7373;

    /* renamed from: 䁗  reason: contains not printable characters */
    public int f7374;

    public C2112() {
        this.f7361 = 0;
        this.f7370 = Float.NaN;
        this.f7364 = -1;
        this.f7368 = new LinkedHashMap<>();
        this.f7374 = 0;
        this.f7362 = new double[18];
        this.f7369 = new double[18];
    }

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

    /* renamed from: K  reason: contains not printable characters */
    public final boolean m5600(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 m5598(C2112 r5, boolean[] zArr, boolean z) {
        zArr[0] = zArr[0] | m5600(this.f7363, r5.f7363);
        zArr[1] = zArr[1] | m5600(this.f7371, r5.f7371) | z;
        zArr[2] = z | m5600(this.f7367, r5.f7367) | zArr[2];
        zArr[3] = zArr[3] | m5600(this.f7373, r5.f7373);
        zArr[4] = m5600(this.f7365, r5.f7365) | zArr[4];
    }

    public C2112(int i, int i2, C2137 r22, C2112 r23, C2112 r24) {
        float f;
        int i3;
        this.f7361 = 0;
        this.f7370 = Float.NaN;
        this.f7364 = -1;
        this.f7368 = new LinkedHashMap<>();
        this.f7374 = 0;
        this.f7362 = new double[18];
        this.f7369 = new double[18];
        int i4 = r22.f7472;
        if (i4 == 1) {
            float f2 = ((float) r22.f7331) / 100.0f;
            this.f7372 = f2;
            this.f7361 = r22.f7475;
            float f3 = Float.isNaN(r22.f7469) ? f2 : r22.f7469;
            float f4 = Float.isNaN(r22.f7473) ? f2 : r22.f7473;
            float f5 = r24.f7373 - r23.f7373;
            float f6 = r24.f7365 - r23.f7365;
            this.f7363 = this.f7372;
            f2 = !Float.isNaN(r22.f7468) ? r22.f7468 : f2;
            float f7 = r23.f7371;
            float f8 = r23.f7373;
            float f9 = r23.f7367;
            float f10 = r23.f7365;
            float f11 = ((r24.f7373 / 2.0f) + r24.f7371) - ((f8 / 2.0f) + f7);
            float f12 = ((r24.f7365 / 2.0f) + r24.f7367) - ((f10 / 2.0f) + f9);
            float f13 = f11 * f2;
            float f14 = f5 * f3;
            float f15 = f14 / 2.0f;
            this.f7371 = (float) ((int) ((f7 + f13) - f15));
            float f16 = f2 * f12;
            float f17 = f6 * f4;
            float f18 = f17 / 2.0f;
            this.f7367 = (float) ((int) ((f9 + f16) - f18));
            this.f7373 = (float) ((int) (f8 + f14));
            this.f7365 = (float) ((int) (f10 + f17));
            float f19 = Float.isNaN(r22.f7471) ? 0.0f : r22.f7471;
            this.f7374 = 1;
            this.f7371 = (float) ((int) ((r23.f7371 + f13) - f15));
            this.f7367 = (float) ((int) ((r23.f7367 + f16) - f18));
            this.f7371 += (-f12) * f19;
            this.f7367 += f11 * f19;
            this.f7366 = C2184.m5721(r22.f7474);
            this.f7364 = r22.f7470;
        } else if (i4 != 2) {
            float f20 = ((float) r22.f7331) / 100.0f;
            this.f7372 = f20;
            this.f7361 = r22.f7475;
            float f21 = Float.isNaN(r22.f7469) ? f20 : r22.f7469;
            float f22 = Float.isNaN(r22.f7473) ? f20 : r22.f7473;
            float f23 = r24.f7373;
            float f24 = r23.f7373;
            float f25 = f23 - f24;
            float f26 = r24.f7365;
            float f27 = r23.f7365;
            float f28 = f26 - f27;
            this.f7363 = this.f7372;
            float f29 = r23.f7371;
            float f30 = r23.f7367;
            float f31 = ((f23 / 2.0f) + r24.f7371) - ((f24 / 2.0f) + f29);
            float f32 = ((f26 / 2.0f) + r24.f7367) - ((f27 / 2.0f) + f30);
            float f33 = f25 * f21;
            float f34 = f33 / 2.0f;
            this.f7371 = (float) ((int) (((f31 * f20) + f29) - f34));
            float f35 = (f32 * f20) + f30;
            float f36 = f28 * f22;
            float f37 = f36 / 2.0f;
            this.f7367 = (float) ((int) (f35 - f37));
            this.f7373 = (float) ((int) (f24 + f33));
            this.f7365 = (float) ((int) (f27 + f36));
            float f38 = Float.isNaN(r22.f7468) ? f20 : r22.f7468;
            float f39 = Float.isNaN(r22.f7467) ? 0.0f : r22.f7467;
            f20 = !Float.isNaN(r22.f7471) ? r22.f7471 : f20;
            if (Float.isNaN(r22.f7476)) {
                i3 = 2;
                f = 0.0f;
            } else {
                f = r22.f7476;
                i3 = 2;
            }
            this.f7374 = i3;
            this.f7371 = (float) ((int) (((f * f32) + ((f38 * f31) + r23.f7371)) - f34));
            this.f7367 = (float) ((int) (((f32 * f20) + ((f31 * f39) + r23.f7367)) - f37));
            this.f7366 = C2184.m5721(r22.f7474);
            this.f7364 = r22.f7470;
        } else {
            float f40 = ((float) r22.f7331) / 100.0f;
            this.f7372 = f40;
            this.f7361 = r22.f7475;
            float f41 = Float.isNaN(r22.f7469) ? f40 : r22.f7469;
            float f42 = Float.isNaN(r22.f7473) ? f40 : r22.f7473;
            float f43 = r24.f7373;
            float f44 = r23.f7373;
            float f45 = f43 - f44;
            float f46 = r24.f7365;
            float f47 = r23.f7365;
            float f48 = f46 - f47;
            this.f7363 = this.f7372;
            float f49 = r23.f7371;
            float f50 = r23.f7367;
            float f51 = (f43 / 2.0f) + r24.f7371;
            float f52 = (f46 / 2.0f) + r24.f7367;
            float f53 = f45 * f41;
            this.f7371 = (float) ((int) ((((f51 - ((f44 / 2.0f) + f49)) * f40) + f49) - (f53 / 2.0f)));
            float f54 = f48 * f42;
            this.f7367 = (float) ((int) ((((f52 - ((f47 / 2.0f) + f50)) * f40) + f50) - (f54 / 2.0f)));
            this.f7373 = (float) ((int) (f44 + f53));
            this.f7365 = (float) ((int) (f47 + f54));
            this.f7374 = 3;
            if (!Float.isNaN(r22.f7468)) {
                this.f7371 = (float) ((int) (r22.f7468 * ((float) ((int) (((float) i) - this.f7373)))));
            }
            if (!Float.isNaN(r22.f7471)) {
                this.f7367 = (float) ((int) (r22.f7471 * ((float) ((int) (((float) i2) - this.f7365)))));
            }
            this.f7366 = C2184.m5721(r22.f7474);
            this.f7364 = r22.f7470;
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5599(int[] iArr, double[] dArr, float[] fArr, int i) {
        float f = this.f7371;
        float f2 = this.f7367;
        float f3 = this.f7373;
        float f4 = this.f7365;
        for (int i2 = 0; i2 < iArr.length; i2++) {
            float f5 = (float) dArr[i2];
            int i3 = iArr[i2];
            if (i3 == 1) {
                f = f5;
            } else if (i3 == 2) {
                f2 = f5;
            } else if (i3 == 3) {
                f3 = f5;
            } else if (i3 == 4) {
                f4 = f5;
            }
        }
        fArr[i] = (f3 / 2.0f) + f + 0.0f;
        fArr[i + 1] = (f4 / 2.0f) + f2 + 0.0f;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5596(float f, float f2, float[] fArr, int[] iArr, double[] dArr, double[] dArr2) {
        float f3 = 0.0f;
        float f4 = 0.0f;
        float f5 = 0.0f;
        float f6 = 0.0f;
        for (int i = 0; i < iArr.length; i++) {
            float f7 = (float) dArr[i];
            double d = dArr2[i];
            int i2 = iArr[i];
            if (i2 != 0) {
                if (i2 == 1) {
                    f3 = f7;
                } else if (i2 == 2) {
                    f5 = f7;
                } else if (i2 == 3) {
                    f4 = f7;
                } else if (i2 == 4) {
                    f6 = f7;
                }
            }
        }
        float f8 = f3 - ((0.0f * f4) / 2.0f);
        float f9 = f5 - ((0.0f * f6) / 2.0f);
        fArr[0] = (((f4 * 1.0f) + f8) * f) + ((1.0f - f) * f8) + 0.0f;
        fArr[1] = (((f6 * 1.0f) + f9) * f2) + ((1.0f - f2) * f9) + 0.0f;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5595(float f, float f2, float f3, float f4) {
        this.f7371 = f;
        this.f7367 = f2;
        this.f7373 = f3;
        this.f7365 = f4;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5597(C2059.C2063 k) {
        this.f7366 = C2184.m5721(k.f7094.f7010);
        C2059.C2060 r0 = k.f7094;
        this.f7364 = r0.f7016;
        this.f7370 = r0.f7013;
        this.f7361 = r0.f7011;
        float f = k.f7096.f7101;
        for (String str : k.f7098.keySet()) {
            ConstraintAttribute constraintAttribute = k.f7098.get(str);
            if (constraintAttribute.f984 != ConstraintAttribute.AttributeType.STRING_TYPE) {
                this.f7368.put(str, constraintAttribute);
            }
        }
    }
}
