package ῲ.ⁱ.K.ῲ;

import android.util.Log;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import androidx.constraintlayout.motion.widget.MotionLayout;
import androidx.constraintlayout.widget.ConstraintAttribute;
import androidx.constraintlayout.widget.ConstraintLayout;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import ඓ.K.K.K.C1293;
import ῲ.ⁱ.K.ῲ.AbstractC2113;
import ῲ.ⁱ.K.ῲ.AbstractC2140;
import ῲ.ⁱ.K.ῲ.AbstractC2169;
import ῲ.ⁱ.K.K.AbstractC2187;
import ῲ.ⁱ.K.K.C2184;
import ῲ.ⁱ.K.K.C2190;
import K.K.K.ʬ.C2369;

/* renamed from: ῲ.ⁱ.K.ῲ.Ԕ  reason: contains not printable characters */
/* compiled from: MotionController */
public class C2110 {

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

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

    /* renamed from: Ԛ  reason: contains not printable characters */
    public float[] f7335 = new float[1];

    /* renamed from: ؿ  reason: contains not printable characters */
    public String[] f7336;

    /* renamed from: ݜ  reason: contains not printable characters */
    public float[] f7337 = new float[this.f7351];

    /* renamed from: ඓ  reason: contains not printable characters */
    public C2112 f7338 = new C2112();

    /* renamed from: ᑓ  reason: contains not printable characters */
    public HashMap<String, AbstractC2140> f7339;

    /* renamed from: ᓆ  reason: contains not printable characters */
    public HashMap<String, AbstractC2169> f7340;

    /* renamed from: ᓣ  reason: contains not printable characters */
    public int[] f7341;

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

    /* renamed from: ᨨ  reason: contains not printable characters */
    public AbstractC2187 f7343;

    /* renamed from: ῲ  reason: contains not printable characters */
    public int f7344;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public C2183 f7345 = new C2183();

    /* renamed from: K  reason: contains not printable characters */
    public View f7346;

    /* renamed from: ゎ  reason: contains not printable characters */
    public C2158[] f7347;

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

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

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

    /* renamed from: 㗽  reason: contains not printable characters */
    public int f7351 = 4;

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

    /* renamed from: 㴪  reason: contains not printable characters */
    public HashMap<String, AbstractC2113> f7353;

    /* renamed from: 㴹  reason: contains not printable characters */
    public C2183 f7354 = new C2183();

    /* renamed from: 㶋  reason: contains not printable characters */
    public ArrayList<AbstractC2109> f7355 = new ArrayList<>();

    /* renamed from: 㸾  reason: contains not printable characters */
    public C2112 f7356 = new C2112();

    /* renamed from: 㿎  reason: contains not printable characters */
    public AbstractC2187[] f7357;

    /* renamed from: 䀟  reason: contains not printable characters */
    public ArrayList<C2112> f7358 = new ArrayList<>();

    /* renamed from: 䁗  reason: contains not printable characters */
    public int[] f7359;

    public C2110(View view) {
        this.f7346 = view;
        this.f7344 = view.getId();
        ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
        if (layoutParams instanceof ConstraintLayout.C0140) {
            String str = ((ConstraintLayout.C0140) layoutParams).f1046;
        }
    }

    public String toString() {
        StringBuilder r0 = C1293.m3416(" start: x: ");
        r0.append(this.f7356.f7371);
        r0.append(" y: ");
        r0.append(this.f7356.f7367);
        r0.append(" end: x: ");
        r0.append(this.f7338.f7371);
        r0.append(" y: ");
        r0.append(this.f7338.f7367);
        return r0.toString();
    }

