package androidx.constraintlayout.widget;

import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseArray;
import android.util.SparseIntArray;
import android.view.View;
import android.view.ViewGroup;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import p037.p058.p061.p062.C1745;
import p037.p058.p061.p062.C1747;
import p037.p058.p061.p062.C1749;
import p037.p058.p061.p062.C1750;
import p037.p058.p061.p062.C1752;
import p037.p058.p061.p062.C1754;
import p037.p058.p061.p062.C1755;
import p037.p058.p061.p062.InterfaceC1751;
import p037.p058.p061.p062.p063.AbstractC1771;
import p037.p058.p061.p062.p063.C1757;
import p037.p058.p061.p062.p063.C1760;
import p037.p058.p061.p062.p063.C1762;
import p037.p058.p061.p062.p063.C1766;
import p037.p058.p061.p062.p063.C1768;
import p037.p058.p061.p062.p063.C1770;
import p037.p058.p064.AbstractC1775;
import p037.p058.p064.AbstractC1787;
import p037.p058.p064.AbstractC1791;
import p037.p058.p064.C1773;
import p037.p058.p064.C1776;
import p037.p058.p064.C1779;
import p037.p058.p064.C1785;
import p037.p058.p064.C1788;
import p037.p058.p064.C1790;
import p138.p139.p143.p144.C2803;

/* JADX INFO: loaded from: classes.dex */
public class ConstraintLayout extends ViewGroup {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public SparseArray<View> f492;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public ArrayList<AbstractC1775> f493;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final ArrayList<C1747> f494;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public C1749 f495;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public int f496;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public int f497;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public int f498;

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public int f499;

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public boolean f500;

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public int f501;

    /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
    public C1779 f502;

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public C1776 f503;

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public int f504;

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public HashMap<String, Integer> f505;

    /* JADX INFO: renamed from: ޑ, reason: contains not printable characters */
    public int f506;

    /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
    public int f507;

    /* JADX INFO: renamed from: ޓ, reason: contains not printable characters */
    public SparseArray<C1747> f508;

    /* JADX INFO: renamed from: ޔ, reason: contains not printable characters */
    public C0077 f509;

    /* JADX INFO: renamed from: ޕ, reason: contains not printable characters */
    public int f510;

    /* JADX INFO: renamed from: ޖ, reason: contains not printable characters */
    public int f511;

    /* JADX INFO: renamed from: androidx.constraintlayout.widget.ConstraintLayout$֏, reason: contains not printable characters */
    public static class C0075 extends ViewGroup.MarginLayoutParams {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public int f512;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public int f513;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public float f514;

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public int f515;

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public int f516;

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public int f517;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public int f518;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public int f519;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public int f520;

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public int f521;

        /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
        public int f522;

        /* JADX INFO: renamed from: މ, reason: contains not printable characters */
        public int f523;

        /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
        public int f524;

        /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
        public int f525;

        /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
        public float f526;

        /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
        public int f527;

        /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
        public int f528;

        /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
        public int f529;

        /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
        public int f530;

        /* JADX INFO: renamed from: ޑ, reason: contains not printable characters */
        public int f531;

        /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
        public int f532;

        /* JADX INFO: renamed from: ޓ, reason: contains not printable characters */
        public int f533;

        /* JADX INFO: renamed from: ޔ, reason: contains not printable characters */
        public int f534;

        /* JADX INFO: renamed from: ޕ, reason: contains not printable characters */
        public int f535;

        /* JADX INFO: renamed from: ޖ, reason: contains not printable characters */
        public int f536;

        /* JADX INFO: renamed from: ޗ, reason: contains not printable characters */
        public float f537;

        /* JADX INFO: renamed from: ޘ, reason: contains not printable characters */
        public float f538;

        /* JADX INFO: renamed from: ޙ, reason: contains not printable characters */
        public String f539;

        /* JADX INFO: renamed from: ޚ, reason: contains not printable characters */
        public int f540;

        /* JADX INFO: renamed from: ޛ, reason: contains not printable characters */
        public float f541;

        /* JADX INFO: renamed from: ޜ, reason: contains not printable characters */
        public float f542;

        /* JADX INFO: renamed from: ޝ, reason: contains not printable characters */
        public int f543;

        /* JADX INFO: renamed from: ޞ, reason: contains not printable characters */
        public int f544;

        /* JADX INFO: renamed from: ޟ, reason: contains not printable characters */
        public int f545;

        /* JADX INFO: renamed from: ޠ, reason: contains not printable characters */
        public int f546;

        /* JADX INFO: renamed from: ޡ, reason: contains not printable characters */
        public int f547;

        /* JADX INFO: renamed from: ޢ, reason: contains not printable characters */
        public int f548;

        /* JADX INFO: renamed from: ޣ, reason: contains not printable characters */
        public int f549;

        /* JADX INFO: renamed from: ޤ, reason: contains not printable characters */
        public int f550;

        /* JADX INFO: renamed from: ޥ, reason: contains not printable characters */
        public float f551;

        /* JADX INFO: renamed from: ޱ, reason: contains not printable characters */
        public float f552;

        /* JADX INFO: renamed from: ࢠ, reason: contains not printable characters */
        public int f553;

        /* JADX INFO: renamed from: ࢢ, reason: contains not printable characters */
        public int f554;

        /* JADX INFO: renamed from: ࢣ, reason: contains not printable characters */
        public int f555;

        /* JADX INFO: renamed from: ࢤ, reason: contains not printable characters */
        public boolean f556;

        /* JADX INFO: renamed from: ࢥ, reason: contains not printable characters */
        public boolean f557;

        /* JADX INFO: renamed from: ࢦ, reason: contains not printable characters */
        public String f558;

        /* JADX INFO: renamed from: ࢧ, reason: contains not printable characters */
        public boolean f559;

        /* JADX INFO: renamed from: ࢨ, reason: contains not printable characters */
        public boolean f560;

        /* JADX INFO: renamed from: ࢩ, reason: contains not printable characters */
        public boolean f561;

        /* JADX INFO: renamed from: ࢪ, reason: contains not printable characters */
        public boolean f562;

        /* JADX INFO: renamed from: ࢫ, reason: contains not printable characters */
        public boolean f563;

        /* JADX INFO: renamed from: ࢬ, reason: contains not printable characters */
        public boolean f564;

        /* JADX INFO: renamed from: ೱ, reason: contains not printable characters */
        public boolean f565;

        /* JADX INFO: renamed from: ೲ, reason: contains not printable characters */
        public int f566;

        /* JADX INFO: renamed from: ഩ, reason: contains not printable characters */
        public int f567;

        /* JADX INFO: renamed from: ഺ, reason: contains not printable characters */
        public int f568;

        /* JADX INFO: renamed from: ൎ, reason: contains not printable characters */
        public int f569;

        /* JADX INFO: renamed from: ໞ, reason: contains not printable characters */
        public int f570;

        /* JADX INFO: renamed from: ໟ, reason: contains not printable characters */
        public int f571;

        /* JADX INFO: renamed from: ྈ, reason: contains not printable characters */
        public float f572;

        /* JADX INFO: renamed from: ྉ, reason: contains not printable characters */
        public int f573;

        /* JADX INFO: renamed from: ྌ, reason: contains not printable characters */
        public int f574;

        /* JADX INFO: renamed from: ဢ, reason: contains not printable characters */
        public float f575;

        /* JADX INFO: renamed from: ဨ, reason: contains not printable characters */
        public C1747 f576;

        /* JADX INFO: renamed from: androidx.constraintlayout.widget.ConstraintLayout$֏$֏, reason: contains not printable characters */
        public static class C0076 {

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public static final SparseIntArray f577;

