	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_result_pop             ## -- Begin function acpi_ds_result_pop
	.p2align	4, 0x90
_acpi_ds_result_pop:                    ## @acpi_ds_result_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ds_result_pop@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_NAME
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	decq	%rax
	movq	%rax, (%r15)
	movq	_ACPI_RESULTS_FRAME_OBJ_NUM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_9
LBB0_4:
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_AML_INTERNAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_9:
	movq	(%rcx), %rax
	movq	(%rax,%rdx,8), %rax
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	(%rcx), %rax
	movq	$0, (%rax,%rdx,8)
	testq	%rdx, %rdx
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_acpi_ds_result_stack_pop
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_15
LBB0_13:
	movq	(%r14), %rdi
	callq	_acpi_ut_get_object_type_name
	movl	(%r15), %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_AE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movl	%r15d, %edi
	callq	_ACPI_ERROR
	movq	_AE_AML_NO_RETURN_VALUE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ds_result_pop,4,2              ## @ds_result_pop
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No results on result stack"

	.comm	_AE_AML_INTERNAL,4,2            ## @AE_AML_INTERNAL
L_.str.1:                               ## @.str.1
	.asciz	"No result state for result stack"

	.comm	_AE_AML_NO_RETURN_VALUE,4,2     ## @AE_AML_NO_RETURN_VALUE
	.comm	_ACPI_RESULTS_FRAME_OBJ_NUM,8,3 ## @ACPI_RESULTS_FRAME_OBJ_NUM
	.comm	_ACPI_DB_EXEC,4,2               ## @ACPI_DB_EXEC
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_result_pop             ; -- Begin function acpi_ds_result_pop
	.p2align	2
_acpi_ds_result_pop:                    ; @acpi_ds_result_pop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ds_result_pop@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_result_pop@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_NAME
	ldp	x9, x8, [x19]
	cbz	x8, LBB0_6
; %bb.1:
	cbz	x9, LBB0_9
; %bb.2:
	sub	x9, x9, #1
	str	x9, [x19]
Lloh3:
	adrp	x10, _ACPI_RESULTS_FRAME_OBJ_NUM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ACPI_RESULTS_FRAME_OBJ_NUM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	udiv	x11, x9, x10
	msub	x9, x11, x10, x9
	ldr	x10, [x8]
	ldr	x10, [x10, x9, lsl #3]
	str	x10, [x20]
	cbz	x10, LBB0_8
; %bb.3:
	ldr	x8, [x8]
	str	xzr, [x8, x9, lsl #3]
	cbnz	x9, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_acpi_ds_result_stack_pop
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_12
LBB0_5:
	ldr	x0, [x20]
	bl	_acpi_ut_get_object_type_name
	ldr	w0, [x19]
	bl	_ACPI_DEBUG_PRINT
Lloh6:
	adrp	x8, _AE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	cbz	x9, LBB0_8
; %bb.7:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_ACPI_ERROR
Lloh10:
	adrp	x8, _AE_AML_NO_RETURN_VALUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AE_AML_NO_RETURN_VALUE@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh14:
	adrp	x8, _AE_AML_INTERNAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AE_AML_INTERNAL@GOTPAGEOFF]
LBB0_11:
	ldr	w21, [x8]
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_result_pop,4,2              ; @ds_result_pop
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No results on result stack"

	.comm	_AE_AML_INTERNAL,4,2            ; @AE_AML_INTERNAL
l_.str.1:                               ; @.str.1
	.asciz	"No result state for result stack"

	.comm	_AE_AML_NO_RETURN_VALUE,4,2     ; @AE_AML_NO_RETURN_VALUE
	.comm	_ACPI_RESULTS_FRAME_OBJ_NUM,8,3 ; @ACPI_RESULTS_FRAME_OBJ_NUM
	.comm	_ACPI_DB_EXEC,4,2               ; @ACPI_DB_EXEC
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
