	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_host_led_state            ## -- Begin function read_host_led_state
	.p2align	4, 0x90
_read_host_led_state:                   ## @read_host_led_state
	.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
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_host_keyboard_leds
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	movq	_led_numlock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	jae	LBB0_3
## %bb.1:
	testl	%edx, %edx
	jne	LBB0_5
## %bb.2:
	movl	$1, %ebx
	jmp	LBB0_4
LBB0_3:
	cmpl	$1, %edx
	jne	LBB0_5
LBB0_4:
	movl	%ebx, (%rcx)
LBB0_5:
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	movq	_led_capslock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	jae	LBB0_8
## %bb.6:
	testl	%esi, %esi
	jne	LBB0_10
## %bb.7:
	movl	$1, %edx
	jmp	LBB0_9
LBB0_8:
	xorl	%edx, %edx
	cmpl	$1, %esi
	jne	LBB0_10
LBB0_9:
	movl	%edx, (%rcx)
LBB0_10:
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	movq	_led_scrolllock@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jae	LBB0_13
## %bb.11:
	testl	%edx, %edx
	jne	LBB0_15
## %bb.12:
	movl	$1, %ecx
	jmp	LBB0_14
LBB0_13:
	xorl	%ecx, %ecx
	cmpl	$1, %edx
	jne	LBB0_15
LBB0_14:
	movl	%ecx, (%rax)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_led_numlock,4,2                ## @led_numlock
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_led_capslock,4,2               ## @led_capslock
	.comm	_USB_LED_SCROLL_LOCK,4,2        ## @USB_LED_SCROLL_LOCK
	.comm	_led_scrolllock,4,2             ## @led_scrolllock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_host_led_state            ; -- Begin function read_host_led_state
	.p2align	2
_read_host_led_state:                   ; @read_host_led_state
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_host_keyboard_leds
Lloh0:
	adrp	x8, _USB_LED_NUM_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_LED_NUM_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x8, _led_numlock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _led_numlock@GOTPAGEOFF]
	ldr	w9, [x8]
	lsr	w10, w0, w10
	tbz	w10, #0, LBB0_3
; %bb.1:
	cbnz	w9, LBB0_6
; %bb.2:
	mov	w9, #1
	b	LBB0_5
LBB0_3:
	cmp	w9, #1
	b.ne	LBB0_6
; %bb.4:
	mov	w9, #0
LBB0_5:
	str	w9, [x8]
LBB0_6:
Lloh5:
	adrp	x8, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x8]
Lloh8:
	adrp	x8, _led_capslock@GOTPAGE
Lloh9:
	ldr	x8, [x8, _led_capslock@GOTPAGEOFF]
	ldr	w9, [x8]
	lsr	w10, w0, w10
	tbz	w10, #0, LBB0_9
; %bb.7:
	cbnz	w9, LBB0_12
; %bb.8:
	mov	w9, #1
	b	LBB0_11
LBB0_9:
	cmp	w9, #1
	b.ne	LBB0_12
; %bb.10:
	mov	w9, #0
LBB0_11:
	str	w9, [x8]
LBB0_12:
Lloh10:
	adrp	x8, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x8]
Lloh13:
	adrp	x8, _led_scrolllock@GOTPAGE
Lloh14:
	ldr	x8, [x8, _led_scrolllock@GOTPAGEOFF]
	ldr	w9, [x8]
	lsr	w10, w0, w10
	tbz	w10, #0, LBB0_15
; %bb.13:
	cbz	w9, LBB0_17
LBB0_14:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_15:
	cmp	w9, #1
	b.ne	LBB0_14
; %bb.16:
	mov	w9, #0
	b	LBB0_18
LBB0_17:
	mov	w9, #1
LBB0_18:
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_LED_NUM_LOCK,4,2           ; @USB_LED_NUM_LOCK
	.comm	_led_numlock,4,2                ; @led_numlock
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_led_capslock,4,2               ; @led_capslock
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
	.comm	_led_scrolllock,4,2             ; @led_scrolllock
.subsections_via_symbols
