	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpacpi_lcdshadow_init
_tpacpi_lcdshadow_init:                 ## @tpacpi_lcdshadow_init
	.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
	movq	_hkey_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-16(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
LBB0_6:
	movq	_lcdshadow_state@GOTPCREL(%rip), %rcx
	movl	%ebx, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	-16(%rbp), %edi
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	leaq	-12(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_acpi_evalf
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	-12(%rbp), %ebx
	testl	$65536, %ebx                    ## imm = 0x10000
	je	LBB0_1
## %bb.5:
	andl	$1, %ebx
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_hkey_handle,4,2                ## @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GSSS"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_lcdshadow_state,4,2            ## @lcdshadow_state
L_.str.1:                               ## @.str.1
	.asciz	"dd"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpacpi_lcdshadow_init
_tpacpi_lcdshadow_init:                 ; @tpacpi_lcdshadow_init
	.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
Lloh0:
	adrp	x8, _hkey_handle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hkey_handle@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #4
	bl	_acpi_get_handle
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_2:
Lloh8:
	adrp	x9, _lcdshadow_state@GOTPAGE
Lloh9:
	ldr	x9, [x9, _lcdshadow_state@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_3:
	ldur	w0, [x29, #-4]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x1, sp, #8
	mov	x2, #0
	mov	w4, #0
	bl	_acpi_evalf
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w8, [sp, #8]
	tbz	w8, #16, LBB0_1
; %bb.5:
	mov	w0, #0
	and	w8, w8, #0x1
	b	LBB0_2
LBB0_6:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w8, w8
	mov	x0, x8
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_hkey_handle,4,2                ; @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GSSS"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_lcdshadow_state,4,2            ; @lcdshadow_state
l_.str.1:                               ; @.str.1
	.asciz	"dd"

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