	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_get_predicate_value    ## -- Begin function acpi_ds_get_predicate_value
	.p2align	4, 0x90
_acpi_ds_get_predicate_value:           ## @acpi_ds_get_predicate_value
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	movq	_ds_get_predicate_value@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_ACPI_FUNCTION_TRACE_PTR
	movq	(%r15), %rax
	movq	$0, (%rax)
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	leaq	-32(%rbp), %rdi
	movq	%r15, %rsi
	callq	_acpi_ds_result_pop
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_EXCEPTION
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_3:
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_11
LBB0_10:
	movl	%r15d, %edi
	callq	_ACPI_ERROR
	movq	_AE_AML_NO_OPERAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	movq	-32(%rbp), %rdi
LBB0_11:
	leaq	-40(%rbp), %rsi
	movl	$16, %edx
	callq	_acpi_ex_convert_to_integer
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_18
## %bb.12:
	movq	-40(%rbp), %rdi
	movq	(%rdi), %rax
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.14:
	callq	_acpi_ex_truncate_for32bit_table
	movq	-40(%rbp), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_16
## %bb.15:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r15), %rax
	movl	%edx, 8(%rax)
	jmp	LBB0_17
LBB0_4:
	movl	8(%r15), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_acpi_ds_create_operand
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_6:
	movq	16(%r15), %rdi
	movq	%r15, %rsi
	callq	_acpi_ex_resolve_to_value
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_8:
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	movq	%rdi, -32(%rbp)
	testq	%rdi, %rdi
	jne	LBB0_11
	jmp	LBB0_10
LBB0_13:
	movq	-32(%rbp), %rax
	movl	(%rax), %edi
	callq	_ACPI_ERROR
	movq	_AE_AML_OPERAND_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_18
LBB0_16:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx)
	movq	_AE_CTRL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_17:
	movq	%r15, %rsi
	callq	_acpi_ds_do_implicit_return
LBB0_18:
	movl	8(%r15), %edi
	callq	_ACPI_DEBUG_PRINT
	movq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_acpi_db_display_result_object
	movl	%eax, %edi
	callq	_ACPI_DEBUGGER_EXEC
	movq	-40(%rbp), %rdi
	cmpq	-32(%rbp), %rdi
	je	LBB0_20
## %bb.19:
	callq	_acpi_ut_remove_reference
	movq	-32(%rbp), %rdi
LBB0_20:
	callq	_acpi_ut_remove_reference
	movq	_ACPI_CONTROL_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ds_get_predicate_value,4,2     ## @ds_get_predicate_value
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get result from predicate evaluation"

	.comm	_AE_AML_NO_OPERAND,4,2          ## @AE_AML_NO_OPERAND
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.comm	_AE_AML_OPERAND_TYPE,4,2        ## @AE_AML_OPERAND_TYPE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_AE_CTRL_FALSE,4,2              ## @AE_CTRL_FALSE
	.comm	_ACPI_DB_EXEC,4,2               ## @ACPI_DB_EXEC
	.comm	_ACPI_CONTROL_NORMAL,8,3        ## @ACPI_CONTROL_NORMAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_get_predicate_value    ; -- Begin function acpi_ds_get_predicate_value
	.p2align	2
_acpi_ds_get_predicate_value:           ; @acpi_ds_get_predicate_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp]
Lloh0:
	adrp	x8, _ds_get_predicate_value@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_get_predicate_value@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ACPI_FUNCTION_TRACE_PTR
	ldr	x8, [x19]
	str	xzr, [x8]
	cbz	x20, LBB0_9
; %bb.1:
	add	x0, sp, #8
	mov	x1, x19
	bl	_acpi_ds_result_pop
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_EXCEPTION
	mov	x0, x20
	bl	_return_ACPI_STATUS
LBB0_3:
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_ACPI_ERROR
Lloh5:
	adrp	x8, _AE_AML_NO_OPERAND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_AML_NO_OPERAND@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	ldr	x0, [sp, #8]
LBB0_5:
	mov	x1, sp
	mov	w2, #16
	bl	_acpi_ex_convert_to_integer
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_17
; %bb.6:
	ldr	x0, [sp]
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.7:
	bl	_acpi_ex_truncate_for32bit_table
	ldr	x0, [sp]
	ldr	x8, [x0]
	cbz	x8, LBB0_15
; %bb.8:
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	x8, [x19]
	str	w2, [x8, #8]
	b	LBB0_16
LBB0_9:
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_acpi_ds_create_operand
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_return_ACPI_STATUS
LBB0_11:
	ldr	x0, [x19, #16]
	mov	x1, x19
	bl	_acpi_ex_resolve_to_value
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_return_ACPI_STATUS
LBB0_13:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	str	x0, [sp, #8]
	cbnz	x0, LBB0_5
	b	LBB0_4
LBB0_14:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_ACPI_ERROR
Lloh14:
	adrp	x8, _AE_AML_OPERAND_TYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AE_AML_OPERAND_TYPE@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	b	LBB0_17
LBB0_15:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #8]
Lloh20:
	adrp	x8, _AE_CTRL_FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AE_CTRL_FALSE@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
Lloh23:
	adrp	x8, _TRUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
LBB0_16:
	mov	x1, x19
	bl	_acpi_ds_do_implicit_return
LBB0_17:
	ldr	w0, [x19, #8]
	bl	_ACPI_DEBUG_PRINT
	ldr	x0, [sp]
	mov	x1, x19
	bl	_acpi_db_display_result_object
	bl	_ACPI_DEBUGGER_EXEC
	ldp	x0, x8, [sp]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.18:
	bl	_acpi_ut_remove_reference
	ldr	x0, [sp, #8]
LBB0_19:
	bl	_acpi_ut_remove_reference
Lloh26:
	adrp	x8, _ACPI_CONTROL_NORMAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ACPI_CONTROL_NORMAL@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9]
	mov	x0, x20
	bl	_return_ACPI_STATUS
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ds_get_predicate_value,4,2     ; @ds_get_predicate_value
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get result from predicate evaluation"

	.comm	_AE_AML_NO_OPERAND,4,2          ; @AE_AML_NO_OPERAND
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.comm	_AE_AML_OPERAND_TYPE,4,2        ; @AE_AML_OPERAND_TYPE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_AE_CTRL_FALSE,4,2              ; @AE_CTRL_FALSE
	.comm	_ACPI_DB_EXEC,4,2               ; @ACPI_DB_EXEC
	.comm	_ACPI_CONTROL_NORMAL,8,3        ; @ACPI_CONTROL_NORMAL
.subsections_via_symbols
