	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan_kb                 ## -- Begin function matrix_scan_kb
	.p2align	4, 0x90
_matrix_scan_kb:                        ## @matrix_scan_kb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_queue_for_send@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$0, (%rax)
LBB0_2:
	movq	_counterst@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	leal	1024(%rcx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	andl	$-1024, %esi                    ## imm = 0xFC00
	negl	%esi
	addl	%esi, %ecx
	incl	%ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	jmp	_matrix_scan_user               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_queue_for_send,4,2             ## @queue_for_send
	.comm	_counterst,4,2                  ## @counterst
	.comm	_DISPLAYOFF,4,2                 ## @DISPLAYOFF
	.comm	_ScreenOffInterval,8,3          ## @ScreenOffInterval
	.comm	_last_flush,4,2                 ## @last_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan_kb                 ; -- Begin function matrix_scan_kb
	.p2align	2
_matrix_scan_kb:                        ; @matrix_scan_kb
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _queue_for_send@GOTPAGE
Lloh1:
	ldr	x8, [x8, _queue_for_send@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
	str	wzr, [x8]
LBB0_2:
Lloh2:
	adrp	x8, _counterst@GOTPAGE
Lloh3:
	ldr	x8, [x8, _counterst@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	negs	w10, w9
	and	w10, w10, #0x3ff
	and	w9, w9, #0x3ff
	csneg	w9, w9, w10, mi
	str	w9, [x8]
	b	_matrix_scan_user
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_queue_for_send,4,2             ; @queue_for_send
	.comm	_counterst,4,2                  ; @counterst
	.comm	_DISPLAYOFF,4,2                 ; @DISPLAYOFF
	.comm	_ScreenOffInterval,8,3          ; @ScreenOffInterval
	.comm	_last_flush,4,2                 ; @last_flush
.subsections_via_symbols
