	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matirx_scan_kb                 ## -- Begin function matirx_scan_kb
	.p2align	4, 0x90
_matirx_scan_kb:                        ## @matirx_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	_RGB_INIT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_RGB_current_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_3
LBB0_2:
	movq	_rgblight_config@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_RGB_current_mode@GOTPCREL(%rip), %rcx
	movl	%edi, (%rcx)
	movl	$1, (%rax)
LBB0_3:
	callq	_rgblight_mode
	movq	_TOG_STATUS@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RGB_INIT,4,2                   ## @RGB_INIT
	.comm	_rgblight_config,4,2            ## @rgblight_config
	.comm	_RGB_current_mode,4,2           ## @RGB_current_mode
	.comm	_TOG_STATUS,4,2                 ## @TOG_STATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matirx_scan_kb                 ; -- Begin function matirx_scan_kb
	.p2align	2
_matirx_scan_kb:                        ; @matirx_scan_kb
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _RGB_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RGB_INIT@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _RGB_current_mode@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RGB_current_mode@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x9, _rgblight_config@GOTPAGE
Lloh6:
	ldr	x9, [x9, _rgblight_config@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
Lloh8:
	adrp	x9, _RGB_current_mode@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RGB_current_mode@GOTPAGEOFF]
Lloh10:
	str	w0, [x9]
	mov	w9, #1
	str	w9, [x8]
LBB0_3:
	bl	_rgblight_mode
Lloh11:
	adrp	x8, _TOG_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TOG_STATUS@GOTPAGEOFF]
Lloh13:
	str	wzr, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RGB_INIT,4,2                   ; @RGB_INIT
	.comm	_rgblight_config,4,2            ; @rgblight_config
	.comm	_RGB_current_mode,4,2           ; @RGB_current_mode
	.comm	_TOG_STATUS,4,2                 ; @TOG_STATUS
.subsections_via_symbols
