package defpackage;

import android.content.Context;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.drawable.ColorDrawable;
import android.util.AttributeSet;
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.ConstraintLayout;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.HashMap;
import org.xmlpull.v1.XmlPullParserException;

/* JADX INFO: renamed from: ᵥˑᵛʡ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3501 {

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public static final SparseIntArray f13451;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public static final int[] f13452 = {0, 4, 8};

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public static final SparseIntArray f13453;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final HashMap f13456 = new HashMap();

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final boolean f13454 = true;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final HashMap f13455 = new HashMap();

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        f13451 = sparseIntArray;
        SparseIntArray sparseIntArray2 = new SparseIntArray();
        f13453 = sparseIntArray2;
        sparseIntArray.append(82, 25);
        sparseIntArray.append(83, 26);
        sparseIntArray.append(85, 29);
        sparseIntArray.append(86, 30);
        sparseIntArray.append(92, 36);
        sparseIntArray.append(91, 35);
        sparseIntArray.append(63, 4);
        sparseIntArray.append(62, 3);
        sparseIntArray.append(58, 1);
        sparseIntArray.append(60, 91);
        sparseIntArray.append(59, 92);
        sparseIntArray.append(101, 6);
        sparseIntArray.append(102, 7);
        sparseIntArray.append(70, 17);
        sparseIntArray.append(71, 18);
        sparseIntArray.append(72, 19);
        sparseIntArray.append(54, 99);
        sparseIntArray.append(0, 27);
        sparseIntArray.append(87, 32);
        sparseIntArray.append(88, 33);
        sparseIntArray.append(69, 10);
        sparseIntArray.append(68, 9);
        sparseIntArray.append(106, 13);
        sparseIntArray.append(109, 16);
        sparseIntArray.append(107, 14);
        sparseIntArray.append(104, 11);
        sparseIntArray.append(108, 15);
        sparseIntArray.append(105, 12);
        sparseIntArray.append(95, 40);
        sparseIntArray.append(80, 39);
        sparseIntArray.append(79, 41);
        sparseIntArray.append(94, 42);
        sparseIntArray.append(78, 20);
        sparseIntArray.append(93, 37);
        sparseIntArray.append(67, 5);
        sparseIntArray.append(81, 87);
        sparseIntArray.append(90, 87);
        sparseIntArray.append(84, 87);
        sparseIntArray.append(61, 87);
        sparseIntArray.append(57, 87);
        sparseIntArray.append(5, 24);
        sparseIntArray.append(7, 28);
        sparseIntArray.append(23, 31);
        sparseIntArray.append(24, 8);
        sparseIntArray.append(6, 34);
        sparseIntArray.append(8, 2);
        sparseIntArray.append(3, 23);
        sparseIntArray.append(4, 21);
        sparseIntArray.append(96, 95);
        sparseIntArray.append(73, 96);
        sparseIntArray.append(2, 22);
        sparseIntArray.append(13, 43);
        sparseIntArray.append(26, 44);
        sparseIntArray.append(21, 45);
        sparseIntArray.append(22, 46);
        sparseIntArray.append(20, 60);
        sparseIntArray.append(18, 47);
        sparseIntArray.append(19, 48);
        sparseIntArray.append(14, 49);
        sparseIntArray.append(15, 50);
        sparseIntArray.append(16, 51);
        sparseIntArray.append(17, 52);
        sparseIntArray.append(25, 53);
        sparseIntArray.append(97, 54);
        sparseIntArray.append(74, 55);
        sparseIntArray.append(98, 56);
        sparseIntArray.append(75, 57);
        sparseIntArray.append(99, 58);
        sparseIntArray.append(76, 59);
        sparseIntArray.append(64, 61);
        sparseIntArray.append(66, 62);
        sparseIntArray.append(65, 63);
        sparseIntArray.append(28, 64);
        sparseIntArray.append(121, 65);
        sparseIntArray.append(35, 66);
        sparseIntArray.append(122, 67);
        sparseIntArray.append(113, 79);
        sparseIntArray.append(1, 38);
        sparseIntArray.append(112, 68);
        sparseIntArray.append(100, 69);
        sparseIntArray.append(77, 70);
        sparseIntArray.append(111, 97);
        sparseIntArray.append(32, 71);
        sparseIntArray.append(30, 72);
        sparseIntArray.append(31, 73);
        sparseIntArray.append(33, 74);
        sparseIntArray.append(29, 75);
        sparseIntArray.append(114, 76);
        sparseIntArray.append(89, 77);
        sparseIntArray.append(123, 78);
        sparseIntArray.append(56, 80);
        sparseIntArray.append(55, 81);
        sparseIntArray.append(116, 82);
        sparseIntArray.append(120, 83);
        sparseIntArray.append(119, 84);
        sparseIntArray.append(118, 85);
        sparseIntArray.append(117, 86);
        sparseIntArray2.append(85, 6);
        sparseIntArray2.append(85, 7);
        sparseIntArray2.append(0, 27);
        sparseIntArray2.append(89, 13);
        sparseIntArray2.append(92, 16);
        sparseIntArray2.append(90, 14);
        sparseIntArray2.append(87, 11);
        sparseIntArray2.append(91, 15);
        sparseIntArray2.append(88, 12);
        sparseIntArray2.append(78, 40);
        sparseIntArray2.append(71, 39);
        sparseIntArray2.append(70, 41);
        sparseIntArray2.append(77, 42);
        sparseIntArray2.append(69, 20);
        sparseIntArray2.append(76, 37);
        sparseIntArray2.append(60, 5);
        sparseIntArray2.append(72, 87);
        sparseIntArray2.append(75, 87);
        sparseIntArray2.append(73, 87);
        sparseIntArray2.append(57, 87);
        sparseIntArray2.append(56, 87);
        sparseIntArray2.append(5, 24);
        sparseIntArray2.append(7, 28);
        sparseIntArray2.append(23, 31);
        sparseIntArray2.append(24, 8);
        sparseIntArray2.append(6, 34);
        sparseIntArray2.append(8, 2);
        sparseIntArray2.append(3, 23);
        sparseIntArray2.append(4, 21);
        sparseIntArray2.append(79, 95);
        sparseIntArray2.append(64, 96);
        sparseIntArray2.append(2, 22);
        sparseIntArray2.append(13, 43);
        sparseIntArray2.append(26, 44);
        sparseIntArray2.append(21, 45);
        sparseIntArray2.append(22, 46);
        sparseIntArray2.append(20, 60);
        sparseIntArray2.append(18, 47);
        sparseIntArray2.append(19, 48);
        sparseIntArray2.append(14, 49);
        sparseIntArray2.append(15, 50);
        sparseIntArray2.append(16, 51);
        sparseIntArray2.append(17, 52);
        sparseIntArray2.append(25, 53);
        sparseIntArray2.append(80, 54);
        sparseIntArray2.append(65, 55);
        sparseIntArray2.append(81, 56);
        sparseIntArray2.append(66, 57);
        sparseIntArray2.append(82, 58);
        sparseIntArray2.append(67, 59);
        sparseIntArray2.append(59, 62);
        sparseIntArray2.append(58, 63);
        sparseIntArray2.append(28, 64);
        sparseIntArray2.append(105, 65);
        sparseIntArray2.append(34, 66);
        sparseIntArray2.append(106, 67);
        sparseIntArray2.append(96, 79);
        sparseIntArray2.append(1, 38);
        sparseIntArray2.append(97, 98);
        sparseIntArray2.append(95, 68);
        sparseIntArray2.append(83, 69);
        sparseIntArray2.append(68, 70);
        sparseIntArray2.append(32, 71);
        sparseIntArray2.append(30, 72);
        sparseIntArray2.append(31, 73);
        sparseIntArray2.append(33, 74);
        sparseIntArray2.append(29, 75);
        sparseIntArray2.append(98, 76);
        sparseIntArray2.append(74, 77);
        sparseIntArray2.append(107, 78);
        sparseIntArray2.append(55, 80);
        sparseIntArray2.append(54, 81);
        sparseIntArray2.append(100, 82);
        sparseIntArray2.append(104, 83);
        sparseIntArray2.append(103, 84);
        sparseIntArray2.append(102, 85);
        sparseIntArray2.append(101, 86);
        sparseIntArray2.append(94, 97);
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static int[] m7995(Barrier barrier, String str) {
        int iIntValue;
        String[] strArrSplit = str.split(",");
        Context context = barrier.getContext();
        int[] iArr = new int[strArrSplit.length];
        int i = 0;
        int i2 = 0;
        while (i < strArrSplit.length) {
            String strTrim = strArrSplit[i].trim();
            Object obj = null;
            try {
                iIntValue = AbstractC0218.class.getField(strTrim).getInt(null);
            } catch (Exception unused) {
                iIntValue = 0;
            }
            if (iIntValue == 0) {
                iIntValue = context.getResources().getIdentifier(strTrim, "id", context.getPackageName());
            }
            if (iIntValue == 0 && barrier.isInEditMode() && (barrier.getParent() instanceof ConstraintLayout)) {
                ConstraintLayout constraintLayout = (ConstraintLayout) barrier.getParent();
                if (AbstractC0793.m2860(strTrim)) {
                    HashMap map = constraintLayout.f269;
                    if (map != null && map.containsKey(strTrim)) {
                        obj = constraintLayout.f269.get(strTrim);
                    }
                } else {
                    constraintLayout.getClass();
                }
                if (obj != null && (obj instanceof Integer)) {
                    iIntValue = ((Integer) obj).intValue();
                }
            }
            iArr[i2] = iIntValue;
            i++;
            i2++;
        }
        return i2 != strArrSplit.length ? Arrays.copyOf(iArr, i2) : iArr;
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public static C4399 m7996(Context context, AttributeSet attributeSet, boolean z) {
        C4399 c4399 = new C4399();
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, z ? AbstractC4329.f16478 : AbstractC4329.f16481);
        String[] strArr = AbstractC0702.f3207;
        C3701 c3701 = c4399.f16698;
        C1366 c1366 = c4399.f16700;
        C0823 c0823 = c4399.f16699;
        C0953 c0953 = c4399.f16702;
        int[] iArr = f13452;
        SparseIntArray sparseIntArray = f13451;
        int i = 3;
        if (z) {
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            C2767 c2767 = new C2767();
            c2767.f10633 = new int[10];
            c2767.f10627 = new int[10];
            c2767.f10629 = 0;
            c2767.f10636 = new int[10];
            c2767.f10630 = new float[10];
            c2767.f10638 = 0;
            c2767.f10634 = new int[5];
            c2767.f10628 = new String[5];
            c2767.f10637 = 0;
            c2767.f10632 = new int[4];
            c2767.f10635 = new boolean[4];
            c2767.f10631 = 0;
            c0823.getClass();
            c0953.getClass();
            c1366.getClass();
            int i2 = 0;
            while (i2 < indexCount) {
                int index = typedArrayObtainStyledAttributes.getIndex(i2);
                switch (f13453.get(index)) {
                    case 2:
                        c2767.m6674(2, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4153));
                        continue;
                        i2++;
                        i = 3;
                        break;
                    case 3:
                    case 4:
                    case 9:
                    case 10:
                    case 25:
                    case 26:
                    case 29:
                    case 30:
                    case 32:
                    case 33:
                    case 35:
                    case 36:
                    case 61:
                    case 88:
                    case 89:
                    case 90:
                    case 91:
                    case 92:
                    default:
                        Integer.toHexString(index);
                        sparseIntArray.get(index);
                        break;
                    case 5:
                        c2767.m6675(5, typedArrayObtainStyledAttributes.getString(index));
                        continue;
                        i2++;
                        i = 3;
                        break;
                    case C5224.STRING_SET_FIELD_NUMBER /* 6 */:
                        c2767.m6674(6, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c0953.f4171));
                        break;
                    case C5224.DOUBLE_FIELD_NUMBER /* 7 */:
                        c2767.m6674(7, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c0953.f4209));
                        break;
                    case C5224.BYTES_FIELD_NUMBER /* 8 */:
                        c2767.m6674(8, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4151));
                        break;
                    case 11:
                        c2767.m6674(11, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4147));
                        break;
                    case 12:
                        c2767.m6674(12, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4157));
                        break;
                    case 13:
                        c2767.m6674(13, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4183));
                        break;
                    case 14:
                        c2767.m6674(14, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4177));
                        break;
                    case 15:
                        c2767.m6674(15, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4192));
                        break;
                    case 16:
                        c2767.m6674(16, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4203));
                        break;
                    case 17:
                        c2767.m6674(17, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c0953.f4208));
                        break;
                    case 18:
                        c2767.m6674(18, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c0953.f4193));
                        break;
                    case 19:
                        c2767.m6676(19, typedArrayObtainStyledAttributes.getFloat(index, c0953.f4212));
                        break;
                    case 20:
                        c2767.m6676(20, typedArrayObtainStyledAttributes.getFloat(index, c0953.f4185));
                        break;
                    case 21:
                        c2767.m6674(21, typedArrayObtainStyledAttributes.getLayoutDimension(index, c0953.f4175));
                        break;
                    case 22:
                        c2767.m6674(22, iArr[typedArrayObtainStyledAttributes.getInt(index, c3701.f14113)]);
                        break;
                    case 23:
                        c2767.m6674(23, typedArrayObtainStyledAttributes.getLayoutDimension(index, c0953.f4146));
                        break;
                    case 24:
                        c2767.m6674(24, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4148));
                        break;
                    case 27:
                        c2767.m6674(27, typedArrayObtainStyledAttributes.getInt(index, c0953.f4178));
                        break;
                    case 28:
                        c2767.m6674(28, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4189));
                        break;
                    case 31:
                        c2767.m6674(31, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4166));
                        break;
                    case 34:
                        c2767.m6674(34, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4160));
                        break;
                    case 37:
                        c2767.m6676(37, typedArrayObtainStyledAttributes.getFloat(index, c0953.f4179));
                        break;
                    case 38:
                        int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, c4399.f16701);
                        c4399.f16701 = resourceId;
                        c2767.m6674(38, resourceId);
                        break;
                    case 39:
                        c2767.m6676(39, typedArrayObtainStyledAttributes.getFloat(index, c0953.f4152));
                        break;
                    case 40:
                        c2767.m6676(40, typedArrayObtainStyledAttributes.getFloat(index, c0953.f4161));
                        break;
                    case 41:
                        c2767.m6674(41, typedArrayObtainStyledAttributes.getInt(index, c0953.f4150));
                        break;
                    case 42:
                        c2767.m6674(42, typedArrayObtainStyledAttributes.getInt(index, c0953.f4174));
                        break;
                    case 43:
                        c2767.m6676(43, typedArrayObtainStyledAttributes.getFloat(index, c3701.f14112));
                        break;
                    case 44:
                        c2767.m6677(44, true);
                        c2767.m6676(44, typedArrayObtainStyledAttributes.getDimension(index, c1366.f5648));
                        break;
                    case 45:
                        c2767.m6676(45, typedArrayObtainStyledAttributes.getFloat(index, c1366.f5645));
                        break;
                    case 46:
                        c2767.m6676(46, typedArrayObtainStyledAttributes.getFloat(index, c1366.f5647));
                        break;
                    case 47:
                        c2767.m6676(47, typedArrayObtainStyledAttributes.getFloat(index, c1366.f5655));
                        break;
                    case 48:
                        c2767.m6676(48, typedArrayObtainStyledAttributes.getFloat(index, c1366.f5649));
                        break;
                    case 49:
                        c2767.m6676(49, typedArrayObtainStyledAttributes.getDimension(index, c1366.f5657));
                        break;
                    case 50:
                        c2767.m6676(50, typedArrayObtainStyledAttributes.getDimension(index, c1366.f5653));
                        break;
                    case 51:
                        c2767.m6676(51, typedArrayObtainStyledAttributes.getDimension(index, c1366.f5656));
                        break;
                    case 52:
                        c2767.m6676(52, typedArrayObtainStyledAttributes.getDimension(index, c1366.f5651));
                        break;
                    case 53:
                        c2767.m6676(53, typedArrayObtainStyledAttributes.getDimension(index, c1366.f5654));
                        break;
                    case 54:
                        c2767.m6674(54, typedArrayObtainStyledAttributes.getInt(index, c0953.f4182));
                        break;
                    case 55:
                        c2767.m6674(55, typedArrayObtainStyledAttributes.getInt(index, c0953.f4149));
                        break;
                    case 56:
                        c2767.m6674(56, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4190));
                        break;
                    case 57:
                        c2767.m6674(57, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4191));
                        break;
                    case 58:
                        c2767.m6674(58, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4167));
                        break;
                    case 59:
                        c2767.m6674(59, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4158));
                        break;
                    case 60:
                        c2767.m6676(60, typedArrayObtainStyledAttributes.getFloat(index, c1366.f5652));
                        break;
                    case 62:
                        c2767.m6674(62, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4206));
                        break;
                    case 63:
                        c2767.m6676(63, typedArrayObtainStyledAttributes.getFloat(index, c0953.f4156));
                        break;
                    case 64:
                        c2767.m6674(64, m7997(typedArrayObtainStyledAttributes, index, c0823.f3688));
                        break;
                    case 65:
                        if (typedArrayObtainStyledAttributes.peekValue(index).type == 3) {
                            c2767.m6675(65, typedArrayObtainStyledAttributes.getString(index));
                        } else {
                            c2767.m6675(65, strArr[typedArrayObtainStyledAttributes.getInteger(index, 0)]);
                        }
                        break;
                    case 66:
                        c2767.m6674(66, typedArrayObtainStyledAttributes.getInt(index, 0));
                        break;
                    case 67:
                        c2767.m6676(67, typedArrayObtainStyledAttributes.getFloat(index, c0823.f3687));
                        break;
                    case 68:
                        c2767.m6676(68, typedArrayObtainStyledAttributes.getFloat(index, c3701.f14114));
                        break;
                    case 69:
                        c2767.m6676(69, typedArrayObtainStyledAttributes.getFloat(index, 1.0f));
                        break;
                    case 70:
                        c2767.m6676(70, typedArrayObtainStyledAttributes.getFloat(index, 1.0f));
                        break;
                    case 71:
                        break;
                    case 72:
                        c2767.m6674(72, typedArrayObtainStyledAttributes.getInt(index, c0953.f4184));
                        break;
                    case 73:
                        c2767.m6674(73, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4176));
                        break;
                    case 74:
                        c2767.m6675(74, typedArrayObtainStyledAttributes.getString(index));
                        break;
                    case 75:
                        c2767.m6677(75, typedArrayObtainStyledAttributes.getBoolean(index, c0953.f4155));
                        break;
                    case 76:
                        c2767.m6674(76, typedArrayObtainStyledAttributes.getInt(index, c0823.f3686));
                        break;
                    case 77:
                        c2767.m6675(77, typedArrayObtainStyledAttributes.getString(index));
                        break;
                    case 78:
                        c2767.m6674(78, typedArrayObtainStyledAttributes.getInt(index, c3701.f14111));
                        break;
                    case 79:
                        c2767.m6676(79, typedArrayObtainStyledAttributes.getFloat(index, c0823.f3690));
                        break;
                    case 80:
                        c2767.m6677(80, typedArrayObtainStyledAttributes.getBoolean(index, c0953.f4172));
                        break;
                    case 81:
                        c2767.m6677(81, typedArrayObtainStyledAttributes.getBoolean(index, c0953.f4181));
                        break;
                    case 82:
                        c2767.m6674(82, typedArrayObtainStyledAttributes.getInteger(index, c0823.f3684));
                        break;
                    case 83:
                        c2767.m6674(83, m7997(typedArrayObtainStyledAttributes, index, c1366.f5646));
                        break;
                    case 84:
                        c2767.m6674(84, typedArrayObtainStyledAttributes.getInteger(index, c0823.f3689));
                        break;
                    case 85:
                        c2767.m6676(85, typedArrayObtainStyledAttributes.getFloat(index, c0823.f3692));
                        break;
                    case 86:
                        int i3 = typedArrayObtainStyledAttributes.peekValue(index).type;
                        if (i3 == 1) {
                            int resourceId2 = typedArrayObtainStyledAttributes.getResourceId(index, -1);
                            c0823.f3691 = resourceId2;
                            c2767.m6674(89, resourceId2);
                            if (c0823.f3691 != -1) {
                                c2767.m6674(88, -2);
                            }
                        } else if (i3 == 3) {
                            String string = typedArrayObtainStyledAttributes.getString(index);
                            c0823.f3685 = string;
                            c2767.m6675(90, string);
                            if (c0823.f3685.indexOf("/") > 0) {
                                int resourceId3 = typedArrayObtainStyledAttributes.getResourceId(index, -1);
                                c0823.f3691 = resourceId3;
                                c2767.m6674(89, resourceId3);
                                c2767.m6674(88, -2);
                            } else {
                                c2767.m6674(88, -1);
                            }
                        } else {
                            c2767.m6674(88, typedArrayObtainStyledAttributes.getInteger(index, c0823.f3691));
                        }
                        break;
                    case 87:
                        Integer.toHexString(index);
                        sparseIntArray.get(index);
                        break;
                    case 93:
                        c2767.m6674(93, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4163));
                        break;
                    case 94:
                        c2767.m6674(94, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0953.f4187));
                        break;
                    case 95:
                        m7999(c2767, typedArrayObtainStyledAttributes, index, 0);
                        break;
                    case 96:
                        m7999(c2767, typedArrayObtainStyledAttributes, index, 1);
                        break;
                    case 97:
                        c2767.m6674(97, typedArrayObtainStyledAttributes.getInt(index, c0953.f4210));
                        break;
                    case 98:
                        int i4 = AbstractC4566.f17358;
                        if (typedArrayObtainStyledAttributes.peekValue(index).type == i) {
                            typedArrayObtainStyledAttributes.getString(index);
                        } else {
                            c4399.f16701 = typedArrayObtainStyledAttributes.getResourceId(index, c4399.f16701);
                        }
                        break;
                    case 99:
                        c2767.m6677(99, typedArrayObtainStyledAttributes.getBoolean(index, c0953.f4205));
                        break;
                }
                i2++;
                i = 3;
            }
        } else {
            int indexCount2 = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i5 = 0; i5 < indexCount2; i5++) {
                int index2 = typedArrayObtainStyledAttributes.getIndex(i5);
                if (index2 != 1 && 23 != index2 && 24 != index2) {
                    c0823.getClass();
                    c0953.getClass();
                    c1366.getClass();
                }
                switch (sparseIntArray.get(index2)) {
                    case 1:
                        c0953.f4188 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4188);
                        break;
                    case 2:
                        c0953.f4153 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4153);
                        break;
                    case 3:
                        c0953.f4195 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4195);
                        break;
                    case 4:
                        c0953.f4168 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4168);
                        break;
                    case 5:
                        c0953.f4194 = typedArrayObtainStyledAttributes.getString(index2);
                        break;
                    case C5224.STRING_SET_FIELD_NUMBER /* 6 */:
                        c0953.f4171 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c0953.f4171);
                        break;
                    case C5224.DOUBLE_FIELD_NUMBER /* 7 */:
                        c0953.f4209 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c0953.f4209);
                        break;
                    case C5224.BYTES_FIELD_NUMBER /* 8 */:
                        c0953.f4151 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4151);
                        break;
                    case 9:
                        c0953.f4170 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4170);
                        break;
                    case 10:
                        c0953.f4164 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4164);
                        break;
                    case 11:
                        c0953.f4147 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4147);
                        break;
                    case 12:
                        c0953.f4157 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4157);
                        break;
                    case 13:
                        c0953.f4183 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4183);
                        break;
                    case 14:
                        c0953.f4177 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4177);
                        break;
                    case 15:
                        c0953.f4192 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4192);
                        break;
                    case 16:
                        c0953.f4203 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4203);
                        break;
                    case 17:
                        c0953.f4208 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c0953.f4208);
                        break;
                    case 18:
                        c0953.f4193 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c0953.f4193);
                        break;
                    case 19:
                        c0953.f4212 = typedArrayObtainStyledAttributes.getFloat(index2, c0953.f4212);
                        break;
                    case 20:
                        c0953.f4185 = typedArrayObtainStyledAttributes.getFloat(index2, c0953.f4185);
                        break;
                    case 21:
                        c0953.f4175 = typedArrayObtainStyledAttributes.getLayoutDimension(index2, c0953.f4175);
                        break;
                    case 22:
                        int i6 = typedArrayObtainStyledAttributes.getInt(index2, c3701.f14113);
                        c3701.f14113 = i6;
                        c3701.f14113 = iArr[i6];
                        break;
                    case 23:
                        c0953.f4146 = typedArrayObtainStyledAttributes.getLayoutDimension(index2, c0953.f4146);
                        break;
                    case 24:
                        c0953.f4148 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4148);
                        break;
                    case 25:
                        c0953.f4165 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4165);
                        break;
                    case 26:
                        c0953.f4211 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4211);
                        break;
                    case 27:
                        c0953.f4178 = typedArrayObtainStyledAttributes.getInt(index2, c0953.f4178);
                        break;
                    case 28:
                        c0953.f4189 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4189);
                        break;
                    case 29:
                        c0953.f4201 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4201);
                        break;
                    case 30:
                        c0953.f4207 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4207);
                        break;
                    case 31:
                        c0953.f4166 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4166);
                        break;
                    case 32:
                        c0953.f4159 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4159);
                        break;
                    case 33:
                        c0953.f4173 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4173);
                        break;
                    case 34:
                        c0953.f4160 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4160);
                        break;
                    case 35:
                        c0953.f4186 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4186);
                        break;
                    case 36:
                        c0953.f4198 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4198);
                        break;
                    case 37:
                        c0953.f4179 = typedArrayObtainStyledAttributes.getFloat(index2, c0953.f4179);
                        break;
                    case 38:
                        c4399.f16701 = typedArrayObtainStyledAttributes.getResourceId(index2, c4399.f16701);
                        break;
                    case 39:
                        c0953.f4152 = typedArrayObtainStyledAttributes.getFloat(index2, c0953.f4152);
                        break;
                    case 40:
                        c0953.f4161 = typedArrayObtainStyledAttributes.getFloat(index2, c0953.f4161);
                        break;
                    case 41:
                        c0953.f4150 = typedArrayObtainStyledAttributes.getInt(index2, c0953.f4150);
                        break;
                    case 42:
                        c0953.f4174 = typedArrayObtainStyledAttributes.getInt(index2, c0953.f4174);
                        break;
                    case 43:
                        c3701.f14112 = typedArrayObtainStyledAttributes.getFloat(index2, c3701.f14112);
                        break;
                    case 44:
                        c1366.f5650 = true;
                        c1366.f5648 = typedArrayObtainStyledAttributes.getDimension(index2, c1366.f5648);
                        break;
                    case 45:
                        c1366.f5645 = typedArrayObtainStyledAttributes.getFloat(index2, c1366.f5645);
                        break;
                    case 46:
                        c1366.f5647 = typedArrayObtainStyledAttributes.getFloat(index2, c1366.f5647);
                        break;
                    case 47:
                        c1366.f5655 = typedArrayObtainStyledAttributes.getFloat(index2, c1366.f5655);
                        break;
                    case 48:
                        c1366.f5649 = typedArrayObtainStyledAttributes.getFloat(index2, c1366.f5649);
                        break;
                    case 49:
                        c1366.f5657 = typedArrayObtainStyledAttributes.getDimension(index2, c1366.f5657);
                        break;
                    case 50:
                        c1366.f5653 = typedArrayObtainStyledAttributes.getDimension(index2, c1366.f5653);
                        break;
                    case 51:
                        c1366.f5656 = typedArrayObtainStyledAttributes.getDimension(index2, c1366.f5656);
                        break;
                    case 52:
                        c1366.f5651 = typedArrayObtainStyledAttributes.getDimension(index2, c1366.f5651);
                        break;
                    case 53:
                        c1366.f5654 = typedArrayObtainStyledAttributes.getDimension(index2, c1366.f5654);
                        break;
                    case 54:
                        c0953.f4182 = typedArrayObtainStyledAttributes.getInt(index2, c0953.f4182);
                        break;
                    case 55:
                        c0953.f4149 = typedArrayObtainStyledAttributes.getInt(index2, c0953.f4149);
                        break;
                    case 56:
                        c0953.f4190 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4190);
                        break;
                    case 57:
                        c0953.f4191 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4191);
                        break;
                    case 58:
                        c0953.f4167 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4167);
                        break;
                    case 59:
                        c0953.f4158 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4158);
                        break;
                    case 60:
                        c1366.f5652 = typedArrayObtainStyledAttributes.getFloat(index2, c1366.f5652);
                        break;
                    case 61:
                        c0953.f4199 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4199);
                        break;
                    case 62:
                        c0953.f4206 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4206);
                        break;
                    case 63:
                        c0953.f4156 = typedArrayObtainStyledAttributes.getFloat(index2, c0953.f4156);
                        break;
                    case 64:
                        c0823.f3688 = m7997(typedArrayObtainStyledAttributes, index2, c0823.f3688);
                        break;
                    case 65:
                        if (typedArrayObtainStyledAttributes.peekValue(index2).type == 3) {
                            typedArrayObtainStyledAttributes.getString(index2);
                            c0823.getClass();
                        } else {
                            String str = strArr[typedArrayObtainStyledAttributes.getInteger(index2, 0)];
                            c0823.getClass();
                        }
                        break;
                    case 66:
                        typedArrayObtainStyledAttributes.getInt(index2, 0);
                        c0823.getClass();
                        break;
                    case 67:
                        c0823.f3687 = typedArrayObtainStyledAttributes.getFloat(index2, c0823.f3687);
                        break;
                    case 68:
                        c3701.f14114 = typedArrayObtainStyledAttributes.getFloat(index2, c3701.f14114);
                        break;
                    case 69:
                        c0953.f4154 = typedArrayObtainStyledAttributes.getFloat(index2, 1.0f);
                        break;
                    case 70:
                        c0953.f4169 = typedArrayObtainStyledAttributes.getFloat(index2, 1.0f);
                        break;
                    case 71:
                        break;
                    case 72:
                        c0953.f4184 = typedArrayObtainStyledAttributes.getInt(index2, c0953.f4184);
                        break;
                    case 73:
                        c0953.f4176 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4176);
                        break;
                    case 74:
                        c0953.f4204 = typedArrayObtainStyledAttributes.getString(index2);
                        break;
                    case 75:
                        c0953.f4155 = typedArrayObtainStyledAttributes.getBoolean(index2, c0953.f4155);
                        break;
                    case 76:
                        c0823.f3686 = typedArrayObtainStyledAttributes.getInt(index2, c0823.f3686);
                        break;
                    case 77:
                        c0953.f4197 = typedArrayObtainStyledAttributes.getString(index2);
                        break;
                    case 78:
                        c3701.f14111 = typedArrayObtainStyledAttributes.getInt(index2, c3701.f14111);
                        break;
                    case 79:
                        c0823.f3690 = typedArrayObtainStyledAttributes.getFloat(index2, c0823.f3690);
                        break;
                    case 80:
                        c0953.f4172 = typedArrayObtainStyledAttributes.getBoolean(index2, c0953.f4172);
                        break;
                    case 81:
                        c0953.f4181 = typedArrayObtainStyledAttributes.getBoolean(index2, c0953.f4181);
                        break;
                    case 82:
                        c0823.f3684 = typedArrayObtainStyledAttributes.getInteger(index2, c0823.f3684);
                        break;
                    case 83:
                        c1366.f5646 = m7997(typedArrayObtainStyledAttributes, index2, c1366.f5646);
                        break;
                    case 84:
                        c0823.f3689 = typedArrayObtainStyledAttributes.getInteger(index2, c0823.f3689);
                        break;
                    case 85:
                        c0823.f3692 = typedArrayObtainStyledAttributes.getFloat(index2, c0823.f3692);
                        break;
                    case 86:
                        int i7 = typedArrayObtainStyledAttributes.peekValue(index2).type;
                        if (i7 == 1) {
                            c0823.f3691 = typedArrayObtainStyledAttributes.getResourceId(index2, -1);
                        } else if (i7 == 3) {
                            String string2 = typedArrayObtainStyledAttributes.getString(index2);
                            c0823.f3685 = string2;
                            if (string2.indexOf("/") > 0) {
                                c0823.f3691 = typedArrayObtainStyledAttributes.getResourceId(index2, -1);
                            }
                        } else {
                            typedArrayObtainStyledAttributes.getInteger(index2, c0823.f3691);
                        }
                        break;
                    case 87:
                        Integer.toHexString(index2);
                        sparseIntArray.get(index2);
                        break;
                    case 88:
                    case 89:
                    case 90:
                    default:
                        Integer.toHexString(index2);
                        sparseIntArray.get(index2);
                        break;
                    case 91:
                        c0953.f4200 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4200);
                        break;
                    case 92:
                        c0953.f4162 = m7997(typedArrayObtainStyledAttributes, index2, c0953.f4162);
                        break;
                    case 93:
                        c0953.f4163 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4163);
                        break;
                    case 94:
                        c0953.f4187 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0953.f4187);
                        break;
                    case 95:
                        m7999(c0953, typedArrayObtainStyledAttributes, index2, 0);
                        break;
                    case 96:
                        m7999(c0953, typedArrayObtainStyledAttributes, index2, 1);
                        break;
                    case 97:
                        c0953.f4210 = typedArrayObtainStyledAttributes.getInt(index2, c0953.f4210);
                        break;
                }
            }
            if (c0953.f4204 != null) {
                c0953.f4196 = null;
            }
        }
        typedArrayObtainStyledAttributes.recycle();
        return c4399;
    }

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

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public static void m7998(C2975 c2975, String str) {
        if (str != null) {
            int length = str.length();
            int iIndexOf = str.indexOf(44);
            int i = -1;
            if (iIndexOf > 0 && iIndexOf < length - 1) {
                String strSubstring = str.substring(0, iIndexOf);
                i = strSubstring.equalsIgnoreCase("W") ? 0 : strSubstring.equalsIgnoreCase("H") ? 1 : -1;
                i = iIndexOf + 1;
            }
            int iIndexOf2 = str.indexOf(58);
            try {
                if (iIndexOf2 < 0 || iIndexOf2 >= length - 1) {
                    String strSubstring2 = str.substring(i);
                    if (strSubstring2.length() > 0) {
                        Float.parseFloat(strSubstring2);
                    }
                } else {
                    String strSubstring3 = str.substring(i, iIndexOf2);
                    String strSubstring4 = str.substring(iIndexOf2 + 1);
                    if (strSubstring3.length() > 0 && strSubstring4.length() > 0) {
                        float f = Float.parseFloat(strSubstring3);
                        float f2 = Float.parseFloat(strSubstring4);
                        if (f > 0.0f && f2 > 0.0f) {
                            if (i == 1) {
                                Math.abs(f2 / f);
                            } else {
                                Math.abs(f / f2);
                            }
                        }
                    }
                }
            } catch (NumberFormatException unused) {
            }
        }
        c2975.f11476 = str;
    }

    /* JADX WARN: Removed duplicated region for block: B:20:0x0036  */
    /* JADX WARN: Removed duplicated region for block: B:26:0x0044  */
    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static void m7999(Object obj, TypedArray typedArray, int i, int i2) {
        int dimensionPixelSize;
        if (obj == null) {
            return;
        }
        int i3 = typedArray.peekValue(i).type;
        boolean z = true;
        int i4 = 0;
        if (i3 == 3) {
            String string = typedArray.getString(i);
            if (string == null) {
                return;
            }
            int iIndexOf = string.indexOf(61);
            int length = string.length();
            if (iIndexOf <= 0 || iIndexOf >= length - 1) {
                return;
            }
            String strSubstring = string.substring(0, iIndexOf);
            String strSubstring2 = string.substring(iIndexOf + 1);
            if (strSubstring2.length() > 0) {
                String strTrim = strSubstring.trim();
                String strTrim2 = strSubstring2.trim();
                if ("ratio".equalsIgnoreCase(strTrim)) {
                    if (obj instanceof C2975) {
                        C2975 c2975 = (C2975) obj;
                        if (i2 == 0) {
                            ((ViewGroup.MarginLayoutParams) c2975).width = 0;
                        } else {
                            ((ViewGroup.MarginLayoutParams) c2975).height = 0;
                        }
                        m7998(c2975, strTrim2);
                        return;
                    }
                    if (obj instanceof C0953) {
                        ((C0953) obj).f4194 = strTrim2;
                        return;
                    } else {
                        if (obj instanceof C2767) {
                            ((C2767) obj).m6675(5, strTrim2);
                            return;
                        }
                        return;
                    }
                }
                try {
                    if ("weight".equalsIgnoreCase(strTrim)) {
                        float f = Float.parseFloat(strTrim2);
                        if (obj instanceof C2975) {
                            C2975 c29752 = (C2975) obj;
                            if (i2 == 0) {
                                ((ViewGroup.MarginLayoutParams) c29752).width = 0;
                                c29752.f11447 = f;
                                return;
                            } else {
                                ((ViewGroup.MarginLayoutParams) c29752).height = 0;
                                c29752.f11440 = f;
                                return;
                            }
                        }
                        if (obj instanceof C0953) {
                            C0953 c0953 = (C0953) obj;
                            if (i2 == 0) {
                                c0953.f4146 = 0;
                                c0953.f4152 = f;
                                return;
                            } else {
                                c0953.f4175 = 0;
                                c0953.f4161 = f;
                                return;
                            }
                        }
                        if (obj instanceof C2767) {
                            C2767 c2767 = (C2767) obj;
                            if (i2 == 0) {
                                c2767.m6674(23, 0);
                                c2767.m6676(39, f);
                                return;
                            } else {
                                c2767.m6674(21, 0);
                                c2767.m6676(40, f);
                                return;
                            }
                        }
                        return;
                    }
                    if ("parent".equalsIgnoreCase(strTrim)) {
                        float fMax = Math.max(0.0f, Math.min(1.0f, Float.parseFloat(strTrim2)));
                        if (obj instanceof C2975) {
                            C2975 c29753 = (C2975) obj;
                            if (i2 == 0) {
                                ((ViewGroup.MarginLayoutParams) c29753).width = 0;
                                c29753.f11479 = fMax;
                                c29753.f11450 = 2;
                                return;
                            } else {
                                ((ViewGroup.MarginLayoutParams) c29753).height = 0;
                                c29753.f11474 = fMax;
                                c29753.f11470 = 2;
                                return;
                            }
                        }
                        if (obj instanceof C0953) {
                            C0953 c09532 = (C0953) obj;
                            if (i2 == 0) {
                                c09532.f4146 = 0;
                                c09532.f4154 = fMax;
                                c09532.f4182 = 2;
                                return;
                            } else {
                                c09532.f4175 = 0;
                                c09532.f4169 = fMax;
                                c09532.f4149 = 2;
                                return;
                            }
                        }
                        if (obj instanceof C2767) {
                            C2767 c27672 = (C2767) obj;
                            if (i2 == 0) {
                                c27672.m6674(23, 0);
                                c27672.m6674(54, 2);
                                return;
                            } else {
                                c27672.m6674(21, 0);
                                c27672.m6674(55, 2);
                                return;
                            }
                        }
                        return;
                    }
                    return;
                } catch (NumberFormatException unused) {
                    return;
                }
            }
            return;
        }
        if (i3 != 5) {
            dimensionPixelSize = typedArray.getInt(i, 0);
            if (dimensionPixelSize == -4) {
                i4 = -2;
            } else if (dimensionPixelSize == -3 || (dimensionPixelSize != -2 && dimensionPixelSize != -1)) {
                z = false;
            }
            if (!(obj instanceof C2975)) {
                C2975 c29754 = (C2975) obj;
                if (i2 == 0) {
                    ((ViewGroup.MarginLayoutParams) c29754).width = i4;
                    c29754.f11461 = z;
                    return;
                } else {
                    ((ViewGroup.MarginLayoutParams) c29754).height = i4;
                    c29754.f11469 = z;
                    return;
                }
            }
            if (obj instanceof C0953) {
                C0953 c09533 = (C0953) obj;
                if (i2 == 0) {
                    c09533.f4146 = i4;
                    c09533.f4172 = z;
                    return;
                } else {
                    c09533.f4175 = i4;
                    c09533.f4181 = z;
                    return;
                }
            }
            if (obj instanceof C2767) {
                C2767 c27673 = (C2767) obj;
                if (i2 == 0) {
                    c27673.m6674(23, i4);
                    c27673.m6677(80, z);
                    return;
                } else {
                    c27673.m6674(21, i4);
                    c27673.m6677(81, z);
                    return;
                }
            }
            return;
        }
        dimensionPixelSize = typedArray.getDimensionPixelSize(i, 0);
        z = false;
        i4 = dimensionPixelSize;
        if (!(obj instanceof C2975)) {
        }
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final void m8000(Context context, int i) {
        ConstraintLayout constraintLayout;
        int i2;
        int i3;
        C3501 c3501 = this;
        ConstraintLayout constraintLayout2 = (ConstraintLayout) LayoutInflater.from(context).inflate(i, (ViewGroup) null);
        int childCount = constraintLayout2.getChildCount();
        HashMap map = c3501.f13455;
        map.clear();
        int i4 = 0;
        while (i4 < childCount) {
            View childAt = constraintLayout2.getChildAt(i4);
            C2975 c2975 = (C2975) childAt.getLayoutParams();
            int id = childAt.getId();
            if (c3501.f13454 && id == -1) {
                C4935.m10237("All children of ConstraintLayout must have ids to use ConstraintSet");
                return;
            }
            if (!map.containsKey(Integer.valueOf(id))) {
                map.put(Integer.valueOf(id), new C4399());
            }
            C4399 c4399 = (C4399) map.get(Integer.valueOf(id));
            if (c4399 == null) {
                constraintLayout = constraintLayout2;
                i2 = childCount;
            } else {
                C3701 c3701 = c4399.f16698;
                C0953 c0953 = c4399.f16702;
                C1366 c1366 = c4399.f16700;
                HashMap map2 = new HashMap();
                Class<?> cls = childAt.getClass();
                HashMap map3 = c3501.f13456;
                for (String str : map3.keySet()) {
                    C0746 c0746 = (C0746) map3.get(str);
                    ConstraintLayout constraintLayout3 = constraintLayout2;
                    try {
                        if (str.equals("BackgroundColor")) {
                            i3 = childCount;
                            try {
                                map2.put(str, new C0746(c0746, Integer.valueOf(((ColorDrawable) childAt.getBackground()).getColor())));
                            } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException unused) {
                            }
                        } else {
                            i3 = childCount;
                            map2.put(str, new C0746(c0746, cls.getMethod("getMap" + str, null).invoke(childAt, null)));
                        }
                    } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException unused2) {
                        i3 = childCount;
                    }
                    constraintLayout2 = constraintLayout3;
                    childCount = i3;
                }
                constraintLayout = constraintLayout2;
                i2 = childCount;
                c4399.f16703 = map2;
                c4399.f16701 = id;
                c0953.f4165 = c2975.f11480;
                c0953.f4211 = c2975.f11500;
                c0953.f4201 = c2975.f11493;
                c0953.f4207 = c2975.f11452;
                c0953.f4198 = c2975.f11499;
                c0953.f4186 = c2975.f11489;
                c0953.f4168 = c2975.f11495;
                c0953.f4195 = c2975.f11486;
                c0953.f4188 = c2975.f11473;
                c0953.f4200 = c2975.f11455;
                c0953.f4162 = c2975.f11482;
                c0953.f4159 = c2975.f11446;
                c0953.f4173 = c2975.f11460;
                c0953.f4164 = c2975.f11451;
                c0953.f4170 = c2975.f11457;
                c0953.f4185 = c2975.f11465;
                c0953.f4179 = c2975.f11435;
                c0953.f4194 = c2975.f11476;
                c0953.f4199 = c2975.f11475;
                c0953.f4206 = c2975.f11488;
                c0953.f4156 = c2975.f11449;
                c0953.f4171 = c2975.f11448;
                c0953.f4209 = c2975.f11439;
                c0953.f4178 = c2975.f11437;
                c0953.f4212 = c2975.f11462;
                c0953.f4208 = c2975.f11490;
                c0953.f4193 = c2975.f11433;
                c0953.f4146 = ((ViewGroup.MarginLayoutParams) c2975).width;
                c0953.f4175 = ((ViewGroup.MarginLayoutParams) c2975).height;
                c0953.f4148 = ((ViewGroup.MarginLayoutParams) c2975).leftMargin;
                c0953.f4189 = ((ViewGroup.MarginLayoutParams) c2975).rightMargin;
                c0953.f4160 = ((ViewGroup.MarginLayoutParams) c2975).topMargin;
                c0953.f4153 = ((ViewGroup.MarginLayoutParams) c2975).bottomMargin;
                c0953.f4163 = c2975.f11497;
                c0953.f4161 = c2975.f11440;
                c0953.f4152 = c2975.f11447;
                c0953.f4174 = c2975.f11453;
                c0953.f4150 = c2975.f11438;
                c0953.f4172 = c2975.f11461;
                c0953.f4181 = c2975.f11469;
                c0953.f4182 = c2975.f11450;
                c0953.f4149 = c2975.f11470;
                c0953.f4190 = c2975.f11434;
                c0953.f4191 = c2975.f11444;
                c0953.f4167 = c2975.f11491;
                c0953.f4158 = c2975.f11464;
                c0953.f4154 = c2975.f11479;
                c0953.f4169 = c2975.f11474;
                c0953.f4197 = c2975.f11436;
                c0953.f4203 = c2975.f11466;
                c0953.f4147 = c2975.f11487;
                c0953.f4183 = c2975.f11472;
                c0953.f4177 = c2975.f11481;
                c0953.f4192 = c2975.f11494;
                c0953.f4157 = c2975.f11443;
                c0953.f4187 = c2975.f11458;
                c0953.f4210 = c2975.f11477;
                c0953.f4151 = c2975.getMarginEnd();
                c0953.f4166 = c2975.getMarginStart();
                c3701.f14113 = childAt.getVisibility();
                c3701.f14112 = childAt.getAlpha();
                c1366.f5652 = childAt.getRotation();
                c1366.f5645 = childAt.getRotationX();
                c1366.f5647 = childAt.getRotationY();
                c1366.f5655 = childAt.getScaleX();
                c1366.f5649 = childAt.getScaleY();
                float pivotX = childAt.getPivotX();
                float pivotY = childAt.getPivotY();
                if (pivotX != 0.0d || pivotY != 0.0d) {
                    c1366.f5657 = pivotX;
                    c1366.f5653 = pivotY;
                }
                c1366.f5656 = childAt.getTranslationX();
                c1366.f5651 = childAt.getTranslationY();
                c1366.f5654 = childAt.getTranslationZ();
                if (c1366.f5650) {
                    c1366.f5648 = childAt.getElevation();
                }
                if (childAt instanceof Barrier) {
                    Barrier barrier = (Barrier) childAt;
                    c0953.f4155 = barrier.getAllowsGoneWidget();
                    c0953.f4196 = barrier.getReferencedIds();
                    c0953.f4184 = barrier.getType();
                    c0953.f4176 = barrier.getMargin();
                }
            }
            i4++;
            c3501 = this;
            constraintLayout2 = constraintLayout;
            childCount = i2;
        }
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final void m8001(Context context, int i) {
        XmlResourceParser xml = context.getResources().getXml(i);
        try {
            for (int eventType = xml.getEventType(); eventType != 1; eventType = xml.next()) {
                if (eventType == 2) {
                    String name = xml.getName();
                    C4399 c4399M7996 = m7996(context, Xml.asAttributeSet(xml), false);
                    if (name.equalsIgnoreCase("Guideline")) {
                        c4399M7996.f16702.f4202 = true;
                    }
                    this.f13455.put(Integer.valueOf(c4399M7996.f16701), c4399M7996);
                }
            }
        } catch (IOException | XmlPullParserException unused) {
        }
    }
}
