	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbd_led_read
_kbd_led_read:                          ## @kbd_led_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	_ASUS_WMI_DEVID_KBD_BACKLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_asus_wmi_get_devstate_bits
	xorl	%ecx, %ecx
	cmpl	$32768, %eax                    ## imm = 0x8000
	cmovnel	%eax, %ecx
	testl	%ecx, %ecx
	js	LBB0_5
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movl	%ecx, %eax
	andl	$127, %eax
	movl	%eax, (%rbx)
LBB0_3:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	shrl	$8, %ecx
	andl	$127, %ecx
	movl	%ecx, (%r14)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASUS_WMI_DEVID_KBD_BACKLIGHT,4,2 ## @ASUS_WMI_DEVID_KBD_BACKLIGHT
	.no_dead_strip	_kbd_led_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbd_led_read
_kbd_led_read:                          ; @kbd_led_read
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _ASUS_WMI_DEVID_KBD_BACKLIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASUS_WMI_DEVID_KBD_BACKLIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #65535
	bl	_asus_wmi_get_devstate_bits
	cmp	w0, #8, lsl #12                 ; =32768
	csel	w8, wzr, w0, eq
	tbnz	w8, #31, LBB0_5
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
	and	w9, w8, #0x7f
	str	w9, [x20]
LBB0_3:
	mov	w0, #0
	cbz	x19, LBB0_5
; %bb.4:
	ubfx	w8, w8, #8, #7
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ASUS_WMI_DEVID_KBD_BACKLIGHT,4,2 ; @ASUS_WMI_DEVID_KBD_BACKLIGHT
	.no_dead_strip	_kbd_led_read
.subsections_via_symbols
