	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_set_user                   ## -- Begin function led_set_user
	.weak_definition	_led_set_user
	.p2align	4, 0x90
_led_set_user:                          ## @led_set_user
	.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_NUM_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %edi
	movq	_NUMLOCK_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jae	LBB0_2
## %bb.1:
	movq	_DDRD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movq	_PORTD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	movq	_DDRD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_PORTD@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
LBB0_3:
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	btl	%edx, %edi
	movq	_CAPSLOCK_PORT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	jae	LBB0_5
## %bb.4:
	orl	%edx, %ecx
	orl	%edx, %eax
	jmp	LBB0_6
LBB0_5:
	notl	%edx
	andl	%edx, %ecx
	andl	%edx, %eax
LBB0_6:
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	btl	%edx, %edi
	movq	_SCROLLLOCK_PORT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	jae	LBB0_8
## %bb.7:
	orl	%edx, %ecx
	movq	_DDRD@GOTPCREL(%rip), %rsi
	movl	%ecx, (%rsi)
	orl	%edx, %eax
	jmp	LBB0_9
LBB0_8:
	notl	%edx
	andl	%edx, %ecx
	movq	_DDRD@GOTPCREL(%rip), %rsi
	movl	%ecx, (%rsi)
	andl	%edx, %eax
LBB0_9:
	movq	_PORTD@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_NUMLOCK_PORT,4,2               ## @NUMLOCK_PORT
	.comm	_DDRD,4,2                       ## @DDRD
	.comm	_PORTD,4,2                      ## @PORTD
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_CAPSLOCK_PORT,4,2              ## @CAPSLOCK_PORT
	.comm	_USB_LED_SCROLL_LOCK,4,2        ## @USB_LED_SCROLL_LOCK
	.comm	_SCROLLLOCK_PORT,4,2            ## @SCROLLLOCK_PORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_set_user                   ; -- Begin function led_set_user
	.weak_definition	_led_set_user
	.p2align	2
_led_set_user:                          ; @led_set_user
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _USB_LED_NUM_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_LED_NUM_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NUMLOCK_PORT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NUMLOCK_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x9]
	lsr	w10, w0, w8
Lloh6:
	adrp	x9, _DDRD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DDRD@GOTPAGEOFF]
Lloh8:
	adrp	x8, _PORTD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	tbz	w10, #0, LBB0_2
; %bb.1:
	ldr	w10, [x9]
	orr	w10, w10, w11
	ldr	w12, [x8]
	orr	w11, w12, w11
	b	LBB0_3
LBB0_2:
	ldr	w10, [x9]
	bic	w10, w10, w11
	ldr	w12, [x8]
	bic	w11, w12, w11
LBB0_3:
Lloh10:
	adrp	x12, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh11:
	ldr	x12, [x12, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh12:
	ldr	w12, [x12]
Lloh13:
	adrp	x13, _CAPSLOCK_PORT@GOTPAGE
Lloh14:
	ldr	x13, [x13, _CAPSLOCK_PORT@GOTPAGEOFF]
Lloh15:
	ldr	w13, [x13]
	lsr	w12, w0, w12
	bic	w14, w10, w13
	bic	w15, w11, w13
	orr	w10, w10, w13
	orr	w13, w13, w11
	tst	w12, #0x1
	csel	w11, w14, w10, eq
Lloh16:
	adrp	x12, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh17:
	ldr	x12, [x12, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
	csel	w10, w15, w13, eq
Lloh18:
	ldr	w13, [x12]
Lloh19:
	adrp	x12, _SCROLLLOCK_PORT@GOTPAGE
Lloh20:
	ldr	x12, [x12, _SCROLLLOCK_PORT@GOTPAGEOFF]
Lloh21:
	ldr	w12, [x12]
	lsr	w13, w0, w13
	tbz	w13, #0, LBB0_5
; %bb.4:
	orr	w11, w11, w12
	str	w11, [x9]
	orr	w9, w12, w10
	str	w9, [x8]
	ret
LBB0_5:
	bic	w11, w11, w12
	str	w11, [x9]
	bic	w9, w10, w12
	str	w9, [x8]
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_LED_NUM_LOCK,4,2           ; @USB_LED_NUM_LOCK
	.comm	_NUMLOCK_PORT,4,2               ; @NUMLOCK_PORT
	.comm	_DDRD,4,2                       ; @DDRD
	.comm	_PORTD,4,2                      ; @PORTD
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_CAPSLOCK_PORT,4,2              ; @CAPSLOCK_PORT
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
	.comm	_SCROLLLOCK_PORT,4,2            ; @SCROLLLOCK_PORT
.subsections_via_symbols
