	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_BASE@GOTPCREL(%rip), %rax
	movq	_edit@GOTPCREL(%rip), %r14
	cmpq	%rdi, (%rax)
	jne	LBB0_3
## %bb.1:
	cmpl	$1, (%r14)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_rgblight_get_hue
	movq	_temp_config@GOTPCREL(%rip), %r15
	movl	%eax, 8(%r15)
	xorl	%eax, %eax
	callq	_rgblight_get_sat
	movl	%eax, 4(%r15)
	xorl	%eax, %eax
	callq	_rgblight_get_val
	movl	%eax, (%r15)
	movl	$0, (%r14)
LBB0_3:
	movq	%r12, %rdi
	callq	_biton32
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_rgblight_get_mode
	movq	_temp_config@GOTPCREL(%rip), %rcx
	movl	%eax, 12(%rcx)
	movl	$1, %edi
	callq	_rgblight_mode_noeeprom
	movl	$211, %edi
	movl	$127, %esi
	movl	$237, %edx
	callq	_rgblight_setrgb
	movl	$1, (%r14)
	jmp	LBB0_6
LBB0_5:
	movq	_temp_config@GOTPCREL(%rip), %rbx
	movl	12(%rbx), %edi
	callq	_rgblight_mode
	movl	8(%rbx), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_rgblight_sethsv
LBB0_6:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BASE,8,3                       ## @BASE
	.comm	_edit,4,2                       ## @edit
	.comm	_temp_config,16,2               ## @temp_config
.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASE@GOTPAGEOFF]
Lloh2:
	adrp	x20, _edit@GOTPAGE
Lloh3:
	ldr	x20, [x20, _edit@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w9, [x20]
	cmp	x8, x0
	ccmp	w9, #1, #0, eq
Lloh5:
	adrp	x21, _temp_config@GOTPAGE
Lloh6:
	ldr	x21, [x21, _temp_config@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
	bl	_rgblight_get_hue
	str	w0, [x21, #8]
	bl	_rgblight_get_sat
	str	w0, [x21, #4]
	bl	_rgblight_get_val
	str	w0, [x21]
	str	wzr, [x20]
LBB0_2:
	mov	x0, x19
	bl	_biton32
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.3:
	bl	_rgblight_get_mode
	str	w0, [x21, #12]
	mov	w21, #1
	mov	w0, #1
	bl	_rgblight_mode_noeeprom
	mov	w0, #211
	mov	w1, #127
	mov	w2, #237
	bl	_rgblight_setrgb
	str	w21, [x20]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x21, #12]
	bl	_rgblight_mode
	ldp	w1, w0, [x21, #4]
	ldr	w2, [x21]
	bl	_rgblight_sethsv
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BASE,8,3                       ; @BASE
	.comm	_edit,4,2                       ; @edit
	.comm	_temp_config,16,2               ; @temp_config
.subsections_via_symbols
