	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_current_layer_state@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_is_macro1_recording@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_led_1_on
	xorl	%eax, %eax
	callq	_led_2_on
	jmp	LBB0_9
LBB0_2:
	movq	_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LAYER_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_led_1_on
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_led_1_off
LBB0_5:
	movq	_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LAYER_ON
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_led_2_on
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_led_2_off
LBB0_8:
	movq	_QWERTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LAYER_ON
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_led_3_on
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	callq	_led_3_off
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_current_layer_state,4,2        ## @current_layer_state
	.comm	_is_macro1_recording,8,3        ## @is_macro1_recording
	.comm	_NUM,4,2                        ## @NUM
	.comm	_MAC,4,2                        ## @MAC
	.comm	_QWERTY,4,2                     ## @QWERTY
.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	x8, _current_layer_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current_layer_state@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x8, _is_macro1_recording@GOTPAGE
Lloh4:
	ldr	x8, [x8, _is_macro1_recording@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_led_1_on
	bl	_led_2_on
	bl	_led_3_on
	b	LBB0_11
LBB0_2:
Lloh6:
	adrp	x8, _NUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_LAYER_ON
	cbz	x0, LBB0_4
; %bb.3:
	bl	_led_1_on
	b	LBB0_5
LBB0_4:
	bl	_led_1_off
LBB0_5:
Lloh9:
	adrp	x8, _MAC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAC@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_LAYER_ON
	cbz	x0, LBB0_7
; %bb.6:
	bl	_led_2_on
	b	LBB0_8
LBB0_7:
	bl	_led_2_off
LBB0_8:
Lloh12:
	adrp	x8, _QWERTY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QWERTY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_LAYER_ON
	cbz	x0, LBB0_10
; %bb.9:
	bl	_led_3_on
	b	LBB0_11
LBB0_10:
	bl	_led_3_off
LBB0_11:
	mov	x0, x19
	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 AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_current_layer_state,4,2        ; @current_layer_state
	.comm	_is_macro1_recording,8,3        ; @is_macro1_recording
	.comm	_NUM,4,2                        ; @NUM
	.comm	_MAC,4,2                        ; @MAC
	.comm	_QWERTY,4,2                     ; @QWERTY
.subsections_via_symbols
