	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpacpi_battery_acpi_eval
_tpacpi_battery_acpi_eval:              ## @tpacpi_battery_acpi_eval
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r8d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_hkey_handle@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rcx
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_acpi_evalf
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	-28(%rbp), %eax
	movq	_METHOD_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%rbx, %rdx
	callq	_acpi_handle_err
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movl	%eax, (%r14)
	movq	_AE_OK@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hkey_handle,4,2                ## @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dd"

L_.str.1:                               ## @.str.1
	.asciz	"%s: evaluate failed"

	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.comm	_METHOD_ERR,4,2                 ## @METHOD_ERR
L_.str.2:                               ## @.str.2
	.asciz	"%s evaluated but flagged as error"

	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_tpacpi_battery_acpi_eval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpacpi_battery_acpi_eval
_tpacpi_battery_acpi_eval:              ; @tpacpi_battery_acpi_eval
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x4, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _hkey_handle@GOTPAGE
Lloh1:
	ldr	x21, [x21, _hkey_handle@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	add	x1, sp, #12
	mov	x2, x19
	bl	_acpi_evalf
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _METHOD_ERR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _METHOD_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	w0, [x21]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x2, x19
	bl	_acpi_handle_err
Lloh11:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	str	w8, [x20]
Lloh13:
	adrp	x8, _AE_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_hkey_handle,4,2                ; @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dd"

l_.str.1:                               ; @.str.1
	.asciz	"%s: evaluate failed"

	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.comm	_METHOD_ERR,4,2                 ; @METHOD_ERR
l_.str.2:                               ; @.str.2
	.asciz	"%s evaluated but flagged as error"

	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_tpacpi_battery_acpi_eval
.subsections_via_symbols
