package d.f.c;

import android.content.Context;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.drawable.ColorDrawable;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseIntArray;
import android.util.Xml;
import android.view.View;
import android.view.ViewGroup;
import androidx.constraintlayout.widget.Barrier;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.constraintlayout.widget.Guideline;
import d.f.c.e;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Objects;
import org.xmlpull.v1.XmlPullParserException;

/* JADX INFO: loaded from: classes.dex */
public class d {
    public static final int[] a = {0, 4, 8};

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static SparseIntArray f2459b = new SparseIntArray();

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static SparseIntArray f2460c = new SparseIntArray();

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public HashMap<String, d.f.c.a> f2461d = new HashMap<>();

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public boolean f2462e = true;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public HashMap<Integer, a> f2463f = new HashMap<>();

    public static class a {
        public int a;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final C0028d f2464b = new C0028d();

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

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        public final b f2466d = new b();

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

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        public HashMap<String, d.f.c.a> f2468f = new HashMap<>();

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        public C0027a f2469g;

        /* JADX INFO: renamed from: d.f.c.d$a$a, reason: collision with other inner class name */
        public static class C0027a {
            public int[] a = new int[10];

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

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

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

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

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

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

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

            /* JADX INFO: renamed from: i, reason: collision with root package name */
            public int f2477i = 0;

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

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

            /* JADX INFO: renamed from: l, reason: collision with root package name */
            public int f2480l = 0;

            public void a(int i2, float f2) {
                int i3 = this.f2474f;
                int[] iArr = this.f2472d;
                if (i3 >= iArr.length) {
                    this.f2472d = Arrays.copyOf(iArr, iArr.length * 2);
                    float[] fArr = this.f2473e;
                    this.f2473e = Arrays.copyOf(fArr, fArr.length * 2);
                }
                int[] iArr2 = this.f2472d;
                int i4 = this.f2474f;
                iArr2[i4] = i2;
                float[] fArr2 = this.f2473e;
                this.f2474f = i4 + 1;
                fArr2[i4] = f2;
            }

            public void b(int i2, int i3) {
                int i4 = this.f2471c;
                int[] iArr = this.a;
                if (i4 >= iArr.length) {
                    this.a = Arrays.copyOf(iArr, iArr.length * 2);
                    int[] iArr2 = this.f2470b;
                    this.f2470b = Arrays.copyOf(iArr2, iArr2.length * 2);
                }
                int[] iArr3 = this.a;
                int i5 = this.f2471c;
                iArr3[i5] = i2;
                int[] iArr4 = this.f2470b;
                this.f2471c = i5 + 1;
                iArr4[i5] = i3;
            }

            public void c(int i2, String str) {
                int i3 = this.f2477i;
                int[] iArr = this.f2475g;
                if (i3 >= iArr.length) {
                    this.f2475g = Arrays.copyOf(iArr, iArr.length * 2);
                    String[] strArr = this.f2476h;
                    this.f2476h = (String[]) Arrays.copyOf(strArr, strArr.length * 2);
                }
                int[] iArr2 = this.f2475g;
                int i4 = this.f2477i;
                iArr2[i4] = i2;
                String[] strArr2 = this.f2476h;
                this.f2477i = i4 + 1;
                strArr2[i4] = str;
            }

            public void d(int i2, boolean z2) {
                int i3 = this.f2480l;
                int[] iArr = this.f2478j;
                if (i3 >= iArr.length) {
                    this.f2478j = Arrays.copyOf(iArr, iArr.length * 2);
                    boolean[] zArr = this.f2479k;
                    this.f2479k = Arrays.copyOf(zArr, zArr.length * 2);
                }
                int[] iArr2 = this.f2478j;
                int i4 = this.f2480l;
                iArr2[i4] = i2;
                boolean[] zArr2 = this.f2479k;
                this.f2480l = i4 + 1;
                zArr2[i4] = z2;
            }
        }

        public void a(ConstraintLayout.a aVar) {
            b bVar = this.f2466d;
            aVar.f592d = bVar.f2492i;
            aVar.f594e = bVar.f2493j;
            aVar.f595f = bVar.f2494k;
            aVar.f596g = bVar.f2495l;
            aVar.f597h = bVar.f2496m;
            aVar.f598i = bVar.f2497n;
            aVar.f599j = bVar.f2498o;
            aVar.f600k = bVar.f2499p;
            aVar.f601l = bVar.f2500q;
            aVar.f602m = bVar.f2501r;
            aVar.f603n = bVar.f2502s;
            aVar.f607r = bVar.f2503t;
            aVar.f608s = bVar.f2504u;
            aVar.f609t = bVar.f2505v;
            aVar.f610u = bVar.f2506w;
            ((ViewGroup.MarginLayoutParams) aVar).leftMargin = bVar.G;
            ((ViewGroup.MarginLayoutParams) aVar).rightMargin = bVar.H;
            ((ViewGroup.MarginLayoutParams) aVar).topMargin = bVar.I;
            ((ViewGroup.MarginLayoutParams) aVar).bottomMargin = bVar.J;
            aVar.f615z = bVar.S;
            aVar.A = bVar.R;
            aVar.f612w = bVar.O;
            aVar.f614y = bVar.Q;
            aVar.D = bVar.f2507x;
            aVar.E = bVar.f2508y;
            b bVar2 = this.f2466d;
            aVar.f604o = bVar2.A;
            aVar.f605p = bVar2.B;
            aVar.f606q = bVar2.C;
            aVar.F = bVar2.f2509z;
            aVar.S = bVar2.D;
            aVar.T = bVar2.E;
            aVar.H = bVar2.U;
            aVar.G = bVar2.V;
            aVar.J = bVar2.X;
            aVar.I = bVar2.W;
            aVar.V = bVar2.m0;
            aVar.W = bVar2.n0;
            aVar.K = bVar2.Y;
            aVar.L = bVar2.Z;
            aVar.O = bVar2.f2481a0;
            aVar.P = bVar2.f2483b0;
            aVar.M = bVar2.f2485c0;
            aVar.N = bVar2.f2487d0;
            aVar.Q = bVar2.e0;
            aVar.R = bVar2.f0;
            aVar.U = bVar2.F;
            aVar.f590c = bVar2.f2491h;
            aVar.a = bVar2.f2489f;
            aVar.f588b = bVar2.f2490g;
            ((ViewGroup.MarginLayoutParams) aVar).width = bVar2.f2486d;
            b bVar3 = this.f2466d;
            ((ViewGroup.MarginLayoutParams) aVar).height = bVar3.f2488e;
            String str = bVar3.l0;
            if (str != null) {
                aVar.X = str;
            }
            aVar.Y = bVar3.p0;
            aVar.setMarginStart(bVar3.L);
            aVar.setMarginEnd(this.f2466d.K);
            aVar.a();
        }

