	.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	_delay_key_stat@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_key_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_timer_elapsed
	movq	_DELAY_TIME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
## %bb.2:
	movq	__BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_register_delay_code
	movq	_delay_key_pressed@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_unregister_delay_code
LBB0_4:
	movq	_layer_state_old@GOTPCREL(%rip), %r14
	movq	_layer_state@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	%eax, (%r14)
	je	LBB0_8
## %bb.5:
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.6:
	cltq
	leaq	l_switch.table.matrix_scan_user(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	callq	_register_delay_code
LBB0_7:
	movl	(%rbx), %eax
	movl	%eax, (%r14)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_delay_key_stat,8,3             ## @delay_key_stat
	.comm	_key_timer,4,2                  ## @key_timer
	.comm	_DELAY_TIME,8,3                 ## @DELAY_TIME
	.comm	__BASE,4,2                      ## @_BASE
	.comm	_delay_key_pressed,4,2          ## @delay_key_pressed
	.comm	_layer_state_old,4,2            ## @layer_state_old
	.comm	_layer_state,4,2                ## @layer_state
	.comm	__OPT,4,2                       ## @_OPT
	.comm	__NUM,4,2                       ## @_NUM
	.comm	__SYM,4,2                       ## @_SYM
	.comm	__FUNC,4,2                      ## @_FUNC
	.comm	_RGBAnimation,4,2               ## @RGBAnimation
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.matrix_scan_user
l_switch.table.matrix_scan_user:
	.quad	__SYM
	.quad	__OPT
	.quad	__NUM
	.quad	__FUNC

.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	x8, _delay_key_stat@GOTPAGE
Lloh1:
	ldr	x8, [x8, _delay_key_stat@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _key_timer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _key_timer@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_timer_elapsed
Lloh6:
	adrp	x8, _DELAY_TIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DELAY_TIME@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, __BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, __BASE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_register_delay_code
Lloh12:
	adrp	x8, _delay_key_pressed@GOTPAGE
Lloh13:
	ldr	x8, [x8, _delay_key_pressed@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.3:
	bl	_unregister_delay_code
LBB0_4:
Lloh15:
	adrp	x19, _layer_state_old@GOTPAGE
Lloh16:
	ldr	x19, [x19, _layer_state_old@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh17:
	adrp	x20, _layer_state@GOTPAGE
Lloh18:
	ldr	x20, [x20, _layer_state@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w9, w8
	b.eq	LBB0_8
; %bb.5:
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.6:
Lloh19:
	adrp	x9, l_switch.table.matrix_scan_user@PAGE
Lloh20:
	add	x9, x9, l_switch.table.matrix_scan_user@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w0, [x8]
	bl	_register_delay_code
LBB0_7:
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_delay_key_stat,8,3             ; @delay_key_stat
	.comm	_key_timer,4,2                  ; @key_timer
	.comm	_DELAY_TIME,8,3                 ; @DELAY_TIME
	.comm	__BASE,4,2                      ; @_BASE
	.comm	_delay_key_pressed,4,2          ; @delay_key_pressed
	.comm	_layer_state_old,4,2            ; @layer_state_old
	.comm	_layer_state,4,2                ; @layer_state
	.comm	__OPT,4,2                       ; @_OPT
	.comm	__NUM,4,2                       ; @_NUM
	.comm	__SYM,4,2                       ; @_SYM
	.comm	__FUNC,4,2                      ; @_FUNC
	.comm	_RGBAnimation,4,2               ; @RGBAnimation
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.matrix_scan_user
l_switch.table.matrix_scan_user:
	.quad	__SYM
	.quad	__OPT
	.quad	__NUM
	.quad	__FUNC

.subsections_via_symbols
