	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wtp_touch_event
_wtp_touch_event:                       ## @wtp_touch_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	32(%rsi), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.1:
	cmpq	$0, 40(%rbx)
	je	LBB0_2
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movl	(%rdi), %edi
	callq	_input_mt_get_slot_by_key
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_input_mt_slot
	movl	(%r14), %edi
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	callq	_input_mt_report_slot_state
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.3:
	movl	(%r14), %edi
	movq	_EV_ABS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%rbx), %rcx
	callq	_input_event
	movl	(%r14), %edi
	movl	(%r12), %esi
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rcx
	subq	8(%rbx), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	8(%rbx), %rcx
LBB0_6:
	callq	_input_event
	movl	(%r14), %edi
	movl	(%r12), %esi
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rbx), %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_event                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.no_dead_strip	_wtp_touch_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wtp_touch_event
_wtp_touch_event:                       ; @wtp_touch_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	w1, [x1, #32]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x0]
	bl	_input_mt_get_slot_by_key
	mov	x1, x0
	ldr	w0, [x20]
	bl	_input_mt_slot
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x19, #24]
	bl	_input_mt_report_slot_state
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.4:
Lloh3:
	adrp	x22, _EV_ABS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EV_ABS@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	x3, [x19, #16]
	bl	_input_event
	ldr	w0, [x20]
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	sub	x3, x8, x9
	b	LBB0_7
LBB0_6:
	ldr	x3, [x19, #8]
LBB0_7:
	bl	_input_event
	ldr	w0, [x20]
	ldr	w1, [x22]
Lloh11:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	x3, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_input_event
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.no_dead_strip	_wtp_touch_event
.subsections_via_symbols
