package androidx.constraintlayout.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseIntArray;
import android.util.Xml;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.sessions.settings.RemoteSettings;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Locale;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

/* loaded from: classes.dex */
public class d {

    /* renamed from: f, reason: collision with root package name */
    private static final int[] f3152f = {0, 4, 8};

    /* renamed from: g, reason: collision with root package name */
    private static SparseIntArray f3153g = new SparseIntArray();

    /* renamed from: h, reason: collision with root package name */
    private static SparseIntArray f3154h = new SparseIntArray();

    /* renamed from: a, reason: collision with root package name */
    public String f3155a = "";

    /* renamed from: b, reason: collision with root package name */
    public int f3156b = 0;

    /* renamed from: c, reason: collision with root package name */
    private HashMap f3157c = new HashMap();

    /* renamed from: d, reason: collision with root package name */
    private boolean f3158d = true;

    /* renamed from: e, reason: collision with root package name */
    private HashMap f3159e = new HashMap();

    /* loaded from: classes.dex */
    public static class a {

        /* renamed from: a, reason: collision with root package name */
        int f3160a;

        /* renamed from: b, reason: collision with root package name */
        String f3161b;

        /* renamed from: c, reason: collision with root package name */
        public final C0088d f3162c = new C0088d();

        /* renamed from: d, reason: collision with root package name */
        public final c f3163d = new c();

        /* renamed from: e, reason: collision with root package name */
        public final b f3164e = new b();

        /* renamed from: f, reason: collision with root package name */
        public final e f3165f = new e();

        /* renamed from: g, reason: collision with root package name */
        public HashMap f3166g = new HashMap();

        /* renamed from: h, reason: collision with root package name */
        C0087a f3167h;

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: androidx.constraintlayout.widget.d$a$a, reason: collision with other inner class name */
        /* loaded from: classes.dex */
        public static class C0087a {

            /* renamed from: a, reason: collision with root package name */
            int[] f3168a = new int[10];

            /* renamed from: b, reason: collision with root package name */
            int[] f3169b = new int[10];

            /* renamed from: c, reason: collision with root package name */
            int f3170c = 0;

            /* renamed from: d, reason: collision with root package name */
            int[] f3171d = new int[10];

            /* renamed from: e, reason: collision with root package name */
            float[] f3172e = new float[10];

            /* renamed from: f, reason: collision with root package name */
            int f3173f = 0;

            /* renamed from: g, reason: collision with root package name */
            int[] f3174g = new int[5];

            /* renamed from: h, reason: collision with root package name */
            String[] f3175h = new String[5];

            /* renamed from: i, reason: collision with root package name */
            int f3176i = 0;

            /* renamed from: j, reason: collision with root package name */
            int[] f3177j = new int[4];

            /* renamed from: k, reason: collision with root package name */
            boolean[] f3178k = new boolean[4];

            /* renamed from: l, reason: collision with root package name */
            int f3179l = 0;

            C0087a() {
            }

            void a(int i10, float f10) {
                int i11 = this.f3173f;
                int[] iArr = this.f3171d;
                if (i11 >= iArr.length) {
                    this.f3171d = Arrays.copyOf(iArr, iArr.length * 2);
                    float[] fArr = this.f3172e;
                    this.f3172e = Arrays.copyOf(fArr, fArr.length * 2);
                }
                int[] iArr2 = this.f3171d;
                int i12 = this.f3173f;
                iArr2[i12] = i10;
                float[] fArr2 = this.f3172e;
                this.f3173f = i12 + 1;
                fArr2[i12] = f10;
            }

            void b(int i10, int i11) {
                int i12 = this.f3170c;
                int[] iArr = this.f3168a;
                if (i12 >= iArr.length) {
                    this.f3168a = Arrays.copyOf(iArr, iArr.length * 2);
                    int[] iArr2 = this.f3169b;
                    this.f3169b = Arrays.copyOf(iArr2, iArr2.length * 2);
                }
                int[] iArr3 = this.f3168a;
                int i13 = this.f3170c;
                iArr3[i13] = i10;
                int[] iArr4 = this.f3169b;
                this.f3170c = i13 + 1;
                iArr4[i13] = i11;
            }

            void c(int i10, String str) {
                int i11 = this.f3176i;
                int[] iArr = this.f3174g;
                if (i11 >= iArr.length) {
                    this.f3174g = Arrays.copyOf(iArr, iArr.length * 2);
                    String[] strArr = this.f3175h;
                    this.f3175h = (String[]) Arrays.copyOf(strArr, strArr.length * 2);
                }
                int[] iArr2 = this.f3174g;
                int i12 = this.f3176i;
                iArr2[i12] = i10;
                String[] strArr2 = this.f3175h;
                this.f3176i = i12 + 1;
                strArr2[i12] = str;
            }

            void d(int i10, boolean z10) {
                int i11 = this.f3179l;
                int[] iArr = this.f3177j;
                if (i11 >= iArr.length) {
                    this.f3177j = Arrays.copyOf(iArr, iArr.length * 2);
                    boolean[] zArr = this.f3178k;
                    this.f3178k = Arrays.copyOf(zArr, zArr.length * 2);
                }
                int[] iArr2 = this.f3177j;
                int i12 = this.f3179l;
                iArr2[i12] = i10;
                boolean[] zArr2 = this.f3178k;
                this.f3179l = i12 + 1;
                zArr2[i12] = z10;
            }
        }

        /* JADX INFO: Access modifiers changed from: private */
        public void d(int i10, ConstraintLayout.b bVar) {
            this.f3160a = i10;
            b bVar2 = this.f3164e;
            bVar2.f3199j = bVar.f3068e;
            bVar2.f3201k = bVar.f3070f;
            bVar2.f3203l = bVar.f3072g;
            bVar2.f3205m = bVar.f3074h;
            bVar2.f3207n = bVar.f3076i;
            bVar2.f3209o = bVar.f3078j;
            bVar2.f3211p = bVar.f3080k;
            bVar2.f3213q = bVar.f3082l;
            bVar2.f3215r = bVar.f3084m;
            bVar2.f3216s = bVar.f3086n;
            bVar2.f3217t = bVar.f3088o;
            bVar2.f3218u = bVar.f3096s;
            bVar2.f3219v = bVar.f3098t;
            bVar2.f3220w = bVar.f3100u;
            bVar2.f3221x = bVar.f3102v;
            bVar2.f3222y = bVar.G;
            bVar2.f3223z = bVar.H;
            bVar2.A = bVar.I;
            bVar2.B = bVar.f3090p;
            bVar2.C = bVar.f3092q;
            bVar2.D = bVar.f3094r;
            bVar2.E = bVar.X;
            bVar2.F = bVar.Y;
            bVar2.G = bVar.Z;
            bVar2.f3195h = bVar.f3064c;
            bVar2.f3191f = bVar.f3060a;
            bVar2.f3193g = bVar.f3062b;
            bVar2.f3187d = ((ViewGroup.MarginLayoutParams) bVar).width;
            bVar2.f3189e = ((ViewGroup.MarginLayoutParams) bVar).height;
            bVar2.H = ((ViewGroup.MarginLayoutParams) bVar).leftMargin;
            bVar2.I = ((ViewGroup.MarginLayoutParams) bVar).rightMargin;
            bVar2.J = ((ViewGroup.MarginLayoutParams) bVar).topMargin;
            bVar2.K = ((ViewGroup.MarginLayoutParams) bVar).bottomMargin;
            bVar2.N = bVar.D;
            bVar2.V = bVar.M;
            bVar2.W = bVar.L;
            bVar2.Y = bVar.O;
            bVar2.X = bVar.N;
            bVar2.f3208n0 = bVar.f3061a0;
            bVar2.f3210o0 = bVar.f3063b0;
            bVar2.Z = bVar.P;
            bVar2.f3182a0 = bVar.Q;
            bVar2.f3184b0 = bVar.T;
            bVar2.f3186c0 = bVar.U;
            bVar2.f3188d0 = bVar.R;
            bVar2.f3190e0 = bVar.S;
            bVar2.f3192f0 = bVar.V;
            bVar2.f3194g0 = bVar.W;
            bVar2.f3206m0 = bVar.f3065c0;
            bVar2.P = bVar.f3106x;
            bVar2.R = bVar.f3108z;
            bVar2.O = bVar.f3104w;
            bVar2.Q = bVar.f3107y;
            bVar2.T = bVar.A;
            bVar2.S = bVar.B;
            bVar2.U = bVar.C;
            bVar2.f3214q0 = bVar.f3067d0;
            bVar2.L = bVar.getMarginEnd();
            this.f3164e.M = bVar.getMarginStart();
        }

        public void b(ConstraintLayout.b bVar) {
            b bVar2 = this.f3164e;
            bVar.f3068e = bVar2.f3199j;
            bVar.f3070f = bVar2.f3201k;
            bVar.f3072g = bVar2.f3203l;
            bVar.f3074h = bVar2.f3205m;
            bVar.f3076i = bVar2.f3207n;
            bVar.f3078j = bVar2.f3209o;
            bVar.f3080k = bVar2.f3211p;
            bVar.f3082l = bVar2.f3213q;
            bVar.f3084m = bVar2.f3215r;
            bVar.f3086n = bVar2.f3216s;
            bVar.f3088o = bVar2.f3217t;
            bVar.f3096s = bVar2.f3218u;
            bVar.f3098t = bVar2.f3219v;
            bVar.f3100u = bVar2.f3220w;
            bVar.f3102v = bVar2.f3221x;
            ((ViewGroup.MarginLayoutParams) bVar).leftMargin = bVar2.H;
            ((ViewGroup.MarginLayoutParams) bVar).rightMargin = bVar2.I;
            ((ViewGroup.MarginLayoutParams) bVar).topMargin = bVar2.J;
            ((ViewGroup.MarginLayoutParams) bVar).bottomMargin = bVar2.K;
            bVar.A = bVar2.T;
            bVar.B = bVar2.S;
            bVar.f3106x = bVar2.P;
            bVar.f3108z = bVar2.R;
            bVar.G = bVar2.f3222y;
            bVar.H = bVar2.f3223z;
            bVar.f3090p = bVar2.B;
            bVar.f3092q = bVar2.C;
            bVar.f3094r = bVar2.D;
            bVar.I = bVar2.A;
            bVar.X = bVar2.E;
            bVar.Y = bVar2.F;
            bVar.M = bVar2.V;
            bVar.L = bVar2.W;
            bVar.O = bVar2.Y;
            bVar.N = bVar2.X;
            bVar.f3061a0 = bVar2.f3208n0;
            bVar.f3063b0 = bVar2.f3210o0;
            bVar.P = bVar2.Z;
            bVar.Q = bVar2.f3182a0;
            bVar.T = bVar2.f3184b0;
            bVar.U = bVar2.f3186c0;
            bVar.R = bVar2.f3188d0;
            bVar.S = bVar2.f3190e0;
            bVar.V = bVar2.f3192f0;
            bVar.W = bVar2.f3194g0;
            bVar.Z = bVar2.G;
            bVar.f3064c = bVar2.f3195h;
            bVar.f3060a = bVar2.f3191f;
            bVar.f3062b = bVar2.f3193g;
            ((ViewGroup.MarginLayoutParams) bVar).width = bVar2.f3187d;
            ((ViewGroup.MarginLayoutParams) bVar).height = bVar2.f3189e;
            String str = bVar2.f3206m0;
            if (str != null) {
                bVar.f3065c0 = str;
            }
            bVar.f3067d0 = bVar2.f3214q0;
            bVar.setMarginStart(bVar2.M);
            bVar.setMarginEnd(this.f3164e.L);
            bVar.a();
        }

        /* renamed from: c, reason: merged with bridge method [inline-methods] */
        public a clone() {
            a aVar = new a();
            aVar.f3164e.a(this.f3164e);
            aVar.f3163d.a(this.f3163d);
            aVar.f3162c.a(this.f3162c);
            aVar.f3165f.a(this.f3165f);
            aVar.f3160a = this.f3160a;
            aVar.f3167h = this.f3167h;
            return aVar;
        }
    }

    /* loaded from: classes.dex */
    public static class b {

        /* renamed from: r0, reason: collision with root package name */
        private static SparseIntArray f3180r0;

        /* renamed from: d, reason: collision with root package name */
        public int f3187d;

        /* renamed from: e, reason: collision with root package name */
        public int f3189e;

        /* renamed from: k0, reason: collision with root package name */
        public int[] f3202k0;

        /* renamed from: l0, reason: collision with root package name */
        public String f3204l0;

        /* renamed from: m0, reason: collision with root package name */
        public String f3206m0;

        /* renamed from: a, reason: collision with root package name */
        public boolean f3181a = false;

        /* renamed from: b, reason: collision with root package name */
        public boolean f3183b = false;

        /* renamed from: c, reason: collision with root package name */
        public boolean f3185c = false;

        /* renamed from: f, reason: collision with root package name */
        public int f3191f = -1;

        /* renamed from: g, reason: collision with root package name */
        public int f3193g = -1;

        /* renamed from: h, reason: collision with root package name */
        public float f3195h = -1.0f;