        public final void b(int i2, ConstraintLayout.a aVar) {
            this.a = i2;
            b bVar = this.f2466d;
            bVar.f2492i = aVar.f592d;
            bVar.f2493j = aVar.f594e;
            bVar.f2494k = aVar.f595f;
            bVar.f2495l = aVar.f596g;
            bVar.f2496m = aVar.f597h;
            bVar.f2497n = aVar.f598i;
            bVar.f2498o = aVar.f599j;
            bVar.f2499p = aVar.f600k;
            bVar.f2500q = aVar.f601l;
            bVar.f2501r = aVar.f602m;
            bVar.f2502s = aVar.f603n;
            bVar.f2503t = aVar.f607r;
            bVar.f2504u = aVar.f608s;
            bVar.f2505v = aVar.f609t;
            bVar.f2506w = aVar.f610u;
            bVar.f2507x = aVar.D;
            bVar.f2508y = aVar.E;
            bVar.f2509z = aVar.F;
            bVar.A = aVar.f604o;
            bVar.B = aVar.f605p;
            bVar.C = aVar.f606q;
            bVar.D = aVar.S;
            bVar.E = aVar.T;
            bVar.F = aVar.U;
            bVar.f2491h = aVar.f590c;
            b bVar2 = this.f2466d;
            bVar2.f2489f = aVar.a;
            bVar2.f2490g = aVar.f588b;
            bVar2.f2486d = ((ViewGroup.MarginLayoutParams) aVar).width;
            bVar2.f2488e = ((ViewGroup.MarginLayoutParams) aVar).height;
            bVar2.G = ((ViewGroup.MarginLayoutParams) aVar).leftMargin;
            bVar2.H = ((ViewGroup.MarginLayoutParams) aVar).rightMargin;
            bVar2.I = ((ViewGroup.MarginLayoutParams) aVar).topMargin;
            bVar2.J = ((ViewGroup.MarginLayoutParams) aVar).bottomMargin;
            bVar2.M = aVar.C;
            bVar2.U = aVar.H;
            bVar2.V = aVar.G;
            bVar2.X = aVar.J;
            bVar2.W = aVar.I;
            bVar2.m0 = aVar.V;
            bVar2.n0 = aVar.W;
            bVar2.Y = aVar.K;
            bVar2.Z = aVar.L;
            bVar2.f2481a0 = aVar.O;
            bVar2.f2483b0 = aVar.P;
            bVar2.f2485c0 = aVar.M;
            bVar2.f2487d0 = aVar.N;
            bVar2.e0 = aVar.Q;
            bVar2.f0 = aVar.R;
            bVar2.l0 = aVar.X;
            bVar2.O = aVar.f612w;
            b bVar3 = this.f2466d;
            bVar3.Q = aVar.f614y;
            bVar3.N = aVar.f611v;
            bVar3.P = aVar.f613x;
            bVar3.S = aVar.f615z;
            bVar3.R = aVar.A;
            bVar3.T = aVar.B;
            bVar3.p0 = aVar.Y;
            bVar3.K = aVar.getMarginEnd();
            this.f2466d.L = aVar.getMarginStart();
        }

        public final void c(int i2, e.a aVar) {
            b(i2, aVar);
            this.f2464b.f2526d = aVar.q0;
            e eVar = this.f2467e;
            eVar.f2529c = aVar.t0;
            eVar.f2530d = aVar.u0;
            eVar.f2531e = aVar.v0;
            eVar.f2532f = aVar.w0;
            eVar.f2533g = aVar.x0;
            eVar.f2534h = aVar.y0;
            eVar.f2535i = aVar.z0;
            eVar.f2537k = aVar.A0;
            eVar.f2538l = aVar.B0;
            eVar.f2539m = aVar.C0;
            eVar.f2541o = aVar.s0;
            eVar.f2540n = aVar.r0;
        }

