	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdaps_mousedev_poll
_hdaps_mousedev_poll:                   ## @hdaps_mousedev_poll
	.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	_hdaps_mtx@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_HDAPS_PORT_XPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDAPS_PORT_YPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	callq	___hdaps_read_pair
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	-16(%rbp), %rdx
	movq	_rest_x@GOTPCREL(%rip), %rax
	subq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	-12(%rbp), %rdx
	movq	_rest_y@GOTPCREL(%rip), %rax
	subq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	%rbx, %rdi
	callq	_input_sync
LBB0_2:
	movq	_hdaps_mtx@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hdaps_mtx,4,2                  ## @hdaps_mtx
	.comm	_HDAPS_PORT_XPOS,4,2            ## @HDAPS_PORT_XPOS
	.comm	_HDAPS_PORT_YPOS,4,2            ## @HDAPS_PORT_YPOS
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_rest_x,8,3                     ## @rest_x
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_rest_y,8,3                     ## @rest_y
	.no_dead_strip	_hdaps_mousedev_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdaps_mousedev_poll
_hdaps_mousedev_poll:                   ; @hdaps_mousedev_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x0, _hdaps_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _hdaps_mtx@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _HDAPS_PORT_XPOS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDAPS_PORT_XPOS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _HDAPS_PORT_YPOS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDAPS_PORT_YPOS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	bl	___hdaps_read_pair
	cbnz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _ABS_X@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldrsw	x8, [sp, #12]
Lloh11:
	adrp	x9, _rest_x@GOTPAGE
Lloh12:
	ldr	x9, [x9, _rest_x@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	sub	x2, x8, x9
	mov	x0, x19
	bl	_input_report_abs
Lloh14:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldrsw	x8, [sp, #8]
Lloh17:
	adrp	x9, _rest_y@GOTPAGE
Lloh18:
	ldr	x9, [x9, _rest_y@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	sub	x2, x8, x9
	mov	x0, x19
	bl	_input_report_abs
	mov	x0, x19
	bl	_input_sync
LBB0_2:
Lloh20:
	adrp	x0, _hdaps_mtx@GOTPAGE
Lloh21:
	ldr	x0, [x0, _hdaps_mtx@GOTPAGEOFF]
	bl	_mutex_unlock
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_hdaps_mtx,4,2                  ; @hdaps_mtx
	.comm	_HDAPS_PORT_XPOS,4,2            ; @HDAPS_PORT_XPOS
	.comm	_HDAPS_PORT_YPOS,4,2            ; @HDAPS_PORT_YPOS
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_rest_x,8,3                     ; @rest_x
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_rest_y,8,3                     ; @rest_y
	.no_dead_strip	_hdaps_mousedev_poll
.subsections_via_symbols
