	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbdlight_get_level
_kbdlight_get_level:                    ## @kbdlight_get_level
	.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	$0, -12(%rbp)
	movq	_hkey_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-12(%rbp), %rsi
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	callq	_acpi_evalf
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	-12(%rbp), %eax
	movl	%eax, %ebx
	andl	$3, %ebx
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hkey_handle,4,2                ## @hkey_handle
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MLCG"

L_.str.1:                               ## @.str.1
	.asciz	"dd"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_kbdlight_get_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbdlight_get_level
_kbdlight_get_level:                    ; @kbdlight_get_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	stur	wzr, [x29, #-4]
Lloh0:
	adrp	x8, _hkey_handle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hkey_handle@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #4
	mov	w4, #0
	bl	_acpi_evalf
	cbz	w0, LBB0_4
; %bb.2:
	ldur	w8, [x29, #-4]
	and	w9, w8, #0x3
	cmp	w8, #0
	csel	w0, w8, w9, lt
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hkey_handle,4,2                ; @hkey_handle
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MLCG"

l_.str.1:                               ; @.str.1
	.asciz	"dd"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_kbdlight_get_level
.subsections_via_symbols