        public Object clone() {
            a aVar = new a();
            b bVar = aVar.f2466d;
            b bVar2 = this.f2466d;
            Objects.requireNonNull(bVar);
            bVar.f2482b = bVar2.f2482b;
            bVar.f2486d = bVar2.f2486d;
            bVar.f2484c = bVar2.f2484c;
            bVar.f2488e = bVar2.f2488e;
            bVar.f2489f = bVar2.f2489f;
            bVar.f2490g = bVar2.f2490g;
            bVar.f2491h = bVar2.f2491h;
            bVar.f2492i = bVar2.f2492i;
            bVar.f2493j = bVar2.f2493j;
            bVar.f2494k = bVar2.f2494k;
            bVar.f2495l = bVar2.f2495l;
            bVar.f2496m = bVar2.f2496m;
            bVar.f2497n = bVar2.f2497n;
            bVar.f2498o = bVar2.f2498o;
            bVar.f2499p = bVar2.f2499p;
            bVar.f2500q = bVar2.f2500q;
            bVar.f2501r = bVar2.f2501r;
            bVar.f2502s = bVar2.f2502s;
            bVar.f2503t = bVar2.f2503t;
            bVar.f2504u = bVar2.f2504u;
            bVar.f2505v = bVar2.f2505v;
            bVar.f2506w = bVar2.f2506w;
            bVar.f2507x = bVar2.f2507x;
            bVar.f2508y = bVar2.f2508y;
            bVar.f2509z = bVar2.f2509z;
            bVar.A = bVar2.A;
            bVar.B = bVar2.B;
            bVar.C = bVar2.C;
            bVar.D = bVar2.D;
            bVar.E = bVar2.E;
            bVar.F = bVar2.F;
            bVar.G = bVar2.G;
            bVar.H = bVar2.H;
            bVar.I = bVar2.I;
            bVar.J = bVar2.J;
            bVar.K = bVar2.K;
            bVar.L = bVar2.L;
            bVar.M = bVar2.M;
            bVar.N = bVar2.N;
            bVar.O = bVar2.O;
            bVar.P = bVar2.P;
            bVar.Q = bVar2.Q;
            bVar.R = bVar2.R;
            bVar.S = bVar2.S;
            bVar.T = bVar2.T;
            bVar.U = bVar2.U;
            bVar.V = bVar2.V;
            bVar.W = bVar2.W;
            bVar.X = bVar2.X;
            bVar.Y = bVar2.Y;
            bVar.Z = bVar2.Z;
            bVar.f2481a0 = bVar2.f2481a0;
            bVar.f2483b0 = bVar2.f2483b0;
            bVar.f2485c0 = bVar2.f2485c0;
            bVar.f2487d0 = bVar2.f2487d0;
            bVar.e0 = bVar2.e0;
            bVar.f0 = bVar2.f0;
            bVar.g0 = bVar2.g0;
            bVar.h0 = bVar2.h0;
            bVar.i0 = bVar2.i0;
            bVar.l0 = bVar2.l0;
            int[] iArr = bVar2.j0;
            if (iArr != null) {
                bVar.j0 = Arrays.copyOf(iArr, iArr.length);
            } else {
                bVar.j0 = null;
            }
            bVar.k0 = bVar2.k0;
            bVar.m0 = bVar2.m0;
            bVar.n0 = bVar2.n0;
            bVar.o0 = bVar2.o0;
            bVar.p0 = bVar2.p0;
            c cVar = aVar.f2465c;
            c cVar2 = this.f2465c;
            Objects.requireNonNull(cVar);
            cVar.f2510b = cVar2.f2510b;
            cVar.f2511c = cVar2.f2511c;
            cVar.f2513e = cVar2.f2513e;
            cVar.f2514f = cVar2.f2514f;
            cVar.f2515g = cVar2.f2515g;
            cVar.f2518j = cVar2.f2518j;
            cVar.f2516h = cVar2.f2516h;
            cVar.f2517i = cVar2.f2517i;
            C0028d c0028d = aVar.f2464b;
            C0028d c0028d2 = this.f2464b;
            Objects.requireNonNull(c0028d);
            c0028d.a = c0028d2.a;
            c0028d.f2524b = c0028d2.f2524b;
            c0028d.f2526d = c0028d2.f2526d;
            c0028d.f2527e = c0028d2.f2527e;
            c0028d.f2525c = c0028d2.f2525c;
            e eVar = aVar.f2467e;
            e eVar2 = this.f2467e;
            Objects.requireNonNull(eVar);
            eVar.f2528b = eVar2.f2528b;
            eVar.f2529c = eVar2.f2529c;
            eVar.f2530d = eVar2.f2530d;
            eVar.f2531e = eVar2.f2531e;
            eVar.f2532f = eVar2.f2532f;
            eVar.f2533g = eVar2.f2533g;
            eVar.f2534h = eVar2.f2534h;
            eVar.f2535i = eVar2.f2535i;
            eVar.f2536j = eVar2.f2536j;
            eVar.f2537k = eVar2.f2537k;
            eVar.f2538l = eVar2.f2538l;
            eVar.f2539m = eVar2.f2539m;
            eVar.f2540n = eVar2.f2540n;
            eVar.f2541o = eVar2.f2541o;
            aVar.a = this.a;
            aVar.f2469g = this.f2469g;
            return aVar;
        }
    }

    public static class b {
        public static SparseIntArray a;

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

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        public int f2488e;
        public int[] j0;
        public String k0;
        public String l0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        /* JADX INFO: renamed from: x, reason: collision with root package name */
        public float f2507x = 0.5f;

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

        /* JADX INFO: renamed from: z, reason: collision with root package name */
        public String f2509z = null;
        public int A = -1;
        public int B = 0;
        public float C = 0.0f;
        public int D = -1;
        public int E = -1;
        public int F = -1;
        public int G = 0;
        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 = Integer.MIN_VALUE;
        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 float U = -1.0f;
        public float V = -1.0f;
        public int W = 0;
        public int X = 0;
        public int Y = 0;
        public int Z = 0;

        /* JADX INFO: renamed from: a0, reason: collision with root package name */
        public int f2481a0 = -1;

        /* JADX INFO: renamed from: b0, reason: collision with root package name */
        public int f2483b0 = -1;

        /* JADX INFO: renamed from: c0, reason: collision with root package name */
        public int f2485c0 = -1;

        /* JADX INFO: renamed from: d0, reason: collision with root package name */
        public int f2487d0 = -1;
        public float e0 = 1.0f;
        public float f0 = 1.0f;
        public int g0 = -1;
        public int h0 = 0;
        public int i0 = -1;
        public boolean m0 = false;
        public boolean n0 = false;
        public boolean o0 = true;
        public int p0 = 0;

        static {
            SparseIntArray sparseIntArray = new SparseIntArray();
            a = sparseIntArray;
            sparseIntArray.append(42, 24);
            a.append(43, 25);
            a.append(45, 28);
            a.append(46, 29);
            a.append(51, 35);
            a.append(50, 34);
            a.append(23, 4);
            a.append(22, 3);
            a.append(18, 1);
            a.append(60, 6);
            a.append(61, 7);
            a.append(30, 17);
            a.append(31, 18);
            a.append(32, 19);
            a.append(0, 26);
            a.append(47, 31);
            a.append(48, 32);
            a.append(29, 10);
            a.append(28, 9);
            a.append(65, 13);
            a.append(68, 16);
            a.append(66, 14);
            a.append(63, 11);
            a.append(67, 15);
            a.append(64, 12);
            a.append(54, 38);
            a.append(40, 37);
            a.append(39, 39);
            a.append(53, 40);
            a.append(38, 20);
            a.append(52, 36);
            a.append(27, 5);
            a.append(41, 76);
            a.append(49, 76);
            a.append(44, 76);
            a.append(21, 76);
            a.append(17, 76);
            a.append(3, 23);
            a.append(5, 27);
            a.append(7, 30);
            a.append(8, 8);
            a.append(4, 33);
            a.append(6, 2);
            a.append(1, 22);
            a.append(2, 21);
            a.append(55, 41);
            a.append(33, 42);
            a.append(16, 41);
            a.append(15, 42);
            a.append(70, 97);
            a.append(24, 61);
            a.append(26, 62);
            a.append(25, 63);
            a.append(59, 69);
            a.append(37, 70);
            a.append(12, 71);
            a.append(10, 72);
            a.append(11, 73);
            a.append(13, 74);
            a.append(9, 75);
        }

