	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rgb_matrix_init                ## -- Begin function rgb_matrix_init
	.p2align	4, 0x90
_rgb_matrix_init:                       ## @rgb_matrix_init
	.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_matrix_driver@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	xorl	%eax, %eax
	callq	_eeconfig_is_enabled
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_dprintf
	xorl	%eax, %eax
	callq	_eeconfig_init
	xorl	%eax, %eax
	callq	_eeconfig_update_rgb_matrix_default
LBB0_2:
	xorl	%eax, %eax
	callq	_eeconfig_read_rgb_matrix
	movq	_rgb_matrix_config@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_dprintf
	xorl	%eax, %eax
	callq	_eeconfig_update_rgb_matrix_default
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_eeconfig_debug_rgb_matrix      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rgb_matrix_driver,8,3          ## @rgb_matrix_driver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rgb_matrix_init_drivers eeconfig is not enabled.\n"

	.comm	_rgb_matrix_config,4,2          ## @rgb_matrix_config
L_.str.1:                               ## @.str.1
	.asciz	"rgb_matrix_init_drivers rgb_matrix_config.mode = 0. Write default values to EEPROM.\n"

	.comm	_LED_HITS_TO_REMEMBER,8,3       ## @LED_HITS_TO_REMEMBER
	.comm	_UINT16_MAX,8,3                 ## @UINT16_MAX
	.comm	_g_last_hit_tracker,16,3        ## @g_last_hit_tracker
	.comm	_last_hit_buffer,16,3           ## @last_hit_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rgb_matrix_init                ; -- Begin function rgb_matrix_init
	.p2align	2
_rgb_matrix_init:                       ; @rgb_matrix_init
	.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_matrix_driver@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rgb_matrix_driver@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	blr	x8
	bl	_eeconfig_is_enabled
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintf
	bl	_eeconfig_init
	bl	_eeconfig_update_rgb_matrix_default
LBB0_2:
	bl	_eeconfig_read_rgb_matrix
Lloh5:
	adrp	x8, _rgb_matrix_config@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rgb_matrix_config@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_eeconfig_debug_rgb_matrix
LBB0_4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintf
	bl	_eeconfig_update_rgb_matrix_default
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_eeconfig_debug_rgb_matrix
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_rgb_matrix_driver,8,3          ; @rgb_matrix_driver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rgb_matrix_init_drivers eeconfig is not enabled.\n"

	.comm	_rgb_matrix_config,4,2          ; @rgb_matrix_config
l_.str.1:                               ; @.str.1
	.asciz	"rgb_matrix_init_drivers rgb_matrix_config.mode = 0. Write default values to EEPROM.\n"

	.comm	_LED_HITS_TO_REMEMBER,8,3       ; @LED_HITS_TO_REMEMBER
	.comm	_UINT16_MAX,8,3                 ; @UINT16_MAX
	.comm	_g_last_hit_tracker,16,3        ; @g_last_hit_tracker
	.comm	_last_hit_buffer,16,3           ; @last_hit_buffer
.subsections_via_symbols
