	.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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_DDRB@GOTPCREL(%rip), %rax
	orb	$-128, (%rax)
	movq	_DDRC@GOTPCREL(%rip), %rax
	orb	$96, (%rax)
	callq	_print_dec
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	btl	%ecx, %ebx
	setae	%al
	movq	_PORTC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	$-97, %edx
	shll	$5, %eax
	orl	%edx, %eax
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	btl	%edx, %ebx
	setae	%sil
	movq	_PORTB@GOTPCREL(%rip), %rdx
	movl	$-129, %edi
	andl	(%rdx), %edi
	shll	$7, %esi
	orl	%edi, %esi
	movl	%esi, (%rdx)
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	btl	%edx, %ebx
	setae	%sil
	shll	$6, %esi
	orl	%eax, %esi
	movl	%esi, (%rcx)
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_led_set_user                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DDRB,4,2                       ## @DDRB
	.comm	_DDRC,4,2                       ## @DDRC
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_PORTC,4,2                      ## @PORTC
	.comm	_USB_LED_SCROLL_LOCK,4,2        ## @USB_LED_SCROLL_LOCK
	.comm	_PORTB,4,2                      ## @PORTB
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _DDRB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DDRB@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x80
	str	w9, [x8]
Lloh2:
	adrp	x8, _DDRC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DDRC@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x60
	str	w9, [x8]
	bl	_print_dec
Lloh4:
	adrp	x8, _USB_LED_NUM_LOCK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USB_LED_NUM_LOCK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _PORTC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PORTC@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w10, w10, #0xffffff9f
	lsr	w8, w19, w8
	tst	w8, #0x1
	cset	w8, eq
	bfi	w10, w8, #5, #1
Lloh9:
	adrp	x8, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x11, _PORTB@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PORTB@GOTPAGEOFF]
	ldr	w12, [x11]
	lsr	w8, w19, w8
	tst	w8, #0x1
	cset	w8, eq
	bfi	w12, w8, #7, #1
	str	w12, [x11]
Lloh14:
	adrp	x8, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsr	w8, w19, w8
	tst	w8, #0x1
	cset	w8, eq
	bfi	w10, w8, #6, #1
	str	w10, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_led_set_user
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DDRB,4,2                       ; @DDRB
	.comm	_DDRC,4,2                       ; @DDRC
	.comm	_USB_LED_NUM_LOCK,4,2           ; @USB_LED_NUM_LOCK
	.comm	_PORTC,4,2                      ; @PORTC
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
	.comm	_PORTB,4,2                      ; @PORTB
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
.subsections_via_symbols
