	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pointing_device_task           ## -- Begin function pointing_device_task
	.p2align	4, 0x90
_pointing_device_task:                  ## @pointing_device_task
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	leaq	-32(%rbp), %rdi
	xorl	%eax, %eax
	callq	_pointing_device_get_report
	movq	_lastCursor@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_timer_elapsed
	movq	_cursorTimeout@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_timer_read
	movl	%eax, (%rbx)
	movq	_xPin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_xOrigin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_maxCursorSpeed@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_xPolarity@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_axisToMouseComponent
	movq	%rax, -16(%rbp)
	movq	_yPin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_yOrigin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	_yPolarity@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_axisToMouseComponent
	movq	%rax, -24(%rbp)
LBB0_2:
	movq	_swPin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_readPin
	movq	_MOUSE_BTN1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	notl	%ecx
	andl	%ecx, -32(%rbp)
	jmp	LBB0_5
LBB0_3:
	orl	%ecx, -32(%rbp)
LBB0_5:
	movq	-16(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-32(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	callq	_pointing_device_set_report
	xorl	%eax, %eax
	callq	_pointing_device_send
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lastCursor,4,2                 ## @lastCursor
	.comm	_cursorTimeout,8,3              ## @cursorTimeout
	.comm	_xPin,4,2                       ## @xPin
	.comm	_xOrigin,4,2                    ## @xOrigin
	.comm	_maxCursorSpeed,4,2             ## @maxCursorSpeed
	.comm	_xPolarity,4,2                  ## @xPolarity
	.comm	_yPin,4,2                       ## @yPin
	.comm	_yOrigin,4,2                    ## @yOrigin
	.comm	_yPolarity,4,2                  ## @yPolarity
	.comm	_swPin,4,2                      ## @swPin
	.comm	_MOUSE_BTN1,4,2                 ## @MOUSE_BTN1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pointing_device_task           ; -- Begin function pointing_device_task
	.p2align	2
_pointing_device_task:                  ; @pointing_device_task
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x8, sp, #24
	bl	_pointing_device_get_report
Lloh0:
	adrp	x19, _lastCursor@GOTPAGE
Lloh1:
	ldr	x19, [x19, _lastCursor@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_timer_elapsed
Lloh2:
	adrp	x8, _cursorTimeout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cursorTimeout@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
	bl	_timer_read
	str	w0, [x19]
Lloh5:
	adrp	x8, _xPin@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xPin@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _xOrigin@GOTPAGE
Lloh9:
	ldr	x8, [x8, _xOrigin@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x19, _maxCursorSpeed@GOTPAGE
Lloh12:
	ldr	x19, [x19, _maxCursorSpeed@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh13:
	adrp	x8, _xPolarity@GOTPAGE
Lloh14:
	ldr	x8, [x8, _xPolarity@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	bl	_axisToMouseComponent
	str	x0, [sp, #40]
Lloh16:
	adrp	x8, _yPin@GOTPAGE
Lloh17:
	ldr	x8, [x8, _yPin@GOTPAGEOFF]
Lloh18:
	adrp	x9, _yOrigin@GOTPAGE
Lloh19:
	ldr	x9, [x9, _yOrigin@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	ldr	w1, [x9]
	ldr	w2, [x19]
Lloh22:
	adrp	x8, _yPolarity@GOTPAGE
Lloh23:
	ldr	x8, [x8, _yPolarity@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	bl	_axisToMouseComponent
	str	x0, [sp, #32]
LBB0_2:
Lloh25:
	adrp	x8, _swPin@GOTPAGE
Lloh26:
	ldr	x8, [x8, _swPin@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_readPin
Lloh28:
	adrp	x8, _MOUSE_BTN1@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MOUSE_BTN1@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w9, [sp, #24]
	bic	w8, w9, w8
	b	LBB0_5
LBB0_4:
	ldr	w9, [sp, #24]
	orr	w8, w9, w8
LBB0_5:
	str	w8, [sp, #24]
	ldur	q0, [sp, #24]
	str	q0, [sp]
	ldr	x8, [sp, #40]
	str	x8, [sp, #16]
	mov	x0, sp
	bl	_pointing_device_set_report
	bl	_pointing_device_send
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_lastCursor,4,2                 ; @lastCursor
	.comm	_cursorTimeout,8,3              ; @cursorTimeout
	.comm	_xPin,4,2                       ; @xPin
	.comm	_xOrigin,4,2                    ; @xOrigin
	.comm	_maxCursorSpeed,4,2             ; @maxCursorSpeed
	.comm	_xPolarity,4,2                  ; @xPolarity
	.comm	_yPin,4,2                       ; @yPin
	.comm	_yOrigin,4,2                    ; @yOrigin
	.comm	_yPolarity,4,2                  ; @yPolarity
	.comm	_swPin,4,2                      ; @swPin
	.comm	_MOUSE_BTN1,4,2                 ; @MOUSE_BTN1
.subsections_via_symbols
