	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_set_user                   ## -- Begin function led_set_user
	.p2align	4, 0x90
_led_set_user:                          ## @led_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
	movq	_sys_led_state@GOTPCREL(%rip), %rbx
	movl	%edi, (%rbx)
	movq	_SYSLEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LAYER_ON
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_sys_led_mask_caps_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_led_1_on
	jmp	LBB0_4
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	callq	_led_1_off
LBB0_4:
	movq	_sys_led_mask_num_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_led_2_on
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_led_2_off
LBB0_7:
	movq	_sys_led_mask_scroll_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_led_3_on                       ## TAILCALL
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_led_3_off                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sys_led_state,4,2              ## @sys_led_state
	.comm	_SYSLEDS,4,2                    ## @SYSLEDS
	.comm	_sys_led_mask_caps_lock,4,2     ## @sys_led_mask_caps_lock
	.comm	_sys_led_mask_num_lock,4,2      ## @sys_led_mask_num_lock
	.comm	_sys_led_mask_scroll_lock,4,2   ## @sys_led_mask_scroll_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_set_user                   ; -- Begin function led_set_user
	.p2align	2
_led_set_user:                          ; @led_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
Lloh0:
	adrp	x19, _sys_led_state@GOTPAGE
Lloh1:
	ldr	x19, [x19, _sys_led_state@GOTPAGEOFF]
	str	w0, [x19]
Lloh2:
	adrp	x8, _SYSLEDS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SYSLEDS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_LAYER_ON
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _sys_led_mask_caps_lock@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sys_led_mask_caps_lock@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	bl	_led_1_on
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_led_1_off
LBB0_5:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _sys_led_mask_num_lock@GOTPAGE
Lloh9:
	ldr	x9, [x9, _sys_led_mask_num_lock@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	bl	_led_2_on
	b	LBB0_8
LBB0_7:
	bl	_led_2_off
LBB0_8:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _sys_led_mask_scroll_lock@GOTPAGE
Lloh12:
	ldr	x9, [x9, _sys_led_mask_scroll_lock@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_led_3_on
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_led_3_off
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_sys_led_state,4,2              ; @sys_led_state
	.comm	_SYSLEDS,4,2                    ; @SYSLEDS
	.comm	_sys_led_mask_caps_lock,4,2     ; @sys_led_mask_caps_lock
	.comm	_sys_led_mask_num_lock,4,2      ; @sys_led_mask_num_lock
	.comm	_sys_led_mask_scroll_lock,4,2   ; @sys_led_mask_scroll_lock
.subsections_via_symbols
