package androidx.constraintlayout.widget;

import X6FRs_4.X6FRs_4.KQgRr5e_0.IFxWkV_5;
import X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.EuDEkJe_12;
import X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5;
import X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IMuAHx_6;
import X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.X6FRs_4;
import X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.Xgtqvk_8;
import X6FRs_4.X6FRs_4.QxJ9d_1.KQgRr5e_0;
import X6FRs_4.X6FRs_4.QxJ9d_1.PGPF6hQ_2;
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.os.Build;
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.util.ArrayList;
import java.util.HashMap;
/* loaded from: classes.dex */
public class ConstraintLayout extends ViewGroup {

    /* renamed from: FSaI4_7  reason: collision with root package name */
    public int f3487FSaI4_7;

    /* renamed from: IFxWkV_5  reason: collision with root package name */
    public int f3488IFxWkV_5;

    /* renamed from: IMuAHx_6  reason: collision with root package name */
    public int f3489IMuAHx_6;
    public int KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public IFxWkV_5 f2182KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public IMuAHx_6 f2183KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public KQgRr5e_0 f2184KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public SparseArray<View> f2185KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public ArrayList<ConstraintHelper> f2186KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public HashMap<String, Integer> f2187KQgRr5e_0;

    /* renamed from: Mqv2r_3  reason: collision with root package name */
    public int f3490Mqv2r_3;
    public int PGPF6hQ_2;
    public int QxJ9d_1;

    /* renamed from: QxJ9d_1  reason: collision with other field name */
    public final ArrayList<X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5> f2188QxJ9d_1;

    /* renamed from: QxJ9d_1  reason: collision with other field name */
    public boolean f2189QxJ9d_1;

    /* renamed from: X6FRs_4  reason: collision with root package name */
    public int f3491X6FRs_4;

    public ConstraintLayout(Context context) {
        super(context);
        this.f2185KQgRr5e_0 = new SparseArray<>();
        this.f2186KQgRr5e_0 = new ArrayList<>(4);
        this.f2188QxJ9d_1 = new ArrayList<>(100);
        this.f2183KQgRr5e_0 = new IMuAHx_6();
        this.KQgRr5e_0 = 0;
        this.QxJ9d_1 = 0;
        this.PGPF6hQ_2 = Integer.MAX_VALUE;
        this.f3490Mqv2r_3 = Integer.MAX_VALUE;
        this.f2189QxJ9d_1 = true;
        this.f3491X6FRs_4 = 7;
        this.f2184KQgRr5e_0 = null;
        this.f3488IFxWkV_5 = -1;
        this.f2187KQgRr5e_0 = new HashMap<>();
        this.f3489IMuAHx_6 = -1;
        this.f3487FSaI4_7 = -1;
        m856KQgRr5e_0((AttributeSet) null);
    }

    public void KQgRr5e_0(int i, Object obj, Object obj2) {
        if (i == 0 && (obj instanceof String) && (obj2 instanceof Integer)) {
            if (this.f2187KQgRr5e_0 == null) {
                this.f2187KQgRr5e_0 = new HashMap<>();
            }
            String str = (String) obj;
            int indexOf = str.indexOf("/");
            if (indexOf != -1) {
                str = str.substring(indexOf + 1);
            }
            this.f2187KQgRr5e_0.put(str, Integer.valueOf(((Integer) obj2).intValue()));
        }
    }

    public final void PGPF6hQ_2() {
        int childCount = getChildCount();
        for (int i = 0; i < childCount; i++) {
            View childAt = getChildAt(i);
            if (childAt instanceof Placeholder) {
                ((Placeholder) childAt).KQgRr5e_0(this);
            }
        }
        int size = this.f2186KQgRr5e_0.size();
        if (size > 0) {
            for (int i2 = 0; i2 < size; i2++) {
                this.f2186KQgRr5e_0.get(i2).QxJ9d_1(this);
            }
        }
    }

    public final void QxJ9d_1() {
        int childCount = getChildCount();
        boolean z = false;
        int i = 0;
        while (true) {
            if (i >= childCount) {
                break;
            } else if (getChildAt(i).isLayoutRequested()) {
                z = true;
                break;
            } else {
                i++;
            }
        }
        if (z) {
            this.f2188QxJ9d_1.clear();
            m855KQgRr5e_0();
        }
    }

    @Override // android.view.ViewGroup
    public void addView(View view, int i, ViewGroup.LayoutParams layoutParams) {
        super.addView(view, i, layoutParams);
        if (Build.VERSION.SDK_INT < 14) {
            onViewAdded(view);
        }
    }

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

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

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

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

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

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

    public int getOptimizationLevel() {
        return this.f2183KQgRr5e_0.YghfZG_14();
    }

