	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmmouse_report_events
_vmmouse_report_events:                 ## @vmmouse_report_events
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_ABSPOINTER_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_VMMOUSE_CMD
	movq	_VMMOUSE_ERROR@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_PSMOUSE_FULL_PACKET@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_psmouse_err
	movq	_PSMOUSE_BAD_DATA@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ABSPOINTER_STATUS,4,2          ## @ABSPOINTER_STATUS
	.comm	_VMMOUSE_ERROR,4,2              ## @VMMOUSE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to fetch status data\n"

	.comm	_PSMOUSE_BAD_DATA,4,2           ## @PSMOUSE_BAD_DATA
	.comm	_ABSPOINTER_DATA,4,2            ## @ABSPOINTER_DATA
	.comm	_VMMOUSE_RELATIVE_PACKET,4,2    ## @VMMOUSE_RELATIVE_PACKET
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_VMMOUSE_LEFT_BUTTON,4,2        ## @VMMOUSE_LEFT_BUTTON
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_VMMOUSE_RIGHT_BUTTON,4,2       ## @VMMOUSE_RIGHT_BUTTON
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_VMMOUSE_MIDDLE_BUTTON,4,2      ## @VMMOUSE_MIDDLE_BUTTON
	.comm	_PSMOUSE_FULL_PACKET,4,2        ## @PSMOUSE_FULL_PACKET
	.no_dead_strip	_vmmouse_report_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmmouse_report_events
_vmmouse_report_events:                 ; @vmmouse_report_events
	.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	x19, x0
Lloh0:
	adrp	x8, _ABSPOINTER_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABSPOINTER_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_VMMOUSE_CMD
Lloh3:
	adrp	x8, _VMMOUSE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMMOUSE_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _PSMOUSE_FULL_PACKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PSMOUSE_FULL_PACKET@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_psmouse_err
Lloh10:
	adrp	x8, _PSMOUSE_BAD_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PSMOUSE_BAD_DATA@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ABSPOINTER_STATUS,4,2          ; @ABSPOINTER_STATUS
	.comm	_VMMOUSE_ERROR,4,2              ; @VMMOUSE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to fetch status data\n"

	.comm	_PSMOUSE_BAD_DATA,4,2           ; @PSMOUSE_BAD_DATA
	.comm	_ABSPOINTER_DATA,4,2            ; @ABSPOINTER_DATA
	.comm	_VMMOUSE_RELATIVE_PACKET,4,2    ; @VMMOUSE_RELATIVE_PACKET
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_VMMOUSE_LEFT_BUTTON,4,2        ; @VMMOUSE_LEFT_BUTTON
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_VMMOUSE_RIGHT_BUTTON,4,2       ; @VMMOUSE_RIGHT_BUTTON
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_VMMOUSE_MIDDLE_BUTTON,4,2      ; @VMMOUSE_MIDDLE_BUTTON
	.comm	_PSMOUSE_FULL_PACKET,4,2        ; @PSMOUSE_FULL_PACKET
	.no_dead_strip	_vmmouse_report_events
.subsections_via_symbols
