package ῲ.ⁱ.ʬ;

import android.content.Context;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseIntArray;
import android.util.Xml;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.constraintlayout.widget.Barrier;
import androidx.constraintlayout.widget.ConstraintAttribute;
import androidx.constraintlayout.widget.ConstraintHelper;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.constraintlayout.widget.Constraints;
import androidx.constraintlayout.widget.Guideline;
import androidx.constraintlayout.widget.R$id;
import androidx.constraintlayout.widget.R$styleable;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import ඓ.K.K.K.C1293;
import ῲ.ⁱ.K.K.C2184;
import K.K.K.ʬ.C2369;

/* renamed from: ῲ.ⁱ.ʬ.ῲ  reason: contains not printable characters */
/* compiled from: ConstraintSet */
public class C2059 {

    /* renamed from: ඓ  reason: contains not printable characters */
    public static SparseIntArray f7004 = new SparseIntArray();

    /* renamed from: 㸾  reason: contains not printable characters */
    public static final int[] f7005 = {0, 4, 8};

    /* renamed from: ʬ  reason: contains not printable characters */
    public HashMap<Integer, C2063> f7006 = new HashMap<>();

    /* renamed from: ῲ  reason: contains not printable characters */
    public boolean f7007 = true;

    /* renamed from: K  reason: contains not printable characters */
    public HashMap<String, ConstraintAttribute> f7008 = new HashMap<>();

