package K;

import G0.InterfaceC0279y;
import J0.m1;
import androidx.compose.runtime.MutableState;
import java.util.List;
import o0.C2632c;
import w4.C3137A;
import x4.AbstractC3251q;

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

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

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

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

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

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

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

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

    public /* synthetic */ B(Object obj, boolean z6, Object obj2, Object obj3, Object obj4, Object obj5, int i6) {
        this.f3560a = i6;
        this.f3562c = obj;
        this.f3561b = z6;
        this.f3563d = obj2;
        this.f3564e = obj3;
        this.f3565f = obj4;
        this.f3566j = obj5;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // J4.c
    public final Object invoke(Object obj) {
        Z0.E e6;
        InterfaceC0279y interfaceC0279y;
        InterfaceC0279y interfaceC0279y2;
        switch (this.f3560a) {
            case 0:
                InterfaceC0279y interfaceC0279y3 = (InterfaceC0279y) obj;
                C0464l0 c0464l0 = (C0464l0) this.f3562c;
                c0464l0.f3896h = interfaceC0279y3;
                S0 s0D = c0464l0.d();
                if (s0D != null) {
                    s0D.f3743b = interfaceC0279y3;
                }
                if (this.f3561b) {
                    Y yA = c0464l0.a();
                    Y y6 = Y.f3766b;
                    V.i0 i0Var = (V.i0) this.f3564e;
                    Z0.y yVar = (Z0.y) this.f3565f;
                    MutableState mutableState = c0464l0.f3902o;
                    if (yA == y6) {
                        if (((Boolean) c0464l0.l.getValue()).booleanValue() && ((Boolean) ((J0.M0) ((m1) this.f3563d)).f2900c.getValue()).booleanValue()) {
                            i0Var.t();
                        } else {
                            i0Var.q();
                        }
                        c0464l0.f3900m.setValue(Boolean.valueOf(L4.a.V(i0Var, true)));
                        c0464l0.f3901n.setValue(Boolean.valueOf(L4.a.V(i0Var, false)));
                        mutableState.setValue(Boolean.valueOf(T0.N.c(yVar.f9137b)));
                    } else if (c0464l0.a() == Y.f3767c) {
                        mutableState.setValue(Boolean.valueOf(L4.a.V(i0Var, true)));
                    }
                    Z0.r rVar = (Z0.r) this.f3566j;
                    V.f(c0464l0, yVar, rVar);
                    S0 s0D2 = c0464l0.d();
                    if (s0D2 != null && (e6 = c0464l0.f3893e) != null && c0464l0.b() && (interfaceC0279y = s0D2.f3743b) != null && interfaceC0279y.w() && (interfaceC0279y2 = s0D2.f3744c) != null) {
                        C0.O o6 = new C0.O(interfaceC0279y, 1);
                        C2632c c2632cQ = android.support.v4.media.session.b.Q(interfaceC0279y);
                        C2632c c2632cD0 = interfaceC0279y.d0(interfaceC0279y2, false);
                        if (kotlin.jvm.internal.o.c((Z0.E) e6.f9069a.f9140b.get(), e6)) {
                            e6.f9070b.g(yVar, rVar, s0D2.f3742a, o6, c2632cQ, c2632cD0);
                        }
                    }
                }
                break;
            default:
                n0.q focusProperties = (n0.q) obj;
                kotlin.jvm.internal.o.h(focusProperties, "$this$focusProperties");
                n0.x xVar = (n0.x) this.f3562c;
                focusProperties.i(xVar);
                focusProperties.b(xVar);
                boolean z6 = this.f3561b;
                n0.x xVar2 = (n0.x) this.f3563d;
                n0.x xVar3 = (n0.x) this.f3564e;
                focusProperties.e(z6 ? xVar2 : xVar3);
                if (!((List) this.f3565f).isEmpty()) {
                    xVar2 = (n0.x) AbstractC3251q.e0((List) this.f3566j);
                } else if (!z6) {
                    xVar2 = xVar3;
                }
                focusProperties.g(xVar2);
                break;
        }
        return C3137A.f25453a;
    }
}
