	.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	_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LAYER_ON
	movq	_swap_hands@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	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
LBB0_11:
	xorl	%eax, %eax
	callq	_led_3_on
	jmp	LBB0_13
LBB0_2:
	movq	_SYSLEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LAYER_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_sys_led_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_led_set_user
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_FN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LAYER_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_led_1_on
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_led_1_off
LBB0_7:
	movq	_NUMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LAYER_ON
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_led_2_on
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_led_2_off
LBB0_10:
	movq	_MOUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LAYER_ON
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:
	xorl	%eax, %eax
	callq	_led_3_off
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_current_layer_state,4,2        ## @current_layer_state
	.comm	_SWAP,4,2                       ## @SWAP
	.comm	_swap_hands,8,3                 ## @swap_hands
	.comm	_is_macro1_recording,8,3        ## @is_macro1_recording
	.comm	_SYSLEDS,4,2                    ## @SYSLEDS
	.comm	_sys_led_state,4,2              ## @sys_led_state
	.comm	_FN,4,2                         ## @FN
	.comm	_NUMS,4,2                       ## @NUMS
	.comm	_MOUSE,4,2                      ## @MOUSE
.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, _SWAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SWAP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_LAYER_ON
Lloh6:
	adrp	x8, _swap_hands@GOTPAGE
Lloh7:
	ldr	x8, [x8, _swap_hands@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
Lloh9:
	adrp	x8, _is_macro1_recording@GOTPAGE
Lloh10:
	ldr	x8, [x8, _is_macro1_recording@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_led_1_on
	bl	_led_2_on
	bl	_led_3_on
	b	LBB0_13
LBB0_2:
Lloh12:
	adrp	x8, _SYSLEDS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYSLEDS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_LAYER_ON
	cbz	x0, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _sys_led_state@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sys_led_state@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_led_set_user
	b	LBB0_13
LBB0_4:
Lloh18:
	adrp	x8, _FN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_LAYER_ON
	cbz	x0, LBB0_6
; %bb.5:
	bl	_led_1_on
	b	LBB0_7
LBB0_6:
	bl	_led_1_off
LBB0_7:
Lloh21:
	adrp	x8, _NUMS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NUMS@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_LAYER_ON
	cbz	x0, LBB0_9
; %bb.8:
	bl	_led_2_on
	b	LBB0_10
LBB0_9:
	bl	_led_2_off
LBB0_10:
Lloh24:
	adrp	x8, _MOUSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MOUSE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_LAYER_ON
	cbz	x0, LBB0_12
; %bb.11:
	bl	_led_3_on
	b	LBB0_13
LBB0_12:
	bl	_led_3_off
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_current_layer_state,4,2        ; @current_layer_state
	.comm	_SWAP,4,2                       ; @SWAP
	.comm	_swap_hands,8,3                 ; @swap_hands
	.comm	_is_macro1_recording,8,3        ; @is_macro1_recording
	.comm	_SYSLEDS,4,2                    ; @SYSLEDS
	.comm	_sys_led_state,4,2              ; @sys_led_state
	.comm	_FN,4,2                         ; @FN
	.comm	_NUMS,4,2                       ; @NUMS
	.comm	_MOUSE,4,2                      ; @MOUSE
.subsections_via_symbols