    static {
        f7004.append(R$styleable.Constraint_layout_constraintLeft_toLeftOf, 25);
        f7004.append(R$styleable.Constraint_layout_constraintLeft_toRightOf, 26);
        f7004.append(R$styleable.Constraint_layout_constraintRight_toLeftOf, 29);
        f7004.append(R$styleable.Constraint_layout_constraintRight_toRightOf, 30);
        f7004.append(R$styleable.Constraint_layout_constraintTop_toTopOf, 36);
        f7004.append(R$styleable.Constraint_layout_constraintTop_toBottomOf, 35);
        f7004.append(R$styleable.Constraint_layout_constraintBottom_toTopOf, 4);
        f7004.append(R$styleable.Constraint_layout_constraintBottom_toBottomOf, 3);
        f7004.append(R$styleable.Constraint_layout_constraintBaseline_toBaselineOf, 1);
        f7004.append(R$styleable.Constraint_layout_editor_absoluteX, 6);
        f7004.append(R$styleable.Constraint_layout_editor_absoluteY, 7);
        f7004.append(R$styleable.Constraint_layout_constraintGuide_begin, 17);
        f7004.append(R$styleable.Constraint_layout_constraintGuide_end, 18);
        f7004.append(R$styleable.Constraint_layout_constraintGuide_percent, 19);
        f7004.append(R$styleable.Constraint_android_orientation, 27);
        f7004.append(R$styleable.Constraint_layout_constraintStart_toEndOf, 32);
        f7004.append(R$styleable.Constraint_layout_constraintStart_toStartOf, 33);
        f7004.append(R$styleable.Constraint_layout_constraintEnd_toStartOf, 10);
        f7004.append(R$styleable.Constraint_layout_constraintEnd_toEndOf, 9);
        f7004.append(R$styleable.Constraint_layout_goneMarginLeft, 13);
        f7004.append(R$styleable.Constraint_layout_goneMarginTop, 16);
        f7004.append(R$styleable.Constraint_layout_goneMarginRight, 14);
        f7004.append(R$styleable.Constraint_layout_goneMarginBottom, 11);
        f7004.append(R$styleable.Constraint_layout_goneMarginStart, 15);
        f7004.append(R$styleable.Constraint_layout_goneMarginEnd, 12);
        f7004.append(R$styleable.Constraint_layout_constraintVertical_weight, 40);
        f7004.append(R$styleable.Constraint_layout_constraintHorizontal_weight, 39);
        f7004.append(R$styleable.Constraint_layout_constraintHorizontal_chainStyle, 41);
        f7004.append(R$styleable.Constraint_layout_constraintVertical_chainStyle, 42);
        f7004.append(R$styleable.Constraint_layout_constraintHorizontal_bias, 20);
        f7004.append(R$styleable.Constraint_layout_constraintVertical_bias, 37);
        f7004.append(R$styleable.Constraint_layout_constraintDimensionRatio, 5);
        f7004.append(R$styleable.Constraint_layout_constraintLeft_creator, 82);
        f7004.append(R$styleable.Constraint_layout_constraintTop_creator, 82);
        f7004.append(R$styleable.Constraint_layout_constraintRight_creator, 82);
        f7004.append(R$styleable.Constraint_layout_constraintBottom_creator, 82);
        f7004.append(R$styleable.Constraint_layout_constraintBaseline_creator, 82);
        f7004.append(R$styleable.Constraint_android_layout_marginLeft, 24);
        f7004.append(R$styleable.Constraint_android_layout_marginRight, 28);
        f7004.append(R$styleable.Constraint_android_layout_marginStart, 31);
        f7004.append(R$styleable.Constraint_android_layout_marginEnd, 8);
        f7004.append(R$styleable.Constraint_android_layout_marginTop, 34);
        f7004.append(R$styleable.Constraint_android_layout_marginBottom, 2);
        f7004.append(R$styleable.Constraint_android_layout_width, 23);
        f7004.append(R$styleable.Constraint_android_layout_height, 21);
        f7004.append(R$styleable.Constraint_android_visibility, 22);
        f7004.append(R$styleable.Constraint_android_alpha, 43);
        f7004.append(R$styleable.Constraint_android_elevation, 44);
        f7004.append(R$styleable.Constraint_android_rotationX, 45);
        f7004.append(R$styleable.Constraint_android_rotationY, 46);
        f7004.append(R$styleable.Constraint_android_rotation, 60);
        f7004.append(R$styleable.Constraint_android_scaleX, 47);
        f7004.append(R$styleable.Constraint_android_scaleY, 48);
        f7004.append(R$styleable.Constraint_android_transformPivotX, 49);
        f7004.append(R$styleable.Constraint_android_transformPivotY, 50);
        f7004.append(R$styleable.Constraint_android_translationX, 51);
        f7004.append(R$styleable.Constraint_android_translationY, 52);
        f7004.append(R$styleable.Constraint_android_translationZ, 53);
        f7004.append(R$styleable.Constraint_layout_constraintWidth_default, 54);
        f7004.append(R$styleable.Constraint_layout_constraintHeight_default, 55);
        f7004.append(R$styleable.Constraint_layout_constraintWidth_max, 56);
        f7004.append(R$styleable.Constraint_layout_constraintHeight_max, 57);
        f7004.append(R$styleable.Constraint_layout_constraintWidth_min, 58);
        f7004.append(R$styleable.Constraint_layout_constraintHeight_min, 59);
        f7004.append(R$styleable.Constraint_layout_constraintCircle, 61);
        f7004.append(R$styleable.Constraint_layout_constraintCircleRadius, 62);
        f7004.append(R$styleable.Constraint_layout_constraintCircleAngle, 63);
        f7004.append(R$styleable.Constraint_animate_relativeTo, 64);
        f7004.append(R$styleable.Constraint_transitionEasing, 65);
        f7004.append(R$styleable.Constraint_drawPath, 66);
        f7004.append(R$styleable.Constraint_transitionPathRotate, 67);
        f7004.append(R$styleable.Constraint_motionStagger, 79);
        f7004.append(R$styleable.Constraint_android_id, 38);
        f7004.append(R$styleable.Constraint_motionProgress, 68);
        f7004.append(R$styleable.Constraint_layout_constraintWidth_percent, 69);
        f7004.append(R$styleable.Constraint_layout_constraintHeight_percent, 70);
        f7004.append(R$styleable.Constraint_chainUseRtl, 71);
        f7004.append(R$styleable.Constraint_barrierDirection, 72);
        f7004.append(R$styleable.Constraint_barrierMargin, 73);
        f7004.append(R$styleable.Constraint_constraint_referenced_ids, 74);
        f7004.append(R$styleable.Constraint_barrierAllowsGoneWidgets, 75);
        f7004.append(R$styleable.Constraint_pathMotionArc, 76);
        f7004.append(R$styleable.Constraint_layout_constraintTag, 77);
        f7004.append(R$styleable.Constraint_visibilityMode, 78);
        f7004.append(R$styleable.Constraint_layout_constrainedWidth, 80);
        f7004.append(R$styleable.Constraint_layout_constrainedHeight, 81);
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public void m5365(ConstraintLayout constraintLayout) {
        NoSuchMethodException e;
        IllegalAccessException e2;
        InvocationTargetException e3;
        C2059 r1 = this;
        int childCount = constraintLayout.getChildCount();
        r1.f7006.clear();
        int i = 0;
        while (i < childCount) {
            View childAt = constraintLayout.getChildAt(i);
            ConstraintLayout.C0140 k = (ConstraintLayout.C0140) childAt.getLayoutParams();
            int id = childAt.getId();
            if (!r1.f7007 || id != -1) {
                if (!r1.f7006.containsKey(Integer.valueOf(id))) {
                    r1.f7006.put(Integer.valueOf(id), new C2063());
                }
                C2063 k2 = r1.f7006.get(Integer.valueOf(id));
                HashMap<String, ConstraintAttribute> hashMap = r1.f7008;
                HashMap<String, ConstraintAttribute> hashMap2 = new HashMap<>();
                Class<?> cls = childAt.getClass();
                for (String str : hashMap.keySet()) {
                    ConstraintAttribute constraintAttribute = hashMap.get(str);
                    try {
                        if (str.equals("BackgroundColor")) {
                            hashMap2.put(str, new ConstraintAttribute(constraintAttribute, Integer.valueOf(((ColorDrawable) childAt.getBackground()).getColor())));
                        } else {
                            try {
                                hashMap2.put(str, new ConstraintAttribute(constraintAttribute, cls.getMethod("getMap" + str, new Class[0]).invoke(childAt, new Object[0])));
                            } catch (NoSuchMethodException e4) {
                                e = e4;
                            } catch (IllegalAccessException e5) {
                                e2 = e5;
                                e2.printStackTrace();
                            } catch (InvocationTargetException e6) {
                                e3 = e6;
                                e3.printStackTrace();
                            }
                        }
                    } catch (NoSuchMethodException e7) {
                        e = e7;
                        e.printStackTrace();
                    } catch (IllegalAccessException e8) {
                        e2 = e8;
                        e2.printStackTrace();
                    } catch (InvocationTargetException e9) {
                        e3 = e9;
                        e3.printStackTrace();
                    }
                }
                k2.f7098 = hashMap2;
                k2.m5385(id, k);
                k2.f7096.f7102 = childAt.getVisibility();
                int i2 = Build.VERSION.SDK_INT;
                k2.f7096.f7104 = childAt.getAlpha();
                k2.f7095.f7022 = childAt.getRotation();
                k2.f7095.f7018 = childAt.getRotationX();
                k2.f7095.f7028 = childAt.getRotationY();
                k2.f7095.f7019 = childAt.getScaleX();
                k2.f7095.f7027 = childAt.getScaleY();
                float pivotX = childAt.getPivotX();
                float pivotY = childAt.getPivotY();
                if (!(((double) pivotX) == 0.0d && ((double) pivotY) == 0.0d)) {
                    C2061 r3 = k2.f7095;
                    r3.f7023 = pivotX;
                    r3.f7029 = pivotY;
                }
                k2.f7095.f7021 = childAt.getTranslationX();
                k2.f7095.f7026 = childAt.getTranslationY();
                int i3 = Build.VERSION.SDK_INT;
                k2.f7095.f7020 = childAt.getTranslationZ();
                C2061 r0 = k2.f7095;
                if (r0.f7025) {
                    r0.f7030 = childAt.getElevation();
                }
                if (childAt instanceof Barrier) {
                    Barrier barrier = (Barrier) childAt;
                    k2.f7099.f7081 = barrier.m539();
                    k2.f7099.f7041 = barrier.getReferencedIds();
                    k2.f7099.f7055 = barrier.getType();
                    k2.f7099.f7074 = barrier.getMargin();
                }
                i++;
                r1 = this;
            } else {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            }
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public void m5368(ConstraintLayout constraintLayout) {
        m5374(constraintLayout, true);
        constraintLayout.setConstraintSet(null);
        constraintLayout.requestLayout();
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5376(C2059 r8) {
        for (Integer num : r8.f7006.keySet()) {
            int intValue = num.intValue();
            C2063 k = r8.f7006.get(num);
            if (!this.f7006.containsKey(Integer.valueOf(intValue))) {
                this.f7006.put(Integer.valueOf(intValue), new C2063());
            }
            C2063 k2 = this.f7006.get(Integer.valueOf(intValue));
            C2062 r3 = k2.f7099;
            if (!r3.f7061) {
                r3.m5384(k.f7099);
            }
            C2064 r32 = k2.f7096;
            if (!r32.f7103) {
                r32.m5389(k.f7096);
            }
            C2061 r33 = k2.f7095;
            if (!r33.f7024) {
                r33.m5382(k.f7095);
            }
            C2060 r34 = k2.f7094;
            if (!r34.f7014) {
                r34.m5380(k.f7094);
            }
            for (String str : k.f7098.keySet()) {
                if (!k2.f7098.containsKey(str)) {
                    k2.f7098.put(str, k.f7098.get(str));
                }
            }
        }
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public void m5378(ConstraintLayout constraintLayout) {
        int childCount = constraintLayout.getChildCount();
        for (int i = 0; i < childCount; i++) {
            View childAt = constraintLayout.getChildAt(i);
            ConstraintLayout.C0140 k = (ConstraintLayout.C0140) childAt.getLayoutParams();
            int id = childAt.getId();
            if (!this.f7007 || id != -1) {
                if (!this.f7006.containsKey(Integer.valueOf(id))) {
                    this.f7006.put(Integer.valueOf(id), new C2063());
                }
                C2063 k2 = this.f7006.get(Integer.valueOf(id));
                if (!k2.f7099.f7061) {
                    k2.m5385(id, k);
                    if (childAt instanceof ConstraintHelper) {
                        k2.f7099.f7041 = ((ConstraintHelper) childAt).getReferencedIds();
                        if (childAt instanceof Barrier) {
                            Barrier barrier = (Barrier) childAt;
                            k2.f7099.f7081 = barrier.m539();
                            k2.f7099.f7055 = barrier.getType();
                            k2.f7099.f7074 = barrier.getMargin();
                        }
                    }
                    k2.f7099.f7061 = true;
                }
                C2064 r3 = k2.f7096;
                if (!r3.f7103) {
                    r3.f7102 = childAt.getVisibility();
                    k2.f7096.f7104 = childAt.getAlpha();
                    k2.f7096.f7103 = true;
                }
                int i2 = Build.VERSION.SDK_INT;
                C2061 r32 = k2.f7095;
                if (!r32.f7024) {
                    r32.f7024 = true;
                    r32.f7022 = childAt.getRotation();
                    k2.f7095.f7018 = childAt.getRotationX();
                    k2.f7095.f7028 = childAt.getRotationY();
                    k2.f7095.f7019 = childAt.getScaleX();
                    k2.f7095.f7027 = childAt.getScaleY();
                    float pivotX = childAt.getPivotX();
                    float pivotY = childAt.getPivotY();
                    if (!(((double) pivotX) == 0.0d && ((double) pivotY) == 0.0d)) {
                        C2061 r6 = k2.f7095;
                        r6.f7023 = pivotX;
                        r6.f7029 = pivotY;
                    }
                    k2.f7095.f7021 = childAt.getTranslationX();
                    k2.f7095.f7026 = childAt.getTranslationY();
                    int i3 = Build.VERSION.SDK_INT;
                    k2.f7095.f7020 = childAt.getTranslationZ();
                    C2061 r33 = k2.f7095;
                    if (r33.f7025) {
                        r33.f7030 = childAt.getElevation();
                    }
                }
            } else {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            }
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public int m5366(int i) {
        return m5369(i).f7099.f7088;
    }

    /* renamed from: ῲ.ⁱ.ʬ.ῲ$㸾  reason: contains not printable characters */
    /* compiled from: ConstraintSet */
    public static class C2064 {

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

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

        /* renamed from: ῲ  reason: contains not printable characters */
        public int f7102 = 0;

        /* renamed from: K  reason: contains not printable characters */
        public boolean f7103 = false;

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

        /* renamed from: K  reason: contains not printable characters */
        public void m5389(C2064 r2) {
            this.f7103 = r2.f7103;
            this.f7102 = r2.f7102;
            this.f7104 = r2.f7104;
            this.f7101 = r2.f7101;
            this.f7100 = r2.f7100;
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5388(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.PropertySet);
            this.f7103 = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = obtainStyledAttributes.getIndex(i);
                if (index == R$styleable.PropertySet_android_alpha) {
                    this.f7104 = obtainStyledAttributes.getFloat(index, this.f7104);
                } else if (index == R$styleable.PropertySet_android_visibility) {
                    this.f7102 = obtainStyledAttributes.getInt(index, this.f7102);
                    this.f7102 = C2059.f7005[this.f7102];
                } else if (index == R$styleable.PropertySet_visibilityMode) {
                    this.f7100 = obtainStyledAttributes.getInt(index, this.f7100);
                } else if (index == R$styleable.PropertySet_motionProgress) {
                    this.f7101 = obtainStyledAttributes.getFloat(index, this.f7101);
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public void m5367(Context context, int i) {
        XmlResourceParser xml = context.getResources().getXml(i);
        try {
            for (int eventType = xml.getEventType(); eventType != 1; eventType = xml.next()) {
                if (eventType == 0) {
                    xml.getName();
                } else if (eventType == 2) {
                    String name = xml.getName();
                    C2063 r2 = m5370(context, Xml.asAttributeSet(xml));
                    if (name.equalsIgnoreCase("Guideline")) {
                        r2.f7099.f7064 = true;
                    }
                    this.f7006.put(Integer.valueOf(r2.f7097), r2);
                }
            }
        } catch (XmlPullParserException e) {
            e.printStackTrace();
        } catch (IOException e2) {
            e2.printStackTrace();
        }
    }

    /* renamed from: ῲ.ⁱ.ʬ.ῲ$ʬ  reason: contains not printable characters */
    /* compiled from: ConstraintSet */
    public static class C2060 {

        /* renamed from: 㿎  reason: contains not printable characters */
        public static SparseIntArray f7009 = new SparseIntArray();

        /* renamed from: ʬ  reason: contains not printable characters */
        public String f7010 = null;

        /* renamed from: ඓ  reason: contains not printable characters */
        public int f7011 = 0;

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

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

        /* renamed from: K  reason: contains not printable characters */
        public boolean f7014 = false;

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

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

        static {
            f7009.append(R$styleable.Motion_motionPathRotate, 1);
            f7009.append(R$styleable.Motion_pathMotionArc, 2);
            f7009.append(R$styleable.Motion_transitionEasing, 3);
            f7009.append(R$styleable.Motion_drawPath, 4);
            f7009.append(R$styleable.Motion_animate_relativeTo, 5);
            f7009.append(R$styleable.Motion_motionStagger, 6);
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5380(C2060 r2) {
            this.f7014 = r2.f7014;
            this.f7012 = r2.f7012;
            this.f7010 = r2.f7010;
            this.f7016 = r2.f7016;
            this.f7011 = r2.f7011;
            this.f7013 = r2.f7013;
            this.f7015 = r2.f7015;
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5379(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.Motion);
            this.f7014 = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = obtainStyledAttributes.getIndex(i);
                switch (f7009.get(index)) {
                    case 1:
                        this.f7013 = obtainStyledAttributes.getFloat(index, this.f7013);
                        break;
                    case 2:
                        this.f7016 = obtainStyledAttributes.getInt(index, this.f7016);
                        break;
                    case 3:
                        if (obtainStyledAttributes.peekValue(index).type == 3) {
                            this.f7010 = obtainStyledAttributes.getString(index);
                            break;
                        } else {
                            this.f7010 = C2184.f7594[obtainStyledAttributes.getInteger(index, 0)];
                            break;
                        }
                    case 4:
                        this.f7011 = obtainStyledAttributes.getInt(index, 0);
                        break;
                    case 5:
                        this.f7012 = C2059.m5363(obtainStyledAttributes, index, this.f7012);
                        break;
                    case 6:
                        this.f7015 = obtainStyledAttributes.getFloat(index, this.f7015);
                        break;
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    /* renamed from: ῲ.ⁱ.ʬ.ῲ$ඓ  reason: contains not printable characters */
    /* compiled from: ConstraintSet */
    public static class C2061 {

        /* renamed from: Ԕ  reason: contains not printable characters */
        public static SparseIntArray f7017 = new SparseIntArray();

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

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

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

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

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

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

        /* renamed from: K  reason: contains not printable characters */
        public boolean f7024 = false;

        /* renamed from: 㑃  reason: contains not printable characters */
        public boolean f7025 = false;

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

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

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

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

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

        static {
            f7017.append(R$styleable.Transform_android_rotation, 1);
            f7017.append(R$styleable.Transform_android_rotationX, 2);
            f7017.append(R$styleable.Transform_android_rotationY, 3);
            f7017.append(R$styleable.Transform_android_scaleX, 4);
            f7017.append(R$styleable.Transform_android_scaleY, 5);
            f7017.append(R$styleable.Transform_android_transformPivotX, 6);
            f7017.append(R$styleable.Transform_android_transformPivotY, 7);
            f7017.append(R$styleable.Transform_android_translationX, 8);
            f7017.append(R$styleable.Transform_android_translationY, 9);
            f7017.append(R$styleable.Transform_android_translationZ, 10);
            f7017.append(R$styleable.Transform_android_elevation, 11);
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5382(C2061 r2) {
            this.f7024 = r2.f7024;
            this.f7022 = r2.f7022;
            this.f7018 = r2.f7018;
            this.f7028 = r2.f7028;
            this.f7019 = r2.f7019;
            this.f7027 = r2.f7027;
            this.f7023 = r2.f7023;
            this.f7029 = r2.f7029;
            this.f7021 = r2.f7021;
            this.f7026 = r2.f7026;
            this.f7020 = r2.f7020;
            this.f7025 = r2.f7025;
            this.f7030 = r2.f7030;
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5381(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.Transform);
            this.f7024 = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = obtainStyledAttributes.getIndex(i);
                switch (f7017.get(index)) {
                    case 1:
                        this.f7022 = obtainStyledAttributes.getFloat(index, this.f7022);
                        break;
                    case 2:
                        this.f7018 = obtainStyledAttributes.getFloat(index, this.f7018);
                        break;
                    case 3:
                        this.f7028 = obtainStyledAttributes.getFloat(index, this.f7028);
                        break;
                    case 4:
                        this.f7019 = obtainStyledAttributes.getFloat(index, this.f7019);
                        break;
                    case 5:
                        this.f7027 = obtainStyledAttributes.getFloat(index, this.f7027);
                        break;
                    case 6:
                        this.f7023 = obtainStyledAttributes.getDimension(index, this.f7023);
                        break;
                    case 7:
                        this.f7029 = obtainStyledAttributes.getDimension(index, this.f7029);
                        break;
                    case 8:
                        this.f7021 = obtainStyledAttributes.getDimension(index, this.f7021);
                        break;
                    case 9:
                        this.f7026 = obtainStyledAttributes.getDimension(index, this.f7026);
                        break;
                    case 10:
                        int i2 = Build.VERSION.SDK_INT;
                        this.f7020 = obtainStyledAttributes.getDimension(index, this.f7020);
                        break;
                    case 11:
                        int i3 = Build.VERSION.SDK_INT;
                        this.f7025 = true;
                        this.f7030 = obtainStyledAttributes.getDimension(index, this.f7030);
                        break;
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    /* renamed from: ῲ.ⁱ.ʬ.ῲ$K  reason: contains not printable characters */
    /* compiled from: ConstraintSet */
    public static class C2063 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public final C2060 f7094 = new C2060();

        /* renamed from: ඓ  reason: contains not printable characters */
        public final C2061 f7095 = new C2061();

        /* renamed from: ῲ  reason: contains not printable characters */
        public final C2064 f7096 = new C2064();

        /* renamed from: K  reason: contains not printable characters */
        public int f7097;

        /* renamed from: 㴹  reason: contains not printable characters */
        public HashMap<String, ConstraintAttribute> f7098 = new HashMap<>();

        /* renamed from: 㸾  reason: contains not printable characters */
        public final C2062 f7099 = new C2062();

        public Object clone() throws CloneNotSupportedException {
            C2063 k = new C2063();
            k.f7099.m5384(this.f7099);
            k.f7094.m5380(this.f7094);
            k.f7096.m5389(this.f7096);
            k.f7095.m5382(this.f7095);
            k.f7097 = this.f7097;
            return k;
        }

        /* renamed from: K  reason: contains not printable characters */
        public final void m5386(int i, Constraints.C0142 k) {
            m5385(i, (ConstraintLayout.C0140) k);
            this.f7096.f7104 = k.f1081;
            C2061 r2 = this.f7095;
            r2.f7022 = k.f1086;
            r2.f7018 = k.f1075;
            r2.f7028 = k.f1077;
            r2.f7019 = k.f1085;
            r2.f7027 = k.f1082;
            r2.f7023 = k.f1076;
            r2.f7029 = k.f1080;
            r2.f7021 = k.f1078;
            r2.f7026 = k.f1084;
            r2.f7020 = k.f1074;
            r2.f7030 = k.f1079;
            r2.f7025 = k.f1083;
        }

        /* renamed from: K  reason: contains not printable characters */
        public final void m5385(int i, ConstraintLayout.C0140 k) {
            this.f7097 = i;
            C2062 r2 = this.f7099;
            r2.f7090 = k.f1066;
            r2.f7058 = k.f1021;
            r2.f7082 = k.f1061;
            r2.f7056 = k.f1039;
            r2.f7070 = k.f1068;
            r2.f7092 = k.f1035;
            r2.f7037 = k.f1059;
            r2.f7073 = k.f1033;
            r2.f7039 = k.f1047;
            r2.f7054 = k.f1014;
            r2.f7075 = k.f1031;
            r2.f7040 = k.f1052;
            r2.f7091 = k.f1016;
            r2.f7038 = k.f1043;
            r2.f7086 = k.f1045;
            r2.f7053 = k.f1055;
            r2.f7083 = k.f1070;
            r2.f7051 = k.f1011;
            r2.f7066 = k.f1050;
            r2.f7068 = k.f1009;
            r2.f7078 = k.f1037;
            r2.f7093 = k.f1018;
            r2.f7062 = k.f1006;
            r2.f7045 = k.f1041;
            r2.f7084 = k.f1038;
            r2.f7032 = ((ViewGroup.MarginLayoutParams) k).width;
            this.f7099.f7088 = ((ViewGroup.MarginLayoutParams) k).height;
            C2062 r22 = this.f7099;
            r22.f7057 = ((ViewGroup.MarginLayoutParams) k).leftMargin;
            r22.f7047 = ((ViewGroup.MarginLayoutParams) k).rightMargin;
            r22.f7065 = ((ViewGroup.MarginLayoutParams) k).topMargin;
            r22.f7048 = ((ViewGroup.MarginLayoutParams) k).bottomMargin;
            r22.f7035 = k.f1023;
            r22.f7060 = k.f1034;
            r22.f7046 = k.f1024;
            r22.f7042 = k.f1042;
            r22.f7043 = k.f1022;
            r22.f7076 = k.f1057;
            r22.f7080 = k.f1029;
            r22.f7069 = k.f1008;
            r22.f7072 = k.f1026;
            r22.f7033 = k.f1067;
            r22.f7050 = k.f1056;
            r22.f7059 = k.f1020;
            r22.f7036 = k.f1048;
            r22.f7085 = k.f1065;
            r22.f7077 = k.f1046;
            r22.f7044 = k.f1012;
            r22.f7089 = k.f1030;
            r22.f7079 = k.f1069;
            r22.f7049 = k.f1064;
            r22.f7087 = k.f1060;
            r22.f7071 = k.f1028;
            int i2 = Build.VERSION.SDK_INT;
            r22.f7052 = k.getMarginEnd();
            this.f7099.f7034 = k.getMarginStart();
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5387(ConstraintLayout.C0140 k) {
            C2062 r0 = this.f7099;
            k.f1066 = r0.f7090;
            k.f1021 = r0.f7058;
            k.f1061 = r0.f7082;
            k.f1039 = r0.f7056;
            k.f1068 = r0.f7070;
            k.f1035 = r0.f7092;
            k.f1059 = r0.f7037;
            k.f1033 = r0.f7073;
            k.f1047 = r0.f7039;
            k.f1014 = r0.f7054;
            k.f1031 = r0.f7075;
            k.f1052 = r0.f7040;
            k.f1016 = r0.f7091;
            ((ViewGroup.MarginLayoutParams) k).leftMargin = r0.f7057;
            ((ViewGroup.MarginLayoutParams) k).rightMargin = r0.f7047;
            ((ViewGroup.MarginLayoutParams) k).topMargin = r0.f7065;
            ((ViewGroup.MarginLayoutParams) k).bottomMargin = r0.f7048;
            k.f1060 = r0.f7087;
            k.f1028 = r0.f7071;
            k.f1012 = r0.f7044;
            k.f1030 = r0.f7089;
            k.f1043 = r0.f7038;
            k.f1045 = r0.f7086;
            k.f1070 = r0.f7083;
            k.f1011 = r0.f7051;
            k.f1050 = r0.f7066;
            k.f1055 = r0.f7053;
            k.f1009 = r0.f7068;
            k.f1037 = r0.f7078;
            k.f1023 = r0.f7035;
            k.f1034 = r0.f7060;
            k.f1024 = r0.f7046;
            k.f1042 = r0.f7042;
            k.f1022 = r0.f7043;
            k.f1057 = r0.f7076;
            k.f1029 = r0.f7080;
            k.f1008 = r0.f7069;
            k.f1026 = r0.f7072;
            k.f1067 = r0.f7033;
            k.f1056 = r0.f7050;
            k.f1020 = r0.f7059;
            k.f1048 = r0.f7036;
            k.f1065 = r0.f7085;
            k.f1018 = r0.f7093;
            k.f1006 = r0.f7062;
            k.f1041 = r0.f7045;
            k.f1038 = r0.f7084;
            ((ViewGroup.MarginLayoutParams) k).width = r0.f7032;
            ((ViewGroup.MarginLayoutParams) k).height = r0.f7088;
            String str = r0.f7077;
            if (str != null) {
                k.f1046 = str;
            }
            int i = Build.VERSION.SDK_INT;
            k.setMarginStart(this.f7099.f7034);
            k.setMarginEnd(this.f7099.f7052);
            k.m566();
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5371(Context context, int i) {
        m5365((ConstraintLayout) LayoutInflater.from(context).inflate(i, (ViewGroup) null));
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5375(Constraints constraints) {
        int childCount = constraints.getChildCount();
        this.f7006.clear();
        for (int i = 0; i < childCount; i++) {
            View childAt = constraints.getChildAt(i);
            Constraints.C0142 k = (Constraints.C0142) childAt.getLayoutParams();
            int id = childAt.getId();
            if (!this.f7007 || id != -1) {
                if (!this.f7006.containsKey(Integer.valueOf(id))) {
                    this.f7006.put(Integer.valueOf(id), new C2063());
                }
                C2063 k2 = this.f7006.get(Integer.valueOf(id));
                if (childAt instanceof ConstraintHelper) {
                    ConstraintHelper constraintHelper = (ConstraintHelper) childAt;
                    k2.m5386(id, k);
                    if (constraintHelper instanceof Barrier) {
                        C2062 r6 = k2.f7099;
                        r6.f7063 = 1;
                        Barrier barrier = (Barrier) constraintHelper;
                        r6.f7055 = barrier.getType();
                        k2.f7099.f7041 = barrier.getReferencedIds();
                        k2.f7099.f7074 = barrier.getMargin();
                    }
                }
                k2.m5386(id, k);
            } else {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5373(ConstraintLayout constraintLayout) {
        int childCount = constraintLayout.getChildCount();
        for (int i = 0; i < childCount; i++) {
            View childAt = constraintLayout.getChildAt(i);
            int id = childAt.getId();
            if (!this.f7006.containsKey(Integer.valueOf(id))) {
                StringBuilder r3 = C1293.m3416("id unknown ");
                r3.append(C2369.m6316(childAt));
                Log.v("ConstraintSet", r3.toString());
            } else if (this.f7007 && id == -1) {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            } else if (this.f7006.containsKey(Integer.valueOf(id))) {
                ConstraintAttribute.m542(childAt, this.f7006.get(Integer.valueOf(id)).f7098);
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5374(ConstraintLayout constraintLayout, boolean z) {
        int childCount = constraintLayout.getChildCount();
        HashSet hashSet = new HashSet(this.f7006.keySet());
        for (int i = 0; i < childCount; i++) {
            View childAt = constraintLayout.getChildAt(i);
            int id = childAt.getId();
            if (!this.f7006.containsKey(Integer.valueOf(id))) {
                StringBuilder r3 = C1293.m3416("id unknown ");
                r3.append(C2369.m6316(childAt));
                Log.w("ConstraintSet", r3.toString());
            } else if (this.f7007 && id == -1) {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            } else if (id != -1) {
                if (this.f7006.containsKey(Integer.valueOf(id))) {
                    hashSet.remove(Integer.valueOf(id));
                    C2063 k = this.f7006.get(Integer.valueOf(id));
                    if (childAt instanceof Barrier) {
                        k.f7099.f7063 = 1;
                    }
                    int i2 = k.f7099.f7063;
                    if (i2 != -1 && i2 == 1) {
                        Barrier barrier = (Barrier) childAt;
                        barrier.setId(id);
                        barrier.setType(k.f7099.f7055);
                        barrier.setMargin(k.f7099.f7074);
                        barrier.setAllowsGoneWidget(k.f7099.f7081);
                        C2062 r4 = k.f7099;
                        int[] iArr = r4.f7041;
                        if (iArr != null) {
                            barrier.setReferencedIds(iArr);
                        } else {
                            String str = r4.f7067;
                            if (str != null) {
                                r4.f7041 = m5377(barrier, str);
                                barrier.setReferencedIds(k.f7099.f7041);
                            }
                        }
                    }
                    ConstraintLayout.C0140 k2 = (ConstraintLayout.C0140) childAt.getLayoutParams();
                    k2.m566();
                    k.m5387(k2);
                    if (z) {
                        ConstraintAttribute.m542(childAt, k.f7098);
                    }
                    childAt.setLayoutParams(k2);
                    C2064 r32 = k.f7096;
                    if (r32.f7100 == 0) {
                        childAt.setVisibility(r32.f7102);
                    }
                    int i3 = Build.VERSION.SDK_INT;
                    childAt.setAlpha(k.f7096.f7104);
                    childAt.setRotation(k.f7095.f7022);
                    childAt.setRotationX(k.f7095.f7018);
                    childAt.setRotationY(k.f7095.f7028);
                    childAt.setScaleX(k.f7095.f7019);
                    childAt.setScaleY(k.f7095.f7027);
                    if (!Float.isNaN(k.f7095.f7023)) {
                        childAt.setPivotX(k.f7095.f7023);
                    }
                    if (!Float.isNaN(k.f7095.f7029)) {
                        childAt.setPivotY(k.f7095.f7029);
                    }
                    childAt.setTranslationX(k.f7095.f7021);
                    childAt.setTranslationY(k.f7095.f7026);
                    int i4 = Build.VERSION.SDK_INT;
                    childAt.setTranslationZ(k.f7095.f7020);
                    C2061 r33 = k.f7095;
                    if (r33.f7025) {
                        childAt.setElevation(r33.f7030);
                    }
                } else {
                    Log.v("ConstraintSet", "WARNING NO CONSTRAINTS for view " + id);
                }
            }
        }
        Iterator it2 = hashSet.iterator();
        while (it2.hasNext()) {
            Integer num = (Integer) it2.next();
            C2063 k3 = this.f7006.get(num);
            int i5 = k3.f7099.f7063;
            if (i5 != -1 && i5 == 1) {
                Barrier barrier2 = new Barrier(constraintLayout.getContext());
                barrier2.setId(num.intValue());
                C2062 r5 = k3.f7099;
                int[] iArr2 = r5.f7041;
                if (iArr2 != null) {
                    barrier2.setReferencedIds(iArr2);
                } else {
                    String str2 = r5.f7067;
                    if (str2 != null) {
                        r5.f7041 = m5377(barrier2, str2);
                        barrier2.setReferencedIds(k3.f7099.f7041);
                    }
                }
                barrier2.setType(k3.f7099.f7055);
                barrier2.setMargin(k3.f7099.f7074);
                ConstraintLayout.C0140 generateDefaultLayoutParams = constraintLayout.generateDefaultLayoutParams();
                barrier2.m548();
                k3.m5387(generateDefaultLayoutParams);
                constraintLayout.addView(barrier2, generateDefaultLayoutParams);
            }
            if (k3.f7099.f7064) {
                View guideline = new Guideline(constraintLayout.getContext());
                guideline.setId(num.intValue());
                ConstraintLayout.C0140 generateDefaultLayoutParams2 = constraintLayout.generateDefaultLayoutParams();
                k3.m5387(generateDefaultLayoutParams2);
                constraintLayout.addView(guideline, generateDefaultLayoutParams2);
            }
        }
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public int m5364(int i) {
        return m5369(i).f7099.f7032;
    }

    /* renamed from: ῲ.ⁱ.ʬ.ῲ$ῲ  reason: contains not printable characters */
    /* compiled from: ConstraintSet */
    public static class C2062 {

        /* renamed from: Ն  reason: contains not printable characters */
        public static SparseIntArray f7031 = new SparseIntArray();

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

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

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

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

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

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

        /* renamed from: Ԛ  reason: contains not printable characters */
        public float f7038 = 0.5f;

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

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

        /* renamed from: ݰ  reason: contains not printable characters */
        public int[] f7041;

        /* renamed from: ࠋ  reason: contains not printable characters */
        public int f7042 = 0;

        /* renamed from: ࡔ  reason: contains not printable characters */
        public boolean f7043 = false;

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

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

        /* renamed from: ผ  reason: contains not printable characters */
        public int f7046 = 0;

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

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

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

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

        /* renamed from: ᑓ  reason: contains not printable characters */
        public int f7051 = 0;

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

        /* renamed from: ᓆ  reason: contains not printable characters */
        public String f7053 = null;

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

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

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

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

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

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

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

        /* renamed from: ῲ  reason: contains not printable characters */
        public boolean f7061 = false;

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

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

        /* renamed from: K  reason: contains not printable characters */
        public boolean f7064 = false;

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

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

        /* renamed from: を  reason: contains not printable characters */
        public String f7067;

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

        /* renamed from: ピ  reason: contains not printable characters */
        public int f7069 = 0;

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

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

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

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

        /* renamed from: 㗼  reason: contains not printable characters */
        public int f7074 = 0;

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

        /* renamed from: 㗾  reason: contains not printable characters */
        public boolean f7076 = false;

        /* renamed from: 㣙  reason: contains not printable characters */
        public String f7077;

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

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

        /* renamed from: 㱶  reason: contains not printable characters */
        public int f7080 = 0;

        /* renamed from: 㳨  reason: contains not printable characters */
        public boolean f7081 = true;

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

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

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

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

        /* renamed from: 㶋  reason: contains not printable characters */
        public float f7086 = 0.5f;

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

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

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

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

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

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

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

        static {
            f7031.append(R$styleable.Layout_layout_constraintLeft_toLeftOf, 24);
            f7031.append(R$styleable.Layout_layout_constraintLeft_toRightOf, 25);
            f7031.append(R$styleable.Layout_layout_constraintRight_toLeftOf, 28);
            f7031.append(R$styleable.Layout_layout_constraintRight_toRightOf, 29);
            f7031.append(R$styleable.Layout_layout_constraintTop_toTopOf, 35);
            f7031.append(R$styleable.Layout_layout_constraintTop_toBottomOf, 34);
            f7031.append(R$styleable.Layout_layout_constraintBottom_toTopOf, 4);
            f7031.append(R$styleable.Layout_layout_constraintBottom_toBottomOf, 3);
            f7031.append(R$styleable.Layout_layout_constraintBaseline_toBaselineOf, 1);
            f7031.append(R$styleable.Layout_layout_editor_absoluteX, 6);
            f7031.append(R$styleable.Layout_layout_editor_absoluteY, 7);
            f7031.append(R$styleable.Layout_layout_constraintGuide_begin, 17);
            f7031.append(R$styleable.Layout_layout_constraintGuide_end, 18);
            f7031.append(R$styleable.Layout_layout_constraintGuide_percent, 19);
            f7031.append(R$styleable.Layout_android_orientation, 26);
            f7031.append(R$styleable.Layout_layout_constraintStart_toEndOf, 31);
            f7031.append(R$styleable.Layout_layout_constraintStart_toStartOf, 32);
            f7031.append(R$styleable.Layout_layout_constraintEnd_toStartOf, 10);
            f7031.append(R$styleable.Layout_layout_constraintEnd_toEndOf, 9);
            f7031.append(R$styleable.Layout_layout_goneMarginLeft, 13);
            f7031.append(R$styleable.Layout_layout_goneMarginTop, 16);
            f7031.append(R$styleable.Layout_layout_goneMarginRight, 14);
            f7031.append(R$styleable.Layout_layout_goneMarginBottom, 11);
            f7031.append(R$styleable.Layout_layout_goneMarginStart, 15);
            f7031.append(R$styleable.Layout_layout_goneMarginEnd, 12);
            f7031.append(R$styleable.Layout_layout_constraintVertical_weight, 38);
            f7031.append(R$styleable.Layout_layout_constraintHorizontal_weight, 37);
            f7031.append(R$styleable.Layout_layout_constraintHorizontal_chainStyle, 39);
            f7031.append(R$styleable.Layout_layout_constraintVertical_chainStyle, 40);
            f7031.append(R$styleable.Layout_layout_constraintHorizontal_bias, 20);
            f7031.append(R$styleable.Layout_layout_constraintVertical_bias, 36);
            f7031.append(R$styleable.Layout_layout_constraintDimensionRatio, 5);
            f7031.append(R$styleable.Layout_layout_constraintLeft_creator, 76);
            f7031.append(R$styleable.Layout_layout_constraintTop_creator, 76);
            f7031.append(R$styleable.Layout_layout_constraintRight_creator, 76);
            f7031.append(R$styleable.Layout_layout_constraintBottom_creator, 76);
            f7031.append(R$styleable.Layout_layout_constraintBaseline_creator, 76);
            f7031.append(R$styleable.Layout_android_layout_marginLeft, 23);
            f7031.append(R$styleable.Layout_android_layout_marginRight, 27);
            f7031.append(R$styleable.Layout_android_layout_marginStart, 30);
            f7031.append(R$styleable.Layout_android_layout_marginEnd, 8);
            f7031.append(R$styleable.Layout_android_layout_marginTop, 33);
            f7031.append(R$styleable.Layout_android_layout_marginBottom, 2);
            f7031.append(R$styleable.Layout_android_layout_width, 22);
            f7031.append(R$styleable.Layout_android_layout_height, 21);
            f7031.append(R$styleable.Layout_layout_constraintCircle, 61);
            f7031.append(R$styleable.Layout_layout_constraintCircleRadius, 62);
            f7031.append(R$styleable.Layout_layout_constraintCircleAngle, 63);
            f7031.append(R$styleable.Layout_layout_constraintWidth_percent, 69);
            f7031.append(R$styleable.Layout_layout_constraintHeight_percent, 70);
            f7031.append(R$styleable.Layout_chainUseRtl, 71);
            f7031.append(R$styleable.Layout_barrierDirection, 72);
            f7031.append(R$styleable.Layout_barrierMargin, 73);
            f7031.append(R$styleable.Layout_constraint_referenced_ids, 74);
            f7031.append(R$styleable.Layout_barrierAllowsGoneWidgets, 75);
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5384(C2062 r3) {
            this.f7064 = r3.f7064;
            this.f7032 = r3.f7032;
            this.f7061 = r3.f7061;
            this.f7088 = r3.f7088;
            this.f7045 = r3.f7045;
            this.f7084 = r3.f7084;
            this.f7062 = r3.f7062;
            this.f7090 = r3.f7090;
            this.f7058 = r3.f7058;
            this.f7082 = r3.f7082;
            this.f7056 = r3.f7056;
            this.f7070 = r3.f7070;
            this.f7092 = r3.f7092;
            this.f7037 = r3.f7037;
            this.f7073 = r3.f7073;
            this.f7039 = r3.f7039;
            this.f7054 = r3.f7054;
            this.f7075 = r3.f7075;
            this.f7040 = r3.f7040;
            this.f7091 = r3.f7091;
            this.f7038 = r3.f7038;
            this.f7086 = r3.f7086;
            this.f7053 = r3.f7053;
            this.f7083 = r3.f7083;
            this.f7051 = r3.f7051;
            this.f7066 = r3.f7066;
            this.f7068 = r3.f7068;
            this.f7078 = r3.f7078;
            this.f7093 = r3.f7093;
            this.f7057 = r3.f7057;
            this.f7047 = r3.f7047;
            this.f7065 = r3.f7065;
            this.f7048 = r3.f7048;
            this.f7052 = r3.f7052;
            this.f7034 = r3.f7034;
            this.f7079 = r3.f7079;
            this.f7044 = r3.f7044;
            this.f7049 = r3.f7049;
            this.f7089 = r3.f7089;
            this.f7071 = r3.f7071;
            this.f7087 = r3.f7087;
            this.f7035 = r3.f7035;
            this.f7060 = r3.f7060;
            this.f7042 = r3.f7042;
            this.f7046 = r3.f7046;
            this.f7080 = r3.f7080;
            this.f7069 = r3.f7069;
            this.f7072 = r3.f7072;
            this.f7033 = r3.f7033;
            this.f7050 = r3.f7050;
            this.f7059 = r3.f7059;
            this.f7036 = r3.f7036;
            this.f7085 = r3.f7085;
            this.f7055 = r3.f7055;
            this.f7074 = r3.f7074;
            this.f7063 = r3.f7063;
            this.f7077 = r3.f7077;
            int[] iArr = r3.f7041;
            if (iArr != null) {
                this.f7041 = Arrays.copyOf(iArr, iArr.length);
            } else {
                this.f7041 = null;
            }
            this.f7067 = r3.f7067;
            this.f7043 = r3.f7043;
            this.f7076 = r3.f7076;
            this.f7081 = r3.f7081;
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5383(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.Layout);
            this.f7061 = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = obtainStyledAttributes.getIndex(i);
                int i2 = f7031.get(index);
                if (i2 == 80) {
                    this.f7043 = obtainStyledAttributes.getBoolean(index, this.f7043);
                } else if (i2 != 81) {
                    switch (i2) {
                        case 1:
                            this.f7039 = C2059.m5363(obtainStyledAttributes, index, this.f7039);
                            continue;
                        case 2:
                            this.f7048 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7048);
                            continue;
                        case 3:
                            this.f7073 = C2059.m5363(obtainStyledAttributes, index, this.f7073);
                            continue;
                        case 4:
                            this.f7037 = C2059.m5363(obtainStyledAttributes, index, this.f7037);
                            continue;
                        case 5:
                            this.f7053 = obtainStyledAttributes.getString(index);
                            continue;
                        case 6:
                            this.f7068 = obtainStyledAttributes.getDimensionPixelOffset(index, this.f7068);
                            continue;
                        case 7:
                            this.f7078 = obtainStyledAttributes.getDimensionPixelOffset(index, this.f7078);
                            continue;
                        case 8:
                            int i3 = Build.VERSION.SDK_INT;
                            this.f7052 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7052);
                            continue;
                        case 9:
                            this.f7091 = C2059.m5363(obtainStyledAttributes, index, this.f7091);
                            continue;
                        case 10:
                            this.f7040 = C2059.m5363(obtainStyledAttributes, index, this.f7040);
                            continue;
                        case 11:
                            this.f7089 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7089);
                            continue;
                        case 12:
                            this.f7071 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7071);
                            continue;
                        case 13:
                            this.f7079 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7079);
                            continue;
                        case 14:
                            this.f7049 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7049);
                            continue;
                        case 15:
                            this.f7087 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7087);
                            continue;
                        case 16:
                            this.f7044 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7044);
                            continue;
                        case 17:
                            this.f7045 = obtainStyledAttributes.getDimensionPixelOffset(index, this.f7045);
                            continue;
                        case 18:
                            this.f7084 = obtainStyledAttributes.getDimensionPixelOffset(index, this.f7084);
                            continue;
                        case 19:
                            this.f7062 = obtainStyledAttributes.getFloat(index, this.f7062);
                            continue;
                        case 20:
                            this.f7038 = obtainStyledAttributes.getFloat(index, this.f7038);
                            continue;
                        case 21:
                            this.f7088 = obtainStyledAttributes.getLayoutDimension(index, this.f7088);
                            continue;
                        case 22:
                            this.f7032 = obtainStyledAttributes.getLayoutDimension(index, this.f7032);
                            continue;
                        case 23:
                            this.f7057 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7057);
                            continue;
                        case 24:
                            this.f7090 = C2059.m5363(obtainStyledAttributes, index, this.f7090);
                            continue;
                        case 25:
                            this.f7058 = C2059.m5363(obtainStyledAttributes, index, this.f7058);
                            continue;
                        case 26:
                            this.f7093 = obtainStyledAttributes.getInt(index, this.f7093);
                            continue;
                        case 27:
                            this.f7047 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7047);
                            continue;
                        case 28:
                            this.f7082 = C2059.m5363(obtainStyledAttributes, index, this.f7082);
                            continue;
                        case 29:
                            this.f7056 = C2059.m5363(obtainStyledAttributes, index, this.f7056);
                            continue;
                        case 30:
                            int i4 = Build.VERSION.SDK_INT;
                            this.f7034 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7034);
                            continue;
                        case 31:
                            this.f7054 = C2059.m5363(obtainStyledAttributes, index, this.f7054);
                            continue;
                        case 32:
                            this.f7075 = C2059.m5363(obtainStyledAttributes, index, this.f7075);
                            continue;
                        case 33:
                            this.f7065 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7065);
                            continue;
                        case 34:
                            this.f7092 = C2059.m5363(obtainStyledAttributes, index, this.f7092);
                            continue;
                        case 35:
                            this.f7070 = C2059.m5363(obtainStyledAttributes, index, this.f7070);
                            continue;
                        case 36:
                            this.f7086 = obtainStyledAttributes.getFloat(index, this.f7086);
                            continue;
                        case 37:
                            this.f7060 = obtainStyledAttributes.getFloat(index, this.f7060);
                            continue;
                        case 38:
                            this.f7035 = obtainStyledAttributes.getFloat(index, this.f7035);
                            continue;
                        case 39:
                            this.f7042 = obtainStyledAttributes.getInt(index, this.f7042);
                            continue;
                        case 40:
                            this.f7046 = obtainStyledAttributes.getInt(index, this.f7046);
                            continue;
                        default:
                            switch (i2) {
                                case 54:
                                    this.f7080 = obtainStyledAttributes.getInt(index, this.f7080);
                                    continue;
                                case 55:
                                    this.f7069 = obtainStyledAttributes.getInt(index, this.f7069);
                                    continue;
                                case 56:
                                    this.f7072 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7072);
                                    continue;
                                case 57:
                                    this.f7033 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7033);
                                    continue;
                                case 58:
                                    this.f7050 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7050);
                                    continue;
                                case 59:
                                    this.f7059 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7059);
                                    continue;
                                default:
                                    switch (i2) {
                                        case 61:
                                            this.f7083 = C2059.m5363(obtainStyledAttributes, index, this.f7083);
                                            continue;
                                        case 62:
                                            this.f7051 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7051);
                                            continue;
                                        case 63:
                                            this.f7066 = obtainStyledAttributes.getFloat(index, this.f7066);
                                            continue;
                                        default:
                                            switch (i2) {
                                                case 69:
                                                    this.f7036 = obtainStyledAttributes.getFloat(index, 1.0f);
                                                    continue;
                                                case 70:
                                                    this.f7085 = obtainStyledAttributes.getFloat(index, 1.0f);
                                                    continue;
                                                case 71:
                                                    Log.e("ConstraintSet", "CURRENTLY UNSUPPORTED");
                                                    continue;
                                                case 72:
                                                    this.f7055 = obtainStyledAttributes.getInt(index, this.f7055);
                                                    continue;
                                                case 73:
                                                    this.f7074 = obtainStyledAttributes.getDimensionPixelSize(index, this.f7074);
                                                    continue;
                                                case 74:
                                                    this.f7067 = obtainStyledAttributes.getString(index);
                                                    continue;
                                                case 75:
                                                    this.f7081 = obtainStyledAttributes.getBoolean(index, this.f7081);
                                                    continue;
                                                case 76:
                                                    StringBuilder r2 = C1293.m3416("unused attribute 0x");
                                                    r2.append(Integer.toHexString(index));
                                                    r2.append("   ");
                                                    r2.append(f7031.get(index));
                                                    Log.w("ConstraintSet", r2.toString());
                                                    continue;
                                                case 77:
                                                    this.f7077 = obtainStyledAttributes.getString(index);
                                                    continue;
                                                default:
                                                    StringBuilder r22 = C1293.m3416("Unknown attribute 0x");
                                                    r22.append(Integer.toHexString(index));
                                                    r22.append("   ");
                                                    r22.append(f7031.get(index));
                                                    Log.w("ConstraintSet", r22.toString());
                                                    continue;
                                                    continue;
                                                    continue;
                                                    continue;
                                            }
                                    }
                            }
                    }
                } else {
                    this.f7076 = obtainStyledAttributes.getBoolean(index, this.f7076);
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public final C2063 m5369(int i) {
        if (!this.f7006.containsKey(Integer.valueOf(i))) {
            this.f7006.put(Integer.valueOf(i), new C2063());
        }
        return this.f7006.get(Integer.valueOf(i));
    }

    /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARNING: Code restructure failed: missing block: B:92:0x0179, code lost:
        continue;
     */
    /* renamed from: K  reason: contains not printable characters */
    public void m5372(Context context, XmlPullParser xmlPullParser) {
        char c;
        try {
            int eventType = xmlPullParser.getEventType();
            C2063 k = null;
            while (eventType != 1) {
                if (eventType == 0) {
                    xmlPullParser.getName();
                } else if (eventType == 2) {
                    String name = xmlPullParser.getName();
                    switch (name.hashCode()) {
                        case -2025855158:
                            if (name.equals("Layout")) {
                                c = 5;
                                break;
                            }
                            c = 65535;
                            break;
                        case -1984451626:
                            if (name.equals("Motion")) {
                                c = 6;
                                break;
                            }
                            c = 65535;
                            break;
                        case -1269513683:
                            if (name.equals("PropertySet")) {
                                c = 3;
                                break;
                            }
                            c = 65535;
                            break;
                        case -1238332596:
                            if (name.equals("Transform")) {
                                c = 4;
                                break;
                            }
                            c = 65535;
                            break;
                        case -71750448:
                            if (name.equals("Guideline")) {
                                c = 1;
                                break;
                            }
                            c = 65535;
                            break;
                        case 1331510167:
                            if (name.equals("Barrier")) {
                                c = 2;
                                break;
                            }
                            c = 65535;
                            break;
                        case 1791837707:
                            if (name.equals("CustomAttribute")) {
                                c = 7;
                                break;
                            }
                            c = 65535;
                            break;
                        case 1803088381:
                            if (name.equals("Constraint")) {
                                c = 0;
                                break;
                            }
                            c = 65535;
                            break;
                        default:
                            c = 65535;
                            break;
                    }
                    switch (c) {
                        case 0:
                            k = m5370(context, Xml.asAttributeSet(xmlPullParser));
                            continue;
                        case 1:
                            k = m5370(context, Xml.asAttributeSet(xmlPullParser));
                            C2062 r0 = k.f7099;
                            r0.f7064 = true;
                            r0.f7061 = true;
                            continue;
                        case 2:
                            k = m5370(context, Xml.asAttributeSet(xmlPullParser));
                            k.f7099.f7063 = 1;
                            continue;
                        case 3:
                            if (k != null) {
                                k.f7096.m5388(context, Xml.asAttributeSet(xmlPullParser));
                                continue;
                            } else {
                                throw new RuntimeException("XML parser error must be within a Constraint " + xmlPullParser.getLineNumber());
                            }
                        case 4:
                            if (k != null) {
                                k.f7095.m5381(context, Xml.asAttributeSet(xmlPullParser));
                                continue;
                            } else {
                                throw new RuntimeException("XML parser error must be within a Constraint " + xmlPullParser.getLineNumber());
                            }
                        case 5:
                            if (k != null) {
                                k.f7099.m5383(context, Xml.asAttributeSet(xmlPullParser));
                                continue;
                            } else {
                                throw new RuntimeException("XML parser error must be within a Constraint " + xmlPullParser.getLineNumber());
                            }
                        case 6:
                            if (k != null) {
                                k.f7094.m5379(context, Xml.asAttributeSet(xmlPullParser));
                                continue;
                            } else {
                                throw new RuntimeException("XML parser error must be within a Constraint " + xmlPullParser.getLineNumber());
                            }
                        case 7:
                            if (k != null) {
                                ConstraintAttribute.m541(context, xmlPullParser, k.f7098);
                                continue;
                            } else {
                                throw new RuntimeException("XML parser error must be within a Constraint " + xmlPullParser.getLineNumber());
                            }
                    }
                } else if (eventType != 3) {
                    continue;
                } else {
                    String name2 = xmlPullParser.getName();
                    if (!"ConstraintSet".equals(name2)) {
                        if (name2.equalsIgnoreCase("Constraint")) {
                            this.f7006.put(Integer.valueOf(k.f7097), k);
                            k = null;
                        }
                    } else {
                        return;
                    }
                }
                eventType = xmlPullParser.next();
            }
        } catch (XmlPullParserException e) {
            e.printStackTrace();
        } catch (IOException e2) {
            e2.printStackTrace();
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static /* synthetic */ int m5363(TypedArray typedArray, int i, int i2) {
        int resourceId = typedArray.getResourceId(i, i2);
        return resourceId == -1 ? typedArray.getInt(i, -1) : resourceId;
    }

    /* renamed from: K  reason: contains not printable characters */
    public final C2063 m5370(Context context, AttributeSet attributeSet) {
        C2063 k = new C2063();
        TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.Constraint);
        int indexCount = obtainStyledAttributes.getIndexCount();
        for (int i = 0; i < indexCount; i++) {
            int index = obtainStyledAttributes.getIndex(i);
            if (!(index == R$styleable.Constraint_android_id || R$styleable.Constraint_android_layout_marginStart == index || R$styleable.Constraint_android_layout_marginEnd == index)) {
                k.f7094.f7014 = true;
                k.f7099.f7061 = true;
                k.f7096.f7103 = true;
                k.f7095.f7024 = true;
            }
            switch (f7004.get(index)) {
                case 1:
                    C2062 r4 = k.f7099;
                    int resourceId = obtainStyledAttributes.getResourceId(index, r4.f7039);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    r4.f7039 = resourceId;
                    break;
                case 2:
                    C2062 r42 = k.f7099;
                    r42.f7048 = obtainStyledAttributes.getDimensionPixelSize(index, r42.f7048);
                    break;
                case 3:
                    C2062 r43 = k.f7099;
                    int resourceId2 = obtainStyledAttributes.getResourceId(index, r43.f7073);
                    if (resourceId2 == -1) {
                        resourceId2 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r43.f7073 = resourceId2;
                    break;
                case 4:
                    C2062 r44 = k.f7099;
                    int resourceId3 = obtainStyledAttributes.getResourceId(index, r44.f7037);
                    if (resourceId3 == -1) {
                        resourceId3 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r44.f7037 = resourceId3;
                    break;
                case 5:
                    k.f7099.f7053 = obtainStyledAttributes.getString(index);
                    break;
                case 6:
                    C2062 r45 = k.f7099;
                    r45.f7068 = obtainStyledAttributes.getDimensionPixelOffset(index, r45.f7068);
                    break;
                case 7:
                    C2062 r46 = k.f7099;
                    r46.f7078 = obtainStyledAttributes.getDimensionPixelOffset(index, r46.f7078);
                    break;
                case 8:
                    int i2 = Build.VERSION.SDK_INT;
                    C2062 r47 = k.f7099;
                    r47.f7052 = obtainStyledAttributes.getDimensionPixelSize(index, r47.f7052);
                    break;
                case 9:
                    C2062 r48 = k.f7099;
                    int resourceId4 = obtainStyledAttributes.getResourceId(index, r48.f7091);
                    if (resourceId4 == -1) {
                        resourceId4 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r48.f7091 = resourceId4;
                    break;
                case 10:
                    C2062 r49 = k.f7099;
                    int resourceId5 = obtainStyledAttributes.getResourceId(index, r49.f7040);
                    if (resourceId5 == -1) {
                        resourceId5 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r49.f7040 = resourceId5;
                    break;
                case 11:
                    C2062 r410 = k.f7099;
                    r410.f7089 = obtainStyledAttributes.getDimensionPixelSize(index, r410.f7089);
                    break;
                case 12:
                    C2062 r411 = k.f7099;
                    r411.f7071 = obtainStyledAttributes.getDimensionPixelSize(index, r411.f7071);
                    break;
                case 13:
                    C2062 r412 = k.f7099;
                    r412.f7079 = obtainStyledAttributes.getDimensionPixelSize(index, r412.f7079);
                    break;
                case 14:
                    C2062 r413 = k.f7099;
                    r413.f7049 = obtainStyledAttributes.getDimensionPixelSize(index, r413.f7049);
                    break;
                case 15:
                    C2062 r414 = k.f7099;
                    r414.f7087 = obtainStyledAttributes.getDimensionPixelSize(index, r414.f7087);
                    break;
                case 16:
                    C2062 r415 = k.f7099;
                    r415.f7044 = obtainStyledAttributes.getDimensionPixelSize(index, r415.f7044);
                    break;
                case 17:
                    C2062 r416 = k.f7099;
                    r416.f7045 = obtainStyledAttributes.getDimensionPixelOffset(index, r416.f7045);
                    break;
                case 18:
                    C2062 r417 = k.f7099;
                    r417.f7084 = obtainStyledAttributes.getDimensionPixelOffset(index, r417.f7084);
                    break;
                case 19:
                    C2062 r418 = k.f7099;
                    r418.f7062 = obtainStyledAttributes.getFloat(index, r418.f7062);
                    break;
                case 20:
                    C2062 r419 = k.f7099;
                    r419.f7038 = obtainStyledAttributes.getFloat(index, r419.f7038);
                    break;
                case 21:
                    C2062 r420 = k.f7099;
                    r420.f7088 = obtainStyledAttributes.getLayoutDimension(index, r420.f7088);
                    break;
                case 22:
                    C2064 r421 = k.f7096;
                    r421.f7102 = obtainStyledAttributes.getInt(index, r421.f7102);
                    C2064 r3 = k.f7096;
                    r3.f7102 = f7005[r3.f7102];
                    break;
                case 23:
                    C2062 r422 = k.f7099;
                    r422.f7032 = obtainStyledAttributes.getLayoutDimension(index, r422.f7032);
                    break;
                case 24:
                    C2062 r423 = k.f7099;
                    r423.f7057 = obtainStyledAttributes.getDimensionPixelSize(index, r423.f7057);
                    break;
                case 25:
                    C2062 r424 = k.f7099;
                    int resourceId6 = obtainStyledAttributes.getResourceId(index, r424.f7090);
                    if (resourceId6 == -1) {
                        resourceId6 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r424.f7090 = resourceId6;
                    break;
                case 26:
                    C2062 r425 = k.f7099;
                    int resourceId7 = obtainStyledAttributes.getResourceId(index, r425.f7058);
                    if (resourceId7 == -1) {
                        resourceId7 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r425.f7058 = resourceId7;
                    break;
                case 27:
                    C2062 r426 = k.f7099;
                    r426.f7093 = obtainStyledAttributes.getInt(index, r426.f7093);
                    break;
                case 28:
                    C2062 r427 = k.f7099;
                    r427.f7047 = obtainStyledAttributes.getDimensionPixelSize(index, r427.f7047);
                    break;
                case 29:
                    C2062 r428 = k.f7099;
                    int resourceId8 = obtainStyledAttributes.getResourceId(index, r428.f7082);
                    if (resourceId8 == -1) {
                        resourceId8 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r428.f7082 = resourceId8;
                    break;
                case 30:
                    C2062 r429 = k.f7099;
                    int resourceId9 = obtainStyledAttributes.getResourceId(index, r429.f7056);
                    if (resourceId9 == -1) {
                        resourceId9 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r429.f7056 = resourceId9;
                    break;
                case 31:
                    int i3 = Build.VERSION.SDK_INT;
                    C2062 r430 = k.f7099;
                    r430.f7034 = obtainStyledAttributes.getDimensionPixelSize(index, r430.f7034);
                    break;
                case 32:
                    C2062 r431 = k.f7099;
                    int resourceId10 = obtainStyledAttributes.getResourceId(index, r431.f7054);
                    if (resourceId10 == -1) {
                        resourceId10 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r431.f7054 = resourceId10;
                    break;
                case 33:
                    C2062 r432 = k.f7099;
                    int resourceId11 = obtainStyledAttributes.getResourceId(index, r432.f7075);
                    if (resourceId11 == -1) {
                        resourceId11 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r432.f7075 = resourceId11;
                    break;
                case 34:
                    C2062 r433 = k.f7099;
                    r433.f7065 = obtainStyledAttributes.getDimensionPixelSize(index, r433.f7065);
                    break;
                case 35:
                    C2062 r434 = k.f7099;
                    int resourceId12 = obtainStyledAttributes.getResourceId(index, r434.f7092);
                    if (resourceId12 == -1) {
                        resourceId12 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r434.f7092 = resourceId12;
                    break;
                case 36:
                    C2062 r435 = k.f7099;
                    int resourceId13 = obtainStyledAttributes.getResourceId(index, r435.f7070);
                    if (resourceId13 == -1) {
                        resourceId13 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r435.f7070 = resourceId13;
                    break;
                case 37:
                    C2062 r436 = k.f7099;
                    r436.f7086 = obtainStyledAttributes.getFloat(index, r436.f7086);
                    break;
                case 38:
                    k.f7097 = obtainStyledAttributes.getResourceId(index, k.f7097);
                    break;
                case 39:
                    C2062 r437 = k.f7099;
                    r437.f7060 = obtainStyledAttributes.getFloat(index, r437.f7060);
                    break;
                case 40:
                    C2062 r438 = k.f7099;
                    r438.f7035 = obtainStyledAttributes.getFloat(index, r438.f7035);
                    break;
                case 41:
                    C2062 r439 = k.f7099;
                    r439.f7042 = obtainStyledAttributes.getInt(index, r439.f7042);
                    break;
                case 42:
                    C2062 r440 = k.f7099;
                    r440.f7046 = obtainStyledAttributes.getInt(index, r440.f7046);
                    break;
                case 43:
                    C2064 r441 = k.f7096;
                    r441.f7104 = obtainStyledAttributes.getFloat(index, r441.f7104);
                    break;
                case 44:
                    int i4 = Build.VERSION.SDK_INT;
                    C2061 r442 = k.f7095;
                    r442.f7025 = true;
                    r442.f7030 = obtainStyledAttributes.getDimension(index, r442.f7030);
                    break;
                case 45:
                    C2061 r443 = k.f7095;
                    r443.f7018 = obtainStyledAttributes.getFloat(index, r443.f7018);
                    break;
                case 46:
                    C2061 r444 = k.f7095;
                    r444.f7028 = obtainStyledAttributes.getFloat(index, r444.f7028);
                    break;
                case 47:
                    C2061 r445 = k.f7095;
                    r445.f7019 = obtainStyledAttributes.getFloat(index, r445.f7019);
                    break;
                case 48:
                    C2061 r446 = k.f7095;
                    r446.f7027 = obtainStyledAttributes.getFloat(index, r446.f7027);
                    break;
                case 49:
                    C2061 r447 = k.f7095;
                    r447.f7023 = obtainStyledAttributes.getDimension(index, r447.f7023);
                    break;
                case 50:
                    C2061 r448 = k.f7095;
                    r448.f7029 = obtainStyledAttributes.getDimension(index, r448.f7029);
                    break;
                case 51:
                    C2061 r449 = k.f7095;
                    r449.f7021 = obtainStyledAttributes.getDimension(index, r449.f7021);
                    break;
                case 52:
                    C2061 r450 = k.f7095;
                    r450.f7026 = obtainStyledAttributes.getDimension(index, r450.f7026);
                    break;
                case 53:
                    int i5 = Build.VERSION.SDK_INT;
                    C2061 r451 = k.f7095;
                    r451.f7020 = obtainStyledAttributes.getDimension(index, r451.f7020);
                    break;
                case 54:
                    C2062 r452 = k.f7099;
                    r452.f7080 = obtainStyledAttributes.getInt(index, r452.f7080);
                    break;
                case 55:
                    C2062 r453 = k.f7099;
                    r453.f7069 = obtainStyledAttributes.getInt(index, r453.f7069);
                    break;
                case 56:
                    C2062 r454 = k.f7099;
                    r454.f7072 = obtainStyledAttributes.getDimensionPixelSize(index, r454.f7072);
                    break;
                case 57:
                    C2062 r455 = k.f7099;
                    r455.f7033 = obtainStyledAttributes.getDimensionPixelSize(index, r455.f7033);
                    break;
                case 58:
                    C2062 r456 = k.f7099;
                    r456.f7050 = obtainStyledAttributes.getDimensionPixelSize(index, r456.f7050);
                    break;
                case 59:
                    C2062 r457 = k.f7099;
                    r457.f7059 = obtainStyledAttributes.getDimensionPixelSize(index, r457.f7059);
                    break;
                case 60:
                    C2061 r458 = k.f7095;
                    r458.f7022 = obtainStyledAttributes.getFloat(index, r458.f7022);
                    break;
                case 61:
                    C2062 r459 = k.f7099;
                    int resourceId14 = obtainStyledAttributes.getResourceId(index, r459.f7083);
                    if (resourceId14 == -1) {
                        resourceId14 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r459.f7083 = resourceId14;
                    break;
                case 62:
                    C2062 r460 = k.f7099;
                    r460.f7051 = obtainStyledAttributes.getDimensionPixelSize(index, r460.f7051);
                    break;
                case 63:
                    C2062 r461 = k.f7099;
                    r461.f7066 = obtainStyledAttributes.getFloat(index, r461.f7066);
                    break;
                case 64:
                    C2060 r462 = k.f7094;
                    int resourceId15 = obtainStyledAttributes.getResourceId(index, r462.f7012);
                    if (resourceId15 == -1) {
                        resourceId15 = obtainStyledAttributes.getInt(index, -1);
                    }
                    r462.f7012 = resourceId15;
                    break;
                case 65:
                    if (obtainStyledAttributes.peekValue(index).type == 3) {
                        k.f7094.f7010 = obtainStyledAttributes.getString(index);
                        break;
                    } else {
                        k.f7094.f7010 = C2184.f7594[obtainStyledAttributes.getInteger(index, 0)];
                        break;
                    }
                case 66:
                    k.f7094.f7011 = obtainStyledAttributes.getInt(index, 0);
                    break;
                case 67:
                    C2060 r463 = k.f7094;
                    r463.f7013 = obtainStyledAttributes.getFloat(index, r463.f7013);
                    break;
                case 68:
                    C2064 r464 = k.f7096;
                    r464.f7101 = obtainStyledAttributes.getFloat(index, r464.f7101);
                    break;
                case 69:
                    k.f7099.f7036 = obtainStyledAttributes.getFloat(index, 1.0f);
                    break;
                case 70:
                    k.f7099.f7085 = obtainStyledAttributes.getFloat(index, 1.0f);
                    break;
                case 71:
                    Log.e("ConstraintSet", "CURRENTLY UNSUPPORTED");
                    break;
                case 72:
                    C2062 r465 = k.f7099;
                    r465.f7055 = obtainStyledAttributes.getInt(index, r465.f7055);
                    break;
                case 73:
                    C2062 r466 = k.f7099;
                    r466.f7074 = obtainStyledAttributes.getDimensionPixelSize(index, r466.f7074);
                    break;
                case 74:
                    k.f7099.f7067 = obtainStyledAttributes.getString(index);
                    break;
                case 75:
                    C2062 r467 = k.f7099;
                    r467.f7081 = obtainStyledAttributes.getBoolean(index, r467.f7081);
                    break;
                case 76:
                    C2060 r468 = k.f7094;
                    r468.f7016 = obtainStyledAttributes.getInt(index, r468.f7016);
                    break;
                case 77:
                    k.f7099.f7077 = obtainStyledAttributes.getString(index);
                    break;
                case 78:
                    C2064 r469 = k.f7096;
                    r469.f7100 = obtainStyledAttributes.getInt(index, r469.f7100);
                    break;
                case 79:
                    C2060 r470 = k.f7094;
                    r470.f7015 = obtainStyledAttributes.getFloat(index, r470.f7015);
                    break;
                case 80:
                    C2062 r471 = k.f7099;
                    r471.f7043 = obtainStyledAttributes.getBoolean(index, r471.f7043);
                    break;
                case 81:
                    C2062 r472 = k.f7099;
                    r472.f7076 = obtainStyledAttributes.getBoolean(index, r472.f7076);
                    break;
                case 82:
                    StringBuilder r473 = C1293.m3416("unused attribute 0x");
                    r473.append(Integer.toHexString(index));
                    r473.append("   ");
                    r473.append(f7004.get(index));
                    Log.w("ConstraintSet", r473.toString());
                    break;
                default:
                    StringBuilder r474 = C1293.m3416("Unknown attribute 0x");
                    r474.append(Integer.toHexString(index));
                    r474.append("   ");
                    r474.append(f7004.get(index));
                    Log.w("ConstraintSet", r474.toString());
                    break;
            }
        }
        obtainStyledAttributes.recycle();
        return k;
    }

    /* renamed from: K  reason: contains not printable characters */
    public final int[] m5377(View view, String str) {
        int i;
        Object designInformation;
        String[] split = str.split(",");
        Context context = view.getContext();
        int[] iArr = new int[split.length];
        int i2 = 0;
        int i3 = 0;
        while (i2 < split.length) {
            String trim = split[i2].trim();
            try {
                i = R$id.class.getField(trim).getInt(null);
            } catch (Exception unused) {
                i = 0;
            }
            if (i == 0) {
                i = context.getResources().getIdentifier(trim, "id", context.getPackageName());
            }
            if (i == 0 && view.isInEditMode() && (view.getParent() instanceof ConstraintLayout) && (designInformation = ((ConstraintLayout) view.getParent()).getDesignInformation(0, trim)) != null && (designInformation instanceof Integer)) {
                i = ((Integer) designInformation).intValue();
            }
            iArr[i3] = i;
            i2++;
            i3++;
        }
        return i3 != split.length ? Arrays.copyOf(iArr, i3) : iArr;
    }
}
