package androidx.compose.foundation;

import androidx.compose.ui.platform.q1;
import androidx.compose.ui.platform.r1;
import androidx.compose.ui.platform.t1;
import j2.s0;
import kotlin.jvm.internal.v;
import rm.n0;
import z.s;
import z.w;

/* loaded from: classes.dex */
public abstract class FocusableKt {

    /* renamed from: a, reason: collision with root package name */
    private static final q1 f1495a;

    /* renamed from: b, reason: collision with root package name */
    private static final FocusableKt$FocusableInNonTouchModeElement$1 f1496b;

    /* loaded from: classes.dex */
    static final class a extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final a f1497p = new a();

        a() {
            super(1);
        }

        public final void a(androidx.compose.ui.focus.i iVar) {
            iVar.x(false);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((androidx.compose.ui.focus.i) obj);
            return n0.f34904a;
        }
    }

    /* loaded from: classes.dex */
    public static final class b extends v implements dn.l {
        public b() {
            super(1);
        }

        public final void a(t1 t1Var) {
            throw null;
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            android.support.v4.media.session.b.a(obj);
            a(null);
            return n0.f34904a;
        }
    }

    /* JADX WARN: Type inference failed for: r0v1, types: [androidx.compose.foundation.FocusableKt$FocusableInNonTouchModeElement$1] */
    static {
        f1495a = new q1(r1.b() ? new b() : r1.a());
        f1496b = new s0() { // from class: androidx.compose.foundation.FocusableKt$FocusableInNonTouchModeElement$1
            public boolean equals(Object other) {
                return this == other;
            }

            public int hashCode() {
                return w.a(this);
            }

            @Override // j2.s0
            /* renamed from: k, reason: merged with bridge method [inline-methods] */
            public s c() {
                return new s();
            }

            @Override // j2.s0
            /* renamed from: l, reason: merged with bridge method [inline-methods] */
            public void j(s sVar) {
            }
        };
    }

    public static final l1.i a(l1.i iVar) {
        return androidx.compose.ui.focus.g.a(androidx.compose.ui.focus.k.a(iVar.f(f1495a), a.f1497p));
    }

    public static final l1.i b(l1.i iVar, boolean z10, d0.l lVar) {
        return iVar.f(z10 ? new FocusableElement(lVar) : l1.i.f27362a);
    }

    public static /* synthetic */ l1.i c(l1.i iVar, boolean z10, d0.l lVar, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            z10 = true;
        }
        if ((i10 & 2) != 0) {
            lVar = null;
        }
        return b(iVar, z10, lVar);
    }
}
