	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_obj_stack_pop_and_delete ## -- Begin function acpi_ds_obj_stack_pop_and_delete
	.p2align	4, 0x90
_acpi_ds_obj_stack_pop_and_delete:      ## @acpi_ds_obj_stack_pop_and_delete
	.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_obj_stack_pop_and_delete@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_NAME
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	-8(,%r14,8), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$-8, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rax
	movq	%rax, (%r15)
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_acpi_ut_remove_reference
	movq	8(%r15), %rax
	movq	$0, (%rax,%rbx)
	movq	(%r15), %rax
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ds_obj_stack_pop_and_delete,4,2 ## @ds_obj_stack_pop_and_delete
	.comm	_ACPI_DB_EXEC,4,2               ## @ACPI_DB_EXEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_obj_stack_pop_and_delete ; -- Begin function acpi_ds_obj_stack_pop_and_delete
	.p2align	2
_acpi_ds_obj_stack_pop_and_delete:      ; @acpi_ds_obj_stack_pop_and_delete
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ds_obj_stack_pop_and_delete@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_obj_stack_pop_and_delete@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_NAME
	cbz	x20, LBB0_6
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.2:
	lsl	x9, x20, #3
	sub	x20, x9, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x20, x20, #8
	cbz	x8, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x8, #1
	str	x8, [x19]
	ldr	x9, [x19, #8]
	ldr	x0, [x9, x20]
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_acpi_ut_remove_reference
	ldp	x8, x9, [x19]
	str	xzr, [x9, x20]
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_obj_stack_pop_and_delete,4,2 ; @ds_obj_stack_pop_and_delete
	.comm	_ACPI_DB_EXEC,4,2               ; @ACPI_DB_EXEC
.subsections_via_symbols
