package n;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import android.widget.LinearLayout;
import java.lang.reflect.Field;

/* JADX INFO: renamed from: n.c0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC1203c0 extends ViewGroup {

    /* JADX INFO: renamed from: A, reason: collision with root package name */
    public Drawable f14822A;

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

    /* JADX INFO: renamed from: C, reason: collision with root package name */
    public int f14824C;
    public int D;

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

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public boolean f14826q;

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

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

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

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

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

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public float f14832w;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public boolean f14833x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public int[] f14834y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public int[] f14835z;

    public AbstractC1203c0(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        this.f14826q = true;
        this.f14827r = -1;
        this.f14828s = 0;
        this.f14830u = 8388659;
        int[] iArr = h.a.f13014k;
        com.google.android.material.datepicker.c cVarZ = com.google.android.material.datepicker.c.z(context, attributeSet, iArr, i);
        M.J.i(this, context, iArr, attributeSet, (TypedArray) cVarZ.f10220s, i);
        TypedArray typedArray = (TypedArray) cVarZ.f10220s;
        int i5 = typedArray.getInt(1, -1);
        if (i5 >= 0) {
            setOrientation(i5);
        }
        int i8 = typedArray.getInt(0, -1);
        if (i8 >= 0) {
            setGravity(i8);
        }
        boolean z8 = typedArray.getBoolean(2, true);
        if (!z8) {
            setBaselineAligned(z8);
        }
        this.f14832w = typedArray.getFloat(4, -1.0f);
        this.f14827r = typedArray.getInt(3, -1);
        this.f14833x = typedArray.getBoolean(7, false);
        setDividerDrawable(cVarZ.u(5));
        this.D = typedArray.getInt(8, 0);
        this.f14825E = typedArray.getDimensionPixelSize(6, 0);
        cVarZ.B();
    }

    public final void c(Canvas canvas, int i) {
        this.f14822A.setBounds(getPaddingLeft() + this.f14825E, i, (getWidth() - getPaddingRight()) - this.f14825E, this.f14824C + i);
        this.f14822A.draw(canvas);
    }

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

    public final void d(Canvas canvas, int i) {
        this.f14822A.setBounds(i, getPaddingTop() + this.f14825E, this.f14823B + i, (getHeight() - getPaddingBottom()) - this.f14825E);
        this.f14822A.draw(canvas);
    }

    @Override // android.view.ViewGroup
    /* JADX INFO: renamed from: e, reason: merged with bridge method [inline-methods] */
    public C1201b0 generateDefaultLayoutParams() {
        int i = this.f14829t;
        if (i == 0) {
            return new C1201b0(-2, -2);
        }
        if (i == 1) {
            return new C1201b0(-1, -2);
        }
        return null;
    }

    @Override // android.view.ViewGroup
    /* JADX INFO: renamed from: f, reason: merged with bridge method [inline-methods] */
    public C1201b0 generateLayoutParams(AttributeSet attributeSet) {
        return new C1201b0(getContext(), attributeSet);
    }

    @Override // android.view.ViewGroup
    /* JADX INFO: renamed from: g, reason: merged with bridge method [inline-methods] */
    public C1201b0 generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return new C1201b0(layoutParams);
    }

    @Override // android.view.View
    public int getBaseline() {
        int i;
        if (this.f14827r < 0) {
            return super.getBaseline();
        }
        int childCount = getChildCount();
        int i5 = this.f14827r;
        if (childCount <= i5) {
            throw new RuntimeException("mBaselineAlignedChildIndex of LinearLayout set to an index that is out of bounds.");
        }
        View childAt = getChildAt(i5);
        int baseline = childAt.getBaseline();
        if (baseline == -1) {
            if (this.f14827r == 0) {
                return -1;
            }
            throw new RuntimeException("mBaselineAlignedChildIndex of LinearLayout points to a View that doesn't know how to get its baseline.");
        }
        int bottom = this.f14828s;
        if (this.f14829t == 1 && (i = this.f14830u & 112) != 48) {
            if (i == 16) {
                bottom += ((((getBottom() - getTop()) - getPaddingTop()) - getPaddingBottom()) - this.f14831v) / 2;
            } else if (i == 80) {
                bottom = ((getBottom() - getTop()) - getPaddingBottom()) - this.f14831v;
            }
        }
        return bottom + ((LinearLayout.LayoutParams) ((C1201b0) childAt.getLayoutParams())).topMargin + baseline;
    }

    public int getBaselineAlignedChildIndex() {
        return this.f14827r;
    }

    public Drawable getDividerDrawable() {
        return this.f14822A;
    }

    public int getDividerPadding() {
        return this.f14825E;
    }

    public int getDividerWidth() {
        return this.f14823B;
    }

    public int getGravity() {
        return this.f14830u;
    }

    public int getOrientation() {
        return this.f14829t;
    }

    public int getShowDividers() {
        return this.D;
    }

    public int getVirtualChildCount() {
        return getChildCount();
    }

    public float getWeightSum() {
        return this.f14832w;
    }

    public final boolean h(int i) {
        if (i == 0) {
            return (this.D & 1) != 0;
        }
        if (i == getChildCount()) {
            return (this.D & 4) != 0;
        }
        if ((this.D & 2) != 0) {
            for (int i5 = i - 1; i5 >= 0; i5--) {
                if (getChildAt(i5).getVisibility() != 8) {
                    return true;
                }
            }
        }
        return false;
    }

    @Override // android.view.View
    public final void onDraw(Canvas canvas) {
        int right;
        int left;
        int i;
        if (this.f14822A == null) {
            return;
        }
        int i5 = 0;
        if (this.f14829t == 1) {
            int virtualChildCount = getVirtualChildCount();
            while (i5 < virtualChildCount) {
                View childAt = getChildAt(i5);
                if (childAt != null && childAt.getVisibility() != 8 && h(i5)) {
                    c(canvas, (childAt.getTop() - ((LinearLayout.LayoutParams) ((C1201b0) childAt.getLayoutParams())).topMargin) - this.f14824C);
                }
                i5++;
            }
            if (h(virtualChildCount)) {
                View childAt2 = getChildAt(virtualChildCount - 1);
                c(canvas, childAt2 == null ? (getHeight() - getPaddingBottom()) - this.f14824C : childAt2.getBottom() + ((LinearLayout.LayoutParams) ((C1201b0) childAt2.getLayoutParams())).bottomMargin);
                return;
            }
            return;
        }
        int virtualChildCount2 = getVirtualChildCount();
        boolean zA = X0.a(this);
        while (i5 < virtualChildCount2) {
            View childAt3 = getChildAt(i5);
            if (childAt3 != null && childAt3.getVisibility() != 8 && h(i5)) {
                C1201b0 c1201b0 = (C1201b0) childAt3.getLayoutParams();
                d(canvas, zA ? childAt3.getRight() + ((LinearLayout.LayoutParams) c1201b0).rightMargin : (childAt3.getLeft() - ((LinearLayout.LayoutParams) c1201b0).leftMargin) - this.f14823B);
            }
            i5++;
        }
        if (h(virtualChildCount2)) {
            View childAt4 = getChildAt(virtualChildCount2 - 1);
            if (childAt4 != null) {
                C1201b0 c1201b02 = (C1201b0) childAt4.getLayoutParams();
                if (zA) {
                    left = childAt4.getLeft() - ((LinearLayout.LayoutParams) c1201b02).leftMargin;
                    i = this.f14823B;
                    right = left - i;
                } else {
                    right = childAt4.getRight() + ((LinearLayout.LayoutParams) c1201b02).rightMargin;
                }
            } else if (zA) {
                right = getPaddingLeft();
            } else {
                left = getWidth() - getPaddingRight();
                i = this.f14823B;
                right = left - i;
            }
            d(canvas, right);
        }
    }

    @Override // android.view.View
    public final void onInitializeAccessibilityEvent(AccessibilityEvent accessibilityEvent) {
        super.onInitializeAccessibilityEvent(accessibilityEvent);
        accessibilityEvent.setClassName("androidx.appcompat.widget.LinearLayoutCompat");
    }

    @Override // android.view.View
    public final void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo accessibilityNodeInfo) {
        super.onInitializeAccessibilityNodeInfo(accessibilityNodeInfo);
        accessibilityNodeInfo.setClassName("androidx.appcompat.widget.LinearLayoutCompat");
    }

    /* JADX WARN: Removed duplicated region for block: B:29:0x009f  */
    /* JADX WARN: Removed duplicated region for block: B:58:0x0156  */
    /* JADX WARN: Removed duplicated region for block: B:61:0x015f  */
    /* JADX WARN: Removed duplicated region for block: B:73:0x018d  */
    /* JADX WARN: Removed duplicated region for block: B:76:0x01a0  */
    /* JADX WARN: Removed duplicated region for block: B:77:0x01a5  */
    @Override // android.view.ViewGroup, android.view.View
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void onLayout(boolean z8, int i, int i5, int i8, int i9) {
        int i10;
        int i11;
        int i12;
        int i13;
        int i14;
        int i15;
        int i16;
        int measuredHeight;
        char c3;
        int i17;
        int i18;
        int i19;
        int i20 = 8;
        char c8 = 2;
        if (this.f14829t == 1) {
            int paddingLeft = getPaddingLeft();
            int i21 = i8 - i;
            int paddingRight = i21 - getPaddingRight();
            int paddingRight2 = (i21 - paddingLeft) - getPaddingRight();
            int virtualChildCount = getVirtualChildCount();
            int i22 = this.f14830u;
            int i23 = i22 & 112;
            int i24 = 8388615 & i22;
            int paddingTop = i23 != 16 ? i23 != 80 ? getPaddingTop() : ((getPaddingTop() + i9) - i5) - this.f14831v : getPaddingTop() + (((i9 - i5) - this.f14831v) / 2);
            int i25 = 0;
            while (i25 < virtualChildCount) {
                View childAt = getChildAt(i25);
                if (childAt == null || childAt.getVisibility() == i20) {
                    c3 = c8;
                } else {
                    int measuredWidth = childAt.getMeasuredWidth();
                    int measuredHeight2 = childAt.getMeasuredHeight();
                    C1201b0 c1201b0 = (C1201b0) childAt.getLayoutParams();
                    c3 = c8;
                    int i26 = ((LinearLayout.LayoutParams) c1201b0).gravity;
                    if (i26 < 0) {
                        i26 = i24;
                    }
                    Field field = M.J.f4065a;
                    int absoluteGravity = Gravity.getAbsoluteGravity(i26, getLayoutDirection()) & 7;
                    if (absoluteGravity == 1) {
                        i17 = ((paddingRight2 - measuredWidth) / 2) + paddingLeft + ((LinearLayout.LayoutParams) c1201b0).leftMargin;
                        i18 = ((LinearLayout.LayoutParams) c1201b0).rightMargin;
                    } else if (absoluteGravity != 5) {
                        i19 = ((LinearLayout.LayoutParams) c1201b0).leftMargin + paddingLeft;
                        if (h(i25)) {
                            paddingTop += this.f14824C;
                        }
                        int i27 = paddingTop + ((LinearLayout.LayoutParams) c1201b0).topMargin;
                        childAt.layout(i19, i27, measuredWidth + i19, i27 + measuredHeight2);
                        paddingTop = measuredHeight2 + ((LinearLayout.LayoutParams) c1201b0).bottomMargin + i27;
                    } else {
                        i17 = paddingRight - measuredWidth;
                        i18 = ((LinearLayout.LayoutParams) c1201b0).rightMargin;
                    }
                    i19 = i17 - i18;
                    if (h(i25)) {
                    }
                    int i272 = paddingTop + ((LinearLayout.LayoutParams) c1201b0).topMargin;
                    childAt.layout(i19, i272, measuredWidth + i19, i272 + measuredHeight2);
                    paddingTop = measuredHeight2 + ((LinearLayout.LayoutParams) c1201b0).bottomMargin + i272;
                }
                i25++;
                c8 = c3;
                i20 = 8;
            }
            return;
        }
        boolean zA = X0.a(this);
        int paddingTop2 = getPaddingTop();
        int i28 = i9 - i5;
        int paddingBottom = i28 - getPaddingBottom();
        int paddingBottom2 = (i28 - paddingTop2) - getPaddingBottom();
        int virtualChildCount2 = getVirtualChildCount();
        int i29 = this.f14830u;
        int i30 = 8388615 & i29;
        int i31 = i29 & 112;
        boolean z9 = this.f14826q;
        int[] iArr = this.f14834y;
        int[] iArr2 = this.f14835z;
        Field field2 = M.J.f4065a;
        int absoluteGravity2 = Gravity.getAbsoluteGravity(i30, getLayoutDirection());
        int paddingLeft2 = absoluteGravity2 != 1 ? absoluteGravity2 != 5 ? getPaddingLeft() : ((getPaddingLeft() + i8) - i) - this.f14831v : getPaddingLeft() + (((i8 - i) - this.f14831v) / 2);
        if (zA) {
            i11 = virtualChildCount2 - 1;
            i10 = -1;
        } else {
            i10 = 1;
            i11 = 0;
        }
        int i32 = 0;
        while (i32 < virtualChildCount2) {
            int i33 = (i10 * i32) + i11;
            View childAt2 = getChildAt(i33);
            if (childAt2 == null) {
                i12 = i11;
            } else {
                i12 = i11;
                if (childAt2.getVisibility() != 8) {
                    int measuredWidth2 = childAt2.getMeasuredWidth();
                    int measuredHeight3 = childAt2.getMeasuredHeight();
                    C1201b0 c1201b02 = (C1201b0) childAt2.getLayoutParams();
                    int i34 = paddingLeft2;
                    if (z9) {
                        i13 = paddingTop2;
                        int baseline = ((LinearLayout.LayoutParams) c1201b02).height != -1 ? childAt2.getBaseline() : -1;
                        i14 = ((LinearLayout.LayoutParams) c1201b02).gravity;
                        if (i14 < 0) {
                            i14 = i31;
                        }
                        i15 = i14 & 112;
                        if (i15 == 16) {
                            if (i15 == 48) {
                                i16 = i13 + ((LinearLayout.LayoutParams) c1201b02).topMargin;
                                if (baseline != -1) {
                                    i16 = (iArr[1] - baseline) + i16;
                                }
                            } else if (i15 != 80) {
                                i16 = i13;
                            } else {
                                i16 = (paddingBottom - measuredHeight3) - ((LinearLayout.LayoutParams) c1201b02).bottomMargin;
                                if (baseline != -1) {
                                    measuredHeight = iArr2[2] - (childAt2.getMeasuredHeight() - baseline);
                                }
                            }
                            int i35 = (h(i33) ? i34 + this.f14823B : i34) + ((LinearLayout.LayoutParams) c1201b02).leftMargin;
                            childAt2.layout(i35, i16, i35 + measuredWidth2, i16 + measuredHeight3);
                            paddingLeft2 = measuredWidth2 + ((LinearLayout.LayoutParams) c1201b02).rightMargin + i35;
                            i32++;
                            i11 = i12;
                            paddingTop2 = i13;
                        } else {
                            i16 = ((paddingBottom2 - measuredHeight3) / 2) + i13 + ((LinearLayout.LayoutParams) c1201b02).topMargin;
                            measuredHeight = ((LinearLayout.LayoutParams) c1201b02).bottomMargin;
                        }
                        i16 -= measuredHeight;
                        int i352 = (h(i33) ? i34 + this.f14823B : i34) + ((LinearLayout.LayoutParams) c1201b02).leftMargin;
                        childAt2.layout(i352, i16, i352 + measuredWidth2, i16 + measuredHeight3);
                        paddingLeft2 = measuredWidth2 + ((LinearLayout.LayoutParams) c1201b02).rightMargin + i352;
                        i32++;
                        i11 = i12;
                        paddingTop2 = i13;
                    } else {
                        i13 = paddingTop2;
                    }
                    i14 = ((LinearLayout.LayoutParams) c1201b02).gravity;
                    if (i14 < 0) {
                    }
                    i15 = i14 & 112;
                    if (i15 == 16) {
                    }
                    i16 -= measuredHeight;
                    int i3522 = (h(i33) ? i34 + this.f14823B : i34) + ((LinearLayout.LayoutParams) c1201b02).leftMargin;
                    childAt2.layout(i3522, i16, i3522 + measuredWidth2, i16 + measuredHeight3);
                    paddingLeft2 = measuredWidth2 + ((LinearLayout.LayoutParams) c1201b02).rightMargin + i3522;
                    i32++;
                    i11 = i12;
                    paddingTop2 = i13;
                }
            }
            i13 = paddingTop2;
            i32++;
            i11 = i12;
            paddingTop2 = i13;
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:228:0x04e4  */
    /* JADX WARN: Removed duplicated region for block: B:231:0x04f9  */
    /* JADX WARN: Removed duplicated region for block: B:237:0x0527  */
    /* JADX WARN: Removed duplicated region for block: B:243:0x0537  */
    /* JADX WARN: Removed duplicated region for block: B:246:0x053e  */
    /* JADX WARN: Removed duplicated region for block: B:250:0x0548  */
    /* JADX WARN: Removed duplicated region for block: B:366:0x079d  */
    /* JADX WARN: Removed duplicated region for block: B:64:0x013f  */
    /* JADX WARN: Removed duplicated region for block: B:68:0x0148  */
    @Override // android.view.View
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void onMeasure(int i, int i5) {
        int i8;
        int i9;
        int i10;
        int iMax;
        int i11;
        int i12;
        int baseline;
        int i13;
        int i14;
        int[] iArr;
        int i15;
        int i16;
        boolean z8;
        boolean z9;
        C1201b0 c1201b0;
        int i17;
        int[] iArr2;
        int i18;
        View view;
        int i19;
        boolean z10;
        boolean z11;
        int iMax2;
        int i20;
        int i21;
        int i22;
        int i23;
        int i24;
        int i25;
        int i26;
        int i27;
        boolean z12;
        int i28;
        int i29;
        int i30;
        View view2;
        boolean z13;
        AbstractC1203c0 abstractC1203c0 = this;
        int i31 = -2;
        int i32 = 1073741824;
        int i33 = 8;
        int iMax3 = 0;
        if (abstractC1203c0.f14829t == 1) {
            abstractC1203c0.f14831v = 0;
            int virtualChildCount = abstractC1203c0.getVirtualChildCount();
            int mode = View.MeasureSpec.getMode(i);
            int mode2 = View.MeasureSpec.getMode(i5);
            int i34 = abstractC1203c0.f14827r;
            boolean z14 = abstractC1203c0.f14833x;
            int i35 = 0;
            int iMax4 = 0;
            int iMax5 = 0;
            boolean z15 = false;
            int i36 = 0;
            boolean z16 = false;
            boolean z17 = true;
            float f3 = 0.0f;
            int iMax6 = 0;
            while (i35 < virtualChildCount) {
                int i37 = mode;
                View childAt = abstractC1203c0.getChildAt(i35);
                if (childAt == null) {
                    abstractC1203c0.f14831v = abstractC1203c0.f14831v;
                } else {
                    if (childAt.getVisibility() != i33) {
                        if (abstractC1203c0.h(i35)) {
                            abstractC1203c0.f14831v += abstractC1203c0.f14824C;
                        }
                        C1201b0 c1201b02 = (C1201b0) childAt.getLayoutParams();
                        float f7 = ((LinearLayout.LayoutParams) c1201b02).weight;
                        f3 += f7;
                        if (mode2 == i32 && ((LinearLayout.LayoutParams) c1201b02).height == 0 && f7 > 0.0f) {
                            int i38 = abstractC1203c0.f14831v;
                            abstractC1203c0.f14831v = Math.max(i38, ((LinearLayout.LayoutParams) c1201b02).topMargin + i38 + ((LinearLayout.LayoutParams) c1201b02).bottomMargin);
                            view2 = childAt;
                            i27 = mode2;
                            i28 = i34;
                            z12 = z14;
                            i29 = i35;
                            z15 = true;
                            i30 = i37;
                        } else {
                            if (((LinearLayout.LayoutParams) c1201b02).height != 0 || f7 <= 0.0f) {
                                i24 = Integer.MIN_VALUE;
                            } else {
                                ((LinearLayout.LayoutParams) c1201b02).height = i31;
                                i24 = 0;
                            }
                            if (f3 == 0.0f) {
                                i25 = i35;
                                i26 = abstractC1203c0.f14831v;
                            } else {
                                i25 = i35;
                                i26 = 0;
                            }
                            i27 = mode2;
                            z12 = z14;
                            i28 = i34;
                            i29 = i25;
                            i30 = i37;
                            abstractC1203c0.measureChildWithMargins(childAt, i, 0, i5, i26);
                            if (i24 != Integer.MIN_VALUE) {
                                ((LinearLayout.LayoutParams) c1201b02).height = i24;
                            }
                            int measuredHeight = childAt.getMeasuredHeight();
                            int i39 = abstractC1203c0.f14831v;
                            view2 = childAt;
                            abstractC1203c0.f14831v = Math.max(i39, i39 + measuredHeight + ((LinearLayout.LayoutParams) c1201b02).topMargin + ((LinearLayout.LayoutParams) c1201b02).bottomMargin);
                            if (z12) {
                                iMax6 = Math.max(measuredHeight, iMax6);
                            }
                        }
                        if (i28 >= 0 && i28 == i29 + 1) {
                            abstractC1203c0.f14828s = abstractC1203c0.f14831v;
                        }
                        if (i29 < i28 && ((LinearLayout.LayoutParams) c1201b02).weight > 0.0f) {
                            throw new RuntimeException("A child of LinearLayout with index less than mBaselineAlignedChildIndex has weight > 0, which won't work.  Either remove the weight, or don't set mBaselineAlignedChildIndex.");
                        }
                        if (i30 == 1073741824 || ((LinearLayout.LayoutParams) c1201b02).width != -1) {
                            z13 = false;
                        } else {
                            z13 = true;
                            z16 = true;
                        }
                        int i40 = ((LinearLayout.LayoutParams) c1201b02).leftMargin + ((LinearLayout.LayoutParams) c1201b02).rightMargin;
                        int measuredWidth = view2.getMeasuredWidth() + i40;
                        int iMax7 = Math.max(iMax3, measuredWidth);
                        int measuredState = view2.getMeasuredState();
                        boolean z18 = z13;
                        int iCombineMeasuredStates = View.combineMeasuredStates(i36, measuredState);
                        if (z17) {
                            i36 = iCombineMeasuredStates;
                            boolean z19 = ((LinearLayout.LayoutParams) c1201b02).width == -1;
                            if (((LinearLayout.LayoutParams) c1201b02).weight <= 0.0f) {
                                if (!z18) {
                                    i40 = measuredWidth;
                                }
                                iMax5 = Math.max(iMax5, i40);
                            } else {
                                if (!z18) {
                                    i40 = measuredWidth;
                                }
                                iMax4 = Math.max(iMax4, i40);
                            }
                            z17 = z19;
                            iMax3 = iMax7;
                        } else {
                            i36 = iCombineMeasuredStates;
                        }
                        if (((LinearLayout.LayoutParams) c1201b02).weight <= 0.0f) {
                        }
                        z17 = z19;
                        iMax3 = iMax7;
                    }
                    i35 = i29 + 1;
                    i34 = i28;
                    mode = i30;
                    z14 = z12;
                    mode2 = i27;
                    i31 = -2;
                    i32 = 1073741824;
                    i33 = 8;
                }
                i27 = mode2;
                i28 = i34;
                z12 = z14;
                i29 = i35;
                i30 = i37;
                i35 = i29 + 1;
                i34 = i28;
                mode = i30;
                z14 = z12;
                mode2 = i27;
                i31 = -2;
                i32 = 1073741824;
                i33 = 8;
            }
            int i41 = mode;
            int i42 = mode2;
            boolean z20 = z14;
            int i43 = i36;
            int i44 = i5;
            if (abstractC1203c0.f14831v > 0 && abstractC1203c0.h(virtualChildCount)) {
                abstractC1203c0.f14831v += abstractC1203c0.f14824C;
            }
            if (z20 && (i42 == Integer.MIN_VALUE || i42 == 0)) {
                abstractC1203c0.f14831v = 0;
                for (int i45 = 0; i45 < virtualChildCount; i45++) {
                    View childAt2 = abstractC1203c0.getChildAt(i45);
                    if (childAt2 == null) {
                        abstractC1203c0.f14831v = abstractC1203c0.f14831v;
                    } else if (childAt2.getVisibility() != 8) {
                        C1201b0 c1201b03 = (C1201b0) childAt2.getLayoutParams();
                        int i46 = abstractC1203c0.f14831v;
                        abstractC1203c0.f14831v = Math.max(i46, i46 + iMax6 + ((LinearLayout.LayoutParams) c1201b03).topMargin + ((LinearLayout.LayoutParams) c1201b03).bottomMargin);
                    }
                }
            }
            int paddingBottom = abstractC1203c0.getPaddingBottom() + abstractC1203c0.getPaddingTop() + abstractC1203c0.f14831v;
            abstractC1203c0.f14831v = paddingBottom;
            int iResolveSizeAndState = View.resolveSizeAndState(Math.max(paddingBottom, abstractC1203c0.getSuggestedMinimumHeight()), i44, 0);
            int i47 = (iResolveSizeAndState & 16777215) - abstractC1203c0.f14831v;
            if (z15 || (i47 != 0 && f3 > 0.0f)) {
                float f8 = abstractC1203c0.f14832w;
                if (f8 > 0.0f) {
                    f3 = f8;
                }
                abstractC1203c0.f14831v = 0;
                int iCombineMeasuredStates2 = i43;
                int i48 = 0;
                while (i48 < virtualChildCount) {
                    View childAt3 = abstractC1203c0.getChildAt(i48);
                    if (childAt3.getVisibility() == 8) {
                        i21 = i48;
                    } else {
                        C1201b0 c1201b04 = (C1201b0) childAt3.getLayoutParams();
                        float f9 = ((LinearLayout.LayoutParams) c1201b04).weight;
                        if (f9 > 0.0f) {
                            int i49 = (int) ((i47 * f9) / f3);
                            f3 -= f9;
                            i47 -= i49;
                            i21 = i48;
                            int childMeasureSpec = ViewGroup.getChildMeasureSpec(i, abstractC1203c0.getPaddingRight() + abstractC1203c0.getPaddingLeft() + ((LinearLayout.LayoutParams) c1201b04).leftMargin + ((LinearLayout.LayoutParams) c1201b04).rightMargin, ((LinearLayout.LayoutParams) c1201b04).width);
                            if (((LinearLayout.LayoutParams) c1201b04).height == 0) {
                                i23 = 1073741824;
                                if (i42 == 1073741824) {
                                    if (i49 <= 0) {
                                        i49 = 0;
                                    }
                                    childAt3.measure(childMeasureSpec, View.MeasureSpec.makeMeasureSpec(i49, 1073741824));
                                }
                                iCombineMeasuredStates2 = View.combineMeasuredStates(iCombineMeasuredStates2, childAt3.getMeasuredState() & (-256));
                            } else {
                                i23 = 1073741824;
                            }
                            int measuredHeight2 = childAt3.getMeasuredHeight() + i49;
                            if (measuredHeight2 < 0) {
                                measuredHeight2 = 0;
                            }
                            childAt3.measure(childMeasureSpec, View.MeasureSpec.makeMeasureSpec(measuredHeight2, i23));
                            iCombineMeasuredStates2 = View.combineMeasuredStates(iCombineMeasuredStates2, childAt3.getMeasuredState() & (-256));
                        } else {
                            i21 = i48;
                        }
                        int i50 = ((LinearLayout.LayoutParams) c1201b04).leftMargin + ((LinearLayout.LayoutParams) c1201b04).rightMargin;
                        int measuredWidth2 = childAt3.getMeasuredWidth() + i50;
                        iMax3 = Math.max(iMax3, measuredWidth2);
                        if (i41 != 1073741824) {
                            i22 = -1;
                            if (((LinearLayout.LayoutParams) c1201b04).width == -1) {
                                measuredWidth2 = i50;
                            }
                        } else {
                            i22 = -1;
                        }
                        iMax4 = Math.max(iMax4, measuredWidth2);
                        boolean z21 = z17 && ((LinearLayout.LayoutParams) c1201b04).width == i22;
                        int i51 = abstractC1203c0.f14831v;
                        abstractC1203c0.f14831v = Math.max(i51, childAt3.getMeasuredHeight() + i51 + ((LinearLayout.LayoutParams) c1201b04).topMargin + ((LinearLayout.LayoutParams) c1201b04).bottomMargin);
                        z17 = z21;
                    }
                    i48 = i21 + 1;
                }
                abstractC1203c0.f14831v = abstractC1203c0.getPaddingBottom() + abstractC1203c0.getPaddingTop() + abstractC1203c0.f14831v;
                i43 = iCombineMeasuredStates2;
            } else {
                iMax4 = Math.max(iMax4, iMax5);
                if (z20 && i42 != 1073741824) {
                    for (int i52 = 0; i52 < virtualChildCount; i52++) {
                        View childAt4 = abstractC1203c0.getChildAt(i52);
                        if (childAt4 != null && childAt4.getVisibility() != 8 && ((LinearLayout.LayoutParams) ((C1201b0) childAt4.getLayoutParams())).weight > 0.0f) {
                            childAt4.measure(View.MeasureSpec.makeMeasureSpec(childAt4.getMeasuredWidth(), 1073741824), View.MeasureSpec.makeMeasureSpec(iMax6, 1073741824));
                        }
                    }
                }
            }
            if (z17 || i41 == 1073741824) {
                iMax4 = iMax3;
            }
            abstractC1203c0.setMeasuredDimension(View.resolveSizeAndState(Math.max(abstractC1203c0.getPaddingRight() + abstractC1203c0.getPaddingLeft() + iMax4, abstractC1203c0.getSuggestedMinimumWidth()), i, i43), iResolveSizeAndState);
            if (z16) {
                int iMakeMeasureSpec = View.MeasureSpec.makeMeasureSpec(abstractC1203c0.getMeasuredWidth(), 1073741824);
                int i53 = 0;
                while (i53 < virtualChildCount) {
                    View childAt5 = abstractC1203c0.getChildAt(i53);
                    if (childAt5.getVisibility() != 8) {
                        C1201b0 c1201b05 = (C1201b0) childAt5.getLayoutParams();
                        if (((LinearLayout.LayoutParams) c1201b05).width == -1) {
                            int i54 = ((LinearLayout.LayoutParams) c1201b05).height;
                            ((LinearLayout.LayoutParams) c1201b05).height = childAt5.getMeasuredHeight();
                            abstractC1203c0.measureChildWithMargins(childAt5, iMakeMeasureSpec, 0, i44, 0);
                            ((LinearLayout.LayoutParams) c1201b05).height = i54;
                        }
                    }
                    i53++;
                    i44 = i5;
                }
                return;
            }
            return;
        }
        int i55 = i;
        abstractC1203c0.f14831v = 0;
        int virtualChildCount2 = abstractC1203c0.getVirtualChildCount();
        int mode3 = View.MeasureSpec.getMode(i55);
        int mode4 = View.MeasureSpec.getMode(i5);
        if (abstractC1203c0.f14834y == null || abstractC1203c0.f14835z == null) {
            abstractC1203c0.f14834y = new int[4];
            abstractC1203c0.f14835z = new int[4];
        }
        int[] iArr3 = abstractC1203c0.f14834y;
        int[] iArr4 = abstractC1203c0.f14835z;
        iArr3[3] = -1;
        char c3 = 2;
        iArr3[2] = -1;
        iArr3[1] = -1;
        iArr3[0] = -1;
        iArr4[3] = -1;
        iArr4[2] = -1;
        iArr4[1] = -1;
        iArr4[0] = -1;
        boolean z22 = abstractC1203c0.f14826q;
        boolean z23 = abstractC1203c0.f14833x;
        boolean z24 = mode3 == 1073741824;
        float f10 = 0.0f;
        boolean z25 = true;
        int i56 = 0;
        int i57 = 0;
        int i58 = 0;
        int iMax8 = 0;
        int iMax9 = 0;
        int iCombineMeasuredStates3 = 0;
        boolean z26 = false;
        boolean z27 = false;
        while (i56 < virtualChildCount2) {
            char c8 = c3;
            View childAt6 = abstractC1203c0.getChildAt(i56);
            if (childAt6 == null) {
                abstractC1203c0.f14831v = abstractC1203c0.f14831v;
                i16 = i56;
                i20 = i58;
                iArr2 = iArr3;
                iArr = iArr4;
                z8 = z22;
                z9 = z23;
            } else {
                int i59 = i57;
                if (childAt6.getVisibility() == 8) {
                    i55 = i;
                    i16 = i56;
                    i20 = i58;
                    iArr = iArr4;
                    z8 = z22;
                    z9 = z23;
                    i57 = i59;
                    iArr2 = iArr3;
                } else {
                    if (abstractC1203c0.h(i56)) {
                        abstractC1203c0.f14831v += abstractC1203c0.f14823B;
                    }
                    C1201b0 c1201b06 = (C1201b0) childAt6.getLayoutParams();
                    float f11 = ((LinearLayout.LayoutParams) c1201b06).weight;
                    f10 += f11;
                    int i60 = i56;
                    if (mode3 == 1073741824 && ((LinearLayout.LayoutParams) c1201b06).width == 0 && f11 > 0.0f) {
                        if (z24) {
                            abstractC1203c0.f14831v = ((LinearLayout.LayoutParams) c1201b06).leftMargin + ((LinearLayout.LayoutParams) c1201b06).rightMargin + abstractC1203c0.f14831v;
                        } else {
                            int i61 = abstractC1203c0.f14831v;
                            abstractC1203c0.f14831v = Math.max(i61, ((LinearLayout.LayoutParams) c1201b06).leftMargin + i61 + ((LinearLayout.LayoutParams) c1201b06).rightMargin);
                        }
                        if (z22) {
                            int iMakeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(0, 0);
                            childAt6.measure(iMakeMeasureSpec2, iMakeMeasureSpec2);
                            view = childAt6;
                            z8 = z22;
                            z9 = z23;
                            i17 = i59;
                            i16 = i60;
                            c1201b0 = c1201b06;
                            iArr2 = iArr3;
                            iArr = iArr4;
                            i55 = i;
                            i18 = i58;
                            i15 = iMax8;
                        } else {
                            view = childAt6;
                            z8 = z22;
                            z9 = z23;
                            z27 = true;
                            i17 = i59;
                            i16 = i60;
                            i19 = 1073741824;
                            c1201b0 = c1201b06;
                            iArr2 = iArr3;
                            iArr = iArr4;
                            i55 = i;
                            i18 = i58;
                            i15 = iMax8;
                            if (mode4 == i19 && ((LinearLayout.LayoutParams) c1201b0).height == -1) {
                                z10 = true;
                                z26 = true;
                            } else {
                                z10 = false;
                            }
                            int i62 = ((LinearLayout.LayoutParams) c1201b0).topMargin + ((LinearLayout.LayoutParams) c1201b0).bottomMargin;
                            int measuredHeight3 = view.getMeasuredHeight() + i62;
                            iCombineMeasuredStates3 = View.combineMeasuredStates(iCombineMeasuredStates3, view.getMeasuredState());
                            if (z8) {
                                z11 = z10;
                            } else {
                                int baseline2 = view.getBaseline();
                                z11 = z10;
                                if (baseline2 != -1) {
                                    int i63 = ((LinearLayout.LayoutParams) c1201b0).gravity;
                                    if (i63 < 0) {
                                        i63 = abstractC1203c0.f14830u;
                                    }
                                    int i64 = (((i63 & 112) >> 4) & (-2)) >> 1;
                                    iArr2[i64] = Math.max(iArr2[i64], baseline2);
                                    iArr[i64] = Math.max(iArr[i64], measuredHeight3 - baseline2);
                                }
                            }
                            int iMax10 = Math.max(i17, measuredHeight3);
                            boolean z28 = !z25 && ((LinearLayout.LayoutParams) c1201b0).height == -1;
                            if (((LinearLayout.LayoutParams) c1201b0).weight <= 0.0f) {
                                if (!z11) {
                                    i62 = measuredHeight3;
                                }
                                iMax8 = Math.max(i15, i62);
                                iMax2 = i18;
                            } else {
                                if (!z11) {
                                    i62 = measuredHeight3;
                                }
                                iMax2 = Math.max(i18, i62);
                                iMax8 = i15;
                            }
                            int i65 = iMax2;
                            i57 = iMax10;
                            i20 = i65;
                            z25 = z28;
                        }
                    } else {
                        if (((LinearLayout.LayoutParams) c1201b06).width != 0 || f11 <= 0.0f) {
                            i14 = Integer.MIN_VALUE;
                        } else {
                            ((LinearLayout.LayoutParams) c1201b06).width = -2;
                            i14 = 0;
                        }
                        iArr = iArr4;
                        i15 = iMax8;
                        i16 = i60;
                        z8 = z22;
                        z9 = z23;
                        int i66 = i14;
                        c1201b0 = c1201b06;
                        i17 = i59;
                        i55 = i;
                        iArr2 = iArr3;
                        i18 = i58;
                        abstractC1203c0.measureChildWithMargins(childAt6, i55, f10 == 0.0f ? abstractC1203c0.f14831v : 0, i5, 0);
                        if (i66 != Integer.MIN_VALUE) {
                            ((LinearLayout.LayoutParams) c1201b0).width = i66;
                        }
                        int measuredWidth3 = childAt6.getMeasuredWidth();
                        if (z24) {
                            view = childAt6;
                            abstractC1203c0.f14831v = ((LinearLayout.LayoutParams) c1201b0).leftMargin + measuredWidth3 + ((LinearLayout.LayoutParams) c1201b0).rightMargin + abstractC1203c0.f14831v;
                        } else {
                            view = childAt6;
                            int i67 = abstractC1203c0.f14831v;
                            abstractC1203c0.f14831v = Math.max(i67, i67 + measuredWidth3 + ((LinearLayout.LayoutParams) c1201b0).leftMargin + ((LinearLayout.LayoutParams) c1201b0).rightMargin);
                        }
                        if (z9) {
                            iMax9 = Math.max(measuredWidth3, iMax9);
                        }
                    }
                    i19 = 1073741824;
                    if (mode4 == i19) {
                        z10 = false;
                        int i622 = ((LinearLayout.LayoutParams) c1201b0).topMargin + ((LinearLayout.LayoutParams) c1201b0).bottomMargin;
                        int measuredHeight32 = view.getMeasuredHeight() + i622;
                        iCombineMeasuredStates3 = View.combineMeasuredStates(iCombineMeasuredStates3, view.getMeasuredState());
                        if (z8) {
                        }
                        int iMax102 = Math.max(i17, measuredHeight32);
                        if (z25) {
                            if (((LinearLayout.LayoutParams) c1201b0).weight <= 0.0f) {
                            }
                            int i652 = iMax2;
                            i57 = iMax102;
                            i20 = i652;
                            z25 = z28;
                        }
                    }
                }
            }
            i58 = i20;
            i56 = i16 + 1;
            c3 = c8;
            iArr3 = iArr2;
            iArr4 = iArr;
            z22 = z8;
            z23 = z9;
        }
        int[] iArr5 = iArr3;
        int[] iArr6 = iArr4;
        char c9 = c3;
        boolean z29 = z22;
        boolean z30 = z23;
        int i68 = i57;
        int i69 = i58;
        int i70 = iMax8;
        if (abstractC1203c0.f14831v > 0 && abstractC1203c0.h(virtualChildCount2)) {
            abstractC1203c0.f14831v += abstractC1203c0.f14823B;
        }
        int i71 = iArr5[1];
        int iMax11 = (i71 == -1 && iArr5[0] == -1 && iArr5[c9] == -1 && iArr5[3] == -1) ? i68 : Math.max(i68, Math.max(iArr6[3], Math.max(iArr6[0], Math.max(iArr6[1], iArr6[c9]))) + Math.max(iArr5[3], Math.max(iArr5[0], Math.max(i71, iArr5[c9]))));
        if (z30 && (mode3 == Integer.MIN_VALUE || mode3 == 0)) {
            abstractC1203c0.f14831v = 0;
            for (int i72 = 0; i72 < virtualChildCount2; i72++) {
                View childAt7 = abstractC1203c0.getChildAt(i72);
                if (childAt7 == null) {
                    abstractC1203c0.f14831v = abstractC1203c0.f14831v;
                } else if (childAt7.getVisibility() != 8) {
                    C1201b0 c1201b07 = (C1201b0) childAt7.getLayoutParams();
                    if (z24) {
                        abstractC1203c0.f14831v = ((LinearLayout.LayoutParams) c1201b07).leftMargin + iMax9 + ((LinearLayout.LayoutParams) c1201b07).rightMargin + abstractC1203c0.f14831v;
                    } else {
                        int i73 = abstractC1203c0.f14831v;
                        abstractC1203c0.f14831v = Math.max(i73, i73 + iMax9 + ((LinearLayout.LayoutParams) c1201b07).leftMargin + ((LinearLayout.LayoutParams) c1201b07).rightMargin);
                    }
                }
            }
        }
        int paddingRight = abstractC1203c0.getPaddingRight() + abstractC1203c0.getPaddingLeft() + abstractC1203c0.f14831v;
        abstractC1203c0.f14831v = paddingRight;
        int iResolveSizeAndState2 = View.resolveSizeAndState(Math.max(paddingRight, abstractC1203c0.getSuggestedMinimumWidth()), i55, 0);
        int i74 = (iResolveSizeAndState2 & 16777215) - abstractC1203c0.f14831v;
        if (z27 || (i74 != 0 && f10 > 0.0f)) {
            float f12 = abstractC1203c0.f14832w;
            if (f12 > 0.0f) {
                f10 = f12;
            }
            iArr5[3] = -1;
            iArr5[c9] = -1;
            iArr5[1] = -1;
            iArr5[0] = -1;
            iArr6[3] = -1;
            iArr6[c9] = -1;
            iArr6[1] = -1;
            iArr6[0] = -1;
            abstractC1203c0.f14831v = 0;
            iMax11 = -1;
            int i75 = 0;
            while (i75 < virtualChildCount2) {
                View childAt8 = abstractC1203c0.getChildAt(i75);
                if (childAt8 == null || childAt8.getVisibility() == 8) {
                    i11 = iResolveSizeAndState2;
                } else {
                    C1201b0 c1201b08 = (C1201b0) childAt8.getLayoutParams();
                    float f13 = ((LinearLayout.LayoutParams) c1201b08).weight;
                    if (f13 > 0.0f) {
                        int i76 = (int) ((i74 * f13) / f10);
                        f10 -= f13;
                        i74 -= i76;
                        i11 = iResolveSizeAndState2;
                        int childMeasureSpec2 = ViewGroup.getChildMeasureSpec(i5, abstractC1203c0.getPaddingBottom() + abstractC1203c0.getPaddingTop() + ((LinearLayout.LayoutParams) c1201b08).topMargin + ((LinearLayout.LayoutParams) c1201b08).bottomMargin, ((LinearLayout.LayoutParams) c1201b08).height);
                        if (((LinearLayout.LayoutParams) c1201b08).width == 0) {
                            i13 = 1073741824;
                            if (mode3 == 1073741824) {
                                if (i76 <= 0) {
                                    i76 = 0;
                                }
                                childAt8.measure(View.MeasureSpec.makeMeasureSpec(i76, 1073741824), childMeasureSpec2);
                            }
                            iCombineMeasuredStates3 = View.combineMeasuredStates(iCombineMeasuredStates3, childAt8.getMeasuredState() & (-16777216));
                        } else {
                            i13 = 1073741824;
                        }
                        int measuredWidth4 = childAt8.getMeasuredWidth() + i76;
                        if (measuredWidth4 < 0) {
                            measuredWidth4 = 0;
                        }
                        childAt8.measure(View.MeasureSpec.makeMeasureSpec(measuredWidth4, i13), childMeasureSpec2);
                        iCombineMeasuredStates3 = View.combineMeasuredStates(iCombineMeasuredStates3, childAt8.getMeasuredState() & (-16777216));
                    } else {
                        i11 = iResolveSizeAndState2;
                    }
                    if (z24) {
                        abstractC1203c0.f14831v = childAt8.getMeasuredWidth() + ((LinearLayout.LayoutParams) c1201b08).leftMargin + ((LinearLayout.LayoutParams) c1201b08).rightMargin + abstractC1203c0.f14831v;
                    } else {
                        int i77 = abstractC1203c0.f14831v;
                        abstractC1203c0.f14831v = Math.max(i77, childAt8.getMeasuredWidth() + i77 + ((LinearLayout.LayoutParams) c1201b08).leftMargin + ((LinearLayout.LayoutParams) c1201b08).rightMargin);
                    }
                    boolean z31 = mode4 != 1073741824 && ((LinearLayout.LayoutParams) c1201b08).height == -1;
                    int i78 = ((LinearLayout.LayoutParams) c1201b08).topMargin + ((LinearLayout.LayoutParams) c1201b08).bottomMargin;
                    int measuredHeight4 = childAt8.getMeasuredHeight() + i78;
                    iMax11 = Math.max(iMax11, measuredHeight4);
                    if (!z31) {
                        i78 = measuredHeight4;
                    }
                    int iMax12 = Math.max(i69, i78);
                    if (z25) {
                        i12 = -1;
                        boolean z32 = ((LinearLayout.LayoutParams) c1201b08).height == -1;
                        if (!z29 && (baseline = childAt8.getBaseline()) != i12) {
                            int i79 = ((LinearLayout.LayoutParams) c1201b08).gravity;
                            if (i79 < 0) {
                                i79 = abstractC1203c0.f14830u;
                            }
                            int i80 = (((i79 & 112) >> 4) & (-2)) >> 1;
                            iArr5[i80] = Math.max(iArr5[i80], baseline);
                            iArr6[i80] = Math.max(iArr6[i80], measuredHeight4 - baseline);
                        }
                        z25 = z32;
                        i69 = iMax12;
                    } else {
                        i12 = -1;
                    }
                    if (!z29) {
                        z25 = z32;
                        i69 = iMax12;
                    }
                }
                i75++;
                iResolveSizeAndState2 = i11;
            }
            i8 = iResolveSizeAndState2;
            i9 = -16777216;
            abstractC1203c0.f14831v = abstractC1203c0.getPaddingRight() + abstractC1203c0.getPaddingLeft() + abstractC1203c0.f14831v;
            int i81 = iArr5[1];
            if (i81 == -1 && iArr5[0] == -1 && iArr5[c9] == -1 && iArr5[3] == -1) {
                i10 = 0;
            } else {
                i10 = 0;
                iMax11 = Math.max(iMax11, Math.max(iArr6[3], Math.max(iArr6[0], Math.max(iArr6[1], iArr6[c9]))) + Math.max(iArr5[3], Math.max(iArr5[0], Math.max(i81, iArr5[c9]))));
            }
            iMax = i69;
        } else {
            iMax = Math.max(i69, i70);
            if (z30 && mode3 != 1073741824) {
                for (int i82 = 0; i82 < virtualChildCount2; i82++) {
                    View childAt9 = abstractC1203c0.getChildAt(i82);
                    if (childAt9 != null && childAt9.getVisibility() != 8 && ((LinearLayout.LayoutParams) ((C1201b0) childAt9.getLayoutParams())).weight > 0.0f) {
                        childAt9.measure(View.MeasureSpec.makeMeasureSpec(iMax9, 1073741824), View.MeasureSpec.makeMeasureSpec(childAt9.getMeasuredHeight(), 1073741824));
                    }
                }
            }
            i8 = iResolveSizeAndState2;
            i9 = -16777216;
            i10 = 0;
        }
        if (!z25 && mode4 != 1073741824) {
            iMax11 = iMax;
        }
        abstractC1203c0.setMeasuredDimension(i8 | (iCombineMeasuredStates3 & i9), View.resolveSizeAndState(Math.max(abstractC1203c0.getPaddingBottom() + abstractC1203c0.getPaddingTop() + iMax11, abstractC1203c0.getSuggestedMinimumHeight()), i5, iCombineMeasuredStates3 << 16));
        if (z26) {
            int iMakeMeasureSpec3 = View.MeasureSpec.makeMeasureSpec(abstractC1203c0.getMeasuredHeight(), 1073741824);
            int i83 = i10;
            while (i83 < virtualChildCount2) {
                View childAt10 = abstractC1203c0.getChildAt(i83);
                if (childAt10.getVisibility() != 8) {
                    C1201b0 c1201b09 = (C1201b0) childAt10.getLayoutParams();
                    if (((LinearLayout.LayoutParams) c1201b09).height == -1) {
                        int i84 = ((LinearLayout.LayoutParams) c1201b09).width;
                        ((LinearLayout.LayoutParams) c1201b09).width = childAt10.getMeasuredWidth();
                        abstractC1203c0.measureChildWithMargins(childAt10, i55, 0, iMakeMeasureSpec3, 0);
                        ((LinearLayout.LayoutParams) c1201b09).width = i84;
                    }
                }
                i83++;
                abstractC1203c0 = this;
                i55 = i;
            }
        }
    }

    public void setBaselineAligned(boolean z8) {
        this.f14826q = z8;
    }

    public void setBaselineAlignedChildIndex(int i) {
        if (i >= 0 && i < getChildCount()) {
            this.f14827r = i;
            return;
        }
        throw new IllegalArgumentException("base aligned child index out of range (0, " + getChildCount() + ")");
    }

    public void setDividerDrawable(Drawable drawable) {
        if (drawable == this.f14822A) {
            return;
        }
        this.f14822A = drawable;
        if (drawable != null) {
            this.f14823B = drawable.getIntrinsicWidth();
            this.f14824C = drawable.getIntrinsicHeight();
        } else {
            this.f14823B = 0;
            this.f14824C = 0;
        }
        setWillNotDraw(drawable == null);
        requestLayout();
    }

    public void setDividerPadding(int i) {
        this.f14825E = i;
    }

    public void setGravity(int i) {
        if (this.f14830u != i) {
            if ((8388615 & i) == 0) {
                i |= 8388611;
            }
            if ((i & 112) == 0) {
                i |= 48;
            }
            this.f14830u = i;
            requestLayout();
        }
    }

    public void setHorizontalGravity(int i) {
        int i5 = i & 8388615;
        int i8 = this.f14830u;
        if ((8388615 & i8) != i5) {
            this.f14830u = i5 | ((-8388616) & i8);
            requestLayout();
        }
    }

    public void setMeasureWithLargestChildEnabled(boolean z8) {
        this.f14833x = z8;
    }

    public void setOrientation(int i) {
        if (this.f14829t != i) {
            this.f14829t = i;
            requestLayout();
        }
    }

    public void setShowDividers(int i) {
        if (i != this.D) {
            requestLayout();
        }
        this.D = i;
    }

    public void setVerticalGravity(int i) {
        int i5 = i & 112;
        int i8 = this.f14830u;
        if ((i8 & 112) != i5) {
            this.f14830u = i5 | (i8 & (-113));
            requestLayout();
        }
    }

    public void setWeightSum(float f3) {
        this.f14832w = Math.max(0.0f, f3);
    }

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