	.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
	movl	(%rax), %ecx
	xorl	%eax, %eax
	btl	%ecx, %edi
	setae	%al
	movq	_PORTC@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	andl	$-97, %edx
	shll	$5, %eax
	orl	%edx, %eax
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	btl	%edx, %edi
	setae	%sil
	movq	_PORTB@GOTPCREL(%rip), %rdx
	movl	$-129, %ecx
	andl	(%rdx), %ecx
	shll	$7, %esi
	orl	%ecx, %esi
	movl	%esi, (%rdx)
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	btl	%ecx, %edi
	setae	%dl
	shll	$6, %edx
	orl	%eax, %edx
	movl	%edx, (%r8)
	popq	%rbp
	jmp	_led_set_user                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_PORTC,4,2                      ## @PORTC
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_PORTB,4,2                      ## @PORTB
	.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:
Lloh0:
	adrp	x8, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PORTC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PORTC@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w10, w10, #0xffffff9f
	lsr	w8, w0, w8
	tst	w8, #0x1
	cset	w8, eq
	bfi	w10, w8, #5, #1
Lloh5:
	adrp	x8, _USB_LED_NUM_LOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_LED_NUM_LOCK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x11, _PORTB@GOTPAGE
Lloh9:
	ldr	x11, [x11, _PORTB@GOTPAGEOFF]
	ldr	w12, [x11]
	lsr	w8, w0, w8
	tst	w8, #0x1
	cset	w8, eq
	bfi	w12, w8, #7, #1
	str	w12, [x11]
Lloh10:
	adrp	x8, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsr	w8, w0, w8
	tst	w8, #0x1
	cset	w8, eq
	bfi	w10, w8, #6, #1
	str	w10, [x9]
	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	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_PORTC,4,2                      ; @PORTC
	.comm	_USB_LED_NUM_LOCK,4,2           ; @USB_LED_NUM_LOCK
	.comm	_PORTB,4,2                      ; @PORTB
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
.subsections_via_symbols
