	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flash_rgb                      ## -- Begin function flash_rgb
	.p2align	4, 0x90
_flash_rgb:                             ## @flash_rgb
	.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	_flash_state@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.2:
	movl	_flash_rgb.flash_timer(%rip), %edi
	testl	%edi, %edi
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_timer_read
	movl	%eax, %edi
	movl	%eax, _flash_rgb.flash_timer(%rip)
LBB0_4:
	callq	_timer_elapsed
	movq	_LED_FLASH_DELAY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_10
## %bb.5:
	movq	_hsv_none@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_set_color
	xorl	%eax, %eax
	callq	_timer_read
	movl	%eax, _flash_rgb.flash_timer(%rip)
	movl	$129, (%rbx)
	jmp	LBB0_10
LBB0_6:
	movl	_flash_rgb.flash_timer(%rip), %edi
	callq	_timer_elapsed
	movq	_LED_FLASH_DELAY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_10
## %bb.7:
	movq	_flash_color@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_set_color
	xorl	%eax, %eax
	callq	_timer_read
	movl	%eax, _flash_rgb.flash_timer(%rip)
	movq	_num_extra_flashes_off@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.8:
	movl	$130, (%rbx)
	decl	%ecx
	movl	%ecx, (%rax)
	jmp	LBB0_10
LBB0_9:
	movq	_underglow@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_set_color
	movl	$128, (%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_flash_rgb.flash_timer,4,2 ## @flash_rgb.flash_timer
	.comm	_flash_state,4,2                ## @flash_state
	.comm	_LED_FLASH_DELAY,4,2            ## @LED_FLASH_DELAY
	.comm	_hsv_none,4,2                   ## @hsv_none
	.comm	_flash_color,4,2                ## @flash_color
	.comm	_num_extra_flashes_off,4,2      ## @num_extra_flashes_off
	.comm	_underglow,4,2                  ## @underglow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flash_rgb                      ; -- Begin function flash_rgb
	.p2align	2
_flash_rgb:                             ; @flash_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	x19, _flash_state@GOTPAGE
Lloh1:
	ldr	x19, [x19, _flash_state@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.2:
	adrp	x20, _flash_rgb.flash_timer@PAGE
	ldr	w0, [x20, _flash_rgb.flash_timer@PAGEOFF]
	cbnz	w0, LBB0_4
; %bb.3:
	bl	_timer_read
	str	w0, [x20, _flash_rgb.flash_timer@PAGEOFF]
LBB0_4:
	bl	_timer_elapsed
Lloh2:
	adrp	x8, _LED_FLASH_DELAY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LED_FLASH_DELAY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_11
; %bb.5:
Lloh5:
	adrp	x8, _hsv_none@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hsv_none@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_set_color
	bl	_timer_read
	str	w0, [x20, _flash_rgb.flash_timer@PAGEOFF]
	mov	w8, #129
	b	LBB0_10
LBB0_6:
	adrp	x20, _flash_rgb.flash_timer@PAGE
	ldr	w0, [x20, _flash_rgb.flash_timer@PAGEOFF]
	bl	_timer_elapsed
Lloh8:
	adrp	x8, _LED_FLASH_DELAY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LED_FLASH_DELAY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_11
; %bb.7:
Lloh11:
	adrp	x8, _flash_color@GOTPAGE
Lloh12:
	ldr	x8, [x8, _flash_color@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_set_color
	bl	_timer_read
	str	w0, [x20, _flash_rgb.flash_timer@PAGEOFF]
Lloh14:
	adrp	x8, _num_extra_flashes_off@GOTPAGE
Lloh15:
	ldr	x8, [x8, _num_extra_flashes_off@GOTPAGEOFF]
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.lt	LBB0_9
; %bb.8:
	mov	w10, #130
	str	w10, [x19]
	str	w9, [x8]
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x8, _underglow@GOTPAGE
Lloh17:
	ldr	x8, [x8, _underglow@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_set_color
	mov	w8, #128
LBB0_10:
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_flash_rgb.flash_timer,4,2 ; @flash_rgb.flash_timer
	.comm	_flash_state,4,2                ; @flash_state
	.comm	_LED_FLASH_DELAY,4,2            ; @LED_FLASH_DELAY
	.comm	_hsv_none,4,2                   ; @hsv_none
	.comm	_flash_color,4,2                ; @flash_color
	.comm	_num_extra_flashes_off,4,2      ; @num_extra_flashes_off
	.comm	_underglow,4,2                  ; @underglow
.subsections_via_symbols
