package w;

import androidx.constraintlayout.core.widgets.ConstraintAnchor$Type;

/* JADX INFO: loaded from: classes.dex */
public final class l extends m {
    @Override // w.m
    public final void V(int i10, int i11, int i12, int i13) {
        int iS = this.B0 + this.C0;
        int iM = this.f34109x0 + this.f34110y0;
        if (this.f34107w0 > 0) {
            iS += this.f34106v0[0].s();
            iM += this.f34106v0[0].m();
        }
        int iMax = Math.max(this.f34035d0, iS);
        int iMax2 = Math.max(this.f34037e0, iM);
        if (i10 != 1073741824) {
            i11 = i10 == Integer.MIN_VALUE ? Math.min(iMax, i11) : i10 == 0 ? iMax : 0;
        }
        if (i12 != 1073741824) {
            i13 = i12 == Integer.MIN_VALUE ? Math.min(iMax2, i13) : i12 == 0 ? iMax2 : 0;
        }
        this.E0 = i11;
        this.F0 = i13;
        Q(i11);
        N(i13);
        this.D0 = this.f34107w0 > 0;
    }

    @Override // w.d
    public final void c(u.f fVar, boolean z10) {
        super.c(fVar, z10);
        if (this.f34107w0 > 0) {
            d dVar = this.f34106v0[0];
            dVar.F();
            dVar.f34041g0 = 0.5f;
            dVar.f34039f0 = 0.5f;
            ConstraintAnchor$Type constraintAnchor$Type = ConstraintAnchor$Type.f1003a;
            dVar.f(constraintAnchor$Type, this, constraintAnchor$Type, 0);
            ConstraintAnchor$Type constraintAnchor$Type2 = ConstraintAnchor$Type.f1005c;
            dVar.f(constraintAnchor$Type2, this, constraintAnchor$Type2, 0);
            ConstraintAnchor$Type constraintAnchor$Type3 = ConstraintAnchor$Type.f1004b;
            dVar.f(constraintAnchor$Type3, this, constraintAnchor$Type3, 0);
            ConstraintAnchor$Type constraintAnchor$Type4 = ConstraintAnchor$Type.f1006d;
            dVar.f(constraintAnchor$Type4, this, constraintAnchor$Type4, 0);
        }
    }
}