        /* renamed from: i, reason: collision with root package name */
        public boolean f3197i = true;

        /* renamed from: j, reason: collision with root package name */
        public int f3199j = -1;

        /* renamed from: k, reason: collision with root package name */
        public int f3201k = -1;

        /* renamed from: l, reason: collision with root package name */
        public int f3203l = -1;

        /* renamed from: m, reason: collision with root package name */
        public int f3205m = -1;

        /* renamed from: n, reason: collision with root package name */
        public int f3207n = -1;

        /* renamed from: o, reason: collision with root package name */
        public int f3209o = -1;

        /* renamed from: p, reason: collision with root package name */
        public int f3211p = -1;

        /* renamed from: q, reason: collision with root package name */
        public int f3213q = -1;

        /* renamed from: r, reason: collision with root package name */
        public int f3215r = -1;

        /* renamed from: s, reason: collision with root package name */
        public int f3216s = -1;

        /* renamed from: t, reason: collision with root package name */
        public int f3217t = -1;

        /* renamed from: u, reason: collision with root package name */
        public int f3218u = -1;

        /* renamed from: v, reason: collision with root package name */
        public int f3219v = -1;

        /* renamed from: w, reason: collision with root package name */
        public int f3220w = -1;

        /* renamed from: x, reason: collision with root package name */
        public int f3221x = -1;

        /* renamed from: y, reason: collision with root package name */
        public float f3222y = 0.5f;

        /* renamed from: z, reason: collision with root package name */
        public float f3223z = 0.5f;
        public String A = null;
        public int B = -1;
        public int C = 0;
        public float D = BitmapDescriptorFactory.HUE_RED;
        public int E = -1;
        public int F = -1;
        public int G = -1;
        public int H = 0;
        public int I = 0;
        public int J = 0;
        public int K = 0;
        public int L = 0;
        public int M = 0;
        public int N = 0;
        public int O = Integer.MIN_VALUE;
        public int P = Integer.MIN_VALUE;
        public int Q = Integer.MIN_VALUE;
        public int R = Integer.MIN_VALUE;
        public int S = Integer.MIN_VALUE;
        public int T = Integer.MIN_VALUE;
        public int U = Integer.MIN_VALUE;
        public float V = -1.0f;
        public float W = -1.0f;
        public int X = 0;
        public int Y = 0;
        public int Z = 0;

        /* renamed from: a0, reason: collision with root package name */
        public int f3182a0 = 0;

        /* renamed from: b0, reason: collision with root package name */
        public int f3184b0 = 0;

        /* renamed from: c0, reason: collision with root package name */
        public int f3186c0 = 0;

        /* renamed from: d0, reason: collision with root package name */
        public int f3188d0 = 0;

        /* renamed from: e0, reason: collision with root package name */
        public int f3190e0 = 0;

        /* renamed from: f0, reason: collision with root package name */
        public float f3192f0 = 1.0f;

        /* renamed from: g0, reason: collision with root package name */
        public float f3194g0 = 1.0f;

        /* renamed from: h0, reason: collision with root package name */
        public int f3196h0 = -1;

        /* renamed from: i0, reason: collision with root package name */
        public int f3198i0 = 0;

        /* renamed from: j0, reason: collision with root package name */
        public int f3200j0 = -1;

        /* renamed from: n0, reason: collision with root package name */
        public boolean f3208n0 = false;

        /* renamed from: o0, reason: collision with root package name */
        public boolean f3210o0 = false;

        /* renamed from: p0, reason: collision with root package name */
        public boolean f3212p0 = true;

        /* renamed from: q0, reason: collision with root package name */
        public int f3214q0 = 0;

        static {
            SparseIntArray sparseIntArray = new SparseIntArray();
            f3180r0 = sparseIntArray;
            sparseIntArray.append(g.J5, 24);
            f3180r0.append(g.K5, 25);
            f3180r0.append(g.M5, 28);
            f3180r0.append(g.N5, 29);
            f3180r0.append(g.S5, 35);
            f3180r0.append(g.R5, 34);
            f3180r0.append(g.f3436t5, 4);
            f3180r0.append(g.f3427s5, 3);
            f3180r0.append(g.f3409q5, 1);
            f3180r0.append(g.Y5, 6);
            f3180r0.append(g.Z5, 7);
            f3180r0.append(g.A5, 17);
            f3180r0.append(g.B5, 18);
            f3180r0.append(g.C5, 19);
            f3180r0.append(g.f3373m5, 90);
            f3180r0.append(g.Y4, 26);
            f3180r0.append(g.O5, 31);
            f3180r0.append(g.P5, 32);
            f3180r0.append(g.f3490z5, 10);
            f3180r0.append(g.f3481y5, 9);
            f3180r0.append(g.f3284c6, 13);
            f3180r0.append(g.f3311f6, 16);
            f3180r0.append(g.f3293d6, 14);
            f3180r0.append(g.f3266a6, 11);
            f3180r0.append(g.f3302e6, 15);
            f3180r0.append(g.f3275b6, 12);
            f3180r0.append(g.V5, 38);
            f3180r0.append(g.H5, 37);
            f3180r0.append(g.G5, 39);
            f3180r0.append(g.U5, 40);
            f3180r0.append(g.F5, 20);
            f3180r0.append(g.T5, 36);
            f3180r0.append(g.f3472x5, 5);
            f3180r0.append(g.I5, 91);
            f3180r0.append(g.Q5, 91);
            f3180r0.append(g.L5, 91);
            f3180r0.append(g.f3418r5, 91);
            f3180r0.append(g.f3400p5, 91);
            f3180r0.append(g.f3274b5, 23);
            f3180r0.append(g.f3292d5, 27);
            f3180r0.append(g.f3310f5, 30);
            f3180r0.append(g.f3319g5, 8);
            f3180r0.append(g.f3283c5, 33);
            f3180r0.append(g.f3301e5, 2);
            f3180r0.append(g.Z4, 22);
            f3180r0.append(g.f3265a5, 21);
            f3180r0.append(g.W5, 41);
            f3180r0.append(g.D5, 42);
            f3180r0.append(g.f3391o5, 41);
            f3180r0.append(g.f3382n5, 42);
            f3180r0.append(g.f3320g6, 76);
            f3180r0.append(g.f3445u5, 61);
            f3180r0.append(g.f3463w5, 62);
            f3180r0.append(g.f3454v5, 63);
            f3180r0.append(g.X5, 69);
            f3180r0.append(g.E5, 70);
            f3180r0.append(g.f3355k5, 71);
            f3180r0.append(g.f3337i5, 72);
            f3180r0.append(g.f3346j5, 73);
            f3180r0.append(g.f3364l5, 74);
            f3180r0.append(g.f3328h5, 75);
        }

        public void a(b bVar) {
            this.f3181a = bVar.f3181a;
            this.f3187d = bVar.f3187d;
            this.f3183b = bVar.f3183b;
            this.f3189e = bVar.f3189e;
            this.f3191f = bVar.f3191f;
            this.f3193g = bVar.f3193g;
            this.f3195h = bVar.f3195h;
            this.f3197i = bVar.f3197i;
            this.f3199j = bVar.f3199j;
            this.f3201k = bVar.f3201k;
            this.f3203l = bVar.f3203l;
            this.f3205m = bVar.f3205m;
            this.f3207n = bVar.f3207n;
            this.f3209o = bVar.f3209o;
            this.f3211p = bVar.f3211p;
            this.f3213q = bVar.f3213q;
            this.f3215r = bVar.f3215r;
            this.f3216s = bVar.f3216s;
            this.f3217t = bVar.f3217t;
            this.f3218u = bVar.f3218u;
            this.f3219v = bVar.f3219v;
            this.f3220w = bVar.f3220w;
            this.f3221x = bVar.f3221x;
            this.f3222y = bVar.f3222y;
            this.f3223z = bVar.f3223z;
            this.A = bVar.A;
            this.B = bVar.B;
            this.C = bVar.C;
            this.D = bVar.D;
            this.E = bVar.E;
            this.F = bVar.F;
            this.G = bVar.G;
            this.H = bVar.H;
            this.I = bVar.I;
            this.J = bVar.J;
            this.K = bVar.K;
            this.L = bVar.L;
            this.M = bVar.M;
            this.N = bVar.N;
            this.O = bVar.O;
            this.P = bVar.P;
            this.Q = bVar.Q;
            this.R = bVar.R;
            this.S = bVar.S;
            this.T = bVar.T;
            this.U = bVar.U;
            this.V = bVar.V;
            this.W = bVar.W;
            this.X = bVar.X;
            this.Y = bVar.Y;
            this.Z = bVar.Z;
            this.f3182a0 = bVar.f3182a0;
            this.f3184b0 = bVar.f3184b0;
            this.f3186c0 = bVar.f3186c0;
            this.f3188d0 = bVar.f3188d0;
            this.f3190e0 = bVar.f3190e0;
            this.f3192f0 = bVar.f3192f0;
            this.f3194g0 = bVar.f3194g0;
            this.f3196h0 = bVar.f3196h0;
            this.f3198i0 = bVar.f3198i0;
            this.f3200j0 = bVar.f3200j0;
            this.f3206m0 = bVar.f3206m0;
            int[] iArr = bVar.f3202k0;
            if (iArr == null || bVar.f3204l0 != null) {
                this.f3202k0 = null;
            } else {
                this.f3202k0 = Arrays.copyOf(iArr, iArr.length);
            }
            this.f3204l0 = bVar.f3204l0;
            this.f3208n0 = bVar.f3208n0;
            this.f3210o0 = bVar.f3210o0;
            this.f3212p0 = bVar.f3212p0;
            this.f3214q0 = bVar.f3214q0;
        }

