	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_set_kb                     ## -- Begin function led_set_kb
	.p2align	4, 0x90
_led_set_kb:                            ## @led_set_kb
	.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
	callq	_print_dec
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	btl	%eax, %ebx
	setae	%cl
	movq	_PORTB@GOTPCREL(%rip), %rax
	movl	$-129, %edx
	andl	(%rax), %edx
	shll	$7, %ecx
	orl	%edx, %ecx
	movl	%ecx, (%rax)
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %rax
	movq	_PORTD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	$-4, %edx
	movl	(%rax), %eax
	xorl	%esi, %esi
	btl	%eax, %ebx
	setae	%sil
	orl	%edx, %esi
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	btl	%eax, %ebx
	setae	%dl
	leal	(%rsi,%rdx,2), %eax
	movl	%eax, (%rcx)
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_led_set_user                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_LED_IO,4,2              ## @CONFIG_LED_IO
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_PORTB,4,2                      ## @PORTB
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_PORTD,4,2                      ## @PORTD
	.comm	_USB_LED_SCROLL_LOCK,4,2        ## @USB_LED_SCROLL_LOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_set_kb                     ; -- Begin function led_set_kb
	.p2align	2
_led_set_kb:                            ; @led_set_kb
	.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
	bl	_print_dec
Lloh0:
	adrp	x8, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PORTB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PORTB@GOTPAGEOFF]
	ldr	w10, [x9]
	lsr	w8, w19, w8
	tst	w8, #0x1
	cset	w8, eq
	bfi	w10, w8, #7, #1
Lloh5:
	adrp	x8, _USB_LED_NUM_LOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_LED_NUM_LOCK@GOTPAGEOFF]
	str	w10, [x9]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _PORTD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PORTD@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w10, w10, #0xfffffffc
	mvn	w11, w19
	lsr	w8, w11, w8
	bfxil	w10, w8, #0, #1
Lloh10:
	adrp	x8, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsr	w8, w19, w8
	tst	w8, #0x1
	cset	w8, eq
	bfi	w10, w8, #1, #1
	str	w10, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_led_set_user
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_LED_IO,4,2              ; @CONFIG_LED_IO
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_PORTB,4,2                      ; @PORTB
	.comm	_USB_LED_NUM_LOCK,4,2           ; @USB_LED_NUM_LOCK
	.comm	_PORTD,4,2                      ; @PORTD
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
.subsections_via_symbols
