	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %esi
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	btl	%eax, %edi
	setb	%cl
	movq	_USB_LED_COMPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	2(%rcx), %edx
	btl	%eax, %edi
	cmovael	%ecx, %edx
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	4(%rdx), %ecx
	btl	%eax, %edi
	cmovael	%edx, %ecx
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	8(%rcx), %ebx
	btl	%eax, %edi
	cmovael	%ecx, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_xprintf
	movl	$14, %edi
	callq	_serial_send
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_serial_send                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_USB_LED_COMPOSE,4,2            ## @USB_LED_COMPOSE
	.comm	_USB_LED_SCROLL_LOCK,4,2        ## @USB_LED_SCROLL_LOCK
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LED: %02X\n"

.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	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	x1, x0
Lloh0:
	adrp	x8, _USB_LED_NUM_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_LED_NUM_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w8, w0, w8
	and	w9, w8, #0x1
Lloh3:
	adrp	x10, _USB_LED_COMPOSE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _USB_LED_COMPOSE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mov	w11, #2
	bfxil	w11, w8, #0, #1
	lsr	w8, w0, w10
	tst	w8, #0x1
	csel	w8, w9, w11, eq
Lloh6:
	adrp	x9, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w10, w8, #0x4
	lsr	w9, w0, w9
	tst	w9, #0x1
Lloh9:
	adrp	x9, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
	csel	w8, w8, w10, eq
Lloh11:
	ldr	w9, [x9]
	orr	w10, w8, #0x8
	lsr	w9, w0, w9
	tst	w9, #0x1
	csel	w19, w8, w10, eq
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_xprintf
	mov	w0, #14
	bl	_serial_send
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_serial_send
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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	_USB_LED_COMPOSE,4,2            ; @USB_LED_COMPOSE
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LED: %02X\n"

.subsections_via_symbols
