	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rgblight_init                  ## -- Begin function rgblight_init
	.p2align	4, 0x90
_rgblight_init:                         ## @rgblight_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_debug_enable@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	leaq	L_.str(%rip), %rdi
	callq	_dprintf
	leaq	L_.str.1(%rip), %rdi
	callq	_dprintf
	xorl	%eax, %eax
	callq	_eeconfig_is_enabled
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	callq	_dprintf
	xorl	%eax, %eax
	callq	_eeconfig_init
	xorl	%eax, %eax
	callq	_eeconfig_update_rgblight_default
LBB0_2:
	xorl	%eax, %eax
	callq	_eeconfig_read_rgblight
	movq	_rgblight_config@GOTPCREL(%rip), %rbx
	movq	%rax, 16(%rbx)
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	callq	_dprintf
	xorl	%eax, %eax
	callq	_eeconfig_update_rgblight_default
	xorl	%eax, %eax
	callq	_eeconfig_read_rgblight
	movq	%rax, 16(%rbx)
LBB0_4:
	xorl	%eax, %eax
	callq	_eeconfig_debug_rgblight
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rgblight_mode_noeeprom         ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_enable,4,2               ## @debug_enable
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rgblight_init called.\n"

L_.str.1:                               ## @.str.1
	.asciz	"rgblight_init start!\n"

L_.str.2:                               ## @.str.2
	.asciz	"rgblight_init eeconfig is not enabled.\n"

	.comm	_rgblight_config,24,3           ## @rgblight_config
L_.str.3:                               ## @.str.3
	.asciz	"rgblight_init rgblight_config.mode = 0. Write default values to EEPROM.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rgblight_init                  ; -- Begin function rgblight_init
	.p2align	2
_rgblight_init:                         ; @rgblight_init
	.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, _debug_enable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug_enable@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintf
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintf
	bl	_eeconfig_is_enabled
	cbnz	w0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintf
	bl	_eeconfig_init
	bl	_eeconfig_update_rgblight_default
LBB0_2:
	bl	_eeconfig_read_rgblight
Lloh9:
	adrp	x19, _rgblight_config@GOTPAGE
Lloh10:
	ldr	x19, [x19, _rgblight_config@GOTPAGEOFF]
	str	x0, [x19, #16]
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintf
	bl	_eeconfig_update_rgblight_default
	bl	_eeconfig_read_rgblight
	str	x0, [x19, #16]
LBB0_4:
	bl	_eeconfig_debug_rgblight
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rgblight_mode_noeeprom
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_enable,4,2               ; @debug_enable
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rgblight_init called.\n"

l_.str.1:                               ; @.str.1
	.asciz	"rgblight_init start!\n"

l_.str.2:                               ; @.str.2
	.asciz	"rgblight_init eeconfig is not enabled.\n"

	.comm	_rgblight_config,24,3           ; @rgblight_config
l_.str.3:                               ; @.str.3
	.asciz	"rgblight_init rgblight_config.mode = 0. Write default values to EEPROM.\n"

.subsections_via_symbols
