	.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
	movq	%rdi, %rbx
	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	_hue@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_rgblight_get_sat
	movq	_sat@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_rgblight_get_val
	movq	_val@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$0, (%r14)
LBB0_3:
	movq	%rbx, %rdi
	callq	_biton32
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_rgblight_get_mode
	movq	_mode@GOTPCREL(%rip), %rcx
	movl	%eax, (%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	_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rgblight_mode
	movq	_hue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sat@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_val@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rgblight_sethsv
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BASE,8,3                       ## @BASE
	.comm	_edit,4,2                       ## @edit
	.comm	_hue,4,2                        ## @hue
	.comm	_sat,4,2                        ## @sat
	.comm	_val,4,2                        ## @val
	.comm	_mode,4,2                       ## @mode
.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x20, _edit@GOTPAGE
Lloh4:
	ldr	x20, [x20, _edit@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	x8, x0
	ccmp	w9, #1, #0, eq
Lloh5:
	adrp	x21, _hue@GOTPAGE
Lloh6:
	ldr	x21, [x21, _hue@GOTPAGEOFF]
Lloh7:
	adrp	x22, _sat@GOTPAGE
Lloh8:
	ldr	x22, [x22, _sat@GOTPAGEOFF]
Lloh9:
	adrp	x23, _val@GOTPAGE
Lloh10:
	ldr	x23, [x23, _val@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
	bl	_rgblight_get_hue
	str	w0, [x21]
	bl	_rgblight_get_sat
	str	w0, [x22]
	bl	_rgblight_get_val
	str	w0, [x23]
	str	wzr, [x20]
LBB0_2:
	mov	x0, x19
	bl	_biton32
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.3:
	bl	_rgblight_get_mode
Lloh11:
	adrp	x8, _mode@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mode@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
	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:
Lloh14:
	adrp	x8, _mode@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mode@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_rgblight_mode
	ldr	w0, [x21]
	ldr	w1, [x22]
	ldr	w2, [x23]
	bl	_rgblight_sethsv
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BASE,8,3                       ; @BASE
	.comm	_edit,4,2                       ; @edit
	.comm	_hue,4,2                        ; @hue
	.comm	_sat,4,2                        ; @sat
	.comm	_val,4,2                        ; @val
	.comm	_mode,4,2                       ; @mode
.subsections_via_symbols
