	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rgblight_sethsv_eeprom_helper  ## -- Begin function rgblight_sethsv_eeprom_helper
	.p2align	4, 0x90
_rgblight_sethsv_eeprom_helper:         ## @rgblight_sethsv_eeprom_helper
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_rgblight_config@GOTPCREL(%rip), %rbx
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.1:
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %r13d
	movq	_mode_base_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_rgblight_status@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	movq	_RGBLIGHT_MODE_STATIC_LIGHT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_3
## %bb.2:
	leaq	-56(%rbp), %rcx
	movl	%r13d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_sethsv
	movl	-48(%rbp), %edi
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %esi
	callq	_rgblight_setrgb
LBB0_3:
	movl	%r13d, 12(%rbx)
	movl	%r15d, 16(%rbx)
	movl	%r14d, 8(%rbx)
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movl	20(%rbx), %edi
	callq	_eeconfig_update_rgblight
	movl	8(%rbx), %ecx
	movl	12(%rbx), %esi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
LBB0_6:
	xorl	%eax, %eax
	callq	_dprintf
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rgblight_config,32,3           ## @rgblight_config
	.comm	_mode_base_table,8,3            ## @mode_base_table
	.comm	_rgblight_status,8,3            ## @rgblight_status
	.comm	_RGBLIGHT_MODE_STATIC_LIGHT,8,3 ## @RGBLIGHT_MODE_STATIC_LIGHT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rgblight set hsv [EEPROM]: %u,%u,%u\n"

L_.str.1:                               ## @.str.1
	.asciz	"rgblight set hsv [NOEEPROM]: %u,%u,%u\n"

	.comm	_RGBLED_GRADIENT_RANGES,8,3     ## @RGBLED_GRADIENT_RANGES
	.comm	_RGBLIGHT_MODE_BREATHING,8,3    ## @RGBLIGHT_MODE_BREATHING
	.comm	_RGBLIGHT_MODE_RAINBOW_MOOD,8,3 ## @RGBLIGHT_MODE_RAINBOW_MOOD
	.comm	_RGBLIGHT_MODE_RAINBOW_SWIRL,8,3 ## @RGBLIGHT_MODE_RAINBOW_SWIRL
	.comm	_RGBLIGHT_MODE_STATIC_GRADIENT,8,3 ## @RGBLIGHT_MODE_STATIC_GRADIENT
	.comm	_RGBLIGHT_SPLIT_SET_CHANGE_HSVS,4,2 ## @RGBLIGHT_SPLIT_SET_CHANGE_HSVS
	.comm	_effect_num_leds,4,2            ## @effect_num_leds
	.comm	_effect_start_pos,4,2           ## @effect_start_pos
	.comm	_led,8,3                        ## @led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rgblight_sethsv_eeprom_helper  ; -- Begin function rgblight_sethsv_eeprom_helper
	.p2align	2
_rgblight_sethsv_eeprom_helper:         ; @rgblight_sethsv_eeprom_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x23, _rgblight_config@GOTPAGE
Lloh1:
	ldr	x23, [x23, _rgblight_config@GOTPAGEOFF]
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh2:
	adrp	x8, _mode_base_table@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mode_base_table@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x23]
	ldr	x8, [x8, x9, lsl #3]
Lloh5:
	adrp	x10, _rgblight_status@GOTPAGE
Lloh6:
	ldr	x10, [x10, _rgblight_status@GOTPAGEOFF]
Lloh7:
	str	x8, [x10]
Lloh8:
	adrp	x8, _RGBLIGHT_MODE_STATIC_LIGHT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RGBLIGHT_MODE_STATIC_LIGHT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.2:
	mov	x3, sp
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sethsv
	ldp	w1, w0, [sp, #4]
	ldr	w2, [sp]
	bl	_rgblight_setrgb
LBB0_3:
	stp	w21, w20, [x23, #12]
	str	w19, [x23, #8]
	cbz	w22, LBB0_5
; %bb.4:
	ldr	w0, [x23, #20]
	bl	_eeconfig_update_rgblight
	ldp	w1, w2, [x23, #12]
	ldr	w3, [x23, #8]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
LBB0_6:
	bl	_dprintf
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_rgblight_config,32,3           ; @rgblight_config
	.comm	_mode_base_table,8,3            ; @mode_base_table
	.comm	_rgblight_status,8,3            ; @rgblight_status
	.comm	_RGBLIGHT_MODE_STATIC_LIGHT,8,3 ; @RGBLIGHT_MODE_STATIC_LIGHT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rgblight set hsv [EEPROM]: %u,%u,%u\n"

l_.str.1:                               ; @.str.1
	.asciz	"rgblight set hsv [NOEEPROM]: %u,%u,%u\n"

	.comm	_RGBLED_GRADIENT_RANGES,8,3     ; @RGBLED_GRADIENT_RANGES
	.comm	_RGBLIGHT_MODE_BREATHING,8,3    ; @RGBLIGHT_MODE_BREATHING
	.comm	_RGBLIGHT_MODE_RAINBOW_MOOD,8,3 ; @RGBLIGHT_MODE_RAINBOW_MOOD
	.comm	_RGBLIGHT_MODE_RAINBOW_SWIRL,8,3 ; @RGBLIGHT_MODE_RAINBOW_SWIRL
	.comm	_RGBLIGHT_MODE_STATIC_GRADIENT,8,3 ; @RGBLIGHT_MODE_STATIC_GRADIENT
	.comm	_RGBLIGHT_SPLIT_SET_CHANGE_HSVS,4,2 ; @RGBLIGHT_SPLIT_SET_CHANGE_HSVS
	.comm	_effect_num_leds,4,2            ; @effect_num_leds
	.comm	_effect_start_pos,4,2           ; @effect_start_pos
	.comm	_led,8,3                        ; @led
.subsections_via_symbols
