	.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), %edx
	movq	_STATE_LED_CAPS_LOCK@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	btl	%edx, %edi
	jae	LBB0_2
## %bb.1:
	movq	_backlight_state_led@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	movq	_backlight_state_led@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_3:
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_STATE_LED_SCROLL_LOCK@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	movl	%eax, %esi
	btrl	%edx, %esi
	btsl	%edx, %eax
	btl	%ecx, %edi
	cmovael	%esi, %eax
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_STATE_LED_NUM_LOCK@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	movl	%eax, %esi
	btrl	%edx, %esi
	btsl	%edx, %eax
	btl	%ecx, %edi
	cmovael	%esi, %eax
	movq	_backlight_state_led@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	jmp	_backlight_update_state         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_STATE_LED_CAPS_LOCK,4,2        ## @STATE_LED_CAPS_LOCK
	.comm	_backlight_state_led,4,2        ## @backlight_state_led
	.comm	_USB_LED_SCROLL_LOCK,4,2        ## @USB_LED_SCROLL_LOCK
	.comm	_STATE_LED_SCROLL_LOCK,4,2      ## @STATE_LED_SCROLL_LOCK
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_STATE_LED_NUM_LOCK,4,2         ## @STATE_LED_NUM_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, _STATE_LED_CAPS_LOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATE_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	lsr	w10, w0, w8
Lloh6:
	adrp	x8, _backlight_state_led@GOTPAGE
Lloh7:
	ldr	x8, [x8, _backlight_state_led@GOTPAGEOFF]
	tbz	w10, #0, LBB0_2
; %bb.1:
	ldr	w10, [x8]
	orr	w9, w10, w9
	b	LBB0_3
LBB0_2:
	ldr	w10, [x8]
	bic	w9, w10, w9
LBB0_3:
Lloh8:
	adrp	x10, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _STATE_LED_SCROLL_LOCK@GOTPAGE
Lloh12:
	ldr	x11, [x11, _STATE_LED_SCROLL_LOCK@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	mov	w12, #1
	lsl	w11, w12, w11
	bic	w13, w9, w11
	orr	w9, w11, w9
	lsr	w10, w0, w10
	tst	w10, #0x1
Lloh14:
	adrp	x10, _USB_LED_NUM_LOCK@GOTPAGE
Lloh15:
	ldr	x10, [x10, _USB_LED_NUM_LOCK@GOTPAGEOFF]
	csel	w9, w13, w9, eq
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _STATE_LED_NUM_LOCK@GOTPAGE
Lloh18:
	ldr	x11, [x11, _STATE_LED_NUM_LOCK@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	lsl	w11, w12, w11
	bic	w12, w9, w11
	orr	w9, w11, w9
	lsr	w10, w0, w10
	tst	w10, #0x1
	csel	w9, w12, w9, eq
	str	w9, [x8]
	b	_backlight_update_state
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_STATE_LED_CAPS_LOCK,4,2        ; @STATE_LED_CAPS_LOCK
	.comm	_backlight_state_led,4,2        ; @backlight_state_led
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
	.comm	_STATE_LED_SCROLL_LOCK,4,2      ; @STATE_LED_SCROLL_LOCK
	.comm	_USB_LED_NUM_LOCK,4,2           ; @USB_LED_NUM_LOCK
	.comm	_STATE_LED_NUM_LOCK,4,2         ; @STATE_LED_NUM_LOCK
.subsections_via_symbols
