	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fade_rgb                       ## -- Begin function fade_rgb
	.p2align	4, 0x90
_fade_rgb:                              ## @fade_rgb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_boot@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.1:
	movq	_fade_rgb.fade_timer(%rip), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_timer_read
	movq	%rax, %rdi
	movq	%rax, _fade_rgb.fade_timer(%rip)
LBB0_3:
	callq	_timer_elapsed
	movq	_fade_interval@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_14
## %bb.4:
	movq	_fade_state@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_9
## %bb.5:
	cmpl	$129, %ecx
	jne	LBB0_13
## %bb.6:
	movq	_underglow@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$359, %ecx                      ## imm = 0x167
	jne	LBB0_8
## %bb.7:
	movl	$128, (%rax)
	popq	%rbp
	retq
LBB0_9:
	movq	_underglow@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.11:
	decl	%ecx
	jmp	LBB0_12
LBB0_8:
	incl	%ecx
LBB0_12:
	movq	_underglow@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_13:
	xorl	%eax, %eax
	callq	_timer_read
	movq	%rax, _fade_rgb.fade_timer(%rip)
	movq	_flash_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_no_flash@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.15:
	movq	_underglow@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	popq	%rbp
	jmp	_set_color                      ## TAILCALL
LBB0_14:
	popq	%rbp
	retq
LBB0_10:
	movl	$129, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fade_rgb.fade_timer,8,3 ## @fade_rgb.fade_timer
	.comm	_state,8,3                      ## @state
	.comm	_boot,8,3                       ## @boot
	.comm	_fade_interval,8,3              ## @fade_interval
	.comm	_fade_state,4,2                 ## @fade_state
	.comm	_underglow,4,2                  ## @underglow
	.comm	_flash_state,8,3                ## @flash_state
	.comm	_no_flash,8,3                   ## @no_flash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fade_rgb                       ; -- Begin function fade_rgb
	.p2align	2
_fade_rgb:                              ; @fade_rgb
	.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, _state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _boot@GOTPAGE
Lloh4:
	ldr	x9, [x9, _boot@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.1:
	adrp	x19, _fade_rgb.fade_timer@PAGE
	ldr	x0, [x19, _fade_rgb.fade_timer@PAGEOFF]
	cbnz	x0, LBB0_3
; %bb.2:
	bl	_timer_read
	str	x0, [x19, _fade_rgb.fade_timer@PAGEOFF]
LBB0_3:
	bl	_timer_elapsed
Lloh6:
	adrp	x8, _fade_interval@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fade_interval@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_16
; %bb.4:
Lloh9:
	adrp	x8, _fade_state@GOTPAGE
Lloh10:
	ldr	x8, [x8, _fade_state@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w9, #129
	b.ne	LBB0_12
; %bb.6:
Lloh11:
	adrp	x9, _underglow@GOTPAGE
Lloh12:
	ldr	x9, [x9, _underglow@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w9, #359
	b.ne	LBB0_10
; %bb.7:
	mov	w9, #128
	b	LBB0_15
LBB0_8:
Lloh14:
	adrp	x9, _underglow@GOTPAGE
Lloh15:
	ldr	x9, [x9, _underglow@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cbz	w9, LBB0_14
; %bb.9:
	sub	w8, w9, #1
	b	LBB0_11
LBB0_10:
	add	w8, w9, #1
LBB0_11:
Lloh17:
	adrp	x9, _underglow@GOTPAGE
Lloh18:
	ldr	x9, [x9, _underglow@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
LBB0_12:
	bl	_timer_read
Lloh20:
	adrp	x8, _flash_state@GOTPAGE
Lloh21:
	ldr	x8, [x8, _flash_state@GOTPAGEOFF]
	str	x0, [x19, _fade_rgb.fade_timer@PAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _no_flash@GOTPAGE
Lloh24:
	ldr	x9, [x9, _no_flash@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
Lloh26:
	adrp	x8, _underglow@GOTPAGE
Lloh27:
	ldr	x8, [x8, _underglow@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_color
LBB0_14:
	mov	w9, #129
LBB0_15:
	str	w9, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fade_rgb.fade_timer,8,3 ; @fade_rgb.fade_timer
	.comm	_state,8,3                      ; @state
	.comm	_boot,8,3                       ; @boot
	.comm	_fade_interval,8,3              ; @fade_interval
	.comm	_fade_state,4,2                 ; @fade_state
	.comm	_underglow,4,2                  ; @underglow
	.comm	_flash_state,8,3                ; @flash_state
	.comm	_no_flash,8,3                   ; @no_flash
.subsections_via_symbols