        public void a(Context context, AttributeSet attributeSet) {
            StringBuilder sb;
            String str;
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, i.f2550f);
            this.f2484c = true;
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i2 = 0; i2 < indexCount; i2++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i2);
                int i3 = a.get(index);
                if (i3 == 80) {
                    this.m0 = typedArrayObtainStyledAttributes.getBoolean(index, this.m0);
                } else if (i3 == 81) {
                    this.n0 = typedArrayObtainStyledAttributes.getBoolean(index, this.n0);
                } else if (i3 != 97) {
                    switch (i3) {
                        case 1:
                            int i4 = this.f2500q;
                            int[] iArr = d.a;
                            int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, i4);
                            if (resourceId == -1) {
                                resourceId = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2500q = resourceId;
                            break;
                        case 2:
                            this.J = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.J);
                            break;
                        case 3:
                            int i5 = this.f2499p;
                            int[] iArr2 = d.a;
                            int resourceId2 = typedArrayObtainStyledAttributes.getResourceId(index, i5);
                            if (resourceId2 == -1) {
                                resourceId2 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2499p = resourceId2;
                            break;
                        case 4:
                            int i6 = this.f2498o;
                            int[] iArr3 = d.a;
                            int resourceId3 = typedArrayObtainStyledAttributes.getResourceId(index, i6);
                            if (resourceId3 == -1) {
                                resourceId3 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2498o = resourceId3;
                            break;
                        case 5:
                            this.f2509z = typedArrayObtainStyledAttributes.getString(index);
                            break;
                        case 6:
                            this.D = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.D);
                            break;
                        case 7:
                            this.E = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.E);
                            break;
                        case 8:
                            this.K = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.K);
                            break;
                        case 9:
                            int i7 = this.f2506w;
                            int[] iArr4 = d.a;
                            int resourceId4 = typedArrayObtainStyledAttributes.getResourceId(index, i7);
                            if (resourceId4 == -1) {
                                resourceId4 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2506w = resourceId4;
                            break;
                        case 10:
                            int i8 = this.f2505v;
                            int[] iArr5 = d.a;
                            int resourceId5 = typedArrayObtainStyledAttributes.getResourceId(index, i8);
                            if (resourceId5 == -1) {
                                resourceId5 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2505v = resourceId5;
                            break;
                        case 11:
                            this.Q = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.Q);
                            break;
                        case 12:
                            this.R = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.R);
                            break;
                        case 13:
                            this.N = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.N);
                            break;
                        case 14:
                            this.P = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.P);
                            break;
                        case 15:
                            this.S = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.S);
                            break;
                        case 16:
                            this.O = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.O);
                            break;
                        case 17:
                            this.f2489f = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.f2489f);
                            break;
                        case 18:
                            this.f2490g = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.f2490g);
                            break;
                        case 19:
                            this.f2491h = typedArrayObtainStyledAttributes.getFloat(index, this.f2491h);
                            break;
                        case 20:
                            this.f2507x = typedArrayObtainStyledAttributes.getFloat(index, this.f2507x);
                            break;
                        case 21:
                            this.f2488e = typedArrayObtainStyledAttributes.getLayoutDimension(index, this.f2488e);
                            break;
                        case 22:
                            this.f2486d = typedArrayObtainStyledAttributes.getLayoutDimension(index, this.f2486d);
                            break;
                        case 23:
                            this.G = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.G);
                            break;
                        case 24:
                            int i9 = this.f2492i;
                            int[] iArr6 = d.a;
                            int resourceId6 = typedArrayObtainStyledAttributes.getResourceId(index, i9);
                            if (resourceId6 == -1) {
                                resourceId6 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2492i = resourceId6;
                            break;
                        case 25:
                            int i10 = this.f2493j;
                            int[] iArr7 = d.a;
                            int resourceId7 = typedArrayObtainStyledAttributes.getResourceId(index, i10);
                            if (resourceId7 == -1) {
                                resourceId7 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2493j = resourceId7;
                            break;
                        case 26:
                            this.F = typedArrayObtainStyledAttributes.getInt(index, this.F);
                            break;
                        case 27:
                            this.H = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.H);
                            break;
                        case 28:
                            int i11 = this.f2494k;
                            int[] iArr8 = d.a;
                            int resourceId8 = typedArrayObtainStyledAttributes.getResourceId(index, i11);
                            if (resourceId8 == -1) {
                                resourceId8 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2494k = resourceId8;
                            break;
                        case 29:
                            int i12 = this.f2495l;
                            int[] iArr9 = d.a;
                            int resourceId9 = typedArrayObtainStyledAttributes.getResourceId(index, i12);
                            if (resourceId9 == -1) {
                                resourceId9 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2495l = resourceId9;
                            break;
                        case 30:
                            this.L = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.L);
                            break;
                        case 31:
                            int i13 = this.f2503t;
                            int[] iArr10 = d.a;
                            int resourceId10 = typedArrayObtainStyledAttributes.getResourceId(index, i13);
                            if (resourceId10 == -1) {
                                resourceId10 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2503t = resourceId10;
                            break;
                        case 32:
                            int i14 = this.f2504u;
                            int[] iArr11 = d.a;
                            int resourceId11 = typedArrayObtainStyledAttributes.getResourceId(index, i14);
                            if (resourceId11 == -1) {
                                resourceId11 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2504u = resourceId11;
                            break;
                        case 33:
                            this.I = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.I);
                            break;
                        case 34:
                            int i15 = this.f2497n;
                            int[] iArr12 = d.a;
                            int resourceId12 = typedArrayObtainStyledAttributes.getResourceId(index, i15);
                            if (resourceId12 == -1) {
                                resourceId12 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2497n = resourceId12;
                            break;
                        case 35:
                            int i16 = this.f2496m;
                            int[] iArr13 = d.a;
                            int resourceId13 = typedArrayObtainStyledAttributes.getResourceId(index, i16);
                            if (resourceId13 == -1) {
                                resourceId13 = typedArrayObtainStyledAttributes.getInt(index, -1);
                            }
                            this.f2496m = resourceId13;
                            break;
                        case 36:
                            this.f2508y = typedArrayObtainStyledAttributes.getFloat(index, this.f2508y);
                            break;
                        case 37:
                            this.V = typedArrayObtainStyledAttributes.getFloat(index, this.V);
                            break;
                        case 38:
                            this.U = typedArrayObtainStyledAttributes.getFloat(index, this.U);
                            break;
                        case 39:
                            this.W = typedArrayObtainStyledAttributes.getInt(index, this.W);
                            break;
                        case 40:
                            this.X = typedArrayObtainStyledAttributes.getInt(index, this.X);
                            break;
                        case 41:
                            d.g(this, typedArrayObtainStyledAttributes, index, 0);
                            break;
                        case 42:
                            d.g(this, typedArrayObtainStyledAttributes, index, 1);
                            break;
                        default:
                            switch (i3) {
                                case 54:
                                    this.Y = typedArrayObtainStyledAttributes.getInt(index, this.Y);
                                    break;
                                case 55:
                                    this.Z = typedArrayObtainStyledAttributes.getInt(index, this.Z);
                                    break;
                                case 56:
                                    this.f2481a0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f2481a0);
                                    break;
                                case 57:
                                    this.f2483b0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f2483b0);
                                    break;
                                case 58:
                                    this.f2485c0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f2485c0);
                                    break;
                                case 59:
                                    this.f2487d0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f2487d0);
                                    break;
                                default:
                                    switch (i3) {
                                        case 61:
                                            int i17 = this.A;
                                            int[] iArr14 = d.a;
                                            int resourceId14 = typedArrayObtainStyledAttributes.getResourceId(index, i17);
                                            if (resourceId14 == -1) {
                                                resourceId14 = typedArrayObtainStyledAttributes.getInt(index, -1);
                                            }
                                            this.A = resourceId14;
                                            break;
                                        case 62:
                                            this.B = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.B);
                                            break;
                                        case 63:
                                            this.C = typedArrayObtainStyledAttributes.getFloat(index, this.C);
                                            break;
                                        default:
                                            switch (i3) {
                                                case 69:
                                                    this.e0 = typedArrayObtainStyledAttributes.getFloat(index, 1.0f);
                                                    continue;
                                                case 70:
                                                    this.f0 = typedArrayObtainStyledAttributes.getFloat(index, 1.0f);
                                                    continue;
                                                case 71:
                                                    Log.e("ConstraintSet", "CURRENTLY UNSUPPORTED");
                                                    continue;
                                                case 72:
                                                    this.g0 = typedArrayObtainStyledAttributes.getInt(index, this.g0);
                                                    continue;
                                                case 73:
                                                    this.h0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.h0);
                                                    continue;
                                                case 74:
                                                    this.k0 = typedArrayObtainStyledAttributes.getString(index);
                                                    continue;
                                                case 75:
                                                    this.o0 = typedArrayObtainStyledAttributes.getBoolean(index, this.o0);
                                                    continue;
                                                case 76:
                                                    sb = new StringBuilder();
                                                    str = "unused attribute 0x";
                                                    break;
                                                case 77:
                                                    this.l0 = typedArrayObtainStyledAttributes.getString(index);
                                                    continue;
                                                default:
                                                    switch (i3) {
                                                        case 91:
                                                            int i18 = this.f2501r;
                                                            int[] iArr15 = d.a;
                                                            int resourceId15 = typedArrayObtainStyledAttributes.getResourceId(index, i18);
                                                            if (resourceId15 == -1) {
                                                                resourceId15 = typedArrayObtainStyledAttributes.getInt(index, -1);
                                                            }
                                                            this.f2501r = resourceId15;
                                                            continue;
                                                        case 92:
                                                            int i19 = this.f2502s;
                                                            int[] iArr16 = d.a;
                                                            int resourceId16 = typedArrayObtainStyledAttributes.getResourceId(index, i19);
                                                            if (resourceId16 == -1) {
                                                                resourceId16 = typedArrayObtainStyledAttributes.getInt(index, -1);
                                                            }
                                                            this.f2502s = resourceId16;
                                                            continue;
                                                        case 93:
                                                            this.M = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.M);
                                                            continue;
                                                        case 94:
                                                            this.T = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.T);
                                                            continue;
                                                        default:
                                                            sb = new StringBuilder();
                                                            str = "Unknown attribute 0x";
                                                            break;
                                                    }
                                                    break;
                                            }
                                            sb.append(str);
                                            sb.append(Integer.toHexString(index));
                                            sb.append("   ");
                                            sb.append(a.get(index));
                                            Log.w("ConstraintSet", sb.toString());
                                            break;
                                    }
                                    break;
                            }
                            break;
                    }
                } else {
                    this.p0 = typedArrayObtainStyledAttributes.getInt(index, this.p0);
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
    }

    public static class c {
        public static SparseIntArray a;

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

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        public int f2511c = -1;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        public int f2512d = 0;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        public String f2513e = null;

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

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        public int f2515g = 0;

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

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

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

        /* JADX INFO: renamed from: k, reason: collision with root package name */
        public float f2519k = Float.NaN;

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

        /* JADX INFO: renamed from: m, reason: collision with root package name */
        public String f2521m = null;

        /* JADX INFO: renamed from: n, reason: collision with root package name */
        public int f2522n = -3;

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

        static {
            SparseIntArray sparseIntArray = new SparseIntArray();
            a = sparseIntArray;
            sparseIntArray.append(3, 1);
            a.append(5, 2);
            a.append(9, 3);
            a.append(2, 4);
            a.append(1, 5);
            a.append(0, 6);
            a.append(4, 7);
            a.append(8, 8);
            a.append(7, 9);
            a.append(6, 10);
        }

        public void a(Context context, AttributeSet attributeSet) {
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, i.f2551g);
            this.f2510b = true;
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i2 = 0; i2 < indexCount; i2++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i2);
                switch (a.get(index)) {
                    case 1:
                        this.f2518j = typedArrayObtainStyledAttributes.getFloat(index, this.f2518j);
                        break;
                    case 2:
                        this.f2514f = typedArrayObtainStyledAttributes.getInt(index, this.f2514f);
                        break;
                    case 3:
                        this.f2513e = typedArrayObtainStyledAttributes.peekValue(index).type == 3 ? typedArrayObtainStyledAttributes.getString(index) : d.f.a.i.a.a.f2283b[typedArrayObtainStyledAttributes.getInteger(index, 0)];
                        break;
                    case 4:
                        this.f2515g = typedArrayObtainStyledAttributes.getInt(index, 0);
                        break;
                    case 5:
                        int i3 = this.f2511c;
                        int[] iArr = d.a;
                        int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, i3);
                        if (resourceId == -1) {
                            resourceId = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.f2511c = resourceId;
                        break;
                    case 6:
                        this.f2512d = typedArrayObtainStyledAttributes.getInteger(index, this.f2512d);
                        break;
                    case 7:
                        this.f2516h = typedArrayObtainStyledAttributes.getFloat(index, this.f2516h);
                        break;
                    case 8:
                        this.f2520l = typedArrayObtainStyledAttributes.getInteger(index, this.f2520l);
                        break;
                    case 9:
                        this.f2519k = typedArrayObtainStyledAttributes.getFloat(index, this.f2519k);
                        break;
                    case 10:
                        int i4 = typedArrayObtainStyledAttributes.peekValue(index).type;
                        if (i4 == 1) {
                            int resourceId2 = typedArrayObtainStyledAttributes.getResourceId(index, -1);
                            this.f2523o = resourceId2;
                            if (resourceId2 != -1) {
                                this.f2522n = -2;
                            }
                        } else if (i4 == 3) {
                            String string = typedArrayObtainStyledAttributes.getString(index);
                            this.f2521m = string;
                            if (string.indexOf("/") > 0) {
                                this.f2523o = typedArrayObtainStyledAttributes.getResourceId(index, -1);
                                this.f2522n = -2;
                            } else {
                                this.f2522n = -1;
                            }
                        } else {
                            this.f2522n = typedArrayObtainStyledAttributes.getInteger(index, this.f2523o);
                        }
                        break;
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
    }

    /* JADX INFO: renamed from: d.f.c.d$d, reason: collision with other inner class name */
    public static class C0028d {
        public boolean a = false;

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

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

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

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

        public void a(Context context, AttributeSet attributeSet) {
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, i.f2553i);
            this.a = true;
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i2 = 0; i2 < indexCount; i2++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i2);
                if (index == 1) {
                    this.f2526d = typedArrayObtainStyledAttributes.getFloat(index, this.f2526d);
                } else if (index == 0) {
                    int i3 = typedArrayObtainStyledAttributes.getInt(index, this.f2524b);
                    this.f2524b = i3;
                    int[] iArr = d.a;
                    this.f2524b = d.a[i3];
                } else if (index == 4) {
                    this.f2525c = typedArrayObtainStyledAttributes.getInt(index, this.f2525c);
                } else if (index == 3) {
                    this.f2527e = typedArrayObtainStyledAttributes.getFloat(index, this.f2527e);
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
    }

    public static class e {
        public static SparseIntArray a;

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

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        public float f2529c = 0.0f;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        public float f2530d = 0.0f;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        public float f2531e = 0.0f;

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

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        public float f2533g = 1.0f;

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

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

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

        /* JADX INFO: renamed from: k, reason: collision with root package name */
        public float f2537k = 0.0f;

        /* JADX INFO: renamed from: l, reason: collision with root package name */
        public float f2538l = 0.0f;

        /* JADX INFO: renamed from: m, reason: collision with root package name */
        public float f2539m = 0.0f;

        /* JADX INFO: renamed from: n, reason: collision with root package name */
        public boolean f2540n = false;

        /* JADX INFO: renamed from: o, reason: collision with root package name */
        public float f2541o = 0.0f;

        static {
            SparseIntArray sparseIntArray = new SparseIntArray();
            a = sparseIntArray;
            sparseIntArray.append(6, 1);
            a.append(7, 2);
            a.append(8, 3);
            a.append(4, 4);
            a.append(5, 5);
            a.append(0, 6);
            a.append(1, 7);
            a.append(2, 8);
            a.append(3, 9);
            a.append(9, 10);
            a.append(10, 11);
            a.append(11, 12);
        }

        public void a(Context context, AttributeSet attributeSet) {
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, i.f2555k);
            this.f2528b = true;
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i2 = 0; i2 < indexCount; i2++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i2);
                switch (a.get(index)) {
                    case 1:
                        this.f2529c = typedArrayObtainStyledAttributes.getFloat(index, this.f2529c);
                        break;
                    case 2:
                        this.f2530d = typedArrayObtainStyledAttributes.getFloat(index, this.f2530d);
                        break;
                    case 3:
                        this.f2531e = typedArrayObtainStyledAttributes.getFloat(index, this.f2531e);
                        break;
                    case 4:
                        this.f2532f = typedArrayObtainStyledAttributes.getFloat(index, this.f2532f);
                        break;
                    case 5:
                        this.f2533g = typedArrayObtainStyledAttributes.getFloat(index, this.f2533g);
                        break;
                    case 6:
                        this.f2534h = typedArrayObtainStyledAttributes.getDimension(index, this.f2534h);
                        break;
                    case 7:
                        this.f2535i = typedArrayObtainStyledAttributes.getDimension(index, this.f2535i);
                        break;
                    case 8:
                        this.f2537k = typedArrayObtainStyledAttributes.getDimension(index, this.f2537k);
                        break;
                    case 9:
                        this.f2538l = typedArrayObtainStyledAttributes.getDimension(index, this.f2538l);
                        break;
                    case 10:
                        this.f2539m = typedArrayObtainStyledAttributes.getDimension(index, this.f2539m);
                        break;
                    case 11:
                        this.f2540n = true;
                        this.f2541o = typedArrayObtainStyledAttributes.getDimension(index, this.f2541o);
                        break;
                    case 12:
                        int i3 = this.f2536j;
                        int[] iArr = d.a;
                        int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, i3);
                        if (resourceId == -1) {
                            resourceId = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.f2536j = resourceId;
                        break;
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
    }

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

    /* JADX WARN: Removed duplicated region for block: B:20:0x0033  */
    /* JADX WARN: Removed duplicated region for block: B:24:0x0041  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static void g(java.lang.Object r8, android.content.res.TypedArray r9, int r10, int r11) {
        /*
            Method dump skipped, instruction units count: 365
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: d.f.c.d.g(java.lang.Object, android.content.res.TypedArray, int, int):void");
    }

    public static void h(ConstraintLayout.a aVar, String str) {
        if (str != null) {
            int length = str.length();
            int iIndexOf = str.indexOf(44);
            int i2 = -1;
            if (iIndexOf > 0 && iIndexOf < length - 1) {
                String strSubstring = str.substring(0, iIndexOf);
                i2 = strSubstring.equalsIgnoreCase("W") ? 0 : strSubstring.equalsIgnoreCase("H") ? 1 : -1;
                i = iIndexOf + 1;
            }
            int iIndexOf2 = str.indexOf(58);
            try {
                if (iIndexOf2 < 0 || iIndexOf2 >= length - 1) {
                    String strSubstring2 = str.substring(i);
                    if (strSubstring2.length() > 0) {
                        Float.parseFloat(strSubstring2);
                    }
                } else {
                    String strSubstring3 = str.substring(i, iIndexOf2);
                    String strSubstring4 = str.substring(iIndexOf2 + 1);
                    if (strSubstring3.length() > 0 && strSubstring4.length() > 0) {
                        float f2 = Float.parseFloat(strSubstring3);
                        float f3 = Float.parseFloat(strSubstring4);
                        if (f2 > 0.0f && f3 > 0.0f) {
                            if (i2 == 1) {
                                Math.abs(f3 / f2);
                            } else {
                                Math.abs(f2 / f3);
                            }
                        }
                    }
                }
            } catch (NumberFormatException unused) {
            }
        }
        aVar.F = str;
    }

    public void a(ConstraintLayout constraintLayout) {
        b(constraintLayout, true);
        constraintLayout.setConstraintSet(null);
        constraintLayout.requestLayout();
    }

    public void b(ConstraintLayout constraintLayout, boolean z2) {
        int childCount = constraintLayout.getChildCount();
        HashSet<Integer> hashSet = new HashSet(this.f2463f.keySet());
        for (int i2 = 0; i2 < childCount; i2++) {
            View childAt = constraintLayout.getChildAt(i2);
            int id = childAt.getId();
            if (!this.f2463f.containsKey(Integer.valueOf(id))) {
                StringBuilder sbF = g.a.a.a.a.F("id unknown ");
                sbF.append(d.b.a.e(childAt));
                Log.w("ConstraintSet", sbF.toString());
            } else {
                if (this.f2462e && id == -1) {
                    throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
                }
                if (id != -1) {
                    if (this.f2463f.containsKey(Integer.valueOf(id))) {
                        hashSet.remove(Integer.valueOf(id));
                        a aVar = this.f2463f.get(Integer.valueOf(id));
                        if (aVar != null) {
                            if (childAt instanceof Barrier) {
                                aVar.f2466d.i0 = 1;
                                Barrier barrier = (Barrier) childAt;
                                barrier.setId(id);
                                barrier.setType(aVar.f2466d.g0);
                                barrier.setMargin(aVar.f2466d.h0);
                                barrier.setAllowsGoneWidget(aVar.f2466d.o0);
                                b bVar = aVar.f2466d;
                                int[] iArr = bVar.j0;
                                if (iArr != null) {
                                    barrier.setReferencedIds(iArr);
                                } else {
                                    String str = bVar.k0;
                                    if (str != null) {
                                        bVar.j0 = d(barrier, str);
                                        barrier.setReferencedIds(aVar.f2466d.j0);
                                    }
                                }
                            }
                            ConstraintLayout.a aVar2 = (ConstraintLayout.a) childAt.getLayoutParams();
                            aVar2.a();
                            aVar.a(aVar2);
                            if (z2) {
                                d.f.c.a.b(childAt, aVar.f2468f);
                            }
                            childAt.setLayoutParams(aVar2);
                            C0028d c0028d = aVar.f2464b;
                            if (c0028d.f2525c == 0) {
                                childAt.setVisibility(c0028d.f2524b);
                            }
                            childAt.setAlpha(aVar.f2464b.f2526d);
                            childAt.setRotation(aVar.f2467e.f2529c);
                            childAt.setRotationX(aVar.f2467e.f2530d);
                            childAt.setRotationY(aVar.f2467e.f2531e);
                            childAt.setScaleX(aVar.f2467e.f2532f);
                            childAt.setScaleY(aVar.f2467e.f2533g);
                            e eVar = aVar.f2467e;
                            if (eVar.f2536j != -1) {
                                if (((View) childAt.getParent()).findViewById(aVar.f2467e.f2536j) != null) {
                                    float bottom = (r4.getBottom() + r4.getTop()) / 2.0f;
                                    float right = (r4.getRight() + r4.getLeft()) / 2.0f;
                                    if (childAt.getRight() - childAt.getLeft() > 0 && childAt.getBottom() - childAt.getTop() > 0) {
                                        childAt.setPivotX(right - childAt.getLeft());
                                        childAt.setPivotY(bottom - childAt.getTop());
                                    }
                                }
                            } else {
                                if (!Float.isNaN(eVar.f2534h)) {
                                    childAt.setPivotX(aVar.f2467e.f2534h);
                                }
                                if (!Float.isNaN(aVar.f2467e.f2535i)) {
                                    childAt.setPivotY(aVar.f2467e.f2535i);
                                }
                            }
                            childAt.setTranslationX(aVar.f2467e.f2537k);
                            childAt.setTranslationY(aVar.f2467e.f2538l);
                            childAt.setTranslationZ(aVar.f2467e.f2539m);
                            e eVar2 = aVar.f2467e;
                            if (eVar2.f2540n) {
                                childAt.setElevation(eVar2.f2541o);
                            }
                        }
                    } else {
                        Log.v("ConstraintSet", "WARNING NO CONSTRAINTS for view " + id);
                    }
                }
            }
        }
        for (Integer num : hashSet) {
            a aVar3 = this.f2463f.get(num);
            if (aVar3 != null) {
                if (aVar3.f2466d.i0 == 1) {
                    Barrier barrier2 = new Barrier(constraintLayout.getContext());
                    barrier2.setId(num.intValue());
                    b bVar2 = aVar3.f2466d;
                    int[] iArr2 = bVar2.j0;
                    if (iArr2 != null) {
                        barrier2.setReferencedIds(iArr2);
                    } else {
                        String str2 = bVar2.k0;
                        if (str2 != null) {
                            bVar2.j0 = d(barrier2, str2);
                            barrier2.setReferencedIds(aVar3.f2466d.j0);
                        }
                    }
                    barrier2.setType(aVar3.f2466d.g0);
                    barrier2.setMargin(aVar3.f2466d.h0);
                    ConstraintLayout.a aVarGenerateDefaultLayoutParams = constraintLayout.generateDefaultLayoutParams();
                    barrier2.n();
                    aVar3.a(aVarGenerateDefaultLayoutParams);
                    constraintLayout.addView(barrier2, aVarGenerateDefaultLayoutParams);
                }
                if (aVar3.f2466d.f2482b) {
                    View guideline = new Guideline(constraintLayout.getContext());
                    guideline.setId(num.intValue());
                    ConstraintLayout.a aVarGenerateDefaultLayoutParams2 = constraintLayout.generateDefaultLayoutParams();
                    aVar3.a(aVarGenerateDefaultLayoutParams2);
                    constraintLayout.addView(guideline, aVarGenerateDefaultLayoutParams2);
                }
            }
        }
        for (int i3 = 0; i3 < childCount; i3++) {
            View childAt2 = constraintLayout.getChildAt(i3);
            if (childAt2 instanceof d.f.c.b) {
                ((d.f.c.b) childAt2).g(constraintLayout);
            }
        }
    }

    public void c(ConstraintLayout constraintLayout) {
        d.f.c.a aVar;
        d dVar = this;
        int childCount = constraintLayout.getChildCount();
        dVar.f2463f.clear();
        int i2 = 0;
        while (i2 < childCount) {
            View childAt = constraintLayout.getChildAt(i2);
            ConstraintLayout.a aVar2 = (ConstraintLayout.a) childAt.getLayoutParams();
            int id = childAt.getId();
            if (dVar.f2462e && id == -1) {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            }
            if (!dVar.f2463f.containsKey(Integer.valueOf(id))) {
                dVar.f2463f.put(Integer.valueOf(id), new a());
            }
            a aVar3 = dVar.f2463f.get(Integer.valueOf(id));
            if (aVar3 != null) {
                HashMap<String, d.f.c.a> map = dVar.f2461d;
                HashMap<String, d.f.c.a> map2 = new HashMap<>();
                Class<?> cls = childAt.getClass();
                for (String str : map.keySet()) {
                    d.f.c.a aVar4 = map.get(str);
                    try {
                        if (str.equals("BackgroundColor")) {
                            aVar = new d.f.c.a(aVar4, Integer.valueOf(((ColorDrawable) childAt.getBackground()).getColor()));
                        } else {
                            try {
                                aVar = new d.f.c.a(aVar4, cls.getMethod("getMap" + str, new Class[0]).invoke(childAt, new Object[0]));
                            } catch (IllegalAccessException e2) {
                                e = e2;
                                e.printStackTrace();
                            } catch (NoSuchMethodException e3) {
                                e = e3;
                                e.printStackTrace();
                            } catch (InvocationTargetException e4) {
                                e = e4;
                                e.printStackTrace();
                            }
                        }
                        map2.put(str, aVar);
                    } catch (IllegalAccessException e5) {
                        e = e5;
                    } catch (NoSuchMethodException e6) {
                        e = e6;
                    } catch (InvocationTargetException e7) {
                        e = e7;
                    }
                }
                aVar3.f2468f = map2;
                aVar3.b(id, aVar2);
                aVar3.f2464b.f2524b = childAt.getVisibility();
                aVar3.f2464b.f2526d = childAt.getAlpha();
                aVar3.f2467e.f2529c = childAt.getRotation();
                aVar3.f2467e.f2530d = childAt.getRotationX();
                aVar3.f2467e.f2531e = childAt.getRotationY();
                aVar3.f2467e.f2532f = childAt.getScaleX();
                aVar3.f2467e.f2533g = childAt.getScaleY();
                float pivotX = childAt.getPivotX();
                float pivotY = childAt.getPivotY();
                if (pivotX != 0.0d || pivotY != 0.0d) {
                    e eVar = aVar3.f2467e;
                    eVar.f2534h = pivotX;
                    eVar.f2535i = pivotY;
                }
                aVar3.f2467e.f2537k = childAt.getTranslationX();
                aVar3.f2467e.f2538l = childAt.getTranslationY();
                aVar3.f2467e.f2539m = childAt.getTranslationZ();
                e eVar2 = aVar3.f2467e;
                if (eVar2.f2540n) {
                    eVar2.f2541o = childAt.getElevation();
                }
                if (childAt instanceof Barrier) {
                    Barrier barrier = (Barrier) childAt;
                    aVar3.f2466d.o0 = barrier.getAllowsGoneWidget();
                    aVar3.f2466d.j0 = barrier.getReferencedIds();
                    aVar3.f2466d.g0 = barrier.getType();
                    aVar3.f2466d.h0 = barrier.getMargin();
                }
            }
            i2++;
            dVar = this;
        }
    }

    public final int[] d(View view, String str) {
        int iIntValue;
        Object objC;
        String[] strArrSplit = str.split(",");
        Context context = view.getContext();
        int[] iArr = new int[strArrSplit.length];
        int i2 = 0;
        int i3 = 0;
        while (i2 < strArrSplit.length) {
            String strTrim = strArrSplit[i2].trim();
            try {
                iIntValue = h.class.getField(strTrim).getInt(null);
            } catch (Exception unused) {
                iIntValue = 0;
            }
            if (iIntValue == 0) {
                iIntValue = context.getResources().getIdentifier(strTrim, "id", context.getPackageName());
            }
            if (iIntValue == 0 && view.isInEditMode() && (view.getParent() instanceof ConstraintLayout) && (objC = ((ConstraintLayout) view.getParent()).c(0, strTrim)) != null && (objC instanceof Integer)) {
                iIntValue = ((Integer) objC).intValue();
            }
            iArr[i3] = iIntValue;
            i2++;
            i3++;
        }
        return i3 != strArrSplit.length ? Arrays.copyOf(iArr, i3) : iArr;
    }

    /* JADX WARN: Removed duplicated region for block: B:68:0x01d5 A[PHI: r10 r15
      0x01d5: PHI (r10v218 int) = (r10v186 int), (r10v219 int) binds: [B:67:0x01d3, B:39:0x0126] A[DONT_GENERATE, DONT_INLINE]
      0x01d5: PHI (r15v11 int) = (r15v8 int), (r15v12 int) binds: [B:67:0x01d3, B:39:0x0126] A[DONT_GENERATE, DONT_INLINE]] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final d.f.c.d.a e(android.content.Context r18, android.util.AttributeSet r19, boolean r20) {
        /*
            Method dump skipped, instruction units count: 2730
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: d.f.c.d.e(android.content.Context, android.util.AttributeSet, boolean):d.f.c.d$a");
    }

    public void f(Context context, int i2) {
        XmlResourceParser xml = context.getResources().getXml(i2);
        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 aVarE = e(context, Xml.asAttributeSet(xml), false);
                    if (name.equalsIgnoreCase("Guideline")) {
                        aVarE.f2466d.f2482b = true;
                    }
                    this.f2463f.put(Integer.valueOf(aVarE.a), aVarE);
                }
            }
        } catch (IOException e2) {
            e2.printStackTrace();
        } catch (XmlPullParserException e3) {
            e3.printStackTrace();
        }
    }
}