    @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 isInEditMode = isInEditMode();
        for (int i5 = 0; i5 < childCount; i5++) {
            View childAt = getChildAt(i5);
            LayoutParams layoutParams = (LayoutParams) childAt.getLayoutParams();
            X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 iFxWkV_5 = layoutParams.f2197KQgRr5e_0;
            if ((childAt.getVisibility() != 8 || layoutParams.f2193IFxWkV_5 || layoutParams.f2195IMuAHx_6 || isInEditMode) && !layoutParams.f2191FSaI4_7) {
                int PGPF6hQ_2 = iFxWkV_5.PGPF6hQ_2();
                int Mqv2r_32 = iFxWkV_5.Mqv2r_3();
                int XnFJ5_92 = iFxWkV_5.XnFJ5_9() + PGPF6hQ_2;
                int X6FRs_42 = iFxWkV_5.X6FRs_4() + Mqv2r_32;
                childAt.layout(PGPF6hQ_2, Mqv2r_32, XnFJ5_92, X6FRs_42);
                if ((childAt instanceof Placeholder) && (content = ((Placeholder) childAt).getContent()) != null) {
                    content.setVisibility(0);
                    content.layout(PGPF6hQ_2, Mqv2r_32, XnFJ5_92, X6FRs_42);
                }
            }
        }
        int size = this.f2186KQgRr5e_0.size();
        if (size > 0) {
            for (int i6 = 0; i6 < size; i6++) {
                this.f2186KQgRr5e_0.get(i6).KQgRr5e_0(this);
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:178:0x0360  */
    /* JADX WARN: Removed duplicated region for block: B:181:0x0376  */
    /* JADX WARN: Removed duplicated region for block: B:188:0x03af  */
    /* JADX WARN: Removed duplicated region for block: B:64:0x0124  */
    /* JADX WARN: Removed duplicated region for block: B:67:0x013b  */
    @Override // android.view.View
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void onMeasure(int i, int i2) {
        boolean z;
        int size;
        int i3;
        int i4;
        boolean z2;
        boolean z3;
        int i5;
        int i6;
        boolean z4;
        int makeMeasureSpec;
        int makeMeasureSpec2;
        int i7;
        int i8;
        boolean z5;
        int baseline;
        int i9 = i;
        System.currentTimeMillis();
        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 paddingLeft = getPaddingLeft();
        int paddingTop = getPaddingTop();
        this.f2183KQgRr5e_0.WwEq_13(paddingLeft);
        this.f2183KQgRr5e_0.YghfZG_14(paddingTop);
        this.f2183KQgRr5e_0.IFxWkV_5(this.PGPF6hQ_2);
        this.f2183KQgRr5e_0.X6FRs_4(this.f3490Mqv2r_3);
        if (Build.VERSION.SDK_INT >= 17) {
            this.f2183KQgRr5e_0.PGPF6hQ_2(getLayoutDirection() == 1);
        }
        PGPF6hQ_2(i, i2);
        int XnFJ5_92 = this.f2183KQgRr5e_0.XnFJ5_9();
        int X6FRs_42 = this.f2183KQgRr5e_0.X6FRs_4();
        if (this.f2189QxJ9d_1) {
            this.f2189QxJ9d_1 = false;
            QxJ9d_1();
            z = true;
        } else {
            z = false;
        }
        boolean z6 = (this.f3491X6FRs_4 & 8) == 8;
        if (z6) {
            this.f2183KQgRr5e_0.KNBe_11();
            this.f2183KQgRr5e_0.IFxWkV_5(XnFJ5_92, X6FRs_42);
            QxJ9d_1(i, i2);
        } else {
            KQgRr5e_0(i, i2);
        }
        PGPF6hQ_2();
        if (getChildCount() > 0 && z) {
            X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.KQgRr5e_0.KQgRr5e_0(this.f2183KQgRr5e_0);
        }
        IMuAHx_6 iMuAHx_6 = this.f2183KQgRr5e_0;
        if (iMuAHx_6.f3285X6FRs_4) {
            if (iMuAHx_6.f3282IFxWkV_5 && mode == Integer.MIN_VALUE) {
                int i10 = iMuAHx_6.JXypC6_34;
                if (i10 < size2) {
                    iMuAHx_6.Nm6q_10(i10);
                }
                this.f2183KQgRr5e_0.KQgRr5e_0(IFxWkV_5.QxJ9d_1.FIXED);
            }
            IMuAHx_6 iMuAHx_62 = this.f2183KQgRr5e_0;
            if (iMuAHx_62.f3283IMuAHx_6 && mode2 == Integer.MIN_VALUE) {
                int i11 = iMuAHx_62.R6WQ_35;
                if (i11 < size3) {
                    iMuAHx_62.PGPF6hQ_2(i11);
                }
                this.f2183KQgRr5e_0.QxJ9d_1(IFxWkV_5.QxJ9d_1.FIXED);
            }
        }
        if ((this.f3491X6FRs_4 & 32) == 32) {
            int XnFJ5_93 = this.f2183KQgRr5e_0.XnFJ5_9();
            int X6FRs_43 = this.f2183KQgRr5e_0.X6FRs_4();
            if (this.f3489IMuAHx_6 != XnFJ5_93 && mode == 1073741824) {
                X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.KQgRr5e_0.KQgRr5e_0(this.f2183KQgRr5e_0.f1182KQgRr5e_0, 0, XnFJ5_93);
            }
            if (this.f3487FSaI4_7 != X6FRs_43 && mode2 == 1073741824) {
                X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.KQgRr5e_0.KQgRr5e_0(this.f2183KQgRr5e_0.f1182KQgRr5e_0, 1, X6FRs_43);
            }
            IMuAHx_6 iMuAHx_63 = this.f2183KQgRr5e_0;
            if (iMuAHx_63.f3282IFxWkV_5 && iMuAHx_63.JXypC6_34 > size2) {
                X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.KQgRr5e_0.KQgRr5e_0(iMuAHx_63.f1182KQgRr5e_0, 0, size2);
            }
            IMuAHx_6 iMuAHx_64 = this.f2183KQgRr5e_0;
            if (iMuAHx_64.f3283IMuAHx_6 && iMuAHx_64.R6WQ_35 > size3) {
                X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.KQgRr5e_0.KQgRr5e_0(iMuAHx_64.f1182KQgRr5e_0, 1, size3);
                if (getChildCount() > 0) {
                    KQgRr5e_0("First pass");
                }
                size = this.f2188QxJ9d_1.size();
                int paddingBottom = paddingTop + getPaddingBottom();
                int paddingRight = paddingLeft + getPaddingRight();
                if (size <= 0) {
                    boolean z7 = this.f2183KQgRr5e_0.m552KQgRr5e_0() == IFxWkV_5.QxJ9d_1.WRAP_CONTENT;
                    boolean z8 = this.f2183KQgRr5e_0.m567QxJ9d_1() == IFxWkV_5.QxJ9d_1.WRAP_CONTENT;
                    int max = Math.max(this.f2183KQgRr5e_0.XnFJ5_9(), this.KQgRr5e_0);
                    int max2 = Math.max(this.f2183KQgRr5e_0.X6FRs_4(), this.QxJ9d_1);
                    int i12 = 0;
                    boolean z9 = false;
                    int i13 = 0;
                    while (i12 < size) {
                        X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 iFxWkV_5 = this.f2188QxJ9d_1.get(i12);
                        int i14 = size;
                        View view = (View) iFxWkV_5.m556KQgRr5e_0();
                        if (view == null) {
                            i6 = XnFJ5_92;
                            i5 = X6FRs_42;
                        } else {
                            i5 = X6FRs_42;
                            LayoutParams layoutParams = (LayoutParams) view.getLayoutParams();
                            i6 = XnFJ5_92;
                            if (!layoutParams.f2195IMuAHx_6 && !layoutParams.f2193IFxWkV_5) {
                                z4 = z9;
                                if (view.getVisibility() != 8 && (!z6 || !iFxWkV_5.m568QxJ9d_1().m582KQgRr5e_0() || !iFxWkV_5.m555KQgRr5e_0().m582KQgRr5e_0())) {
                                    int i15 = ((ViewGroup.MarginLayoutParams) layoutParams).width;
                                    if (i15 == -2 && layoutParams.f2203PGPF6hQ_2) {
                                        makeMeasureSpec = ViewGroup.getChildMeasureSpec(i9, paddingRight, i15);
                                    } else {
                                        makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(iFxWkV_5.XnFJ5_9(), 1073741824);
                                    }
                                    int i16 = ((ViewGroup.MarginLayoutParams) layoutParams).height;
                                    if (i16 == -2 && layoutParams.f2201Mqv2r_3) {
                                        makeMeasureSpec2 = ViewGroup.getChildMeasureSpec(i2, paddingBottom, i16);
                                    } else {
                                        makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(iFxWkV_5.X6FRs_4(), 1073741824);
                                    }
                                    view.measure(makeMeasureSpec, makeMeasureSpec2);
                                    X6FRs_4.X6FRs_4.KQgRr5e_0.IFxWkV_5 iFxWkV_52 = this.f2182KQgRr5e_0;
                                    i7 = paddingBottom;
                                    if (iFxWkV_52 != null) {
                                        iFxWkV_52.QxJ9d_1++;
                                    }
                                    int measuredWidth = view.getMeasuredWidth();
                                    int measuredHeight = view.getMeasuredHeight();
                                    if (measuredWidth != iFxWkV_5.XnFJ5_9()) {
                                        iFxWkV_5.Nm6q_10(measuredWidth);
                                        if (z6) {
                                            iFxWkV_5.m568QxJ9d_1().KQgRr5e_0(measuredWidth);
                                        }
                                        if (z7 && iFxWkV_5.IFxWkV_5() > max) {
                                            max = Math.max(max, iFxWkV_5.IFxWkV_5() + iFxWkV_5.KQgRr5e_0(X6FRs_4.Mqv2r_3.RIGHT).QxJ9d_1());
                                        }
                                        z4 = true;
                                    }
                                    if (measuredHeight != iFxWkV_5.X6FRs_4()) {
                                        iFxWkV_5.PGPF6hQ_2(measuredHeight);
                                        if (z6) {
                                            iFxWkV_5.m555KQgRr5e_0().KQgRr5e_0(measuredHeight);
                                        }
                                        if (z8 && iFxWkV_5.QxJ9d_1() > max2) {
                                            max2 = Math.max(max2, iFxWkV_5.QxJ9d_1() + iFxWkV_5.KQgRr5e_0(X6FRs_4.Mqv2r_3.BOTTOM).QxJ9d_1());
                                        }
                                        i8 = max2;
                                        z5 = true;
                                    } else {
                                        i8 = max2;
                                        z5 = z4;
                                    }
                                    if (layoutParams.f2207X6FRs_4 && (baseline = view.getBaseline()) != -1 && baseline != iFxWkV_5.KQgRr5e_0()) {
                                        iFxWkV_5.m570QxJ9d_1(baseline);
                                        z5 = true;
                                    }
                                    if (Build.VERSION.SDK_INT >= 11) {
                                        i13 = ViewGroup.combineMeasuredStates(i13, view.getMeasuredState());
                                    }
                                    z4 = z5;
                                    max2 = i8;
                                    i12++;
                                    i9 = i;
                                    paddingBottom = i7;
                                    XnFJ5_92 = i6;
                                    size = i14;
                                    X6FRs_42 = i5;
                                    z9 = z4;
                                }
                                i7 = paddingBottom;
                                i13 = i13;
                                i12++;
                                i9 = i;
                                paddingBottom = i7;
                                XnFJ5_92 = i6;
                                size = i14;
                                X6FRs_42 = i5;
                                z9 = z4;
                            }
                        }
                        z4 = z9;
                        i7 = paddingBottom;
                        i13 = i13;
                        i12++;
                        i9 = i;
                        paddingBottom = i7;
                        XnFJ5_92 = i6;
                        size = i14;
                        X6FRs_42 = i5;
                        z9 = z4;
                    }
                    int i17 = size;
                    int i18 = XnFJ5_92;
                    int i19 = X6FRs_42;
                    boolean z10 = z9;
                    i3 = paddingBottom;
                    int i20 = i13;
                    if (z10) {
                        this.f2183KQgRr5e_0.Nm6q_10(i18);
                        this.f2183KQgRr5e_0.PGPF6hQ_2(i19);
                        if (z6) {
                            this.f2183KQgRr5e_0.WwEq_13();
                        }
                        KQgRr5e_0("2nd pass");
                        if (this.f2183KQgRr5e_0.XnFJ5_9() < max) {
                            this.f2183KQgRr5e_0.Nm6q_10(max);
                            z2 = true;
                        } else {
                            z2 = false;
                        }
                        if (this.f2183KQgRr5e_0.X6FRs_4() < max2) {
                            this.f2183KQgRr5e_0.PGPF6hQ_2(max2);
                            z3 = true;
                        } else {
                            z3 = z2;
                        }
                        if (z3) {
                            KQgRr5e_0("3rd pass");
                        }
                    }
                    for (int i21 = 0; i21 < i17; i21++) {
                        X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 iFxWkV_53 = this.f2188QxJ9d_1.get(i21);
                        View view2 = (View) iFxWkV_53.m556KQgRr5e_0();
                        if (view2 != null && (view2.getMeasuredWidth() != iFxWkV_53.XnFJ5_9() || view2.getMeasuredHeight() != iFxWkV_53.X6FRs_4())) {
                            if (iFxWkV_53.Xgtqvk_8() != 8) {
                                view2.measure(View.MeasureSpec.makeMeasureSpec(iFxWkV_53.XnFJ5_9(), 1073741824), View.MeasureSpec.makeMeasureSpec(iFxWkV_53.X6FRs_4(), 1073741824));
                                X6FRs_4.X6FRs_4.KQgRr5e_0.IFxWkV_5 iFxWkV_54 = this.f2182KQgRr5e_0;
                                if (iFxWkV_54 != null) {
                                    iFxWkV_54.QxJ9d_1++;
                                }
                            }
                        }
                    }
                    i4 = i20;
                } else {
                    i3 = paddingBottom;
                    i4 = 0;
                }
                int XnFJ5_94 = this.f2183KQgRr5e_0.XnFJ5_9() + paddingRight;
                int X6FRs_44 = this.f2183KQgRr5e_0.X6FRs_4() + i3;
                if (Build.VERSION.SDK_INT < 11) {
                    int min = Math.min(this.PGPF6hQ_2, ViewGroup.resolveSizeAndState(XnFJ5_94, i, i4) & 16777215);
                    int min2 = Math.min(this.f3490Mqv2r_3, ViewGroup.resolveSizeAndState(X6FRs_44, i2, i4 << 16) & 16777215);
                    if (this.f2183KQgRr5e_0.Nm6q_10()) {
                        min |= 16777216;
                    }
                    if (this.f2183KQgRr5e_0.Xgtqvk_8()) {
                        min2 |= 16777216;
                    }
                    setMeasuredDimension(min, min2);
                    this.f3489IMuAHx_6 = min;
                    this.f3487FSaI4_7 = min2;
                    return;
                }
                setMeasuredDimension(XnFJ5_94, X6FRs_44);
                this.f3489IMuAHx_6 = XnFJ5_94;
                this.f3487FSaI4_7 = X6FRs_44;
                return;
            }
        }
        if (getChildCount() > 0) {
        }
        size = this.f2188QxJ9d_1.size();
        int paddingBottom2 = paddingTop + getPaddingBottom();
        int paddingRight2 = paddingLeft + getPaddingRight();
        if (size <= 0) {
        }
        int XnFJ5_942 = this.f2183KQgRr5e_0.XnFJ5_9() + paddingRight2;
        int X6FRs_442 = this.f2183KQgRr5e_0.X6FRs_4() + i3;
        if (Build.VERSION.SDK_INT < 11) {
        }
    }

    @Override // android.view.ViewGroup
    public void onViewAdded(View view) {
        if (Build.VERSION.SDK_INT >= 14) {
            super.onViewAdded(view);
        }
        X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_0 = KQgRr5e_0(view);
        if ((view instanceof Guideline) && !(KQgRr5e_0 instanceof Xgtqvk_8)) {
            LayoutParams layoutParams = (LayoutParams) view.getLayoutParams();
            Xgtqvk_8 xgtqvk_8 = new Xgtqvk_8();
            layoutParams.f2197KQgRr5e_0 = xgtqvk_8;
            layoutParams.f2193IFxWkV_5 = true;
            xgtqvk_8.NQvZgp_17(layoutParams.JXypC6_34);
        }
        if (view instanceof ConstraintHelper) {
            ConstraintHelper constraintHelper = (ConstraintHelper) view;
            constraintHelper.KQgRr5e_0();
            ((LayoutParams) view.getLayoutParams()).f2195IMuAHx_6 = true;
            if (!this.f2186KQgRr5e_0.contains(constraintHelper)) {
                this.f2186KQgRr5e_0.add(constraintHelper);
            }
        }
        this.f2185KQgRr5e_0.put(view.getId(), view);
        this.f2189QxJ9d_1 = true;
    }

    @Override // android.view.ViewGroup
    public void onViewRemoved(View view) {
        if (Build.VERSION.SDK_INT >= 14) {
            super.onViewRemoved(view);
        }
        this.f2185KQgRr5e_0.remove(view.getId());
        X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_0 = KQgRr5e_0(view);
        this.f2183KQgRr5e_0.PGPF6hQ_2(KQgRr5e_0);
        this.f2186KQgRr5e_0.remove(view);
        this.f2188QxJ9d_1.remove(KQgRr5e_0);
        this.f2189QxJ9d_1 = true;
    }

    @Override // android.view.ViewGroup, android.view.ViewManager
    public void removeView(View view) {
        super.removeView(view);
        if (Build.VERSION.SDK_INT < 14) {
            onViewRemoved(view);
        }
    }

    @Override // android.view.View, android.view.ViewParent
    public void requestLayout() {
        super.requestLayout();
        this.f2189QxJ9d_1 = true;
        this.f3489IMuAHx_6 = -1;
        this.f3487FSaI4_7 = -1;
    }

    public void setConstraintSet(KQgRr5e_0 kQgRr5e_0) {
        this.f2184KQgRr5e_0 = kQgRr5e_0;
    }

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

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

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

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

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

    public void setOptimizationLevel(int i) {
        this.f2183KQgRr5e_0.LGe8pk_15(i);
    }

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

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

    /* JADX WARN: Removed duplicated region for block: B:116:0x0209  */
    /* JADX WARN: Removed duplicated region for block: B:126:0x0242  */
    /* JADX WARN: Removed duplicated region for block: B:136:0x0266  */
    /* JADX WARN: Removed duplicated region for block: B:137:0x026f  */
    /* JADX WARN: Removed duplicated region for block: B:140:0x0274  */
    /* JADX WARN: Removed duplicated region for block: B:141:0x0276  */
    /* JADX WARN: Removed duplicated region for block: B:144:0x027c  */
    /* JADX WARN: Removed duplicated region for block: B:145:0x027e  */
    /* JADX WARN: Removed duplicated region for block: B:148:0x0292  */
    /* JADX WARN: Removed duplicated region for block: B:150:0x0297  */
    /* JADX WARN: Removed duplicated region for block: B:152:0x029c  */
    /* JADX WARN: Removed duplicated region for block: B:153:0x02a4  */
    /* JADX WARN: Removed duplicated region for block: B:155:0x02ad  */
    /* JADX WARN: Removed duplicated region for block: B:156:0x02b5  */
    /* JADX WARN: Removed duplicated region for block: B:159:0x02c2  */
    /* JADX WARN: Removed duplicated region for block: B:162:0x02cd A[ADDED_TO_REGION] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void QxJ9d_1(int i, int i2) {
        long j;
        int i3;
        ConstraintLayout constraintLayout;
        int i4;
        int i5;
        long j2;
        boolean z;
        int childMeasureSpec;
        boolean z2;
        int childMeasureSpec2;
        X6FRs_4.X6FRs_4.KQgRr5e_0.IFxWkV_5 iFxWkV_5;
        int baseline;
        int i6;
        int baseline2;
        ConstraintLayout constraintLayout2 = this;
        int i7 = i2;
        int paddingTop = getPaddingTop() + getPaddingBottom();
        int paddingLeft = getPaddingLeft() + getPaddingRight();
        int childCount = getChildCount();
        int i8 = 0;
        while (true) {
            j = 1;
            i3 = 8;
            if (i8 >= childCount) {
                break;
            }
            View childAt = constraintLayout2.getChildAt(i8);
            if (childAt.getVisibility() != 8) {
                LayoutParams layoutParams = (LayoutParams) childAt.getLayoutParams();
                X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 iFxWkV_52 = layoutParams.f2197KQgRr5e_0;
                if (!layoutParams.f2193IFxWkV_5 && !layoutParams.f2195IMuAHx_6) {
                    iFxWkV_52.XnFJ5_9(childAt.getVisibility());
                    int i9 = ((ViewGroup.MarginLayoutParams) layoutParams).width;
                    int i10 = ((ViewGroup.MarginLayoutParams) layoutParams).height;
                    if (i9 != 0 && i10 != 0) {
                        boolean z3 = i9 == -2;
                        int childMeasureSpec3 = ViewGroup.getChildMeasureSpec(i, paddingLeft, i9);
                        boolean z4 = i10 == -2;
                        childAt.measure(childMeasureSpec3, ViewGroup.getChildMeasureSpec(i7, paddingTop, i10));
                        X6FRs_4.X6FRs_4.KQgRr5e_0.IFxWkV_5 iFxWkV_53 = constraintLayout2.f2182KQgRr5e_0;
                        i6 = paddingTop;
                        if (iFxWkV_53 != null) {
                            iFxWkV_53.KQgRr5e_0++;
                        }
                        iFxWkV_52.QxJ9d_1(i9 == -2);
                        iFxWkV_52.KQgRr5e_0(i10 == -2);
                        int measuredWidth = childAt.getMeasuredWidth();
                        int measuredHeight = childAt.getMeasuredHeight();
                        iFxWkV_52.Nm6q_10(measuredWidth);
                        iFxWkV_52.PGPF6hQ_2(measuredHeight);
                        if (z3) {
                            iFxWkV_52.EuDEkJe_12(measuredWidth);
                        }
                        if (z4) {
                            iFxWkV_52.KNBe_11(measuredHeight);
                        }
                        if (layoutParams.f2207X6FRs_4 && (baseline2 = childAt.getBaseline()) != -1) {
                            iFxWkV_52.m570QxJ9d_1(baseline2);
                        }
                        if (layoutParams.f2203PGPF6hQ_2 && layoutParams.f2201Mqv2r_3) {
                            iFxWkV_52.m568QxJ9d_1().KQgRr5e_0(measuredWidth);
                            iFxWkV_52.m555KQgRr5e_0().KQgRr5e_0(measuredHeight);
                        }
                    } else {
                        i6 = paddingTop;
                        iFxWkV_52.m568QxJ9d_1().QxJ9d_1();
                        iFxWkV_52.m555KQgRr5e_0().QxJ9d_1();
                    }
                    i8++;
                    i7 = i2;
                    paddingTop = i6;
                }
            }
            i6 = paddingTop;
            i8++;
            i7 = i2;
            paddingTop = i6;
        }
        int i11 = paddingTop;
        constraintLayout2.f2183KQgRr5e_0.WwEq_13();
        int i12 = 0;
        while (i12 < childCount) {
            View childAt2 = constraintLayout2.getChildAt(i12);
            if (childAt2.getVisibility() != i3) {
                LayoutParams layoutParams2 = (LayoutParams) childAt2.getLayoutParams();
                X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 iFxWkV_54 = layoutParams2.f2197KQgRr5e_0;
                if (!layoutParams2.f2193IFxWkV_5 && !layoutParams2.f2195IMuAHx_6) {
                    iFxWkV_54.XnFJ5_9(childAt2.getVisibility());
                    int i13 = ((ViewGroup.MarginLayoutParams) layoutParams2).width;
                    int i14 = ((ViewGroup.MarginLayoutParams) layoutParams2).height;
                    if (i13 == 0 || i14 == 0) {
                        EuDEkJe_12 m575KQgRr5e_0 = iFxWkV_54.KQgRr5e_0(X6FRs_4.Mqv2r_3.LEFT).m575KQgRr5e_0();
                        EuDEkJe_12 m575KQgRr5e_02 = iFxWkV_54.KQgRr5e_0(X6FRs_4.Mqv2r_3.RIGHT).m575KQgRr5e_0();
                        boolean z5 = (iFxWkV_54.KQgRr5e_0(X6FRs_4.Mqv2r_3.LEFT).m579KQgRr5e_0() == null || iFxWkV_54.KQgRr5e_0(X6FRs_4.Mqv2r_3.RIGHT).m579KQgRr5e_0() == null) ? false : true;
                        EuDEkJe_12 m575KQgRr5e_03 = iFxWkV_54.KQgRr5e_0(X6FRs_4.Mqv2r_3.TOP).m575KQgRr5e_0();
                        EuDEkJe_12 m575KQgRr5e_04 = iFxWkV_54.KQgRr5e_0(X6FRs_4.Mqv2r_3.BOTTOM).m575KQgRr5e_0();
                        i5 = childCount;
                        boolean z6 = (iFxWkV_54.KQgRr5e_0(X6FRs_4.Mqv2r_3.TOP).m579KQgRr5e_0() == null || iFxWkV_54.KQgRr5e_0(X6FRs_4.Mqv2r_3.BOTTOM).m579KQgRr5e_0() == null) ? false : true;
                        if (i13 == 0 && i14 == 0 && z5 && z6) {
                            constraintLayout = constraintLayout2;
                            i4 = i12;
                            j2 = 1;
                        } else {
                            i4 = i12;
                            boolean z7 = constraintLayout2.f2183KQgRr5e_0.m552KQgRr5e_0() != IFxWkV_5.QxJ9d_1.WRAP_CONTENT;
                            boolean z8 = constraintLayout2.f2183KQgRr5e_0.m567QxJ9d_1() != IFxWkV_5.QxJ9d_1.WRAP_CONTENT;
                            if (!z7) {
                                iFxWkV_54.m568QxJ9d_1().QxJ9d_1();
                            }
                            if (!z8) {
                                iFxWkV_54.m555KQgRr5e_0().QxJ9d_1();
                            }
                            if (i13 == 0) {
                                if (z7 && iFxWkV_54.m550IMuAHx_6() && z5 && m575KQgRr5e_0.m582KQgRr5e_0() && m575KQgRr5e_02.m582KQgRr5e_0()) {
                                    i13 = (int) (m575KQgRr5e_02.KQgRr5e_0() - m575KQgRr5e_0.KQgRr5e_0());
                                    iFxWkV_54.m568QxJ9d_1().KQgRr5e_0(i13);
                                    childMeasureSpec = ViewGroup.getChildMeasureSpec(i, paddingLeft, i13);
                                    z = false;
                                    if (i14 != 0) {
                                    }
                                } else {
                                    childMeasureSpec = ViewGroup.getChildMeasureSpec(i, paddingLeft, -2);
                                    z7 = false;
                                    z = true;
                                    if (i14 != 0) {
                                        if (z8 && iFxWkV_54.m548IFxWkV_5() && z6 && m575KQgRr5e_03.m582KQgRr5e_0() && m575KQgRr5e_04.m582KQgRr5e_0()) {
                                            i14 = (int) (m575KQgRr5e_04.KQgRr5e_0() - m575KQgRr5e_03.KQgRr5e_0());
                                            iFxWkV_54.m555KQgRr5e_0().KQgRr5e_0(i14);
                                            childMeasureSpec2 = ViewGroup.getChildMeasureSpec(i2, i11, i14);
                                            z2 = false;
                                            childAt2.measure(childMeasureSpec, childMeasureSpec2);
                                            constraintLayout = this;
                                            iFxWkV_5 = constraintLayout.f2182KQgRr5e_0;
                                            if (iFxWkV_5 == null) {
                                            }
                                            iFxWkV_54.QxJ9d_1(i13 != -2);
                                            iFxWkV_54.KQgRr5e_0(i14 != -2);
                                            int measuredWidth2 = childAt2.getMeasuredWidth();
                                            int measuredHeight2 = childAt2.getMeasuredHeight();
                                            iFxWkV_54.Nm6q_10(measuredWidth2);
                                            iFxWkV_54.PGPF6hQ_2(measuredHeight2);
                                            if (z) {
                                            }
                                            if (z2) {
                                            }
                                            if (!z7) {
                                            }
                                            if (!z8) {
                                            }
                                            if (layoutParams2.f2207X6FRs_4) {
                                                iFxWkV_54.m570QxJ9d_1(baseline);
                                            }
                                        } else {
                                            childMeasureSpec2 = ViewGroup.getChildMeasureSpec(i2, i11, -2);
                                            z8 = false;
                                            z2 = true;
                                            childAt2.measure(childMeasureSpec, childMeasureSpec2);
                                            constraintLayout = this;
                                            iFxWkV_5 = constraintLayout.f2182KQgRr5e_0;
                                            if (iFxWkV_5 == null) {
                                                j2 = 1;
                                                iFxWkV_5.KQgRr5e_0++;
                                            } else {
                                                j2 = 1;
                                            }
                                            iFxWkV_54.QxJ9d_1(i13 != -2);
                                            iFxWkV_54.KQgRr5e_0(i14 != -2);
                                            int measuredWidth22 = childAt2.getMeasuredWidth();
                                            int measuredHeight22 = childAt2.getMeasuredHeight();
                                            iFxWkV_54.Nm6q_10(measuredWidth22);
                                            iFxWkV_54.PGPF6hQ_2(measuredHeight22);
                                            if (z) {
                                                iFxWkV_54.EuDEkJe_12(measuredWidth22);
                                            }
                                            if (z2) {
                                                iFxWkV_54.KNBe_11(measuredHeight22);
                                            }
                                            if (!z7) {
                                                iFxWkV_54.m568QxJ9d_1().KQgRr5e_0(measuredWidth22);
                                            } else {
                                                iFxWkV_54.m568QxJ9d_1().X6FRs_4();
                                            }
                                            if (!z8) {
                                                iFxWkV_54.m555KQgRr5e_0().KQgRr5e_0(measuredHeight22);
                                            } else {
                                                iFxWkV_54.m555KQgRr5e_0().X6FRs_4();
                                            }
                                            if (layoutParams2.f2207X6FRs_4 && (baseline = childAt2.getBaseline()) != -1) {
                                                iFxWkV_54.m570QxJ9d_1(baseline);
                                            }
                                        }
                                    } else if (i14 == -1) {
                                        childMeasureSpec2 = ViewGroup.getChildMeasureSpec(i2, i11, -1);
                                        z2 = false;
                                        childAt2.measure(childMeasureSpec, childMeasureSpec2);
                                        constraintLayout = this;
                                        iFxWkV_5 = constraintLayout.f2182KQgRr5e_0;
                                        if (iFxWkV_5 == null) {
                                        }
                                        iFxWkV_54.QxJ9d_1(i13 != -2);
                                        iFxWkV_54.KQgRr5e_0(i14 != -2);
                                        int measuredWidth222 = childAt2.getMeasuredWidth();
                                        int measuredHeight222 = childAt2.getMeasuredHeight();
                                        iFxWkV_54.Nm6q_10(measuredWidth222);
                                        iFxWkV_54.PGPF6hQ_2(measuredHeight222);
                                        if (z) {
                                        }
                                        if (z2) {
                                        }
                                        if (!z7) {
                                        }
                                        if (!z8) {
                                        }
                                        if (layoutParams2.f2207X6FRs_4) {
                                        }
                                    } else {
                                        z2 = i14 == -2;
                                        childMeasureSpec2 = ViewGroup.getChildMeasureSpec(i2, i11, i14);
                                        childAt2.measure(childMeasureSpec, childMeasureSpec2);
                                        constraintLayout = this;
                                        iFxWkV_5 = constraintLayout.f2182KQgRr5e_0;
                                        if (iFxWkV_5 == null) {
                                        }
                                        iFxWkV_54.QxJ9d_1(i13 != -2);
                                        iFxWkV_54.KQgRr5e_0(i14 != -2);
                                        int measuredWidth2222 = childAt2.getMeasuredWidth();
                                        int measuredHeight2222 = childAt2.getMeasuredHeight();
                                        iFxWkV_54.Nm6q_10(measuredWidth2222);
                                        iFxWkV_54.PGPF6hQ_2(measuredHeight2222);
                                        if (z) {
                                        }
                                        if (z2) {
                                        }
                                        if (!z7) {
                                        }
                                        if (!z8) {
                                        }
                                        if (layoutParams2.f2207X6FRs_4) {
                                        }
                                    }
                                }
                            } else if (i13 == -1) {
                                childMeasureSpec = ViewGroup.getChildMeasureSpec(i, paddingLeft, -1);
                                z = false;
                                if (i14 != 0) {
                                }
                            } else {
                                z = i13 == -2;
                                childMeasureSpec = ViewGroup.getChildMeasureSpec(i, paddingLeft, i13);
                                if (i14 != 0) {
                                }
                            }
                        }
                        i12 = i4 + 1;
                        constraintLayout2 = constraintLayout;
                        childCount = i5;
                        j = j2;
                        i3 = 8;
                    }
                }
            }
            constraintLayout = constraintLayout2;
            i4 = i12;
            i5 = childCount;
            j2 = j;
            i12 = i4 + 1;
            constraintLayout2 = constraintLayout;
            childCount = i5;
            j = j2;
            i3 = 8;
        }
    }

    public final void PGPF6hQ_2(int i, int i2) {
        int i3;
        IFxWkV_5.QxJ9d_1 qxJ9d_1;
        int mode = View.MeasureSpec.getMode(i);
        int size = View.MeasureSpec.getSize(i);
        int mode2 = View.MeasureSpec.getMode(i2);
        int size2 = View.MeasureSpec.getSize(i2);
        int paddingTop = getPaddingTop() + getPaddingBottom();
        int paddingLeft = getPaddingLeft() + getPaddingRight();
        IFxWkV_5.QxJ9d_1 qxJ9d_12 = IFxWkV_5.QxJ9d_1.FIXED;
        getLayoutParams();
        if (mode != Integer.MIN_VALUE) {
            if (mode == 0) {
                qxJ9d_1 = IFxWkV_5.QxJ9d_1.WRAP_CONTENT;
            } else if (mode != 1073741824) {
                qxJ9d_1 = qxJ9d_12;
            } else {
                i3 = Math.min(this.PGPF6hQ_2, size) - paddingLeft;
                qxJ9d_1 = qxJ9d_12;
            }
            i3 = 0;
        } else {
            i3 = size;
            qxJ9d_1 = IFxWkV_5.QxJ9d_1.WRAP_CONTENT;
        }
        if (mode2 != Integer.MIN_VALUE) {
            if (mode2 == 0) {
                qxJ9d_12 = IFxWkV_5.QxJ9d_1.WRAP_CONTENT;
            } else if (mode2 == 1073741824) {
                size2 = Math.min(this.f3490Mqv2r_3, size2) - paddingTop;
            }
            size2 = 0;
        } else {
            qxJ9d_12 = IFxWkV_5.QxJ9d_1.WRAP_CONTENT;
        }
        this.f2183KQgRr5e_0.FSaI4_7(0);
        this.f2183KQgRr5e_0.IMuAHx_6(0);
        this.f2183KQgRr5e_0.KQgRr5e_0(qxJ9d_1);
        this.f2183KQgRr5e_0.Nm6q_10(i3);
        this.f2183KQgRr5e_0.QxJ9d_1(qxJ9d_12);
        this.f2183KQgRr5e_0.PGPF6hQ_2(size2);
        this.f2183KQgRr5e_0.FSaI4_7((this.KQgRr5e_0 - getPaddingLeft()) - getPaddingRight());
        this.f2183KQgRr5e_0.IMuAHx_6((this.QxJ9d_1 - getPaddingTop()) - getPaddingBottom());
    }

    public Object KQgRr5e_0(int i, Object obj) {
        if (i == 0 && (obj instanceof String)) {
            String str = (String) obj;
            HashMap<String, Integer> hashMap = this.f2187KQgRr5e_0;
            if (hashMap == null || !hashMap.containsKey(str)) {
                return null;
            }
            return this.f2187KQgRr5e_0.get(str);
        }
        return null;
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public final void m856KQgRr5e_0(AttributeSet attributeSet) {
        this.f2183KQgRr5e_0.KQgRr5e_0(this);
        this.f2185KQgRr5e_0.put(getId(), this);
        this.f2184KQgRr5e_0 = null;
        if (attributeSet != null) {
            TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, PGPF6hQ_2.ConstraintLayout_Layout);
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = obtainStyledAttributes.getIndex(i);
                if (index == PGPF6hQ_2.ConstraintLayout_Layout_android_minWidth) {
                    this.KQgRr5e_0 = obtainStyledAttributes.getDimensionPixelOffset(index, this.KQgRr5e_0);
                } else if (index == PGPF6hQ_2.ConstraintLayout_Layout_android_minHeight) {
                    this.QxJ9d_1 = obtainStyledAttributes.getDimensionPixelOffset(index, this.QxJ9d_1);
                } else if (index == PGPF6hQ_2.ConstraintLayout_Layout_android_maxWidth) {
                    this.PGPF6hQ_2 = obtainStyledAttributes.getDimensionPixelOffset(index, this.PGPF6hQ_2);
                } else if (index == PGPF6hQ_2.ConstraintLayout_Layout_android_maxHeight) {
                    this.f3490Mqv2r_3 = obtainStyledAttributes.getDimensionPixelOffset(index, this.f3490Mqv2r_3);
                } else if (index == PGPF6hQ_2.ConstraintLayout_Layout_layout_optimizationLevel) {
                    this.f3491X6FRs_4 = obtainStyledAttributes.getInt(index, this.f3491X6FRs_4);
                } else if (index == PGPF6hQ_2.ConstraintLayout_Layout_constraintSet) {
                    int resourceId = obtainStyledAttributes.getResourceId(index, 0);
                    try {
                        KQgRr5e_0 kQgRr5e_0 = new KQgRr5e_0();
                        this.f2184KQgRr5e_0 = kQgRr5e_0;
                        kQgRr5e_0.KQgRr5e_0(getContext(), resourceId);
                    } catch (Resources.NotFoundException unused) {
                        this.f2184KQgRr5e_0 = null;
                    }
                    this.f3488IFxWkV_5 = resourceId;
                }
            }
            obtainStyledAttributes.recycle();
        }
        this.f2183KQgRr5e_0.LGe8pk_15(this.f3491X6FRs_4);
    }

    public ConstraintLayout(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        this.f2185KQgRr5e_0 = new SparseArray<>();
        this.f2186KQgRr5e_0 = new ArrayList<>(4);
        this.f2188QxJ9d_1 = new ArrayList<>(100);
        this.f2183KQgRr5e_0 = new IMuAHx_6();
        this.KQgRr5e_0 = 0;
        this.QxJ9d_1 = 0;
        this.PGPF6hQ_2 = Integer.MAX_VALUE;
        this.f3490Mqv2r_3 = Integer.MAX_VALUE;
        this.f2189QxJ9d_1 = true;
        this.f3491X6FRs_4 = 7;
        this.f2184KQgRr5e_0 = null;
        this.f3488IFxWkV_5 = -1;
        this.f2187KQgRr5e_0 = new HashMap<>();
        this.f3489IMuAHx_6 = -1;
        this.f3487FSaI4_7 = -1;
        m856KQgRr5e_0(attributeSet);
    }

    public ConstraintLayout(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        this.f2185KQgRr5e_0 = new SparseArray<>();
        this.f2186KQgRr5e_0 = new ArrayList<>(4);
        this.f2188QxJ9d_1 = new ArrayList<>(100);
        this.f2183KQgRr5e_0 = new IMuAHx_6();
        this.KQgRr5e_0 = 0;
        this.QxJ9d_1 = 0;
        this.PGPF6hQ_2 = Integer.MAX_VALUE;
        this.f3490Mqv2r_3 = Integer.MAX_VALUE;
        this.f2189QxJ9d_1 = true;
        this.f3491X6FRs_4 = 7;
        this.f2184KQgRr5e_0 = null;
        this.f3488IFxWkV_5 = -1;
        this.f2187KQgRr5e_0 = new HashMap<>();
        this.f3489IMuAHx_6 = -1;
        this.f3487FSaI4_7 = -1;
        m856KQgRr5e_0(attributeSet);
    }

    /* JADX WARN: Code restructure failed: missing block: B:120:0x01d6, code lost:
        if (r11 != (-1)) goto L232;
     */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:128:0x01e3  */
    /* JADX WARN: Removed duplicated region for block: B:129:0x01e7  */
    /* JADX WARN: Removed duplicated region for block: B:138:0x0203  */
    /* JADX WARN: Removed duplicated region for block: B:141:0x0212  */
    /* JADX WARN: Removed duplicated region for block: B:205:0x0344  */
    /* JADX WARN: Removed duplicated region for block: B:209:0x036c  */
    /* JADX WARN: Removed duplicated region for block: B:212:0x037a  */
    /* JADX WARN: Removed duplicated region for block: B:216:0x03a3  */
    /* JADX WARN: Removed duplicated region for block: B:219:0x03b2  */
    /* JADX WARN: Type inference failed for: r26v0, types: [androidx.constraintlayout.widget.ConstraintLayout, android.view.ViewGroup] */
    /* JADX WARN: Type inference failed for: r3v0 */
    /* JADX WARN: Type inference failed for: r3v1, types: [int, boolean] */
    /* JADX WARN: Type inference failed for: r3v2 */
    /* JADX WARN: Type inference failed for: r3v27 */
    /* JADX WARN: Type inference failed for: r3v28 */
    /* JADX WARN: Type inference failed for: r3v31 */
    /* JADX WARN: Type inference failed for: r3v37 */
    /* JADX WARN: Type inference failed for: r3v57 */
    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void m855KQgRr5e_0() {
        int i;
        int i2;
        int i3;
        int i4;
        float f;
        int i5;
        float f2;
        X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_0;
        X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_02;
        X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_03;
        X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_04;
        String str;
        int i6;
        boolean isInEditMode = isInEditMode();
        int childCount = getChildCount();
        ?? r3 = 0;
        if (isInEditMode) {
            for (int i7 = 0; i7 < childCount; i7++) {
                View childAt = getChildAt(i7);
                try {
                    String resourceName = getResources().getResourceName(childAt.getId());
                    KQgRr5e_0(0, resourceName, Integer.valueOf(childAt.getId()));
                    int indexOf = resourceName.indexOf(47);
                    if (indexOf != -1) {
                        resourceName = resourceName.substring(indexOf + 1);
                    }
                    KQgRr5e_0(childAt.getId()).KQgRr5e_0(resourceName);
                } catch (Resources.NotFoundException unused) {
                }
            }
        }
        for (int i8 = 0; i8 < childCount; i8++) {
            X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_05 = KQgRr5e_0(getChildAt(i8));
            if (KQgRr5e_05 != null) {
                KQgRr5e_05.m569QxJ9d_1();
            }
        }
        if (this.f3488IFxWkV_5 != -1) {
            for (int i9 = 0; i9 < childCount; i9++) {
                View childAt2 = getChildAt(i9);
                if (childAt2.getId() == this.f3488IFxWkV_5 && (childAt2 instanceof Constraints)) {
                    this.f2184KQgRr5e_0 = ((Constraints) childAt2).getConstraintSet();
                }
            }
        }
        KQgRr5e_0 kQgRr5e_0 = this.f2184KQgRr5e_0;
        if (kQgRr5e_0 != null) {
            kQgRr5e_0.KQgRr5e_0((ConstraintLayout) this);
        }
        this.f2183KQgRr5e_0.Xgtqvk_8();
        int size = this.f2186KQgRr5e_0.size();
        if (size > 0) {
            for (int i10 = 0; i10 < size; i10++) {
                this.f2186KQgRr5e_0.get(i10).PGPF6hQ_2(this);
            }
        }
        for (int i11 = 0; i11 < childCount; i11++) {
            View childAt3 = getChildAt(i11);
            if (childAt3 instanceof Placeholder) {
                ((Placeholder) childAt3).QxJ9d_1(this);
            }
        }
        int i12 = 0;
        while (i12 < childCount) {
            View childAt4 = getChildAt(i12);
            X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_06 = KQgRr5e_0(childAt4);
            if (KQgRr5e_06 != null) {
                LayoutParams layoutParams = (LayoutParams) childAt4.getLayoutParams();
                layoutParams.KQgRr5e_0();
                if (layoutParams.f2209Xgtqvk_8) {
                    layoutParams.f2209Xgtqvk_8 = r3;
                } else if (isInEditMode) {
                    try {
                        String resourceName2 = getResources().getResourceName(childAt4.getId());
                        KQgRr5e_0(r3, resourceName2, Integer.valueOf(childAt4.getId()));
                        KQgRr5e_0(childAt4.getId()).KQgRr5e_0(resourceName2.substring(resourceName2.indexOf("id/") + 3));
                    } catch (Resources.NotFoundException unused2) {
                    }
                }
                KQgRr5e_06.XnFJ5_9(childAt4.getVisibility());
                if (layoutParams.f2191FSaI4_7) {
                    KQgRr5e_06.XnFJ5_9(8);
                }
                KQgRr5e_06.KQgRr5e_0(childAt4);
                this.f2183KQgRr5e_0.QxJ9d_1(KQgRr5e_06);
                if (!layoutParams.f2201Mqv2r_3 || !layoutParams.f2203PGPF6hQ_2) {
                    this.f2188QxJ9d_1.add(KQgRr5e_06);
                }
                if (layoutParams.f2193IFxWkV_5) {
                    Xgtqvk_8 xgtqvk_8 = (Xgtqvk_8) KQgRr5e_06;
                    int i13 = layoutParams.N7iYjdq_41;
                    int i14 = layoutParams.XuYK_42;
                    float f3 = layoutParams.f3500XnFJ5_9;
                    if (Build.VERSION.SDK_INT < 17) {
                        i13 = layoutParams.f2196KQgRr5e_0;
                        i14 = layoutParams.f2204QxJ9d_1;
                        f3 = layoutParams.KQgRr5e_0;
                    }
                    if (f3 != -1.0f) {
                        xgtqvk_8.X6FRs_4(f3);
                    } else if (i13 != -1) {
                        xgtqvk_8.LGe8pk_15(i13);
                    } else if (i14 != -1) {
                        xgtqvk_8.JZJr_16(i14);
                    }
                } else if (layoutParams.f2202PGPF6hQ_2 != -1 || layoutParams.f2200Mqv2r_3 != -1 || layoutParams.f2206X6FRs_4 != -1 || layoutParams.f2192IFxWkV_5 != -1 || layoutParams.YghfZG_14 != -1 || layoutParams.WwEq_13 != -1 || layoutParams.LGe8pk_15 != -1 || layoutParams.JZJr_16 != -1 || layoutParams.f2194IMuAHx_6 != -1 || layoutParams.f2190FSaI4_7 != -1 || layoutParams.f2208Xgtqvk_8 != -1 || layoutParams.f2210XnFJ5_9 != -1 || layoutParams.f3497Nm6q_10 != -1 || layoutParams.WkDTNqU_32 != -1 || layoutParams.ViqFd_33 != -1 || layoutParams.f3495KNBe_11 != -1 || ((ViewGroup.MarginLayoutParams) layoutParams).width == -1 || ((ViewGroup.MarginLayoutParams) layoutParams).height == -1) {
                    int i15 = layoutParams.R6WQ_35;
                    int i16 = layoutParams.Fv6VRig_36;
                    int i17 = layoutParams.O3zP_37;
                    int i18 = layoutParams.QNpr_38;
                    int i19 = layoutParams.B9ET3_39;
                    int i20 = layoutParams.BQkV_40;
                    float f4 = layoutParams.f3499Xgtqvk_8;
                    if (Build.VERSION.SDK_INT < 17) {
                        int i21 = layoutParams.f2202PGPF6hQ_2;
                        int i22 = layoutParams.f2200Mqv2r_3;
                        int i23 = layoutParams.f2206X6FRs_4;
                        i18 = layoutParams.f2192IFxWkV_5;
                        int i24 = layoutParams.NQvZgp_17;
                        int i25 = layoutParams.BVpCZyH_19;
                        f4 = layoutParams.PGPF6hQ_2;
                        if (i21 == -1 && i22 == -1) {
                            int i26 = layoutParams.YghfZG_14;
                            if (i26 != -1) {
                                i6 = i22;
                                i15 = i26;
                                if (i23 == -1 && i18 == -1) {
                                    i = layoutParams.LGe8pk_15;
                                    if (i == -1) {
                                        i3 = i24;
                                        i2 = i25;
                                        i16 = i6;
                                    } else {
                                        int i27 = layoutParams.JZJr_16;
                                        if (i27 != -1) {
                                            i3 = i24;
                                            i2 = i25;
                                            i16 = i6;
                                            f = f4;
                                            i4 = i27;
                                            i = i23;
                                            i5 = layoutParams.f3495KNBe_11;
                                            if (i5 == -1) {
                                                X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_07 = KQgRr5e_0(i5);
                                                if (KQgRr5e_07 != null) {
                                                    KQgRr5e_06.KQgRr5e_0(KQgRr5e_07, layoutParams.QxJ9d_1, layoutParams.EuDEkJe_12);
                                                }
                                            } else {
                                                if (i15 != -1) {
                                                    X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_08 = KQgRr5e_0(i15);
                                                    if (KQgRr5e_08 != null) {
                                                        X6FRs_4.Mqv2r_3 mqv2r_3 = X6FRs_4.Mqv2r_3.LEFT;
                                                        f2 = f;
                                                        KQgRr5e_06.KQgRr5e_0(mqv2r_3, KQgRr5e_08, mqv2r_3, ((ViewGroup.MarginLayoutParams) layoutParams).leftMargin, i3);
                                                    } else {
                                                        f2 = f;
                                                    }
                                                } else {
                                                    f2 = f;
                                                    if (i16 != -1 && (KQgRr5e_0 = KQgRr5e_0(i16)) != null) {
                                                        KQgRr5e_06.KQgRr5e_0(X6FRs_4.Mqv2r_3.LEFT, KQgRr5e_0, X6FRs_4.Mqv2r_3.RIGHT, ((ViewGroup.MarginLayoutParams) layoutParams).leftMargin, i3);
                                                    }
                                                }
                                                if (i != -1) {
                                                    X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_09 = KQgRr5e_0(i);
                                                    if (KQgRr5e_09 != null) {
                                                        KQgRr5e_06.KQgRr5e_0(X6FRs_4.Mqv2r_3.RIGHT, KQgRr5e_09, X6FRs_4.Mqv2r_3.LEFT, ((ViewGroup.MarginLayoutParams) layoutParams).rightMargin, i2);
                                                    }
                                                } else if (i4 != -1 && (KQgRr5e_02 = KQgRr5e_0(i4)) != null) {
                                                    X6FRs_4.Mqv2r_3 mqv2r_32 = X6FRs_4.Mqv2r_3.RIGHT;
                                                    KQgRr5e_06.KQgRr5e_0(mqv2r_32, KQgRr5e_02, mqv2r_32, ((ViewGroup.MarginLayoutParams) layoutParams).rightMargin, i2);
                                                }
                                                int i28 = layoutParams.f2194IMuAHx_6;
                                                if (i28 != -1) {
                                                    X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_010 = KQgRr5e_0(i28);
                                                    if (KQgRr5e_010 != null) {
                                                        X6FRs_4.Mqv2r_3 mqv2r_33 = X6FRs_4.Mqv2r_3.TOP;
                                                        KQgRr5e_06.KQgRr5e_0(mqv2r_33, KQgRr5e_010, mqv2r_33, ((ViewGroup.MarginLayoutParams) layoutParams).topMargin, layoutParams.Eps4cJe_18);
                                                    }
                                                } else {
                                                    int i29 = layoutParams.f2190FSaI4_7;
                                                    if (i29 != -1 && (KQgRr5e_03 = KQgRr5e_0(i29)) != null) {
                                                        KQgRr5e_06.KQgRr5e_0(X6FRs_4.Mqv2r_3.TOP, KQgRr5e_03, X6FRs_4.Mqv2r_3.BOTTOM, ((ViewGroup.MarginLayoutParams) layoutParams).topMargin, layoutParams.Eps4cJe_18);
                                                    }
                                                }
                                                int i30 = layoutParams.f2208Xgtqvk_8;
                                                if (i30 != -1) {
                                                    X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_011 = KQgRr5e_0(i30);
                                                    if (KQgRr5e_011 != null) {
                                                        KQgRr5e_06.KQgRr5e_0(X6FRs_4.Mqv2r_3.BOTTOM, KQgRr5e_011, X6FRs_4.Mqv2r_3.TOP, ((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin, layoutParams.ZzDuCHW_20);
                                                    }
                                                } else {
                                                    int i31 = layoutParams.f2210XnFJ5_9;
                                                    if (i31 != -1 && (KQgRr5e_04 = KQgRr5e_0(i31)) != null) {
                                                        X6FRs_4.Mqv2r_3 mqv2r_34 = X6FRs_4.Mqv2r_3.BOTTOM;
                                                        KQgRr5e_06.KQgRr5e_0(mqv2r_34, KQgRr5e_04, mqv2r_34, ((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin, layoutParams.ZzDuCHW_20);
                                                    }
                                                }
                                                int i32 = layoutParams.f3497Nm6q_10;
                                                if (i32 != -1) {
                                                    View view = this.f2185KQgRr5e_0.get(i32);
                                                    X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_012 = KQgRr5e_0(layoutParams.f3497Nm6q_10);
                                                    if (KQgRr5e_012 != null && view != null && (view.getLayoutParams() instanceof LayoutParams)) {
                                                        layoutParams.f2207X6FRs_4 = true;
                                                        ((LayoutParams) view.getLayoutParams()).f2207X6FRs_4 = true;
                                                        KQgRr5e_06.KQgRr5e_0(X6FRs_4.Mqv2r_3.BASELINE).KQgRr5e_0(KQgRr5e_012.KQgRr5e_0(X6FRs_4.Mqv2r_3.BASELINE), 0, -1, X6FRs_4.PGPF6hQ_2.STRONG, 0, true);
                                                        KQgRr5e_06.KQgRr5e_0(X6FRs_4.Mqv2r_3.TOP).m580KQgRr5e_0();
                                                        KQgRr5e_06.KQgRr5e_0(X6FRs_4.Mqv2r_3.BOTTOM).m580KQgRr5e_0();
                                                    }
                                                }
                                                float f5 = f2;
                                                if (f5 >= 0.0f && f5 != 0.5f) {
                                                    KQgRr5e_06.KQgRr5e_0(f5);
                                                }
                                                float f6 = layoutParams.f3496Mqv2r_3;
                                                if (f6 >= 0.0f && f6 != 0.5f) {
                                                    KQgRr5e_06.PGPF6hQ_2(f6);
                                                }
                                            }
                                            if (isInEditMode && (layoutParams.WkDTNqU_32 != -1 || layoutParams.ViqFd_33 != -1)) {
                                                KQgRr5e_06.PGPF6hQ_2(layoutParams.WkDTNqU_32, layoutParams.ViqFd_33);
                                            }
                                            if (layoutParams.f2203PGPF6hQ_2) {
                                                if (((ViewGroup.MarginLayoutParams) layoutParams).width == -1) {
                                                    KQgRr5e_06.KQgRr5e_0(IFxWkV_5.QxJ9d_1.MATCH_PARENT);
                                                    KQgRr5e_06.KQgRr5e_0(X6FRs_4.Mqv2r_3.LEFT).KQgRr5e_0 = ((ViewGroup.MarginLayoutParams) layoutParams).leftMargin;
                                                    KQgRr5e_06.KQgRr5e_0(X6FRs_4.Mqv2r_3.RIGHT).KQgRr5e_0 = ((ViewGroup.MarginLayoutParams) layoutParams).rightMargin;
                                                } else {
                                                    KQgRr5e_06.KQgRr5e_0(IFxWkV_5.QxJ9d_1.MATCH_CONSTRAINT);
                                                    KQgRr5e_06.Nm6q_10(0);
                                                }
                                            } else {
                                                KQgRr5e_06.KQgRr5e_0(IFxWkV_5.QxJ9d_1.FIXED);
                                                KQgRr5e_06.Nm6q_10(((ViewGroup.MarginLayoutParams) layoutParams).width);
                                            }
                                            if (layoutParams.f2201Mqv2r_3) {
                                                if (((ViewGroup.MarginLayoutParams) layoutParams).height == -1) {
                                                    KQgRr5e_06.QxJ9d_1(IFxWkV_5.QxJ9d_1.MATCH_PARENT);
                                                    KQgRr5e_06.KQgRr5e_0(X6FRs_4.Mqv2r_3.TOP).KQgRr5e_0 = ((ViewGroup.MarginLayoutParams) layoutParams).topMargin;
                                                    KQgRr5e_06.KQgRr5e_0(X6FRs_4.Mqv2r_3.BOTTOM).KQgRr5e_0 = ((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin;
                                                    r3 = 0;
                                                } else {
                                                    KQgRr5e_06.QxJ9d_1(IFxWkV_5.QxJ9d_1.MATCH_CONSTRAINT);
                                                    r3 = 0;
                                                    KQgRr5e_06.PGPF6hQ_2(0);
                                                }
                                            } else {
                                                r3 = 0;
                                                KQgRr5e_06.QxJ9d_1(IFxWkV_5.QxJ9d_1.FIXED);
                                                KQgRr5e_06.PGPF6hQ_2(((ViewGroup.MarginLayoutParams) layoutParams).height);
                                            }
                                            str = layoutParams.f2198KQgRr5e_0;
                                            if (str != null) {
                                                KQgRr5e_06.QxJ9d_1(str);
                                            }
                                            KQgRr5e_06.QxJ9d_1(layoutParams.f3498X6FRs_4);
                                            KQgRr5e_06.Mqv2r_3(layoutParams.f3493IFxWkV_5);
                                            KQgRr5e_06.Mqv2r_3(layoutParams.G83uNX_24);
                                            KQgRr5e_06.Xgtqvk_8(layoutParams.KVtv3R_25);
                                            KQgRr5e_06.KQgRr5e_0(layoutParams.XDsvEfm_26, layoutParams.XuVgy_28, layoutParams.EANXC_30, layoutParams.f3494IMuAHx_6);
                                            KQgRr5e_06.QxJ9d_1(layoutParams.WGk6X_27, layoutParams.NzhupJ_29, layoutParams.DtqPmDY_31, layoutParams.f3492FSaI4_7);
                                        }
                                    }
                                }
                                i3 = i24;
                                i2 = i25;
                                i = i23;
                                i16 = i6;
                            } else {
                                i6 = layoutParams.WwEq_13;
                            }
                        }
                        i6 = i22;
                        i15 = i21;
                        if (i23 == -1) {
                            i = layoutParams.LGe8pk_15;
                            if (i == -1) {
                            }
                        }
                        i3 = i24;
                        i2 = i25;
                        i = i23;
                        i16 = i6;
                    } else {
                        i = i17;
                        i2 = i20;
                        i3 = i19;
                    }
                    f = f4;
                    i4 = i18;
                    i5 = layoutParams.f3495KNBe_11;
                    if (i5 == -1) {
                    }
                    if (isInEditMode) {
                        KQgRr5e_06.PGPF6hQ_2(layoutParams.WkDTNqU_32, layoutParams.ViqFd_33);
                    }
                    if (layoutParams.f2203PGPF6hQ_2) {
                    }
                    if (layoutParams.f2201Mqv2r_3) {
                    }
                    str = layoutParams.f2198KQgRr5e_0;
                    if (str != null) {
                    }
                    KQgRr5e_06.QxJ9d_1(layoutParams.f3498X6FRs_4);
                    KQgRr5e_06.Mqv2r_3(layoutParams.f3493IFxWkV_5);
                    KQgRr5e_06.Mqv2r_3(layoutParams.G83uNX_24);
                    KQgRr5e_06.Xgtqvk_8(layoutParams.KVtv3R_25);
                    KQgRr5e_06.KQgRr5e_0(layoutParams.XDsvEfm_26, layoutParams.XuVgy_28, layoutParams.EANXC_30, layoutParams.f3494IMuAHx_6);
                    KQgRr5e_06.QxJ9d_1(layoutParams.WGk6X_27, layoutParams.NzhupJ_29, layoutParams.DtqPmDY_31, layoutParams.f3492FSaI4_7);
                }
            }
            i12++;
            r3 = r3;
        }
    }

    /* loaded from: classes.dex */
    public static class LayoutParams extends ViewGroup.MarginLayoutParams {
        public int B9ET3_39;
        public int BQkV_40;
        public int BVpCZyH_19;
        public int DtqPmDY_31;
        public int EANXC_30;
        public int Eps4cJe_18;
        public int EuDEkJe_12;

        /* renamed from: FSaI4_7  reason: collision with root package name */
        public float f3492FSaI4_7;

        /* renamed from: FSaI4_7  reason: collision with other field name */
        public int f2190FSaI4_7;

        /* renamed from: FSaI4_7  reason: collision with other field name */
        public boolean f2191FSaI4_7;
        public int Fv6VRig_36;
        public int G83uNX_24;
        public int H5YG8fq_22;

        /* renamed from: IFxWkV_5  reason: collision with root package name */
        public float f3493IFxWkV_5;

        /* renamed from: IFxWkV_5  reason: collision with other field name */
        public int f2192IFxWkV_5;

        /* renamed from: IFxWkV_5  reason: collision with other field name */
        public boolean f2193IFxWkV_5;

        /* renamed from: IMuAHx_6  reason: collision with root package name */
        public float f3494IMuAHx_6;

        /* renamed from: IMuAHx_6  reason: collision with other field name */
        public int f2194IMuAHx_6;

        /* renamed from: IMuAHx_6  reason: collision with other field name */
        public boolean f2195IMuAHx_6;
        public int JXypC6_34;
        public int JZJr_16;

        /* renamed from: KNBe_11  reason: collision with root package name */
        public int f3495KNBe_11;
        public float KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public int f2196KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 f2197KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public String f2198KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public boolean f2199KQgRr5e_0;
        public int KVtv3R_25;
        public int LGe8pk_15;

        /* renamed from: Mqv2r_3  reason: collision with root package name */
        public float f3496Mqv2r_3;

        /* renamed from: Mqv2r_3  reason: collision with other field name */
        public int f2200Mqv2r_3;

        /* renamed from: Mqv2r_3  reason: collision with other field name */
        public boolean f2201Mqv2r_3;
        public int N7iYjdq_41;
        public int NQvZgp_17;

        /* renamed from: Nm6q_10  reason: collision with root package name */
        public int f3497Nm6q_10;
        public int NzhupJ_29;
        public int O3zP_37;
        public float PGPF6hQ_2;

        /* renamed from: PGPF6hQ_2  reason: collision with other field name */
        public int f2202PGPF6hQ_2;

        /* renamed from: PGPF6hQ_2  reason: collision with other field name */
        public boolean f2203PGPF6hQ_2;
        public int QNpr_38;
        public float QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public int f2204QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public boolean f2205QxJ9d_1;
        public int R6WQ_35;
        public int RfjZ_21;
        public int SI64pbG_23;
        public int ViqFd_33;
        public int WGk6X_27;
        public int WkDTNqU_32;
        public int WwEq_13;

        /* renamed from: X6FRs_4  reason: collision with root package name */
        public float f3498X6FRs_4;

        /* renamed from: X6FRs_4  reason: collision with other field name */
        public int f2206X6FRs_4;

        /* renamed from: X6FRs_4  reason: collision with other field name */
        public boolean f2207X6FRs_4;
        public int XDsvEfm_26;

        /* renamed from: Xgtqvk_8  reason: collision with root package name */
        public float f3499Xgtqvk_8;

        /* renamed from: Xgtqvk_8  reason: collision with other field name */
        public int f2208Xgtqvk_8;

        /* renamed from: Xgtqvk_8  reason: collision with other field name */
        public boolean f2209Xgtqvk_8;

        /* renamed from: XnFJ5_9  reason: collision with root package name */
        public float f3500XnFJ5_9;

        /* renamed from: XnFJ5_9  reason: collision with other field name */
        public int f2210XnFJ5_9;
        public int XuVgy_28;
        public int XuYK_42;
        public int YghfZG_14;
        public int ZzDuCHW_20;

        /* loaded from: classes.dex */
        public static class KQgRr5e_0 {
            public static final SparseIntArray KQgRr5e_0;

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

        public LayoutParams(Context context, AttributeSet attributeSet) {
            super(context, attributeSet);
            int i;
            this.f2196KQgRr5e_0 = -1;
            this.f2204QxJ9d_1 = -1;
            this.KQgRr5e_0 = -1.0f;
            this.f2202PGPF6hQ_2 = -1;
            this.f2200Mqv2r_3 = -1;
            this.f2206X6FRs_4 = -1;
            this.f2192IFxWkV_5 = -1;
            this.f2194IMuAHx_6 = -1;
            this.f2190FSaI4_7 = -1;
            this.f2208Xgtqvk_8 = -1;
            this.f2210XnFJ5_9 = -1;
            this.f3497Nm6q_10 = -1;
            this.f3495KNBe_11 = -1;
            this.EuDEkJe_12 = 0;
            this.QxJ9d_1 = 0.0f;
            this.WwEq_13 = -1;
            this.YghfZG_14 = -1;
            this.LGe8pk_15 = -1;
            this.JZJr_16 = -1;
            this.NQvZgp_17 = -1;
            this.Eps4cJe_18 = -1;
            this.BVpCZyH_19 = -1;
            this.ZzDuCHW_20 = -1;
            this.RfjZ_21 = -1;
            this.H5YG8fq_22 = -1;
            this.PGPF6hQ_2 = 0.5f;
            this.f3496Mqv2r_3 = 0.5f;
            this.f2198KQgRr5e_0 = null;
            this.SI64pbG_23 = 1;
            this.f3498X6FRs_4 = -1.0f;
            this.f3493IFxWkV_5 = -1.0f;
            this.G83uNX_24 = 0;
            this.KVtv3R_25 = 0;
            this.XDsvEfm_26 = 0;
            this.WGk6X_27 = 0;
            this.XuVgy_28 = 0;
            this.NzhupJ_29 = 0;
            this.EANXC_30 = 0;
            this.DtqPmDY_31 = 0;
            this.f3494IMuAHx_6 = 1.0f;
            this.f3492FSaI4_7 = 1.0f;
            this.WkDTNqU_32 = -1;
            this.ViqFd_33 = -1;
            this.JXypC6_34 = -1;
            this.f2199KQgRr5e_0 = false;
            this.f2205QxJ9d_1 = false;
            this.f2203PGPF6hQ_2 = true;
            this.f2201Mqv2r_3 = true;
            this.f2207X6FRs_4 = false;
            this.f2193IFxWkV_5 = false;
            this.f2195IMuAHx_6 = false;
            this.f2191FSaI4_7 = false;
            this.R6WQ_35 = -1;
            this.Fv6VRig_36 = -1;
            this.O3zP_37 = -1;
            this.QNpr_38 = -1;
            this.B9ET3_39 = -1;
            this.BQkV_40 = -1;
            this.f3499Xgtqvk_8 = 0.5f;
            this.f2197KQgRr5e_0 = new X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5();
            this.f2209Xgtqvk_8 = false;
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, PGPF6hQ_2.ConstraintLayout_Layout);
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i2 = 0; i2 < indexCount; i2++) {
                int index = obtainStyledAttributes.getIndex(i2);
                int i3 = KQgRr5e_0.KQgRr5e_0.get(index);
                switch (i3) {
                    case 1:
                        this.JXypC6_34 = obtainStyledAttributes.getInt(index, this.JXypC6_34);
                        break;
                    case 2:
                        int resourceId = obtainStyledAttributes.getResourceId(index, this.f3495KNBe_11);
                        this.f3495KNBe_11 = resourceId;
                        if (resourceId == -1) {
                            this.f3495KNBe_11 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 3:
                        this.EuDEkJe_12 = obtainStyledAttributes.getDimensionPixelSize(index, this.EuDEkJe_12);
                        break;
                    case 4:
                        float f = obtainStyledAttributes.getFloat(index, this.QxJ9d_1) % 360.0f;
                        this.QxJ9d_1 = f;
                        if (f < 0.0f) {
                            this.QxJ9d_1 = (360.0f - f) % 360.0f;
                            break;
                        } else {
                            break;
                        }
                    case 5:
                        this.f2196KQgRr5e_0 = obtainStyledAttributes.getDimensionPixelOffset(index, this.f2196KQgRr5e_0);
                        break;
                    case 6:
                        this.f2204QxJ9d_1 = obtainStyledAttributes.getDimensionPixelOffset(index, this.f2204QxJ9d_1);
                        break;
                    case 7:
                        this.KQgRr5e_0 = obtainStyledAttributes.getFloat(index, this.KQgRr5e_0);
                        break;
                    case 8:
                        int resourceId2 = obtainStyledAttributes.getResourceId(index, this.f2202PGPF6hQ_2);
                        this.f2202PGPF6hQ_2 = resourceId2;
                        if (resourceId2 == -1) {
                            this.f2202PGPF6hQ_2 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 9:
                        int resourceId3 = obtainStyledAttributes.getResourceId(index, this.f2200Mqv2r_3);
                        this.f2200Mqv2r_3 = resourceId3;
                        if (resourceId3 == -1) {
                            this.f2200Mqv2r_3 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 10:
                        int resourceId4 = obtainStyledAttributes.getResourceId(index, this.f2206X6FRs_4);
                        this.f2206X6FRs_4 = resourceId4;
                        if (resourceId4 == -1) {
                            this.f2206X6FRs_4 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 11:
                        int resourceId5 = obtainStyledAttributes.getResourceId(index, this.f2192IFxWkV_5);
                        this.f2192IFxWkV_5 = resourceId5;
                        if (resourceId5 == -1) {
                            this.f2192IFxWkV_5 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 12:
                        int resourceId6 = obtainStyledAttributes.getResourceId(index, this.f2194IMuAHx_6);
                        this.f2194IMuAHx_6 = resourceId6;
                        if (resourceId6 == -1) {
                            this.f2194IMuAHx_6 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 13:
                        int resourceId7 = obtainStyledAttributes.getResourceId(index, this.f2190FSaI4_7);
                        this.f2190FSaI4_7 = resourceId7;
                        if (resourceId7 == -1) {
                            this.f2190FSaI4_7 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 14:
                        int resourceId8 = obtainStyledAttributes.getResourceId(index, this.f2208Xgtqvk_8);
                        this.f2208Xgtqvk_8 = resourceId8;
                        if (resourceId8 == -1) {
                            this.f2208Xgtqvk_8 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 15:
                        int resourceId9 = obtainStyledAttributes.getResourceId(index, this.f2210XnFJ5_9);
                        this.f2210XnFJ5_9 = resourceId9;
                        if (resourceId9 == -1) {
                            this.f2210XnFJ5_9 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 16:
                        int resourceId10 = obtainStyledAttributes.getResourceId(index, this.f3497Nm6q_10);
                        this.f3497Nm6q_10 = resourceId10;
                        if (resourceId10 == -1) {
                            this.f3497Nm6q_10 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 17:
                        int resourceId11 = obtainStyledAttributes.getResourceId(index, this.WwEq_13);
                        this.WwEq_13 = resourceId11;
                        if (resourceId11 == -1) {
                            this.WwEq_13 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 18:
                        int resourceId12 = obtainStyledAttributes.getResourceId(index, this.YghfZG_14);
                        this.YghfZG_14 = resourceId12;
                        if (resourceId12 == -1) {
                            this.YghfZG_14 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 19:
                        int resourceId13 = obtainStyledAttributes.getResourceId(index, this.LGe8pk_15);
                        this.LGe8pk_15 = resourceId13;
                        if (resourceId13 == -1) {
                            this.LGe8pk_15 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 20:
                        int resourceId14 = obtainStyledAttributes.getResourceId(index, this.JZJr_16);
                        this.JZJr_16 = resourceId14;
                        if (resourceId14 == -1) {
                            this.JZJr_16 = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 21:
                        this.NQvZgp_17 = obtainStyledAttributes.getDimensionPixelSize(index, this.NQvZgp_17);
                        break;
                    case 22:
                        this.Eps4cJe_18 = obtainStyledAttributes.getDimensionPixelSize(index, this.Eps4cJe_18);
                        break;
                    case 23:
                        this.BVpCZyH_19 = obtainStyledAttributes.getDimensionPixelSize(index, this.BVpCZyH_19);
                        break;
                    case 24:
                        this.ZzDuCHW_20 = obtainStyledAttributes.getDimensionPixelSize(index, this.ZzDuCHW_20);
                        break;
                    case 25:
                        this.RfjZ_21 = obtainStyledAttributes.getDimensionPixelSize(index, this.RfjZ_21);
                        break;
                    case 26:
                        this.H5YG8fq_22 = obtainStyledAttributes.getDimensionPixelSize(index, this.H5YG8fq_22);
                        break;
                    case 27:
                        this.f2199KQgRr5e_0 = obtainStyledAttributes.getBoolean(index, this.f2199KQgRr5e_0);
                        break;
                    case 28:
                        this.f2205QxJ9d_1 = obtainStyledAttributes.getBoolean(index, this.f2205QxJ9d_1);
                        break;
                    case 29:
                        this.PGPF6hQ_2 = obtainStyledAttributes.getFloat(index, this.PGPF6hQ_2);
                        break;
                    case 30:
                        this.f3496Mqv2r_3 = obtainStyledAttributes.getFloat(index, this.f3496Mqv2r_3);
                        break;
                    case 31:
                        int i4 = obtainStyledAttributes.getInt(index, 0);
                        this.XDsvEfm_26 = i4;
                        if (i4 == 1) {
                            Log.e("ConstraintLayout", "layout_constraintWidth_default=\"wrap\" is deprecated.\nUse layout_width=\"WRAP_CONTENT\" and layout_constrainedWidth=\"true\" instead.");
                            break;
                        } else {
                            break;
                        }
                    case 32:
                        int i5 = obtainStyledAttributes.getInt(index, 0);
                        this.WGk6X_27 = i5;
                        if (i5 == 1) {
                            Log.e("ConstraintLayout", "layout_constraintHeight_default=\"wrap\" is deprecated.\nUse layout_height=\"WRAP_CONTENT\" and layout_constrainedHeight=\"true\" instead.");
                            break;
                        } else {
                            break;
                        }
                    case 33:
                        try {
                            this.XuVgy_28 = obtainStyledAttributes.getDimensionPixelSize(index, this.XuVgy_28);
                            break;
                        } catch (Exception unused) {
                            if (obtainStyledAttributes.getInt(index, this.XuVgy_28) == -2) {
                                this.XuVgy_28 = -2;
                                break;
                            } else {
                                break;
                            }
                        }
                    case 34:
                        try {
                            this.EANXC_30 = obtainStyledAttributes.getDimensionPixelSize(index, this.EANXC_30);
                            break;
                        } catch (Exception unused2) {
                            if (obtainStyledAttributes.getInt(index, this.EANXC_30) == -2) {
                                this.EANXC_30 = -2;
                                break;
                            } else {
                                break;
                            }
                        }
                    case 35:
                        this.f3494IMuAHx_6 = Math.max(0.0f, obtainStyledAttributes.getFloat(index, this.f3494IMuAHx_6));
                        break;
                    case 36:
                        try {
                            this.NzhupJ_29 = obtainStyledAttributes.getDimensionPixelSize(index, this.NzhupJ_29);
                            break;
                        } catch (Exception unused3) {
                            if (obtainStyledAttributes.getInt(index, this.NzhupJ_29) == -2) {
                                this.NzhupJ_29 = -2;
                                break;
                            } else {
                                break;
                            }
                        }
                    case 37:
                        try {
                            this.DtqPmDY_31 = obtainStyledAttributes.getDimensionPixelSize(index, this.DtqPmDY_31);
                            break;
                        } catch (Exception unused4) {
                            if (obtainStyledAttributes.getInt(index, this.DtqPmDY_31) == -2) {
                                this.DtqPmDY_31 = -2;
                                break;
                            } else {
                                break;
                            }
                        }
                    case 38:
                        this.f3492FSaI4_7 = Math.max(0.0f, obtainStyledAttributes.getFloat(index, this.f3492FSaI4_7));
                        break;
                    default:
                        switch (i3) {
                            case 44:
                                String string = obtainStyledAttributes.getString(index);
                                this.f2198KQgRr5e_0 = string;
                                this.SI64pbG_23 = -1;
                                if (string != null) {
                                    int length = string.length();
                                    int indexOf = this.f2198KQgRr5e_0.indexOf(44);
                                    if (indexOf <= 0 || indexOf >= length - 1) {
                                        i = 0;
                                    } else {
                                        String substring = this.f2198KQgRr5e_0.substring(0, indexOf);
                                        if (substring.equalsIgnoreCase("W")) {
                                            this.SI64pbG_23 = 0;
                                        } else if (substring.equalsIgnoreCase("H")) {
                                            this.SI64pbG_23 = 1;
                                        }
                                        i = indexOf + 1;
                                    }
                                    int indexOf2 = this.f2198KQgRr5e_0.indexOf(58);
                                    if (indexOf2 >= 0 && indexOf2 < length - 1) {
                                        String substring2 = this.f2198KQgRr5e_0.substring(i, indexOf2);
                                        String substring3 = this.f2198KQgRr5e_0.substring(indexOf2 + 1);
                                        if (substring2.length() > 0 && substring3.length() > 0) {
                                            try {
                                                float parseFloat = Float.parseFloat(substring2);
                                                float parseFloat2 = Float.parseFloat(substring3);
                                                if (parseFloat > 0.0f && parseFloat2 > 0.0f) {
                                                    if (this.SI64pbG_23 == 1) {
                                                        Math.abs(parseFloat2 / parseFloat);
                                                        break;
                                                    } else {
                                                        Math.abs(parseFloat / parseFloat2);
                                                        break;
                                                    }
                                                }
                                            } catch (NumberFormatException unused5) {
                                                break;
                                            }
                                        }
                                    } else {
                                        String substring4 = this.f2198KQgRr5e_0.substring(i);
                                        if (substring4.length() > 0) {
                                            Float.parseFloat(substring4);
                                            break;
                                        } else {
                                            break;
                                        }
                                    }
                                } else {
                                    continue;
                                }
                                break;
                            case 45:
                                this.f3498X6FRs_4 = obtainStyledAttributes.getFloat(index, this.f3498X6FRs_4);
                                continue;
                            case 46:
                                this.f3493IFxWkV_5 = obtainStyledAttributes.getFloat(index, this.f3493IFxWkV_5);
                                continue;
                            case 47:
                                this.G83uNX_24 = obtainStyledAttributes.getInt(index, 0);
                                continue;
                            case 48:
                                this.KVtv3R_25 = obtainStyledAttributes.getInt(index, 0);
                                continue;
                            case 49:
                                this.WkDTNqU_32 = obtainStyledAttributes.getDimensionPixelOffset(index, this.WkDTNqU_32);
                                continue;
                            case 50:
                                this.ViqFd_33 = obtainStyledAttributes.getDimensionPixelOffset(index, this.ViqFd_33);
                                continue;
                        }
                }
            }
            obtainStyledAttributes.recycle();
            KQgRr5e_0();
        }

        public void KQgRr5e_0() {
            this.f2193IFxWkV_5 = false;
            this.f2203PGPF6hQ_2 = true;
            this.f2201Mqv2r_3 = true;
            if (((ViewGroup.MarginLayoutParams) this).width == -2 && this.f2199KQgRr5e_0) {
                this.f2203PGPF6hQ_2 = false;
                this.XDsvEfm_26 = 1;
            }
            if (((ViewGroup.MarginLayoutParams) this).height == -2 && this.f2205QxJ9d_1) {
                this.f2201Mqv2r_3 = false;
                this.WGk6X_27 = 1;
            }
            int i = ((ViewGroup.MarginLayoutParams) this).width;
            if (i == 0 || i == -1) {
                this.f2203PGPF6hQ_2 = false;
                if (((ViewGroup.MarginLayoutParams) this).width == 0 && this.XDsvEfm_26 == 1) {
                    ((ViewGroup.MarginLayoutParams) this).width = -2;
                    this.f2199KQgRr5e_0 = true;
                }
            }
            int i2 = ((ViewGroup.MarginLayoutParams) this).height;
            if (i2 == 0 || i2 == -1) {
                this.f2201Mqv2r_3 = false;
                if (((ViewGroup.MarginLayoutParams) this).height == 0 && this.WGk6X_27 == 1) {
                    ((ViewGroup.MarginLayoutParams) this).height = -2;
                    this.f2205QxJ9d_1 = true;
                }
            }
            if (this.KQgRr5e_0 == -1.0f && this.f2196KQgRr5e_0 == -1 && this.f2204QxJ9d_1 == -1) {
                return;
            }
            this.f2193IFxWkV_5 = true;
            this.f2203PGPF6hQ_2 = true;
            this.f2201Mqv2r_3 = true;
            if (!(this.f2197KQgRr5e_0 instanceof Xgtqvk_8)) {
                this.f2197KQgRr5e_0 = new Xgtqvk_8();
            }
            ((Xgtqvk_8) this.f2197KQgRr5e_0).NQvZgp_17(this.JXypC6_34);
        }

        /* JADX WARN: Removed duplicated region for block: B:16:0x004c  */
        /* JADX WARN: Removed duplicated region for block: B:19:0x0053  */
        /* JADX WARN: Removed duplicated region for block: B:22:0x005a  */
        /* JADX WARN: Removed duplicated region for block: B:25:0x0060  */
        /* JADX WARN: Removed duplicated region for block: B:28:0x0066  */
        /* JADX WARN: Removed duplicated region for block: B:35:0x007c  */
        /* JADX WARN: Removed duplicated region for block: B:36: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);
            this.O3zP_37 = -1;
            this.QNpr_38 = -1;
            this.R6WQ_35 = -1;
            this.Fv6VRig_36 = -1;
            this.B9ET3_39 = -1;
            this.BQkV_40 = -1;
            this.B9ET3_39 = this.NQvZgp_17;
            this.BQkV_40 = this.BVpCZyH_19;
            this.f3499Xgtqvk_8 = this.PGPF6hQ_2;
            this.N7iYjdq_41 = this.f2196KQgRr5e_0;
            this.XuYK_42 = this.f2204QxJ9d_1;
            this.f3500XnFJ5_9 = this.KQgRr5e_0;
            boolean z = false;
            if (1 == getLayoutDirection()) {
                int i8 = this.WwEq_13;
                if (i8 != -1) {
                    this.O3zP_37 = i8;
                } else {
                    int i9 = this.YghfZG_14;
                    if (i9 != -1) {
                        this.QNpr_38 = i9;
                    }
                    i2 = this.LGe8pk_15;
                    if (i2 != -1) {
                        this.Fv6VRig_36 = i2;
                        z = true;
                    }
                    i3 = this.JZJr_16;
                    if (i3 != -1) {
                        this.R6WQ_35 = i3;
                        z = true;
                    }
                    i4 = this.RfjZ_21;
                    if (i4 != -1) {
                        this.BQkV_40 = i4;
                    }
                    i5 = this.H5YG8fq_22;
                    if (i5 != -1) {
                        this.B9ET3_39 = i5;
                    }
                    if (z) {
                        this.f3499Xgtqvk_8 = 1.0f - this.PGPF6hQ_2;
                    }
                    if (this.f2193IFxWkV_5 && this.JXypC6_34 == 1) {
                        f = this.KQgRr5e_0;
                        if (f == -1.0f) {
                            this.f3500XnFJ5_9 = 1.0f - f;
                            this.N7iYjdq_41 = -1;
                            this.XuYK_42 = -1;
                        } else {
                            int i10 = this.f2196KQgRr5e_0;
                            if (i10 != -1) {
                                this.XuYK_42 = i10;
                                this.N7iYjdq_41 = -1;
                                this.f3500XnFJ5_9 = -1.0f;
                            } else {
                                int i11 = this.f2204QxJ9d_1;
                                if (i11 != -1) {
                                    this.N7iYjdq_41 = i11;
                                    this.XuYK_42 = -1;
                                    this.f3500XnFJ5_9 = -1.0f;
                                }
                            }
                        }
                    }
                }
                z = true;
                i2 = this.LGe8pk_15;
                if (i2 != -1) {
                }
                i3 = this.JZJr_16;
                if (i3 != -1) {
                }
                i4 = this.RfjZ_21;
                if (i4 != -1) {
                }
                i5 = this.H5YG8fq_22;
                if (i5 != -1) {
                }
                if (z) {
                }
                if (this.f2193IFxWkV_5) {
                    f = this.KQgRr5e_0;
                    if (f == -1.0f) {
                    }
                }
            } else {
                int i12 = this.WwEq_13;
                if (i12 != -1) {
                    this.Fv6VRig_36 = i12;
                }
                int i13 = this.YghfZG_14;
                if (i13 != -1) {
                    this.R6WQ_35 = i13;
                }
                int i14 = this.LGe8pk_15;
                if (i14 != -1) {
                    this.O3zP_37 = i14;
                }
                int i15 = this.JZJr_16;
                if (i15 != -1) {
                    this.QNpr_38 = i15;
                }
                int i16 = this.RfjZ_21;
                if (i16 != -1) {
                    this.B9ET3_39 = i16;
                }
                int i17 = this.H5YG8fq_22;
                if (i17 != -1) {
                    this.BQkV_40 = i17;
                }
            }
            if (this.LGe8pk_15 == -1 && this.JZJr_16 == -1 && this.YghfZG_14 == -1 && this.WwEq_13 == -1) {
                int i18 = this.f2206X6FRs_4;
                if (i18 != -1) {
                    this.O3zP_37 = i18;
                    if (((ViewGroup.MarginLayoutParams) this).rightMargin <= 0 && i7 > 0) {
                        ((ViewGroup.MarginLayoutParams) this).rightMargin = i7;
                    }
                } else {
                    int i19 = this.f2192IFxWkV_5;
                    if (i19 != -1) {
                        this.QNpr_38 = i19;
                        if (((ViewGroup.MarginLayoutParams) this).rightMargin <= 0 && i7 > 0) {
                            ((ViewGroup.MarginLayoutParams) this).rightMargin = i7;
                        }
                    }
                }
                int i20 = this.f2202PGPF6hQ_2;
                if (i20 != -1) {
                    this.R6WQ_35 = i20;
                    if (((ViewGroup.MarginLayoutParams) this).leftMargin > 0 || i6 <= 0) {
                        return;
                    }
                    ((ViewGroup.MarginLayoutParams) this).leftMargin = i6;
                    return;
                }
                int i21 = this.f2200Mqv2r_3;
                if (i21 != -1) {
                    this.Fv6VRig_36 = i21;
                    if (((ViewGroup.MarginLayoutParams) this).leftMargin > 0 || i6 <= 0) {
                        return;
                    }
                    ((ViewGroup.MarginLayoutParams) this).leftMargin = i6;
                }
            }
        }

        public LayoutParams(int i, int i2) {
            super(i, i2);
            this.f2196KQgRr5e_0 = -1;
            this.f2204QxJ9d_1 = -1;
            this.KQgRr5e_0 = -1.0f;
            this.f2202PGPF6hQ_2 = -1;
            this.f2200Mqv2r_3 = -1;
            this.f2206X6FRs_4 = -1;
            this.f2192IFxWkV_5 = -1;
            this.f2194IMuAHx_6 = -1;
            this.f2190FSaI4_7 = -1;
            this.f2208Xgtqvk_8 = -1;
            this.f2210XnFJ5_9 = -1;
            this.f3497Nm6q_10 = -1;
            this.f3495KNBe_11 = -1;
            this.EuDEkJe_12 = 0;
            this.QxJ9d_1 = 0.0f;
            this.WwEq_13 = -1;
            this.YghfZG_14 = -1;
            this.LGe8pk_15 = -1;
            this.JZJr_16 = -1;
            this.NQvZgp_17 = -1;
            this.Eps4cJe_18 = -1;
            this.BVpCZyH_19 = -1;
            this.ZzDuCHW_20 = -1;
            this.RfjZ_21 = -1;
            this.H5YG8fq_22 = -1;
            this.PGPF6hQ_2 = 0.5f;
            this.f3496Mqv2r_3 = 0.5f;
            this.f2198KQgRr5e_0 = null;
            this.SI64pbG_23 = 1;
            this.f3498X6FRs_4 = -1.0f;
            this.f3493IFxWkV_5 = -1.0f;
            this.G83uNX_24 = 0;
            this.KVtv3R_25 = 0;
            this.XDsvEfm_26 = 0;
            this.WGk6X_27 = 0;
            this.XuVgy_28 = 0;
            this.NzhupJ_29 = 0;
            this.EANXC_30 = 0;
            this.DtqPmDY_31 = 0;
            this.f3494IMuAHx_6 = 1.0f;
            this.f3492FSaI4_7 = 1.0f;
            this.WkDTNqU_32 = -1;
            this.ViqFd_33 = -1;
            this.JXypC6_34 = -1;
            this.f2199KQgRr5e_0 = false;
            this.f2205QxJ9d_1 = false;
            this.f2203PGPF6hQ_2 = true;
            this.f2201Mqv2r_3 = true;
            this.f2207X6FRs_4 = false;
            this.f2193IFxWkV_5 = false;
            this.f2195IMuAHx_6 = false;
            this.f2191FSaI4_7 = false;
            this.R6WQ_35 = -1;
            this.Fv6VRig_36 = -1;
            this.O3zP_37 = -1;
            this.QNpr_38 = -1;
            this.B9ET3_39 = -1;
            this.BQkV_40 = -1;
            this.f3499Xgtqvk_8 = 0.5f;
            this.f2197KQgRr5e_0 = new X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5();
            this.f2209Xgtqvk_8 = false;
        }

        public LayoutParams(ViewGroup.LayoutParams layoutParams) {
            super(layoutParams);
            this.f2196KQgRr5e_0 = -1;
            this.f2204QxJ9d_1 = -1;
            this.KQgRr5e_0 = -1.0f;
            this.f2202PGPF6hQ_2 = -1;
            this.f2200Mqv2r_3 = -1;
            this.f2206X6FRs_4 = -1;
            this.f2192IFxWkV_5 = -1;
            this.f2194IMuAHx_6 = -1;
            this.f2190FSaI4_7 = -1;
            this.f2208Xgtqvk_8 = -1;
            this.f2210XnFJ5_9 = -1;
            this.f3497Nm6q_10 = -1;
            this.f3495KNBe_11 = -1;
            this.EuDEkJe_12 = 0;
            this.QxJ9d_1 = 0.0f;
            this.WwEq_13 = -1;
            this.YghfZG_14 = -1;
            this.LGe8pk_15 = -1;
            this.JZJr_16 = -1;
            this.NQvZgp_17 = -1;
            this.Eps4cJe_18 = -1;
            this.BVpCZyH_19 = -1;
            this.ZzDuCHW_20 = -1;
            this.RfjZ_21 = -1;
            this.H5YG8fq_22 = -1;
            this.PGPF6hQ_2 = 0.5f;
            this.f3496Mqv2r_3 = 0.5f;
            this.f2198KQgRr5e_0 = null;
            this.SI64pbG_23 = 1;
            this.f3498X6FRs_4 = -1.0f;
            this.f3493IFxWkV_5 = -1.0f;
            this.G83uNX_24 = 0;
            this.KVtv3R_25 = 0;
            this.XDsvEfm_26 = 0;
            this.WGk6X_27 = 0;
            this.XuVgy_28 = 0;
            this.NzhupJ_29 = 0;
            this.EANXC_30 = 0;
            this.DtqPmDY_31 = 0;
            this.f3494IMuAHx_6 = 1.0f;
            this.f3492FSaI4_7 = 1.0f;
            this.WkDTNqU_32 = -1;
            this.ViqFd_33 = -1;
            this.JXypC6_34 = -1;
            this.f2199KQgRr5e_0 = false;
            this.f2205QxJ9d_1 = false;
            this.f2203PGPF6hQ_2 = true;
            this.f2201Mqv2r_3 = true;
            this.f2207X6FRs_4 = false;
            this.f2193IFxWkV_5 = false;
            this.f2195IMuAHx_6 = false;
            this.f2191FSaI4_7 = false;
            this.R6WQ_35 = -1;
            this.Fv6VRig_36 = -1;
            this.O3zP_37 = -1;
            this.QNpr_38 = -1;
            this.B9ET3_39 = -1;
            this.BQkV_40 = -1;
            this.f3499Xgtqvk_8 = 0.5f;
            this.f2197KQgRr5e_0 = new X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5();
            this.f2209Xgtqvk_8 = false;
        }
    }

    public final X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_0(int i) {
        if (i == 0) {
            return this.f2183KQgRr5e_0;
        }
        View view = this.f2185KQgRr5e_0.get(i);
        if (view == null && (view = findViewById(i)) != null && view != this && view.getParent() == this) {
            onViewAdded(view);
        }
        if (view == this) {
            return this.f2183KQgRr5e_0;
        }
        if (view == null) {
            return null;
        }
        return ((LayoutParams) view.getLayoutParams()).f2197KQgRr5e_0;
    }

    public final X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 KQgRr5e_0(View view) {
        if (view == this) {
            return this.f2183KQgRr5e_0;
        }
        if (view == null) {
            return null;
        }
        return ((LayoutParams) view.getLayoutParams()).f2197KQgRr5e_0;
    }

    public final void KQgRr5e_0(int i, int i2) {
        boolean z;
        boolean z2;
        int baseline;
        int childMeasureSpec;
        int childMeasureSpec2;
        int paddingTop = getPaddingTop() + getPaddingBottom();
        int paddingLeft = getPaddingLeft() + getPaddingRight();
        int childCount = getChildCount();
        for (int i3 = 0; i3 < childCount; i3++) {
            View childAt = getChildAt(i3);
            if (childAt.getVisibility() != 8) {
                LayoutParams layoutParams = (LayoutParams) childAt.getLayoutParams();
                X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5 iFxWkV_5 = layoutParams.f2197KQgRr5e_0;
                if (!layoutParams.f2193IFxWkV_5 && !layoutParams.f2195IMuAHx_6) {
                    iFxWkV_5.XnFJ5_9(childAt.getVisibility());
                    int i4 = ((ViewGroup.MarginLayoutParams) layoutParams).width;
                    int i5 = ((ViewGroup.MarginLayoutParams) layoutParams).height;
                    boolean z3 = layoutParams.f2203PGPF6hQ_2;
                    if (z3 || layoutParams.f2201Mqv2r_3 || (!z3 && layoutParams.XDsvEfm_26 == 1) || ((ViewGroup.MarginLayoutParams) layoutParams).width == -1 || (!layoutParams.f2201Mqv2r_3 && (layoutParams.WGk6X_27 == 1 || ((ViewGroup.MarginLayoutParams) layoutParams).height == -1))) {
                        if (i4 == 0) {
                            childMeasureSpec = ViewGroup.getChildMeasureSpec(i, paddingLeft, -2);
                            z = true;
                        } else if (i4 == -1) {
                            childMeasureSpec = ViewGroup.getChildMeasureSpec(i, paddingLeft, -1);
                            z = false;
                        } else {
                            z = i4 == -2;
                            childMeasureSpec = ViewGroup.getChildMeasureSpec(i, paddingLeft, i4);
                        }
                        if (i5 == 0) {
                            childMeasureSpec2 = ViewGroup.getChildMeasureSpec(i2, paddingTop, -2);
                            z2 = true;
                        } else if (i5 == -1) {
                            childMeasureSpec2 = ViewGroup.getChildMeasureSpec(i2, paddingTop, -1);
                            z2 = false;
                        } else {
                            z2 = i5 == -2;
                            childMeasureSpec2 = ViewGroup.getChildMeasureSpec(i2, paddingTop, i5);
                        }
                        childAt.measure(childMeasureSpec, childMeasureSpec2);
                        X6FRs_4.X6FRs_4.KQgRr5e_0.IFxWkV_5 iFxWkV_52 = this.f2182KQgRr5e_0;
                        if (iFxWkV_52 != null) {
                            iFxWkV_52.KQgRr5e_0++;
                        }
                        iFxWkV_5.QxJ9d_1(i4 == -2);
                        iFxWkV_5.KQgRr5e_0(i5 == -2);
                        i4 = childAt.getMeasuredWidth();
                        i5 = childAt.getMeasuredHeight();
                    } else {
                        z = false;
                        z2 = false;
                    }
                    iFxWkV_5.Nm6q_10(i4);
                    iFxWkV_5.PGPF6hQ_2(i5);
                    if (z) {
                        iFxWkV_5.EuDEkJe_12(i4);
                    }
                    if (z2) {
                        iFxWkV_5.KNBe_11(i5);
                    }
                    if (layoutParams.f2207X6FRs_4 && (baseline = childAt.getBaseline()) != -1) {
                        iFxWkV_5.m570QxJ9d_1(baseline);
                    }
                }
            }
        }
    }

    public void KQgRr5e_0(String str) {
        this.f2183KQgRr5e_0.FSaI4_7();
        X6FRs_4.X6FRs_4.KQgRr5e_0.IFxWkV_5 iFxWkV_5 = this.f2182KQgRr5e_0;
        if (iFxWkV_5 != null) {
            iFxWkV_5.PGPF6hQ_2++;
        }
    }

    @Override // android.view.ViewGroup
    /* renamed from: KQgRr5e_0 */
    public LayoutParams generateLayoutParams(AttributeSet attributeSet) {
        return new LayoutParams(getContext(), attributeSet);
    }

    @Override // android.view.ViewGroup
    /* renamed from: KQgRr5e_0 */
    public LayoutParams generateDefaultLayoutParams() {
        return new LayoutParams(-2, -2);
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public View m854KQgRr5e_0(int i) {
        return this.f2185KQgRr5e_0.get(i);
    }
}
