	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan_user               ## -- Begin function matrix_scan_user
	.p2align	4, 0x90
_matrix_scan_user:                      ## @matrix_scan_user
	.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	_reset_timer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_timer_elapsed
	movq	_reset_time@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_reset_chars
	xorl	%eax, %eax
	callq	_timer_read
	movl	%eax, (%rbx)
	jmp	LBB0_2
LBB0_3:
	movq	_last_timer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_timer_elapsed
	movq	_interval_time@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_4
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	addl	%ecx, (%rbx)
	movq	_timer_pos@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	leal	4(%rax), %edi
	movl	%edi, (%r14)
	cmpl	$251, %eax
	jl	LBB0_6
## %bb.5:
	movl	$0, (%r14)
	xorl	%eax, %eax
	callq	_timer_read
	movl	%eax, (%rbx)
	movl	(%r14), %edi
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_animate_cursor                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_reset_timer,4,2                ## @reset_timer
	.comm	_reset_time,8,3                 ## @reset_time
	.comm	_last_timer,4,2                 ## @last_timer
	.comm	_interval_time,8,3              ## @interval_time
	.comm	_timer_pos,4,2                  ## @timer_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan_user               ; -- Begin function matrix_scan_user
	.p2align	2
_matrix_scan_user:                      ; @matrix_scan_user
	.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
Lloh0:
	adrp	x19, _reset_timer@GOTPAGE
Lloh1:
	ldr	x19, [x19, _reset_timer@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_timer_elapsed
Lloh2:
	adrp	x8, _reset_time@GOTPAGE
Lloh3:
	ldr	x8, [x8, _reset_time@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
	bl	_reset_chars
	bl	_timer_read
	str	w0, [x19]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x19, _last_timer@GOTPAGE
Lloh6:
	ldr	x19, [x19, _last_timer@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_timer_elapsed
Lloh7:
	adrp	x8, _interval_time@GOTPAGE
Lloh8:
	ldr	x8, [x8, _interval_time@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
Lloh10:
	adrp	x20, _timer_pos@GOTPAGE
Lloh11:
	ldr	x20, [x20, _timer_pos@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w0, w8, #4
	str	w0, [x20]
	cmp	w8, #251
	b.lt	LBB0_6
; %bb.5:
	str	wzr, [x20]
	bl	_timer_read
	str	w0, [x19]
	ldr	w0, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_animate_cursor
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_reset_timer,4,2                ; @reset_timer
	.comm	_reset_time,8,3                 ; @reset_time
	.comm	_last_timer,4,2                 ; @last_timer
	.comm	_interval_time,8,3              ; @interval_time
	.comm	_timer_pos,4,2                  ; @timer_pos
.subsections_via_symbols
