package d2;

import android.view.MotionEvent;

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

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

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ androidx.compose.ui.viewinterop.c f15823p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(androidx.compose.ui.viewinterop.c cVar) {
            super(1);
            this.f15823p = cVar;
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final Boolean invoke(MotionEvent motionEvent) {
            boolean dispatchTouchEvent;
            switch (motionEvent.getActionMasked()) {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 6:
                    dispatchTouchEvent = this.f15823p.dispatchTouchEvent(motionEvent);
                    break;
                default:
                    dispatchTouchEvent = this.f15823p.dispatchGenericMotionEvent(motionEvent);
                    break;
            }
            return Boolean.valueOf(dispatchTouchEvent);
        }
    }

    public static final l1.i a(l1.i iVar, androidx.compose.ui.viewinterop.c cVar) {
        i0 i0Var = new i0();
        i0Var.l(new a(cVar));
        p0 p0Var = new p0();
        i0Var.m(p0Var);
        cVar.setOnRequestDisallowInterceptTouchEvent$ui_release(p0Var);
        return iVar.f(i0Var);
    }
}