    /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */
    /* renamed from: K  reason: contains not printable characters */
    public void m5592(int i, int i2, long j) {
        String str;
        String str2;
        ArrayList arrayList;
        HashSet<String> hashSet;
        HashSet<String> hashSet2;
        Object obj;
        Object obj2;
        Object obj3;
        String str3;
        String str4;
        AbstractC2140 r14;
        Object obj4;
        Object obj5;
        Object obj6;
        String str5;
        String str6;
        String str7;
        String str8;
        String str9;
        String str10;
        double d;
        String str11;
        char c;
        String str12;
        String str13;
        String str14;
        double[][] dArr;
        float[] fArr;
        Iterator<String> it2;
        HashSet<String> hashSet3;
        Iterator<String> it3;
        HashMap<String, Integer> hashMap;
        AbstractC2169 r1;
        char c2;
        ConstraintAttribute constraintAttribute;
        Iterator<String> it4;
        HashSet<String> hashSet4;
        Object obj7;
        Object obj8;
        Object obj9;
        String str15;
        String str16;
        AbstractC2113.C2119 r3;
        HashSet<String> hashSet5;
        char c3;
        AbstractC2113 r16;
        ConstraintAttribute constraintAttribute2;
        String str17;
        Iterator<AbstractC2109> it5;
        String str18;
        new HashSet();
        HashSet<String> hashSet6 = new HashSet<>();
        HashSet<String> hashSet7 = new HashSet<>();
        HashSet<String> hashSet8 = new HashSet<>();
        HashMap<String, Integer> hashMap2 = new HashMap<>();
        int i3 = this.f7348;
        if (i3 != -1) {
            this.f7356.f7364 = i3;
        }
        C2183 r5 = this.f7354;
        C2183 r6 = this.f7345;
        String str19 = "alpha";
        if (r5.m5720(r5.f7584, r6.f7584)) {
            hashSet7.add(str19);
        }
        String str20 = "elevation";
        if (r5.m5720(r5.f7580, r6.f7580)) {
            hashSet7.add(str20);
        }
        int i4 = r5.f7591;
        int i5 = r6.f7591;
        if (i4 != i5 && r5.f7576 == 0 && (i4 == 0 || i5 == 0)) {
            hashSet7.add(str19);
        }
        String str21 = "rotation";
        if (r5.m5720(r5.f7590, r6.f7590)) {
            hashSet7.add(str21);
        }
        if (!Float.isNaN(r5.f7581) || !Float.isNaN(r6.f7581)) {
            hashSet7.add("transitionPathRotate");
        }
        String str22 = "progress";
        if (!Float.isNaN(r5.f7588) || !Float.isNaN(r6.f7588)) {
            hashSet7.add(str22);
        }
        if (r5.m5720(r5.f7585, r6.f7585)) {
            hashSet7.add("rotationX");
        }
        if (r5.m5720(r5.f7592, r6.f7592)) {
            hashSet7.add("rotationY");
        }
        if (r5.m5720(r5.f7582, r6.f7582)) {
            hashSet7.add("transformPivotX");
        }
        if (r5.m5720(r5.f7586, r6.f7586)) {
            hashSet7.add("transformPivotY");
        }
        String str23 = "scaleX";
        if (r5.m5720(r5.f7583, r6.f7583)) {
            hashSet7.add(str23);
        }
        Object obj10 = "rotationX";
        String str24 = "scaleY";
        if (r5.m5720(r5.f7589, r6.f7589)) {
            hashSet7.add(str24);
        }
        Object obj11 = "rotationY";
        if (r5.m5720(r5.f7593, r6.f7593)) {
            hashSet7.add("translationX");
        }
        Object obj12 = "translationX";
        if (r5.m5720(r5.f7577, r6.f7577)) {
            hashSet7.add("translationY");
        }
        if (r5.m5720(r5.f7587, r6.f7587)) {
            hashSet7.add("translationZ");
        }
        ArrayList<AbstractC2109> arrayList2 = this.f7355;
        if (arrayList2 != null) {
            Iterator<AbstractC2109> it6 = arrayList2.iterator();
            arrayList = null;
            while (it6.hasNext()) {
                AbstractC2109 next = it6.next();
                if (next instanceof C2137) {
                    C2137 r7 = (C2137) next;
                    it5 = it6;
                    str17 = str22;
                    C2112 r142 = new C2112(i, i2, r7, this.f7356, this.f7338);
                    int binarySearch = Collections.binarySearch(this.f7358, r142);
                    if (binarySearch == 0) {
                        StringBuilder r12 = C1293.m3416(" KeyPath positon \"");
                        str18 = str23;
                        r12.append(r142.f7363);
                        r12.append("\" outside of range");
                        Log.e("MotionController", r12.toString());
                    } else {
                        str18 = str23;
                    }
                    this.f7358.add((-binarySearch) - 1, r142);
                    int i6 = r7.f7520;
                    if (i6 != -1) {
                        this.f7333 = i6;
                    }
                } else {
                    it5 = it6;
                    str17 = str22;
                    str18 = str23;
                    if (next instanceof C2163) {
                        next.m5589(hashSet8);
                    } else if (next instanceof C2135) {
                        next.m5589(hashSet6);
                    } else if (next instanceof C2158) {
                        if (arrayList == null) {
                            arrayList = new ArrayList();
                        }
                        arrayList.add((C2158) next);
                    } else {
                        next.m5586(hashMap2);
                        next.m5589(hashSet7);
                    }
                }
                str23 = str18;
                it6 = it5;
                str22 = str17;
            }
            str = str22;
            str2 = str23;
        } else {
            str = str22;
            str2 = str23;
            arrayList = null;
        }
        if (arrayList != null) {
            this.f7347 = (C2158[]) arrayList.toArray(new C2158[0]);
        }
        char c4 = 1;
        if (!hashSet7.isEmpty()) {
            this.f7353 = new HashMap<>();
            Iterator<String> it7 = hashSet7.iterator();
            while (it7.hasNext()) {
                String next2 = it7.next();
                if (next2.startsWith("CUSTOM,")) {
                    SparseArray sparseArray = new SparseArray();
                    String str25 = next2.split(",")[c4];
                    Iterator<AbstractC2109> it8 = this.f7355.iterator();
                    while (it8.hasNext()) {
                        AbstractC2109 next3 = it8.next();
                        HashMap<String, ConstraintAttribute> hashMap3 = next3.f7332;
                        if (!(hashMap3 == null || (constraintAttribute2 = hashMap3.get(str25)) == null)) {
                            sparseArray.append(next3.f7331, constraintAttribute2);
                        }
                        it7 = it7;
                    }
                    it4 = it7;
                    AbstractC2113.C2119 r52 = new AbstractC2113.C2119(next2, sparseArray);
                    obj7 = obj10;
                    obj8 = obj11;
                    obj9 = obj12;
                    str15 = str;
                    hashSet4 = hashSet8;
                    r3 = r52;
                    str16 = str2;
                } else {
                    it4 = it7;
                    switch (next2.hashCode()) {
                        case -1249320806:
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            if (next2.equals(obj7)) {
                                c3 = 3;
                                break;
                            }
                            c3 = 65535;
                            break;
                        case -1249320805:
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            if (next2.equals(obj8)) {
                                obj7 = obj10;
                                c3 = 4;
                                break;
                            } else {
                                obj7 = obj10;
                                c3 = 65535;
                                break;
                            }
                        case -1225497657:
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            if (next2.equals(obj9)) {
                                obj7 = obj10;
                                obj8 = obj11;
                                c3 = '\f';
                                break;
                            } else {
                                obj7 = obj10;
                                obj8 = obj11;
                                c3 = 65535;
                                break;
                            }
                        case -1225497656:
                            str16 = str2;
                            str15 = str;
                            if (next2.equals("translationY")) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                c3 = '\r';
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            c3 = 65535;
                            break;
                        case -1225497655:
                            str16 = str2;
                            str15 = str;
                            if (next2.equals("translationZ")) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                c3 = 14;
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            c3 = 65535;
                            break;
                        case -1001078227:
                            str16 = str2;
                            str15 = str;
                            if (next2.equals(str15)) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                c3 = 15;
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            c3 = 65535;
                            break;
                        case -908189618:
                            str16 = str2;
                            if (next2.equals(str16)) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                str15 = str;
                                c3 = '\b';
                                break;
                            } else {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                str15 = str;
                                c3 = 65535;
                                break;
                            }
                        case -908189617:
                            if (next2.equals(str24)) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                str16 = str2;
                                str15 = str;
                                c3 = '\t';
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            c3 = 65535;
                            break;
                        case -797520672:
                            if (next2.equals("waveVariesBy")) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                str16 = str2;
                                str15 = str;
                                c3 = 11;
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            c3 = 65535;
                            break;
                        case -760884510:
                            if (next2.equals("transformPivotX")) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                str16 = str2;
                                str15 = str;
                                c3 = 5;
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            c3 = 65535;
                            break;
                        case -760884509:
                            if (next2.equals("transformPivotY")) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                str16 = str2;
                                str15 = str;
                                c3 = 6;
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            c3 = 65535;
                            break;
                        case -40300674:
                            if (next2.equals(str21)) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                str16 = str2;
                                str15 = str;
                                c3 = 2;
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            c3 = 65535;
                            break;
                        case -4379043:
                            if (next2.equals(str20)) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                str16 = str2;
                                str15 = str;
                                c3 = 1;
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            c3 = 65535;
                            break;
                        case 37232917:
                            if (next2.equals("transitionPathRotate")) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                str16 = str2;
                                str15 = str;
                                c3 = 7;
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            c3 = 65535;
                            break;
                        case 92909918:
                            if (next2.equals(str19)) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                str16 = str2;
                                str15 = str;
                                c3 = 0;
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            c3 = 65535;
                            break;
                        case 156108012:
                            if (next2.equals("waveOffset")) {
                                obj7 = obj10;
                                obj8 = obj11;
                                obj9 = obj12;
                                str16 = str2;
                                str15 = str;
                                c3 = '\n';
                                break;
                            }
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            c3 = 65535;
                            break;
                        default:
                            obj7 = obj10;
                            obj8 = obj11;
                            obj9 = obj12;
                            str16 = str2;
                            str15 = str;
                            c3 = 65535;
                            break;
                    }
                    switch (c3) {
                        case 0:
                            r16 = new AbstractC2113.C2121();
                            break;
                        case 1:
                            r16 = new AbstractC2113.C2114();
                            break;
                        case 2:
                            r16 = new AbstractC2113.C2127();
                            break;
                        case 3:
                            r16 = new AbstractC2113.C2118();
                            break;
                        case 4:
                            r16 = new AbstractC2113.C2124();
                            break;
                        case 5:
                            r16 = new AbstractC2113.C2116();
                            break;
                        case 6:
                            r16 = new AbstractC2113.C2125();
                            break;
                        case 7:
                            r16 = new AbstractC2113.C2126();
                            break;
                        case '\b':
                            r16 = new AbstractC2113.C2117();
                            break;
                        case '\t':
                            r16 = new AbstractC2113.C2122();
                            break;
                        case '\n':
                            r16 = new AbstractC2113.C2121();
                            break;
                        case 11:
                            r16 = new AbstractC2113.C2121();
                            break;
                        case '\f':
                            r16 = new AbstractC2113.C2128();
                            break;
                        case '\r':
                            r16 = new AbstractC2113.C2115();
                            break;
                        case 14:
                            r16 = new AbstractC2113.C2123();
                            break;
                        case 15:
                            r16 = new AbstractC2113.C2120();
                            break;
                        default:
                            r16 = null;
                            break;
                    }
                    hashSet4 = hashSet8;
                    r3 = r16;
                }
                if (r3 == null) {
                    hashSet5 = hashSet7;
                } else {
                    r3.f7376 = next2;
                    hashSet5 = hashSet7;
                    this.f7353.put(next2, r3);
                }
                str2 = str16;
                str = str15;
                obj12 = obj9;
                hashSet7 = hashSet5;
                hashSet8 = hashSet4;
                c4 = 1;
                it7 = it4;
                obj11 = obj8;
                obj10 = obj7;
            }
            obj = obj10;
            obj2 = obj11;
            obj3 = obj12;
            str4 = str2;
            str3 = str;
            hashSet2 = hashSet7;
            hashSet = hashSet8;
            ArrayList<AbstractC2109> arrayList3 = this.f7355;
            if (arrayList3 != null) {
                Iterator<AbstractC2109> it9 = arrayList3.iterator();
                while (it9.hasNext()) {
                    AbstractC2109 next4 = it9.next();
                    if (next4 instanceof C2166) {
                        next4.m5588(this.f7353);
                    }
                }
            }
            this.f7354.m5719(this.f7353, 0);
            this.f7345.m5719(this.f7353, 100);
            for (Iterator<String> it10 = this.f7353.keySet().iterator(); it10.hasNext(); it10 = it10) {
                String next5 = it10.next();
                this.f7353.get(next5).m5602(hashMap2.containsKey(next5) ? hashMap2.get(next5).intValue() : 0);
            }
        } else {
            obj = obj10;
            obj2 = obj11;
            obj3 = obj12;
            str4 = str2;
            str3 = str;
            hashSet2 = hashSet7;
            hashSet = hashSet8;
        }
        if (!hashSet6.isEmpty()) {
            if (this.f7340 == null) {
                this.f7340 = new HashMap<>();
            }
            Iterator<String> it11 = hashSet6.iterator();
            while (it11.hasNext()) {
                String next6 = it11.next();
                if (!this.f7340.containsKey(next6)) {
                    if (!next6.startsWith("CUSTOM,")) {
                        it3 = it11;
                        hashMap = hashMap2;
                        switch (next6.hashCode()) {
                            case -1249320806:
                                if (next6.equals(obj)) {
                                    c2 = 3;
                                    break;
                                }
                                c2 = 65535;
                                break;
                            case -1249320805:
                                if (next6.equals(obj2)) {
                                    c2 = 4;
                                    break;
                                }
                                c2 = 65535;
                                break;
                            case -1225497657:
                                if (next6.equals(obj3)) {
                                    c2 = '\b';
                                    break;
                                }
                                c2 = 65535;
                                break;
                            case -1225497656:
                                if (next6.equals("translationY")) {
                                    c2 = '\t';
                                    break;
                                }
                                c2 = 65535;
                                break;
                            case -1225497655:
                                if (next6.equals("translationZ")) {
                                    c2 = '\n';
                                    break;
                                }
                                c2 = 65535;
                                break;
                            case -1001078227:
                                if (next6.equals(str3)) {
                                    c2 = 11;
                                    break;
                                }
                                c2 = 65535;
                                break;
                            case -908189618:
                                if (next6.equals(str4)) {
                                    c2 = 6;
                                    break;
                                }
                                c2 = 65535;
                                break;
                            case -908189617:
                                if (next6.equals(str24)) {
                                    c2 = 7;
                                    break;
                                }
                                c2 = 65535;
                                break;
                            case -40300674:
                                if (next6.equals(str21)) {
                                    c2 = 2;
                                    break;
                                }
                                c2 = 65535;
                                break;
                            case -4379043:
                                if (next6.equals(str20)) {
                                    c2 = 1;
                                    break;
                                }
                                c2 = 65535;
                                break;
                            case 37232917:
                                if (next6.equals("transitionPathRotate")) {
                                    c2 = 5;
                                    break;
                                }
                                c2 = 65535;
                                break;
                            case 92909918:
                                if (next6.equals(str19)) {
                                    c2 = 0;
                                    break;
                                }
                                c2 = 65535;
                                break;
                            default:
                                c2 = 65535;
                                break;
                        }
                        switch (c2) {
                            case 0:
                                r1 = new AbstractC2169.C2176();
                                r1.f7562 = j;
                                break;
                            case 1:
                                r1 = new AbstractC2169.C2170();
                                r1.f7562 = j;
                                break;
                            case 2:
                                r1 = new AbstractC2169.C2179();
                                r1.f7562 = j;
                                break;
                            case 3:
                                r1 = new AbstractC2169.C2175();
                                r1.f7562 = j;
                                break;
                            case 4:
                                r1 = new AbstractC2169.C2181();
                                r1.f7562 = j;
                                break;
                            case 5:
                                r1 = new AbstractC2169.C2180();
                                r1.f7562 = j;
                                break;
                            case 6:
                                r1 = new AbstractC2169.C2173();
                                r1.f7562 = j;
                                break;
                            case 7:
                                r1 = new AbstractC2169.C2178();
                                r1.f7562 = j;
                                break;
                            case '\b':
                                r1 = new AbstractC2169.C2172();
                                r1.f7562 = j;
                                break;
                            case '\t':
                                r1 = new AbstractC2169.C2177();
                                r1.f7562 = j;
                                break;
                            case '\n':
                                r1 = new AbstractC2169.C2182();
                                r1.f7562 = j;
                                break;
                            case 11:
                                r1 = new AbstractC2169.C2171();
                                r1.f7562 = j;
                                break;
                            default:
                                r1 = null;
                                break;
                        }
                    } else {
                        SparseArray sparseArray2 = new SparseArray();
                        String str26 = next6.split(",")[1];
                        it3 = it11;
                        Iterator<AbstractC2109> it12 = this.f7355.iterator();
                        while (it12.hasNext()) {
                            AbstractC2109 next7 = it12.next();
                            HashMap<String, ConstraintAttribute> hashMap4 = next7.f7332;
                            if (!(hashMap4 == null || (constraintAttribute = hashMap4.get(str26)) == null)) {
                                sparseArray2.append(next7.f7331, constraintAttribute);
                            }
                            it12 = it12;
                            hashMap2 = hashMap2;
                        }
                        hashMap = hashMap2;
                        r1 = new AbstractC2169.C2174(next6, sparseArray2);
                    }
                    if (r1 != null) {
                        r1.f7567 = next6;
                        this.f7340.put(next6, r1);
                    }
                    it11 = it3;
                    hashMap2 = hashMap;
                }
            }
            HashMap<String, Integer> hashMap5 = hashMap2;
            ArrayList<AbstractC2109> arrayList4 = this.f7355;
            if (arrayList4 != null) {
                Iterator<AbstractC2109> it13 = arrayList4.iterator();
                while (it13.hasNext()) {
                    AbstractC2109 next8 = it13.next();
                    if (next8 instanceof C2135) {
                        ((C2135) next8).m5649(this.f7340);
                    }
                }
            }
            for (String str27 : this.f7340.keySet()) {
                this.f7340.get(str27).m5699(hashMap5.containsKey(str27) ? hashMap5.get(str27).intValue() : 0);
                hashMap5 = hashMap5;
            }
        }
        C2112[] r13 = new C2112[(this.f7358.size() + 2)];
        r13[0] = this.f7356;
        r13[r13.length - 1] = this.f7338;
        if (this.f7358.size() > 0 && this.f7333 == -1) {
            this.f7333 = 0;
        }
        Iterator<C2112> it14 = this.f7358.iterator();
        int i7 = 1;
        while (it14.hasNext()) {
            r13[i7] = it14.next();
            i7++;
        }
        HashSet hashSet9 = new HashSet();
        Iterator<String> it15 = this.f7338.f7368.keySet().iterator();
        while (it15.hasNext()) {
            String next9 = it15.next();
            if (this.f7356.f7368.containsKey(next9)) {
                StringBuilder sb = new StringBuilder();
                it2 = it15;
                sb.append("CUSTOM,");
                sb.append(next9);
                String sb2 = sb.toString();
                hashSet3 = hashSet2;
                if (!hashSet3.contains(sb2)) {
                    hashSet9.add(next9);
                }
            } else {
                it2 = it15;
                hashSet3 = hashSet2;
            }
            it15 = it2;
            hashSet2 = hashSet3;
        }
        this.f7336 = (String[]) hashSet9.toArray(new String[0]);
        this.f7341 = new int[this.f7336.length];
        int i8 = 0;
        while (true) {
            String[] strArr = this.f7336;
            if (i8 < strArr.length) {
                String str28 = strArr[i8];
                this.f7341[i8] = 0;
                int i9 = 0;
                while (true) {
                    if (i9 < r13.length) {
                        if (r13[i9].f7368.containsKey(str28)) {
                            int[] iArr = this.f7341;
                            iArr[i8] = r13[i9].f7368.get(str28).m543() + iArr[i8];
                        } else {
                            i9++;
                        }
                    }
                }
                i8++;
            } else {
                boolean z = r13[0].f7364 != -1;
                boolean[] zArr = new boolean[(this.f7336.length + 18)];
                int i10 = 1;
                while (i10 < r13.length) {
                    r13[i10].m5598(r13[i10 - 1], zArr, z);
                    i10++;
                    obj = obj;
                }
                Object obj13 = obj;
                int i11 = 0;
                for (int i12 = 1; i12 < zArr.length; i12++) {
                    if (zArr[i12]) {
                        i11++;
                    }
                }
                this.f7359 = new int[i11];
                int[] iArr2 = this.f7359;
                this.f7334 = new double[iArr2.length];
                this.f7350 = new double[iArr2.length];
                int i13 = 0;
                for (int i14 = 1; i14 < zArr.length; i14++) {
                    if (zArr[i14]) {
                        this.f7359[i13] = i14;
                        i13++;
                    }
                }
                double[][] dArr2 = (double[][]) Array.newInstance(double.class, r13.length, this.f7359.length);
                double[] dArr3 = new double[r13.length];
                int i15 = 0;
                while (i15 < r13.length) {
                    C2112 r72 = r13[i15];
                    double[] dArr4 = dArr2[i15];
                    int[] iArr3 = this.f7359;
                    float[] fArr2 = {r72.f7363, r72.f7371, r72.f7367, r72.f7373, r72.f7365, r72.f7370};
                    int i16 = 0;
                    int i17 = 0;
                    while (i16 < iArr3.length) {
                        if (iArr3[i16] < fArr2.length) {
                            fArr = fArr2;
                            dArr4[i17] = (double) fArr2[iArr3[i16]];
                            i17++;
                        } else {
                            fArr = fArr2;
                        }
                        i16++;
                        str24 = str24;
                        fArr2 = fArr;
                    }
                    dArr3[i15] = (double) r13[i15].f7372;
                    i15++;
                    obj2 = obj2;
                    obj3 = obj3;
                    str4 = str4;
                    str3 = str3;
                }
                String str29 = str4;
                String str30 = str3;
                Object obj14 = obj3;
                String str31 = str24;
                Object obj15 = obj2;
                int i18 = 0;
                while (true) {
                    int[] iArr4 = this.f7359;
                    if (i18 < iArr4.length) {
                        if (iArr4[i18] < C2112.f7360.length) {
                            String r53 = C1293.m3414(new StringBuilder(), C2112.f7360[this.f7359[i18]], " [");
                            for (int i19 = 0; i19 < r13.length; i19++) {
                                StringBuilder r54 = C1293.m3416(r53);
                                r54.append(dArr2[i19][i18]);
                                r53 = r54.toString();
                            }
                        }
                        i18++;
                    } else {
                        this.f7357 = new AbstractC2187[(this.f7336.length + 1)];
                        int i20 = 0;
                        while (true) {
                            String[] strArr2 = this.f7336;
                            if (i20 < strArr2.length) {
                                String str32 = strArr2[i20];
                                int i21 = 0;
                                double[] dArr5 = null;
                                int i22 = 0;
                                double[][] dArr6 = null;
                                while (i21 < r13.length) {
                                    if (r13[i21].f7368.containsKey(str32)) {
                                        if (dArr6 == null) {
                                            dArr5 = new double[r13.length];
                                            dArr6 = (double[][]) Array.newInstance(double.class, r13.length, r13[i21].f7368.get(str32).m543());
                                        }
                                        dArr5[i22] = (double) r13[i21].f7372;
                                        C2112 r143 = r13[i21];
                                        double[] dArr7 = dArr6[i22];
                                        ConstraintAttribute constraintAttribute3 = r143.f7368.get(str32);
                                        str12 = str32;
                                        if (constraintAttribute3.m543() == 1) {
                                            dArr = dArr6;
                                            dArr7[0] = (double) constraintAttribute3.m544();
                                        } else {
                                            dArr = dArr6;
                                            int r55 = constraintAttribute3.m543();
                                            float[] fArr3 = new float[r55];
                                            constraintAttribute3.m547(fArr3);
                                            int i23 = 0;
                                            int i24 = 0;
                                            while (i23 < r55) {
                                                dArr7[i24] = (double) fArr3[i23];
                                                i23++;
                                                r55 = r55;
                                                i24++;
                                                str20 = str20;
                                                str21 = str21;
                                            }
                                        }
                                        str14 = str20;
                                        str13 = str21;
                                        i22++;
                                        dArr5 = dArr5;
                                        dArr6 = dArr;
                                    } else {
                                        str12 = str32;
                                        str14 = str20;
                                        str13 = str21;
                                    }
                                    i21++;
                                    str32 = str12;
                                    str20 = str14;
                                    str21 = str13;
                                }
                                i20++;
                                this.f7357[i20] = AbstractC2187.m5736(this.f7333, Arrays.copyOf(dArr5, i22), (double[][]) Arrays.copyOf(dArr6, i22));
                                str20 = str20;
                            } else {
                                String str33 = str20;
                                String str34 = str21;
                                this.f7357[0] = AbstractC2187.m5736(this.f7333, dArr3, dArr2);
                                if (r13[0].f7364 != -1) {
                                    int length = r13.length;
                                    int[] iArr5 = new int[length];
                                    double[] dArr8 = new double[length];
                                    double[][] dArr9 = (double[][]) Array.newInstance(double.class, length, 2);
                                    for (int i25 = 0; i25 < length; i25++) {
                                        iArr5[i25] = r13[i25].f7364;
                                        dArr8[i25] = (double) r13[i25].f7372;
                                        dArr9[i25][0] = (double) r13[i25].f7371;
                                        dArr9[i25][1] = (double) r13[i25].f7367;
                                    }
                                    this.f7343 = new C2190(iArr5, dArr8, dArr9);
                                }
                                float f = Float.NaN;
                                this.f7339 = new HashMap<>();
                                if (this.f7355 != null) {
                                    Iterator<String> it16 = hashSet.iterator();
                                    while (it16.hasNext()) {
                                        String next10 = it16.next();
                                        if (!next10.startsWith("CUSTOM")) {
                                            switch (next10.hashCode()) {
                                                case -1249320806:
                                                    obj5 = obj15;
                                                    obj4 = obj13;
                                                    obj6 = obj14;
                                                    str6 = str29;
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    str5 = str30;
                                                    if (next10.equals(obj4)) {
                                                        c = 3;
                                                        break;
                                                    }
                                                    c = 65535;
                                                    break;
                                                case -1249320805:
                                                    obj5 = obj15;
                                                    obj6 = obj14;
                                                    str6 = str29;
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    str5 = str30;
                                                    if (next10.equals(obj5)) {
                                                        obj4 = obj13;
                                                        c = 4;
                                                        break;
                                                    }
                                                    obj4 = obj13;
                                                    c = 65535;
                                                    break;
                                                case -1225497657:
                                                    obj6 = obj14;
                                                    str6 = str29;
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    str5 = str30;
                                                    if (next10.equals(obj6)) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        c = '\n';
                                                        break;
                                                    } else {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        c = 65535;
                                                        break;
                                                    }
                                                case -1225497656:
                                                    str6 = str29;
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    str5 = str30;
                                                    if (next10.equals("translationY")) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        c = 11;
                                                        break;
                                                    }
                                                    obj5 = obj15;
                                                    obj4 = obj13;
                                                    obj6 = obj14;
                                                    c = 65535;
                                                    break;
                                                case -1225497655:
                                                    str6 = str29;
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    str5 = str30;
                                                    if (next10.equals("translationZ")) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        c = '\f';
                                                        break;
                                                    }
                                                    obj5 = obj15;
                                                    obj4 = obj13;
                                                    obj6 = obj14;
                                                    c = 65535;
                                                    break;
                                                case -1001078227:
                                                    str6 = str29;
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    str5 = str30;
                                                    if (next10.equals(str5)) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        c = '\r';
                                                        break;
                                                    }
                                                    obj5 = obj15;
                                                    obj4 = obj13;
                                                    obj6 = obj14;
                                                    c = 65535;
                                                    break;
                                                case -908189618:
                                                    str6 = str29;
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    if (next10.equals(str6)) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        str5 = str30;
                                                        c = 6;
                                                        break;
                                                    }
                                                    obj5 = obj15;
                                                    obj4 = obj13;
                                                    obj6 = obj14;
                                                    str5 = str30;
                                                    c = 65535;
                                                    break;
                                                case -908189617:
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    if (next10.equals(str7)) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        str6 = str29;
                                                        str5 = str30;
                                                        c = 7;
                                                        break;
                                                    } else {
                                                        str6 = str29;
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        str5 = str30;
                                                        c = 65535;
                                                        break;
                                                    }
                                                case -797520672:
                                                    str9 = str33;
                                                    str8 = str34;
                                                    if (next10.equals("waveVariesBy")) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        str6 = str29;
                                                        str7 = str31;
                                                        str5 = str30;
                                                        c = '\t';
                                                        break;
                                                    }
                                                    str6 = str29;
                                                    str7 = str31;
                                                    obj5 = obj15;
                                                    obj4 = obj13;
                                                    obj6 = obj14;
                                                    str5 = str30;
                                                    c = 65535;
                                                    break;
                                                case -40300674:
                                                    str9 = str33;
                                                    str8 = str34;
                                                    if (next10.equals(str8)) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        str6 = str29;
                                                        str7 = str31;
                                                        str5 = str30;
                                                        c = 2;
                                                        break;
                                                    }
                                                    str6 = str29;
                                                    str7 = str31;
                                                    obj5 = obj15;
                                                    obj4 = obj13;
                                                    obj6 = obj14;
                                                    str5 = str30;
                                                    c = 65535;
                                                    break;
                                                case -4379043:
                                                    str9 = str33;
                                                    if (next10.equals(str9)) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        str6 = str29;
                                                        str7 = str31;
                                                        str8 = str34;
                                                        str5 = str30;
                                                        c = 1;
                                                        break;
                                                    } else {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        str6 = str29;
                                                        str7 = str31;
                                                        str8 = str34;
                                                        str5 = str30;
                                                        c = 65535;
                                                        break;
                                                    }
                                                case 37232917:
                                                    if (next10.equals("transitionPathRotate")) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        str6 = str29;
                                                        str7 = str31;
                                                        str9 = str33;
                                                        str8 = str34;
                                                        str5 = str30;
                                                        c = 5;
                                                        break;
                                                    }
                                                    obj5 = obj15;
                                                    obj4 = obj13;
                                                    obj6 = obj14;
                                                    str6 = str29;
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    str5 = str30;
                                                    c = 65535;
                                                    break;
                                                case 92909918:
                                                    if (next10.equals(str19)) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        str6 = str29;
                                                        str7 = str31;
                                                        str9 = str33;
                                                        str8 = str34;
                                                        str5 = str30;
                                                        c = 0;
                                                        break;
                                                    }
                                                    obj5 = obj15;
                                                    obj4 = obj13;
                                                    obj6 = obj14;
                                                    str6 = str29;
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    str5 = str30;
                                                    c = 65535;
                                                    break;
                                                case 156108012:
                                                    if (next10.equals("waveOffset")) {
                                                        obj5 = obj15;
                                                        obj4 = obj13;
                                                        obj6 = obj14;
                                                        str6 = str29;
                                                        str7 = str31;
                                                        str9 = str33;
                                                        str8 = str34;
                                                        str5 = str30;
                                                        c = '\b';
                                                        break;
                                                    }
                                                    obj5 = obj15;
                                                    obj4 = obj13;
                                                    obj6 = obj14;
                                                    str6 = str29;
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    str5 = str30;
                                                    c = 65535;
                                                    break;
                                                default:
                                                    obj5 = obj15;
                                                    obj4 = obj13;
                                                    obj6 = obj14;
                                                    str6 = str29;
                                                    str7 = str31;
                                                    str9 = str33;
                                                    str8 = str34;
                                                    str5 = str30;
                                                    c = 65535;
                                                    break;
                                            }
                                            switch (c) {
                                                case 0:
                                                    r14 = new AbstractC2140.C2147();
                                                    break;
                                                case 1:
                                                    r14 = new AbstractC2140.C2144();
                                                    break;
                                                case 2:
                                                    r14 = new AbstractC2140.C2155();
                                                    break;
                                                case 3:
                                                    r14 = new AbstractC2140.C2146();
                                                    break;
                                                case 4:
                                                    r14 = new AbstractC2140.C2152();
                                                    break;
                                                case 5:
                                                    r14 = new AbstractC2140.C2153();
                                                    break;
                                                case 6:
                                                    r14 = new AbstractC2140.C2145();
                                                    break;
                                                case 7:
                                                    r14 = new AbstractC2140.C2150();
                                                    break;
                                                case '\b':
                                                    r14 = new AbstractC2140.C2147();
                                                    break;
                                                case '\t':
                                                    r14 = new AbstractC2140.C2147();
                                                    break;
                                                case '\n':
                                                    r14 = new AbstractC2140.C2156();
                                                    break;
                                                case 11:
                                                    r14 = new AbstractC2140.C2142();
                                                    break;
                                                case '\f':
                                                    r14 = new AbstractC2140.C2151();
                                                    break;
                                                case '\r':
                                                    r14 = new AbstractC2140.C2148();
                                                    break;
                                                default:
                                                    r14 = null;
                                                    break;
                                            }
                                        } else {
                                            r14 = new AbstractC2140.C2141();
                                            obj5 = obj15;
                                            obj4 = obj13;
                                            obj6 = obj14;
                                            str6 = str29;
                                            str7 = str31;
                                            str9 = str33;
                                            str8 = str34;
                                            str5 = str30;
                                        }
                                        if (r14 == null) {
                                            str33 = str9;
                                            str34 = str8;
                                            str31 = str7;
                                            str29 = str6;
                                            str30 = str5;
                                            obj14 = obj6;
                                            obj15 = obj5;
                                            obj13 = obj4;
                                        } else {
                                            if (!(r14.f7481 == 1) || !Float.isNaN(f)) {
                                                str33 = str9;
                                                str34 = str8;
                                                str31 = str7;
                                                str29 = str6;
                                                str10 = str19;
                                                str30 = str5;
                                            } else {
                                                float[] fArr4 = new float[2];
                                                float f2 = 1.0f / ((float) 99);
                                                double d2 = 0.0d;
                                                str33 = str9;
                                                str34 = str8;
                                                double d3 = 0.0d;
                                                int i26 = 0;
                                                float f3 = 0.0f;
                                                while (i26 < 100) {
                                                    float f4 = ((float) i26) * f2;
                                                    double d4 = (double) f4;
                                                    C2184 r62 = this.f7356.f7366;
                                                    Iterator<C2112> it17 = this.f7358.iterator();
                                                    float f5 = Float.NaN;
                                                    float f6 = 0.0f;
                                                    while (it17.hasNext()) {
                                                        C2112 next11 = it17.next();
                                                        C2184 r8 = next11.f7366;
                                                        if (r8 != null) {
                                                            float f7 = next11.f7372;
                                                            if (f7 < f4) {
                                                                r62 = r8;
                                                                f6 = f7;
                                                            } else if (Float.isNaN(f5)) {
                                                                f5 = next11.f7372;
                                                            }
                                                        }
                                                        it17 = it17;
                                                        str19 = str19;
                                                    }
                                                    if (r62 != null) {
                                                        if (Float.isNaN(f5)) {
                                                            f5 = 1.0f;
                                                        }
                                                        float f8 = f5 - f6;
                                                        d = (double) ((((float) r62.m5723((double) ((f4 - f6) / f8))) * f8) + f6);
                                                    } else {
                                                        d = d4;
                                                    }
                                                    this.f7357[0].m5740(d, this.f7334);
                                                    this.f7356.m5599(this.f7359, this.f7334, fArr4, 0);
                                                    if (i26 > 0) {
                                                        str11 = str5;
                                                        f3 = (float) (Math.hypot(d2 - ((double) fArr4[1]), d3 - ((double) fArr4[0])) + ((double) f3));
                                                    } else {
                                                        str11 = str5;
                                                    }
                                                    i26++;
                                                    f3 = f3;
                                                    d3 = (double) fArr4[0];
                                                    d2 = (double) fArr4[1];
                                                    str6 = str6;
                                                    str7 = str7;
                                                    str5 = str11;
                                                    str19 = str19;
                                                }
                                                str31 = str7;
                                                str29 = str6;
                                                str10 = str19;
                                                str30 = str5;
                                                f = f3;
                                            }
                                            r14.f7480 = next10;
                                            this.f7339.put(next10, r14);
                                            it16 = it16;
                                            obj14 = obj6;
                                            obj15 = obj5;
                                            obj13 = obj4;
                                            str19 = str10;
                                        }
                                    }
                                    Iterator<AbstractC2109> it18 = this.f7355.iterator();
                                    while (it18.hasNext()) {
                                        AbstractC2109 next12 = it18.next();
                                        if (next12 instanceof C2163) {
                                            ((C2163) next12).m5684(this.f7339);
                                        }
                                    }
                                    for (AbstractC2140 r32 : this.f7339.values()) {
                                        r32.m5658(f);
                                    }
                                    return;
                                }
                                return;
                            }
                        }
                    }
                }
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m5593(C2112 r5) {
        r5.m5595((float) ((int) this.f7346.getX()), (float) ((int) this.f7346.getY()), (float) this.f7346.getWidth(), (float) this.f7346.getHeight());
    }

    /* renamed from: K  reason: contains not printable characters */
    public final float m5590(float f, float[] fArr) {
        float f2 = 0.0f;
        float f3 = 1.0f;
        if (fArr != null) {
            fArr[0] = 1.0f;
        } else if (((double) this.f7349) != 1.0d) {
            if (f < this.f7342) {
                f = 0.0f;
            }
            float f4 = this.f7342;
            if (f > f4 && ((double) f) < 1.0d) {
                f = (f - f4) * this.f7349;
            }
        }
        C2184 r3 = this.f7356.f7366;
        float f5 = Float.NaN;
        Iterator<C2112> it2 = this.f7358.iterator();
        while (it2.hasNext()) {
            C2112 next = it2.next();
            C2184 r7 = next.f7366;
            if (r7 != null) {
                float f6 = next.f7372;
                if (f6 < f) {
                    r3 = r7;
                    f2 = f6;
                } else if (Float.isNaN(f5)) {
                    f5 = next.f7372;
                }
            }
        }
        if (r3 != null) {
            if (!Float.isNaN(f5)) {
                f3 = f5;
            }
            float f7 = f3 - f2;
            double d = (double) ((f - f2) / f7);
            f = (((float) r3.m5723(d)) * f7) + f2;
            if (fArr != null) {
                fArr[0] = (float) r3.m5722(d);
            }
        }
        return f;
    }

    /* JADX WARNING: Removed duplicated region for block: B:145:0x02fe  */
    /* JADX WARNING: Removed duplicated region for block: B:150:0x0316  */
    /* JADX WARNING: Removed duplicated region for block: B:156:0x032d  */
    /* JADX WARNING: Removed duplicated region for block: B:161:0x0347  */
    /* JADX WARNING: Removed duplicated region for block: B:200:0x0412 A[SYNTHETIC, Splitter:B:200:0x0412] */
    /* JADX WARNING: Removed duplicated region for block: B:213:0x0485 A[SYNTHETIC, Splitter:B:213:0x0485] */
    /* renamed from: K  reason: contains not printable characters */
    public boolean m5594(View view, float f, long j, C2129 r28) {
        AbstractC2169.C2180 r12;
        boolean z;
        boolean z2;
        float f2;
        float f3;
        float f4;
        boolean z3;
        boolean z4;
        boolean z5;
        boolean z6;
        float f5;
        boolean z7;
        boolean z8;
        boolean z9;
        boolean z10;
        boolean z11;
        AbstractC2169.C2180 r8;
        float r82 = m5590(f, null);
        HashMap<String, AbstractC2113> hashMap = this.f7353;
        if (hashMap != null) {
            for (AbstractC2113 r3 : hashMap.values()) {
                r3.m5604(view, r82);
            }
        }
        HashMap<String, AbstractC2169> hashMap2 = this.f7340;
        if (hashMap2 != null) {
            r12 = null;
            z = false;
            for (AbstractC2169 r1 : hashMap2.values()) {
                if (r1 instanceof AbstractC2169.C2180) {
                    r12 = (AbstractC2169.C2180) r1;
                } else {
                    z |= r1.m5701(view, r82, j, r28);
                }
            }
        } else {
            z = false;
            r12 = null;
        }
        AbstractC2187[] r13 = this.f7357;
        if (r13 != null) {
            double d = (double) r82;
            r13[0].m5740(d, this.f7334);
            this.f7357[0].m5738(d, this.f7350);
            AbstractC2187 r14 = this.f7343;
            if (r14 != null) {
                double[] dArr = this.f7334;
                if (dArr.length > 0) {
                    r14.m5740(d, dArr);
                    this.f7343.m5738(d, this.f7350);
                }
            }
            C2112 r15 = this.f7356;
            int[] iArr = this.f7359;
            double[] dArr2 = this.f7334;
            double[] dArr3 = this.f7350;
            float f6 = r15.f7371;
            float f7 = r15.f7367;
            float f8 = r15.f7373;
            float f9 = r15.f7365;
            if (iArr.length != 0) {
                f3 = f6;
                if (r15.f7362.length <= iArr[iArr.length - 1]) {
                    int i = iArr[iArr.length - 1] + 1;
                    r15.f7362 = new double[i];
                    r15.f7369 = new double[i];
                }
            } else {
                f3 = f6;
            }
            Arrays.fill(r15.f7362, Double.NaN);
            for (int i2 = 0; i2 < iArr.length; i2++) {
                r15.f7362[iArr[i2]] = dArr2[i2];
                r15.f7369[iArr[i2]] = dArr3[i2];
            }
            int i3 = 0;
            float f10 = Float.NaN;
            float f11 = 0.0f;
            float f12 = 0.0f;
            float f13 = 0.0f;
            float f14 = 0.0f;
            float f15 = f9;
            float f16 = f8;
            float f17 = f7;
            float f18 = f3;
            while (true) {
                double[] dArr4 = r15.f7362;
                f4 = r82;
                if (i3 >= dArr4.length) {
                    break;
                }
                double d2 = 0.0d;
                if (Double.isNaN(dArr4[i3])) {
                    r8 = r12;
                } else {
                    if (!Double.isNaN(r15.f7362[i3])) {
                        d2 = r15.f7362[i3] + 0.0d;
                    }
                    r8 = r12;
                    float f19 = (float) d2;
                    float f20 = (float) r15.f7369[i3];
                    if (i3 != 0) {
                        if (i3 == 1) {
                            f11 = f20;
                            f18 = f19;
                        } else if (i3 == 2) {
                            f13 = f20;
                            f17 = f19;
                        } else if (i3 == 3) {
                            f12 = f20;
                            f16 = f19;
                        } else if (i3 == 4) {
                            f14 = f20;
                            f15 = f19;
                        } else if (i3 == 5) {
                            f10 = f19;
                        }
                    }
                }
                i3++;
                r12 = r8;
                r82 = f4;
            }
            if (!Float.isNaN(f10)) {
                float f21 = Float.NaN;
                if (Float.isNaN(Float.NaN)) {
                    f21 = 0.0f;
                }
                view.setRotation((float) (Math.toDegrees(Math.atan2((double) ((f14 / 2.0f) + f13), (double) ((f12 / 2.0f) + f11))) + ((double) f10) + ((double) f21)));
            } else if (!Float.isNaN(Float.NaN)) {
                view.setRotation(Float.NaN);
            }
            float f22 = f18 + 0.5f;
            int i4 = (int) f22;
            float f23 = f17 + 0.5f;
            int i5 = (int) f23;
            int i6 = (int) (f22 + f16);
            int i7 = (int) (f23 + f15);
            int i8 = i6 - i4;
            int i9 = i7 - i5;
            if ((i8 == view.getMeasuredWidth() && i9 == view.getMeasuredHeight()) ? false : true) {
                view.measure(View.MeasureSpec.makeMeasureSpec(i8, 1073741824), View.MeasureSpec.makeMeasureSpec(i9, 1073741824));
            }
            view.layout(i4, i5, i6, i7);
            HashMap<String, AbstractC2113> hashMap3 = this.f7353;
            if (hashMap3 != null) {
                for (AbstractC2113 r2 : hashMap3.values()) {
                    if (r2 instanceof AbstractC2113.C2126) {
                        double[] dArr5 = this.f7350;
                        view.setRotation(((float) ((AbstractC2113.C2126) r2).f7378.m5739(d, 0)) + ((float) Math.toDegrees(Math.atan2(dArr5[1], dArr5[0]))));
                    }
                }
            }
            if (r12 != null) {
                double[] dArr6 = this.f7350;
                view.setRotation(r12.m5698(f4, j, view, r28) + ((float) Math.toDegrees(Math.atan2(dArr6[1], dArr6[0]))));
                z3 = r12.f7569 | z;
            } else {
                z3 = z;
            }
            int i10 = 1;
            while (true) {
                AbstractC2187[] r22 = this.f7357;
                if (i10 >= r22.length) {
                    break;
                }
                r22[i10].m5741(d, this.f7337);
                this.f7356.f7368.get(this.f7336[i10 - 1]).m545(view, this.f7337);
                i10++;
            }
            C2183 r16 = this.f7354;
            if (r16.f7576 == 0) {
                if (f4 <= 0.0f) {
                    view.setVisibility(r16.f7591);
                } else if (f4 >= 1.0f) {
                    view.setVisibility(this.f7345.f7591);
                } else if (this.f7345.f7591 != r16.f7591) {
                    view.setVisibility(0);
                }
            }
            if (this.f7347 != null) {
                int i11 = 0;
                while (true) {
                    C2158[] r23 = this.f7347;
                    if (i11 >= r23.length) {
                        break;
                    }
                    C2158 r24 = r23[i11];
                    if (r24.f7513 != -1) {
                        if (r24.f7507 == null) {
                            r24.f7507 = ((ViewGroup) view.getParent()).findViewById(r24.f7513);
                        }
                        r24.m5676(r24.f7515, r24.f7507, r24.f7501);
                        r24.m5676(r24.f7505, view, r24.f7501);
                        if (r24.f7515.intersect(r24.f7505)) {
                            if (r24.f7518) {
                                z9 = false;
                                r24.f7518 = false;
                                z6 = true;
                            } else {
                                z9 = false;
                                z6 = false;
                            }
                            if (r24.f7511) {
                                r24.f7511 = z9;
                                z11 = true;
                                z10 = true;
                            } else {
                                z11 = true;
                                z10 = false;
                            }
                            r24.f7500 = z11;
                            z8 = z10;
                            z5 = false;
                        } else {
                            if (!r24.f7518) {
                                r24.f7518 = true;
                                z6 = true;
                            } else {
                                z6 = false;
                            }
                            if (r24.f7500) {
                                r24.f7500 = false;
                                z5 = true;
                            } else {
                                z5 = false;
                            }
                            r24.f7511 = true;
                            z8 = false;
                        }
                        z4 = z8;
                        f5 = f4;
                    } else {
                        if (r24.f7518) {
                            float f24 = r24.f7502;
                            if ((r24.f7517 - f24) * (f4 - f24) < 0.0f) {
                                r24.f7518 = false;
                                z6 = true;
                                if (!r24.f7500) {
                                    float f25 = r24.f7502;
                                    float f26 = f4 - f25;
                                    if ((r24.f7517 - f25) * f26 < 0.0f && f26 < 0.0f) {
                                        r24.f7500 = false;
                                        z5 = true;
                                        if (r24.f7511) {
                                            float f27 = r24.f7502;
                                            float f28 = f4 - f27;
                                            if ((r24.f7517 - f27) * f28 < 0.0f && f28 > 0.0f) {
                                                r24.f7511 = false;
                                                f5 = f4;
                                                z4 = true;
                                            }
                                        } else if (Math.abs(f4 - r24.f7502) > r24.f7510) {
                                            r24.f7511 = true;
                                        }
                                        f5 = f4;
                                        z4 = false;
                                    }
                                } else if (Math.abs(f4 - r24.f7502) > r24.f7510) {
                                    r24.f7500 = true;
                                }
                                z5 = false;
                                if (r24.f7511) {
                                }
                                f5 = f4;
                                z4 = false;
                            }
                        } else if (Math.abs(f4 - r24.f7502) > r24.f7510) {
                            r24.f7518 = true;
                        }
                        z6 = false;
                        if (!r24.f7500) {
                        }
                        z5 = false;
                        if (r24.f7511) {
                        }
                        f5 = f4;
                        z4 = false;
                    }
                    r24.f7517 = f5;
                    if (z5 || z6 || z4) {
                        ((MotionLayout) view.getParent()).m419(r24.f7508, z4, f5);
                    }
                    View findViewById = r24.f7514 == -1 ? view : ((MotionLayout) view.getParent()).findViewById(r24.f7514);
                    if (!z5 || r24.f7509 == null) {
                        z7 = z3;
                    } else {
                        if (r24.f7512 == null) {
                            try {
                                z7 = z3;
                                try {
                                    r24.f7512 = findViewById.getClass().getMethod(r24.f7509, new Class[0]);
                                } catch (NoSuchMethodException unused) {
                                }
                            } catch (NoSuchMethodException unused2) {
                                z7 = z3;
                                StringBuilder r6 = C1293.m3416("Could not find method \"");
                                r6.append(r24.f7509);
                                r6.append("\"on class ");
                                r6.append(findViewById.getClass().getSimpleName());
                                r6.append(" ");
                                r6.append(C2369.m6316(findViewById));
                                Log.e("KeyTrigger", r6.toString());
                                r24.f7512.invoke(findViewById, new Object[0]);
                                if (r24.f7503 == null) {
                                }
                                try {
                                    r24.f7503.invoke(findViewById, new Object[0]);
                                } catch (Exception unused3) {
                                    StringBuilder r62 = C1293.m3416("Exception in call \"");
                                    r62.append(r24.f7516);
                                    r62.append("\"on class ");
                                    r62.append(findViewById.getClass().getSimpleName());
                                    r62.append(" ");
                                    r62.append(C2369.m6316(findViewById));
                                    Log.e("KeyTrigger", r62.toString());
                                }
                                if (r24.f7506 == null) {
                                }
                                try {
                                    r24.f7506.invoke(findViewById, new Object[0]);
                                } catch (Exception unused4) {
                                    StringBuilder r5 = C1293.m3416("Exception in call \"");
                                    r5.append(r24.f7504);
                                    r5.append("\"on class ");
                                    r5.append(findViewById.getClass().getSimpleName());
                                    r5.append(" ");
                                    r5.append(C2369.m6316(findViewById));
                                    Log.e("KeyTrigger", r5.toString());
                                }
                                i11++;
                                z3 = z7;
                                f4 = f5;
                            }
                        } else {
                            z7 = z3;
                        }
                        try {
                            r24.f7512.invoke(findViewById, new Object[0]);
                        } catch (Exception unused5) {
                            StringBuilder r63 = C1293.m3416("Exception in call \"");
                            r63.append(r24.f7509);
                            r63.append("\"on class ");
                            r63.append(findViewById.getClass().getSimpleName());
                            r63.append(" ");
                            r63.append(C2369.m6316(findViewById));
                            Log.e("KeyTrigger", r63.toString());
                        }
                    }
                    if (z4 && r24.f7516 != null) {
                        if (r24.f7503 == null) {
                            try {
                                r24.f7503 = findViewById.getClass().getMethod(r24.f7516, new Class[0]);
                            } catch (NoSuchMethodException unused6) {
                                StringBuilder r64 = C1293.m3416("Could not find method \"");
                                r64.append(r24.f7516);
                                r64.append("\"on class ");
                                r64.append(findViewById.getClass().getSimpleName());
                                r64.append(" ");
                                r64.append(C2369.m6316(findViewById));
                                Log.e("KeyTrigger", r64.toString());
                            }
                        }
                        r24.f7503.invoke(findViewById, new Object[0]);
                    }
                    if (z6 && r24.f7504 != null) {
                        if (r24.f7506 == null) {
                            try {
                                r24.f7506 = findViewById.getClass().getMethod(r24.f7504, new Class[0]);
                            } catch (NoSuchMethodException unused7) {
                                StringBuilder r52 = C1293.m3416("Could not find method \"");
                                r52.append(r24.f7504);
                                r52.append("\"on class ");
                                r52.append(findViewById.getClass().getSimpleName());
                                r52.append(" ");
                                r52.append(C2369.m6316(findViewById));
                                Log.e("KeyTrigger", r52.toString());
                            }
                        }
                        r24.f7506.invoke(findViewById, new Object[0]);
                    }
                    i11++;
                    z3 = z7;
                    f4 = f5;
                }
            }
            z2 = z3;
            f2 = f4;
        } else {
            f2 = r82;
            z2 = z;
            C2112 r17 = this.f7356;
            float f29 = r17.f7371;
            C2112 r4 = this.f7338;
            float r25 = C1293.m3403(r4.f7371, f29, f2, f29);
            float f30 = r17.f7367;
            float r53 = C1293.m3403(r4.f7367, f30, f2, f30);
            float f31 = r17.f7373;
            float f32 = r4.f7373;
            float r9 = C1293.m3403(f32, f31, f2, f31);
            float f33 = r17.f7365;
            float f34 = r4.f7365;
            float f35 = r25 + 0.5f;
            int i12 = (int) f35;
            float f36 = r53 + 0.5f;
            int i13 = (int) f36;
            int i14 = (int) (f35 + r9);
            int r54 = (int) (f36 + C1293.m3403(f34, f33, f2, f33));
            int i15 = i14 - i12;
            int i16 = r54 - i13;
            if (!(f32 == f31 && f34 == f33)) {
                view.measure(View.MeasureSpec.makeMeasureSpec(i15, 1073741824), View.MeasureSpec.makeMeasureSpec(i16, 1073741824));
            }
            view.layout(i12, i13, i14, r54);
        }
        HashMap<String, AbstractC2140> hashMap4 = this.f7339;
        if (hashMap4 != null) {
            for (AbstractC2140 r42 : hashMap4.values()) {
                if (r42 instanceof AbstractC2140.C2153) {
                    double[] dArr7 = this.f7350;
                    view.setRotation(((AbstractC2140.C2153) r42).m5660(f2) + ((float) Math.toDegrees(Math.atan2(dArr7[1], dArr7[0]))));
                } else {
                    r42.m5661(view, f2);
                }
            }
        }
        return z2;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5591(float f, float f2, float f3, float[] fArr) {
        double[] dArr;
        float r12 = m5590(f, this.f7335);
        AbstractC2187[] r0 = this.f7357;
        int i = 0;
        if (r0 != null) {
            double d = (double) r12;
            r0[0].m5738(d, this.f7350);
            this.f7357[0].m5740(d, this.f7334);
            float f4 = this.f7335[0];
            while (true) {
                dArr = this.f7350;
                if (i >= dArr.length) {
                    break;
                }
                dArr[i] = dArr[i] * ((double) f4);
                i++;
            }
            AbstractC2187 r122 = this.f7343;
            if (r122 != null) {
                double[] dArr2 = this.f7334;
                if (dArr2.length > 0) {
                    r122.m5740(d, dArr2);
                    this.f7343.m5738(d, this.f7350);
                    this.f7356.m5596(f2, f3, fArr, this.f7359, this.f7350, this.f7334);
                    return;
                }
                return;
            }
            this.f7356.m5596(f2, f3, fArr, this.f7359, dArr, this.f7334);
            return;
        }
        C2112 r123 = this.f7338;
        float f5 = r123.f7371;
        C2112 r2 = this.f7356;
        float f6 = f5 - r2.f7371;
        float f7 = r123.f7367 - r2.f7367;
        fArr[0] = (((r123.f7373 - r2.f7373) + f6) * f2) + ((1.0f - f2) * f6);
        fArr[1] = (((r123.f7365 - r2.f7365) + f7) * f3) + ((1.0f - f3) * f7);
    }
}
