	.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
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rax
	movq	_DDRD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	$-4, %edx
	movl	(%rax), %eax
	xorl	%esi, %esi
	btl	%eax, %edi
	setb	%sil
	orl	%edx, %esi
	movq	_PORTD@GOTPCREL(%rip), %r8
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%eax, %eax
	btl	%edx, %edi
	setb	%al
	leal	(%rsi,%rax,2), %eax
	andb	$-4, (%r8)
	movl	%eax, (%rcx)
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	btl	%eax, %edi
	setb	%cl
	movq	_DDRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	$-65, %edx
	shll	$6, %ecx
	orl	%edx, %ecx
	movl	%ecx, (%rax)
	movq	_PORTC@GOTPCREL(%rip), %rax
	andb	$-65, (%rax)
	popq	%rbp
	jmp	_led_set_user                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_DDRD,4,2                       ## @DDRD
	.comm	_PORTD,4,2                      ## @PORTD
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_USB_LED_SCROLL_LOCK,4,2        ## @USB_LED_SCROLL_LOCK
	.comm	_DDRC,4,2                       ## @DDRC
	.comm	_PORTC,4,2                      ## @PORTC
.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:
Lloh0:
	adrp	x8, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DDRD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DDRD@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w10, w10, #0xfffffffc
	lsr	w8, w0, w8
	bfxil	w10, w8, #0, #1
Lloh5:
	adrp	x8, _PORTD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	ldr	w11, [x8]
Lloh7:
	adrp	x12, _USB_LED_NUM_LOCK@GOTPAGE
Lloh8:
	ldr	x12, [x12, _USB_LED_NUM_LOCK@GOTPAGEOFF]
Lloh9:
	ldr	w12, [x12]
	lsr	w12, w0, w12
	lsl	w12, w12, #31
	orr	w10, w10, w12, lsr #30
	str	w10, [x9]
	and	w9, w11, #0xfffffffc
	str	w9, [x8]
Lloh10:
	adrp	x8, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _DDRC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DDRC@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w10, w10, #0xffffffbf
	lsr	w8, w0, w8
	lsl	w8, w8, #31
	orr	w8, w10, w8, lsr #25
	str	w8, [x9]
Lloh15:
	adrp	x8, _PORTC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PORTC@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0xffffffbf
	str	w9, [x8]
	b	_led_set_user
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_DDRD,4,2                       ; @DDRD
	.comm	_PORTD,4,2                      ; @PORTD
	.comm	_USB_LED_NUM_LOCK,4,2           ; @USB_LED_NUM_LOCK
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
	.comm	_DDRC,4,2                       ; @DDRC
	.comm	_PORTC,4,2                      ; @PORTC
.subsections_via_symbols
