package I0;

import androidx.compose.runtime.collection.MutableVector;
import java.util.List;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class X extends kotlin.jvm.internal.p implements J4.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f2297a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Y f2298b;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ X(Y y6, int i6) {
        super(0);
        this.f2297a = i6;
        this.f2298b = y6;
    }

    @Override // J4.a
    public final Object invoke() {
        G0.p0 placementScope;
        switch (this.f2297a) {
            case 0:
                Y y6 = this.f2298b;
                L l = y6.f2313f;
                l.f2221i = 0;
                MutableVector mutableVectorX = l.f2213a.x();
                Object[] objArr = mutableVectorX.content;
                int size = mutableVectorX.getSize();
                for (int i6 = 0; i6 < size; i6++) {
                    Y y7 = ((H) objArr[i6]).f2163K.f2227p;
                    y7.f2315k = y7.l;
                    y7.l = Integer.MAX_VALUE;
                    y7.f2326w = false;
                    if (y7.f2318o == F.f2144b) {
                        y7.f2318o = F.f2145c;
                    }
                }
                L l6 = y6.f2313f;
                MutableVector mutableVectorX2 = l6.f2213a.x();
                Object[] objArr2 = mutableVectorX2.content;
                int size2 = mutableVectorX2.getSize();
                for (int i7 = 0; i7 < size2; i7++) {
                    ((H) objArr2[i7]).f2163K.f2227p.f2299A.f2203d = false;
                }
                boolean z6 = y6.l().f2247n;
                H h5 = l6.f2213a;
                if (z6) {
                    List listL = h5.l();
                    int size3 = listL.size();
                    for (int i8 = 0; i8 < size3; i8++) {
                        ((AbstractC0300j0) ((H) listL.get(i8)).f2162J.f2363e).f2247n = true;
                    }
                }
                y6.l().D0().c();
                if (y6.l().f2247n) {
                    List listL2 = h5.l();
                    int size4 = listL2.size();
                    for (int i9 = 0; i9 < size4; i9++) {
                        ((AbstractC0300j0) ((H) listL2.get(i9)).f2162J.f2363e).f2247n = false;
                    }
                }
                MutableVector mutableVectorX3 = h5.x();
                Object[] objArr3 = mutableVectorX3.content;
                int size5 = mutableVectorX3.getSize();
                for (int i10 = 0; i10 < size5; i10++) {
                    H h6 = (H) objArr3[i10];
                    if (h6.f2163K.f2227p.f2315k != h6.u()) {
                        h5.M();
                        h5.A();
                        if (h6.u() == Integer.MAX_VALUE) {
                            L l7 = h6.f2163K;
                            if (l7.f2215c || AbstractC0303l.o(h6)) {
                                U u6 = l7.f2228q;
                                kotlin.jvm.internal.o.e(u6);
                                u6.w0(false);
                            }
                            l7.f2227p.x0();
                        }
                    }
                }
                MutableVector mutableVectorX4 = h5.x();
                Object[] objArr4 = mutableVectorX4.content;
                int size6 = mutableVectorX4.getSize();
                for (int i11 = 0; i11 < size6; i11++) {
                    I i12 = ((H) objArr4[i11]).f2163K.f2227p.f2299A;
                    i12.f2204e = i12.f2203d;
                }
                break;
            case 1:
                Y y8 = this.f2298b;
                y8.f2313f.a().Q(y8.f2303E);
                break;
            default:
                Y y9 = this.f2298b;
                AbstractC0300j0 abstractC0300j0 = y9.f2313f.a().f2423t;
                L l8 = y9.f2313f;
                if (abstractC0300j0 == null || (placementScope = abstractC0300j0.f2248o) == null) {
                    placementScope = ((J0.A) K.a(l8.f2213a)).getPlacementScope();
                }
                J4.c cVar = y9.f2308J;
                if (cVar == null) {
                    AbstractC0300j0 abstractC0300j0A = l8.a();
                    long j4 = y9.f2309K;
                    float f6 = y9.f2310L;
                    placementScope.getClass();
                    G0.p0.b(abstractC0300j0A, placementScope);
                    abstractC0300j0A.s0(h1.j.c(j4, abstractC0300j0A.f2002e), f6, null);
                } else {
                    AbstractC0300j0 abstractC0300j0A2 = l8.a();
                    long j6 = y9.f2309K;
                    float f7 = y9.f2310L;
                    placementScope.getClass();
                    G0.p0.b(abstractC0300j0A2, placementScope);
                    abstractC0300j0A2.s0(h1.j.c(j6, abstractC0300j0A2.f2002e), f7, cVar);
                }
                break;
        }
        return C3137A.f25453a;
    }
}
