	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ds_result_stack_pop
_acpi_ds_result_stack_pop:              ## @acpi_ds_result_stack_pop
	.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	%rdi, %rbx
	movq	_ds_result_stack_pop@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_NAME
	cmpq	$0, 16(%rbx)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_ACPI_RESULTS_FRAME_OBJ_NUM@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jge	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_AML_INTERNAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movl	%ebx, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_AE_AML_NO_OPERAND@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	16(%rbx), %rdi
	callq	_acpi_ut_pop_generic_state
	movq	%rax, %rdi
	callq	_acpi_ut_delete_generic_state
	movq	(%r14), %rax
	subq	%rax, (%rbx)
	movl	%ebx, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_AE_OK@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ds_result_stack_pop,4,2        ## @ds_result_stack_pop
	.comm	_ACPI_DB_EXEC,4,2               ## @ACPI_DB_EXEC
	.comm	_AE_AML_NO_OPERAND,4,2          ## @AE_AML_NO_OPERAND
	.comm	_ACPI_RESULTS_FRAME_OBJ_NUM,8,3 ## @ACPI_RESULTS_FRAME_OBJ_NUM
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Insufficient result stack size"

	.comm	_AE_AML_INTERNAL,4,2            ## @AE_AML_INTERNAL
	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_acpi_ds_result_stack_pop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ds_result_stack_pop
_acpi_ds_result_stack_pop:              ; @acpi_ds_result_stack_pop
	.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, x0
Lloh0:
	adrp	x8, _ds_result_stack_pop@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_result_stack_pop@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_NAME
	mov	x0, x19
	ldr	x8, [x0, #16]!
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x20, _ACPI_RESULTS_FRAME_OBJ_NUM@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ACPI_RESULTS_FRAME_OBJ_NUM@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh7:
	adrp	x8, _AE_AML_INTERNAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AE_AML_INTERNAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_ACPI_DEBUG_PRINT
Lloh9:
	adrp	x8, _AE_AML_NO_OPERAND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_AML_NO_OPERAND@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	bl	_acpi_ut_pop_generic_state
	bl	_acpi_ut_delete_generic_state
	ldr	x8, [x20]
	ldr	x9, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
	mov	x0, x19
	bl	_ACPI_DEBUG_PRINT
Lloh11:
	adrp	x8, _AE_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_result_stack_pop,4,2        ; @ds_result_stack_pop
	.comm	_ACPI_DB_EXEC,4,2               ; @ACPI_DB_EXEC
	.comm	_AE_AML_NO_OPERAND,4,2          ; @AE_AML_NO_OPERAND
	.comm	_ACPI_RESULTS_FRAME_OBJ_NUM,8,3 ; @ACPI_RESULTS_FRAME_OBJ_NUM
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Insufficient result stack size"

	.comm	_AE_AML_INTERNAL,4,2            ; @AE_AML_INTERNAL
	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_acpi_ds_result_stack_pop
.subsections_via_symbols
