package o;

import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Ce, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0056Ce implements InterfaceC2235qO {
    public final C0159Gd a;
    public final boolean b;

    public C0056Ce(C0159Gd c0159Gd, boolean z) {
        this.a = c0159Gd;
        this.b = z;
    }

    @Override // o.InterfaceC2235qO
    public final InterfaceC2329rO a(final InterfaceC2424sO interfaceC2424sO, final List list, long j) {
        boolean zIsEmpty = list.isEmpty();
        C0358Nv c0358Nv = C0358Nv.l;
        if (zIsEmpty) {
            return interfaceC2424sO.H(C0634Yl.j(j), C0634Yl.i(j), c0358Nv, new C1072e7(18));
        }
        long j2 = this.b ? j : j & (-8589934589L);
        if (list.size() == 1) {
            final InterfaceC1760lO interfaceC1760lO = (InterfaceC1760lO) list.get(0);
            interfaceC1760lO.k();
            final VW vwC = interfaceC1760lO.c(j2);
            final int iMax = Math.max(C0634Yl.j(j), vwC.l);
            final int iMax2 = Math.max(C0634Yl.i(j), vwC.m);
            return interfaceC2424sO.H(iMax, iMax2, c0358Nv, new OC() { // from class: o.Ae
                @Override // o.OC
                public final Object g(Object obj) {
                    AbstractC3109ze.b((UW) obj, vwC, interfaceC1760lO, interfaceC2424sO.getLayoutDirection(), iMax, iMax2, this.a);
                    return Oh0.a;
                }
            });
        }
        final VW[] vwArr = new VW[list.size()];
        final C3058z10 c3058z10 = new C3058z10();
        c3058z10.l = C0634Yl.j(j);
        final C3058z10 c3058z102 = new C3058z10();
        c3058z102.l = C0634Yl.i(j);
        int size = list.size();
        for (int i = 0; i < size; i++) {
            InterfaceC1760lO interfaceC1760lO2 = (InterfaceC1760lO) list.get(i);
            interfaceC1760lO2.k();
            VW vwC2 = interfaceC1760lO2.c(j2);
            vwArr[i] = vwC2;
            c3058z10.l = Math.max(c3058z10.l, vwC2.l);
            c3058z102.l = Math.max(c3058z102.l, vwC2.m);
        }
        return interfaceC2424sO.H(c3058z10.l, c3058z102.l, c0358Nv, new OC() { // from class: o.Be
            @Override // o.OC
            public final Object g(Object obj) {
                UW uw = (UW) obj;
                VW[] vwArr2 = vwArr;
                int length = vwArr2.length;
                int i2 = 0;
                int i3 = 0;
                while (i3 < length) {
                    int i4 = i2;
                    AbstractC3109ze.b(uw, vwArr2[i3], (InterfaceC1760lO) list.get(i4), interfaceC2424sO.getLayoutDirection(), c3058z10.l, c3058z102.l, this.a);
                    i3++;
                    i2 = i4 + 1;
                }
                return Oh0.a;
            }
        });
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C0056Ce)) {
            return false;
        }
        C0056Ce c0056Ce = (C0056Ce) obj;
        return this.a.equals(c0056Ce.a) && this.b == c0056Ce.b;
    }

    public final int hashCode() {
        return Boolean.hashCode(this.b) + (this.a.hashCode() * 31);
    }

    public final String toString() {
        return "BoxMeasurePolicy(alignment=" + this.a + ", propagateMinConstraints=" + this.b + ')';
    }
}
