	.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), %eax
	btl	%eax, %edi
	movq	_DDRD@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	jae	LBB0_2
## %bb.1:
	orl	$16, %ecx
	movq	_PORTD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	$16, %esi
	jmp	LBB0_3
LBB0_2:
	andl	$-17, %ecx
	movq	_PORTD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	andl	$-17, %esi
LBB0_3:
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	xorl	%edx, %edx
	btl	%eax, %edi
	setb	%dl
	andl	$-33, %ecx
	andl	$-33, %esi
	shll	$5, %edx
	orl	%edx, %ecx
	orl	%esi, %edx
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %edi
	jae	LBB0_5
## %bb.4:
	orl	$64, %ecx
	movl	%ecx, (%r8)
	orl	$64, %edx
	jmp	LBB0_6
LBB0_5:
	andl	$-65, %ecx
	movl	%ecx, (%r8)
	andl	$-65, %edx
LBB0_6:
	movq	_PORTD@GOTPCREL(%rip), %rax
	movl	%edx, (%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
.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]
	lsr	w11, w0, w8
Lloh5:
	adrp	x8, _PORTD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	tbz	w11, #0, LBB0_2
; %bb.1:
	orr	w10, w10, #0x10
	ldr	w11, [x8]
	orr	w11, w11, #0x10
	b	LBB0_3
LBB0_2:
	and	w10, w10, #0xffffffef
	ldr	w11, [x8]
	and	w11, w11, #0xffffffef
LBB0_3:
Lloh7:
	adrp	x12, _USB_LED_NUM_LOCK@GOTPAGE
Lloh8:
	ldr	x12, [x12, _USB_LED_NUM_LOCK@GOTPAGEOFF]
Lloh9:
	ldr	w12, [x12]
	and	w10, w10, #0xffffffdf
	and	w13, w11, #0xffffffdf
	lsr	w11, w0, w12
	ubfiz	w12, w11, #5, #1
	orr	w11, w10, w12
	orr	w10, w13, w12
Lloh10:
	adrp	x12, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh11:
	ldr	x12, [x12, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
Lloh12:
	ldr	w12, [x12]
	lsr	w12, w0, w12
	tbz	w12, #0, LBB0_5
; %bb.4:
	orr	w11, w11, #0x40
	str	w11, [x9]
	orr	w9, w10, #0x40
	str	w9, [x8]
	b	_led_set_user
LBB0_5:
	and	w11, w11, #0xffffffbf
	str	w11, [x9]
	and	w9, w10, #0xffffffbf
	str	w9, [x8]
	b	_led_set_user
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.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
.subsections_via_symbols
