	.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	_backlight_os_state@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rcx
	movq	_PORTB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	andl	$-18, %esi
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	btl	%ecx, %eax
	setae	%dil
	orl	%esi, %edi
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%esi, %esi
	btl	%ecx, %eax
	setae	%sil
	shll	$4, %esi
	orl	%edi, %esi
	movl	%esi, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_backlight_os_state,4,2         ## @backlight_os_state
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_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, _backlight_os_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _backlight_os_state@GOTPAGEOFF]
Lloh2:
	adrp	x9, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _PORTB@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PORTB@GOTPAGEOFF]
	ldr	w11, [x10]
	mov	w12, #-18
	and	w11, w11, w12
	mvn	w12, w8
	lsr	w9, w12, w9
	bfxil	w11, w9, #0, #1
Lloh8:
	adrp	x9, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tst	w8, #0x1
	cset	w8, eq
	bfi	w11, w8, #4, #1
	str	w11, [x10]
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_backlight_os_state,4,2         ; @backlight_os_state
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_PORTB,4,2                      ; @PORTB
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
.subsections_via_symbols
