	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_delete_namespace_subtree ## -- Begin function acpi_ns_delete_namespace_subtree
	.p2align	4, 0x90
_acpi_ns_delete_namespace_subtree:      ## @acpi_ns_delete_namespace_subtree
	.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	%rdi, %r14
	movq	_ns_delete_namespace_subtree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movl	$1, %r15d
	xorl	%esi, %esi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	decq	%r15
	movq	%r14, %rdi
	callq	_acpi_ns_delete_children
	movq	(%r14), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rsi
	movq	%rax, %r14
	testq	%r15, %r15
	jle	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_acpi_ns_get_next_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_acpi_ns_detach_object
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%r15
	movq	%rbx, %rax
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rax
	movq	%rbx, %r14
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ns_delete_namespace_subtree,4,2 ## @ns_delete_namespace_subtree
	.comm	_return_VOID,4,2                ## @return_VOID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_delete_namespace_subtree ; -- Begin function acpi_ns_delete_namespace_subtree
	.p2align	2
_acpi_ns_delete_namespace_subtree:      ; @acpi_ns_delete_namespace_subtree
	.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, x0
Lloh0:
	adrp	x8, _ns_delete_namespace_subtree@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ns_delete_namespace_subtree@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	mov	x1, #0
	mov	w21, #1
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x21, x21, #1
	mov	x0, x19
	bl	_acpi_ns_delete_children
	ldr	x8, [x19]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x19
	mov	x19, x8
	cmp	x21, #0
	b.le	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_acpi_ns_get_next_node
	cbz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
	bl	_acpi_ns_detach_object
	ldr	x8, [x20, #8]
	cmp	x8, #0
	csel	x8, x19, x20, eq
	csel	x19, x20, xzr, eq
	cinc	x21, x21, ne
	b	LBB0_2
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ns_delete_namespace_subtree,4,2 ; @ns_delete_namespace_subtree
	.comm	_return_VOID,4,2                ; @return_VOID
.subsections_via_symbols
