package l0;

import y0.l2;
import y0.m;
import y0.x2;

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class a extends kotlin.jvm.internal.v implements dn.a {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ a0.i f26926p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(a0.i iVar) {
            super(0);
            this.f26926p = iVar;
        }

        @Override // dn.a
        public /* bridge */ /* synthetic */ Object invoke() {
            m309invoke();
            return rm.n0.f34904a;
        }

        /* renamed from: invoke, reason: collision with other method in class */
        public final void m309invoke() {
            a0.j.a(this.f26926p);
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class b extends kotlin.jvm.internal.v implements dn.p {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ r0.f0 f26927p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ dn.p f26928q;

        /* renamed from: r, reason: collision with root package name */
        final /* synthetic */ int f26929r;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(r0.f0 f0Var, dn.p pVar, int i10) {
            super(2);
            this.f26927p = f0Var;
            this.f26928q = pVar;
            this.f26929r = i10;
        }

        public final void a(y0.m mVar, int i10) {
            h.a(this.f26927p, this.f26928q, mVar, l2.a(this.f26929r | 1));
        }

        @Override // dn.p
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            a((y0.m) obj, ((Number) obj2).intValue());
            return rm.n0.f34904a;
        }
    }

    public static final void a(r0.f0 f0Var, dn.p pVar, y0.m mVar, int i10) {
        int i11;
        y0.m r10 = mVar.r(-1985516685);
        if ((i10 & 6) == 0) {
            i11 = (r10.m(f0Var) ? 4 : 2) | i10;
        } else {
            i11 = i10;
        }
        if ((i10 & 48) == 0) {
            i11 |= r10.m(pVar) ? 32 : 16;
        }
        if ((i11 & 19) == 18 && r10.v()) {
            r10.A();
        } else {
            if (y0.p.H()) {
                y0.p.Q(-1985516685, i11, -1, "androidx.compose.foundation.text.ContextMenuArea (ContextMenu.android.kt:35)");
            }
            Object f10 = r10.f();
            m.a aVar = y0.m.f51621a;
            if (f10 == aVar.a()) {
                f10 = new a0.i(null, 1, null);
                r10.I(f10);
            }
            a0.i iVar = (a0.i) f10;
            Object f11 = r10.f();
            if (f11 == aVar.a()) {
                f11 = new a(iVar);
                r10.I(f11);
            }
            a0.a.b(iVar, (dn.a) f11, r0.h0.a(f0Var, iVar), null, f0Var.E(), pVar, r10, ((i11 << 12) & 458752) | 54, 8);
            if (y0.p.H()) {
                y0.p.P();
            }
        }
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new b(f0Var, pVar, i10));
        }
    }
}
