package K;

import androidx.compose.runtime.Composition;
import androidx.compose.runtime.RecomposeScopeImpl;
import java.util.List;
import n.C2571F;
import o0.C2632c;
import v.C2997P0;
import w4.C3137A;
import x.EnumC3207z0;
import x4.AbstractC3252r;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class a1 implements J4.c {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Object f3786c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ Object f3787d;

    public /* synthetic */ a1(Object obj, int i6, Object obj2, int i7) {
        this.f3784a = i7;
        this.f3786c = obj;
        this.f3785b = i6;
        this.f3787d = obj2;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        switch (this.f3784a) {
            case 0:
                G0.p0 p0Var = (G0.p0) obj;
                b1 b1Var = (b1) this.f3786c;
                S0 s02 = (S0) b1Var.f3797d.invoke();
                T0.L l = s02 != null ? s02.f3742a : null;
                G0.q0 q0Var = (G0.q0) this.f3787d;
                C2632c c2632cF = AbstractC0454g0.f(p0Var, b1Var.f3795b, b1Var.f3796c, l, false, q0Var.f1998a);
                EnumC3207z0 enumC3207z0 = EnumC3207z0.f25984a;
                int i6 = q0Var.f1999b;
                P0 p02 = b1Var.f3794a;
                p02.a(enumC3207z0, c2632cF, this.f3785b, i6);
                G0.p0.r(p0Var, q0Var, 0, Math.round(-p02.f3721a.getFloatValue()));
                return C3137A.f25453a;
            case 1:
                n0.q focusProperties = (n0.q) obj;
                kotlin.jvm.internal.o.h(focusProperties, "$this$focusProperties");
                List list = (List) this.f3786c;
                boolean zIsEmpty = list.isEmpty();
                List list2 = (List) this.f3787d;
                int i7 = this.f3785b;
                focusProperties.e(!zIsEmpty ? (n0.x) list2.get(AbstractC3252r.A(list)) : (n0.x) list2.get(i7));
                focusProperties.g((n0.x) list2.get(i7));
                focusProperties.i((n0.x) list2.get(i7));
                focusProperties.b((n0.x) list2.get(i7));
                return C3137A.f25453a;
            case 2:
                return RecomposeScopeImpl.end$lambda$0$1((RecomposeScopeImpl) this.f3786c, this.f3785b, (C2571F) this.f3787d, (Composition) obj);
            default:
                G0.p0 p0Var2 = (G0.p0) obj;
                C2997P0 c2997p0 = (C2997P0) this.f3786c;
                int intValue = c2997p0.f24758a.f24767a.getIntValue();
                if (intValue < 0) {
                    intValue = 0;
                }
                int i8 = this.f3785b;
                if (intValue > i8) {
                    intValue = i8;
                }
                int i9 = -intValue;
                boolean z6 = c2997p0.f24759b;
                int i10 = z6 ? 0 : i9;
                if (!z6) {
                    i9 = 0;
                }
                G0.q0 q0Var2 = (G0.q0) this.f3787d;
                p0Var2.f1991a = true;
                G0.p0.w(p0Var2, q0Var2, i10, i9);
                p0Var2.f1991a = false;
                return C3137A.f25453a;
        }
    }

    public /* synthetic */ a1(Object obj, Object obj2, int i6, int i7) {
        this.f3784a = i7;
        this.f3786c = obj;
        this.f3787d = obj2;
        this.f3785b = i6;
    }
}
