	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wtp_send_raw_xy_event
_wtp_send_raw_xy_event:                 ## @wtp_send_raw_xy_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rsi), %rsi
	callq	_wtp_touch_event
	movq	24(%rbx), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_wtp_touch_event
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_5
## %bb.2:
	movl	4(%r14), %edi
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%rbx), %ecx
	callq	_input_event
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
LBB0_3:
	cmpl	$2, (%rbx)
	jg	LBB0_4
LBB0_5:
	movl	4(%r14), %edi
	callq	_input_mt_sync_frame
	movl	4(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS,4,2 ## @HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.no_dead_strip	_wtp_send_raw_xy_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wtp_send_raw_xy_event
_wtp_send_raw_xy_event:                 ; @wtp_send_raw_xy_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x1, [x1, #24]
	bl	_wtp_touch_event
	ldr	x8, [x20, #24]
	add	x1, x8, #4
	mov	x0, x19
	bl	_wtp_touch_event
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x20, #16]
	bl	_input_event
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_4
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #2
	b.gt	LBB0_5
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_input_mt_sync_frame
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS,4,2 ; @HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.no_dead_strip	_wtp_send_raw_xy_event
.subsections_via_symbols