        void b(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, g.X4);
            this.f3183b = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i10 = 0; i10 < indexCount; i10++) {
                int index = obtainStyledAttributes.getIndex(i10);
                int i11 = f3180r0.get(index);
                switch (i11) {
                    case 1:
                        this.f3215r = d.n(obtainStyledAttributes, index, this.f3215r);
                        break;
                    case 2:
                        this.K = obtainStyledAttributes.getDimensionPixelSize(index, this.K);
                        break;
                    case 3:
                        this.f3213q = d.n(obtainStyledAttributes, index, this.f3213q);
                        break;
                    case 4:
                        this.f3211p = d.n(obtainStyledAttributes, index, this.f3211p);
                        break;
                    case 5:
                        this.A = obtainStyledAttributes.getString(index);
                        break;
                    case 6:
                        this.E = obtainStyledAttributes.getDimensionPixelOffset(index, this.E);
                        break;
                    case 7:
                        this.F = obtainStyledAttributes.getDimensionPixelOffset(index, this.F);
                        break;
                    case 8:
                        this.L = obtainStyledAttributes.getDimensionPixelSize(index, this.L);
                        break;
                    case 9:
                        this.f3221x = d.n(obtainStyledAttributes, index, this.f3221x);
                        break;
                    case 10:
                        this.f3220w = d.n(obtainStyledAttributes, index, this.f3220w);
                        break;
                    case 11:
                        this.R = obtainStyledAttributes.getDimensionPixelSize(index, this.R);
                        break;
                    case 12:
                        this.S = obtainStyledAttributes.getDimensionPixelSize(index, this.S);
                        break;
                    case 13:
                        this.O = obtainStyledAttributes.getDimensionPixelSize(index, this.O);
                        break;
                    case 14:
                        this.Q = obtainStyledAttributes.getDimensionPixelSize(index, this.Q);
                        break;
                    case 15:
                        this.T = obtainStyledAttributes.getDimensionPixelSize(index, this.T);
                        break;
                    case 16:
                        this.P = obtainStyledAttributes.getDimensionPixelSize(index, this.P);
                        break;
                    case 17:
                        this.f3191f = obtainStyledAttributes.getDimensionPixelOffset(index, this.f3191f);
                        break;
                    case 18:
                        this.f3193g = obtainStyledAttributes.getDimensionPixelOffset(index, this.f3193g);
                        break;
                    case 19:
                        this.f3195h = obtainStyledAttributes.getFloat(index, this.f3195h);
                        break;
                    case 20:
                        this.f3222y = obtainStyledAttributes.getFloat(index, this.f3222y);
                        break;
                    case 21:
                        this.f3189e = obtainStyledAttributes.getLayoutDimension(index, this.f3189e);
                        break;
                    case 22:
                        this.f3187d = obtainStyledAttributes.getLayoutDimension(index, this.f3187d);
                        break;
                    case 23:
                        this.H = obtainStyledAttributes.getDimensionPixelSize(index, this.H);
                        break;
                    case 24:
                        this.f3199j = d.n(obtainStyledAttributes, index, this.f3199j);
                        break;
                    case 25:
                        this.f3201k = d.n(obtainStyledAttributes, index, this.f3201k);
                        break;
                    case 26:
                        this.G = obtainStyledAttributes.getInt(index, this.G);
                        break;
                    case 27:
                        this.I = obtainStyledAttributes.getDimensionPixelSize(index, this.I);
                        break;
                    case 28:
                        this.f3203l = d.n(obtainStyledAttributes, index, this.f3203l);
                        break;
                    case 29:
                        this.f3205m = d.n(obtainStyledAttributes, index, this.f3205m);
                        break;
                    case 30:
                        this.M = obtainStyledAttributes.getDimensionPixelSize(index, this.M);
                        break;
                    case 31:
                        this.f3218u = d.n(obtainStyledAttributes, index, this.f3218u);
                        break;
                    case 32:
                        this.f3219v = d.n(obtainStyledAttributes, index, this.f3219v);
                        break;
                    case 33:
                        this.J = obtainStyledAttributes.getDimensionPixelSize(index, this.J);
                        break;
                    case 34:
                        this.f3209o = d.n(obtainStyledAttributes, index, this.f3209o);
                        break;
                    case 35:
                        this.f3207n = d.n(obtainStyledAttributes, index, this.f3207n);
                        break;
                    case 36:
                        this.f3223z = obtainStyledAttributes.getFloat(index, this.f3223z);
                        break;
                    case 37:
                        this.W = obtainStyledAttributes.getFloat(index, this.W);
                        break;
                    case 38:
                        this.V = obtainStyledAttributes.getFloat(index, this.V);
                        break;
                    case 39:
                        this.X = obtainStyledAttributes.getInt(index, this.X);
                        break;
                    case 40:
                        this.Y = obtainStyledAttributes.getInt(index, this.Y);
                        break;
                    case 41:
                        d.o(this, obtainStyledAttributes, index, 0);
                        break;
                    case 42:
                        d.o(this, obtainStyledAttributes, index, 1);
                        break;
                    default:
                        switch (i11) {
                            case 61:
                                this.B = d.n(obtainStyledAttributes, index, this.B);
                                break;
                            case 62:
                                this.C = obtainStyledAttributes.getDimensionPixelSize(index, this.C);
                                break;
                            case 63:
                                this.D = obtainStyledAttributes.getFloat(index, this.D);
                                break;
                            default:
                                switch (i11) {
                                    case 69:
                                        this.f3192f0 = obtainStyledAttributes.getFloat(index, 1.0f);
                                        break;
                                    case 70:
                                        this.f3194g0 = obtainStyledAttributes.getFloat(index, 1.0f);
                                        break;
                                    case 71:
                                        Log.e("ConstraintSet", "CURRENTLY UNSUPPORTED");
                                        break;
                                    case 72:
                                        this.f3196h0 = obtainStyledAttributes.getInt(index, this.f3196h0);
                                        break;
                                    case 73:
                                        this.f3198i0 = obtainStyledAttributes.getDimensionPixelSize(index, this.f3198i0);
                                        break;
                                    case 74:
                                        this.f3204l0 = obtainStyledAttributes.getString(index);
                                        break;
                                    case 75:
                                        this.f3212p0 = obtainStyledAttributes.getBoolean(index, this.f3212p0);
                                        break;
                                    case 76:
                                        this.f3214q0 = obtainStyledAttributes.getInt(index, this.f3214q0);
                                        break;
                                    case 77:
                                        this.f3216s = d.n(obtainStyledAttributes, index, this.f3216s);
                                        break;
                                    case 78:
                                        this.f3217t = d.n(obtainStyledAttributes, index, this.f3217t);
                                        break;
                                    case 79:
                                        this.U = obtainStyledAttributes.getDimensionPixelSize(index, this.U);
                                        break;
                                    case 80:
                                        this.N = obtainStyledAttributes.getDimensionPixelSize(index, this.N);
                                        break;
                                    case 81:
                                        this.Z = obtainStyledAttributes.getInt(index, this.Z);
                                        break;
                                    case 82:
                                        this.f3182a0 = obtainStyledAttributes.getInt(index, this.f3182a0);
                                        break;
                                    case 83:
                                        this.f3186c0 = obtainStyledAttributes.getDimensionPixelSize(index, this.f3186c0);
                                        break;
                                    case 84:
                                        this.f3184b0 = obtainStyledAttributes.getDimensionPixelSize(index, this.f3184b0);
                                        break;
                                    case 85:
                                        this.f3190e0 = obtainStyledAttributes.getDimensionPixelSize(index, this.f3190e0);
                                        break;
                                    case 86:
                                        this.f3188d0 = obtainStyledAttributes.getDimensionPixelSize(index, this.f3188d0);
                                        break;
                                    case 87:
                                        this.f3208n0 = obtainStyledAttributes.getBoolean(index, this.f3208n0);
                                        break;
                                    case 88:
                                        this.f3210o0 = obtainStyledAttributes.getBoolean(index, this.f3210o0);
                                        break;
                                    case 89:
                                        this.f3206m0 = obtainStyledAttributes.getString(index);
                                        break;
                                    case 90:
                                        this.f3197i = obtainStyledAttributes.getBoolean(index, this.f3197i);
                                        break;
                                    case 91:
                                        Log.w("ConstraintSet", "unused attribute 0x" + Integer.toHexString(index) + "   " + f3180r0.get(index));
                                        break;
                                    default:
                                        Log.w("ConstraintSet", "Unknown attribute 0x" + Integer.toHexString(index) + "   " + f3180r0.get(index));
                                        break;
                                }
                        }
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    /* loaded from: classes.dex */
    public static class c {

        /* renamed from: o, reason: collision with root package name */
        private static SparseIntArray f3224o;

        /* renamed from: a, reason: collision with root package name */
        public boolean f3225a = false;

        /* renamed from: b, reason: collision with root package name */
        public int f3226b = -1;

        /* renamed from: c, reason: collision with root package name */
        public int f3227c = 0;

        /* renamed from: d, reason: collision with root package name */
        public String f3228d = null;

        /* renamed from: e, reason: collision with root package name */
        public int f3229e = -1;

        /* renamed from: f, reason: collision with root package name */
        public int f3230f = 0;

        /* renamed from: g, reason: collision with root package name */
        public float f3231g = Float.NaN;

        /* renamed from: h, reason: collision with root package name */
        public int f3232h = -1;

        /* renamed from: i, reason: collision with root package name */
        public float f3233i = Float.NaN;

        /* renamed from: j, reason: collision with root package name */
        public float f3234j = Float.NaN;

        /* renamed from: k, reason: collision with root package name */
        public int f3235k = -1;

        /* renamed from: l, reason: collision with root package name */
        public String f3236l = null;

        /* renamed from: m, reason: collision with root package name */
        public int f3237m = -3;

        /* renamed from: n, reason: collision with root package name */
        public int f3238n = -1;

        static {
            SparseIntArray sparseIntArray = new SparseIntArray();
            f3224o = sparseIntArray;
            sparseIntArray.append(g.f3428s6, 1);
            f3224o.append(g.f3446u6, 2);
            f3224o.append(g.f3482y6, 3);
            f3224o.append(g.f3419r6, 4);
            f3224o.append(g.f3410q6, 5);
            f3224o.append(g.f3401p6, 6);
            f3224o.append(g.f3437t6, 7);
            f3224o.append(g.f3473x6, 8);
            f3224o.append(g.f3464w6, 9);
            f3224o.append(g.f3455v6, 10);
        }

        public void a(c cVar) {
            this.f3225a = cVar.f3225a;
            this.f3226b = cVar.f3226b;
            this.f3228d = cVar.f3228d;
            this.f3229e = cVar.f3229e;
            this.f3230f = cVar.f3230f;
            this.f3233i = cVar.f3233i;
            this.f3231g = cVar.f3231g;
            this.f3232h = cVar.f3232h;
        }

        void b(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, g.f3392o6);
            this.f3225a = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i10 = 0; i10 < indexCount; i10++) {
                int index = obtainStyledAttributes.getIndex(i10);
                switch (f3224o.get(index)) {
                    case 1:
                        this.f3233i = obtainStyledAttributes.getFloat(index, this.f3233i);
                        break;
                    case 2:
                        this.f3229e = obtainStyledAttributes.getInt(index, this.f3229e);
                        break;
                    case 3:
                        if (obtainStyledAttributes.peekValue(index).type == 3) {
                            this.f3228d = obtainStyledAttributes.getString(index);
                            break;
                        } else {
                            this.f3228d = g3.a.f19032c[obtainStyledAttributes.getInteger(index, 0)];
                            break;
                        }
                    case 4:
                        this.f3230f = obtainStyledAttributes.getInt(index, 0);
                        break;
                    case 5:
                        this.f3226b = d.n(obtainStyledAttributes, index, this.f3226b);
                        break;
                    case 6:
                        this.f3227c = obtainStyledAttributes.getInteger(index, this.f3227c);
                        break;
                    case 7:
                        this.f3231g = obtainStyledAttributes.getFloat(index, this.f3231g);
                        break;
                    case 8:
                        this.f3235k = obtainStyledAttributes.getInteger(index, this.f3235k);
                        break;
                    case 9:
                        this.f3234j = obtainStyledAttributes.getFloat(index, this.f3234j);
                        break;
                    case 10:
                        int i11 = obtainStyledAttributes.peekValue(index).type;
                        if (i11 == 1) {
                            int resourceId = obtainStyledAttributes.getResourceId(index, -1);
                            this.f3238n = resourceId;
                            if (resourceId != -1) {
                                this.f3237m = -2;
                                break;
                            } else {
                                break;
                            }
                        } else if (i11 == 3) {
                            String string = obtainStyledAttributes.getString(index);
                            this.f3236l = string;
                            if (string.indexOf(RemoteSettings.FORWARD_SLASH_STRING) > 0) {
                                this.f3238n = obtainStyledAttributes.getResourceId(index, -1);
                                this.f3237m = -2;
                                break;
                            } else {
                                this.f3237m = -1;
                                break;
                            }
                        } else {
                            this.f3237m = obtainStyledAttributes.getInteger(index, this.f3238n);
                            break;
                        }
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    /* renamed from: androidx.constraintlayout.widget.d$d, reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public static class C0088d {

        /* renamed from: a, reason: collision with root package name */
        public boolean f3239a = false;

        /* renamed from: b, reason: collision with root package name */
        public int f3240b = 0;

        /* renamed from: c, reason: collision with root package name */
        public int f3241c = 0;

        /* renamed from: d, reason: collision with root package name */
        public float f3242d = 1.0f;

        /* renamed from: e, reason: collision with root package name */
        public float f3243e = Float.NaN;

        public void a(C0088d c0088d) {
            this.f3239a = c0088d.f3239a;
            this.f3240b = c0088d.f3240b;
            this.f3242d = c0088d.f3242d;
            this.f3243e = c0088d.f3243e;
            this.f3241c = c0088d.f3241c;
        }

        void b(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, g.J6);
            this.f3239a = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i10 = 0; i10 < indexCount; i10++) {
                int index = obtainStyledAttributes.getIndex(i10);
                if (index == g.L6) {
                    this.f3242d = obtainStyledAttributes.getFloat(index, this.f3242d);
                } else if (index == g.K6) {
                    this.f3240b = obtainStyledAttributes.getInt(index, this.f3240b);
                    this.f3240b = d.f3152f[this.f3240b];
                } else if (index == g.N6) {
                    this.f3241c = obtainStyledAttributes.getInt(index, this.f3241c);
                } else if (index == g.M6) {
                    this.f3243e = obtainStyledAttributes.getFloat(index, this.f3243e);
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    /* loaded from: classes.dex */
    public static class e {

        /* renamed from: o, reason: collision with root package name */
        private static SparseIntArray f3244o;

        /* renamed from: a, reason: collision with root package name */
        public boolean f3245a = false;

        /* renamed from: b, reason: collision with root package name */
        public float f3246b = BitmapDescriptorFactory.HUE_RED;

        /* renamed from: c, reason: collision with root package name */
        public float f3247c = BitmapDescriptorFactory.HUE_RED;

        /* renamed from: d, reason: collision with root package name */
        public float f3248d = BitmapDescriptorFactory.HUE_RED;

        /* renamed from: e, reason: collision with root package name */
        public float f3249e = 1.0f;

        /* renamed from: f, reason: collision with root package name */
        public float f3250f = 1.0f;

        /* renamed from: g, reason: collision with root package name */
        public float f3251g = Float.NaN;

        /* renamed from: h, reason: collision with root package name */
        public float f3252h = Float.NaN;

        /* renamed from: i, reason: collision with root package name */
        public int f3253i = -1;

        /* renamed from: j, reason: collision with root package name */
        public float f3254j = BitmapDescriptorFactory.HUE_RED;

        /* renamed from: k, reason: collision with root package name */
        public float f3255k = BitmapDescriptorFactory.HUE_RED;

        /* renamed from: l, reason: collision with root package name */
        public float f3256l = BitmapDescriptorFactory.HUE_RED;

        /* renamed from: m, reason: collision with root package name */
        public boolean f3257m = false;

        /* renamed from: n, reason: collision with root package name */
        public float f3258n = BitmapDescriptorFactory.HUE_RED;

        static {
            SparseIntArray sparseIntArray = new SparseIntArray();
            f3244o = sparseIntArray;
            sparseIntArray.append(g.f3339i7, 1);
            f3244o.append(g.f3348j7, 2);
            f3244o.append(g.f3357k7, 3);
            f3244o.append(g.f3321g7, 4);
            f3244o.append(g.f3330h7, 5);
            f3244o.append(g.f3285c7, 6);
            f3244o.append(g.f3294d7, 7);
            f3244o.append(g.f3303e7, 8);
            f3244o.append(g.f3312f7, 9);
            f3244o.append(g.f3366l7, 10);
            f3244o.append(g.f3375m7, 11);
            f3244o.append(g.f3384n7, 12);
        }

        public void a(e eVar) {
            this.f3245a = eVar.f3245a;
            this.f3246b = eVar.f3246b;
            this.f3247c = eVar.f3247c;
            this.f3248d = eVar.f3248d;
            this.f3249e = eVar.f3249e;
            this.f3250f = eVar.f3250f;
            this.f3251g = eVar.f3251g;
            this.f3252h = eVar.f3252h;
            this.f3253i = eVar.f3253i;
            this.f3254j = eVar.f3254j;
            this.f3255k = eVar.f3255k;
            this.f3256l = eVar.f3256l;
            this.f3257m = eVar.f3257m;
            this.f3258n = eVar.f3258n;
        }

        void b(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, g.f3276b7);
            this.f3245a = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i10 = 0; i10 < indexCount; i10++) {
                int index = obtainStyledAttributes.getIndex(i10);
                switch (f3244o.get(index)) {
                    case 1:
                        this.f3246b = obtainStyledAttributes.getFloat(index, this.f3246b);
                        break;
                    case 2:
                        this.f3247c = obtainStyledAttributes.getFloat(index, this.f3247c);
                        break;
                    case 3:
                        this.f3248d = obtainStyledAttributes.getFloat(index, this.f3248d);
                        break;
                    case 4:
                        this.f3249e = obtainStyledAttributes.getFloat(index, this.f3249e);
                        break;
                    case 5:
                        this.f3250f = obtainStyledAttributes.getFloat(index, this.f3250f);
                        break;
                    case 6:
                        this.f3251g = obtainStyledAttributes.getDimension(index, this.f3251g);
                        break;
                    case 7:
                        this.f3252h = obtainStyledAttributes.getDimension(index, this.f3252h);
                        break;
                    case 8:
                        this.f3254j = obtainStyledAttributes.getDimension(index, this.f3254j);
                        break;
                    case 9:
                        this.f3255k = obtainStyledAttributes.getDimension(index, this.f3255k);
                        break;
                    case 10:
                        this.f3256l = obtainStyledAttributes.getDimension(index, this.f3256l);
                        break;
                    case 11:
                        this.f3257m = true;
                        this.f3258n = obtainStyledAttributes.getDimension(index, this.f3258n);
                        break;
                    case 12:
                        this.f3253i = d.n(obtainStyledAttributes, index, this.f3253i);
                        break;
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    static {
        f3153g.append(g.A0, 25);
        f3153g.append(g.B0, 26);
        f3153g.append(g.D0, 29);
        f3153g.append(g.E0, 30);
        f3153g.append(g.K0, 36);
        f3153g.append(g.J0, 35);
        f3153g.append(g.f3323h0, 4);
        f3153g.append(g.f3314g0, 3);
        f3153g.append(g.f3278c0, 1);
        f3153g.append(g.f3296e0, 91);
        f3153g.append(g.f3287d0, 92);
        f3153g.append(g.T0, 6);
        f3153g.append(g.U0, 7);
        f3153g.append(g.f3386o0, 17);
        f3153g.append(g.f3395p0, 18);
        f3153g.append(g.f3404q0, 19);
        f3153g.append(g.Y, 99);
        f3153g.append(g.f3439u, 27);
        f3153g.append(g.F0, 32);
        f3153g.append(g.G0, 33);
        f3153g.append(g.f3377n0, 10);
        f3153g.append(g.f3368m0, 9);
        f3153g.append(g.X0, 13);
        f3153g.append(g.f3261a1, 16);
        f3153g.append(g.Y0, 14);
        f3153g.append(g.V0, 11);
        f3153g.append(g.Z0, 15);
        f3153g.append(g.W0, 12);
        f3153g.append(g.N0, 40);
        f3153g.append(g.f3476y0, 39);
        f3153g.append(g.f3467x0, 41);
        f3153g.append(g.M0, 42);
        f3153g.append(g.f3458w0, 20);
        f3153g.append(g.L0, 37);
        f3153g.append(g.f3359l0, 5);
        f3153g.append(g.f3485z0, 87);
        f3153g.append(g.I0, 87);
        f3153g.append(g.C0, 87);
        f3153g.append(g.f3305f0, 87);
        f3153g.append(g.f3269b0, 87);
        f3153g.append(g.f3484z, 24);
        f3153g.append(g.B, 28);
        f3153g.append(g.N, 31);
        f3153g.append(g.O, 8);
        f3153g.append(g.A, 34);
        f3153g.append(g.C, 2);
        f3153g.append(g.f3466x, 23);
        f3153g.append(g.f3475y, 21);
        f3153g.append(g.O0, 95);
        f3153g.append(g.f3413r0, 96);
        f3153g.append(g.f3457w, 22);
        f3153g.append(g.D, 43);
        f3153g.append(g.Q, 44);
        f3153g.append(g.L, 45);
        f3153g.append(g.M, 46);
        f3153g.append(g.K, 60);
        f3153g.append(g.I, 47);
        f3153g.append(g.J, 48);
        f3153g.append(g.E, 49);
        f3153g.append(g.F, 50);
        f3153g.append(g.G, 51);
        f3153g.append(g.H, 52);
        f3153g.append(g.P, 53);
        f3153g.append(g.P0, 54);
        f3153g.append(g.f3422s0, 55);
        f3153g.append(g.Q0, 56);
        f3153g.append(g.f3431t0, 57);
        f3153g.append(g.R0, 58);
        f3153g.append(g.f3440u0, 59);
        f3153g.append(g.f3332i0, 61);
        f3153g.append(g.f3350k0, 62);
        f3153g.append(g.f3341j0, 63);
        f3153g.append(g.R, 64);
        f3153g.append(g.f3351k1, 65);
        f3153g.append(g.X, 66);
        f3153g.append(g.f3360l1, 67);
        f3153g.append(g.f3288d1, 79);
        f3153g.append(g.f3448v, 38);
        f3153g.append(g.f3279c1, 68);
        f3153g.append(g.S0, 69);
        f3153g.append(g.f3449v0, 70);
        f3153g.append(g.f3270b1, 97);
        f3153g.append(g.V, 71);
        f3153g.append(g.T, 72);
        f3153g.append(g.U, 73);
        f3153g.append(g.W, 74);
        f3153g.append(g.S, 75);
        f3153g.append(g.f3297e1, 76);
        f3153g.append(g.H0, 77);
        f3153g.append(g.f3369m1, 78);
        f3153g.append(g.f3260a0, 80);
        f3153g.append(g.Z, 81);
        f3153g.append(g.f3306f1, 82);
        f3153g.append(g.f3342j1, 83);
        f3153g.append(g.f3333i1, 84);
        f3153g.append(g.f3324h1, 85);
        f3153g.append(g.f3315g1, 86);
        SparseIntArray sparseIntArray = f3154h;
        int i10 = g.P3;
        sparseIntArray.append(i10, 6);
        f3154h.append(i10, 7);
        f3154h.append(g.K2, 27);
        f3154h.append(g.S3, 13);
        f3154h.append(g.V3, 16);
        f3154h.append(g.T3, 14);
        f3154h.append(g.Q3, 11);
        f3154h.append(g.U3, 15);
        f3154h.append(g.R3, 12);
        f3154h.append(g.J3, 40);
        f3154h.append(g.C3, 39);
        f3154h.append(g.B3, 41);
        f3154h.append(g.I3, 42);
        f3154h.append(g.A3, 20);
        f3154h.append(g.H3, 37);
        f3154h.append(g.f3443u3, 5);
        f3154h.append(g.D3, 87);
        f3154h.append(g.G3, 87);
        f3154h.append(g.E3, 87);
        f3154h.append(g.f3416r3, 87);
        f3154h.append(g.f3407q3, 87);
        f3154h.append(g.P2, 24);
        f3154h.append(g.R2, 28);
        f3154h.append(g.f3290d3, 31);
        f3154h.append(g.f3299e3, 8);
        f3154h.append(g.Q2, 34);
        f3154h.append(g.S2, 2);
        f3154h.append(g.N2, 23);
        f3154h.append(g.O2, 21);
        f3154h.append(g.K3, 95);
        f3154h.append(g.f3452v3, 96);
        f3154h.append(g.M2, 22);
        f3154h.append(g.T2, 43);
        f3154h.append(g.f3317g3, 44);
        f3154h.append(g.f3272b3, 45);
        f3154h.append(g.f3281c3, 46);
        f3154h.append(g.f3263a3, 60);
        f3154h.append(g.Y2, 47);
        f3154h.append(g.Z2, 48);
        f3154h.append(g.U2, 49);
        f3154h.append(g.V2, 50);
        f3154h.append(g.W2, 51);
        f3154h.append(g.X2, 52);
        f3154h.append(g.f3308f3, 53);
        f3154h.append(g.L3, 54);
        f3154h.append(g.f3461w3, 55);
        f3154h.append(g.M3, 56);
        f3154h.append(g.f3470x3, 57);
        f3154h.append(g.N3, 58);
        f3154h.append(g.f3479y3, 59);
        f3154h.append(g.f3434t3, 62);
        f3154h.append(g.f3425s3, 63);
        f3154h.append(g.f3326h3, 64);
        f3154h.append(g.f3318g4, 65);
        f3154h.append(g.f3380n3, 66);
        f3154h.append(g.f3327h4, 67);
        f3154h.append(g.Y3, 79);
        f3154h.append(g.L2, 38);
        f3154h.append(g.Z3, 98);
        f3154h.append(g.X3, 68);
        f3154h.append(g.O3, 69);
        f3154h.append(g.f3488z3, 70);
        f3154h.append(g.f3362l3, 71);
        f3154h.append(g.f3344j3, 72);
        f3154h.append(g.f3353k3, 73);
        f3154h.append(g.f3371m3, 74);
        f3154h.append(g.f3335i3, 75);
        f3154h.append(g.f3264a4, 76);
        f3154h.append(g.F3, 77);
        f3154h.append(g.f3336i4, 78);
        f3154h.append(g.f3398p3, 80);
        f3154h.append(g.f3389o3, 81);
        f3154h.append(g.f3273b4, 82);
        f3154h.append(g.f3309f4, 83);
        f3154h.append(g.f3300e4, 84);
        f3154h.append(g.f3291d4, 85);
        f3154h.append(g.f3282c4, 86);
        f3154h.append(g.W3, 97);
    }

    private int[] i(View view, String str) {
        int i10;
        Object h10;
        String[] split = str.split(",");
        Context context = view.getContext();
        int[] iArr = new int[split.length];
        int i11 = 0;
        int i12 = 0;
        while (i11 < split.length) {
            String trim = split[i11].trim();
            try {
                i10 = f.class.getField(trim).getInt(null);
            } catch (Exception unused) {
                i10 = 0;
            }
            if (i10 == 0) {
                i10 = context.getResources().getIdentifier(trim, "id", context.getPackageName());
            }
            if (i10 == 0 && view.isInEditMode() && (view.getParent() instanceof ConstraintLayout) && (h10 = ((ConstraintLayout) view.getParent()).h(0, trim)) != null && (h10 instanceof Integer)) {
                i10 = ((Integer) h10).intValue();
            }
            iArr[i12] = i10;
            i11++;
            i12++;
        }
        return i12 != split.length ? Arrays.copyOf(iArr, i12) : iArr;
    }

    private a j(Context context, AttributeSet attributeSet, boolean z10) {
        a aVar = new a();
        TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, z10 ? g.J2 : g.f3430t);
        r(context, aVar, obtainStyledAttributes, z10);
        obtainStyledAttributes.recycle();
        return aVar;
    }

    private a k(int i10) {
        if (!this.f3159e.containsKey(Integer.valueOf(i10))) {
            this.f3159e.put(Integer.valueOf(i10), new a());
        }
        return (a) this.f3159e.get(Integer.valueOf(i10));
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static int n(TypedArray typedArray, int i10, int i11) {
        int resourceId = typedArray.getResourceId(i10, i11);
        return resourceId == -1 ? typedArray.getInt(i10, -1) : resourceId;
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* JADX WARN: Removed duplicated region for block: B:18:0x0031  */
    /* JADX WARN: Removed duplicated region for block: B:24:0x003f  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static void o(Object obj, TypedArray typedArray, int i10, int i11) {
        int dimensionPixelSize;
        boolean z10;
        if (obj == null) {
            return;
        }
        int i12 = typedArray.peekValue(i10).type;
        if (i12 == 3) {
            p(obj, typedArray.getString(i10), i11);
            return;
        }
        int i13 = 0;
        if (i12 != 5) {
            dimensionPixelSize = typedArray.getInt(i10, 0);
            if (dimensionPixelSize == -4) {
                z10 = true;
                i13 = -2;
            } else if (dimensionPixelSize == -3 || (dimensionPixelSize != -2 && dimensionPixelSize != -1)) {
                z10 = false;
            }
            if (!(obj instanceof ConstraintLayout.b)) {
                ConstraintLayout.b bVar = (ConstraintLayout.b) obj;
                if (i11 == 0) {
                    ((ViewGroup.MarginLayoutParams) bVar).width = i13;
                    bVar.f3061a0 = z10;
                    return;
                } else {
                    ((ViewGroup.MarginLayoutParams) bVar).height = i13;
                    bVar.f3063b0 = z10;
                    return;
                }
            }
            if (obj instanceof b) {
                b bVar2 = (b) obj;
                if (i11 == 0) {
                    bVar2.f3187d = i13;
                    bVar2.f3208n0 = z10;
                    return;
                } else {
                    bVar2.f3189e = i13;
                    bVar2.f3210o0 = z10;
                    return;
                }
            }
            if (obj instanceof a.C0087a) {
                a.C0087a c0087a = (a.C0087a) obj;
                if (i11 == 0) {
                    c0087a.b(23, i13);
                    c0087a.d(80, z10);
                    return;
                } else {
                    c0087a.b(21, i13);
                    c0087a.d(81, z10);
                    return;
                }
            }
            return;
        }
        dimensionPixelSize = typedArray.getDimensionPixelSize(i10, 0);
        i13 = dimensionPixelSize;
        z10 = false;
        if (!(obj instanceof ConstraintLayout.b)) {
        }
    }

    static void p(Object obj, String str, int i10) {
        if (str == null) {
            return;
        }
        int indexOf = str.indexOf(61);
        int length = str.length();
        if (indexOf <= 0 || indexOf >= length - 1) {
            return;
        }
        String substring = str.substring(0, indexOf);
        String substring2 = str.substring(indexOf + 1);
        if (substring2.length() > 0) {
            String trim = substring.trim();
            String trim2 = substring2.trim();
            if ("ratio".equalsIgnoreCase(trim)) {
                if (obj instanceof ConstraintLayout.b) {
                    ConstraintLayout.b bVar = (ConstraintLayout.b) obj;
                    if (i10 == 0) {
                        ((ViewGroup.MarginLayoutParams) bVar).width = 0;
                    } else {
                        ((ViewGroup.MarginLayoutParams) bVar).height = 0;
                    }
                    q(bVar, trim2);
                    return;
                }
                if (obj instanceof b) {
                    ((b) obj).A = trim2;
                    return;
                } else {
                    if (obj instanceof a.C0087a) {
                        ((a.C0087a) obj).c(5, trim2);
                        return;
                    }
                    return;
                }
            }
            try {
                if ("weight".equalsIgnoreCase(trim)) {
                    float parseFloat = Float.parseFloat(trim2);
                    if (obj instanceof ConstraintLayout.b) {
                        ConstraintLayout.b bVar2 = (ConstraintLayout.b) obj;
                        if (i10 == 0) {
                            ((ViewGroup.MarginLayoutParams) bVar2).width = 0;
                            bVar2.L = parseFloat;
                        } else {
                            ((ViewGroup.MarginLayoutParams) bVar2).height = 0;
                            bVar2.M = parseFloat;
                        }
                    } else if (obj instanceof b) {
                        b bVar3 = (b) obj;
                        if (i10 == 0) {
                            bVar3.f3187d = 0;
                            bVar3.W = parseFloat;
                        } else {
                            bVar3.f3189e = 0;
                            bVar3.V = parseFloat;
                        }
                    } else if (obj instanceof a.C0087a) {
                        a.C0087a c0087a = (a.C0087a) obj;
                        if (i10 == 0) {
                            c0087a.b(23, 0);
                            c0087a.a(39, parseFloat);
                        } else {
                            c0087a.b(21, 0);
                            c0087a.a(40, parseFloat);
                        }
                    }
                } else {
                    if (!"parent".equalsIgnoreCase(trim)) {
                        return;
                    }
                    float max = Math.max(BitmapDescriptorFactory.HUE_RED, Math.min(1.0f, Float.parseFloat(trim2)));
                    if (obj instanceof ConstraintLayout.b) {
                        ConstraintLayout.b bVar4 = (ConstraintLayout.b) obj;
                        if (i10 == 0) {
                            ((ViewGroup.MarginLayoutParams) bVar4).width = 0;
                            bVar4.V = max;
                            bVar4.P = 2;
                        } else {
                            ((ViewGroup.MarginLayoutParams) bVar4).height = 0;
                            bVar4.W = max;
                            bVar4.Q = 2;
                        }
                    } else if (obj instanceof b) {
                        b bVar5 = (b) obj;
                        if (i10 == 0) {
                            bVar5.f3187d = 0;
                            bVar5.f3192f0 = max;
                            bVar5.Z = 2;
                        } else {
                            bVar5.f3189e = 0;
                            bVar5.f3194g0 = max;
                            bVar5.f3182a0 = 2;
                        }
                    } else if (obj instanceof a.C0087a) {
                        a.C0087a c0087a2 = (a.C0087a) obj;
                        if (i10 == 0) {
                            c0087a2.b(23, 0);
                            c0087a2.b(54, 2);
                        } else {
                            c0087a2.b(21, 0);
                            c0087a2.b(55, 2);
                        }
                    }
                }
            } catch (NumberFormatException unused) {
            }
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public static void q(ConstraintLayout.b bVar, String str) {
        float f10 = Float.NaN;
        int i10 = -1;
        if (str != null) {
            int length = str.length();
            int indexOf = str.indexOf(44);
            int i11 = 0;
            if (indexOf > 0 && indexOf < length - 1) {
                String substring = str.substring(0, indexOf);
                if (substring.equalsIgnoreCase("W")) {
                    i10 = 0;
                } else if (substring.equalsIgnoreCase("H")) {
                    i10 = 1;
                }
                i11 = indexOf + 1;
            }
            int indexOf2 = str.indexOf(58);
            try {
                if (indexOf2 < 0 || indexOf2 >= length - 1) {
                    String substring2 = str.substring(i11);
                    if (substring2.length() > 0) {
                        f10 = Float.parseFloat(substring2);
                    }
                } else {
                    String substring3 = str.substring(i11, indexOf2);
                    String substring4 = str.substring(indexOf2 + 1);
                    if (substring3.length() > 0 && substring4.length() > 0) {
                        float parseFloat = Float.parseFloat(substring3);
                        float parseFloat2 = Float.parseFloat(substring4);
                        if (parseFloat > BitmapDescriptorFactory.HUE_RED && parseFloat2 > BitmapDescriptorFactory.HUE_RED) {
                            f10 = i10 == 1 ? Math.abs(parseFloat2 / parseFloat) : Math.abs(parseFloat / parseFloat2);
                        }
                    }
                }
            } catch (NumberFormatException unused) {
            }
        }
        bVar.I = str;
        bVar.J = f10;
        bVar.K = i10;
    }

    private void r(Context context, a aVar, TypedArray typedArray, boolean z10) {
        if (z10) {
            s(context, aVar, typedArray);
            return;
        }
        int indexCount = typedArray.getIndexCount();
        for (int i10 = 0; i10 < indexCount; i10++) {
            int index = typedArray.getIndex(i10);
            if (index != g.f3448v && g.N != index && g.O != index) {
                aVar.f3163d.f3225a = true;
                aVar.f3164e.f3183b = true;
                aVar.f3162c.f3239a = true;
                aVar.f3165f.f3245a = true;
            }
            switch (f3153g.get(index)) {
                case 1:
                    b bVar = aVar.f3164e;
                    bVar.f3215r = n(typedArray, index, bVar.f3215r);
                    break;
                case 2:
                    b bVar2 = aVar.f3164e;
                    bVar2.K = typedArray.getDimensionPixelSize(index, bVar2.K);
                    break;
                case 3:
                    b bVar3 = aVar.f3164e;
                    bVar3.f3213q = n(typedArray, index, bVar3.f3213q);
                    break;
                case 4:
                    b bVar4 = aVar.f3164e;
                    bVar4.f3211p = n(typedArray, index, bVar4.f3211p);
                    break;
                case 5:
                    aVar.f3164e.A = typedArray.getString(index);
                    break;
                case 6:
                    b bVar5 = aVar.f3164e;
                    bVar5.E = typedArray.getDimensionPixelOffset(index, bVar5.E);
                    break;
                case 7:
                    b bVar6 = aVar.f3164e;
                    bVar6.F = typedArray.getDimensionPixelOffset(index, bVar6.F);
                    break;
                case 8:
                    b bVar7 = aVar.f3164e;
                    bVar7.L = typedArray.getDimensionPixelSize(index, bVar7.L);
                    break;
                case 9:
                    b bVar8 = aVar.f3164e;
                    bVar8.f3221x = n(typedArray, index, bVar8.f3221x);
                    break;
                case 10:
                    b bVar9 = aVar.f3164e;
                    bVar9.f3220w = n(typedArray, index, bVar9.f3220w);
                    break;
                case 11:
                    b bVar10 = aVar.f3164e;
                    bVar10.R = typedArray.getDimensionPixelSize(index, bVar10.R);
                    break;
                case 12:
                    b bVar11 = aVar.f3164e;
                    bVar11.S = typedArray.getDimensionPixelSize(index, bVar11.S);
                    break;
                case 13:
                    b bVar12 = aVar.f3164e;
                    bVar12.O = typedArray.getDimensionPixelSize(index, bVar12.O);
                    break;
                case 14:
                    b bVar13 = aVar.f3164e;
                    bVar13.Q = typedArray.getDimensionPixelSize(index, bVar13.Q);
                    break;
                case 15:
                    b bVar14 = aVar.f3164e;
                    bVar14.T = typedArray.getDimensionPixelSize(index, bVar14.T);
                    break;
                case 16:
                    b bVar15 = aVar.f3164e;
                    bVar15.P = typedArray.getDimensionPixelSize(index, bVar15.P);
                    break;
                case 17:
                    b bVar16 = aVar.f3164e;
                    bVar16.f3191f = typedArray.getDimensionPixelOffset(index, bVar16.f3191f);
                    break;
                case 18:
                    b bVar17 = aVar.f3164e;
                    bVar17.f3193g = typedArray.getDimensionPixelOffset(index, bVar17.f3193g);
                    break;
                case 19:
                    b bVar18 = aVar.f3164e;
                    bVar18.f3195h = typedArray.getFloat(index, bVar18.f3195h);
                    break;
                case 20:
                    b bVar19 = aVar.f3164e;
                    bVar19.f3222y = typedArray.getFloat(index, bVar19.f3222y);
                    break;
                case 21:
                    b bVar20 = aVar.f3164e;
                    bVar20.f3189e = typedArray.getLayoutDimension(index, bVar20.f3189e);
                    break;
                case 22:
                    C0088d c0088d = aVar.f3162c;
                    c0088d.f3240b = typedArray.getInt(index, c0088d.f3240b);
                    C0088d c0088d2 = aVar.f3162c;
                    c0088d2.f3240b = f3152f[c0088d2.f3240b];
                    break;
                case 23:
                    b bVar21 = aVar.f3164e;
                    bVar21.f3187d = typedArray.getLayoutDimension(index, bVar21.f3187d);
                    break;
                case 24:
                    b bVar22 = aVar.f3164e;
                    bVar22.H = typedArray.getDimensionPixelSize(index, bVar22.H);
                    break;
                case 25:
                    b bVar23 = aVar.f3164e;
                    bVar23.f3199j = n(typedArray, index, bVar23.f3199j);
                    break;
                case 26:
                    b bVar24 = aVar.f3164e;
                    bVar24.f3201k = n(typedArray, index, bVar24.f3201k);
                    break;
                case 27:
                    b bVar25 = aVar.f3164e;
                    bVar25.G = typedArray.getInt(index, bVar25.G);
                    break;
                case 28:
                    b bVar26 = aVar.f3164e;
                    bVar26.I = typedArray.getDimensionPixelSize(index, bVar26.I);
                    break;
                case 29:
                    b bVar27 = aVar.f3164e;
                    bVar27.f3203l = n(typedArray, index, bVar27.f3203l);
                    break;
                case 30:
                    b bVar28 = aVar.f3164e;
                    bVar28.f3205m = n(typedArray, index, bVar28.f3205m);
                    break;
                case 31:
                    b bVar29 = aVar.f3164e;
                    bVar29.M = typedArray.getDimensionPixelSize(index, bVar29.M);
                    break;
                case 32:
                    b bVar30 = aVar.f3164e;
                    bVar30.f3218u = n(typedArray, index, bVar30.f3218u);
                    break;
                case 33:
                    b bVar31 = aVar.f3164e;
                    bVar31.f3219v = n(typedArray, index, bVar31.f3219v);
                    break;
                case 34:
                    b bVar32 = aVar.f3164e;
                    bVar32.J = typedArray.getDimensionPixelSize(index, bVar32.J);
                    break;
                case 35:
                    b bVar33 = aVar.f3164e;
                    bVar33.f3209o = n(typedArray, index, bVar33.f3209o);
                    break;
                case 36:
                    b bVar34 = aVar.f3164e;
                    bVar34.f3207n = n(typedArray, index, bVar34.f3207n);
                    break;
                case 37:
                    b bVar35 = aVar.f3164e;
                    bVar35.f3223z = typedArray.getFloat(index, bVar35.f3223z);
                    break;
                case 38:
                    aVar.f3160a = typedArray.getResourceId(index, aVar.f3160a);
                    break;
                case 39:
                    b bVar36 = aVar.f3164e;
                    bVar36.W = typedArray.getFloat(index, bVar36.W);
                    break;
                case 40:
                    b bVar37 = aVar.f3164e;
                    bVar37.V = typedArray.getFloat(index, bVar37.V);
                    break;
                case 41:
                    b bVar38 = aVar.f3164e;
                    bVar38.X = typedArray.getInt(index, bVar38.X);
                    break;
                case 42:
                    b bVar39 = aVar.f3164e;
                    bVar39.Y = typedArray.getInt(index, bVar39.Y);
                    break;
                case 43:
                    C0088d c0088d3 = aVar.f3162c;
                    c0088d3.f3242d = typedArray.getFloat(index, c0088d3.f3242d);
                    break;
                case 44:
                    e eVar = aVar.f3165f;
                    eVar.f3257m = true;
                    eVar.f3258n = typedArray.getDimension(index, eVar.f3258n);
                    break;
                case 45:
                    e eVar2 = aVar.f3165f;
                    eVar2.f3247c = typedArray.getFloat(index, eVar2.f3247c);
                    break;
                case 46:
                    e eVar3 = aVar.f3165f;
                    eVar3.f3248d = typedArray.getFloat(index, eVar3.f3248d);
                    break;
                case 47:
                    e eVar4 = aVar.f3165f;
                    eVar4.f3249e = typedArray.getFloat(index, eVar4.f3249e);
                    break;
                case 48:
                    e eVar5 = aVar.f3165f;
                    eVar5.f3250f = typedArray.getFloat(index, eVar5.f3250f);
                    break;
                case 49:
                    e eVar6 = aVar.f3165f;
                    eVar6.f3251g = typedArray.getDimension(index, eVar6.f3251g);
                    break;
                case 50:
                    e eVar7 = aVar.f3165f;
                    eVar7.f3252h = typedArray.getDimension(index, eVar7.f3252h);
                    break;
                case 51:
                    e eVar8 = aVar.f3165f;
                    eVar8.f3254j = typedArray.getDimension(index, eVar8.f3254j);
                    break;
                case 52:
                    e eVar9 = aVar.f3165f;
                    eVar9.f3255k = typedArray.getDimension(index, eVar9.f3255k);
                    break;
                case 53:
                    e eVar10 = aVar.f3165f;
                    eVar10.f3256l = typedArray.getDimension(index, eVar10.f3256l);
                    break;
                case 54:
                    b bVar40 = aVar.f3164e;
                    bVar40.Z = typedArray.getInt(index, bVar40.Z);
                    break;
                case 55:
                    b bVar41 = aVar.f3164e;
                    bVar41.f3182a0 = typedArray.getInt(index, bVar41.f3182a0);
                    break;
                case 56:
                    b bVar42 = aVar.f3164e;
                    bVar42.f3184b0 = typedArray.getDimensionPixelSize(index, bVar42.f3184b0);
                    break;
                case 57:
                    b bVar43 = aVar.f3164e;
                    bVar43.f3186c0 = typedArray.getDimensionPixelSize(index, bVar43.f3186c0);
                    break;
                case 58:
                    b bVar44 = aVar.f3164e;
                    bVar44.f3188d0 = typedArray.getDimensionPixelSize(index, bVar44.f3188d0);
                    break;
                case 59:
                    b bVar45 = aVar.f3164e;
                    bVar45.f3190e0 = typedArray.getDimensionPixelSize(index, bVar45.f3190e0);
                    break;
                case 60:
                    e eVar11 = aVar.f3165f;
                    eVar11.f3246b = typedArray.getFloat(index, eVar11.f3246b);
                    break;
                case 61:
                    b bVar46 = aVar.f3164e;
                    bVar46.B = n(typedArray, index, bVar46.B);
                    break;
                case 62:
                    b bVar47 = aVar.f3164e;
                    bVar47.C = typedArray.getDimensionPixelSize(index, bVar47.C);
                    break;
                case 63:
                    b bVar48 = aVar.f3164e;
                    bVar48.D = typedArray.getFloat(index, bVar48.D);
                    break;
                case 64:
                    c cVar = aVar.f3163d;
                    cVar.f3226b = n(typedArray, index, cVar.f3226b);
                    break;
                case 65:
                    if (typedArray.peekValue(index).type == 3) {
                        aVar.f3163d.f3228d = typedArray.getString(index);
                        break;
                    } else {
                        aVar.f3163d.f3228d = g3.a.f19032c[typedArray.getInteger(index, 0)];
                        break;
                    }
                case 66:
                    aVar.f3163d.f3230f = typedArray.getInt(index, 0);
                    break;
                case 67:
                    c cVar2 = aVar.f3163d;
                    cVar2.f3233i = typedArray.getFloat(index, cVar2.f3233i);
                    break;
                case 68:
                    C0088d c0088d4 = aVar.f3162c;
                    c0088d4.f3243e = typedArray.getFloat(index, c0088d4.f3243e);
                    break;
                case 69:
                    aVar.f3164e.f3192f0 = typedArray.getFloat(index, 1.0f);
                    break;
                case 70:
                    aVar.f3164e.f3194g0 = typedArray.getFloat(index, 1.0f);
                    break;
                case 71:
                    Log.e("ConstraintSet", "CURRENTLY UNSUPPORTED");
                    break;
                case 72:
                    b bVar49 = aVar.f3164e;
                    bVar49.f3196h0 = typedArray.getInt(index, bVar49.f3196h0);
                    break;
                case 73:
                    b bVar50 = aVar.f3164e;
                    bVar50.f3198i0 = typedArray.getDimensionPixelSize(index, bVar50.f3198i0);
                    break;
                case 74:
                    aVar.f3164e.f3204l0 = typedArray.getString(index);
                    break;
                case 75:
                    b bVar51 = aVar.f3164e;
                    bVar51.f3212p0 = typedArray.getBoolean(index, bVar51.f3212p0);
                    break;
                case 76:
                    c cVar3 = aVar.f3163d;
                    cVar3.f3229e = typedArray.getInt(index, cVar3.f3229e);
                    break;
                case 77:
                    aVar.f3164e.f3206m0 = typedArray.getString(index);
                    break;
                case 78:
                    C0088d c0088d5 = aVar.f3162c;
                    c0088d5.f3241c = typedArray.getInt(index, c0088d5.f3241c);
                    break;
                case 79:
                    c cVar4 = aVar.f3163d;
                    cVar4.f3231g = typedArray.getFloat(index, cVar4.f3231g);
                    break;
                case 80:
                    b bVar52 = aVar.f3164e;
                    bVar52.f3208n0 = typedArray.getBoolean(index, bVar52.f3208n0);
                    break;
                case 81:
                    b bVar53 = aVar.f3164e;
                    bVar53.f3210o0 = typedArray.getBoolean(index, bVar53.f3210o0);
                    break;
                case 82:
                    c cVar5 = aVar.f3163d;
                    cVar5.f3227c = typedArray.getInteger(index, cVar5.f3227c);
                    break;
                case 83:
                    e eVar12 = aVar.f3165f;
                    eVar12.f3253i = n(typedArray, index, eVar12.f3253i);
                    break;
                case 84:
                    c cVar6 = aVar.f3163d;
                    cVar6.f3235k = typedArray.getInteger(index, cVar6.f3235k);
                    break;
                case 85:
                    c cVar7 = aVar.f3163d;
                    cVar7.f3234j = typedArray.getFloat(index, cVar7.f3234j);
                    break;
                case 86:
                    int i11 = typedArray.peekValue(index).type;
                    if (i11 == 1) {
                        aVar.f3163d.f3238n = typedArray.getResourceId(index, -1);
                        c cVar8 = aVar.f3163d;
                        if (cVar8.f3238n != -1) {
                            cVar8.f3237m = -2;
                            break;
                        } else {
                            break;
                        }
                    } else if (i11 == 3) {
                        aVar.f3163d.f3236l = typedArray.getString(index);
                        if (aVar.f3163d.f3236l.indexOf(RemoteSettings.FORWARD_SLASH_STRING) > 0) {
                            aVar.f3163d.f3238n = typedArray.getResourceId(index, -1);
                            aVar.f3163d.f3237m = -2;
                            break;
                        } else {
                            aVar.f3163d.f3237m = -1;
                            break;
                        }
                    } else {
                        c cVar9 = aVar.f3163d;
                        cVar9.f3237m = typedArray.getInteger(index, cVar9.f3238n);
                        break;
                    }
                case 87:
                    Log.w("ConstraintSet", "unused attribute 0x" + Integer.toHexString(index) + "   " + f3153g.get(index));
                    break;
                case 88:
                case 89:
                case 90:
                default:
                    Log.w("ConstraintSet", "Unknown attribute 0x" + Integer.toHexString(index) + "   " + f3153g.get(index));
                    break;
                case 91:
                    b bVar54 = aVar.f3164e;
                    bVar54.f3216s = n(typedArray, index, bVar54.f3216s);
                    break;
                case 92:
                    b bVar55 = aVar.f3164e;
                    bVar55.f3217t = n(typedArray, index, bVar55.f3217t);
                    break;
                case 93:
                    b bVar56 = aVar.f3164e;
                    bVar56.N = typedArray.getDimensionPixelSize(index, bVar56.N);
                    break;
                case 94:
                    b bVar57 = aVar.f3164e;
                    bVar57.U = typedArray.getDimensionPixelSize(index, bVar57.U);
                    break;
                case 95:
                    o(aVar.f3164e, typedArray, index, 0);
                    break;
                case 96:
                    o(aVar.f3164e, typedArray, index, 1);
                    break;
                case 97:
                    b bVar58 = aVar.f3164e;
                    bVar58.f3214q0 = typedArray.getInt(index, bVar58.f3214q0);
                    break;
            }
        }
        b bVar59 = aVar.f3164e;
        if (bVar59.f3204l0 != null) {
            bVar59.f3202k0 = null;
        }
    }

    private static void s(Context context, a aVar, TypedArray typedArray) {
        int indexCount = typedArray.getIndexCount();
        a.C0087a c0087a = new a.C0087a();
        aVar.f3167h = c0087a;
        aVar.f3163d.f3225a = false;
        aVar.f3164e.f3183b = false;
        aVar.f3162c.f3239a = false;
        aVar.f3165f.f3245a = false;
        for (int i10 = 0; i10 < indexCount; i10++) {
            int index = typedArray.getIndex(i10);
            switch (f3154h.get(index)) {
                case 2:
                    c0087a.b(2, typedArray.getDimensionPixelSize(index, aVar.f3164e.K));
                    break;
                case 3:
                case 4:
                case 9:
                case 10:
                case 25:
                case 26:
                case 29:
                case 30:
                case 32:
                case 33:
                case 35:
                case 36:
                case 61:
                case 88:
                case 89:
                case 90:
                case 91:
                case 92:
                default:
                    Log.w("ConstraintSet", "Unknown attribute 0x" + Integer.toHexString(index) + "   " + f3153g.get(index));
                    break;
                case 5:
                    c0087a.c(5, typedArray.getString(index));
                    break;
                case 6:
                    c0087a.b(6, typedArray.getDimensionPixelOffset(index, aVar.f3164e.E));
                    break;
                case 7:
                    c0087a.b(7, typedArray.getDimensionPixelOffset(index, aVar.f3164e.F));
                    break;
                case 8:
                    c0087a.b(8, typedArray.getDimensionPixelSize(index, aVar.f3164e.L));
                    break;
                case 11:
                    c0087a.b(11, typedArray.getDimensionPixelSize(index, aVar.f3164e.R));
                    break;
                case 12:
                    c0087a.b(12, typedArray.getDimensionPixelSize(index, aVar.f3164e.S));
                    break;
                case 13:
                    c0087a.b(13, typedArray.getDimensionPixelSize(index, aVar.f3164e.O));
                    break;
                case 14:
                    c0087a.b(14, typedArray.getDimensionPixelSize(index, aVar.f3164e.Q));
                    break;
                case 15:
                    c0087a.b(15, typedArray.getDimensionPixelSize(index, aVar.f3164e.T));
                    break;
                case 16:
                    c0087a.b(16, typedArray.getDimensionPixelSize(index, aVar.f3164e.P));
                    break;
                case 17:
                    c0087a.b(17, typedArray.getDimensionPixelOffset(index, aVar.f3164e.f3191f));
                    break;
                case 18:
                    c0087a.b(18, typedArray.getDimensionPixelOffset(index, aVar.f3164e.f3193g));
                    break;
                case 19:
                    c0087a.a(19, typedArray.getFloat(index, aVar.f3164e.f3195h));
                    break;
                case 20:
                    c0087a.a(20, typedArray.getFloat(index, aVar.f3164e.f3222y));
                    break;
                case 21:
                    c0087a.b(21, typedArray.getLayoutDimension(index, aVar.f3164e.f3189e));
                    break;
                case 22:
                    c0087a.b(22, f3152f[typedArray.getInt(index, aVar.f3162c.f3240b)]);
                    break;
                case 23:
                    c0087a.b(23, typedArray.getLayoutDimension(index, aVar.f3164e.f3187d));
                    break;
                case 24:
                    c0087a.b(24, typedArray.getDimensionPixelSize(index, aVar.f3164e.H));
                    break;
                case 27:
                    c0087a.b(27, typedArray.getInt(index, aVar.f3164e.G));
                    break;
                case 28:
                    c0087a.b(28, typedArray.getDimensionPixelSize(index, aVar.f3164e.I));
                    break;
                case 31:
                    c0087a.b(31, typedArray.getDimensionPixelSize(index, aVar.f3164e.M));
                    break;
                case 34:
                    c0087a.b(34, typedArray.getDimensionPixelSize(index, aVar.f3164e.J));
                    break;
                case 37:
                    c0087a.a(37, typedArray.getFloat(index, aVar.f3164e.f3223z));
                    break;
                case 38:
                    int resourceId = typedArray.getResourceId(index, aVar.f3160a);
                    aVar.f3160a = resourceId;
                    c0087a.b(38, resourceId);
                    break;
                case 39:
                    c0087a.a(39, typedArray.getFloat(index, aVar.f3164e.W));
                    break;
                case 40:
                    c0087a.a(40, typedArray.getFloat(index, aVar.f3164e.V));
                    break;
                case 41:
                    c0087a.b(41, typedArray.getInt(index, aVar.f3164e.X));
                    break;
                case 42:
                    c0087a.b(42, typedArray.getInt(index, aVar.f3164e.Y));
                    break;
                case 43:
                    c0087a.a(43, typedArray.getFloat(index, aVar.f3162c.f3242d));
                    break;
                case 44:
                    c0087a.d(44, true);
                    c0087a.a(44, typedArray.getDimension(index, aVar.f3165f.f3258n));
                    break;
                case 45:
                    c0087a.a(45, typedArray.getFloat(index, aVar.f3165f.f3247c));
                    break;
                case 46:
                    c0087a.a(46, typedArray.getFloat(index, aVar.f3165f.f3248d));
                    break;
                case 47:
                    c0087a.a(47, typedArray.getFloat(index, aVar.f3165f.f3249e));
                    break;
                case 48:
                    c0087a.a(48, typedArray.getFloat(index, aVar.f3165f.f3250f));
                    break;
                case 49:
                    c0087a.a(49, typedArray.getDimension(index, aVar.f3165f.f3251g));
                    break;
                case 50:
                    c0087a.a(50, typedArray.getDimension(index, aVar.f3165f.f3252h));
                    break;
                case 51:
                    c0087a.a(51, typedArray.getDimension(index, aVar.f3165f.f3254j));
                    break;
                case 52:
                    c0087a.a(52, typedArray.getDimension(index, aVar.f3165f.f3255k));
                    break;
                case 53:
                    c0087a.a(53, typedArray.getDimension(index, aVar.f3165f.f3256l));
                    break;
                case 54:
                    c0087a.b(54, typedArray.getInt(index, aVar.f3164e.Z));
                    break;
                case 55:
                    c0087a.b(55, typedArray.getInt(index, aVar.f3164e.f3182a0));
                    break;
                case 56:
                    c0087a.b(56, typedArray.getDimensionPixelSize(index, aVar.f3164e.f3184b0));
                    break;
                case 57:
                    c0087a.b(57, typedArray.getDimensionPixelSize(index, aVar.f3164e.f3186c0));
                    break;
                case 58:
                    c0087a.b(58, typedArray.getDimensionPixelSize(index, aVar.f3164e.f3188d0));
                    break;
                case 59:
                    c0087a.b(59, typedArray.getDimensionPixelSize(index, aVar.f3164e.f3190e0));
                    break;
                case 60:
                    c0087a.a(60, typedArray.getFloat(index, aVar.f3165f.f3246b));
                    break;
                case 62:
                    c0087a.b(62, typedArray.getDimensionPixelSize(index, aVar.f3164e.C));
                    break;
                case 63:
                    c0087a.a(63, typedArray.getFloat(index, aVar.f3164e.D));
                    break;
                case 64:
                    c0087a.b(64, n(typedArray, index, aVar.f3163d.f3226b));
                    break;
                case 65:
                    if (typedArray.peekValue(index).type == 3) {
                        c0087a.c(65, typedArray.getString(index));
                        break;
                    } else {
                        c0087a.c(65, g3.a.f19032c[typedArray.getInteger(index, 0)]);
                        break;
                    }
                case 66:
                    c0087a.b(66, typedArray.getInt(index, 0));
                    break;
                case 67:
                    c0087a.a(67, typedArray.getFloat(index, aVar.f3163d.f3233i));
                    break;
                case 68:
                    c0087a.a(68, typedArray.getFloat(index, aVar.f3162c.f3243e));
                    break;
                case 69:
                    c0087a.a(69, typedArray.getFloat(index, 1.0f));
                    break;
                case 70:
                    c0087a.a(70, typedArray.getFloat(index, 1.0f));
                    break;
                case 71:
                    Log.e("ConstraintSet", "CURRENTLY UNSUPPORTED");
                    break;
                case 72:
                    c0087a.b(72, typedArray.getInt(index, aVar.f3164e.f3196h0));
                    break;
                case 73:
                    c0087a.b(73, typedArray.getDimensionPixelSize(index, aVar.f3164e.f3198i0));
                    break;
                case 74:
                    c0087a.c(74, typedArray.getString(index));
                    break;
                case 75:
                    c0087a.d(75, typedArray.getBoolean(index, aVar.f3164e.f3212p0));
                    break;
                case 76:
                    c0087a.b(76, typedArray.getInt(index, aVar.f3163d.f3229e));
                    break;
                case 77:
                    c0087a.c(77, typedArray.getString(index));
                    break;
                case 78:
                    c0087a.b(78, typedArray.getInt(index, aVar.f3162c.f3241c));
                    break;
                case 79:
                    c0087a.a(79, typedArray.getFloat(index, aVar.f3163d.f3231g));
                    break;
                case 80:
                    c0087a.d(80, typedArray.getBoolean(index, aVar.f3164e.f3208n0));
                    break;
                case 81:
                    c0087a.d(81, typedArray.getBoolean(index, aVar.f3164e.f3210o0));
                    break;
                case 82:
                    c0087a.b(82, typedArray.getInteger(index, aVar.f3163d.f3227c));
                    break;
                case 83:
                    c0087a.b(83, n(typedArray, index, aVar.f3165f.f3253i));
                    break;
                case 84:
                    c0087a.b(84, typedArray.getInteger(index, aVar.f3163d.f3235k));
                    break;
                case 85:
                    c0087a.a(85, typedArray.getFloat(index, aVar.f3163d.f3234j));
                    break;
                case 86:
                    int i11 = typedArray.peekValue(index).type;
                    if (i11 == 1) {
                        aVar.f3163d.f3238n = typedArray.getResourceId(index, -1);
                        c0087a.b(89, aVar.f3163d.f3238n);
                        c cVar = aVar.f3163d;
                        if (cVar.f3238n != -1) {
                            cVar.f3237m = -2;
                            c0087a.b(88, -2);
                            break;
                        } else {
                            break;
                        }
                    } else if (i11 == 3) {
                        aVar.f3163d.f3236l = typedArray.getString(index);
                        c0087a.c(90, aVar.f3163d.f3236l);
                        if (aVar.f3163d.f3236l.indexOf(RemoteSettings.FORWARD_SLASH_STRING) > 0) {
                            aVar.f3163d.f3238n = typedArray.getResourceId(index, -1);
                            c0087a.b(89, aVar.f3163d.f3238n);
                            aVar.f3163d.f3237m = -2;
                            c0087a.b(88, -2);
                            break;
                        } else {
                            aVar.f3163d.f3237m = -1;
                            c0087a.b(88, -1);
                            break;
                        }
                    } else {
                        c cVar2 = aVar.f3163d;
                        cVar2.f3237m = typedArray.getInteger(index, cVar2.f3238n);
                        c0087a.b(88, aVar.f3163d.f3237m);
                        break;
                    }
                case 87:
                    Log.w("ConstraintSet", "unused attribute 0x" + Integer.toHexString(index) + "   " + f3153g.get(index));
                    break;
                case 93:
                    c0087a.b(93, typedArray.getDimensionPixelSize(index, aVar.f3164e.N));
                    break;
                case 94:
                    c0087a.b(94, typedArray.getDimensionPixelSize(index, aVar.f3164e.U));
                    break;
                case 95:
                    o(c0087a, typedArray, index, 0);
                    break;
                case 96:
                    o(c0087a, typedArray, index, 1);
                    break;
                case 97:
                    c0087a.b(97, typedArray.getInt(index, aVar.f3164e.f3214q0));
                    break;
                case 98:
                    if (k3.b.N) {
                        int resourceId2 = typedArray.getResourceId(index, aVar.f3160a);
                        aVar.f3160a = resourceId2;
                        if (resourceId2 == -1) {
                            aVar.f3161b = typedArray.getString(index);
                            break;
                        } else {
                            break;
                        }
                    } else if (typedArray.peekValue(index).type == 3) {
                        aVar.f3161b = typedArray.getString(index);
                        break;
                    } else {
                        aVar.f3160a = typedArray.getResourceId(index, aVar.f3160a);
                        break;
                    }
                case 99:
                    c0087a.d(99, typedArray.getBoolean(index, aVar.f3164e.f3197i));
                    break;
            }
        }
    }

    public void c(ConstraintLayout constraintLayout) {
        d(constraintLayout, true);
        constraintLayout.setConstraintSet(null);
        constraintLayout.requestLayout();
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public void d(ConstraintLayout constraintLayout, boolean z10) {
        int childCount = constraintLayout.getChildCount();
        HashSet hashSet = new HashSet(this.f3159e.keySet());
        for (int i10 = 0; i10 < childCount; i10++) {
            View childAt = constraintLayout.getChildAt(i10);
            int id2 = childAt.getId();
            if (!this.f3159e.containsKey(Integer.valueOf(id2))) {
                Log.w("ConstraintSet", "id unknown " + k3.a.a(childAt));
            } else {
                if (this.f3158d && id2 == -1) {
                    throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
                }
                if (id2 != -1) {
                    if (this.f3159e.containsKey(Integer.valueOf(id2))) {
                        hashSet.remove(Integer.valueOf(id2));
                        a aVar = (a) this.f3159e.get(Integer.valueOf(id2));
                        if (aVar != null) {
                            if (childAt instanceof Barrier) {
                                aVar.f3164e.f3200j0 = 1;
                                Barrier barrier = (Barrier) childAt;
                                barrier.setId(id2);
                                barrier.setType(aVar.f3164e.f3196h0);
                                barrier.setMargin(aVar.f3164e.f3198i0);
                                barrier.setAllowsGoneWidget(aVar.f3164e.f3212p0);
                                b bVar = aVar.f3164e;
                                int[] iArr = bVar.f3202k0;
                                if (iArr != null) {
                                    barrier.setReferencedIds(iArr);
                                } else {
                                    String str = bVar.f3204l0;
                                    if (str != null) {
                                        bVar.f3202k0 = i(barrier, str);
                                        barrier.setReferencedIds(aVar.f3164e.f3202k0);
                                    }
                                }
                            }
                            ConstraintLayout.b bVar2 = (ConstraintLayout.b) childAt.getLayoutParams();
                            bVar2.a();
                            aVar.b(bVar2);
                            if (z10) {
                                androidx.constraintlayout.widget.a.c(childAt, aVar.f3166g);
                            }
                            childAt.setLayoutParams(bVar2);
                            C0088d c0088d = aVar.f3162c;
                            if (c0088d.f3241c == 0) {
                                childAt.setVisibility(c0088d.f3240b);
                            }
                            childAt.setAlpha(aVar.f3162c.f3242d);
                            childAt.setRotation(aVar.f3165f.f3246b);
                            childAt.setRotationX(aVar.f3165f.f3247c);
                            childAt.setRotationY(aVar.f3165f.f3248d);
                            childAt.setScaleX(aVar.f3165f.f3249e);
                            childAt.setScaleY(aVar.f3165f.f3250f);
                            e eVar = aVar.f3165f;
                            if (eVar.f3253i != -1) {
                                if (((View) childAt.getParent()).findViewById(aVar.f3165f.f3253i) != null) {
                                    float top = (r4.getTop() + r4.getBottom()) / 2.0f;
                                    float left = (r4.getLeft() + r4.getRight()) / 2.0f;
                                    if (childAt.getRight() - childAt.getLeft() > 0 && childAt.getBottom() - childAt.getTop() > 0) {
                                        childAt.setPivotX(left - childAt.getLeft());
                                        childAt.setPivotY(top - childAt.getTop());
                                    }
                                }
                            } else {
                                if (!Float.isNaN(eVar.f3251g)) {
                                    childAt.setPivotX(aVar.f3165f.f3251g);
                                }
                                if (!Float.isNaN(aVar.f3165f.f3252h)) {
                                    childAt.setPivotY(aVar.f3165f.f3252h);
                                }
                            }
                            childAt.setTranslationX(aVar.f3165f.f3254j);
                            childAt.setTranslationY(aVar.f3165f.f3255k);
                            childAt.setTranslationZ(aVar.f3165f.f3256l);
                            e eVar2 = aVar.f3165f;
                            if (eVar2.f3257m) {
                                childAt.setElevation(eVar2.f3258n);
                            }
                        }
                    } else {
                        Log.v("ConstraintSet", "WARNING NO CONSTRAINTS for view " + id2);
                    }
                }
            }
        }
        Iterator it = hashSet.iterator();
        while (it.hasNext()) {
            Integer num = (Integer) it.next();
            a aVar2 = (a) this.f3159e.get(num);
            if (aVar2 != null) {
                if (aVar2.f3164e.f3200j0 == 1) {
                    Barrier barrier2 = new Barrier(constraintLayout.getContext());
                    barrier2.setId(num.intValue());
                    b bVar3 = aVar2.f3164e;
                    int[] iArr2 = bVar3.f3202k0;
                    if (iArr2 != null) {
                        barrier2.setReferencedIds(iArr2);
                    } else {
                        String str2 = bVar3.f3204l0;
                        if (str2 != null) {
                            bVar3.f3202k0 = i(barrier2, str2);
                            barrier2.setReferencedIds(aVar2.f3164e.f3202k0);
                        }
                    }
                    barrier2.setType(aVar2.f3164e.f3196h0);
                    barrier2.setMargin(aVar2.f3164e.f3198i0);
                    ConstraintLayout.b generateDefaultLayoutParams = constraintLayout.generateDefaultLayoutParams();
                    barrier2.m();
                    aVar2.b(generateDefaultLayoutParams);
                    constraintLayout.addView(barrier2, generateDefaultLayoutParams);
                }
                if (aVar2.f3164e.f3181a) {
                    View guideline = new Guideline(constraintLayout.getContext());
                    guideline.setId(num.intValue());
                    ConstraintLayout.b generateDefaultLayoutParams2 = constraintLayout.generateDefaultLayoutParams();
                    aVar2.b(generateDefaultLayoutParams2);
                    constraintLayout.addView(guideline, generateDefaultLayoutParams2);
                }
            }
        }
        for (int i11 = 0; i11 < childCount; i11++) {
            View childAt2 = constraintLayout.getChildAt(i11);
            if (childAt2 instanceof androidx.constraintlayout.widget.b) {
                ((androidx.constraintlayout.widget.b) childAt2).d(constraintLayout);
            }
        }
    }

    public void e(int i10, int i11) {
        a aVar;
        if (!this.f3159e.containsKey(Integer.valueOf(i10)) || (aVar = (a) this.f3159e.get(Integer.valueOf(i10))) == null) {
            return;
        }
        switch (i11) {
            case 1:
                b bVar = aVar.f3164e;
                bVar.f3201k = -1;
                bVar.f3199j = -1;
                bVar.H = -1;
                bVar.O = Integer.MIN_VALUE;
                return;
            case 2:
                b bVar2 = aVar.f3164e;
                bVar2.f3205m = -1;
                bVar2.f3203l = -1;
                bVar2.I = -1;
                bVar2.Q = Integer.MIN_VALUE;
                return;
            case 3:
                b bVar3 = aVar.f3164e;
                bVar3.f3209o = -1;
                bVar3.f3207n = -1;
                bVar3.J = 0;
                bVar3.P = Integer.MIN_VALUE;
                return;
            case 4:
                b bVar4 = aVar.f3164e;
                bVar4.f3211p = -1;
                bVar4.f3213q = -1;
                bVar4.K = 0;
                bVar4.R = Integer.MIN_VALUE;
                return;
            case 5:
                b bVar5 = aVar.f3164e;
                bVar5.f3215r = -1;
                bVar5.f3216s = -1;
                bVar5.f3217t = -1;
                bVar5.N = 0;
                bVar5.U = Integer.MIN_VALUE;
                return;
            case 6:
                b bVar6 = aVar.f3164e;
                bVar6.f3218u = -1;
                bVar6.f3219v = -1;
                bVar6.M = 0;
                bVar6.T = Integer.MIN_VALUE;
                return;
            case 7:
                b bVar7 = aVar.f3164e;
                bVar7.f3220w = -1;
                bVar7.f3221x = -1;
                bVar7.L = 0;
                bVar7.S = Integer.MIN_VALUE;
                return;
            case 8:
                b bVar8 = aVar.f3164e;
                bVar8.D = -1.0f;
                bVar8.C = -1;
                bVar8.B = -1;
                return;
            default:
                throw new IllegalArgumentException("unknown constraint");
        }
    }

    public void f(Context context, int i10) {
        g((ConstraintLayout) LayoutInflater.from(context).inflate(i10, (ViewGroup) null));
    }

    public void g(ConstraintLayout constraintLayout) {
        int childCount = constraintLayout.getChildCount();
        this.f3159e.clear();
        for (int i10 = 0; i10 < childCount; i10++) {
            View childAt = constraintLayout.getChildAt(i10);
            ConstraintLayout.b bVar = (ConstraintLayout.b) childAt.getLayoutParams();
            int id2 = childAt.getId();
            if (this.f3158d && id2 == -1) {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            }
            if (!this.f3159e.containsKey(Integer.valueOf(id2))) {
                this.f3159e.put(Integer.valueOf(id2), new a());
            }
            a aVar = (a) this.f3159e.get(Integer.valueOf(id2));
            if (aVar != null) {
                aVar.f3166g = androidx.constraintlayout.widget.a.a(this.f3157c, childAt);
                aVar.d(id2, bVar);
                aVar.f3162c.f3240b = childAt.getVisibility();
                aVar.f3162c.f3242d = childAt.getAlpha();
                aVar.f3165f.f3246b = childAt.getRotation();
                aVar.f3165f.f3247c = childAt.getRotationX();
                aVar.f3165f.f3248d = childAt.getRotationY();
                aVar.f3165f.f3249e = childAt.getScaleX();
                aVar.f3165f.f3250f = childAt.getScaleY();
                float pivotX = childAt.getPivotX();
                float pivotY = childAt.getPivotY();
                if (pivotX != 0.0d || pivotY != 0.0d) {
                    e eVar = aVar.f3165f;
                    eVar.f3251g = pivotX;
                    eVar.f3252h = pivotY;
                }
                aVar.f3165f.f3254j = childAt.getTranslationX();
                aVar.f3165f.f3255k = childAt.getTranslationY();
                aVar.f3165f.f3256l = childAt.getTranslationZ();
                e eVar2 = aVar.f3165f;
                if (eVar2.f3257m) {
                    eVar2.f3258n = childAt.getElevation();
                }
                if (childAt instanceof Barrier) {
                    Barrier barrier = (Barrier) childAt;
                    aVar.f3164e.f3212p0 = barrier.getAllowsGoneWidget();
                    aVar.f3164e.f3202k0 = barrier.getReferencedIds();
                    aVar.f3164e.f3196h0 = barrier.getType();
                    aVar.f3164e.f3198i0 = barrier.getMargin();
                }
            }
        }
    }

    public void h(int i10, int i11, int i12, float f10) {
        b bVar = k(i10).f3164e;
        bVar.B = i11;
        bVar.C = i12;
        bVar.D = f10;
    }

    public void l(Context context, int i10) {
        XmlResourceParser xml = context.getResources().getXml(i10);
        try {
            for (int eventType = xml.getEventType(); eventType != 1; eventType = xml.next()) {
                if (eventType == 0) {
                    xml.getName();
                } else if (eventType == 2) {
                    String name = xml.getName();
                    a j10 = j(context, Xml.asAttributeSet(xml), false);
                    if (name.equalsIgnoreCase("Guideline")) {
                        j10.f3164e.f3181a = true;
                    }
                    this.f3159e.put(Integer.valueOf(j10.f3160a), j10);
                }
            }
        } catch (IOException e10) {
            e10.printStackTrace();
        } catch (XmlPullParserException e11) {
            e11.printStackTrace();
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:79:0x01cb, code lost:
    
        continue;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:42:0x00db. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m(Context context, XmlPullParser xmlPullParser) {
        a j10;
        try {
            int eventType = xmlPullParser.getEventType();
            a aVar = null;
            while (eventType != 1) {
                if (eventType != 0) {
                    char c10 = 65535;
                    if (eventType == 2) {
                        String name = xmlPullParser.getName();
                        switch (name.hashCode()) {
                            case -2025855158:
                                if (name.equals("Layout")) {
                                    c10 = 6;
                                    break;
                                }
                                break;
                            case -1984451626:
                                if (name.equals("Motion")) {
                                    c10 = 7;
                                    break;
                                }
                                break;
                            case -1962203927:
                                if (name.equals("ConstraintOverride")) {
                                    c10 = 1;
                                    break;
                                }
                                break;
                            case -1269513683:
                                if (name.equals("PropertySet")) {
                                    c10 = 4;
                                    break;
                                }
                                break;
                            case -1238332596:
                                if (name.equals("Transform")) {
                                    c10 = 5;
                                    break;
                                }
                                break;
                            case -71750448:
                                if (name.equals("Guideline")) {
                                    c10 = 2;
                                    break;
                                }
                                break;
                            case 366511058:
                                if (name.equals("CustomMethod")) {
                                    c10 = '\t';
                                    break;
                                }
                                break;
                            case 1331510167:
                                if (name.equals("Barrier")) {
                                    c10 = 3;
                                    break;
                                }
                                break;
                            case 1791837707:
                                if (name.equals("CustomAttribute")) {
                                    c10 = '\b';
                                    break;
                                }
                                break;
                            case 1803088381:
                                if (name.equals("Constraint")) {
                                    c10 = 0;
                                    break;
                                }
                                break;
                        }
                        switch (c10) {
                            case 0:
                                j10 = j(context, Xml.asAttributeSet(xmlPullParser), false);
                                aVar = j10;
                                break;
                            case 1:
                                j10 = j(context, Xml.asAttributeSet(xmlPullParser), true);
                                aVar = j10;
                                break;
                            case 2:
                                j10 = j(context, Xml.asAttributeSet(xmlPullParser), false);
                                b bVar = j10.f3164e;
                                bVar.f3181a = true;
                                bVar.f3183b = true;
                                aVar = j10;
                                break;
                            case 3:
                                j10 = j(context, Xml.asAttributeSet(xmlPullParser), false);
                                j10.f3164e.f3200j0 = 1;
                                aVar = j10;
                                break;
                            case 4:
                                if (aVar == null) {
                                    throw new RuntimeException("XML parser error must be within a Constraint " + xmlPullParser.getLineNumber());
                                }
                                aVar.f3162c.b(context, Xml.asAttributeSet(xmlPullParser));
                                break;
                            case 5:
                                if (aVar == null) {
                                    throw new RuntimeException("XML parser error must be within a Constraint " + xmlPullParser.getLineNumber());
                                }
                                aVar.f3165f.b(context, Xml.asAttributeSet(xmlPullParser));
                                break;
                            case 6:
                                if (aVar == null) {
                                    throw new RuntimeException("XML parser error must be within a Constraint " + xmlPullParser.getLineNumber());
                                }
                                aVar.f3164e.b(context, Xml.asAttributeSet(xmlPullParser));
                                break;
                            case 7:
                                if (aVar == null) {
                                    throw new RuntimeException("XML parser error must be within a Constraint " + xmlPullParser.getLineNumber());
                                }
                                aVar.f3163d.b(context, Xml.asAttributeSet(xmlPullParser));
                                break;
                            case '\b':
                            case '\t':
                                if (aVar == null) {
                                    throw new RuntimeException("XML parser error must be within a Constraint " + xmlPullParser.getLineNumber());
                                }
                                androidx.constraintlayout.widget.a.b(context, xmlPullParser, aVar.f3166g);
                                break;
                        }
                    } else if (eventType == 3) {
                        String lowerCase = xmlPullParser.getName().toLowerCase(Locale.ROOT);
                        switch (lowerCase.hashCode()) {
                            case -2075718416:
                                if (lowerCase.equals("guideline")) {
                                    c10 = 3;
                                    break;
                                }
                                break;
                            case -190376483:
                                if (lowerCase.equals("constraint")) {
                                    c10 = 1;
                                    break;
                                }
                                break;
                            case 426575017:
                                if (lowerCase.equals("constraintoverride")) {
                                    c10 = 2;
                                    break;
                                }
                                break;
                            case 2146106725:
                                if (lowerCase.equals("constraintset")) {
                                    c10 = 0;
                                    break;
                                }
                                break;
                        }
                        if (c10 == 0) {
                            return;
                        }
                        if (c10 == 1 || c10 == 2 || c10 == 3) {
                            this.f3159e.put(Integer.valueOf(aVar.f3160a), aVar);
                            aVar = null;
                        }
                    }
                } else {
                    xmlPullParser.getName();
                }
                eventType = xmlPullParser.next();
            }
        } catch (IOException e10) {
            e10.printStackTrace();
        } catch (XmlPullParserException e11) {
            e11.printStackTrace();
        }
    }
}
