	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_layer_state_set_user           ## -- Begin function layer_state_set_user
	.p2align	4, 0x90
_layer_state_set_user:                  ## @layer_state_set_user
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_base_mode@GOTPCREL(%rip), %rbx
	movl	$0, (%rbx)
	movq	_panic_mode@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_flight_mode@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_rcs_mode@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	callq	_biton32
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.layer_state_set_user(%rip), %rcx
	movq	(%rcx,%rax,8), %rbx
	leaq	l_switch.table.layer_state_set_user.1(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HSV_SPRINGGREEN@GOTPCREL(%rip), %rax
LBB0_3:
	movl	$1, (%rbx)
	movl	(%rax), %edi
	callq	_rgblight_sethsv_noeeprom
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_base_mode,4,2                  ## @base_mode
	.comm	_panic_mode,4,2                 ## @panic_mode
	.comm	_flight_mode,4,2                ## @flight_mode
	.comm	_rcs_mode,4,2                   ## @rcs_mode
	.comm	_HSV_RED,4,2                    ## @HSV_RED
	.comm	_HSV_CYAN,4,2                   ## @HSV_CYAN
	.comm	_HSV_BLUE,4,2                   ## @HSV_BLUE
	.comm	_HSV_SPRINGGREEN,4,2            ## @HSV_SPRINGGREEN
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.layer_state_set_user
l_switch.table.layer_state_set_user:
	.quad	_rcs_mode
	.quad	_panic_mode
	.quad	_flight_mode

	.p2align	3                               ## @switch.table.layer_state_set_user.1
l_switch.table.layer_state_set_user.1:
	.quad	_HSV_BLUE
	.quad	_HSV_RED
	.quad	_HSV_CYAN

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_layer_state_set_user           ; -- Begin function layer_state_set_user
	.p2align	2
_layer_state_set_user:                  ; @layer_state_set_user
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _base_mode@GOTPAGE
Lloh1:
	ldr	x20, [x20, _base_mode@GOTPAGEOFF]
	str	wzr, [x20]
Lloh2:
	adrp	x8, _panic_mode@GOTPAGE
Lloh3:
	ldr	x8, [x8, _panic_mode@GOTPAGEOFF]
Lloh4:
	str	wzr, [x8]
Lloh5:
	adrp	x8, _flight_mode@GOTPAGE
Lloh6:
	ldr	x8, [x8, _flight_mode@GOTPAGEOFF]
Lloh7:
	str	wzr, [x8]
Lloh8:
	adrp	x8, _rcs_mode@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rcs_mode@GOTPAGEOFF]
Lloh10:
	str	wzr, [x8]
	bl	_biton32
	sub	w8, w0, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh11:
	adrp	x9, l_switch.table.layer_state_set_user@PAGE
Lloh12:
	add	x9, x9, l_switch.table.layer_state_set_user@PAGEOFF
	ldr	x20, [x9, x8]
Lloh13:
	adrp	x9, l_switch.table.layer_state_set_user.1@PAGE
Lloh14:
	add	x9, x9, l_switch.table.layer_state_set_user.1@PAGEOFF
	ldr	x8, [x9, x8]
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _HSV_SPRINGGREEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HSV_SPRINGGREEN@GOTPAGEOFF]
LBB0_3:
	mov	w9, #1
	str	w9, [x20]
	ldr	w0, [x8]
	bl	_rgblight_sethsv_noeeprom
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_base_mode,4,2                  ; @base_mode
	.comm	_panic_mode,4,2                 ; @panic_mode
	.comm	_flight_mode,4,2                ; @flight_mode
	.comm	_rcs_mode,4,2                   ; @rcs_mode
	.comm	_HSV_RED,4,2                    ; @HSV_RED
	.comm	_HSV_CYAN,4,2                   ; @HSV_CYAN
	.comm	_HSV_BLUE,4,2                   ; @HSV_BLUE
	.comm	_HSV_SPRINGGREEN,4,2            ; @HSV_SPRINGGREEN
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.layer_state_set_user
l_switch.table.layer_state_set_user:
	.quad	_rcs_mode
	.quad	_panic_mode
	.quad	_flight_mode

	.p2align	3                               ; @switch.table.layer_state_set_user.1
l_switch.table.layer_state_set_user.1:
	.quad	_HSV_BLUE
	.quad	_HSV_RED
	.quad	_HSV_CYAN

.subsections_via_symbols