            static {
                SparseIntArray sparseIntArray = new SparseIntArray();
                f577 = sparseIntArray;
                sparseIntArray.append(C1790.ConstraintLayout_Layout_layout_constraintLeft_toLeftOf, 8);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintLeft_toRightOf, 9);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintRight_toLeftOf, 10);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintRight_toRightOf, 11);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintTop_toTopOf, 12);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintTop_toBottomOf, 13);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintBottom_toTopOf, 14);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintBottom_toBottomOf, 15);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintBaseline_toBaselineOf, 16);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintCircle, 2);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintCircleRadius, 3);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintCircleAngle, 4);
                f577.append(C1790.ConstraintLayout_Layout_layout_editor_absoluteX, 49);
                f577.append(C1790.ConstraintLayout_Layout_layout_editor_absoluteY, 50);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintGuide_begin, 5);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintGuide_end, 6);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintGuide_percent, 7);
                f577.append(C1790.ConstraintLayout_Layout_android_orientation, 1);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintStart_toEndOf, 17);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintStart_toStartOf, 18);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintEnd_toStartOf, 19);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintEnd_toEndOf, 20);
                f577.append(C1790.ConstraintLayout_Layout_layout_goneMarginLeft, 21);
                f577.append(C1790.ConstraintLayout_Layout_layout_goneMarginTop, 22);
                f577.append(C1790.ConstraintLayout_Layout_layout_goneMarginRight, 23);
                f577.append(C1790.ConstraintLayout_Layout_layout_goneMarginBottom, 24);
                f577.append(C1790.ConstraintLayout_Layout_layout_goneMarginStart, 25);
                f577.append(C1790.ConstraintLayout_Layout_layout_goneMarginEnd, 26);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintHorizontal_bias, 29);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintVertical_bias, 30);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintDimensionRatio, 44);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintHorizontal_weight, 45);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintVertical_weight, 46);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintHorizontal_chainStyle, 47);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintVertical_chainStyle, 48);
                f577.append(C1790.ConstraintLayout_Layout_layout_constrainedWidth, 27);
                f577.append(C1790.ConstraintLayout_Layout_layout_constrainedHeight, 28);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintWidth_default, 31);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintHeight_default, 32);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintWidth_min, 33);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintWidth_max, 34);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintWidth_percent, 35);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintHeight_min, 36);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintHeight_max, 37);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintHeight_percent, 38);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintLeft_creator, 39);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintTop_creator, 40);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintRight_creator, 41);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintBottom_creator, 42);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintBaseline_creator, 43);
                f577.append(C1790.ConstraintLayout_Layout_layout_constraintTag, 51);
            }
        }

        public C0075(int i, int i2) {
            super(i, i2);
            this.f512 = -1;
            this.f513 = -1;
            this.f514 = -1.0f;
            this.f515 = -1;
            this.f516 = -1;
            this.f517 = -1;
            this.f518 = -1;
            this.f519 = -1;
            this.f520 = -1;
            this.f521 = -1;
            this.f522 = -1;
            this.f523 = -1;
            this.f524 = -1;
            this.f525 = 0;
            this.f526 = 0.0f;
            this.f527 = -1;
            this.f528 = -1;
            this.f529 = -1;
            this.f530 = -1;
            this.f531 = -1;
            this.f532 = -1;
            this.f533 = -1;
            this.f534 = -1;
            this.f535 = -1;
            this.f536 = -1;
            this.f537 = 0.5f;
            this.f538 = 0.5f;
            this.f539 = null;
            this.f540 = 1;
            this.f541 = -1.0f;
            this.f542 = -1.0f;
            this.f543 = 0;
            this.f544 = 0;
            this.f545 = 0;
            this.f546 = 0;
            this.f547 = 0;
            this.f548 = 0;
            this.f549 = 0;
            this.f550 = 0;
            this.f551 = 1.0f;
            this.f552 = 1.0f;
            this.f553 = -1;
            this.f554 = -1;
            this.f555 = -1;
            this.f556 = false;
            this.f557 = false;
            this.f558 = null;
            this.f559 = true;
            this.f560 = true;
            this.f561 = false;
            this.f562 = false;
            this.f563 = false;
            this.f564 = false;
            this.f565 = false;
            this.f566 = -1;
            this.f567 = -1;
            this.f568 = -1;
            this.f569 = -1;
            this.f570 = -1;
            this.f571 = -1;
            this.f572 = 0.5f;
            this.f576 = new C1747();
        }

        public C0075(Context context, AttributeSet attributeSet) {
            int i;
            super(context, attributeSet);
            this.f512 = -1;
            this.f513 = -1;
            this.f514 = -1.0f;
            this.f515 = -1;
            this.f516 = -1;
            this.f517 = -1;
            this.f518 = -1;
            this.f519 = -1;
            this.f520 = -1;
            this.f521 = -1;
            this.f522 = -1;
            this.f523 = -1;
            this.f524 = -1;
            this.f525 = 0;
            this.f526 = 0.0f;
            this.f527 = -1;
            this.f528 = -1;
            this.f529 = -1;
            this.f530 = -1;
            this.f531 = -1;
            this.f532 = -1;
            this.f533 = -1;
            this.f534 = -1;
            this.f535 = -1;
            this.f536 = -1;
            this.f537 = 0.5f;
            this.f538 = 0.5f;
            this.f539 = null;
            this.f540 = 1;
            this.f541 = -1.0f;
            this.f542 = -1.0f;
            this.f543 = 0;
            this.f544 = 0;
            this.f545 = 0;
            this.f546 = 0;
            this.f547 = 0;
            this.f548 = 0;
            this.f549 = 0;
            this.f550 = 0;
            this.f551 = 1.0f;
            this.f552 = 1.0f;
            this.f553 = -1;
            this.f554 = -1;
            this.f555 = -1;
            this.f556 = false;
            this.f557 = false;
            this.f558 = null;
            this.f559 = true;
            this.f560 = true;
            this.f561 = false;
            this.f562 = false;
            this.f563 = false;
            this.f564 = false;
            this.f565 = false;
            this.f566 = -1;
            this.f567 = -1;
            this.f568 = -1;
            this.f569 = -1;
            this.f570 = -1;
            this.f571 = -1;
            this.f572 = 0.5f;
            this.f576 = new C1747();
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C1790.ConstraintLayout_Layout);
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i2 = 0; i2 < indexCount; i2++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i2);
                int i3 = C0076.f577.get(index);
                switch (i3) {
                    case 1:
                        this.f555 = typedArrayObtainStyledAttributes.getInt(index, this.f555);
                        break;
                    case 2:
                        int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, this.f524);
                        this.f524 = resourceId;
                        if (resourceId == -1) {
                            this.f524 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 3:
                        this.f525 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f525);
                        break;
                    case 4:
                        float f = typedArrayObtainStyledAttributes.getFloat(index, this.f526) % 360.0f;
                        this.f526 = f;
                        if (f < 0.0f) {
                            this.f526 = (360.0f - f) % 360.0f;
                        }
                        break;
                    case 5:
                        this.f512 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.f512);
                        break;
                    case 6:
                        this.f513 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.f513);
                        break;
                    case 7:
                        this.f514 = typedArrayObtainStyledAttributes.getFloat(index, this.f514);
                        break;
                    case 8:
                        int resourceId2 = typedArrayObtainStyledAttributes.getResourceId(index, this.f515);
                        this.f515 = resourceId2;
                        if (resourceId2 == -1) {
                            this.f515 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 9:
                        int resourceId3 = typedArrayObtainStyledAttributes.getResourceId(index, this.f516);
                        this.f516 = resourceId3;
                        if (resourceId3 == -1) {
                            this.f516 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 10:
                        int resourceId4 = typedArrayObtainStyledAttributes.getResourceId(index, this.f517);
                        this.f517 = resourceId4;
                        if (resourceId4 == -1) {
                            this.f517 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 11:
                        int resourceId5 = typedArrayObtainStyledAttributes.getResourceId(index, this.f518);
                        this.f518 = resourceId5;
                        if (resourceId5 == -1) {
                            this.f518 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 12:
                        int resourceId6 = typedArrayObtainStyledAttributes.getResourceId(index, this.f519);
                        this.f519 = resourceId6;
                        if (resourceId6 == -1) {
                            this.f519 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 13:
                        int resourceId7 = typedArrayObtainStyledAttributes.getResourceId(index, this.f520);
                        this.f520 = resourceId7;
                        if (resourceId7 == -1) {
                            this.f520 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 14:
                        int resourceId8 = typedArrayObtainStyledAttributes.getResourceId(index, this.f521);
                        this.f521 = resourceId8;
                        if (resourceId8 == -1) {
                            this.f521 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 15:
                        int resourceId9 = typedArrayObtainStyledAttributes.getResourceId(index, this.f522);
                        this.f522 = resourceId9;
                        if (resourceId9 == -1) {
                            this.f522 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 16:
                        int resourceId10 = typedArrayObtainStyledAttributes.getResourceId(index, this.f523);
                        this.f523 = resourceId10;
                        if (resourceId10 == -1) {
                            this.f523 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 17:
                        int resourceId11 = typedArrayObtainStyledAttributes.getResourceId(index, this.f527);
                        this.f527 = resourceId11;
                        if (resourceId11 == -1) {
                            this.f527 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 18:
                        int resourceId12 = typedArrayObtainStyledAttributes.getResourceId(index, this.f528);
                        this.f528 = resourceId12;
                        if (resourceId12 == -1) {
                            this.f528 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 19:
                        int resourceId13 = typedArrayObtainStyledAttributes.getResourceId(index, this.f529);
                        this.f529 = resourceId13;
                        if (resourceId13 == -1) {
                            this.f529 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 20:
                        int resourceId14 = typedArrayObtainStyledAttributes.getResourceId(index, this.f530);
                        this.f530 = resourceId14;
                        if (resourceId14 == -1) {
                            this.f530 = typedArrayObtainStyledAttributes.getInt(index, -1);
                        }
                        break;
                    case 21:
                        this.f531 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f531);
                        break;
                    case 22:
                        this.f532 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f532);
                        break;
                    case 23:
                        this.f533 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f533);
                        break;
                    case 24:
                        this.f534 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f534);
                        break;
                    case 25:
                        this.f535 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f535);
                        break;
                    case 26:
                        this.f536 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f536);
                        break;
                    case 27:
                        this.f556 = typedArrayObtainStyledAttributes.getBoolean(index, this.f556);
                        break;
                    case 28:
                        this.f557 = typedArrayObtainStyledAttributes.getBoolean(index, this.f557);
                        break;
                    case 29:
                        this.f537 = typedArrayObtainStyledAttributes.getFloat(index, this.f537);
                        break;
                    case 30:
                        this.f538 = typedArrayObtainStyledAttributes.getFloat(index, this.f538);
                        break;
                    case 31:
                        int i4 = typedArrayObtainStyledAttributes.getInt(index, 0);
                        this.f545 = i4;
                        if (i4 == 1) {
                            Log.e("ConstraintLayout", "layout_constraintWidth_default=\"wrap\" is deprecated.\nUse layout_width=\"WRAP_CONTENT\" and layout_constrainedWidth=\"true\" instead.");
                        }
                        break;
                    case 32:
                        int i5 = typedArrayObtainStyledAttributes.getInt(index, 0);
                        this.f546 = i5;
                        if (i5 == 1) {
                            Log.e("ConstraintLayout", "layout_constraintHeight_default=\"wrap\" is deprecated.\nUse layout_height=\"WRAP_CONTENT\" and layout_constrainedHeight=\"true\" instead.");
                        }
                        break;
                    case 33:
                        try {
                            this.f547 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f547);
                        } catch (Exception unused) {
                            if (typedArrayObtainStyledAttributes.getInt(index, this.f547) == -2) {
                                this.f547 = -2;
                            }
                        }
                        break;
                    case 34:
                        try {
                            this.f549 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f549);
                        } catch (Exception unused2) {
                            if (typedArrayObtainStyledAttributes.getInt(index, this.f549) == -2) {
                                this.f549 = -2;
                            }
                        }
                        break;
                    case 35:
                        this.f551 = Math.max(0.0f, typedArrayObtainStyledAttributes.getFloat(index, this.f551));
                        this.f545 = 2;
                        break;
                    case 36:
                        try {
                            this.f548 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f548);
                        } catch (Exception unused3) {
                            if (typedArrayObtainStyledAttributes.getInt(index, this.f548) == -2) {
                                this.f548 = -2;
                            }
                        }
                        break;
                    case 37:
                        try {
                            this.f550 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, this.f550);
                        } catch (Exception unused4) {
                            if (typedArrayObtainStyledAttributes.getInt(index, this.f550) == -2) {
                                this.f550 = -2;
                            }
                        }
                        break;
                    case 38:
                        this.f552 = Math.max(0.0f, typedArrayObtainStyledAttributes.getFloat(index, this.f552));
                        this.f546 = 2;
                        break;
                    default:
                        switch (i3) {
                            case 44:
                                String string = typedArrayObtainStyledAttributes.getString(index);
                                this.f539 = string;
                                this.f540 = -1;
                                if (string != null) {
                                    int length = string.length();
                                    int iIndexOf = this.f539.indexOf(44);
                                    if (iIndexOf <= 0 || iIndexOf >= length - 1) {
                                        i = 0;
                                    } else {
                                        String strSubstring = this.f539.substring(0, iIndexOf);
                                        if (strSubstring.equalsIgnoreCase("W")) {
                                            this.f540 = 0;
                                        } else if (strSubstring.equalsIgnoreCase("H")) {
                                            this.f540 = 1;
                                        }
                                        i = iIndexOf + 1;
                                    }
                                    int iIndexOf2 = this.f539.indexOf(58);
                                    if (iIndexOf2 < 0 || iIndexOf2 >= length - 1) {
                                        String strSubstring2 = this.f539.substring(i);
                                        if (strSubstring2.length() > 0) {
                                            Float.parseFloat(strSubstring2);
                                        }
                                    } else {
                                        String strSubstring3 = this.f539.substring(i, iIndexOf2);
                                        String strSubstring4 = this.f539.substring(iIndexOf2 + 1);
                                        if (strSubstring3.length() > 0 && strSubstring4.length() > 0) {
                                            try {
                                                float f2 = Float.parseFloat(strSubstring3);
                                                float f3 = Float.parseFloat(strSubstring4);
                                                if (f2 > 0.0f && f3 > 0.0f) {
                                                    if (this.f540 == 1) {
                                                        Math.abs(f3 / f2);
                                                    } else {
                                                        Math.abs(f2 / f3);
                                                    }
                                                }
                                            } catch (NumberFormatException unused5) {
                                            }
                                        }
                                    }
                                }
                                break;
                            case 45:
                                this.f541 = typedArrayObtainStyledAttributes.getFloat(index, this.f541);
                                break;
                            case 46:
                                this.f542 = typedArrayObtainStyledAttributes.getFloat(index, this.f542);
                                break;
                            case 47:
                                this.f543 = typedArrayObtainStyledAttributes.getInt(index, 0);
                                break;
                            case 48:
                                this.f544 = typedArrayObtainStyledAttributes.getInt(index, 0);
                                break;
                            case 49:
                                this.f553 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.f553);
                                break;
                            case 50:
                                this.f554 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.f554);
                                break;
                            case 51:
                                this.f558 = typedArrayObtainStyledAttributes.getString(index);
                                break;
                        }
                        break;
                }
            }
            typedArrayObtainStyledAttributes.recycle();
            m218();
        }

        public C0075(ViewGroup.LayoutParams layoutParams) {
            super(layoutParams);
            this.f512 = -1;
            this.f513 = -1;
            this.f514 = -1.0f;
            this.f515 = -1;
            this.f516 = -1;
            this.f517 = -1;
            this.f518 = -1;
            this.f519 = -1;
            this.f520 = -1;
            this.f521 = -1;
            this.f522 = -1;
            this.f523 = -1;
            this.f524 = -1;
            this.f525 = 0;
            this.f526 = 0.0f;
            this.f527 = -1;
            this.f528 = -1;
            this.f529 = -1;
            this.f530 = -1;
            this.f531 = -1;
            this.f532 = -1;
            this.f533 = -1;
            this.f534 = -1;
            this.f535 = -1;
            this.f536 = -1;
            this.f537 = 0.5f;
            this.f538 = 0.5f;
            this.f539 = null;
            this.f540 = 1;
            this.f541 = -1.0f;
            this.f542 = -1.0f;
            this.f543 = 0;
            this.f544 = 0;
            this.f545 = 0;
            this.f546 = 0;
            this.f547 = 0;
            this.f548 = 0;
            this.f549 = 0;
            this.f550 = 0;
            this.f551 = 1.0f;
            this.f552 = 1.0f;
            this.f553 = -1;
            this.f554 = -1;
            this.f555 = -1;
            this.f556 = false;
            this.f557 = false;
            this.f558 = null;
            this.f559 = true;
            this.f560 = true;
            this.f561 = false;
            this.f562 = false;
            this.f563 = false;
            this.f564 = false;
            this.f565 = false;
            this.f566 = -1;
            this.f567 = -1;
            this.f568 = -1;
            this.f569 = -1;
            this.f570 = -1;
            this.f571 = -1;
            this.f572 = 0.5f;
            this.f576 = new C1747();
        }

        /* JADX WARN: Removed duplicated region for block: B:17:0x004c  */
        /* JADX WARN: Removed duplicated region for block: B:20:0x0053  */
        /* JADX WARN: Removed duplicated region for block: B:23:0x005a  */
        /* JADX WARN: Removed duplicated region for block: B:26:0x0060  */
        /* JADX WARN: Removed duplicated region for block: B:29:0x0066  */
        /* JADX WARN: Removed duplicated region for block: B:36:0x007c  */
        /* JADX WARN: Removed duplicated region for block: B:37:0x0084  */
        @Override // android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.LayoutParams
        @TargetApi(17)
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public void resolveLayoutDirection(int i) {
            int i2;
            int i3;
            int i4;
            int i5;
            float f;
            int i6 = ((ViewGroup.MarginLayoutParams) this).leftMargin;
            int i7 = ((ViewGroup.MarginLayoutParams) this).rightMargin;
            super.resolveLayoutDirection(i);
            boolean z = false;
            boolean z2 = 1 == getLayoutDirection();
            this.f568 = -1;
            this.f569 = -1;
            this.f566 = -1;
            this.f567 = -1;
            this.f570 = -1;
            this.f571 = -1;
            this.f570 = this.f531;
            this.f571 = this.f533;
            this.f572 = this.f537;
            this.f573 = this.f512;
            this.f574 = this.f513;
            this.f575 = this.f514;
            if (z2) {
                int i8 = this.f527;
                if (i8 != -1) {
                    this.f568 = i8;
                } else {
                    int i9 = this.f528;
                    if (i9 != -1) {
                        this.f569 = i9;
                    }
                    i2 = this.f529;
                    if (i2 != -1) {
                        this.f567 = i2;
                        z = true;
                    }
                    i3 = this.f530;
                    if (i3 != -1) {
                        this.f566 = i3;
                        z = true;
                    }
                    i4 = this.f535;
                    if (i4 != -1) {
                        this.f571 = i4;
                    }
                    i5 = this.f536;
                    if (i5 != -1) {
                        this.f570 = i5;
                    }
                    if (z) {
                        this.f572 = 1.0f - this.f537;
                    }
                    if (this.f562 && this.f555 == 1) {
                        f = this.f514;
                        if (f == -1.0f) {
                            this.f575 = 1.0f - f;
                            this.f573 = -1;
                            this.f574 = -1;
                        } else {
                            int i10 = this.f512;
                            if (i10 != -1) {
                                this.f574 = i10;
                                this.f573 = -1;
                                this.f575 = -1.0f;
                            } else {
                                int i11 = this.f513;
                                if (i11 != -1) {
                                    this.f573 = i11;
                                    this.f574 = -1;
                                    this.f575 = -1.0f;
                                }
                            }
                        }
                    }
                }
                z = true;
                i2 = this.f529;
                if (i2 != -1) {
                }
                i3 = this.f530;
                if (i3 != -1) {
                }
                i4 = this.f535;
                if (i4 != -1) {
                }
                i5 = this.f536;
                if (i5 != -1) {
                }
                if (z) {
                }
                if (this.f562) {
                    f = this.f514;
                    if (f == -1.0f) {
                    }
                }
            } else {
                int i12 = this.f527;
                if (i12 != -1) {
                    this.f567 = i12;
                }
                int i13 = this.f528;
                if (i13 != -1) {
                    this.f566 = i13;
                }
                int i14 = this.f529;
                if (i14 != -1) {
                    this.f568 = i14;
                }
                int i15 = this.f530;
                if (i15 != -1) {
                    this.f569 = i15;
                }
                int i16 = this.f535;
                if (i16 != -1) {
                    this.f570 = i16;
                }
                int i17 = this.f536;
                if (i17 != -1) {
                    this.f571 = i17;
                }
            }
            if (this.f529 == -1 && this.f530 == -1 && this.f528 == -1 && this.f527 == -1) {
                int i18 = this.f517;
                if (i18 != -1) {
                    this.f568 = i18;
                    if (((ViewGroup.MarginLayoutParams) this).rightMargin <= 0 && i7 > 0) {
                        ((ViewGroup.MarginLayoutParams) this).rightMargin = i7;
                    }
                } else {
                    int i19 = this.f518;
                    if (i19 != -1) {
                        this.f569 = i19;
                        if (((ViewGroup.MarginLayoutParams) this).rightMargin <= 0 && i7 > 0) {
                            ((ViewGroup.MarginLayoutParams) this).rightMargin = i7;
                        }
                    }
                }
                int i20 = this.f515;
                if (i20 != -1) {
                    this.f566 = i20;
                    if (((ViewGroup.MarginLayoutParams) this).leftMargin > 0 || i6 <= 0) {
                        return;
                    }
                    ((ViewGroup.MarginLayoutParams) this).leftMargin = i6;
                    return;
                }
                int i21 = this.f516;
                if (i21 != -1) {
                    this.f567 = i21;
                    if (((ViewGroup.MarginLayoutParams) this).leftMargin > 0 || i6 <= 0) {
                        return;
                    }
                    ((ViewGroup.MarginLayoutParams) this).leftMargin = i6;
                }
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public void m218() {
            this.f562 = false;
            this.f559 = true;
            this.f560 = true;
            if (((ViewGroup.MarginLayoutParams) this).width == -2 && this.f556) {
                this.f559 = false;
                if (this.f545 == 0) {
                    this.f545 = 1;
                }
            }
            if (((ViewGroup.MarginLayoutParams) this).height == -2 && this.f557) {
                this.f560 = false;
                if (this.f546 == 0) {
                    this.f546 = 1;
                }
            }
            int i = ((ViewGroup.MarginLayoutParams) this).width;
            if (i == 0 || i == -1) {
                this.f559 = false;
                if (((ViewGroup.MarginLayoutParams) this).width == 0 && this.f545 == 1) {
                    ((ViewGroup.MarginLayoutParams) this).width = -2;
                    this.f556 = true;
                }
            }
            int i2 = ((ViewGroup.MarginLayoutParams) this).height;
            if (i2 == 0 || i2 == -1) {
                this.f560 = false;
                if (((ViewGroup.MarginLayoutParams) this).height == 0 && this.f546 == 1) {
                    ((ViewGroup.MarginLayoutParams) this).height = -2;
                    this.f557 = true;
                }
            }
            if (this.f514 == -1.0f && this.f512 == -1 && this.f513 == -1) {
                return;
            }
            this.f562 = true;
            this.f559 = true;
            this.f560 = true;
            if (!(this.f576 instanceof C1750)) {
                this.f576 = new C1750();
            }
            ((C1750) this.f576).m3486(this.f555);
        }
    }

    /* JADX INFO: renamed from: androidx.constraintlayout.widget.ConstraintLayout$ؠ, reason: contains not printable characters */
    public class C0077 implements C1757.InterfaceC1759 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public ConstraintLayout f578;

        public C0077(ConstraintLayout constraintLayout, ConstraintLayout constraintLayout2) {
            this.f578 = constraintLayout2;
        }

        /* JADX WARN: Removed duplicated region for block: B:101:0x0168  */
        /* JADX WARN: Removed duplicated region for block: B:104:0x016c  */
        /* JADX WARN: Removed duplicated region for block: B:107:0x0174  */
        /* JADX WARN: Removed duplicated region for block: B:109:0x0177  */
        /* JADX WARN: Removed duplicated region for block: B:112:0x017f  */
        /* JADX WARN: Removed duplicated region for block: B:115:0x0190 A[ADDED_TO_REGION] */
        /* JADX WARN: Removed duplicated region for block: B:123:0x01a5  */
        /* JADX WARN: Removed duplicated region for block: B:128:0x01b7  */
        /* JADX WARN: Removed duplicated region for block: B:131:0x01c8  */
        /* JADX WARN: Removed duplicated region for block: B:132:0x01cf  */
        /* JADX WARN: Removed duplicated region for block: B:134:0x01d3  */
        /* JADX WARN: Removed duplicated region for block: B:137:0x01dc  */
        /* JADX WARN: Removed duplicated region for block: B:138:0x01e1  */
        /* JADX WARN: Removed duplicated region for block: B:141:0x01e6  */
        /* JADX WARN: Removed duplicated region for block: B:144:0x01ee  */
        /* JADX WARN: Removed duplicated region for block: B:145:0x01f3  */
        /* JADX WARN: Removed duplicated region for block: B:148:0x01f8  */
        /* JADX WARN: Removed duplicated region for block: B:153:0x020a  */
        /* JADX WARN: Removed duplicated region for block: B:160:0x021b  */
        /* JADX WARN: Removed duplicated region for block: B:162:0x021f  */
        /* JADX WARN: Removed duplicated region for block: B:164:0x0225  */
        /* JADX WARN: Removed duplicated region for block: B:167:0x023b  */
        /* JADX WARN: Removed duplicated region for block: B:168:0x023d  */
        /* JADX WARN: Removed duplicated region for block: B:171:0x0242  */
        /* JADX WARN: Removed duplicated region for block: B:175:0x0249  */
        /* JADX WARN: Removed duplicated region for block: B:178:0x0250  */
        /* JADX WARN: Removed duplicated region for block: B:180:0x0253  */
        /* JADX WARN: Removed duplicated region for block: B:46:0x00c4  */
        /* JADX WARN: Removed duplicated region for block: B:79:0x013c  */
        /* JADX WARN: Removed duplicated region for block: B:82:0x0147  */
        /* JADX WARN: Removed duplicated region for block: B:83:0x0149  */
        /* JADX WARN: Removed duplicated region for block: B:86:0x014e  */
        /* JADX WARN: Removed duplicated region for block: B:87:0x0150  */
        /* JADX WARN: Removed duplicated region for block: B:90:0x0155  */
        /* JADX WARN: Removed duplicated region for block: B:94:0x015c  */
        /* JADX WARN: Removed duplicated region for block: B:97:0x0161  */
        @SuppressLint({"WrongCall"})
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public final void m219(C1747 c1747, C1757.C1758 c1758) {
            int iMakeMeasureSpec;
            boolean z;
            int iOrdinal;
            int iMakeMeasureSpec2;
            boolean z2;
            boolean z3;
            boolean z4;
            View view;
            C0075 c0075;
            int measuredWidth;
            int measuredHeight;
            int baseline;
            int iMax;
            int i;
            int iMax2;
            int i2;
            int i3;
            boolean z5;
            if (c1747 == null) {
                return;
            }
            if (c1747.f5781 == 8) {
                c1758.f5825 = 0;
                c1758.f5826 = 0;
                c1758.f5827 = 0;
                return;
            }
            C1747.EnumC1748 enumC1748 = c1758.f5821;
            C1747.EnumC1748 enumC17482 = c1758.f5822;
            int i4 = c1758.f5823;
            int i5 = c1758.f5824;
            int paddingBottom = this.f578.getPaddingBottom() + this.f578.getPaddingTop();
            int paddingRight = this.f578.getPaddingRight() + this.f578.getPaddingLeft();
            int iOrdinal2 = enumC1748.ordinal();
            if (iOrdinal2 != 0) {
                if (iOrdinal2 == 1) {
                    iMakeMeasureSpec = ViewGroup.getChildMeasureSpec(this.f578.f510, paddingRight, -2);
                } else if (iOrdinal2 == 2) {
                    iMakeMeasureSpec = ViewGroup.getChildMeasureSpec(this.f578.f510, paddingRight, -2);
                    boolean z6 = c1747.f5743 == 1;
                    if (c1747.f5743 == 0 && View.MeasureSpec.getMode(this.f578.f510) != Integer.MIN_VALUE) {
                        iMakeMeasureSpec = View.MeasureSpec.makeMeasureSpec(0, 0);
                    }
                    if (c1758.f5830 && (!z6 || (z6 && c1747.f5740[0] != c1747.m3473()))) {
                        iMakeMeasureSpec = View.MeasureSpec.makeMeasureSpec(c1747.m3473(), 1073741824);
                    }
                } else if (iOrdinal2 != 3) {
                    iMakeMeasureSpec = 0;
                } else {
                    int i6 = this.f578.f510;
                    C1745 c1745 = c1747.f5757;
                    int i7 = c1745 != null ? c1745.f5720 + 0 : 0;
                    C1745 c17452 = c1747.f5759;
                    if (c17452 != null) {
                        i7 += c17452.f5720;
                    }
                    iMakeMeasureSpec = ViewGroup.getChildMeasureSpec(i6, paddingRight + i7, -1);
                }
                z = true;
                iOrdinal = enumC17482.ordinal();
                if (iOrdinal == 0) {
                    if (iOrdinal == 1) {
                        iMakeMeasureSpec2 = ViewGroup.getChildMeasureSpec(this.f578.f511, paddingBottom, -2);
                    } else if (iOrdinal == 2) {
                        iMakeMeasureSpec2 = ViewGroup.getChildMeasureSpec(this.f578.f511, paddingBottom, -2);
                        boolean z7 = c1747.f5744 == 1;
                        if (c1747.f5744 == 0 && View.MeasureSpec.getMode(this.f578.f511) != Integer.MIN_VALUE) {
                            iMakeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(0, 0);
                        }
                        if (c1758.f5830 && (!z7 || (z7 && c1747.f5740[1] != c1747.m3464()))) {
                            iMakeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(c1747.m3464(), 1073741824);
                        }
                    } else if (iOrdinal != 3) {
                        iMakeMeasureSpec2 = 0;
                    } else {
                        int i8 = this.f578.f511;
                        int i9 = c1747.f5757 != null ? c1747.f5758.f5720 + 0 : 0;
                        if (c1747.f5759 != null) {
                            i9 += c1747.f5760.f5720;
                        }
                        iMakeMeasureSpec2 = ViewGroup.getChildMeasureSpec(i8, paddingBottom + i9, -1);
                    }
                    z2 = true;
                    boolean z8 = enumC1748 == C1747.EnumC1748.MATCH_CONSTRAINT;
                    boolean z9 = enumC17482 == C1747.EnumC1748.MATCH_CONSTRAINT;
                    boolean z10 = enumC17482 == C1747.EnumC1748.MATCH_PARENT || enumC17482 == C1747.EnumC1748.FIXED;
                    boolean z11 = enumC1748 == C1747.EnumC1748.MATCH_PARENT || enumC1748 == C1747.EnumC1748.FIXED;
                    z3 = z8 && c1747.f5771 > 0.0f;
                    z4 = z9 && c1747.f5771 > 0.0f;
                    view = (View) c1747.f5780;
                    c0075 = (C0075) view.getLayoutParams();
                    if (!c1758.f5830 && z8 && c1747.f5743 == 0 && z9 && c1747.f5744 == 0) {
                        i3 = -1;
                        iMax = 0;
                        iMax2 = 0;
                        baseline = 0;
                    } else {
                        if ((view instanceof AbstractC1791) || !(c1747 instanceof C1754)) {
                            view.measure(iMakeMeasureSpec, iMakeMeasureSpec2);
                        } else {
                            ((AbstractC1791) view).m3540();
                        }
                        measuredWidth = view.getMeasuredWidth();
                        measuredHeight = view.getMeasuredHeight();
                        baseline = view.getBaseline();
                        if (!z) {
                            c1747.f5740[0] = measuredWidth;
                        }
                        if (z2) {
                            c1747.f5740[1] = measuredHeight;
                        }
                        int i10 = c1747.f5746;
                        iMax = i10 <= 0 ? Math.max(i10, measuredWidth) : measuredWidth;
                        i = c1747.f5747;
                        if (i > 0) {
                            iMax = Math.min(i, iMax);
                        }
                        int i11 = c1747.f5749;
                        iMax2 = i11 <= 0 ? Math.max(i11, measuredHeight) : measuredHeight;
                        i2 = c1747.f5750;
                        if (i2 > 0) {
                            iMax2 = Math.min(i2, iMax2);
                        }
                        if (!z3 && z10) {
                            iMax = (int) ((iMax2 * c1747.f5771) + 0.5f);
                        } else if (z4 && z11) {
                            iMax2 = (int) ((iMax / c1747.f5771) + 0.5f);
                        }
                        if (measuredWidth == iMax || measuredHeight != iMax2) {
                            if (measuredWidth != iMax) {
                                iMakeMeasureSpec = View.MeasureSpec.makeMeasureSpec(iMax, 1073741824);
                            }
                            if (measuredHeight != iMax2) {
                                iMakeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(iMax2, 1073741824);
                            }
                            view.measure(iMakeMeasureSpec, iMakeMeasureSpec2);
                            iMax = view.getMeasuredWidth();
                            iMax2 = view.getMeasuredHeight();
                            baseline = view.getBaseline();
                        }
                        i3 = -1;
                    }
                    z5 = baseline != i3;
                    c1758.f5829 = (iMax == c1758.f5823 && iMax2 == c1758.f5824) ? false : true;
                    if (c0075.f561) {
                        z5 = true;
                    }
                    if (z5 && baseline != -1 && c1747.f5775 != baseline) {
                        c1758.f5829 = true;
                    }
                    c1758.f5825 = iMax;
                    c1758.f5826 = iMax2;
                    c1758.f5828 = z5;
                    c1758.f5827 = baseline;
                }
                iMakeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(i5, 1073741824);
                z2 = false;
                if (enumC1748 == C1747.EnumC1748.MATCH_CONSTRAINT) {
                }
                if (enumC17482 == C1747.EnumC1748.MATCH_CONSTRAINT) {
                }
                if (enumC17482 == C1747.EnumC1748.MATCH_PARENT) {
                }
                if (enumC1748 == C1747.EnumC1748.MATCH_PARENT) {
                }
                if (z8) {
                }
                if (z9) {
                }
                view = (View) c1747.f5780;
                c0075 = (C0075) view.getLayoutParams();
                if (!c1758.f5830) {
                    if (view instanceof AbstractC1791) {
                        view.measure(iMakeMeasureSpec, iMakeMeasureSpec2);
                        measuredWidth = view.getMeasuredWidth();
                        measuredHeight = view.getMeasuredHeight();
                        baseline = view.getBaseline();
                        if (!z) {
                        }
                        if (z2) {
                        }
                        int i102 = c1747.f5746;
                        if (i102 <= 0) {
                        }
                        i = c1747.f5747;
                        if (i > 0) {
                        }
                        int i112 = c1747.f5749;
                        if (i112 <= 0) {
                        }
                        i2 = c1747.f5750;
                        if (i2 > 0) {
                        }
                        if (!z3) {
                            if (z4) {
                                iMax2 = (int) ((iMax / c1747.f5771) + 0.5f);
                            }
                            if (measuredWidth == iMax) {
                                if (measuredWidth != iMax) {
                                }
                                if (measuredHeight != iMax2) {
                                }
                                view.measure(iMakeMeasureSpec, iMakeMeasureSpec2);
                                iMax = view.getMeasuredWidth();
                                iMax2 = view.getMeasuredHeight();
                                baseline = view.getBaseline();
                                i3 = -1;
                            }
                        }
                    }
                }
                if (baseline != i3) {
                }
                c1758.f5829 = (iMax == c1758.f5823 && iMax2 == c1758.f5824) ? false : true;
                if (c0075.f561) {
                }
                if (z5) {
                    c1758.f5829 = true;
                }
                c1758.f5825 = iMax;
                c1758.f5826 = iMax2;
                c1758.f5828 = z5;
                c1758.f5827 = baseline;
            }
            iMakeMeasureSpec = View.MeasureSpec.makeMeasureSpec(i4, 1073741824);
            z = false;
            iOrdinal = enumC17482.ordinal();
            if (iOrdinal == 0) {
            }
            z2 = false;
            if (enumC1748 == C1747.EnumC1748.MATCH_CONSTRAINT) {
            }
            if (enumC17482 == C1747.EnumC1748.MATCH_CONSTRAINT) {
            }
            if (enumC17482 == C1747.EnumC1748.MATCH_PARENT) {
            }
            if (enumC1748 == C1747.EnumC1748.MATCH_PARENT) {
            }
            if (z8) {
            }
            if (z9) {
            }
            view = (View) c1747.f5780;
            c0075 = (C0075) view.getLayoutParams();
            if (!c1758.f5830) {
            }
            if (baseline != i3) {
            }
            c1758.f5829 = (iMax == c1758.f5823 && iMax2 == c1758.f5824) ? false : true;
            if (c0075.f561) {
            }
            if (z5) {
            }
            c1758.f5825 = iMax;
            c1758.f5826 = iMax2;
            c1758.f5828 = z5;
            c1758.f5827 = baseline;
        }
    }

    public ConstraintLayout(Context context) {
        super(context);
        this.f492 = new SparseArray<>();
        this.f493 = new ArrayList<>(4);
        this.f494 = new ArrayList<>(100);
        this.f495 = new C1749();
        this.f496 = 0;
        this.f497 = 0;
        this.f498 = Integer.MAX_VALUE;
        this.f499 = Integer.MAX_VALUE;
        this.f500 = true;
        this.f501 = 7;
        this.f502 = null;
        this.f503 = null;
        this.f504 = -1;
        this.f505 = new HashMap<>();
        this.f506 = -1;
        this.f507 = -1;
        this.f508 = new SparseArray<>();
        this.f509 = new C0077(this, this);
        this.f510 = 0;
        this.f511 = 0;
        m215((AttributeSet) null, 0, 0);
    }

    public ConstraintLayout(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        this.f492 = new SparseArray<>();
        this.f493 = new ArrayList<>(4);
        this.f494 = new ArrayList<>(100);
        this.f495 = new C1749();
        this.f496 = 0;
        this.f497 = 0;
        this.f498 = Integer.MAX_VALUE;
        this.f499 = Integer.MAX_VALUE;
        this.f500 = true;
        this.f501 = 7;
        this.f502 = null;
        this.f503 = null;
        this.f504 = -1;
        this.f505 = new HashMap<>();
        this.f506 = -1;
        this.f507 = -1;
        this.f508 = new SparseArray<>();
        this.f509 = new C0077(this, this);
        this.f510 = 0;
        this.f511 = 0;
        m215(attributeSet, 0, 0);
    }

    public ConstraintLayout(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        this.f492 = new SparseArray<>();
        this.f493 = new ArrayList<>(4);
        this.f494 = new ArrayList<>(100);
        this.f495 = new C1749();
        this.f496 = 0;
        this.f497 = 0;
        this.f498 = Integer.MAX_VALUE;
        this.f499 = Integer.MAX_VALUE;
        this.f500 = true;
        this.f501 = 7;
        this.f502 = null;
        this.f503 = null;
        this.f504 = -1;
        this.f505 = new HashMap<>();
        this.f506 = -1;
        this.f507 = -1;
        this.f508 = new SparseArray<>();
        this.f509 = new C0077(this, this);
        this.f510 = 0;
        this.f511 = 0;
        m215(attributeSet, i, 0);
    }

    @TargetApi(21)
    public ConstraintLayout(Context context, AttributeSet attributeSet, int i, int i2) {
        super(context, attributeSet, i, i2);
        this.f492 = new SparseArray<>();
        this.f493 = new ArrayList<>(4);
        this.f494 = new ArrayList<>(100);
        this.f495 = new C1749();
        this.f496 = 0;
        this.f497 = 0;
        this.f498 = Integer.MAX_VALUE;
        this.f499 = Integer.MAX_VALUE;
        this.f500 = true;
        this.f501 = 7;
        this.f502 = null;
        this.f503 = null;
        this.f504 = -1;
        this.f505 = new HashMap<>();
        this.f506 = -1;
        this.f507 = -1;
        this.f508 = new SparseArray<>();
        this.f509 = new C0077(this, this);
        this.f510 = 0;
        this.f511 = 0;
        m215(attributeSet, i, i2);
    }

    @Override // android.view.ViewGroup
    public void addView(View view, int i, ViewGroup.LayoutParams layoutParams) {
        super.addView(view, i, layoutParams);
    }

    @Override // android.view.ViewGroup
    public boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return layoutParams instanceof C0075;
    }

    @Override // android.view.ViewGroup, android.view.View
    public void dispatchDraw(Canvas canvas) {
        Object tag;
        int size;
        ArrayList<AbstractC1775> arrayList = this.f493;
        if (arrayList != null && (size = arrayList.size()) > 0) {
            for (int i = 0; i < size; i++) {
                if (this.f493.get(i) == null) {
                    throw null;
                }
            }
        }
        super.dispatchDraw(canvas);
        if (isInEditMode()) {
            int childCount = getChildCount();
            float width = getWidth();
            float height = getHeight();
            for (int i2 = 0; i2 < childCount; i2++) {
                View childAt = getChildAt(i2);
                if (childAt.getVisibility() != 8 && (tag = childAt.getTag()) != null && (tag instanceof String)) {
                    String[] strArrSplit = ((String) tag).split(",");
                    if (strArrSplit.length == 4) {
                        int i3 = Integer.parseInt(strArrSplit[0]);
                        int i4 = Integer.parseInt(strArrSplit[1]);
                        int i5 = Integer.parseInt(strArrSplit[2]);
                        int i6 = (int) ((i3 / 1080.0f) * width);
                        int i7 = (int) ((i4 / 1920.0f) * height);
                        Paint paint = new Paint();
                        paint.setColor(-65536);
                        float f = i6;
                        float f2 = i7;
                        float f3 = i6 + ((int) ((i5 / 1080.0f) * width));
                        canvas.drawLine(f, f2, f3, f2, paint);
                        float f4 = i7 + ((int) ((Integer.parseInt(strArrSplit[3]) / 1920.0f) * height));
                        canvas.drawLine(f3, f2, f3, f4, paint);
                        canvas.drawLine(f3, f4, f, f4, paint);
                        canvas.drawLine(f, f4, f, f2, paint);
                        paint.setColor(-16711936);
                        canvas.drawLine(f, f2, f3, f4, paint);
                        canvas.drawLine(f, f4, f3, f2, paint);
                    }
                }
            }
        }
    }

    @Override // android.view.View
    public void forceLayout() {
        this.f500 = true;
        this.f506 = -1;
        this.f507 = -1;
        super.forceLayout();
    }

    @Override // android.view.ViewGroup
    public C0075 generateDefaultLayoutParams() {
        return new C0075(-2, -2);
    }

    @Override // android.view.ViewGroup
    public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
        return new C0075(getContext(), attributeSet);
    }

    @Override // android.view.ViewGroup
    public ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return new C0075(layoutParams);
    }

    public int getMaxHeight() {
        return this.f499;
    }

    public int getMaxWidth() {
        return this.f498;
    }

    public int getMinHeight() {
        return this.f497;
    }

    public int getMinWidth() {
        return this.f496;
    }

    public int getOptimizationLevel() {
        return this.f495.f5805;
    }

    @Override // android.view.ViewGroup, android.view.View
    public void onLayout(boolean z, int i, int i2, int i3, int i4) {
        View content;
        int childCount = getChildCount();
        boolean zIsInEditMode = isInEditMode();
        for (int i5 = 0; i5 < childCount; i5++) {
            View childAt = getChildAt(i5);
            C0075 c0075 = (C0075) childAt.getLayoutParams();
            C1747 c1747 = c0075.f576;
            if ((childAt.getVisibility() != 8 || c0075.f562 || c0075.f563 || c0075.f565 || zIsInEditMode) && !c0075.f564) {
                int iM3475 = c1747.m3475();
                int iM3477 = c1747.m3477();
                int iM3473 = c1747.m3473() + iM3475;
                int iM3464 = c1747.m3464() + iM3477;
                childAt.layout(iM3475, iM3477, iM3473, iM3464);
                if ((childAt instanceof C1788) && (content = ((C1788) childAt).getContent()) != null) {
                    content.setVisibility(0);
                    content.layout(iM3475, iM3477, iM3473, iM3464);
                }
            }
        }
        int size = this.f493.size();
        if (size > 0) {
            for (int i6 = 0; i6 < size; i6++) {
                this.f493.get(i6).mo220(this);
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:70:0x0180  */
    @Override // android.view.View
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void onMeasure(int i, int i2) {
        C1747.EnumC1748 enumC1748;
        C1747.EnumC1748 enumC17482;
        int iMin;
        C1747.EnumC1748 enumC17483;
        int iMin2;
        int i3;
        int i4;
        boolean z;
        int i5;
        C1757.InterfaceC1759 interfaceC1759;
        int i6;
        boolean zM3482;
        int i7;
        boolean z2;
        boolean z3;
        int i8;
        int i9;
        C1757.InterfaceC1759 interfaceC17592;
        C1757.InterfaceC1759 interfaceC17593;
        int i10;
        int i11;
        int i12;
        int i13;
        boolean zM34822;
        int i14;
        boolean z4;
        boolean z5;
        this.f510 = i;
        this.f511 = i2;
        this.f495.f5797 = ((getContext().getApplicationInfo().flags & 4194304) != 0) && 1 == getLayoutDirection();
        if (this.f500) {
            this.f500 = false;
            if (m217()) {
                C1749 c1749 = this.f495;
                C1757 c1757 = c1749.f5794;
                c1757.f5818.clear();
                int size = c1749.f5817.size();
                for (int i15 = 0; i15 < size; i15++) {
                    C1747 c1747 = c1749.f5817.get(i15);
                    if (c1747.m3467() == C1747.EnumC1748.MATCH_CONSTRAINT || c1747.m3467() == C1747.EnumC1748.MATCH_PARENT || c1747.m3471() == C1747.EnumC1748.MATCH_CONSTRAINT || c1747.m3471() == C1747.EnumC1748.MATCH_PARENT) {
                        c1757.f5818.add(c1747);
                    }
                }
                c1749.m3485();
            }
        }
        C1749 c17492 = this.f495;
        int i16 = this.f501;
        int mode = View.MeasureSpec.getMode(i);
        int size2 = View.MeasureSpec.getSize(i);
        int mode2 = View.MeasureSpec.getMode(i2);
        int size3 = View.MeasureSpec.getSize(i2);
        int paddingTop = getPaddingTop();
        int paddingBottom = getPaddingBottom() + paddingTop;
        int paddingStart = getPaddingStart();
        int paddingEnd = getPaddingEnd() + paddingStart;
        if (paddingEnd == 0) {
            paddingStart = getPaddingLeft();
            paddingEnd = getPaddingRight() + paddingStart;
        }
        int i17 = size2 - paddingEnd;
        int i18 = size3 - paddingBottom;
        int paddingBottom2 = getPaddingBottom() + getPaddingTop();
        int paddingRight = getPaddingRight() + getPaddingLeft();
        C1747.EnumC1748 enumC17484 = C1747.EnumC1748.FIXED;
        if (mode != Integer.MIN_VALUE) {
            if (mode == 0) {
                enumC1748 = C1747.EnumC1748.WRAP_CONTENT;
            } else if (mode != 1073741824) {
                enumC1748 = enumC17484;
            } else {
                enumC17482 = enumC17484;
                iMin = Math.min(this.f498, i17);
                enumC1748 = enumC17482;
            }
            enumC17482 = enumC17484;
            iMin = 0;
        } else {
            enumC1748 = C1747.EnumC1748.WRAP_CONTENT;
            enumC17482 = enumC17484;
            iMin = i17;
        }
        if (mode2 != Integer.MIN_VALUE) {
            if (mode2 == 0) {
                enumC17482 = C1747.EnumC1748.WRAP_CONTENT;
            } else if (mode2 == 1073741824) {
                iMin2 = Math.min(this.f499, i18);
                enumC17483 = enumC17482;
            }
            enumC17483 = enumC17482;
            iMin2 = 0;
        } else {
            enumC17483 = C1747.EnumC1748.WRAP_CONTENT;
            iMin2 = i18;
        }
        if (iMin == c17492.m3473() && iMin2 == c17492.m3464()) {
            i3 = i18;
            i4 = 0;
        } else {
            i3 = i18;
            c17492.f5795.f5835 = true;
            i4 = 0;
        }
        c17492.f5773 = i4;
        c17492.f5774 = i4;
        int i19 = this.f498;
        int[] iArr = c17492.f5754;
        iArr[i4] = i19;
        iArr[1] = this.f499;
        c17492.m3474(i4);
        c17492.m3472(i4);
        c17492.m3458(enumC1748);
        c17492.m3476(iMin);
        c17492.m3463(enumC17483);
        c17492.m3470(iMin2);
        c17492.m3474(this.f496 - paddingRight);
        c17492.m3472(this.f497 - paddingBottom2);
        c17492.f5799 = paddingStart;
        c17492.f5800 = paddingTop;
        C1757 c17572 = c17492.f5794;
        if (c17572 == null) {
            throw null;
        }
        C1757.InterfaceC1759 interfaceC17594 = c17492.f5796;
        int size4 = c17492.f5817.size();
        int iM3473 = c17492.m3473();
        int iM3464 = c17492.m3464();
        boolean z6 = (i16 & 128) == 128;
        if (z6) {
            z = true;
        } else if (!((i16 & 64) == 64)) {
            z = false;
        }
        if (z) {
            for (int i20 = 0; i20 < size4; i20++) {
                C1747 c17472 = c17492.f5817.get(i20);
                boolean z7 = (c17472.m3467() == C1747.EnumC1748.MATCH_CONSTRAINT) && (c17472.m3471() == C1747.EnumC1748.MATCH_CONSTRAINT) && c17472.f5771 > 0.0f;
                if ((c17472.m3478() && z7) || ((c17472.m3479() && z7) || (c17472 instanceof C1754) || c17472.m3478() || c17472.m3479())) {
                    i5 = 1073741824;
                    z = false;
                    break;
                }
            }
            i5 = 1073741824;
        } else {
            i5 = 1073741824;
        }
        if (((mode == i5 && mode2 == i5) || z6) && z) {
            int iMin3 = Math.min(c17492.f5754[0], i17);
            int iMin4 = Math.min(c17492.f5754[1], i3);
            if (mode == 1073741824 && c17492.m3473() != iMin3) {
                c17492.m3476(iMin3);
                c17492.m3485();
            }
            if (mode2 == 1073741824 && c17492.m3464() != iMin4) {
                c17492.m3470(iMin4);
                c17492.m3485();
            }
            if (mode == 1073741824 && mode2 == 1073741824) {
                C1762 c1762 = c17492.f5795;
                boolean z8 = z6 & true;
                if (c1762.f5834 || c1762.f5835) {
                    for (C1747 c17473 : c1762.f5833.f5817) {
                        c17473.f5734 = false;
                        c17473.f5737.m3510();
                        c17473.f5738.m3513();
                    }
                    i14 = 0;
                    C1749 c17493 = c1762.f5833;
                    c17493.f5734 = false;
                    c17493.f5737.m3510();
                    c1762.f5833.f5738.m3513();
                    c1762.f5835 = false;
                } else {
                    i14 = 0;
                }
                c1762.m3503(c1762.f5836);
                C1749 c17494 = c1762.f5833;
                c17494.f5773 = i14;
                c17494.f5774 = i14;
                C1747.EnumC1748 enumC1748M3454 = c17494.m3454(i14);
                C1747.EnumC1748 enumC1748M34542 = c1762.f5833.m3454(1);
                if (c1762.f5834) {
                    c1762.m3499();
                }
                int iM3475 = c1762.f5833.m3475();
                int iM3477 = c1762.f5833.m3477();
                c1762.f5833.f5737.f5876.mo3506(iM3475);
                c1762.f5833.f5738.f5876.mo3506(iM3477);
                c1762.m3504();
                C1747.EnumC1748 enumC17485 = C1747.EnumC1748.WRAP_CONTENT;
                if (enumC1748M3454 == enumC17485 || enumC1748M34542 == enumC17485) {
                    if (z8) {
                        Iterator<AbstractC1771> it = c1762.f5837.iterator();
                        while (true) {
                            if (it.hasNext()) {
                                if (!it.next().mo3495()) {
                                    z8 = false;
                                    break;
                                }
                            } else {
                                break;
                            }
                        }
                    }
                    if (z8 && enumC1748M3454 == C1747.EnumC1748.WRAP_CONTENT) {
                        c1762.f5833.m3458(C1747.EnumC1748.FIXED);
                        C1749 c17495 = c1762.f5833;
                        interfaceC1759 = interfaceC17594;
                        c17495.m3476(c1762.m3498(c17495, 0));
                        C1749 c17496 = c1762.f5833;
                        c17496.f5737.f5873.mo3506(c17496.m3473());
                    } else {
                        interfaceC1759 = interfaceC17594;
                    }
                    if (z8 && enumC1748M34542 == C1747.EnumC1748.WRAP_CONTENT) {
                        c1762.f5833.m3463(C1747.EnumC1748.FIXED);
                        C1749 c17497 = c1762.f5833;
                        c17497.m3470(c1762.m3498(c17497, 1));
                        C1749 c17498 = c1762.f5833;
                        c17498.f5738.f5873.mo3506(c17498.m3464());
                    }
                } else {
                    interfaceC1759 = interfaceC17594;
                }
                C1747.EnumC1748[] enumC1748Arr = c1762.f5833.f5767;
                if (enumC1748Arr[0] == C1747.EnumC1748.FIXED || enumC1748Arr[0] == C1747.EnumC1748.MATCH_PARENT) {
                    int iM34732 = c1762.f5833.m3473() + iM3475;
                    c1762.f5833.f5737.f5877.mo3506(iM34732);
                    c1762.f5833.f5737.f5873.mo3506(iM34732 - iM3475);
                    c1762.m3504();
                    C1747.EnumC1748[] enumC1748Arr2 = c1762.f5833.f5767;
                    if (enumC1748Arr2[1] == C1747.EnumC1748.FIXED || enumC1748Arr2[1] == C1747.EnumC1748.MATCH_PARENT) {
                        int iM34642 = c1762.f5833.m3464() + iM3477;
                        c1762.f5833.f5738.f5877.mo3506(iM34642);
                        c1762.f5833.f5738.f5873.mo3506(iM34642 - iM3477);
                    }
                    c1762.m3504();
                    z4 = true;
                } else {
                    z4 = false;
                }
                for (AbstractC1771 abstractC1771 : c1762.f5837) {
                    if (abstractC1771.f5870 != c1762.f5833 || abstractC1771.f5875) {
                        abstractC1771.mo3492();
                    }
                }
                for (AbstractC1771 abstractC17712 : c1762.f5837) {
                    if (z4 || abstractC17712.f5870 != c1762.f5833) {
                        if (!abstractC17712.f5876.f5850 || ((!abstractC17712.f5877.f5850 && !(abstractC17712 instanceof C1766)) || (!abstractC17712.f5873.f5850 && !(abstractC17712 instanceof C1760) && !(abstractC17712 instanceof C1766)))) {
                            z5 = false;
                            break;
                        }
                    }
                }
                z5 = true;
                c1762.f5833.m3458(enumC1748M3454);
                c1762.f5833.m3463(enumC1748M34542);
                zM3482 = z5;
                i12 = 1073741824;
                i6 = 2;
            } else {
                interfaceC1759 = interfaceC17594;
                C1762 c17622 = c17492.f5795;
                if (c17622.f5834) {
                    for (C1747 c17474 : c17622.f5833.f5817) {
                        c17474.f5734 = false;
                        C1768 c1768 = c17474.f5737;
                        c1768.f5873.f5850 = false;
                        c1768.f5875 = false;
                        c1768.m3510();
                        C1770 c1770 = c17474.f5738;
                        c1770.f5873.f5850 = false;
                        c1770.f5875 = false;
                        c1770.m3513();
                    }
                    i11 = 0;
                    C1749 c17499 = c17622.f5833;
                    c17499.f5734 = false;
                    C1768 c17682 = c17499.f5737;
                    c17682.f5873.f5850 = false;
                    c17682.f5875 = false;
                    c17682.m3510();
                    C1770 c17702 = c17622.f5833.f5738;
                    c17702.f5873.f5850 = false;
                    c17702.f5875 = false;
                    c17702.m3513();
                    c17622.m3499();
                } else {
                    i11 = 0;
                }
                c17622.m3503(c17622.f5836);
                C1749 c174910 = c17622.f5833;
                c174910.f5773 = i11;
                c174910.f5774 = i11;
                c174910.f5737.f5876.mo3506(i11);
                c17622.f5833.f5738.f5876.mo3506(i11);
                i12 = 1073741824;
                if (mode == 1073741824) {
                    i13 = 1;
                    zM34822 = c17492.m3482(z6, i11) & true;
                    i6 = 1;
                } else {
                    i13 = 1;
                    i6 = 0;
                    zM34822 = true;
                }
                if (mode2 == 1073741824) {
                    zM3482 = zM34822 & c17492.m3482(z6, i13);
                    i6++;
                } else {
                    zM3482 = zM34822;
                }
            }
            if (zM3482) {
                c17492.mo3459(mode == i12, mode2 == i12);
            }
        } else {
            interfaceC1759 = interfaceC17594;
            c17492.f5737.mo3493();
            c17492.f5738.mo3493();
            for (C1747 c17475 : c17492.f5817) {
                c17475.f5737.mo3493();
                c17475.f5738.mo3493();
            }
            i6 = 0;
            zM3482 = false;
        }
        if (!zM3482 || i6 != 2) {
            if (size4 > 0) {
                int size5 = c17492.f5817.size();
                C1757.InterfaceC1759 interfaceC17595 = c17492.f5796;
                for (int i21 = 0; i21 < size5; i21++) {
                    C1747 c17476 = c17492.f5817.get(i21);
                    if (!(c17476 instanceof C1750) && (!c17476.f5737.f5873.f5850 || !c17476.f5738.f5873.f5850)) {
                        C1747.EnumC1748 enumC1748M34543 = c17476.m3454(0);
                        C1747.EnumC1748 enumC1748M34544 = c17476.m3454(1);
                        C1747.EnumC1748 enumC17486 = C1747.EnumC1748.MATCH_CONSTRAINT;
                        if (!(enumC1748M34543 == enumC17486 && c17476.f5743 != 1 && enumC1748M34544 == enumC17486 && c17476.f5744 != 1)) {
                            c17572.m3489(interfaceC17595, c17476, false);
                        }
                    }
                }
                C0077 c0077 = (C0077) interfaceC17595;
                int childCount = c0077.f578.getChildCount();
                for (int i22 = 0; i22 < childCount; i22++) {
                    View childAt = c0077.f578.getChildAt(i22);
                    if (childAt instanceof C1788) {
                        C1788 c1788 = (C1788) childAt;
                        if (c1788.f6034 != null) {
                            C0075 c0075 = (C0075) c1788.getLayoutParams();
                            C0075 c00752 = (C0075) c1788.f6034.getLayoutParams();
                            C1747 c17477 = c00752.f576;
                            c17477.f5781 = 0;
                            c0075.f576.m3476(c17477.m3473());
                            c0075.f576.m3470(c00752.f576.m3464());
                            c00752.f576.f5781 = 8;
                        }
                    }
                }
                int size6 = c0077.f578.f493.size();
                if (size6 > 0) {
                    for (int i23 = 0; i23 < size6; i23++) {
                        if (c0077.f578.f493.get(i23) == null) {
                            throw null;
                        }
                    }
                }
            }
            int i24 = c17492.f5805;
            int size7 = c17572.f5818.size();
            if (size4 > 0) {
                c17572.m3488(c17492, iM3473, iM3464);
            }
            if (size7 > 0) {
                boolean z9 = c17492.m3467() == C1747.EnumC1748.WRAP_CONTENT;
                boolean z10 = c17492.m3471() == C1747.EnumC1748.WRAP_CONTENT;
                int iMax = Math.max(c17492.m3473(), c17572.f5820.f5776);
                int iMax2 = Math.max(c17492.m3464(), c17572.f5820.f5777);
                int i25 = 0;
                boolean z11 = false;
                while (i25 < size7) {
                    C1747 c17478 = c17572.f5818.get(i25);
                    if (c17478 instanceof C1754) {
                        int iM34733 = c17478.m3473();
                        int iM34643 = c17478.m3464();
                        interfaceC17593 = interfaceC1759;
                        i10 = i24;
                        boolean zM3489 = z11 | c17572.m3489(interfaceC17593, c17478, true);
                        int iM34734 = c17478.m3473();
                        boolean z12 = zM3489;
                        int iM34644 = c17478.m3464();
                        if (iM34734 != iM34733) {
                            c17478.m3476(iM34734);
                            if (z9 && c17478.m3469() > iMax) {
                                iMax = Math.max(iMax, c17478.mo3453(C1745.EnumC1746.RIGHT).m3448() + c17478.m3469());
                            }
                            z12 = true;
                        }
                        if (iM34644 != iM34643) {
                            c17478.m3470(iM34644);
                            if (z10 && c17478.m3460() > iMax2) {
                                iMax2 = Math.max(iMax2, c17478.mo3453(C1745.EnumC1746.BOTTOM).m3448() + c17478.m3460());
                            }
                            z12 = true;
                        }
                        z11 = ((C1754) c17478).f5816 | z12;
                    } else {
                        interfaceC17593 = interfaceC1759;
                        i10 = i24;
                    }
                    i25++;
                    i24 = i10;
                    interfaceC1759 = interfaceC17593;
                }
                C1757.InterfaceC1759 interfaceC17596 = interfaceC1759;
                int i26 = i24;
                int i27 = 0;
                while (i27 < 2) {
                    int iMax3 = iMax2;
                    int iMax4 = iMax;
                    boolean zM34892 = z11;
                    int i28 = 0;
                    while (i28 < size7) {
                        C1747 c17479 = c17572.f5818.get(i28);
                        if ((!(c17479 instanceof InterfaceC1751) || (c17479 instanceof C1754)) && !(c17479 instanceof C1750)) {
                            if (c17479.f5781 != 8 && ((!c17479.f5737.f5873.f5850 || !c17479.f5738.f5873.f5850) && !(c17479 instanceof C1754))) {
                                int iM34735 = c17479.m3473();
                                int iM34645 = c17479.m3464();
                                i8 = size7;
                                int i29 = c17479.f5775;
                                i9 = i27;
                                zM34892 |= c17572.m3489(interfaceC17596, c17479, true);
                                int iM34736 = c17479.m3473();
                                interfaceC17592 = interfaceC17596;
                                int iM34646 = c17479.m3464();
                                if (iM34736 != iM34735) {
                                    c17479.m3476(iM34736);
                                    if (z9 && c17479.m3469() > iMax4) {
                                        iMax4 = Math.max(iMax4, c17479.mo3453(C1745.EnumC1746.RIGHT).m3448() + c17479.m3469());
                                    }
                                    zM34892 = true;
                                }
                                if (iM34646 != iM34645) {
                                    c17479.m3470(iM34646);
                                    if (z10 && c17479.m3460() > iMax3) {
                                        iMax3 = Math.max(iMax3, c17479.mo3453(C1745.EnumC1746.BOTTOM).m3448() + c17479.m3460());
                                    }
                                    zM34892 = true;
                                }
                                if (c17479.f5756 && i29 != c17479.f5775) {
                                    zM34892 = true;
                                }
                            }
                            i28++;
                            size7 = i8;
                            i27 = i9;
                            interfaceC17596 = interfaceC17592;
                        }
                        interfaceC17592 = interfaceC17596;
                        i9 = i27;
                        i8 = size7;
                        i28++;
                        size7 = i8;
                        i27 = i9;
                        interfaceC17596 = interfaceC17592;
                    }
                    C1757.InterfaceC1759 interfaceC17597 = interfaceC17596;
                    int i30 = i27;
                    int i31 = size7;
                    if (zM34892) {
                        c17572.m3488(c17492, iM3473, iM3464);
                        z11 = false;
                    } else {
                        z11 = zM34892;
                    }
                    i27 = i30 + 1;
                    iMax = iMax4;
                    iMax2 = iMax3;
                    size7 = i31;
                    interfaceC17596 = interfaceC17597;
                }
                if (z11) {
                    c17572.m3488(c17492, iM3473, iM3464);
                    if (c17492.m3473() < iMax) {
                        c17492.m3476(iMax);
                        z2 = true;
                    } else {
                        z2 = false;
                    }
                    if (c17492.m3464() < iMax2) {
                        c17492.m3470(iMax2);
                        z3 = true;
                    } else {
                        z3 = z2;
                    }
                    if (z3) {
                        c17572.m3488(c17492, iM3473, iM3464);
                    }
                }
                i7 = i26;
            } else {
                i7 = i24;
            }
            c17492.f5805 = i7;
        }
        int iM34737 = this.f495.m3473();
        int iM34647 = this.f495.m3464();
        C1749 c174911 = this.f495;
        boolean z13 = c174911.f5806;
        boolean z14 = c174911.f5807;
        int paddingBottom3 = getPaddingBottom() + getPaddingTop();
        int iResolveSizeAndState = ViewGroup.resolveSizeAndState(getPaddingRight() + getPaddingLeft() + iM34737, i, 0);
        int iResolveSizeAndState2 = ViewGroup.resolveSizeAndState(iM34647 + paddingBottom3, i2, 0) & 16777215;
        int iMin5 = Math.min(this.f498, iResolveSizeAndState & 16777215);
        int iMin6 = Math.min(this.f499, iResolveSizeAndState2);
        if (z13) {
            iMin5 |= 16777216;
        }
        if (z14) {
            iMin6 |= 16777216;
        }
        setMeasuredDimension(iMin5, iMin6);
        this.f506 = iMin5;
        this.f507 = iMin6;
    }

    @Override // android.view.ViewGroup
    public void onViewAdded(View view) {
        super.onViewAdded(view);
        C1747 c1747M213 = m213(view);
        if ((view instanceof Guideline) && !(c1747M213 instanceof C1750)) {
            C0075 c0075 = (C0075) view.getLayoutParams();
            C1750 c1750 = new C1750();
            c0075.f576 = c1750;
            c0075.f562 = true;
            c1750.m3486(c0075.f555);
        }
        if (view instanceof AbstractC1775) {
            AbstractC1775 abstractC1775 = (AbstractC1775) view;
            abstractC1775.m3526();
            ((C0075) view.getLayoutParams()).f563 = true;
            if (!this.f493.contains(abstractC1775)) {
                this.f493.add(abstractC1775);
            }
        }
        this.f492.put(view.getId(), view);
        this.f500 = true;
    }

    @Override // android.view.ViewGroup
    public void onViewRemoved(View view) {
        super.onViewRemoved(view);
        this.f492.remove(view.getId());
        C1747 c1747M213 = m213(view);
        this.f495.f5817.remove(c1747M213);
        c1747M213.f5768 = null;
        this.f493.remove(view);
        this.f494.remove(c1747M213);
        this.f500 = true;
    }

    @Override // android.view.ViewGroup, android.view.ViewManager
    public void removeView(View view) {
        super.removeView(view);
    }

    @Override // android.view.View, android.view.ViewParent
    public void requestLayout() {
        this.f500 = true;
        this.f506 = -1;
        this.f507 = -1;
        super.requestLayout();
    }

    public void setConstraintSet(C1779 c1779) {
        this.f502 = c1779;
    }

    @Override // android.view.View
    public void setId(int i) {
        this.f492.remove(getId());
        super.setId(i);
        this.f492.put(getId(), this);
    }

    public void setMaxHeight(int i) {
        if (i == this.f499) {
            return;
        }
        this.f499 = i;
        requestLayout();
    }

    public void setMaxWidth(int i) {
        if (i == this.f498) {
            return;
        }
        this.f498 = i;
        requestLayout();
    }

    public void setMinHeight(int i) {
        if (i == this.f497) {
            return;
        }
        this.f497 = i;
        requestLayout();
    }

    public void setMinWidth(int i) {
        if (i == this.f496) {
            return;
        }
        this.f496 = i;
        requestLayout();
    }

    public void setOnConstraintsChanged(AbstractC1787 abstractC1787) {
        C1776 c1776 = this.f503;
        if (c1776 != null && c1776 == null) {
            throw null;
        }
    }

    public void setOptimizationLevel(int i) {
        this.f501 = i;
        this.f495.f5805 = i;
    }

    @Override // android.view.ViewGroup
    public boolean shouldDelayChildPressedState() {
        return false;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public View m211(int i) {
        return this.f492.get(i);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public Object m212(int i, Object obj) {
        if (i != 0 || !(obj instanceof String)) {
            return null;
        }
        String str = (String) obj;
        HashMap<String, Integer> map = this.f505;
        if (map == null || !map.containsKey(str)) {
            return null;
        }
        return this.f505.get(str);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C1747 m213(View view) {
        if (view == this) {
            return this.f495;
        }
        if (view == null) {
            return null;
        }
        return ((C0075) view.getLayoutParams()).f576;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void m214(int i, Object obj, Object obj2) {
        if (i == 0 && (obj instanceof String) && (obj2 instanceof Integer)) {
            if (this.f505 == null) {
                this.f505 = new HashMap<>();
            }
            String strSubstring = (String) obj;
            int iIndexOf = strSubstring.indexOf("/");
            if (iIndexOf != -1) {
                strSubstring = strSubstring.substring(iIndexOf + 1);
            }
            this.f505.put(strSubstring, Integer.valueOf(((Integer) obj2).intValue()));
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m215(AttributeSet attributeSet, int i, int i2) {
        C1749 c1749 = this.f495;
        c1749.f5780 = this;
        C0077 c0077 = this.f509;
        c1749.f5796 = c0077;
        c1749.f5795.f5838 = c0077;
        this.f492.put(getId(), this);
        this.f502 = null;
        if (attributeSet != null) {
            TypedArray typedArrayObtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, C1790.ConstraintLayout_Layout, i, i2);
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i3 = 0; i3 < indexCount; i3++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i3);
                if (index == C1790.ConstraintLayout_Layout_android_minWidth) {
                    this.f496 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.f496);
                } else if (index == C1790.ConstraintLayout_Layout_android_minHeight) {
                    this.f497 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.f497);
                } else if (index == C1790.ConstraintLayout_Layout_android_maxWidth) {
                    this.f498 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.f498);
                } else if (index == C1790.ConstraintLayout_Layout_android_maxHeight) {
                    this.f499 = typedArrayObtainStyledAttributes.getDimensionPixelOffset(index, this.f499);
                } else if (index == C1790.ConstraintLayout_Layout_layout_optimizationLevel) {
                    this.f501 = typedArrayObtainStyledAttributes.getInt(index, this.f501);
                } else if (index == C1790.ConstraintLayout_Layout_layoutDescription) {
                    int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, 0);
                    if (resourceId != 0) {
                        try {
                            this.f503 = new C1776(getContext(), this, resourceId);
                        } catch (Resources.NotFoundException unused) {
                            this.f503 = null;
                        }
                    }
                } else if (index == C1790.ConstraintLayout_Layout_constraintSet) {
                    int resourceId2 = typedArrayObtainStyledAttributes.getResourceId(index, 0);
                    try {
                        C1779 c1779 = new C1779();
                        this.f502 = c1779;
                        c1779.m3532(getContext(), resourceId2);
                    } catch (Resources.NotFoundException unused2) {
                        this.f502 = null;
                    }
                    this.f504 = resourceId2;
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
        this.f495.f5805 = this.f501;
    }

    /* JADX WARN: Removed duplicated region for block: B:152:0x02fa  */
    /* JADX WARN: Removed duplicated region for block: B:155:0x02ff  */
    /* JADX WARN: Removed duplicated region for block: B:76:0x01c2  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:152:0x02fa -> B:153:0x02fb). Please report as a decompilation issue!!! */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m216(boolean z, View view, C1747 c1747, C0075 c0075, SparseArray<C1747> sparseArray) {
        C1747 c17472;
        C1747 c17473;
        C1747 c17474;
        C1747 c17475;
        int i;
        float f;
        int i2;
        float fAbs;
        c0075.m218();
        c1747.f5781 = view.getVisibility();
        if (c0075.f564) {
            c1747.f5781 = 8;
        }
        c1747.f5780 = view;
        if (!c0075.f560 || !c0075.f559) {
            this.f494.add(c1747);
        }
        if (view instanceof AbstractC1775) {
            ((AbstractC1775) view).mo210(c1747, this.f495.f5797);
        }
        int i3 = -1;
        if (c0075.f562) {
            C1750 c1750 = (C1750) c1747;
            int i4 = c0075.f573;
            int i5 = c0075.f574;
            float f2 = c0075.f575;
            if (f2 != -1.0f) {
                if (f2 > -1.0f) {
                    c1750.f5808 = f2;
                    c1750.f5809 = -1;
                    c1750.f5810 = -1;
                    return;
                }
                return;
            }
            if (i4 != -1) {
                if (i4 > -1) {
                    c1750.f5808 = -1.0f;
                    c1750.f5809 = i4;
                    c1750.f5810 = -1;
                    return;
                }
                return;
            }
            if (i5 == -1 || i5 <= -1) {
                return;
            }
            c1750.f5808 = -1.0f;
            c1750.f5809 = -1;
            c1750.f5810 = i5;
            return;
        }
        int i6 = c0075.f566;
        int i7 = c0075.f567;
        int i8 = c0075.f568;
        int i9 = c0075.f569;
        int i10 = c0075.f570;
        int i11 = c0075.f571;
        float f3 = c0075.f572;
        int i12 = c0075.f524;
        if (i12 != -1) {
            C1747 c17476 = sparseArray.get(i12);
            if (c17476 != null) {
                float f4 = c0075.f526;
                int i13 = c0075.f525;
                C1745.EnumC1746 enumC1746 = C1745.EnumC1746.CENTER;
                c1747.m3457(enumC1746, c17476, enumC1746, i13, 0);
                c1747.f5755 = f4;
            }
            f = 0.0f;
            i = 0;
        } else {
            if (i6 != -1) {
                C1747 c17477 = sparseArray.get(i6);
                if (c17477 != null) {
                    C1745.EnumC1746 enumC17462 = C1745.EnumC1746.LEFT;
                    c1747.m3457(enumC17462, c17477, enumC17462, ((ViewGroup.MarginLayoutParams) c0075).leftMargin, i10);
                }
            } else if (i7 != -1 && (c17472 = sparseArray.get(i7)) != null) {
                c1747.m3457(C1745.EnumC1746.LEFT, c17472, C1745.EnumC1746.RIGHT, ((ViewGroup.MarginLayoutParams) c0075).leftMargin, i10);
            }
            if (i8 != -1) {
                C1747 c17478 = sparseArray.get(i8);
                if (c17478 != null) {
                    c1747.m3457(C1745.EnumC1746.RIGHT, c17478, C1745.EnumC1746.LEFT, ((ViewGroup.MarginLayoutParams) c0075).rightMargin, i11);
                }
            } else if (i9 != -1 && (c17473 = sparseArray.get(i9)) != null) {
                C1745.EnumC1746 enumC17463 = C1745.EnumC1746.RIGHT;
                c1747.m3457(enumC17463, c17473, enumC17463, ((ViewGroup.MarginLayoutParams) c0075).rightMargin, i11);
            }
            int i14 = c0075.f519;
            if (i14 != -1) {
                C1747 c17479 = sparseArray.get(i14);
                if (c17479 != null) {
                    C1745.EnumC1746 enumC17464 = C1745.EnumC1746.TOP;
                    c1747.m3457(enumC17464, c17479, enumC17464, ((ViewGroup.MarginLayoutParams) c0075).topMargin, c0075.f532);
                }
            } else {
                int i15 = c0075.f520;
                if (i15 != -1 && (c17474 = sparseArray.get(i15)) != null) {
                    c1747.m3457(C1745.EnumC1746.TOP, c17474, C1745.EnumC1746.BOTTOM, ((ViewGroup.MarginLayoutParams) c0075).topMargin, c0075.f532);
                }
            }
            int i16 = c0075.f521;
            if (i16 != -1) {
                C1747 c174710 = sparseArray.get(i16);
                if (c174710 != null) {
                    c1747.m3457(C1745.EnumC1746.BOTTOM, c174710, C1745.EnumC1746.TOP, ((ViewGroup.MarginLayoutParams) c0075).bottomMargin, c0075.f534);
                }
            } else {
                int i17 = c0075.f522;
                if (i17 != -1 && (c17475 = sparseArray.get(i17)) != null) {
                    C1745.EnumC1746 enumC17465 = C1745.EnumC1746.BOTTOM;
                    c1747.m3457(enumC17465, c17475, enumC17465, ((ViewGroup.MarginLayoutParams) c0075).bottomMargin, c0075.f534);
                }
            }
            int i18 = c0075.f523;
            if (i18 != -1) {
                View view2 = this.f492.get(i18);
                C1747 c174711 = sparseArray.get(c0075.f523);
                if (c174711 == null || view2 == null || !(view2.getLayoutParams() instanceof C0075)) {
                    i = 0;
                } else {
                    C0075 c00752 = (C0075) view2.getLayoutParams();
                    c0075.f561 = true;
                    c00752.f561 = true;
                    i = 0;
                    c1747.mo3453(C1745.EnumC1746.BASELINE).m3449(c174711.mo3453(C1745.EnumC1746.BASELINE), 0, -1, true);
                    c1747.f5756 = true;
                    c00752.f576.f5756 = true;
                    c1747.mo3453(C1745.EnumC1746.TOP).m3451();
                    c1747.mo3453(C1745.EnumC1746.BOTTOM).m3451();
                }
                f = 0.0f;
                if (f3 >= 0.0f) {
                    c1747.f5778 = f3;
                }
                float f5 = c0075.f538;
                if (f5 >= 0.0f) {
                    c1747.f5779 = f5;
                }
            }
        }
        if (z && (c0075.f553 != -1 || c0075.f554 != -1)) {
            int i19 = c0075.f553;
            int i20 = c0075.f554;
            c1747.f5773 = i19;
            c1747.f5774 = i20;
        }
        if (c0075.f559) {
            c1747.m3458(C1747.EnumC1748.FIXED);
            c1747.m3476(((ViewGroup.MarginLayoutParams) c0075).width);
            if (((ViewGroup.MarginLayoutParams) c0075).width == -2) {
                c1747.m3458(C1747.EnumC1748.WRAP_CONTENT);
            }
        } else if (((ViewGroup.MarginLayoutParams) c0075).width == -1) {
            if (c0075.f556) {
                c1747.m3458(C1747.EnumC1748.MATCH_CONSTRAINT);
            } else {
                c1747.m3458(C1747.EnumC1748.MATCH_PARENT);
            }
            c1747.mo3453(C1745.EnumC1746.LEFT).f5720 = ((ViewGroup.MarginLayoutParams) c0075).leftMargin;
            c1747.mo3453(C1745.EnumC1746.RIGHT).f5720 = ((ViewGroup.MarginLayoutParams) c0075).rightMargin;
        } else {
            c1747.m3458(C1747.EnumC1748.MATCH_CONSTRAINT);
            c1747.m3476(i);
        }
        if (c0075.f560) {
            c1747.m3463(C1747.EnumC1748.FIXED);
            c1747.m3470(((ViewGroup.MarginLayoutParams) c0075).height);
            if (((ViewGroup.MarginLayoutParams) c0075).height == -2) {
                c1747.m3463(C1747.EnumC1748.WRAP_CONTENT);
            }
        } else if (((ViewGroup.MarginLayoutParams) c0075).height == -1) {
            if (c0075.f557) {
                c1747.m3463(C1747.EnumC1748.MATCH_CONSTRAINT);
            } else {
                c1747.m3463(C1747.EnumC1748.MATCH_PARENT);
            }
            c1747.mo3453(C1745.EnumC1746.TOP).f5720 = ((ViewGroup.MarginLayoutParams) c0075).topMargin;
            c1747.mo3453(C1745.EnumC1746.BOTTOM).f5720 = ((ViewGroup.MarginLayoutParams) c0075).bottomMargin;
        } else {
            c1747.m3463(C1747.EnumC1748.MATCH_CONSTRAINT);
            c1747.m3470(i);
        }
        String str = c0075.f539;
        if (str != null) {
            if (str.length() == 0) {
                c1747.f5771 = f;
            } else {
                int length = str.length();
                int iIndexOf = str.indexOf(44);
                if (iIndexOf <= 0 || iIndexOf >= length - 1) {
                    i2 = 0;
                } else {
                    String strSubstring = str.substring(i, iIndexOf);
                    if (strSubstring.equalsIgnoreCase("W")) {
                        i3 = 0;
                    } else if (strSubstring.equalsIgnoreCase("H")) {
                        i3 = 1;
                    }
                    i2 = iIndexOf + 1;
                }
                int iIndexOf2 = str.indexOf(58);
                if (iIndexOf2 < 0 || iIndexOf2 >= length - 1) {
                    String strSubstring2 = str.substring(i2);
                    fAbs = strSubstring2.length() > 0 ? Float.parseFloat(strSubstring2) : 0.0f;
                    if (fAbs > f) {
                        c1747.f5771 = fAbs;
                        c1747.f5772 = i3;
                    }
                } else {
                    String strSubstring3 = str.substring(i2, iIndexOf2);
                    String strSubstring4 = str.substring(iIndexOf2 + 1);
                    if (strSubstring3.length() > 0 && strSubstring4.length() > 0) {
                        float f6 = Float.parseFloat(strSubstring3);
                        float f7 = Float.parseFloat(strSubstring4);
                        if (f6 > f && f7 > f) {
                            fAbs = i3 == 1 ? Math.abs(f7 / f6) : Math.abs(f6 / f7);
                        }
                        if (fAbs > f) {
                        }
                    }
                }
            }
        }
        float f8 = c0075.f541;
        float[] fArr = c1747.f5786;
        fArr[i] = f8;
        fArr[1] = c0075.f542;
        c1747.f5784 = c0075.f543;
        c1747.f5785 = c0075.f544;
        int i21 = c0075.f545;
        int i22 = c0075.f547;
        int i23 = c0075.f549;
        float f9 = c0075.f551;
        c1747.f5743 = i21;
        c1747.f5746 = i22;
        if (i23 == Integer.MAX_VALUE) {
            i23 = 0;
        }
        c1747.f5747 = i23;
        c1747.f5748 = f9;
        if (f9 > f && f9 < 1.0f && c1747.f5743 == 0) {
            c1747.f5743 = 2;
        }
        int i24 = c0075.f546;
        int i25 = c0075.f548;
        int i26 = c0075.f550;
        float f10 = c0075.f552;
        c1747.f5744 = i24;
        c1747.f5749 = i25;
        if (i26 == Integer.MAX_VALUE) {
            i26 = 0;
        }
        c1747.f5750 = i26;
        c1747.f5751 = f10;
        if (f10 <= f || f10 >= 1.0f || c1747.f5744 != 0) {
            return;
        }
        c1747.f5744 = 2;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final boolean m217() {
        int i;
        boolean z;
        boolean z2;
        boolean z3;
        int i2;
        String str;
        int iM3522;
        int i3;
        boolean z4;
        boolean z5;
        int i4;
        int i5;
        String resourceEntryName;
        C1747 c1747;
        int childCount = getChildCount();
        int i6 = 0;
        while (true) {
            i = 1;
            if (i6 >= childCount) {
                z = false;
                break;
            }
            if (getChildAt(i6).isLayoutRequested()) {
                z = true;
                break;
            }
            i6++;
        }
        if (!z) {
            return z;
        }
        this.f494.clear();
        boolean zIsInEditMode = isInEditMode();
        int childCount2 = getChildCount();
        for (int i7 = 0; i7 < childCount2; i7++) {
            C1747 c1747M213 = m213(getChildAt(i7));
            if (c1747M213 != null) {
                c1747M213.mo3480();
            }
        }
        int i8 = -1;
        if (zIsInEditMode) {
            for (int i9 = 0; i9 < childCount2; i9++) {
                View childAt = getChildAt(i9);
                try {
                    String resourceName = getResources().getResourceName(childAt.getId());
                    m214(0, resourceName, Integer.valueOf(childAt.getId()));
                    int iIndexOf = resourceName.indexOf(47);
                    if (iIndexOf != -1) {
                        resourceName = resourceName.substring(iIndexOf + 1);
                    }
                    int id = childAt.getId();
                    if (id == 0) {
                        c1747 = this.f495;
                    } else {
                        View viewFindViewById = this.f492.get(id);
                        if (viewFindViewById == null && (viewFindViewById = findViewById(id)) != null && viewFindViewById != this && viewFindViewById.getParent() == this) {
                            onViewAdded(viewFindViewById);
                        }
                        c1747 = viewFindViewById == this ? this.f495 : viewFindViewById == null ? null : ((C0075) viewFindViewById.getLayoutParams()).f576;
                    }
                    c1747.f5782 = resourceName;
                } catch (Resources.NotFoundException unused) {
                }
            }
        }
        if (this.f504 != -1) {
            for (int i10 = 0; i10 < childCount2; i10++) {
                View childAt2 = getChildAt(i10);
                if (childAt2.getId() == this.f504 && (childAt2 instanceof C1785)) {
                    this.f502 = ((C1785) childAt2).getConstraintSet();
                }
            }
        }
        C1779 c1779 = this.f502;
        if (c1779 != null) {
            int childCount3 = getChildCount();
            HashSet<Integer> hashSet = new HashSet(c1779.f5922.keySet());
            int i11 = 0;
            while (i11 < childCount3) {
                View childAt3 = getChildAt(i11);
                int id2 = childAt3.getId();
                if (!c1779.f5922.containsKey(Integer.valueOf(id2))) {
                    StringBuilder sbM4889 = C2803.m4889("id unknown ");
                    try {
                        resourceEntryName = childAt3.getContext().getResources().getResourceEntryName(childAt3.getId());
                    } catch (Exception unused2) {
                        resourceEntryName = "UNKNOWN";
                    }
                    C2803.m4899(sbM4889, resourceEntryName, "ConstraintSet");
                } else {
                    if (c1779.f5921 && id2 == i8) {
                        throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
                    }
                    if (id2 != i8) {
                        if (c1779.f5922.containsKey(Integer.valueOf(id2))) {
                            hashSet.remove(Integer.valueOf(id2));
                            C1779.C1780 c1780 = c1779.f5922.get(Integer.valueOf(id2));
                            if (childAt3 instanceof Barrier) {
                                c1780.f5926.f5985 = i;
                            }
                            int i12 = c1780.f5926.f5985;
                            if (i12 != i8 && i12 == i) {
                                Barrier barrier = (Barrier) childAt3;
                                barrier.setId(id2);
                                barrier.setType(c1780.f5926.f5983);
                                barrier.setMargin(c1780.f5926.f5984);
                                barrier.setAllowsGoneWidget(c1780.f5926.f5991);
                                C1779.C1781 c1781 = c1780.f5926;
                                int[] iArr = c1781.f5986;
                                if (iArr != null) {
                                    barrier.setReferencedIds(iArr);
                                } else {
                                    String str2 = c1781.f5987;
                                    if (str2 != null) {
                                        c1781.f5986 = c1779.m3531(barrier, str2);
                                        barrier.setReferencedIds(c1780.f5926.f5986);
                                    }
                                }
                            }
                            C0075 c0075 = (C0075) childAt3.getLayoutParams();
                            c0075.m218();
                            c1780.m3535(c0075);
                            HashMap<String, C1773> map = c1780.f5928;
                            i3 = childCount3;
                            Class<?> cls = childAt3.getClass();
                            for (String str3 : map.keySet()) {
                                boolean z6 = z;
                                C1773 c1773 = map.get(str3);
                                HashMap<String, C1773> map2 = map;
                                String strM4879 = C2803.m4879("set", str3);
                                boolean z7 = zIsInEditMode;
                                try {
                                    switch (c1773.f5885.ordinal()) {
                                        case 0:
                                            i5 = childCount2;
                                            cls.getMethod(strM4879, Integer.TYPE).invoke(childAt3, Integer.valueOf(c1773.f5886));
                                            break;
                                        case 1:
                                            i5 = childCount2;
                                            cls.getMethod(strM4879, Float.TYPE).invoke(childAt3, Float.valueOf(c1773.f5887));
                                            break;
                                        case 2:
                                            i5 = childCount2;
                                            cls.getMethod(strM4879, Integer.TYPE).invoke(childAt3, Integer.valueOf(c1773.f5890));
                                            break;
                                        case 3:
                                            i5 = childCount2;
                                            Method method = cls.getMethod(strM4879, Drawable.class);
                                            ColorDrawable colorDrawable = new ColorDrawable();
                                            colorDrawable.setColor(c1773.f5890);
                                            method.invoke(childAt3, colorDrawable);
                                            break;
                                        case 4:
                                            i5 = childCount2;
                                            cls.getMethod(strM4879, CharSequence.class).invoke(childAt3, c1773.f5888);
                                            break;
                                        case 5:
                                            i5 = childCount2;
                                            cls.getMethod(strM4879, Boolean.TYPE).invoke(childAt3, Boolean.valueOf(c1773.f5889));
                                            break;
                                        case 6:
                                            i5 = childCount2;
                                            try {
                                                cls.getMethod(strM4879, Float.TYPE).invoke(childAt3, Float.valueOf(c1773.f5887));
                                            } catch (IllegalAccessException e) {
                                                e = e;
                                                StringBuilder sbM4898 = C2803.m4898(" Custom Attribute \"", str3, "\" not found on ");
                                                sbM4898.append(cls.getName());
                                                Log.e("TransitionLayout", sbM4898.toString());
                                                e.printStackTrace();
                                            } catch (NoSuchMethodException e2) {
                                                e = e2;
                                                Log.e("TransitionLayout", e.getMessage());
                                                Log.e("TransitionLayout", " Custom Attribute \"" + str3 + "\" not found on " + cls.getName());
                                                StringBuilder sb = new StringBuilder();
                                                sb.append(cls.getName());
                                                sb.append(" must have a method ");
                                                sb.append(strM4879);
                                                Log.e("TransitionLayout", sb.toString());
                                            } catch (InvocationTargetException e3) {
                                                e = e3;
                                                StringBuilder sbM48982 = C2803.m4898(" Custom Attribute \"", str3, "\" not found on ");
                                                sbM48982.append(cls.getName());
                                                Log.e("TransitionLayout", sbM48982.toString());
                                                e.printStackTrace();
                                            }
                                            break;
                                        default:
                                            i5 = childCount2;
                                            break;
                                    }
                                } catch (IllegalAccessException e4) {
                                    e = e4;
                                    i5 = childCount2;
                                } catch (NoSuchMethodException e5) {
                                    e = e5;
                                    i5 = childCount2;
                                } catch (InvocationTargetException e6) {
                                    e = e6;
                                    i5 = childCount2;
                                }
                                z = z6;
                                map = map2;
                                zIsInEditMode = z7;
                                childCount2 = i5;
                            }
                            z4 = z;
                            z5 = zIsInEditMode;
                            i4 = childCount2;
                            childAt3.setLayoutParams(c0075);
                            C1779.C1783 c1783 = c1780.f5924;
                            if (c1783.f6002 == 0) {
                                childAt3.setVisibility(c1783.f6001);
                            }
                            childAt3.setAlpha(c1780.f5924.f6003);
                            childAt3.setRotation(c1780.f5927.f6007);
                            childAt3.setRotationX(c1780.f5927.f6008);
                            childAt3.setRotationY(c1780.f5927.f6009);
                            childAt3.setScaleX(c1780.f5927.f6010);
                            childAt3.setScaleY(c1780.f5927.f6011);
                            if (!Float.isNaN(c1780.f5927.f6012)) {
                                childAt3.setPivotX(c1780.f5927.f6012);
                            }
                            if (!Float.isNaN(c1780.f5927.f6013)) {
                                childAt3.setPivotY(c1780.f5927.f6013);
                            }
                            childAt3.setTranslationX(c1780.f5927.f6014);
                            childAt3.setTranslationY(c1780.f5927.f6015);
                            childAt3.setTranslationZ(c1780.f5927.f6016);
                            C1779.C1784 c1784 = c1780.f5927;
                            if (c1784.f6017) {
                                childAt3.setElevation(c1784.f6018);
                            }
                        } else {
                            i3 = childCount3;
                            z4 = z;
                            z5 = zIsInEditMode;
                            i4 = childCount2;
                            Log.v("ConstraintSet", "WARNING NO CONSTRAINTS for view " + id2);
                        }
                    }
                    i11++;
                    i8 = -1;
                    i = 1;
                    childCount3 = i3;
                    z = z4;
                    zIsInEditMode = z5;
                    childCount2 = i4;
                }
                i3 = childCount3;
                z4 = z;
                z5 = zIsInEditMode;
                i4 = childCount2;
                i11++;
                i8 = -1;
                i = 1;
                childCount3 = i3;
                z = z4;
                zIsInEditMode = z5;
                childCount2 = i4;
            }
            z2 = z;
            z3 = zIsInEditMode;
            i2 = childCount2;
            for (Integer num : hashSet) {
                C1779.C1780 c17802 = c1779.f5922.get(num);
                int i13 = c17802.f5926.f5985;
                if (i13 != -1 && i13 == 1) {
                    Barrier barrier2 = new Barrier(getContext());
                    barrier2.setId(num.intValue());
                    C1779.C1781 c17812 = c17802.f5926;
                    int[] iArr2 = c17812.f5986;
                    if (iArr2 != null) {
                        barrier2.setReferencedIds(iArr2);
                    } else {
                        String str4 = c17812.f5987;
                        if (str4 != null) {
                            c17812.f5986 = c1779.m3531(barrier2, str4);
                            barrier2.setReferencedIds(c17802.f5926.f5986);
                        }
                    }
                    barrier2.setType(c17802.f5926.f5983);
                    barrier2.setMargin(c17802.f5926.f5984);
                    C0075 c0075GenerateDefaultLayoutParams = generateDefaultLayoutParams();
                    barrier2.m3526();
                    c17802.m3535(c0075GenerateDefaultLayoutParams);
                    addView(barrier2, c0075GenerateDefaultLayoutParams);
                }
                if (c17802.f5926.f5930) {
                    View guideline = new Guideline(getContext());
                    guideline.setId(num.intValue());
                    C0075 c0075GenerateDefaultLayoutParams2 = generateDefaultLayoutParams();
                    c17802.m3535(c0075GenerateDefaultLayoutParams2);
                    addView(guideline, c0075GenerateDefaultLayoutParams2);
                }
            }
        } else {
            z2 = z;
            z3 = zIsInEditMode;
            i2 = childCount2;
        }
        this.f495.f5817.clear();
        int size = this.f493.size();
        if (size > 0) {
            for (int i14 = 0; i14 < size; i14++) {
                AbstractC1775 abstractC1775 = this.f493.get(i14);
                if (abstractC1775.isInEditMode()) {
                    abstractC1775.setIds(abstractC1775.f5904);
                }
                String str5 = abstractC1775.f5904;
                if (str5 != null) {
                    abstractC1775.setIds(str5);
                }
                InterfaceC1751 interfaceC1751 = abstractC1775.f5902;
                if (interfaceC1751 != null) {
                    C1752 c1752 = (C1752) interfaceC1751;
                    c1752.f5814 = 0;
                    Arrays.fill(c1752.f5813, (Object) null);
                    for (int i15 = 0; i15 < abstractC1775.f5900; i15++) {
                        int i16 = abstractC1775.f5899[i15];
                        View viewM211 = m211(i16);
                        if (viewM211 == null && (iM3522 = abstractC1775.m3522(this, (str = abstractC1775.f5905.get(Integer.valueOf(i16))))) != 0) {
                            abstractC1775.f5899[i15] = iM3522;
                            abstractC1775.f5905.put(Integer.valueOf(iM3522), str);
                            viewM211 = m211(iM3522);
                        }
                        if (viewM211 != null) {
                            InterfaceC1751 interfaceC17512 = abstractC1775.f5902;
                            C1747 c1747M2132 = m213(viewM211);
                            C1752 c17522 = (C1752) interfaceC17512;
                            int i17 = c17522.f5814 + 1;
                            C1747[] c1747Arr = c17522.f5813;
                            if (i17 > c1747Arr.length) {
                                c17522.f5813 = (C1747[]) Arrays.copyOf(c1747Arr, c1747Arr.length * 2);
                            }
                            C1747[] c1747Arr2 = c17522.f5813;
                            int i18 = c17522.f5814;
                            c1747Arr2[i18] = c1747M2132;
                            c17522.f5814 = i18 + 1;
                        }
                    }
                    abstractC1775.f5902.mo3487(this.f495);
                }
            }
        }
        int i19 = i2;
        for (int i20 = 0; i20 < i19; i20++) {
            View childAt4 = getChildAt(i20);
            if (childAt4 instanceof C1788) {
                C1788 c1788 = (C1788) childAt4;
                if (c1788.f6033 == -1 && !c1788.isInEditMode()) {
                    c1788.setVisibility(c1788.f6035);
                }
                View viewFindViewById2 = findViewById(c1788.f6033);
                c1788.f6034 = viewFindViewById2;
                if (viewFindViewById2 != null) {
                    ((C0075) viewFindViewById2.getLayoutParams()).f564 = true;
                    c1788.f6034.setVisibility(0);
                    c1788.setVisibility(0);
                }
            }
        }
        this.f508.clear();
        this.f508.put(0, this.f495);
        this.f508.put(getId(), this.f495);
        for (int i21 = 0; i21 < i19; i21++) {
            View childAt5 = getChildAt(i21);
            this.f508.put(childAt5.getId(), m213(childAt5));
        }
        for (int i22 = 0; i22 < i19; i22++) {
            View childAt6 = getChildAt(i22);
            C1747 c1747M2133 = m213(childAt6);
            if (c1747M2133 != null) {
                C0075 c00752 = (C0075) childAt6.getLayoutParams();
                C1749 c1749 = this.f495;
                c1749.f5817.add(c1747M2133);
                C1747 c17472 = c1747M2133.f5768;
                if (c17472 != null) {
                    ((C1755) c17472).f5817.remove(c1747M2133);
                    c1747M2133.f5768 = null;
                }
                c1747M2133.f5768 = c1749;
                m216(z3, childAt6, c1747M2133, c00752, this.f508);
            }
        }
        return z2;
    }
}
