package b.e.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.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.constraintlayout.widget.ConstraintLayout;
import b.e.c.f;
import com.cvte.vman.instance.InvokeCmd;
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 e {

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

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

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

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

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

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

    public static class a {

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

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

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

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

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

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        public HashMap<String, b.e.c.b> f854f = new HashMap<>();
        public C0012a g;

        /* JADX INFO: renamed from: b.e.c.e$a$a, reason: collision with other inner class name */
        public static class C0012a {

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

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

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

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

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

            /* JADX INFO: renamed from: f, reason: collision with root package name */
            public int f860f = 0;
            public int[] g = new int[5];
            public String[] h = new String[5];
            public int i = 0;
            public int[] j = new int[4];
            public boolean[] k = new boolean[4];
            public int l = 0;

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

            public void b(int i, int i2) {
                int i3 = this.f857c;
                int[] iArr = this.f855a;
                if (i3 >= iArr.length) {
                    this.f855a = Arrays.copyOf(iArr, iArr.length * 2);
                    int[] iArr2 = this.f856b;
                    this.f856b = Arrays.copyOf(iArr2, iArr2.length * 2);
                }
                int[] iArr3 = this.f855a;
                int i4 = this.f857c;
                iArr3[i4] = i;
                int[] iArr4 = this.f856b;
                this.f857c = i4 + 1;
                iArr4[i4] = i2;
            }

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

            public void d(int i, boolean z) {
                int i2 = this.l;
                int[] iArr = this.j;
                if (i2 >= iArr.length) {
                    this.j = Arrays.copyOf(iArr, iArr.length * 2);
                    boolean[] zArr = this.k;
                    this.k = Arrays.copyOf(zArr, zArr.length * 2);
                }
                int[] iArr2 = this.j;
                int i3 = this.l;
                iArr2[i3] = i;
                boolean[] zArr2 = this.k;
                this.l = i3 + 1;
                zArr2[i3] = z;
            }
        }

        public void a(ConstraintLayout.a aVar) {
            b bVar = this.f852d;
            aVar.f140e = bVar.j;
            aVar.f141f = bVar.k;
            aVar.g = bVar.l;
            aVar.h = bVar.m;
            aVar.i = bVar.n;
            aVar.j = bVar.o;
            aVar.k = bVar.p;
            aVar.l = bVar.q;
            aVar.m = bVar.r;
            aVar.n = bVar.s;
            aVar.o = bVar.t;
            aVar.s = bVar.u;
            aVar.t = bVar.v;
            aVar.u = bVar.w;
            aVar.v = bVar.x;
            ((ViewGroup.MarginLayoutParams) aVar).leftMargin = bVar.H;
            ((ViewGroup.MarginLayoutParams) aVar).rightMargin = bVar.I;
            ((ViewGroup.MarginLayoutParams) aVar).topMargin = bVar.J;
            ((ViewGroup.MarginLayoutParams) aVar).bottomMargin = bVar.K;
            aVar.A = bVar.T;
            aVar.B = bVar.S;
            aVar.x = bVar.P;
            aVar.z = bVar.R;
            aVar.E = bVar.y;
            aVar.F = bVar.z;
            b bVar2 = this.f852d;
            aVar.p = bVar2.B;
            aVar.q = bVar2.C;
            aVar.r = bVar2.D;
            aVar.G = bVar2.A;
            aVar.T = bVar2.E;
            aVar.U = bVar2.F;
            aVar.I = bVar2.V;
            aVar.H = bVar2.W;
            aVar.K = bVar2.Y;
            aVar.J = bVar2.X;
            aVar.W = bVar2.n0;
            aVar.X = bVar2.o0;
            aVar.L = bVar2.Z;
            aVar.M = bVar2.a0;
            aVar.P = bVar2.b0;
            aVar.Q = bVar2.c0;
            aVar.N = bVar2.d0;
            aVar.O = bVar2.e0;
            aVar.R = bVar2.f0;
            aVar.S = bVar2.g0;
            aVar.V = bVar2.G;
            aVar.f138c = bVar2.h;
            aVar.f136a = bVar2.f866f;
            aVar.f137b = bVar2.g;
            ((ViewGroup.MarginLayoutParams) aVar).width = bVar2.f864d;
            b bVar3 = this.f852d;
            ((ViewGroup.MarginLayoutParams) aVar).height = bVar3.f865e;
            String str = bVar3.m0;
            if (str != null) {
                aVar.Y = str;
            }
            aVar.Z = bVar3.q0;
            aVar.setMarginStart(bVar3.M);
            aVar.setMarginEnd(this.f852d.L);
            aVar.a();
        }

        public final void b(int i, ConstraintLayout.a aVar) {
            this.f849a = i;
            b bVar = this.f852d;
            bVar.j = aVar.f140e;
            bVar.k = aVar.f141f;
            bVar.l = aVar.g;
            bVar.m = aVar.h;
            bVar.n = aVar.i;
            bVar.o = aVar.j;
            bVar.p = aVar.k;
            bVar.q = aVar.l;
            bVar.r = aVar.m;
            bVar.s = aVar.n;
            bVar.t = aVar.o;
            bVar.u = aVar.s;
            bVar.v = aVar.t;
            bVar.w = aVar.u;
            bVar.x = aVar.v;
            bVar.y = aVar.E;
            bVar.z = aVar.F;
            bVar.A = aVar.G;
            bVar.B = aVar.p;
            bVar.C = aVar.q;
            bVar.D = aVar.r;
            bVar.E = aVar.T;
            bVar.F = aVar.U;
            bVar.G = aVar.V;
            bVar.h = aVar.f138c;
            b bVar2 = this.f852d;
            bVar2.f866f = aVar.f136a;
            bVar2.g = aVar.f137b;
            bVar2.f864d = ((ViewGroup.MarginLayoutParams) aVar).width;
            bVar2.f865e = ((ViewGroup.MarginLayoutParams) aVar).height;
            bVar2.H = ((ViewGroup.MarginLayoutParams) aVar).leftMargin;
            bVar2.I = ((ViewGroup.MarginLayoutParams) aVar).rightMargin;
            bVar2.J = ((ViewGroup.MarginLayoutParams) aVar).topMargin;
            bVar2.K = ((ViewGroup.MarginLayoutParams) aVar).bottomMargin;
            bVar2.N = aVar.D;
            bVar2.V = aVar.I;
            bVar2.W = aVar.H;
            bVar2.Y = aVar.K;
            bVar2.X = aVar.J;
            bVar2.n0 = aVar.W;
            bVar2.o0 = aVar.X;
            bVar2.Z = aVar.L;
            bVar2.a0 = aVar.M;
            bVar2.b0 = aVar.P;
            bVar2.c0 = aVar.Q;
            bVar2.d0 = aVar.N;
            bVar2.e0 = aVar.O;
            bVar2.f0 = aVar.R;
            bVar2.g0 = aVar.S;
            bVar2.m0 = aVar.Y;
            bVar2.P = aVar.x;
            b bVar3 = this.f852d;
            bVar3.R = aVar.z;
            bVar3.O = aVar.w;
            bVar3.Q = aVar.y;
            bVar3.T = aVar.A;
            bVar3.S = aVar.B;
            bVar3.U = aVar.C;
            bVar3.q0 = aVar.Z;
            bVar3.L = aVar.getMarginEnd();
            this.f852d.M = aVar.getMarginStart();
        }

        public final void c(int i, f.a aVar) {
            b(i, aVar);
            this.f850b.f876d = aVar.r0;
            C0013e c0013e = this.f853e;
            c0013e.f880c = aVar.u0;
            c0013e.f881d = aVar.v0;
            c0013e.f882e = aVar.w0;
            c0013e.f883f = aVar.x0;
            c0013e.g = aVar.y0;
            c0013e.h = aVar.z0;
            c0013e.i = aVar.A0;
            c0013e.k = aVar.B0;
            c0013e.l = aVar.C0;
            c0013e.m = aVar.D0;
            c0013e.o = aVar.t0;
            c0013e.n = aVar.s0;
        }

        public Object clone() {
            a aVar = new a();
            b bVar = aVar.f852d;
            b bVar2 = this.f852d;
            Objects.requireNonNull(bVar);
            bVar.f862b = bVar2.f862b;
            bVar.f864d = bVar2.f864d;
            bVar.f863c = bVar2.f863c;
            bVar.f865e = bVar2.f865e;
            bVar.f866f = bVar2.f866f;
            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.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.a0 = bVar2.a0;
            bVar.b0 = bVar2.b0;
            bVar.c0 = bVar2.c0;
            bVar.d0 = bVar2.d0;
            bVar.e0 = bVar2.e0;
            bVar.f0 = bVar2.f0;
            bVar.g0 = bVar2.g0;
            bVar.h0 = bVar2.h0;
            bVar.i0 = bVar2.i0;
            bVar.j0 = bVar2.j0;
            bVar.m0 = bVar2.m0;
            int[] iArr = bVar2.k0;
            if (iArr == null || bVar2.l0 != null) {
                bVar.k0 = null;
            } else {
                bVar.k0 = Arrays.copyOf(iArr, iArr.length);
            }
            bVar.l0 = bVar2.l0;
            bVar.n0 = bVar2.n0;
            bVar.o0 = bVar2.o0;
            bVar.p0 = bVar2.p0;
            bVar.q0 = bVar2.q0;
            c cVar = aVar.f851c;
            c cVar2 = this.f851c;
            Objects.requireNonNull(cVar);
            cVar.f868b = cVar2.f868b;
            cVar.f869c = cVar2.f869c;
            cVar.f871e = cVar2.f871e;
            cVar.f872f = cVar2.f872f;
            cVar.g = cVar2.g;
            cVar.j = cVar2.j;
            cVar.h = cVar2.h;
            cVar.i = cVar2.i;
            d dVar = aVar.f850b;
            d dVar2 = this.f850b;
            Objects.requireNonNull(dVar);
            dVar.f873a = dVar2.f873a;
            dVar.f874b = dVar2.f874b;
            dVar.f876d = dVar2.f876d;
            dVar.f877e = dVar2.f877e;
            dVar.f875c = dVar2.f875c;
            C0013e c0013e = aVar.f853e;
            C0013e c0013e2 = this.f853e;
            Objects.requireNonNull(c0013e);
            c0013e.f879b = c0013e2.f879b;
            c0013e.f880c = c0013e2.f880c;
            c0013e.f881d = c0013e2.f881d;
            c0013e.f882e = c0013e2.f882e;
            c0013e.f883f = c0013e2.f883f;
            c0013e.g = c0013e2.g;
            c0013e.h = c0013e2.h;
            c0013e.i = c0013e2.i;
            c0013e.j = c0013e2.j;
            c0013e.k = c0013e2.k;
            c0013e.l = c0013e2.l;
            c0013e.m = c0013e2.m;
            c0013e.n = c0013e2.n;
            c0013e.o = c0013e2.o;
            aVar.f849a = this.f849a;
            aVar.g = this.g;
            return aVar;
        }
    }

    public static class b {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public static SparseIntArray f861a;

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

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

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

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

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        public int f866f = -1;
        public int g = -1;
        public float h = -1.0f;
        public boolean i = true;
        public int j = -1;
        public int k = -1;
        public int l = -1;
        public int m = -1;
        public int n = -1;
        public int o = -1;
        public int p = -1;
        public int q = -1;
        public int r = -1;
        public int s = -1;
        public int t = -1;
        public int u = -1;
        public int v = -1;
        public int w = -1;
        public int x = -1;
        public float y = 0.5f;
        public float z = 0.5f;
        public String A = null;
        public int B = -1;
        public int C = 0;
        public float D = 0.0f;
        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;
        public int a0 = 0;
        public int b0 = 0;
        public int c0 = 0;
        public int d0 = 0;
        public int e0 = 0;
        public float f0 = 1.0f;
        public float g0 = 1.0f;
        public int h0 = -1;
        public int i0 = 0;
        public int j0 = -1;
        public boolean n0 = false;
        public boolean o0 = false;
        public boolean p0 = true;
        public int q0 = 0;

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

        public void a(Context context, AttributeSet attributeSet) {
            StringBuilder sb;
            String str;
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, k.f894f);
            this.f863c = true;
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i);
                int i2 = f861a.get(index);
                switch (i2) {
                    case 1:
                        int i3 = this.r;
                        int[] iArr = e.f843a;
                        int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, i3);
                        if (resourceId == -1) {
                            resourceId = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.r = resourceId;
                        break;
                    case 2:
                        this.K = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.K);
                        break;
                    case 3:
                        int i4 = this.q;
                        int[] iArr2 = e.f843a;
                        int resourceId2 = typedArrayObtainStyledAttributes.getResourceId(index, i4);
                        if (resourceId2 == -1) {
                            resourceId2 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.q = resourceId2;
                        break;
                    case 4:
                        int i5 = this.p;
                        int[] iArr3 = e.f843a;
                        int resourceId3 = typedArrayObtainStyledAttributes.getResourceId(index, i5);
                        if (resourceId3 == -1) {
                            resourceId3 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.p = resourceId3;
                        break;
                    case 5:
                        this.A = typedArrayObtainStyledAttributes.getString(index);
                        break;
                    case 6:
                        this.E = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.E);
                        break;
                    case 7:
                        this.F = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.F);
                        break;
                    case 8:
                        this.L = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.L);
                        break;
                    case 9:
                        int i6 = this.x;
                        int[] iArr4 = e.f843a;
                        int resourceId4 = typedArrayObtainStyledAttributes.getResourceId(index, i6);
                        if (resourceId4 == -1) {
                            resourceId4 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.x = resourceId4;
                        break;
                    case 10:
                        int i7 = this.w;
                        int[] iArr5 = e.f843a;
                        int resourceId5 = typedArrayObtainStyledAttributes.getResourceId(index, i7);
                        if (resourceId5 == -1) {
                            resourceId5 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.w = resourceId5;
                        break;
                    case 11:
                        this.R = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.R);
                        break;
                    case 12:
                        this.S = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.S);
                        break;
                    case 13:
                        this.O = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.O);
                        break;
                    case 14:
                        this.Q = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.Q);
                        break;
                    case 15:
                        this.T = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.T);
                        break;
                    case 16:
                        this.P = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.P);
                        break;
                    case 17:
                        this.f866f = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.f866f);
                        break;
                    case 18:
                        this.g = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.g);
                        break;
                    case 19:
                        this.h = typedArrayObtainStyledAttributes.getFloat(index, this.h);
                        break;
                    case 20:
                        this.y = typedArrayObtainStyledAttributes.getFloat(index, this.y);
                        break;
                    case 21:
                        this.f865e = typedArrayObtainStyledAttributes.getLayoutDimension(index, this.f865e);
                        break;
                    case 22:
                        this.f864d = typedArrayObtainStyledAttributes.getLayoutDimension(index, this.f864d);
                        break;
                    case 23:
                        this.H = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.H);
                        break;
                    case 24:
                        int i8 = this.j;
                        int[] iArr6 = e.f843a;
                        int resourceId6 = typedArrayObtainStyledAttributes.getResourceId(index, i8);
                        if (resourceId6 == -1) {
                            resourceId6 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.j = resourceId6;
                        break;
                    case 25:
                        int i9 = this.k;
                        int[] iArr7 = e.f843a;
                        int resourceId7 = typedArrayObtainStyledAttributes.getResourceId(index, i9);
                        if (resourceId7 == -1) {
                            resourceId7 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.k = resourceId7;
                        break;
                    case 26:
                        this.G = typedArrayObtainStyledAttributes.getInt(index, this.G);
                        break;
                    case 27:
                        this.I = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.I);
                        break;
                    case 28:
                        int i10 = this.l;
                        int[] iArr8 = e.f843a;
                        int resourceId8 = typedArrayObtainStyledAttributes.getResourceId(index, i10);
                        if (resourceId8 == -1) {
                            resourceId8 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.l = resourceId8;
                        break;
                    case 29:
                        int i11 = this.m;
                        int[] iArr9 = e.f843a;
                        int resourceId9 = typedArrayObtainStyledAttributes.getResourceId(index, i11);
                        if (resourceId9 == -1) {
                            resourceId9 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.m = resourceId9;
                        break;
                    case 30:
                        this.M = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.M);
                        break;
                    case 31:
                        int i12 = this.u;
                        int[] iArr10 = e.f843a;
                        int resourceId10 = typedArrayObtainStyledAttributes.getResourceId(index, i12);
                        if (resourceId10 == -1) {
                            resourceId10 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.u = resourceId10;
                        break;
                    case 32:
                        int i13 = this.v;
                        int[] iArr11 = e.f843a;
                        int resourceId11 = typedArrayObtainStyledAttributes.getResourceId(index, i13);
                        if (resourceId11 == -1) {
                            resourceId11 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.v = resourceId11;
                        break;
                    case 33:
                        this.J = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.J);
                        break;
                    case 34:
                        int i14 = this.o;
                        int[] iArr12 = e.f843a;
                        int resourceId12 = typedArrayObtainStyledAttributes.getResourceId(index, i14);
                        if (resourceId12 == -1) {
                            resourceId12 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.o = resourceId12;
                        break;
                    case 35:
                        int i15 = this.n;
                        int[] iArr13 = e.f843a;
                        int resourceId13 = typedArrayObtainStyledAttributes.getResourceId(index, i15);
                        if (resourceId13 == -1) {
                            resourceId13 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.n = resourceId13;
                        break;
                    case 36:
                        this.z = typedArrayObtainStyledAttributes.getFloat(index, this.z);
                        break;
                    case 37:
                        this.W = typedArrayObtainStyledAttributes.getFloat(index, this.W);
                        break;
                    case 38:
                        this.V = typedArrayObtainStyledAttributes.getFloat(index, this.V);
                        break;
                    case 39:
                        this.X = typedArrayObtainStyledAttributes.getInt(index, this.X);
                        break;
                    case 40:
                        this.Y = typedArrayObtainStyledAttributes.getInt(index, this.Y);
                        break;
                    case 41:
                        e.g(this, typedArrayObtainStyledAttributes, index, 0);
                        break;
                    case 42:
                        e.g(this, typedArrayObtainStyledAttributes, index, 1);
                        break;
                    default:
                        switch (i2) {
                            case 61:
                                int i16 = this.B;
                                int[] iArr14 = e.f843a;
                                int resourceId14 = typedArrayObtainStyledAttributes.getResourceId(index, i16);
                                if (resourceId14 == -1) {
                                    resourceId14 = typedArrayObtainStyledAttributes.getInt(index, -1);
                                }
                                this.B = resourceId14;
                                break;
                            case 62:
                                this.C = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.C);
                                break;
                            case 63:
                                this.D = typedArrayObtainStyledAttributes.getFloat(index, this.D);
                                break;
                            default:
                                switch (i2) {
                                    case 69:
                                        this.f0 = typedArrayObtainStyledAttributes.getFloat(index, 1.0f);
                                        continue;
                                    case 70:
                                        this.g0 = typedArrayObtainStyledAttributes.getFloat(index, 1.0f);
                                        continue;
                                    case 71:
                                        Log.e("ConstraintSet", "CURRENTLY UNSUPPORTED");
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_GET_PIR_WAKEUP /* 72 */:
                                        this.h0 = typedArrayObtainStyledAttributes.getInt(index, this.h0);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_SET_DELAY_LINK_ID /* 73 */:
                                        this.i0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.i0);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_GET_DELAY_LINK_ID /* 74 */:
                                        this.l0 = typedArrayObtainStyledAttributes.getString(index);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_SET_REMOTE_CTRL_WAKEUP /* 75 */:
                                        this.p0 = typedArrayObtainStyledAttributes.getBoolean(index, this.p0);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_GET_REMOTE_CTRL_WAKEUP /* 76 */:
                                        this.q0 = typedArrayObtainStyledAttributes.getInt(index, this.q0);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_SET_RS232_WAKEUP /* 77 */:
                                        int i17 = this.s;
                                        int[] iArr15 = e.f843a;
                                        int resourceId15 = typedArrayObtainStyledAttributes.getResourceId(index, i17);
                                        if (resourceId15 == -1) {
                                            resourceId15 = typedArrayObtainStyledAttributes.getInt(index, -1);
                                        }
                                        this.s = resourceId15;
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_GET_RS232_WAKEUP /* 78 */:
                                        int i18 = this.t;
                                        int[] iArr16 = e.f843a;
                                        int resourceId16 = typedArrayObtainStyledAttributes.getResourceId(index, i18);
                                        if (resourceId16 == -1) {
                                            resourceId16 = typedArrayObtainStyledAttributes.getInt(index, -1);
                                        }
                                        this.t = resourceId16;
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_SET_LOCK_KEYIR /* 79 */:
                                        this.U = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.U);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_SET_RTC_WAKEUP /* 80 */:
                                        this.N = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.N);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_GET_RTC_WAKEUP /* 81 */:
                                        this.Z = typedArrayObtainStyledAttributes.getInt(index, this.Z);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_GET_PIR_WAKEUP_DELAY /* 82 */:
                                        this.a0 = typedArrayObtainStyledAttributes.getInt(index, this.a0);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_SET_PIR_WAKEUP_DELAY /* 83 */:
                                        this.c0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.c0);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_GET_STANDBY_PC_POWERSTATE /* 84 */:
                                        this.b0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.b0);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_SET_STANDBY_PC_POWERSTATE /* 85 */:
                                        this.e0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.e0);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_GET_NFC_STATUS /* 86 */:
                                        this.d0 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.d0);
                                        continue;
                                    case 87:
                                        this.n0 = typedArrayObtainStyledAttributes.getBoolean(index, this.n0);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_ADD_KEEP_ALIVE_APP /* 88 */:
                                        this.o0 = typedArrayObtainStyledAttributes.getBoolean(index, this.o0);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_SET_KEEP_ALIVE_APPS /* 89 */:
                                        this.m0 = typedArrayObtainStyledAttributes.getString(index);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_GET_KEEP_ALIVE_APPS /* 90 */:
                                        this.i = typedArrayObtainStyledAttributes.getBoolean(index, this.i);
                                        continue;
                                    case InvokeCmd.CMD_SYSTEMCTRL_SET_2K_APPS /* 91 */:
                                        sb = new StringBuilder();
                                        str = "unused attribute 0x";
                                        break;
                                    default:
                                        sb = new StringBuilder();
                                        str = "Unknown attribute 0x";
                                        break;
                                }
                                sb.append(str);
                                sb.append(Integer.toHexString(index));
                                sb.append("   ");
                                sb.append(f861a.get(index));
                                Log.w("ConstraintSet", sb.toString());
                                break;
                        }
                        break;
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
    }

    public static class c {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public static SparseIntArray f867a;

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

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

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

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

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        public int f872f = -1;
        public int g = 0;
        public float h = Float.NaN;
        public int i = -1;
        public float j = Float.NaN;
        public float k = Float.NaN;
        public int l = -1;
        public String m = null;
        public int n = -3;
        public int o = -1;

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

        public void a(Context context, AttributeSet attributeSet) {
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, k.g);
            this.f868b = true;
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i);
                switch (f867a.get(index)) {
                    case 1:
                        this.j = typedArrayObtainStyledAttributes.getFloat(index, this.j);
                        break;
                    case 2:
                        this.f872f = typedArrayObtainStyledAttributes.getInt(index, this.f872f);
                        break;
                    case 3:
                        this.f871e = typedArrayObtainStyledAttributes.peekValue(index).type == 3 ? typedArrayObtainStyledAttributes.getString(index) : b.e.a.i.a.a.f731b[typedArrayObtainStyledAttributes.getInteger(index, 0)];
                        break;
                    case 4:
                        this.g = typedArrayObtainStyledAttributes.getInt(index, 0);
                        break;
                    case 5:
                        int i2 = this.f869c;
                        int[] iArr = e.f843a;
                        int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, i2);
                        if (resourceId == -1) {
                            resourceId = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.f869c = resourceId;
                        break;
                    case 6:
                        this.f870d = typedArrayObtainStyledAttributes.getInteger(index, this.f870d);
                        break;
                    case 7:
                        this.h = typedArrayObtainStyledAttributes.getFloat(index, this.h);
                        break;
                    case 8:
                        this.l = typedArrayObtainStyledAttributes.getInteger(index, this.l);
                        break;
                    case 9:
                        this.k = typedArrayObtainStyledAttributes.getFloat(index, this.k);
                        break;
                    case 10:
                        int i3 = typedArrayObtainStyledAttributes.peekValue(index).type;
                        if (i3 == 1) {
                            int resourceId2 = typedArrayObtainStyledAttributes.getResourceId(index, -1);
                            this.o = resourceId2;
                            if (resourceId2 != -1) {
                                this.n = -2;
                            }
                        } else if (i3 == 3) {
                            String string = typedArrayObtainStyledAttributes.getString(index);
                            this.m = string;
                            if (string.indexOf("/") > 0) {
                                this.o = typedArrayObtainStyledAttributes.getResourceId(index, -1);
                                this.n = -2;
                            } else {
                                this.n = -1;
                            }
                        } else {
                            this.n = typedArrayObtainStyledAttributes.getInteger(index, this.o);
                        }
                        break;
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
    }

    public static class d {

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

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

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

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

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

        public void a(Context context, AttributeSet attributeSet) {
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, k.i);
            this.f873a = true;
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i);
                if (index == 1) {
                    this.f876d = typedArrayObtainStyledAttributes.getFloat(index, this.f876d);
                } else if (index == 0) {
                    int i2 = typedArrayObtainStyledAttributes.getInt(index, this.f874b);
                    this.f874b = i2;
                    int[] iArr = e.f843a;
                    this.f874b = e.f843a[i2];
                } else if (index == 4) {
                    this.f875c = typedArrayObtainStyledAttributes.getInt(index, this.f875c);
                } else if (index == 3) {
                    this.f877e = typedArrayObtainStyledAttributes.getFloat(index, this.f877e);
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
    }

    /* JADX INFO: renamed from: b.e.c.e$e, reason: collision with other inner class name */
    public static class C0013e {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public static SparseIntArray f878a;

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

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

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

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

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        public float f883f = 1.0f;
        public float g = 1.0f;
        public float h = Float.NaN;
        public float i = Float.NaN;
        public int j = -1;
        public float k = 0.0f;
        public float l = 0.0f;
        public float m = 0.0f;
        public boolean n = false;
        public float o = 0.0f;

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

        public void a(Context context, AttributeSet attributeSet) {
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, k.k);
            this.f879b = true;
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i);
                switch (f878a.get(index)) {
                    case 1:
                        this.f880c = typedArrayObtainStyledAttributes.getFloat(index, this.f880c);
                        break;
                    case 2:
                        this.f881d = typedArrayObtainStyledAttributes.getFloat(index, this.f881d);
                        break;
                    case 3:
                        this.f882e = typedArrayObtainStyledAttributes.getFloat(index, this.f882e);
                        break;
                    case 4:
                        this.f883f = typedArrayObtainStyledAttributes.getFloat(index, this.f883f);
                        break;
                    case 5:
                        this.g = typedArrayObtainStyledAttributes.getFloat(index, this.g);
                        break;
                    case 6:
                        this.h = typedArrayObtainStyledAttributes.getDimension(index, this.h);
                        break;
                    case 7:
                        this.i = typedArrayObtainStyledAttributes.getDimension(index, this.i);
                        break;
                    case 8:
                        this.k = typedArrayObtainStyledAttributes.getDimension(index, this.k);
                        break;
                    case 9:
                        this.l = typedArrayObtainStyledAttributes.getDimension(index, this.l);
                        break;
                    case 10:
                        this.m = typedArrayObtainStyledAttributes.getDimension(index, this.m);
                        break;
                    case 11:
                        this.n = true;
                        this.o = typedArrayObtainStyledAttributes.getDimension(index, this.o);
                        break;
                    case 12:
                        int i2 = this.j;
                        int[] iArr = e.f843a;
                        int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, i2);
                        if (resourceId == -1) {
                            resourceId = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        this.j = resourceId;
                        break;
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
    }

    static {
        f844b.append(82, 25);
        f844b.append(83, 26);
        f844b.append(85, 29);
        f844b.append(86, 30);
        f844b.append(92, 36);
        f844b.append(91, 35);
        f844b.append(63, 4);
        f844b.append(62, 3);
        f844b.append(58, 1);
        f844b.append(60, 91);
        f844b.append(59, 92);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_SET_USB_RESUME, 6);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_GET_FREEZABLE_APPS, 7);
        f844b.append(70, 17);
        f844b.append(71, 18);
        f844b.append(72, 19);
        f844b.append(54, 99);
        f844b.append(0, 27);
        f844b.append(87, 32);
        f844b.append(88, 33);
        f844b.append(69, 10);
        f844b.append(68, 9);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_ENABLE_HDMI_SWITCH_TX, 13);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_SET_MULTI_PIP_USB_MODE, 16);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_SET_BOOT_ENV, 14);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_SET_BOOTLOGO_STATE, 11);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_GET_BOOT_ENV, 15);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_SYNC_SYSTEM_TIME_CHANGE, 12);
        f844b.append(95, 40);
        f844b.append(80, 39);
        f844b.append(79, 41);
        f844b.append(94, 42);
        f844b.append(78, 20);
        f844b.append(93, 37);
        f844b.append(67, 5);
        f844b.append(81, 87);
        f844b.append(90, 87);
        f844b.append(84, 87);
        f844b.append(61, 87);
        f844b.append(57, 87);
        f844b.append(5, 24);
        f844b.append(7, 28);
        f844b.append(23, 31);
        f844b.append(24, 8);
        f844b.append(6, 34);
        f844b.append(8, 2);
        f844b.append(3, 23);
        f844b.append(4, 21);
        f844b.append(96, 95);
        f844b.append(73, 96);
        f844b.append(2, 22);
        f844b.append(13, 43);
        f844b.append(26, 44);
        f844b.append(21, 45);
        f844b.append(22, 46);
        f844b.append(20, 60);
        f844b.append(18, 47);
        f844b.append(19, 48);
        f844b.append(14, 49);
        f844b.append(15, 50);
        f844b.append(16, 51);
        f844b.append(17, 52);
        f844b.append(25, 53);
        f844b.append(97, 54);
        f844b.append(74, 55);
        f844b.append(98, 56);
        f844b.append(75, 57);
        f844b.append(99, 58);
        f844b.append(76, 59);
        f844b.append(64, 61);
        f844b.append(66, 62);
        f844b.append(65, 63);
        f844b.append(28, 64);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_SET_REFRESH_RATE, 65);
        f844b.append(35, 66);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_IS_SCREENOFF_AUDIO_SUPPORTED, 67);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_MONITOR_NFC_STATE, 79);
        f844b.append(1, 38);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_GET_AENA_STATE, 68);
        f844b.append(100, 69);
        f844b.append(77, 70);
        f844b.append(111, 97);
        f844b.append(32, 71);
        f844b.append(30, 72);
        f844b.append(31, 73);
        f844b.append(33, 74);
        f844b.append(29, 75);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_GET_CUSTOMBOOTMEDIA_PATH, 76);
        f844b.append(89, 77);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_SET_SCREENOFF_AUDIO_ENABLE, 78);
        f844b.append(56, 80);
        f844b.append(55, 81);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_KEEP_GPU_PERFORMANCE, 82);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_ENABLE_TOUCH_ACCELERATION, 83);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_GET_UI_RT_APPS, 84);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_SET_UI_RT_APPS, 85);
        f844b.append(InvokeCmd.CMD_SYSTEMCTRL_CANCEL_GPU_PERFORMANCE, 86);
        f845c.append(85, 6);
        f845c.append(85, 7);
        f845c.append(0, 27);
        f845c.append(89, 13);
        f845c.append(92, 16);
        f845c.append(90, 14);
        f845c.append(87, 11);
        f845c.append(91, 15);
        f845c.append(88, 12);
        f845c.append(78, 40);
        f845c.append(71, 39);
        f845c.append(70, 41);
        f845c.append(77, 42);
        f845c.append(69, 20);
        f845c.append(76, 37);
        f845c.append(60, 5);
        f845c.append(72, 87);
        f845c.append(75, 87);
        f845c.append(73, 87);
        f845c.append(57, 87);
        f845c.append(56, 87);
        f845c.append(5, 24);
        f845c.append(7, 28);
        f845c.append(23, 31);
        f845c.append(24, 8);
        f845c.append(6, 34);
        f845c.append(8, 2);
        f845c.append(3, 23);
        f845c.append(4, 21);
        f845c.append(79, 95);
        f845c.append(64, 96);
        f845c.append(2, 22);
        f845c.append(13, 43);
        f845c.append(26, 44);
        f845c.append(21, 45);
        f845c.append(22, 46);
        f845c.append(20, 60);
        f845c.append(18, 47);
        f845c.append(19, 48);
        f845c.append(14, 49);
        f845c.append(15, 50);
        f845c.append(16, 51);
        f845c.append(17, 52);
        f845c.append(25, 53);
        f845c.append(80, 54);
        f845c.append(65, 55);
        f845c.append(81, 56);
        f845c.append(66, 57);
        f845c.append(82, 58);
        f845c.append(67, 59);
        f845c.append(59, 62);
        f845c.append(58, 63);
        f845c.append(28, 64);
        f845c.append(InvokeCmd.CMD_SYSTEMCTRL_SYNC_SYSTEM_TIME_CHANGE, 65);
        f845c.append(34, 66);
        f845c.append(InvokeCmd.CMD_SYSTEMCTRL_ENABLE_HDMI_SWITCH_TX, 67);
        f845c.append(96, 79);
        f845c.append(1, 38);
        f845c.append(97, 98);
        f845c.append(95, 68);
        f845c.append(83, 69);
        f845c.append(68, 70);
        f845c.append(32, 71);
        f845c.append(30, 72);
        f845c.append(31, 73);
        f845c.append(33, 74);
        f845c.append(29, 75);
        f845c.append(98, 76);
        f845c.append(74, 77);
        f845c.append(InvokeCmd.CMD_SYSTEMCTRL_SET_BOOT_ENV, 78);
        f845c.append(55, 80);
        f845c.append(54, 81);
        f845c.append(100, 82);
        f845c.append(InvokeCmd.CMD_SYSTEMCTRL_SET_BOOTLOGO_STATE, 83);
        f845c.append(InvokeCmd.CMD_SYSTEMCTRL_GET_BOOTLOGO_STATE, 84);
        f845c.append(InvokeCmd.CMD_SYSTEMCTRL_GET_FREEZABLE_APPS, 85);
        f845c.append(InvokeCmd.CMD_SYSTEMCTRL_SET_USB_RESUME, 86);
        f845c.append(94, 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: b.e.c.e.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 i = -1;
            if (iIndexOf > 0 && iIndexOf < length - 1) {
                String strSubstring = str.substring(0, iIndexOf);
                i = strSubstring.equalsIgnoreCase("W") ? 0 : strSubstring.equalsIgnoreCase("H") ? 1 : -1;
                i = iIndexOf + 1;
            }
            int iIndexOf2 = str.indexOf(58);
            try {
                if (iIndexOf2 < 0 || iIndexOf2 >= length - 1) {
                    String strSubstring2 = str.substring(i);
                    if (strSubstring2.length() > 0) {
                        Float.parseFloat(strSubstring2);
                    }
                } else {
                    String strSubstring3 = str.substring(i, iIndexOf2);
                    String strSubstring4 = str.substring(iIndexOf2 + 1);
                    if (strSubstring3.length() > 0 && strSubstring4.length() > 0) {
                        float f2 = Float.parseFloat(strSubstring3);
                        float f3 = Float.parseFloat(strSubstring4);
                        if (f2 > 0.0f && f3 > 0.0f) {
                            if (i == 1) {
                                Math.abs(f3 / f2);
                            } else {
                                Math.abs(f2 / f3);
                            }
                        }
                    }
                }
            } catch (NumberFormatException unused) {
            }
        }
        aVar.G = str;
    }

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

    public void b(ConstraintLayout constraintLayout, boolean z) {
        int childCount = constraintLayout.getChildCount();
        HashSet<Integer> hashSet = new HashSet(this.f848f.keySet());
        for (int i = 0; i < childCount; i++) {
            View childAt = constraintLayout.getChildAt(i);
            int id = childAt.getId();
            if (!this.f848f.containsKey(Integer.valueOf(id))) {
                StringBuilder sbD = c.a.a.a.a.d("id unknown ");
                sbD.append(b.b.a.e(childAt));
                Log.w("ConstraintSet", sbD.toString());
            } else {
                if (this.f847e && id == -1) {
                    throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
                }
                if (id != -1) {
                    if (this.f848f.containsKey(Integer.valueOf(id))) {
                        hashSet.remove(Integer.valueOf(id));
                        a aVar = this.f848f.get(Integer.valueOf(id));
                        if (aVar != null) {
                            if (childAt instanceof b.e.c.a) {
                                aVar.f852d.j0 = 1;
                                b.e.c.a aVar2 = (b.e.c.a) childAt;
                                aVar2.setId(id);
                                aVar2.setType(aVar.f852d.h0);
                                aVar2.setMargin(aVar.f852d.i0);
                                aVar2.setAllowsGoneWidget(aVar.f852d.p0);
                                b bVar = aVar.f852d;
                                int[] iArr = bVar.k0;
                                if (iArr != null) {
                                    aVar2.setReferencedIds(iArr);
                                } else {
                                    String str = bVar.l0;
                                    if (str != null) {
                                        bVar.k0 = d(aVar2, str);
                                        aVar2.setReferencedIds(aVar.f852d.k0);
                                    }
                                }
                            }
                            ConstraintLayout.a aVar3 = (ConstraintLayout.a) childAt.getLayoutParams();
                            aVar3.a();
                            aVar.a(aVar3);
                            if (z) {
                                b.e.c.b.b(childAt, aVar.f854f);
                            }
                            childAt.setLayoutParams(aVar3);
                            d dVar = aVar.f850b;
                            if (dVar.f875c == 0) {
                                childAt.setVisibility(dVar.f874b);
                            }
                            childAt.setAlpha(aVar.f850b.f876d);
                            childAt.setRotation(aVar.f853e.f880c);
                            childAt.setRotationX(aVar.f853e.f881d);
                            childAt.setRotationY(aVar.f853e.f882e);
                            childAt.setScaleX(aVar.f853e.f883f);
                            childAt.setScaleY(aVar.f853e.g);
                            C0013e c0013e = aVar.f853e;
                            if (c0013e.j != -1) {
                                if (((View) childAt.getParent()).findViewById(aVar.f853e.j) != 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(c0013e.h)) {
                                    childAt.setPivotX(aVar.f853e.h);
                                }
                                if (!Float.isNaN(aVar.f853e.i)) {
                                    childAt.setPivotY(aVar.f853e.i);
                                }
                            }
                            childAt.setTranslationX(aVar.f853e.k);
                            childAt.setTranslationY(aVar.f853e.l);
                            childAt.setTranslationZ(aVar.f853e.m);
                            C0013e c0013e2 = aVar.f853e;
                            if (c0013e2.n) {
                                childAt.setElevation(c0013e2.o);
                            }
                        }
                    } else {
                        Log.v("ConstraintSet", "WARNING NO CONSTRAINTS for view " + id);
                    }
                }
            }
        }
        for (Integer num : hashSet) {
            a aVar4 = this.f848f.get(num);
            if (aVar4 != null) {
                if (aVar4.f852d.j0 == 1) {
                    b.e.c.a aVar5 = new b.e.c.a(constraintLayout.getContext());
                    aVar5.setId(num.intValue());
                    b bVar2 = aVar4.f852d;
                    int[] iArr2 = bVar2.k0;
                    if (iArr2 != null) {
                        aVar5.setReferencedIds(iArr2);
                    } else {
                        String str2 = bVar2.l0;
                        if (str2 != null) {
                            bVar2.k0 = d(aVar5, str2);
                            aVar5.setReferencedIds(aVar4.f852d.k0);
                        }
                    }
                    aVar5.setType(aVar4.f852d.h0);
                    aVar5.setMargin(aVar4.f852d.i0);
                    ConstraintLayout.a aVarGenerateDefaultLayoutParams = constraintLayout.generateDefaultLayoutParams();
                    aVar5.k();
                    aVar4.a(aVarGenerateDefaultLayoutParams);
                    constraintLayout.addView(aVar5, aVarGenerateDefaultLayoutParams);
                }
                if (aVar4.f852d.f862b) {
                    View hVar = new h(constraintLayout.getContext());
                    hVar.setId(num.intValue());
                    ConstraintLayout.a aVarGenerateDefaultLayoutParams2 = constraintLayout.generateDefaultLayoutParams();
                    aVar4.a(aVarGenerateDefaultLayoutParams2);
                    constraintLayout.addView(hVar, aVarGenerateDefaultLayoutParams2);
                }
            }
        }
        for (int i2 = 0; i2 < childCount; i2++) {
            View childAt2 = constraintLayout.getChildAt(i2);
            if (childAt2 instanceof b.e.c.c) {
                ((b.e.c.c) childAt2).g(constraintLayout);
            }
        }
    }

    public void c(Context context, int i) {
        b.e.c.b bVar;
        e eVar = this;
        ConstraintLayout constraintLayout = (ConstraintLayout) LayoutInflater.from(context).inflate(i, (ViewGroup) null);
        int childCount = constraintLayout.getChildCount();
        eVar.f848f.clear();
        int i2 = 0;
        while (i2 < childCount) {
            View childAt = constraintLayout.getChildAt(i2);
            ConstraintLayout.a aVar = (ConstraintLayout.a) childAt.getLayoutParams();
            int id = childAt.getId();
            if (eVar.f847e && id == -1) {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            }
            if (!eVar.f848f.containsKey(Integer.valueOf(id))) {
                eVar.f848f.put(Integer.valueOf(id), new a());
            }
            a aVar2 = eVar.f848f.get(Integer.valueOf(id));
            if (aVar2 != null) {
                HashMap<String, b.e.c.b> map = eVar.f846d;
                HashMap<String, b.e.c.b> map2 = new HashMap<>();
                Class<?> cls = childAt.getClass();
                for (String str : map.keySet()) {
                    b.e.c.b bVar2 = map.get(str);
                    try {
                        if (str.equals("BackgroundColor")) {
                            bVar = new b.e.c.b(bVar2, Integer.valueOf(((ColorDrawable) childAt.getBackground()).getColor()));
                        } else {
                            try {
                                bVar = new b.e.c.b(bVar2, 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, bVar);
                    } catch (IllegalAccessException e5) {
                        e = e5;
                    } catch (NoSuchMethodException e6) {
                        e = e6;
                    } catch (InvocationTargetException e7) {
                        e = e7;
                    }
                }
                aVar2.f854f = map2;
                aVar2.b(id, aVar);
                aVar2.f850b.f874b = childAt.getVisibility();
                aVar2.f850b.f876d = childAt.getAlpha();
                aVar2.f853e.f880c = childAt.getRotation();
                aVar2.f853e.f881d = childAt.getRotationX();
                aVar2.f853e.f882e = childAt.getRotationY();
                aVar2.f853e.f883f = childAt.getScaleX();
                aVar2.f853e.g = childAt.getScaleY();
                float pivotX = childAt.getPivotX();
                float pivotY = childAt.getPivotY();
                if (pivotX != 0.0d || pivotY != 0.0d) {
                    C0013e c0013e = aVar2.f853e;
                    c0013e.h = pivotX;
                    c0013e.i = pivotY;
                }
                aVar2.f853e.k = childAt.getTranslationX();
                aVar2.f853e.l = childAt.getTranslationY();
                aVar2.f853e.m = childAt.getTranslationZ();
                C0013e c0013e2 = aVar2.f853e;
                if (c0013e2.n) {
                    c0013e2.o = childAt.getElevation();
                }
                if (childAt instanceof b.e.c.a) {
                    b.e.c.a aVar3 = (b.e.c.a) childAt;
                    aVar2.f852d.p0 = aVar3.getAllowsGoneWidget();
                    aVar2.f852d.k0 = aVar3.getReferencedIds();
                    aVar2.f852d.h0 = aVar3.getType();
                    aVar2.f852d.i0 = aVar3.getMargin();
                }
            }
            i2++;
            eVar = this;
        }
    }

    public final int[] d(View view, String str) {
        int iIntValue;
        Object objB;
        String[] strArrSplit = str.split(",");
        Context context = view.getContext();
        int[] iArr = new int[strArrSplit.length];
        int i = 0;
        int i2 = 0;
        while (i < strArrSplit.length) {
            String strTrim = strArrSplit[i].trim();
            try {
                iIntValue = j.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) && (objB = ((ConstraintLayout) view.getParent()).b(0, strTrim)) != null && (objB instanceof Integer)) {
                iIntValue = ((Integer) objB).intValue();
            }
            iArr[i2] = iIntValue;
            i++;
            i2++;
        }
        return i2 != strArrSplit.length ? Arrays.copyOf(iArr, i2) : iArr;
    }

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

    public void f(Context context, int i) {
        XmlResourceParser xml = context.getResources().getXml(i);
        try {
            for (int eventType = xml.getEventType(); eventType != 1; eventType = xml.next()) {
                if (eventType == 0) {
                    xml.getName();
                } else if (eventType == 2) {
                    String name = xml.getName();
                    a aVarE = e(context, Xml.asAttributeSet(xml), false);
                    if (name.equalsIgnoreCase("Guideline")) {
                        aVarE.f852d.f862b = true;
                    }
                    this.f848f.put(Integer.valueOf(aVarE.f849a), aVarE);
                }
            }
        } catch (IOException e2) {
            e2.printStackTrace();
        } catch (XmlPullParserException e3) {
            e3.printStackTrace();
        }
    }
}
