package e;

import C0.B;
import E3.v;
import F.C0168w;
import I0.AbstractC0303l;
import I0.H;
import I0.H0;
import I0.I0;
import J0.A;
import android.graphics.Canvas;
import androidx.compose.runtime.snapshots.SnapshotStateList;
import androidx.lifecycle.InterfaceC1113w;
import androidx.navigation.C1137l;
import d.C1818B;
import j2.C2332j;
import j2.C2338p;
import k1.y;
import kotlin.jvm.internal.C;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import n0.E;
import p.C2676t;
import p.EnumC2649K;
import p.X;
import p.Y;
import p.Z;
import p.e0;
import p0.AbstractC2697c;
import p0.InterfaceC2687E;
import p0.InterfaceC2712s;
import p0.U;
import p0.c0;
import q.C2803u0;
import r0.InterfaceC2866e;
import w4.C3137A;

/* JADX INFO: renamed from: e.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1950d extends p implements J4.c {

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C1950d(Object obj, Object obj2, Object obj3, int i6) {
        super(1);
        this.f16235a = i6;
        this.f16236b = obj;
        this.f16237c = obj2;
        this.f16238d = obj3;
    }

    /* JADX WARN: Type inference failed for: r0v25, types: [J4.c, kotlin.jvm.internal.p] */
    @Override // J4.c
    public final Object invoke(Object obj) {
        boolean zBooleanValue;
        switch (this.f16235a) {
            case 0:
                C1818B c1818b = (C1818B) this.f16236b;
                InterfaceC1113w interfaceC1113w = (InterfaceC1113w) this.f16237c;
                C1952f c1952f = (C1952f) this.f16238d;
                c1818b.a(interfaceC1113w, c1952f);
                return new C0168w(c1952f, 9);
            case 1:
                C1818B c1818b2 = (C1818B) this.f16236b;
                InterfaceC1113w interfaceC1113w2 = (InterfaceC1113w) this.f16237c;
                C1958l c1958l = (C1958l) this.f16238d;
                c1818b2.a(interfaceC1113w2, c1958l);
                return new C0168w(c1958l, 10);
            case 2:
                C1137l c1137l = (C1137l) this.f16237c;
                SnapshotStateList snapshotStateList = (SnapshotStateList) this.f16236b;
                snapshotStateList.add(c1137l);
                return new C2332j((C2338p) this.f16238d, c1137l, snapshotStateList);
            case 3:
                InterfaceC2712s interfaceC2712sC = ((InterfaceC2866e) obj).a0().c();
                y yVar = (y) this.f16236b;
                if (yVar.getView().getVisibility() != 8) {
                    yVar.f19672B = true;
                    A a6 = ((H) this.f16237c).f2187r;
                    if (a6 == null) {
                        a6 = null;
                    }
                    if (a6 != null) {
                        Canvas canvasA = AbstractC2697c.a(interfaceC2712sC);
                        a6.getAndroidViewsHandler$ui().getClass();
                        ((y) this.f16238d).draw(canvasA);
                    }
                    yVar.f19672B = false;
                }
                return C3137A.f25453a;
            case 4:
                I0 i02 = (I0) obj;
                l0.f fVar = (l0.f) i02;
                l0.f fVar2 = (l0.f) this.f16237c;
                fVar2.getClass();
                if (!((l0.b) ((A) AbstractC0303l.u(fVar2)).m10getDragAndDropManager()).f20134b.contains(fVar) || !W0.e.e(fVar, W.a.h0((B) this.f16238d))) {
                    return H0.f2196a;
                }
                ((C) this.f16236b).f20115a = i02;
                return H0.f2198c;
            case 5:
                E e6 = (E) obj;
                if (o.c(e6, (E) this.f16236b)) {
                    zBooleanValue = false;
                } else {
                    if (o.c(e6, ((n0.o) this.f16237c).f21532c)) {
                        throw new IllegalStateException("Focus search landed at the root.");
                    }
                    zBooleanValue = ((Boolean) ((p) this.f16238d).invoke(e6)).booleanValue();
                }
                return Boolean.valueOf(zBooleanValue);
            case 6:
                return new C2332j((SnapshotStateList) this.f16236b, this.f16237c, (C2676t) this.f16238d);
            case 7:
                InterfaceC2687E interfaceC2687E = (InterfaceC2687E) obj;
                C2803u0 c2803u0 = (C2803u0) this.f16236b;
                U u6 = (U) interfaceC2687E;
                u6.d(c2803u0 != null ? ((Number) c2803u0.getValue()).floatValue() : 1.0f);
                C2803u0 c2803u02 = (C2803u0) this.f16237c;
                u6.w(c2803u02 != null ? ((Number) c2803u02.getValue()).floatValue() : 1.0f);
                u6.z(c2803u02 != null ? ((Number) c2803u02.getValue()).floatValue() : 1.0f);
                C2803u0 c2803u03 = (C2803u0) this.f16238d;
                u6.J(c2803u03 != null ? ((c0) c2803u03.getValue()).f22907a : c0.f22905b);
                return C3137A.f25453a;
            default:
                int iOrdinal = ((EnumC2649K) obj).ordinal();
                c0 c0Var = null;
                X x6 = (X) this.f16237c;
                Z z6 = (Z) this.f16238d;
                if (iOrdinal == 0) {
                    e0 e0Var = ((Y) x6).f22691b.f22781d;
                    if (e0Var != null) {
                        c0Var = new c0(e0Var.f22729b);
                    } else {
                        e0 e0Var2 = z6.f22694a.f22781d;
                        if (e0Var2 != null) {
                            c0Var = new c0(e0Var2.f22729b);
                        }
                    }
                } else if (iOrdinal == 1) {
                    c0Var = (c0) this.f16236b;
                } else {
                    if (iOrdinal != 2) {
                        throw new v();
                    }
                    e0 e0Var3 = z6.f22694a.f22781d;
                    if (e0Var3 != null) {
                        c0Var = new c0(e0Var3.f22729b);
                    } else {
                        e0 e0Var4 = ((Y) x6).f22691b.f22781d;
                        if (e0Var4 != null) {
                            c0Var = new c0(e0Var4.f22729b);
                        }
                    }
                }
                return new c0(c0Var != null ? c0Var.f22907a : c0.f22905b);
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public C1950d(E e6, n0.o oVar, J4.c cVar) {
        super(1);
        this.f16235a = 5;
        this.f16236b = e6;
        this.f16237c = oVar;
        this.f16238d = (p) cVar;
    }
}
