package z;

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.Log;
import android.util.SparseIntArray;
import android.util.Xml;
import android.view.View;
import android.view.ViewGroup;
import androidx.constraintlayout.widget.Barrier;
import androidx.constraintlayout.widget.ConstraintLayout;
import io.flutter.Build;
import io.flutter.embedding.android.AndroidTouchProcessor;
import io.flutter.plugin.editing.FlutterTextUtils;
import io.sentry.flutter.SentryFlutterPluginKt;
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 org.xmlpull.v1.XmlPullParserException;
import p0.AbstractC0928a;
import v.AbstractC1072a;
import y.AbstractC1109a;

/* JADX INFO: loaded from: classes.dex */
public final class n {

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final int[] f10954d = {0, 4, 8};

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public static final SparseIntArray f10955e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public static final SparseIntArray f10956f;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final HashMap f10957a = new HashMap();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final boolean f10958b = true;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final HashMap f10959c = new HashMap();

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        f10955e = sparseIntArray;
        SparseIntArray sparseIntArray2 = new SparseIntArray();
        f10956f = 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(Barrier barrier, String str) {
        int iIntValue;
        String[] strArrSplit = str.split(",");
        Context context = barrier.getContext();
        int[] iArr = new int[strArrSplit.length];
        int i = 0;
        int i5 = 0;
        while (i < strArrSplit.length) {
            String strTrim = strArrSplit[i].trim();
            Object obj = null;
            try {
                iIntValue = q.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 (strTrim != null) {
                    HashMap map = constraintLayout.f3896w;
                    if (map != null && map.containsKey(strTrim)) {
                        obj = constraintLayout.f3896w.get(strTrim);
                    }
                } else {
                    constraintLayout.getClass();
                }
                if (obj != null && (obj instanceof Integer)) {
                    iIntValue = ((Integer) obj).intValue();
                }
            }
            iArr[i5] = iIntValue;
            i++;
            i5++;
        }
        return i5 != strArrSplit.length ? Arrays.copyOf(iArr, i5) : iArr;
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:126:0x05fc. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:12:0x0088. Please report as an issue. */
    public static C1125i d(Context context, AttributeSet attributeSet, boolean z5) {
        int i;
        String str;
        String str2;
        int i5;
        int i6;
        C1125i c1125i = new C1125i();
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, z5 ? r.f10963c : r.f10961a);
        int[] iArr = f10954d;
        String[] strArr = AbstractC1072a.f10392a;
        SparseIntArray sparseIntArray = f10955e;
        l lVar = c1125i.f10863b;
        m mVar = c1125i.f10866e;
        C1127k c1127k = c1125i.f10864c;
        C1126j c1126j = c1125i.f10865d;
        String str3 = "ConstraintSet";
        if (z5) {
            C1124h c1124h = new C1124h();
            c1124h.f10851a = new int[10];
            c1124h.f10852b = new int[10];
            c1124h.f10853c = 0;
            c1124h.f10854d = new int[10];
            c1124h.f10855e = new float[10];
            c1124h.f10856f = 0;
            c1124h.f10857g = new int[5];
            c1124h.f10858h = new String[5];
            c1124h.i = 0;
            c1124h.f10859j = new int[4];
            c1124h.f10860k = new boolean[4];
            c1124h.f10861l = 0;
            c1127k.getClass();
            c1126j.getClass();
            mVar.getClass();
            int i7 = 0;
            for (int indexCount = typedArrayObtainStyledAttributes.getIndexCount(); i7 < indexCount; indexCount = i6) {
                int index = typedArrayObtainStyledAttributes.getIndex(i7);
                int i8 = i7;
                switch (f10956f.get(index)) {
                    case 2:
                        i6 = indexCount;
                        c1124h.b(2, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.I));
                        break;
                    case 3:
                    case 4:
                    case AndroidTouchProcessor.PointerChange.PAN_ZOOM_END /* 9 */:
                    case FlutterTextUtils.LINE_FEED /* 10 */:
                    case Build.API_LEVELS.API_25 /* 25 */:
                    case Build.API_LEVELS.API_26 /* 26 */:
                    case Build.API_LEVELS.API_29 /* 29 */:
                    case Build.API_LEVELS.API_30 /* 30 */:
                    case Build.API_LEVELS.API_32 /* 32 */:
                    case Build.API_LEVELS.API_33 /* 33 */:
                    case Build.API_LEVELS.API_35 /* 35 */:
                    case Build.API_LEVELS.API_36 /* 36 */:
                    case 61:
                    case 88:
                    case 89:
                    case 90:
                    case 91:
                    case 92:
                    default:
                        StringBuilder sb = new StringBuilder("Unknown attribute 0x");
                        i6 = indexCount;
                        sb.append(Integer.toHexString(index));
                        sb.append("   ");
                        sb.append(sparseIntArray.get(index));
                        Log.w("ConstraintSet", sb.toString());
                        break;
                    case 5:
                        i6 = indexCount;
                        c1124h.c(5, typedArrayObtainStyledAttributes.getString(index));
                        break;
                    case 6:
                        i6 = indexCount;
                        c1124h.b(6, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c1126j.f10871C));
                        break;
                    case 7:
                        i6 = indexCount;
                        c1124h.b(7, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c1126j.f10872D));
                        break;
                    case 8:
                        i6 = indexCount;
                        c1124h.b(8, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.J));
                        break;
                    case 11:
                        i6 = indexCount;
                        c1124h.b(11, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10881P));
                        break;
                    case 12:
                        i6 = indexCount;
                        c1124h.b(12, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10882Q));
                        break;
                    case FlutterTextUtils.CARRIAGE_RETURN /* 13 */:
                        i6 = indexCount;
                        c1124h.b(13, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10878M));
                        break;
                    case 14:
                        i6 = indexCount;
                        c1124h.b(14, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10880O));
                        break;
                    case 15:
                        i6 = indexCount;
                        c1124h.b(15, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10883R));
                        break;
                    case SentryFlutterPluginKt.VIDEO_BLOCK_SIZE /* 16 */:
                        i6 = indexCount;
                        c1124h.b(16, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10879N));
                        break;
                    case 17:
                        i6 = indexCount;
                        c1124h.b(17, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c1126j.f10897d));
                        break;
                    case 18:
                        i6 = indexCount;
                        c1124h.b(18, typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, c1126j.f10899e));
                        break;
                    case 19:
                        i6 = indexCount;
                        c1124h.a(19, typedArrayObtainStyledAttributes.getFloat(index, c1126j.f10901f));
                        break;
                    case 20:
                        i6 = indexCount;
                        c1124h.a(20, typedArrayObtainStyledAttributes.getFloat(index, c1126j.f10924w));
                        break;
                    case Build.API_LEVELS.API_21 /* 21 */:
                        i6 = indexCount;
                        c1124h.b(21, typedArrayObtainStyledAttributes.getLayoutDimension(index, c1126j.f10895c));
                        break;
                    case Build.API_LEVELS.API_22 /* 22 */:
                        i6 = indexCount;
                        c1124h.b(22, iArr[typedArrayObtainStyledAttributes.getInt(index, lVar.f10937a)]);
                        break;
                    case Build.API_LEVELS.API_23 /* 23 */:
                        i6 = indexCount;
                        c1124h.b(23, typedArrayObtainStyledAttributes.getLayoutDimension(index, c1126j.f10893b));
                        break;
                    case 24:
                        i6 = indexCount;
                        c1124h.b(24, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10874F));
                        break;
                    case Build.API_LEVELS.API_27 /* 27 */:
                        i6 = indexCount;
                        c1124h.b(27, typedArrayObtainStyledAttributes.getInt(index, c1126j.f10873E));
                        break;
                    case Build.API_LEVELS.API_28 /* 28 */:
                        i6 = indexCount;
                        c1124h.b(28, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10875G));
                        break;
                    case Build.API_LEVELS.API_31 /* 31 */:
                        i6 = indexCount;
                        c1124h.b(31, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.K));
                        break;
                    case Build.API_LEVELS.API_34 /* 34 */:
                        i6 = indexCount;
                        c1124h.b(34, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10876H));
                        break;
                    case 37:
                        i6 = indexCount;
                        c1124h.a(37, typedArrayObtainStyledAttributes.getFloat(index, c1126j.f10925x));
                        break;
                    case 38:
                        i6 = indexCount;
                        int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, c1125i.f10862a);
                        c1125i.f10862a = resourceId;
                        c1124h.b(38, resourceId);
                        break;
                    case 39:
                        i6 = indexCount;
                        c1124h.a(39, typedArrayObtainStyledAttributes.getFloat(index, c1126j.f10886U));
                        break;
                    case 40:
                        i6 = indexCount;
                        c1124h.a(40, typedArrayObtainStyledAttributes.getFloat(index, c1126j.f10885T));
                        break;
                    case 41:
                        i6 = indexCount;
                        c1124h.b(41, typedArrayObtainStyledAttributes.getInt(index, c1126j.f10887V));
                        break;
                    case 42:
                        i6 = indexCount;
                        c1124h.b(42, typedArrayObtainStyledAttributes.getInt(index, c1126j.f10888W));
                        break;
                    case 43:
                        i6 = indexCount;
                        c1124h.a(43, typedArrayObtainStyledAttributes.getFloat(index, lVar.f10939c));
                        break;
                    case 44:
                        i6 = indexCount;
                        c1124h.d(44, true);
                        c1124h.a(44, typedArrayObtainStyledAttributes.getDimension(index, mVar.f10953m));
                        break;
                    case 45:
                        i6 = indexCount;
                        c1124h.a(45, typedArrayObtainStyledAttributes.getFloat(index, mVar.f10943b));
                        break;
                    case 46:
                        i6 = indexCount;
                        c1124h.a(46, typedArrayObtainStyledAttributes.getFloat(index, mVar.f10944c));
                        break;
                    case 47:
                        i6 = indexCount;
                        c1124h.a(47, typedArrayObtainStyledAttributes.getFloat(index, mVar.f10945d));
                        break;
                    case 48:
                        i6 = indexCount;
                        c1124h.a(48, typedArrayObtainStyledAttributes.getFloat(index, mVar.f10946e));
                        break;
                    case 49:
                        i6 = indexCount;
                        c1124h.a(49, typedArrayObtainStyledAttributes.getDimension(index, mVar.f10947f));
                        break;
                    case 50:
                        i6 = indexCount;
                        c1124h.a(50, typedArrayObtainStyledAttributes.getDimension(index, mVar.f10948g));
                        break;
                    case 51:
                        i6 = indexCount;
                        c1124h.a(51, typedArrayObtainStyledAttributes.getDimension(index, mVar.i));
                        break;
                    case 52:
                        i6 = indexCount;
                        c1124h.a(52, typedArrayObtainStyledAttributes.getDimension(index, mVar.f10950j));
                        break;
                    case 53:
                        i6 = indexCount;
                        c1124h.a(53, typedArrayObtainStyledAttributes.getDimension(index, mVar.f10951k));
                        break;
                    case 54:
                        i6 = indexCount;
                        c1124h.b(54, typedArrayObtainStyledAttributes.getInt(index, c1126j.X));
                        break;
                    case 55:
                        i6 = indexCount;
                        c1124h.b(55, typedArrayObtainStyledAttributes.getInt(index, c1126j.f10889Y));
                        break;
                    case 56:
                        i6 = indexCount;
                        c1124h.b(56, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10890Z));
                        break;
                    case 57:
                        i6 = indexCount;
                        c1124h.b(57, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10892a0));
                        break;
                    case 58:
                        i6 = indexCount;
                        c1124h.b(58, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10894b0));
                        break;
                    case 59:
                        i6 = indexCount;
                        c1124h.b(59, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10896c0));
                        break;
                    case 60:
                        i6 = indexCount;
                        c1124h.a(60, typedArrayObtainStyledAttributes.getFloat(index, mVar.f10942a));
                        break;
                    case 62:
                        i6 = indexCount;
                        c1124h.b(62, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10869A));
                        break;
                    case 63:
                        i6 = indexCount;
                        c1124h.a(63, typedArrayObtainStyledAttributes.getFloat(index, c1126j.f10870B));
                        break;
                    case 64:
                        i6 = indexCount;
                        c1124h.b(64, f(typedArrayObtainStyledAttributes, index, c1127k.f10929a));
                        break;
                    case 65:
                        i6 = indexCount;
                        if (typedArrayObtainStyledAttributes.peekValue(index).type == 3) {
                            c1124h.c(65, typedArrayObtainStyledAttributes.getString(index));
                        } else {
                            c1124h.c(65, strArr[typedArrayObtainStyledAttributes.getInteger(index, 0)]);
                        }
                        break;
                    case 66:
                        i6 = indexCount;
                        c1124h.b(66, typedArrayObtainStyledAttributes.getInt(index, 0));
                        break;
                    case 67:
                        i6 = indexCount;
                        c1124h.a(67, typedArrayObtainStyledAttributes.getFloat(index, c1127k.f10933e));
                        break;
                    case 68:
                        i6 = indexCount;
                        c1124h.a(68, typedArrayObtainStyledAttributes.getFloat(index, lVar.f10940d));
                        break;
                    case 69:
                        i6 = indexCount;
                        c1124h.a(69, typedArrayObtainStyledAttributes.getFloat(index, 1.0f));
                        break;
                    case 70:
                        i6 = indexCount;
                        c1124h.a(70, typedArrayObtainStyledAttributes.getFloat(index, 1.0f));
                        break;
                    case 71:
                        i6 = indexCount;
                        Log.e("ConstraintSet", "CURRENTLY UNSUPPORTED");
                        break;
                    case 72:
                        i6 = indexCount;
                        c1124h.b(72, typedArrayObtainStyledAttributes.getInt(index, c1126j.f10902f0));
                        break;
                    case 73:
                        i6 = indexCount;
                        c1124h.b(73, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10904g0));
                        break;
                    case 74:
                        i6 = indexCount;
                        c1124h.c(74, typedArrayObtainStyledAttributes.getString(index));
                        break;
                    case 75:
                        i6 = indexCount;
                        c1124h.d(75, typedArrayObtainStyledAttributes.getBoolean(index, c1126j.f10916n0));
                        break;
                    case 76:
                        i6 = indexCount;
                        c1124h.b(76, typedArrayObtainStyledAttributes.getInt(index, c1127k.f10931c));
                        break;
                    case 77:
                        i6 = indexCount;
                        c1124h.c(77, typedArrayObtainStyledAttributes.getString(index));
                        break;
                    case 78:
                        i6 = indexCount;
                        c1124h.b(78, typedArrayObtainStyledAttributes.getInt(index, lVar.f10938b));
                        break;
                    case 79:
                        i6 = indexCount;
                        c1124h.a(79, typedArrayObtainStyledAttributes.getFloat(index, c1127k.f10932d));
                        break;
                    case 80:
                        i6 = indexCount;
                        c1124h.d(80, typedArrayObtainStyledAttributes.getBoolean(index, c1126j.l0));
                        break;
                    case 81:
                        i6 = indexCount;
                        c1124h.d(81, typedArrayObtainStyledAttributes.getBoolean(index, c1126j.f10914m0));
                        break;
                    case 82:
                        i6 = indexCount;
                        c1124h.b(82, typedArrayObtainStyledAttributes.getInteger(index, c1127k.f10930b));
                        break;
                    case 83:
                        i6 = indexCount;
                        c1124h.b(83, f(typedArrayObtainStyledAttributes, index, mVar.f10949h));
                        break;
                    case 84:
                        i6 = indexCount;
                        c1124h.b(84, typedArrayObtainStyledAttributes.getInteger(index, c1127k.f10935g));
                        break;
                    case 85:
                        i6 = indexCount;
                        c1124h.a(85, typedArrayObtainStyledAttributes.getFloat(index, c1127k.f10934f));
                        break;
                    case 86:
                        i6 = indexCount;
                        int i9 = typedArrayObtainStyledAttributes.peekValue(index).type;
                        if (i9 == 1) {
                            int resourceId2 = typedArrayObtainStyledAttributes.getResourceId(index, -1);
                            c1127k.i = resourceId2;
                            c1124h.b(89, resourceId2);
                            if (c1127k.i != -1) {
                                c1124h.b(88, -2);
                            }
                        } else if (i9 == 3) {
                            String string = typedArrayObtainStyledAttributes.getString(index);
                            c1127k.f10936h = string;
                            c1124h.c(90, string);
                            if (c1127k.f10936h.indexOf("/") > 0) {
                                int resourceId3 = typedArrayObtainStyledAttributes.getResourceId(index, -1);
                                c1127k.i = resourceId3;
                                c1124h.b(89, resourceId3);
                                c1124h.b(88, -2);
                            } else {
                                c1124h.b(88, -1);
                            }
                        } else {
                            c1124h.b(88, typedArrayObtainStyledAttributes.getInteger(index, c1127k.i));
                        }
                        break;
                    case 87:
                        i6 = indexCount;
                        Log.w("ConstraintSet", "unused attribute 0x" + Integer.toHexString(index) + "   " + sparseIntArray.get(index));
                        break;
                    case 93:
                        i6 = indexCount;
                        c1124h.b(93, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10877L));
                        break;
                    case 94:
                        i6 = indexCount;
                        c1124h.b(94, typedArrayObtainStyledAttributes.getDimensionPixelSize(index, c1126j.f10884S));
                        break;
                    case 95:
                        i6 = indexCount;
                        g(c1124h, typedArrayObtainStyledAttributes, index, 0);
                        break;
                    case 96:
                        i6 = indexCount;
                        g(c1124h, typedArrayObtainStyledAttributes, index, 1);
                        break;
                    case 97:
                        i6 = indexCount;
                        c1124h.b(97, typedArrayObtainStyledAttributes.getInt(index, c1126j.f10918o0));
                        break;
                    case 98:
                        i6 = indexCount;
                        int i10 = AbstractC1109a.f10718C;
                        if (typedArrayObtainStyledAttributes.peekValue(index).type == 3) {
                            typedArrayObtainStyledAttributes.getString(index);
                        } else {
                            c1125i.f10862a = typedArrayObtainStyledAttributes.getResourceId(index, c1125i.f10862a);
                        }
                        break;
                    case 99:
                        i6 = indexCount;
                        c1124h.d(99, typedArrayObtainStyledAttributes.getBoolean(index, c1126j.f10903g));
                        break;
                }
                i7 = i8 + 1;
            }
        } else {
            String str4 = "CURRENTLY UNSUPPORTED";
            int i11 = 1;
            int i12 = 0;
            for (int indexCount2 = typedArrayObtainStyledAttributes.getIndexCount(); i12 < indexCount2; indexCount2 = i) {
                int index2 = typedArrayObtainStyledAttributes.getIndex(i12);
                if (index2 != i11 && 23 != index2) {
                    if (24 != index2) {
                        c1127k.getClass();
                        c1126j.getClass();
                        mVar.getClass();
                    }
                }
                switch (sparseIntArray.get(index2)) {
                    case 1:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.p = f(typedArrayObtainStyledAttributes, index2, c1126j.p);
                        i5 = 1;
                        break;
                    case 2:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.I = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.I);
                        i5 = 1;
                        break;
                    case 3:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10917o = f(typedArrayObtainStyledAttributes, index2, c1126j.f10917o);
                        i5 = 1;
                        break;
                    case 4:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10915n = f(typedArrayObtainStyledAttributes, index2, c1126j.f10915n);
                        i5 = 1;
                        break;
                    case 5:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10926y = typedArrayObtainStyledAttributes.getString(index2);
                        i5 = 1;
                        break;
                    case 6:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10871C = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c1126j.f10871C);
                        i5 = 1;
                        break;
                    case 7:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10872D = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c1126j.f10872D);
                        i5 = 1;
                        break;
                    case 8:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.J = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.J);
                        i5 = 1;
                        break;
                    case AndroidTouchProcessor.PointerChange.PAN_ZOOM_END /* 9 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10923v = f(typedArrayObtainStyledAttributes, index2, c1126j.f10923v);
                        i5 = 1;
                        break;
                    case FlutterTextUtils.LINE_FEED /* 10 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10922u = f(typedArrayObtainStyledAttributes, index2, c1126j.f10922u);
                        i5 = 1;
                        break;
                    case 11:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10881P = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10881P);
                        i5 = 1;
                        break;
                    case 12:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10882Q = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10882Q);
                        i5 = 1;
                        break;
                    case FlutterTextUtils.CARRIAGE_RETURN /* 13 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10878M = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10878M);
                        i5 = 1;
                        break;
                    case 14:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10880O = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10880O);
                        i5 = 1;
                        break;
                    case 15:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10883R = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10883R);
                        i5 = 1;
                        break;
                    case SentryFlutterPluginKt.VIDEO_BLOCK_SIZE /* 16 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10879N = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10879N);
                        i5 = 1;
                        break;
                    case 17:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10897d = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c1126j.f10897d);
                        i5 = 1;
                        break;
                    case 18:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10899e = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index2, c1126j.f10899e);
                        i5 = 1;
                        break;
                    case 19:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10901f = typedArrayObtainStyledAttributes.getFloat(index2, c1126j.f10901f);
                        i5 = 1;
                        break;
                    case 20:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10924w = typedArrayObtainStyledAttributes.getFloat(index2, c1126j.f10924w);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_21 /* 21 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10895c = typedArrayObtainStyledAttributes.getLayoutDimension(index2, c1126j.f10895c);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_22 /* 22 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        int i13 = typedArrayObtainStyledAttributes.getInt(index2, lVar.f10937a);
                        lVar.f10937a = i13;
                        lVar.f10937a = iArr[i13];
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_23 /* 23 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10893b = typedArrayObtainStyledAttributes.getLayoutDimension(index2, c1126j.f10893b);
                        i5 = 1;
                        break;
                    case 24:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10874F = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10874F);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_25 /* 25 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10905h = f(typedArrayObtainStyledAttributes, index2, c1126j.f10905h);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_26 /* 26 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.i = f(typedArrayObtainStyledAttributes, index2, c1126j.i);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_27 /* 27 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10873E = typedArrayObtainStyledAttributes.getInt(index2, c1126j.f10873E);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_28 /* 28 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10875G = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10875G);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_29 /* 29 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10908j = f(typedArrayObtainStyledAttributes, index2, c1126j.f10908j);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_30 /* 30 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10910k = f(typedArrayObtainStyledAttributes, index2, c1126j.f10910k);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_31 /* 31 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.K = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.K);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_32 /* 32 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10920s = f(typedArrayObtainStyledAttributes, index2, c1126j.f10920s);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_33 /* 33 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10921t = f(typedArrayObtainStyledAttributes, index2, c1126j.f10921t);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_34 /* 34 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10876H = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10876H);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_35 /* 35 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10913m = f(typedArrayObtainStyledAttributes, index2, c1126j.f10913m);
                        i5 = 1;
                        break;
                    case Build.API_LEVELS.API_36 /* 36 */:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10912l = f(typedArrayObtainStyledAttributes, index2, c1126j.f10912l);
                        i5 = 1;
                        break;
                    case 37:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10925x = typedArrayObtainStyledAttributes.getFloat(index2, c1126j.f10925x);
                        i5 = 1;
                        break;
                    case 38:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1125i.f10862a = typedArrayObtainStyledAttributes.getResourceId(index2, c1125i.f10862a);
                        i5 = 1;
                        break;
                    case 39:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10886U = typedArrayObtainStyledAttributes.getFloat(index2, c1126j.f10886U);
                        i5 = 1;
                        break;
                    case 40:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10885T = typedArrayObtainStyledAttributes.getFloat(index2, c1126j.f10885T);
                        i5 = 1;
                        break;
                    case 41:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10887V = typedArrayObtainStyledAttributes.getInt(index2, c1126j.f10887V);
                        i5 = 1;
                        break;
                    case 42:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10888W = typedArrayObtainStyledAttributes.getInt(index2, c1126j.f10888W);
                        i5 = 1;
                        break;
                    case 43:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        lVar.f10939c = typedArrayObtainStyledAttributes.getFloat(index2, lVar.f10939c);
                        i5 = 1;
                        break;
                    case 44:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        mVar.f10952l = true;
                        mVar.f10953m = typedArrayObtainStyledAttributes.getDimension(index2, mVar.f10953m);
                        i5 = 1;
                        break;
                    case 45:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        mVar.f10943b = typedArrayObtainStyledAttributes.getFloat(index2, mVar.f10943b);
                        i5 = 1;
                        break;
                    case 46:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        mVar.f10944c = typedArrayObtainStyledAttributes.getFloat(index2, mVar.f10944c);
                        i5 = 1;
                        break;
                    case 47:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        mVar.f10945d = typedArrayObtainStyledAttributes.getFloat(index2, mVar.f10945d);
                        i5 = 1;
                        break;
                    case 48:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        mVar.f10946e = typedArrayObtainStyledAttributes.getFloat(index2, mVar.f10946e);
                        i5 = 1;
                        break;
                    case 49:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        mVar.f10947f = typedArrayObtainStyledAttributes.getDimension(index2, mVar.f10947f);
                        i5 = 1;
                        break;
                    case 50:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        mVar.f10948g = typedArrayObtainStyledAttributes.getDimension(index2, mVar.f10948g);
                        i5 = 1;
                        break;
                    case 51:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        mVar.i = typedArrayObtainStyledAttributes.getDimension(index2, mVar.i);
                        i5 = 1;
                        break;
                    case 52:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        mVar.f10950j = typedArrayObtainStyledAttributes.getDimension(index2, mVar.f10950j);
                        i5 = 1;
                        break;
                    case 53:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        mVar.f10951k = typedArrayObtainStyledAttributes.getDimension(index2, mVar.f10951k);
                        i5 = 1;
                        break;
                    case 54:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.X = typedArrayObtainStyledAttributes.getInt(index2, c1126j.X);
                        i5 = 1;
                        break;
                    case 55:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10889Y = typedArrayObtainStyledAttributes.getInt(index2, c1126j.f10889Y);
                        i5 = 1;
                        break;
                    case 56:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10890Z = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10890Z);
                        i5 = 1;
                        break;
                    case 57:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10892a0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10892a0);
                        i5 = 1;
                        break;
                    case 58:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10894b0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10894b0);
                        i5 = 1;
                        break;
                    case 59:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10896c0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10896c0);
                        i5 = 1;
                        break;
                    case 60:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        mVar.f10942a = typedArrayObtainStyledAttributes.getFloat(index2, mVar.f10942a);
                        i5 = 1;
                        break;
                    case 61:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10927z = f(typedArrayObtainStyledAttributes, index2, c1126j.f10927z);
                        i5 = 1;
                        break;
                    case 62:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10869A = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10869A);
                        i5 = 1;
                        break;
                    case 63:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1126j.f10870B = typedArrayObtainStyledAttributes.getFloat(index2, c1126j.f10870B);
                        i5 = 1;
                        break;
                    case 64:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        c1127k.f10929a = f(typedArrayObtainStyledAttributes, index2, c1127k.f10929a);
                        i5 = 1;
                        break;
                    case 65:
                        i = indexCount2;
                        str = str4;
                        str2 = str3;
                        if (typedArrayObtainStyledAttributes.peekValue(index2).type == 3) {
                            typedArrayObtainStyledAttributes.getString(index2);
                            c1127k.getClass();
                            i5 = 1;
                        } else {
                            String str5 = strArr[typedArrayObtainStyledAttributes.getInteger(index2, 0)];
                            c1127k.getClass();
                            i5 = 1;
                        }
                        break;
                    case 66:
                        i = indexCount2;
                        str = str4;
                        typedArrayObtainStyledAttributes.getInt(index2, 0);
                        c1127k.getClass();
                        str2 = str3;
                        i5 = 1;
                        break;
                    case 67:
                        i = indexCount2;
                        str = str4;
                        c1127k.f10933e = typedArrayObtainStyledAttributes.getFloat(index2, c1127k.f10933e);
                        str2 = str3;
                        i5 = 1;
                        break;
                    case 68:
                        i = indexCount2;
                        str = str4;
                        lVar.f10940d = typedArrayObtainStyledAttributes.getFloat(index2, lVar.f10940d);
                        str2 = str3;
                        i5 = 1;
                        break;
                    case 69:
                        i = indexCount2;
                        str = str4;
                        c1126j.f10898d0 = typedArrayObtainStyledAttributes.getFloat(index2, 1.0f);
                        str2 = str3;
                        i5 = 1;
                        break;
                    case 70:
                        i = indexCount2;
                        str = str4;
                        c1126j.f10900e0 = typedArrayObtainStyledAttributes.getFloat(index2, 1.0f);
                        str2 = str3;
                        i5 = 1;
                        break;
                    case 71:
                        i = indexCount2;
                        str = str4;
                        Log.e(str3, str);
                        str2 = str3;
                        i5 = 1;
                        break;
                    case 72:
                        i = indexCount2;
                        c1126j.f10902f0 = typedArrayObtainStyledAttributes.getInt(index2, c1126j.f10902f0);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 73:
                        i = indexCount2;
                        c1126j.f10904g0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10904g0);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 74:
                        i = indexCount2;
                        c1126j.f10909j0 = typedArrayObtainStyledAttributes.getString(index2);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 75:
                        i = indexCount2;
                        c1126j.f10916n0 = typedArrayObtainStyledAttributes.getBoolean(index2, c1126j.f10916n0);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 76:
                        i = indexCount2;
                        c1127k.f10931c = typedArrayObtainStyledAttributes.getInt(index2, c1127k.f10931c);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 77:
                        i = indexCount2;
                        c1126j.f10911k0 = typedArrayObtainStyledAttributes.getString(index2);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 78:
                        i = indexCount2;
                        lVar.f10938b = typedArrayObtainStyledAttributes.getInt(index2, lVar.f10938b);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 79:
                        i = indexCount2;
                        c1127k.f10932d = typedArrayObtainStyledAttributes.getFloat(index2, c1127k.f10932d);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 80:
                        i = indexCount2;
                        c1126j.l0 = typedArrayObtainStyledAttributes.getBoolean(index2, c1126j.l0);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 81:
                        i = indexCount2;
                        c1126j.f10914m0 = typedArrayObtainStyledAttributes.getBoolean(index2, c1126j.f10914m0);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 82:
                        i = indexCount2;
                        c1127k.f10930b = typedArrayObtainStyledAttributes.getInteger(index2, c1127k.f10930b);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 83:
                        i = indexCount2;
                        mVar.f10949h = f(typedArrayObtainStyledAttributes, index2, mVar.f10949h);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 84:
                        i = indexCount2;
                        c1127k.f10935g = typedArrayObtainStyledAttributes.getInteger(index2, c1127k.f10935g);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 85:
                        i = indexCount2;
                        c1127k.f10934f = typedArrayObtainStyledAttributes.getFloat(index2, c1127k.f10934f);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 86:
                        i = indexCount2;
                        int i14 = typedArrayObtainStyledAttributes.peekValue(index2).type;
                        if (i14 == 1) {
                            c1127k.i = typedArrayObtainStyledAttributes.getResourceId(index2, -1);
                        } else if (i14 == 3) {
                            String string2 = typedArrayObtainStyledAttributes.getString(index2);
                            c1127k.f10936h = string2;
                            if (string2.indexOf("/") > 0) {
                                c1127k.i = typedArrayObtainStyledAttributes.getResourceId(index2, -1);
                            }
                        } else {
                            typedArrayObtainStyledAttributes.getInteger(index2, c1127k.i);
                        }
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 87:
                        i = indexCount2;
                        Log.w(str3, "unused attribute 0x" + Integer.toHexString(index2) + "   " + sparseIntArray.get(index2));
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 88:
                    case 89:
                    case 90:
                    default:
                        StringBuilder sb2 = new StringBuilder("Unknown attribute 0x");
                        i = indexCount2;
                        sb2.append(Integer.toHexString(index2));
                        sb2.append("   ");
                        sb2.append(sparseIntArray.get(index2));
                        Log.w(str3, sb2.toString());
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 91:
                        i = indexCount2;
                        c1126j.q = f(typedArrayObtainStyledAttributes, index2, c1126j.q);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 92:
                        i = indexCount2;
                        c1126j.f10919r = f(typedArrayObtainStyledAttributes, index2, c1126j.f10919r);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 93:
                        i = indexCount2;
                        c1126j.f10877L = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10877L);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 94:
                        i = indexCount2;
                        c1126j.f10884S = typedArrayObtainStyledAttributes.getDimensionPixelSize(index2, c1126j.f10884S);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 95:
                        i = indexCount2;
                        g(c1126j, typedArrayObtainStyledAttributes, index2, 0);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                    case 96:
                        i = indexCount2;
                        g(c1126j, typedArrayObtainStyledAttributes, index2, 1);
                        i5 = 1;
                        str = str4;
                        str2 = str3;
                        break;
                    case 97:
                        i = indexCount2;
                        c1126j.f10918o0 = typedArrayObtainStyledAttributes.getInt(index2, c1126j.f10918o0);
                        str = str4;
                        i5 = 1;
                        str2 = str3;
                        break;
                }
                i12++;
                i11 = i5;
                str3 = str2;
                str4 = str;
            }
            if (c1126j.f10909j0 != null) {
                c1126j.f10907i0 = null;
            }
        }
        typedArrayObtainStyledAttributes.recycle();
        return c1125i;
    }

    public static int f(TypedArray typedArray, int i, int i5) {
        int resourceId = typedArray.getResourceId(i, i5);
        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 code enable 'Show inconsistent code' option in preferences
    */
    public static void g(java.lang.Object r7, android.content.res.TypedArray r8, int r9, int r10) {
        /*
            Method dump skipped, instruction units count: 370
            To view this dump change 'Code comments level' option to 'DEBUG'
        */
        throw new UnsupportedOperationException("Method not decompiled: z.n.g(java.lang.Object, android.content.res.TypedArray, int, int):void");
    }

    public static void h(C1120d c1120d, 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 f6 = Float.parseFloat(strSubstring3);
                        float f7 = Float.parseFloat(strSubstring4);
                        if (f6 > 0.0f && f7 > 0.0f) {
                            if (i == 1) {
                                Math.abs(f7 / f6);
                            } else {
                                Math.abs(f6 / f7);
                            }
                        }
                    }
                }
            } catch (NumberFormatException unused) {
            }
        }
        c1120d.f10782G = str;
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    public final void a(ConstraintLayout constraintLayout) {
        HashSet hashSet;
        int i;
        int i5;
        String resourceEntryName;
        n nVar = this;
        int childCount = constraintLayout.getChildCount();
        HashMap map = nVar.f10959c;
        HashSet<Integer> hashSet2 = new HashSet(map.keySet());
        int i6 = 0;
        while (i6 < childCount) {
            View childAt = constraintLayout.getChildAt(i6);
            int id = childAt.getId();
            if (!map.containsKey(Integer.valueOf(id))) {
                StringBuilder sb = new StringBuilder("id unknown ");
                try {
                    resourceEntryName = childAt.getContext().getResources().getResourceEntryName(childAt.getId());
                } catch (Exception unused) {
                    resourceEntryName = "UNKNOWN";
                }
                sb.append(resourceEntryName);
                Log.w("ConstraintSet", sb.toString());
            } else {
                if (nVar.f10958b && id == -1) {
                    throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
                }
                if (id != -1) {
                    if (map.containsKey(Integer.valueOf(id))) {
                        hashSet2.remove(Integer.valueOf(id));
                        C1125i c1125i = (C1125i) map.get(Integer.valueOf(id));
                        if (c1125i != null) {
                            if (childAt instanceof Barrier) {
                                C1126j c1126j = c1125i.f10865d;
                                c1126j.f10906h0 = 1;
                                Barrier barrier = (Barrier) childAt;
                                barrier.setId(id);
                                barrier.setType(c1126j.f10902f0);
                                barrier.setMargin(c1126j.f10904g0);
                                barrier.setAllowsGoneWidget(c1126j.f10916n0);
                                int[] iArr = c1126j.f10907i0;
                                if (iArr != null) {
                                    barrier.setReferencedIds(iArr);
                                } else {
                                    String str = c1126j.f10909j0;
                                    if (str != null) {
                                        int[] iArrC = c(barrier, str);
                                        c1126j.f10907i0 = iArrC;
                                        barrier.setReferencedIds(iArrC);
                                    }
                                }
                            }
                            C1120d c1120d = (C1120d) childAt.getLayoutParams();
                            c1120d.a();
                            c1125i.a(c1120d);
                            HashMap map2 = c1125i.f10867f;
                            Class<?> cls = childAt.getClass();
                            for (String str2 : map2.keySet()) {
                                C1117a c1117a = (C1117a) map2.get(str2);
                                String strF = !c1117a.f10763a ? s0.c.f("set", str2) : str2;
                                HashSet hashSet3 = hashSet2;
                                try {
                                    int iC = u.e.c(c1117a.f10764b);
                                    Class cls2 = Float.TYPE;
                                    Class cls3 = Integer.TYPE;
                                    switch (iC) {
                                        case 0:
                                            i5 = i6;
                                            cls.getMethod(strF, cls3).invoke(childAt, Integer.valueOf(c1117a.f10765c));
                                            break;
                                        case 1:
                                            i5 = i6;
                                            cls.getMethod(strF, cls2).invoke(childAt, Float.valueOf(c1117a.f10766d));
                                            break;
                                        case 2:
                                            i5 = i6;
                                            cls.getMethod(strF, cls3).invoke(childAt, Integer.valueOf(c1117a.f10769g));
                                            break;
                                        case 3:
                                            Method method = cls.getMethod(strF, Drawable.class);
                                            i5 = i6;
                                            try {
                                                ColorDrawable colorDrawable = new ColorDrawable();
                                                colorDrawable.setColor(c1117a.f10769g);
                                                method.invoke(childAt, colorDrawable);
                                            } catch (IllegalAccessException e2) {
                                                e = e2;
                                                StringBuilder sbN = AbstractC0928a.n(" Custom Attribute \"", str2, "\" not found on ");
                                                sbN.append(cls.getName());
                                                Log.e("TransitionLayout", sbN.toString());
                                                e.printStackTrace();
                                            } catch (NoSuchMethodException e6) {
                                                e = e6;
                                                Log.e("TransitionLayout", e.getMessage());
                                                Log.e("TransitionLayout", " Custom Attribute \"" + str2 + "\" not found on " + cls.getName());
                                                Log.e("TransitionLayout", cls.getName() + " must have a method " + strF);
                                            } catch (InvocationTargetException e7) {
                                                e = e7;
                                                StringBuilder sbN2 = AbstractC0928a.n(" Custom Attribute \"", str2, "\" not found on ");
                                                sbN2.append(cls.getName());
                                                Log.e("TransitionLayout", sbN2.toString());
                                                e.printStackTrace();
                                            }
                                            break;
                                        case 4:
                                            cls.getMethod(strF, CharSequence.class).invoke(childAt, c1117a.f10767e);
                                            i5 = i6;
                                            break;
                                        case 5:
                                            cls.getMethod(strF, Boolean.TYPE).invoke(childAt, Boolean.valueOf(c1117a.f10768f));
                                            i5 = i6;
                                            break;
                                        case 6:
                                            cls.getMethod(strF, cls2).invoke(childAt, Float.valueOf(c1117a.f10766d));
                                            i5 = i6;
                                            break;
                                        case 7:
                                            cls.getMethod(strF, cls3).invoke(childAt, Integer.valueOf(c1117a.f10765c));
                                            i5 = i6;
                                            break;
                                        default:
                                            i5 = i6;
                                            break;
                                    }
                                } catch (IllegalAccessException e8) {
                                    e = e8;
                                    i5 = i6;
                                } catch (NoSuchMethodException e9) {
                                    e = e9;
                                    i5 = i6;
                                } catch (InvocationTargetException e10) {
                                    e = e10;
                                    i5 = i6;
                                }
                                hashSet2 = hashSet3;
                                i6 = i5;
                            }
                            hashSet = hashSet2;
                            i = i6;
                            childAt.setLayoutParams(c1120d);
                            l lVar = c1125i.f10863b;
                            if (lVar.f10938b == 0) {
                                childAt.setVisibility(lVar.f10937a);
                            }
                            childAt.setAlpha(lVar.f10939c);
                            m mVar = c1125i.f10866e;
                            childAt.setRotation(mVar.f10942a);
                            childAt.setRotationX(mVar.f10943b);
                            childAt.setRotationY(mVar.f10944c);
                            childAt.setScaleX(mVar.f10945d);
                            childAt.setScaleY(mVar.f10946e);
                            if (mVar.f10949h != -1) {
                                if (((View) childAt.getParent()).findViewById(mVar.f10949h) != null) {
                                    float bottom = (r1.getBottom() + r1.getTop()) / 2.0f;
                                    float right = (r1.getRight() + r1.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(mVar.f10947f)) {
                                    childAt.setPivotX(mVar.f10947f);
                                }
                                if (!Float.isNaN(mVar.f10948g)) {
                                    childAt.setPivotY(mVar.f10948g);
                                }
                            }
                            childAt.setTranslationX(mVar.i);
                            childAt.setTranslationY(mVar.f10950j);
                            childAt.setTranslationZ(mVar.f10951k);
                            if (mVar.f10952l) {
                                childAt.setElevation(mVar.f10953m);
                            }
                        }
                    } else {
                        hashSet = hashSet2;
                        i = i6;
                        Log.v("ConstraintSet", "WARNING NO CONSTRAINTS for view " + id);
                    }
                }
                i6 = i + 1;
                nVar = this;
                hashSet2 = hashSet;
            }
            hashSet = hashSet2;
            i = i6;
            i6 = i + 1;
            nVar = this;
            hashSet2 = hashSet;
        }
        for (Integer num : hashSet2) {
            C1125i c1125i2 = (C1125i) map.get(num);
            if (c1125i2 != null) {
                C1126j c1126j2 = c1125i2.f10865d;
                if (c1126j2.f10906h0 == 1) {
                    Barrier barrier2 = new Barrier(constraintLayout.getContext());
                    barrier2.setId(num.intValue());
                    int[] iArr2 = c1126j2.f10907i0;
                    if (iArr2 != null) {
                        barrier2.setReferencedIds(iArr2);
                    } else {
                        String str3 = c1126j2.f10909j0;
                        if (str3 != null) {
                            int[] iArrC2 = c(barrier2, str3);
                            c1126j2.f10907i0 = iArrC2;
                            barrier2.setReferencedIds(iArrC2);
                        }
                    }
                    barrier2.setType(c1126j2.f10902f0);
                    barrier2.setMargin(c1126j2.f10904g0);
                    C1120d c1120dG = ConstraintLayout.g();
                    barrier2.i();
                    c1125i2.a(c1120dG);
                    constraintLayout.addView(barrier2, c1120dG);
                }
                if (c1126j2.f10891a) {
                    View pVar = new p(constraintLayout.getContext());
                    pVar.setId(num.intValue());
                    C1120d c1120dG2 = ConstraintLayout.g();
                    c1125i2.a(c1120dG2);
                    constraintLayout.addView(pVar, c1120dG2);
                }
            }
        }
        for (int i7 = 0; i7 < childCount; i7++) {
            View childAt2 = constraintLayout.getChildAt(i7);
            if (childAt2 instanceof AbstractC1118b) {
                ((AbstractC1118b) childAt2).e(constraintLayout);
            }
        }
    }

    public final void b(ConstraintLayout constraintLayout) {
        int i;
        int i5;
        n nVar = this;
        int childCount = constraintLayout.getChildCount();
        HashMap map = nVar.f10959c;
        map.clear();
        int i6 = 0;
        while (i6 < childCount) {
            View childAt = constraintLayout.getChildAt(i6);
            C1120d c1120d = (C1120d) childAt.getLayoutParams();
            int id = childAt.getId();
            if (nVar.f10958b && id == -1) {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            }
            if (!map.containsKey(Integer.valueOf(id))) {
                map.put(Integer.valueOf(id), new C1125i());
            }
            C1125i c1125i = (C1125i) map.get(Integer.valueOf(id));
            if (c1125i == null) {
                i = childCount;
            } else {
                HashMap map2 = nVar.f10957a;
                HashMap map3 = new HashMap();
                Class<?> cls = childAt.getClass();
                for (String str : map2.keySet()) {
                    C1117a c1117a = (C1117a) map2.get(str);
                    try {
                        if (str.equals("BackgroundColor")) {
                            map3.put(str, new C1117a(c1117a, Integer.valueOf(((ColorDrawable) childAt.getBackground()).getColor())));
                            i5 = childCount;
                        } else {
                            i5 = childCount;
                            try {
                                map3.put(str, new C1117a(c1117a, cls.getMethod("getMap" + str, new Class[0]).invoke(childAt, new Object[0])));
                            } catch (IllegalAccessException e2) {
                                e = e2;
                                e.printStackTrace();
                            } catch (NoSuchMethodException e6) {
                                e = e6;
                                e.printStackTrace();
                            } catch (InvocationTargetException e7) {
                                e = e7;
                                e.printStackTrace();
                            }
                        }
                    } catch (IllegalAccessException e8) {
                        e = e8;
                        i5 = childCount;
                    } catch (NoSuchMethodException e9) {
                        e = e9;
                        i5 = childCount;
                    } catch (InvocationTargetException e10) {
                        e = e10;
                        i5 = childCount;
                    }
                    childCount = i5;
                }
                i = childCount;
                c1125i.f10867f = map3;
                c1125i.f10862a = id;
                int i7 = c1120d.f10806e;
                C1126j c1126j = c1125i.f10865d;
                c1126j.f10905h = i7;
                c1126j.i = c1120d.f10808f;
                c1126j.f10908j = c1120d.f10810g;
                c1126j.f10910k = c1120d.f10812h;
                c1126j.f10912l = c1120d.i;
                c1126j.f10913m = c1120d.f10815j;
                c1126j.f10915n = c1120d.f10817k;
                c1126j.f10917o = c1120d.f10819l;
                c1126j.p = c1120d.f10820m;
                c1126j.q = c1120d.f10822n;
                c1126j.f10919r = c1120d.f10824o;
                c1126j.f10920s = c1120d.f10828s;
                c1126j.f10921t = c1120d.f10829t;
                c1126j.f10922u = c1120d.f10830u;
                c1126j.f10923v = c1120d.f10831v;
                c1126j.f10924w = c1120d.f10780E;
                c1126j.f10925x = c1120d.f10781F;
                c1126j.f10926y = c1120d.f10782G;
                c1126j.f10927z = c1120d.p;
                c1126j.f10869A = c1120d.q;
                c1126j.f10870B = c1120d.f10827r;
                c1126j.f10871C = c1120d.f10792T;
                c1126j.f10872D = c1120d.f10793U;
                c1126j.f10873E = c1120d.f10794V;
                c1126j.f10901f = c1120d.f10802c;
                c1126j.f10897d = c1120d.f10798a;
                c1126j.f10899e = c1120d.f10800b;
                c1126j.f10893b = ((ViewGroup.MarginLayoutParams) c1120d).width;
                c1126j.f10895c = ((ViewGroup.MarginLayoutParams) c1120d).height;
                c1126j.f10874F = ((ViewGroup.MarginLayoutParams) c1120d).leftMargin;
                c1126j.f10875G = ((ViewGroup.MarginLayoutParams) c1120d).rightMargin;
                c1126j.f10876H = ((ViewGroup.MarginLayoutParams) c1120d).topMargin;
                c1126j.I = ((ViewGroup.MarginLayoutParams) c1120d).bottomMargin;
                c1126j.f10877L = c1120d.f10779D;
                c1126j.f10885T = c1120d.I;
                c1126j.f10886U = c1120d.f10783H;
                c1126j.f10888W = c1120d.K;
                c1126j.f10887V = c1120d.J;
                c1126j.l0 = c1120d.f10795W;
                c1126j.f10914m0 = c1120d.X;
                c1126j.X = c1120d.f10784L;
                c1126j.f10889Y = c1120d.f10785M;
                c1126j.f10890Z = c1120d.f10788P;
                c1126j.f10892a0 = c1120d.f10789Q;
                c1126j.f10894b0 = c1120d.f10786N;
                c1126j.f10896c0 = c1120d.f10787O;
                c1126j.f10898d0 = c1120d.f10790R;
                c1126j.f10900e0 = c1120d.f10791S;
                c1126j.f10911k0 = c1120d.f10796Y;
                c1126j.f10879N = c1120d.f10833x;
                c1126j.f10881P = c1120d.f10835z;
                c1126j.f10878M = c1120d.f10832w;
                c1126j.f10880O = c1120d.f10834y;
                c1126j.f10883R = c1120d.f10776A;
                c1126j.f10882Q = c1120d.f10777B;
                c1126j.f10884S = c1120d.f10778C;
                c1126j.f10918o0 = c1120d.f10797Z;
                c1126j.J = c1120d.getMarginEnd();
                c1126j.K = c1120d.getMarginStart();
                int visibility = childAt.getVisibility();
                l lVar = c1125i.f10863b;
                lVar.f10937a = visibility;
                lVar.f10939c = childAt.getAlpha();
                float rotation = childAt.getRotation();
                m mVar = c1125i.f10866e;
                mVar.f10942a = rotation;
                mVar.f10943b = childAt.getRotationX();
                mVar.f10944c = childAt.getRotationY();
                mVar.f10945d = childAt.getScaleX();
                mVar.f10946e = childAt.getScaleY();
                float pivotX = childAt.getPivotX();
                float pivotY = childAt.getPivotY();
                if (pivotX != 0.0d || pivotY != 0.0d) {
                    mVar.f10947f = pivotX;
                    mVar.f10948g = pivotY;
                }
                mVar.i = childAt.getTranslationX();
                mVar.f10950j = childAt.getTranslationY();
                mVar.f10951k = childAt.getTranslationZ();
                if (mVar.f10952l) {
                    mVar.f10953m = childAt.getElevation();
                }
                if (childAt instanceof Barrier) {
                    Barrier barrier = (Barrier) childAt;
                    c1126j.f10916n0 = barrier.getAllowsGoneWidget();
                    c1126j.f10907i0 = barrier.getReferencedIds();
                    c1126j.f10902f0 = barrier.getType();
                    c1126j.f10904g0 = barrier.getMargin();
                }
            }
            i6++;
            nVar = this;
            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 == 0) {
                    xml.getName();
                } else if (eventType == 2) {
                    String name = xml.getName();
                    C1125i c1125iD = d(context, Xml.asAttributeSet(xml), false);
                    if (name.equalsIgnoreCase("Guideline")) {
                        c1125iD.f10865d.f10891a = true;
                    }
                    this.f10959c.put(Integer.valueOf(c1125iD.f10862a), c1125iD);
                }
            }
        } catch (IOException e2) {
            e2.printStackTrace();
        } catch (XmlPullParserException e6) {
            e6.printStackTrace();
        }
    }
}
