package androidx.compose.foundation;

import androidx.compose.ui.platform.r1;
import androidx.compose.ui.platform.t1;
import dn.q;
import kotlin.jvm.internal.v;
import rm.n0;
import y0.h2;
import y0.p;
import y0.x;
import z.b0;
import z.c0;
import z.d0;

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

    /* renamed from: a, reason: collision with root package name */
    private static final h2 f1752a = x.f(a.f1753p);

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

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

        a() {
            super(0);
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final b0 invoke() {
            return g.f1595a;
        }
    }

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

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ d0.j f1754p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ b0 f1755q;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public b(d0.j jVar, b0 b0Var) {
            super(1);
            this.f1754p = jVar;
            this.f1755q = b0Var;
        }

        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 INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class c extends v implements q {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ b0 f1756p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ d0.j f1757q;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(b0 b0Var, d0.j jVar) {
            super(3);
            this.f1756p = b0Var;
            this.f1757q = jVar;
        }

        public final l1.i a(l1.i iVar, y0.m mVar, int i10) {
            mVar.S(-353972293);
            if (p.H()) {
                p.Q(-353972293, i10, -1, "androidx.compose.foundation.indication.<anonymous> (Indication.kt:182)");
            }
            c0 a10 = this.f1756p.a(this.f1757q, mVar, 0);
            boolean R = mVar.R(a10);
            Object f10 = mVar.f();
            if (R || f10 == y0.m.f51621a.a()) {
                f10 = new k(a10);
                mVar.I(f10);
            }
            k kVar = (k) f10;
            if (p.H()) {
                p.P();
            }
            mVar.H();
            return kVar;
        }

        @Override // dn.q
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2, Object obj3) {
            return a((l1.i) obj, (y0.m) obj2, ((Number) obj3).intValue());
        }
    }

    public static final h2 a() {
        return f1752a;
    }

    public static final l1.i b(l1.i iVar, d0.j jVar, b0 b0Var) {
        if (b0Var == null) {
            return iVar;
        }
        if (b0Var instanceof d0) {
            return iVar.f(new IndicationModifierElement(jVar, (d0) b0Var));
        }
        return l1.h.b(iVar, r1.b() ? new b(jVar, b0Var) : r1.a(), new c(b0Var, jVar));
    }
}
