package o;

import android.content.Context;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.SparseIntArray;
import android.util.Xml;
import android.view.View;
import android.view.ViewGroup;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.CommonStatusCodes;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import org.xmlpull.v1.XmlPullParserException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Ql, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0426Ql {
    public static final int[] d = {0, 4, 8};
    public static final SparseIntArray e;
    public static final SparseIntArray f;
    public final HashMap a = new HashMap();
    public final boolean b = true;
    public final HashMap c = new HashMap();

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        e = sparseIntArray;
        SparseIntArray sparseIntArray2 = new SparseIntArray();
        f = 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);
    }

    public static int[] c(C0625Yc c0625Yc, String str) throws IllegalAccessException, IllegalArgumentException {
        int iIntValue;
        String[] strArrSplit = str.split(",");
        Context context = c0625Yc.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 = PZ.class.getField(strTrim).getInt(null);
            } catch (Exception unused) {
                iIntValue = 0;
            }
            if (iIntValue == 0) {
                iIntValue = context.getResources().getIdentifier(strTrim, "id", context.getPackageName());
            }
            if (iIntValue == 0 && c0625Yc.isInEditMode() && (c0625Yc.getParent() instanceof ConstraintLayout)) {
                ConstraintLayout constraintLayout = (ConstraintLayout) c0625Yc.getParent();
                if (strTrim != null) {
                    HashMap map = constraintLayout.x;
                    if (map != null && map.containsKey(strTrim)) {
                        obj = constraintLayout.x.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 */
    public static C0297Ll d(Context context, AttributeSet attributeSet, boolean z) {
        C0297Ll c0297Ll = new C0297Ll();
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, z ? RZ.c : RZ.a);
        String[] strArr = AbstractC0662Zn.g;
        C0374Ol c0374Ol = c0297Ll.b;
        C0400Pl c0400Pl = c0297Ll.e;
        C0348Nl c0348Nl = c0297Ll.c;
        C0322Ml c0322Ml = c0297Ll.d;
        int[] iArr = d;
        SparseIntArray sparseIntArray = e;
        int i = 3;
        if (z) {
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            C0271Kl c0271Kl = new C0271Kl();
            c0271Kl.a = new int[10];
            c0271Kl.b = new int[10];
            c0271Kl.c = 0;
            c0271Kl.d = new int[10];
            c0271Kl.e = new float[10];
            c0271Kl.f = 0;
            c0271Kl.g = new int[5];
            c0271Kl.h = new String[5];
            c0271Kl.i = 0;
            c0271Kl.j = new int[4];
            c0271Kl.k = new boolean[4];
            c0271Kl.l = 0;
            c0348Nl.getClass();
            c0322Ml.getClass();
            c0400Pl.getClass();
            int i2 = 0;
            while (i2 < indexCount) {
                int index = typedArrayObtainStyledAttributes.getIndex(i2);
                switch (f.get(index)) {
                    case 2:
                        c0271Kl.b(2, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.I));
                        continue;
                        i2++;
                        i = 3;
                    case 3:
                    case 4:
                    case ConnectionResult.SERVICE_INVALID /* 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:
                        c0271Kl.c(5, typedArrayObtainStyledAttributes.getString(index));
                        continue;
                        i2++;
                        i = 3;
                    case 6:
                        c0271Kl.b(6, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c0322Ml.C));
                        break;
                    case 7:
                        c0271Kl.b(7, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c0322Ml.D));
                        break;
                    case 8:
                        c0271Kl.b(8, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.J));
                        break;
                    case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                        c0271Kl.b(11, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.P));
                        break;
                    case 12:
                        c0271Kl.b(12, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.Q));
                        break;
                    case 13:
                        c0271Kl.b(13, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.M));
                        break;
                    case 14:
                        c0271Kl.b(14, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.O));
                        break;
                    case 15:
                        c0271Kl.b(15, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.R));
                        break;
                    case 16:
                        c0271Kl.b(16, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.N));
                        break;
                    case 17:
                        c0271Kl.b(17, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c0322Ml.d));
                        break;
                    case ConnectionResult.SERVICE_UPDATING /* 18 */:
                        c0271Kl.b(18, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c0322Ml.e));
                        break;
                    case 19:
                        c0271Kl.a(19, typedArrayObtainStyledAttributes.getFloat(index, c0322Ml.f));
                        break;
                    case 20:
                        c0271Kl.a(20, typedArrayObtainStyledAttributes.getFloat(index, c0322Ml.w));
                        break;
                    case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                        c0271Kl.b(21, typedArrayObtainStyledAttributes.getLayoutDimension(index, c0322Ml.c));
                        break;
                    case 22:
                        c0271Kl.b(22, iArr[typedArrayObtainStyledAttributes.getInt(index, c0374Ol.a)]);
                        break;
                    case ConnectionResult.API_DISABLED /* 23 */:
                        c0271Kl.b(23, typedArrayObtainStyledAttributes.getLayoutDimension(index, c0322Ml.b));
                        break;
                    case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                        c0271Kl.b(24, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.F));
                        break;
                    case 27:
                        c0271Kl.b(27, typedArrayObtainStyledAttributes.getInt(index, c0322Ml.E));
                        break;
                    case 28:
                        c0271Kl.b(28, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.G));
                        break;
                    case 31:
                        c0271Kl.b(31, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.K));
                        break;
                    case 34:
                        c0271Kl.b(34, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.H));
                        break;
                    case 37:
                        c0271Kl.a(37, typedArrayObtainStyledAttributes.getFloat(index, c0322Ml.x));
                        break;
                    case 38:
                        int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, c0297Ll.a);
                        c0297Ll.a = resourceId;
                        c0271Kl.b(38, resourceId);
                        break;
                    case 39:
                        c0271Kl.a(39, typedArrayObtainStyledAttributes.getFloat(index, c0322Ml.U));
                        break;
                    case 40:
                        c0271Kl.a(40, typedArrayObtainStyledAttributes.getFloat(index, c0322Ml.T));
                        break;
                    case 41:
                        c0271Kl.b(41, typedArrayObtainStyledAttributes.getInt(index, c0322Ml.V));
                        break;
                    case 42:
                        c0271Kl.b(42, typedArrayObtainStyledAttributes.getInt(index, c0322Ml.W));
                        break;
                    case 43:
                        c0271Kl.a(43, typedArrayObtainStyledAttributes.getFloat(index, c0374Ol.c));
                        break;
                    case 44:
                        c0271Kl.d(44, true);
                        c0271Kl.a(44, typedArrayObtainStyledAttributes.getDimension(index, c0400Pl.m));
                        break;
                    case 45:
                        c0271Kl.a(45, typedArrayObtainStyledAttributes.getFloat(index, c0400Pl.b));
                        break;
                    case 46:
                        c0271Kl.a(46, typedArrayObtainStyledAttributes.getFloat(index, c0400Pl.c));
                        break;
                    case 47:
                        c0271Kl.a(47, typedArrayObtainStyledAttributes.getFloat(index, c0400Pl.d));
                        break;
                    case 48:
                        c0271Kl.a(48, typedArrayObtainStyledAttributes.getFloat(index, c0400Pl.e));
                        break;
                    case 49:
                        c0271Kl.a(49, typedArrayObtainStyledAttributes.getDimension(index, c0400Pl.f));
                        break;
                    case 50:
                        c0271Kl.a(50, typedArrayObtainStyledAttributes.getDimension(index, c0400Pl.g));
                        break;
                    case 51:
                        c0271Kl.a(51, typedArrayObtainStyledAttributes.getDimension(index, c0400Pl.i));
                        break;
                    case 52:
                        c0271Kl.a(52, typedArrayObtainStyledAttributes.getDimension(index, c0400Pl.j));
                        break;
                    case 53:
                        c0271Kl.a(53, typedArrayObtainStyledAttributes.getDimension(index, c0400Pl.k));
                        break;
                    case 54:
                        c0271Kl.b(54, typedArrayObtainStyledAttributes.getInt(index, c0322Ml.X));
                        break;
                    case 55:
                        c0271Kl.b(55, typedArrayObtainStyledAttributes.getInt(index, c0322Ml.Y));
                        break;
                    case 56:
                        c0271Kl.b(56, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.Z));
                        break;
                    case 57:
                        c0271Kl.b(57, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.a0));
                        break;
                    case 58:
                        c0271Kl.b(58, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.b0));
                        break;
                    case 59:
                        c0271Kl.b(59, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.c0));
                        break;
                    case 60:
                        c0271Kl.a(60, typedArrayObtainStyledAttributes.getFloat(index, c0400Pl.a));
                        break;
                    case 62:
                        c0271Kl.b(62, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.A));
                        break;
                    case 63:
                        c0271Kl.a(63, typedArrayObtainStyledAttributes.getFloat(index, c0322Ml.B));
                        break;
                    case 64:
                        c0271Kl.b(64, f(typedArrayObtainStyledAttributes, index, c0348Nl.a));
                        break;
                    case 65:
                        if (typedArrayObtainStyledAttributes.peekValue(index).type == 3) {
                            c0271Kl.c(65, typedArrayObtainStyledAttributes.getString(index));
                            break;
                        } else {
                            c0271Kl.c(65, strArr[typedArrayObtainStyledAttributes.getInteger(index, 0)]);
                            break;
                        }
                    case 66:
                        c0271Kl.b(66, typedArrayObtainStyledAttributes.getInt(index, 0));
                        break;
                    case 67:
                        c0271Kl.a(67, typedArrayObtainStyledAttributes.getFloat(index, c0348Nl.e));
                        break;
                    case 68:
                        c0271Kl.a(68, typedArrayObtainStyledAttributes.getFloat(index, c0374Ol.d));
                        break;
                    case 69:
                        c0271Kl.a(69, typedArrayObtainStyledAttributes.getFloat(index, 1.0f));
                        break;
                    case 70:
                        c0271Kl.a(70, typedArrayObtainStyledAttributes.getFloat(index, 1.0f));
                        break;
                    case 71:
                        break;
                    case 72:
                        c0271Kl.b(72, typedArrayObtainStyledAttributes.getInt(index, c0322Ml.f0));
                        break;
                    case 73:
                        c0271Kl.b(73, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.g0));
                        break;
                    case 74:
                        c0271Kl.c(74, typedArrayObtainStyledAttributes.getString(index));
                        break;
                    case 75:
                        c0271Kl.d(75, typedArrayObtainStyledAttributes.getBoolean(index, c0322Ml.n0));
                        break;
                    case 76:
                        c0271Kl.b(76, typedArrayObtainStyledAttributes.getInt(index, c0348Nl.c));
                        break;
                    case 77:
                        c0271Kl.c(77, typedArrayObtainStyledAttributes.getString(index));
                        break;
                    case 78:
                        c0271Kl.b(78, typedArrayObtainStyledAttributes.getInt(index, c0374Ol.b));
                        break;
                    case 79:
                        c0271Kl.a(79, typedArrayObtainStyledAttributes.getFloat(index, c0348Nl.d));
                        break;
                    case 80:
                        c0271Kl.d(80, typedArrayObtainStyledAttributes.getBoolean(index, c0322Ml.l0));
                        break;
                    case 81:
                        c0271Kl.d(81, typedArrayObtainStyledAttributes.getBoolean(index, c0322Ml.m0));
                        break;
                    case 82:
                        c0271Kl.b(82, typedArrayObtainStyledAttributes.getInteger(index, c0348Nl.b));
                        break;
                    case 83:
                        c0271Kl.b(83, f(typedArrayObtainStyledAttributes, index, c0400Pl.h));
                        break;
                    case 84:
                        c0271Kl.b(84, typedArrayObtainStyledAttributes.getInteger(index, c0348Nl.g));
                        break;
                    case 85:
                        c0271Kl.a(85, typedArrayObtainStyledAttributes.getFloat(index, c0348Nl.f));
                        break;
                    case 86:
                        int i3 = typedArrayObtainStyledAttributes.peekValue(index).type;
                        if (i3 == 1) {
                            int resourceId2 = typedArrayObtainStyledAttributes.getResourceId(index, -1);
                            c0348Nl.i = resourceId2;
                            c0271Kl.b(89, resourceId2);
                            if (c0348Nl.i != -1) {
                                c0271Kl.b(88, -2);
                                break;
                            }
                        } else if (i3 == 3) {
                            String string = typedArrayObtainStyledAttributes.getString(index);
                            c0348Nl.h = string;
                            c0271Kl.c(90, string);
                            if (c0348Nl.h.indexOf("/") > 0) {
                                int resourceId3 = typedArrayObtainStyledAttributes.getResourceId(index, -1);
                                c0348Nl.i = resourceId3;
                                c0271Kl.b(89, resourceId3);
                                c0271Kl.b(88, -2);
                                break;
                            } else {
                                c0271Kl.b(88, -1);
                                break;
                            }
                        } else {
                            c0271Kl.b(88, typedArrayObtainStyledAttributes.getInteger(index, c0348Nl.i));
                            break;
                        }
                        break;
                    case 87:
                        Integer.toHexString(index);
                        sparseIntArray.get(index);
                        break;
                    case 93:
                        c0271Kl.b(93, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.L));
                        break;
                    case 94:
                        c0271Kl.b(94, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c0322Ml.S));
                        break;
                    case 95:
                        g(c0271Kl, typedArrayObtainStyledAttributes, index, 0);
                        break;
                    case 96:
                        g(c0271Kl, typedArrayObtainStyledAttributes, index, 1);
                        break;
                    case 97:
                        c0271Kl.b(97, typedArrayObtainStyledAttributes.getInt(index, c0322Ml.o0));
                        break;
                    case 98:
                        int i4 = ZP.B;
                        if (typedArrayObtainStyledAttributes.peekValue(index).type == i) {
                            typedArrayObtainStyledAttributes.getString(index);
                            break;
                        } else {
                            c0297Ll.a = typedArrayObtainStyledAttributes.getResourceId(index, c0297Ll.a);
                            break;
                        }
                    case 99:
                        c0271Kl.d(99, typedArrayObtainStyledAttributes.getBoolean(index, c0322Ml.g));
                        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) {
                    c0348Nl.getClass();
                    c0322Ml.getClass();
                    c0400Pl.getClass();
                }
                switch (sparseIntArray.get(index2)) {
                    case 1:
                        c0322Ml.p = f(typedArrayObtainStyledAttributes, index2, c0322Ml.p);
                        break;
                    case 2:
                        c0322Ml.I = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.I);
                        break;
                    case 3:
                        c0322Ml.f242o = f(typedArrayObtainStyledAttributes, index2, c0322Ml.f242o);
                        break;
                    case 4:
                        c0322Ml.n = f(typedArrayObtainStyledAttributes, index2, c0322Ml.n);
                        break;
                    case 5:
                        c0322Ml.y = typedArrayObtainStyledAttributes.getString(index2);
                        break;
                    case 6:
                        c0322Ml.C = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c0322Ml.C);
                        break;
                    case 7:
                        c0322Ml.D = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c0322Ml.D);
                        break;
                    case 8:
                        c0322Ml.J = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.J);
                        break;
                    case ConnectionResult.SERVICE_INVALID /* 9 */:
                        c0322Ml.v = f(typedArrayObtainStyledAttributes, index2, c0322Ml.v);
                        break;
                    case 10:
                        c0322Ml.u = f(typedArrayObtainStyledAttributes, index2, c0322Ml.u);
                        break;
                    case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                        c0322Ml.P = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.P);
                        break;
                    case 12:
                        c0322Ml.Q = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.Q);
                        break;
                    case 13:
                        c0322Ml.M = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.M);
                        break;
                    case 14:
                        c0322Ml.O = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.O);
                        break;
                    case 15:
                        c0322Ml.R = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.R);
                        break;
                    case 16:
                        c0322Ml.N = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.N);
                        break;
                    case 17:
                        c0322Ml.d = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c0322Ml.d);
                        break;
                    case ConnectionResult.SERVICE_UPDATING /* 18 */:
                        c0322Ml.e = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c0322Ml.e);
                        break;
                    case 19:
                        c0322Ml.f = typedArrayObtainStyledAttributes.getFloat(index2, c0322Ml.f);
                        break;
                    case 20:
                        c0322Ml.w = typedArrayObtainStyledAttributes.getFloat(index2, c0322Ml.w);
                        break;
                    case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                        c0322Ml.c = typedArrayObtainStyledAttributes.getLayoutDimension(index2, c0322Ml.c);
                        break;
                    case 22:
                        int i6 = typedArrayObtainStyledAttributes.getInt(index2, c0374Ol.a);
                        c0374Ol.a = i6;
                        c0374Ol.a = iArr[i6];
                        break;
                    case ConnectionResult.API_DISABLED /* 23 */:
                        c0322Ml.b = typedArrayObtainStyledAttributes.getLayoutDimension(index2, c0322Ml.b);
                        break;
                    case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                        c0322Ml.F = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.F);
                        break;
                    case 25:
                        c0322Ml.h = f(typedArrayObtainStyledAttributes, index2, c0322Ml.h);
                        break;
                    case 26:
                        c0322Ml.i = f(typedArrayObtainStyledAttributes, index2, c0322Ml.i);
                        break;
                    case 27:
                        c0322Ml.E = typedArrayObtainStyledAttributes.getInt(index2, c0322Ml.E);
                        break;
                    case 28:
                        c0322Ml.G = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.G);
                        break;
                    case 29:
                        c0322Ml.j = f(typedArrayObtainStyledAttributes, index2, c0322Ml.j);
                        break;
                    case 30:
                        c0322Ml.k = f(typedArrayObtainStyledAttributes, index2, c0322Ml.k);
                        break;
                    case 31:
                        c0322Ml.K = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.K);
                        break;
                    case 32:
                        c0322Ml.s = f(typedArrayObtainStyledAttributes, index2, c0322Ml.s);
                        break;
                    case 33:
                        c0322Ml.t = f(typedArrayObtainStyledAttributes, index2, c0322Ml.t);
                        break;
                    case 34:
                        c0322Ml.H = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.H);
                        break;
                    case 35:
                        c0322Ml.m = f(typedArrayObtainStyledAttributes, index2, c0322Ml.m);
                        break;
                    case 36:
                        c0322Ml.l = f(typedArrayObtainStyledAttributes, index2, c0322Ml.l);
                        break;
                    case 37:
                        c0322Ml.x = typedArrayObtainStyledAttributes.getFloat(index2, c0322Ml.x);
                        break;
                    case 38:
                        c0297Ll.a = typedArrayObtainStyledAttributes.getResourceId(index2, c0297Ll.a);
                        break;
                    case 39:
                        c0322Ml.U = typedArrayObtainStyledAttributes.getFloat(index2, c0322Ml.U);
                        break;
                    case 40:
                        c0322Ml.T = typedArrayObtainStyledAttributes.getFloat(index2, c0322Ml.T);
                        break;
                    case 41:
                        c0322Ml.V = typedArrayObtainStyledAttributes.getInt(index2, c0322Ml.V);
                        break;
                    case 42:
                        c0322Ml.W = typedArrayObtainStyledAttributes.getInt(index2, c0322Ml.W);
                        break;
                    case 43:
                        c0374Ol.c = typedArrayObtainStyledAttributes.getFloat(index2, c0374Ol.c);
                        break;
                    case 44:
                        c0400Pl.l = true;
                        c0400Pl.m = typedArrayObtainStyledAttributes.getDimension(index2, c0400Pl.m);
                        break;
                    case 45:
                        c0400Pl.b = typedArrayObtainStyledAttributes.getFloat(index2, c0400Pl.b);
                        break;
                    case 46:
                        c0400Pl.c = typedArrayObtainStyledAttributes.getFloat(index2, c0400Pl.c);
                        break;
                    case 47:
                        c0400Pl.d = typedArrayObtainStyledAttributes.getFloat(index2, c0400Pl.d);
                        break;
                    case 48:
                        c0400Pl.e = typedArrayObtainStyledAttributes.getFloat(index2, c0400Pl.e);
                        break;
                    case 49:
                        c0400Pl.f = typedArrayObtainStyledAttributes.getDimension(index2, c0400Pl.f);
                        break;
                    case 50:
                        c0400Pl.g = typedArrayObtainStyledAttributes.getDimension(index2, c0400Pl.g);
                        break;
                    case 51:
                        c0400Pl.i = typedArrayObtainStyledAttributes.getDimension(index2, c0400Pl.i);
                        break;
                    case 52:
                        c0400Pl.j = typedArrayObtainStyledAttributes.getDimension(index2, c0400Pl.j);
                        break;
                    case 53:
                        c0400Pl.k = typedArrayObtainStyledAttributes.getDimension(index2, c0400Pl.k);
                        break;
                    case 54:
                        c0322Ml.X = typedArrayObtainStyledAttributes.getInt(index2, c0322Ml.X);
                        break;
                    case 55:
                        c0322Ml.Y = typedArrayObtainStyledAttributes.getInt(index2, c0322Ml.Y);
                        break;
                    case 56:
                        c0322Ml.Z = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.Z);
                        break;
                    case 57:
                        c0322Ml.a0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.a0);
                        break;
                    case 58:
                        c0322Ml.b0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.b0);
                        break;
                    case 59:
                        c0322Ml.c0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.c0);
                        break;
                    case 60:
                        c0400Pl.a = typedArrayObtainStyledAttributes.getFloat(index2, c0400Pl.a);
                        break;
                    case 61:
                        c0322Ml.z = f(typedArrayObtainStyledAttributes, index2, c0322Ml.z);
                        break;
                    case 62:
                        c0322Ml.A = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.A);
                        break;
                    case 63:
                        c0322Ml.B = typedArrayObtainStyledAttributes.getFloat(index2, c0322Ml.B);
                        break;
                    case 64:
                        c0348Nl.a = f(typedArrayObtainStyledAttributes, index2, c0348Nl.a);
                        break;
                    case 65:
                        if (typedArrayObtainStyledAttributes.peekValue(index2).type == 3) {
                            typedArrayObtainStyledAttributes.getString(index2);
                            c0348Nl.getClass();
                            break;
                        } else {
                            String str = strArr[typedArrayObtainStyledAttributes.getInteger(index2, 0)];
                            c0348Nl.getClass();
                            break;
                        }
                    case 66:
                        typedArrayObtainStyledAttributes.getInt(index2, 0);
                        c0348Nl.getClass();
                        break;
                    case 67:
                        c0348Nl.e = typedArrayObtainStyledAttributes.getFloat(index2, c0348Nl.e);
                        break;
                    case 68:
                        c0374Ol.d = typedArrayObtainStyledAttributes.getFloat(index2, c0374Ol.d);
                        break;
                    case 69:
                        c0322Ml.d0 = typedArrayObtainStyledAttributes.getFloat(index2, 1.0f);
                        break;
                    case 70:
                        c0322Ml.e0 = typedArrayObtainStyledAttributes.getFloat(index2, 1.0f);
                        break;
                    case 71:
                        break;
                    case 72:
                        c0322Ml.f0 = typedArrayObtainStyledAttributes.getInt(index2, c0322Ml.f0);
                        break;
                    case 73:
                        c0322Ml.g0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.g0);
                        break;
                    case 74:
                        c0322Ml.j0 = typedArrayObtainStyledAttributes.getString(index2);
                        break;
                    case 75:
                        c0322Ml.n0 = typedArrayObtainStyledAttributes.getBoolean(index2, c0322Ml.n0);
                        break;
                    case 76:
                        c0348Nl.c = typedArrayObtainStyledAttributes.getInt(index2, c0348Nl.c);
                        break;
                    case 77:
                        c0322Ml.k0 = typedArrayObtainStyledAttributes.getString(index2);
                        break;
                    case 78:
                        c0374Ol.b = typedArrayObtainStyledAttributes.getInt(index2, c0374Ol.b);
                        break;
                    case 79:
                        c0348Nl.d = typedArrayObtainStyledAttributes.getFloat(index2, c0348Nl.d);
                        break;
                    case 80:
                        c0322Ml.l0 = typedArrayObtainStyledAttributes.getBoolean(index2, c0322Ml.l0);
                        break;
                    case 81:
                        c0322Ml.m0 = typedArrayObtainStyledAttributes.getBoolean(index2, c0322Ml.m0);
                        break;
                    case 82:
                        c0348Nl.b = typedArrayObtainStyledAttributes.getInteger(index2, c0348Nl.b);
                        break;
                    case 83:
                        c0400Pl.h = f(typedArrayObtainStyledAttributes, index2, c0400Pl.h);
                        break;
                    case 84:
                        c0348Nl.g = typedArrayObtainStyledAttributes.getInteger(index2, c0348Nl.g);
                        break;
                    case 85:
                        c0348Nl.f = typedArrayObtainStyledAttributes.getFloat(index2, c0348Nl.f);
                        break;
                    case 86:
                        int i7 = typedArrayObtainStyledAttributes.peekValue(index2).type;
                        if (i7 == 1) {
                            c0348Nl.i = typedArrayObtainStyledAttributes.getResourceId(index2, -1);
                        } else if (i7 == 3) {
                            String string2 = typedArrayObtainStyledAttributes.getString(index2);
                            c0348Nl.h = string2;
                            if (string2.indexOf("/") > 0) {
                                c0348Nl.i = typedArrayObtainStyledAttributes.getResourceId(index2, -1);
                            }
                        } else {
                            typedArrayObtainStyledAttributes.getInteger(index2, c0348Nl.i);
                        }
                        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:
                        c0322Ml.q = f(typedArrayObtainStyledAttributes, index2, c0322Ml.q);
                        break;
                    case 92:
                        c0322Ml.r = f(typedArrayObtainStyledAttributes, index2, c0322Ml.r);
                        break;
                    case 93:
                        c0322Ml.L = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.L);
                        break;
                    case 94:
                        c0322Ml.S = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c0322Ml.S);
                        break;
                    case 95:
                        g(c0322Ml, typedArrayObtainStyledAttributes, index2, 0);
                        break;
                    case 96:
                        g(c0322Ml, typedArrayObtainStyledAttributes, index2, 1);
                        break;
                    case 97:
                        c0322Ml.o0 = typedArrayObtainStyledAttributes.getInt(index2, c0322Ml.o0);
                        break;
                }
            }
            if (c0322Ml.j0 != null) {
                c0322Ml.i0 = null;
            }
        }
        typedArrayObtainStyledAttributes.recycle();
        return c0297Ll;
    }

    public static int f(TypedArray typedArray, int i, int i2) {
        int resourceId = typedArray.getResourceId(i, i2);
        return resourceId == -1 ? typedArray.getInt(i, -1) : resourceId;
    }

    /* JADX WARN: Removed duplicated region for block: B:20:0x0036  */
    /* JADX WARN: Removed duplicated region for block: B:26:0x0044  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static void g(java.lang.Object r7, android.content.res.TypedArray r8, int r9, int r10) {
        /*
            Method dump skipped, instructions count: 370
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0426Ql.g(java.lang.Object, android.content.res.TypedArray, int, int):void");
    }

    public static void h(C0141Fl c0141Fl, 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 f2 = Float.parseFloat(strSubstring3);
                        float f3 = Float.parseFloat(strSubstring4);
                        if (f2 > 0.0f && f3 > 0.0f) {
                            if (i == 1) {
                                Math.abs(f3 / f2);
                            } else {
                                Math.abs(f2 / f3);
                            }
                        }
                    }
                }
            } catch (NumberFormatException unused) {
            }
        }
        c0141Fl.G = str;
    }

    public final void a(ConstraintLayout constraintLayout) {
        int childCount = constraintLayout.getChildCount();
        HashMap map = this.c;
        HashSet hashSet = new HashSet(map.keySet());
        for (int i = 0; i < childCount; i++) {
            View childAt = constraintLayout.getChildAt(i);
            int id = childAt.getId();
            if (!map.containsKey(Integer.valueOf(id))) {
                try {
                    childAt.getContext().getResources().getResourceEntryName(childAt.getId());
                } catch (Exception unused) {
                }
            } else {
                if (this.b && id == -1) {
                    throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
                }
                if (id != -1 && map.containsKey(Integer.valueOf(id))) {
                    hashSet.remove(Integer.valueOf(id));
                    C0297Ll c0297Ll = (C0297Ll) map.get(Integer.valueOf(id));
                    if (c0297Ll != null) {
                        C0374Ol c0374Ol = c0297Ll.b;
                        C0322Ml c0322Ml = c0297Ll.d;
                        C0400Pl c0400Pl = c0297Ll.e;
                        if (childAt instanceof C0625Yc) {
                            c0322Ml.h0 = 1;
                            C0625Yc c0625Yc = (C0625Yc) childAt;
                            c0625Yc.setId(id);
                            c0625Yc.setType(c0322Ml.f0);
                            c0625Yc.setMargin(c0322Ml.g0);
                            c0625Yc.setAllowsGoneWidget(c0322Ml.n0);
                            int[] iArr = c0322Ml.i0;
                            if (iArr != null) {
                                c0625Yc.setReferencedIds(iArr);
                            } else {
                                String str = c0322Ml.j0;
                                if (str != null) {
                                    int[] iArrC = c(c0625Yc, str);
                                    c0322Ml.i0 = iArrC;
                                    c0625Yc.setReferencedIds(iArrC);
                                }
                            }
                        }
                        C0141Fl c0141Fl = (C0141Fl) childAt.getLayoutParams();
                        c0141Fl.a();
                        c0297Ll.a(c0141Fl);
                        HashMap map2 = c0297Ll.f;
                        Class<?> cls = childAt.getClass();
                        for (String strU : map2.keySet()) {
                            C0011Al c0011Al = (C0011Al) map2.get(strU);
                            if (!c0011Al.a) {
                                strU = AbstractC2462sn.u("set", strU);
                            }
                            try {
                                int iW = AbstractC2462sn.w(c0011Al.b);
                                Class cls2 = Float.TYPE;
                                Class cls3 = Integer.TYPE;
                                switch (iW) {
                                    case 0:
                                        cls.getMethod(strU, cls3).invoke(childAt, Integer.valueOf(c0011Al.c));
                                        break;
                                    case 1:
                                        cls.getMethod(strU, cls2).invoke(childAt, Float.valueOf(c0011Al.d));
                                        break;
                                    case 2:
                                        cls.getMethod(strU, cls3).invoke(childAt, Integer.valueOf(c0011Al.g));
                                        break;
                                    case 3:
                                        Method method = cls.getMethod(strU, Drawable.class);
                                        ColorDrawable colorDrawable = new ColorDrawable();
                                        colorDrawable.setColor(c0011Al.g);
                                        method.invoke(childAt, colorDrawable);
                                        break;
                                    case 4:
                                        cls.getMethod(strU, CharSequence.class).invoke(childAt, c0011Al.e);
                                        break;
                                    case 5:
                                        cls.getMethod(strU, Boolean.TYPE).invoke(childAt, Boolean.valueOf(c0011Al.f));
                                        break;
                                    case 6:
                                        cls.getMethod(strU, cls2).invoke(childAt, Float.valueOf(c0011Al.d));
                                        break;
                                    case 7:
                                        cls.getMethod(strU, cls3).invoke(childAt, Integer.valueOf(c0011Al.c));
                                        break;
                                }
                            } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException unused2) {
                            }
                        }
                        childAt.setLayoutParams(c0141Fl);
                        if (c0374Ol.b == 0) {
                            childAt.setVisibility(c0374Ol.a);
                        }
                        childAt.setAlpha(c0374Ol.c);
                        childAt.setRotation(c0400Pl.a);
                        childAt.setRotationX(c0400Pl.b);
                        childAt.setRotationY(c0400Pl.c);
                        childAt.setScaleX(c0400Pl.d);
                        childAt.setScaleY(c0400Pl.e);
                        if (c0400Pl.h != -1) {
                            if (((View) childAt.getParent()).findViewById(c0400Pl.h) != null) {
                                float bottom = (r5.getBottom() + r5.getTop()) / 2.0f;
                                float right = (r5.getRight() + r5.getLeft()) / 2.0f;
                                if (childAt.getRight() - childAt.getLeft() > 0 && childAt.getBottom() - childAt.getTop() > 0) {
                                    childAt.setPivotX(right - childAt.getLeft());
                                    childAt.setPivotY(bottom - childAt.getTop());
                                }
                            }
                        } else {
                            if (!Float.isNaN(c0400Pl.f)) {
                                childAt.setPivotX(c0400Pl.f);
                            }
                            if (!Float.isNaN(c0400Pl.g)) {
                                childAt.setPivotY(c0400Pl.g);
                            }
                        }
                        childAt.setTranslationX(c0400Pl.i);
                        childAt.setTranslationY(c0400Pl.j);
                        childAt.setTranslationZ(c0400Pl.k);
                        if (c0400Pl.l) {
                            childAt.setElevation(c0400Pl.m);
                        }
                    }
                }
            }
        }
        Iterator it = hashSet.iterator();
        while (it.hasNext()) {
            Integer num = (Integer) it.next();
            C0297Ll c0297Ll2 = (C0297Ll) map.get(num);
            if (c0297Ll2 != null) {
                C0322Ml c0322Ml2 = c0297Ll2.d;
                if (c0322Ml2.h0 == 1) {
                    Context context = constraintLayout.getContext();
                    C0625Yc c0625Yc2 = new C0625Yc(context);
                    c0625Yc2.l = new int[32];
                    c0625Yc2.r = new HashMap();
                    c0625Yc2.n = context;
                    C0651Zc c0651Zc = new C0651Zc();
                    c0651Zc.s0 = 0;
                    c0651Zc.t0 = true;
                    c0651Zc.u0 = 0;
                    c0651Zc.v0 = false;
                    c0625Yc2.u = c0651Zc;
                    c0625Yc2.f82o = c0651Zc;
                    c0625Yc2.i();
                    c0625Yc2.setVisibility(8);
                    c0625Yc2.setId(num.intValue());
                    int[] iArr2 = c0322Ml2.i0;
                    if (iArr2 != null) {
                        c0625Yc2.setReferencedIds(iArr2);
                    } else {
                        String str2 = c0322Ml2.j0;
                        if (str2 != null) {
                            int[] iArrC2 = c(c0625Yc2, str2);
                            c0322Ml2.i0 = iArrC2;
                            c0625Yc2.setReferencedIds(iArrC2);
                        }
                    }
                    c0625Yc2.setType(c0322Ml2.f0);
                    c0625Yc2.setMargin(c0322Ml2.g0);
                    C0141Fl c0141FlD = ConstraintLayout.d();
                    c0625Yc2.i();
                    c0297Ll2.a(c0141FlD);
                    constraintLayout.addView(c0625Yc2, c0141FlD);
                }
                if (c0322Ml2.a) {
                    View c2509tE = new C2509tE(constraintLayout.getContext());
                    c2509tE.setId(num.intValue());
                    C0141Fl c0141FlD2 = ConstraintLayout.d();
                    c0297Ll2.a(c0141FlD2);
                    constraintLayout.addView(c2509tE, c0141FlD2);
                }
            }
        }
        for (int i2 = 0; i2 < childCount; i2++) {
            View childAt2 = constraintLayout.getChildAt(i2);
            if (childAt2 instanceof AbstractC0089Dl) {
                ((AbstractC0089Dl) childAt2).e(constraintLayout);
            }
        }
    }

    public final void b(ConstraintLayout constraintLayout) {
        int i;
        HashMap map;
        int i2;
        int i3;
        C0426Ql c0426Ql = this;
        int childCount = constraintLayout.getChildCount();
        HashMap map2 = c0426Ql.c;
        map2.clear();
        int i4 = 0;
        while (i4 < childCount) {
            View childAt = constraintLayout.getChildAt(i4);
            C0141Fl c0141Fl = (C0141Fl) childAt.getLayoutParams();
            int id = childAt.getId();
            if (c0426Ql.b && id == -1) {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            }
            if (!map2.containsKey(Integer.valueOf(id))) {
                map2.put(Integer.valueOf(id), new C0297Ll());
            }
            C0297Ll c0297Ll = (C0297Ll) map2.get(Integer.valueOf(id));
            if (c0297Ll == null) {
                i = childCount;
                map = map2;
                i2 = i4;
            } else {
                C0374Ol c0374Ol = c0297Ll.b;
                C0322Ml c0322Ml = c0297Ll.d;
                C0400Pl c0400Pl = c0297Ll.e;
                HashMap map3 = new HashMap();
                Class<?> cls = childAt.getClass();
                HashMap map4 = c0426Ql.a;
                for (String str : map4.keySet()) {
                    int i5 = childCount;
                    C0011Al c0011Al = (C0011Al) map4.get(str);
                    HashMap map5 = map2;
                    try {
                        if (str.equals("BackgroundColor")) {
                            i3 = i4;
                            try {
                                map3.put(str, new C0011Al(c0011Al, Integer.valueOf(((ColorDrawable) childAt.getBackground()).getColor())));
                            } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException unused) {
                            }
                        } else {
                            i3 = i4;
                            map3.put(str, new C0011Al(c0011Al, cls.getMethod("getMap" + str, null).invoke(childAt, null)));
                        }
                    } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException unused2) {
                        i3 = i4;
                    }
                    map2 = map5;
                    childCount = i5;
                    i4 = i3;
                }
                i = childCount;
                map = map2;
                i2 = i4;
                c0297Ll.f = map3;
                c0297Ll.a = id;
                c0322Ml.h = c0141Fl.e;
                c0322Ml.i = c0141Fl.f;
                c0322Ml.j = c0141Fl.g;
                c0322Ml.k = c0141Fl.h;
                c0322Ml.l = c0141Fl.i;
                c0322Ml.m = c0141Fl.j;
                c0322Ml.n = c0141Fl.k;
                c0322Ml.f242o = c0141Fl.l;
                c0322Ml.p = c0141Fl.m;
                c0322Ml.q = c0141Fl.n;
                c0322Ml.r = c0141Fl.f125o;
                c0322Ml.s = c0141Fl.s;
                c0322Ml.t = c0141Fl.t;
                c0322Ml.u = c0141Fl.u;
                c0322Ml.v = c0141Fl.v;
                c0322Ml.w = c0141Fl.E;
                c0322Ml.x = c0141Fl.F;
                c0322Ml.y = c0141Fl.G;
                c0322Ml.z = c0141Fl.p;
                c0322Ml.A = c0141Fl.q;
                c0322Ml.B = c0141Fl.r;
                c0322Ml.C = c0141Fl.T;
                c0322Ml.D = c0141Fl.U;
                c0322Ml.E = c0141Fl.V;
                c0322Ml.f = c0141Fl.c;
                c0322Ml.d = c0141Fl.a;
                c0322Ml.e = c0141Fl.b;
                c0322Ml.b = ((ViewGroup.MarginLayoutParams) c0141Fl).width;
                c0322Ml.c = ((ViewGroup.MarginLayoutParams) c0141Fl).height;
                c0322Ml.F = ((ViewGroup.MarginLayoutParams) c0141Fl).leftMargin;
                c0322Ml.G = ((ViewGroup.MarginLayoutParams) c0141Fl).rightMargin;
                c0322Ml.H = ((ViewGroup.MarginLayoutParams) c0141Fl).topMargin;
                c0322Ml.I = ((ViewGroup.MarginLayoutParams) c0141Fl).bottomMargin;
                c0322Ml.L = c0141Fl.D;
                c0322Ml.T = c0141Fl.I;
                c0322Ml.U = c0141Fl.H;
                c0322Ml.W = c0141Fl.K;
                c0322Ml.V = c0141Fl.J;
                c0322Ml.l0 = c0141Fl.W;
                c0322Ml.m0 = c0141Fl.X;
                c0322Ml.X = c0141Fl.L;
                c0322Ml.Y = c0141Fl.M;
                c0322Ml.Z = c0141Fl.P;
                c0322Ml.a0 = c0141Fl.Q;
                c0322Ml.b0 = c0141Fl.N;
                c0322Ml.c0 = c0141Fl.O;
                c0322Ml.d0 = c0141Fl.R;
                c0322Ml.e0 = c0141Fl.S;
                c0322Ml.k0 = c0141Fl.Y;
                c0322Ml.N = c0141Fl.x;
                c0322Ml.P = c0141Fl.z;
                c0322Ml.M = c0141Fl.w;
                c0322Ml.O = c0141Fl.y;
                c0322Ml.R = c0141Fl.A;
                c0322Ml.Q = c0141Fl.B;
                c0322Ml.S = c0141Fl.C;
                c0322Ml.o0 = c0141Fl.Z;
                c0322Ml.J = c0141Fl.getMarginEnd();
                c0322Ml.K = c0141Fl.getMarginStart();
                c0374Ol.a = childAt.getVisibility();
                c0374Ol.c = childAt.getAlpha();
                c0400Pl.a = childAt.getRotation();
                c0400Pl.b = childAt.getRotationX();
                c0400Pl.c = childAt.getRotationY();
                c0400Pl.d = childAt.getScaleX();
                c0400Pl.e = childAt.getScaleY();
                float pivotX = childAt.getPivotX();
                float pivotY = childAt.getPivotY();
                if (pivotX != 0.0d || pivotY != 0.0d) {
                    c0400Pl.f = pivotX;
                    c0400Pl.g = pivotY;
                }
                c0400Pl.i = childAt.getTranslationX();
                c0400Pl.j = childAt.getTranslationY();
                c0400Pl.k = childAt.getTranslationZ();
                if (c0400Pl.l) {
                    c0400Pl.m = childAt.getElevation();
                }
                if (childAt instanceof C0625Yc) {
                    C0625Yc c0625Yc = (C0625Yc) childAt;
                    c0322Ml.n0 = c0625Yc.getAllowsGoneWidget();
                    c0322Ml.i0 = c0625Yc.getReferencedIds();
                    c0322Ml.f0 = c0625Yc.getType();
                    c0322Ml.g0 = c0625Yc.getMargin();
                }
            }
            i4 = i2 + 1;
            c0426Ql = this;
            map2 = map;
            childCount = i;
        }
    }

    public final void e(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();
                    C0297Ll c0297LlD = d(context, Xml.asAttributeSet(xml), false);
                    if (name.equalsIgnoreCase("Guideline")) {
                        c0297LlD.d.a = true;
                    }
                    this.c.put(Integer.valueOf(c0297LlD.a), c0297LlD);
                }
            }
        } catch (IOException | XmlPullParserException unused) {
        }
    }
}
