	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_set                        ## -- Begin function led_set
	.p2align	4, 0x90
_led_set:                               ## @led_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_chSysUnconditionalLock
	movq	_TOGGLE_NUM_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	orl	$256, %esi                      ## imm = 0x100
	btl	%ebx, %r15d
	cmovael	%eax, %esi
	movq	_led_mailbox@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_chMBPostI
	xorl	%eax, %eax
	callq	_chSysUnconditionalUnlock
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_chSysUnconditionalLock
	movq	_TOGGLE_CAPS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	orl	$256, %esi                      ## imm = 0x100
	btl	%ebx, %r15d
	cmovael	%eax, %esi
	movq	%r14, %rdi
	callq	_chMBPostI
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chSysUnconditionalUnlock       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_TOGGLE_NUM_LOCK,4,2            ## @TOGGLE_NUM_LOCK
	.comm	_led_mailbox,4,2                ## @led_mailbox
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_TOGGLE_CAPS_LOCK,4,2           ## @TOGGLE_CAPS_LOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_set                        ; -- Begin function led_set
	.p2align	2
_led_set:                               ; @led_set
	.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, _USB_LED_NUM_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_LED_NUM_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_chSysUnconditionalLock
Lloh3:
	adrp	x8, _TOGGLE_NUM_LOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TOGGLE_NUM_LOCK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w9, w8, #0x100
	lsr	w10, w19, w20
	tst	w10, #0x1
	csel	w1, w8, w9, eq
Lloh6:
	adrp	x20, _led_mailbox@GOTPAGE
Lloh7:
	ldr	x20, [x20, _led_mailbox@GOTPAGEOFF]
	mov	x0, x20
	bl	_chMBPostI
	bl	_chSysUnconditionalUnlock
Lloh8:
	adrp	x8, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	bl	_chSysUnconditionalLock
Lloh11:
	adrp	x8, _TOGGLE_CAPS_LOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TOGGLE_CAPS_LOCK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w9, w8, #0x100
	lsr	w10, w19, w21
	tst	w10, #0x1
	csel	w1, w8, w9, eq
	mov	x0, x20
	bl	_chMBPostI
	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
	b	_chSysUnconditionalUnlock
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_LED_NUM_LOCK,4,2           ; @USB_LED_NUM_LOCK
	.comm	_TOGGLE_NUM_LOCK,4,2            ; @TOGGLE_NUM_LOCK
	.comm	_led_mailbox,4,2                ; @led_mailbox
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_TOGGLE_CAPS_LOCK,4,2           ; @TOGGLE_CAPS_LOCK
.subsections_via_symbols
