	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_detach_object          ## -- Begin function acpi_ns_detach_object
	.p2align	4, 0x90
_acpi_ns_detach_object:                 ## @acpi_ns_detach_object
	.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	_ns_detach_object@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	8(%rbx), %r14
	movq	_ANOBJ_ALLOCATED_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rdi
	movq	_ACPI_TYPE_METHOD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_3
## %bb.2:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_FREE
LBB0_3:
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_ACPI_GET_DESCRIPTOR_TYPE
	movq	_ACPI_DESC_TYPE_OPERAND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	8(%r14), %rax
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rax), %rcx
	movq	_ACPI_TYPE_LOCAL_DATA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.6:
	movq	8(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_7:
	movq	_ACPI_TYPE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_acpi_ut_get_node_name
	movl	%r14d, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_acpi_ut_remove_reference       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ns_detach_object,4,2           ## @ns_detach_object
	.comm	_ACPI_TYPE_LOCAL_DATA,8,3       ## @ACPI_TYPE_LOCAL_DATA
	.comm	_return_VOID,4,2                ## @return_VOID
	.comm	_ANOBJ_ALLOCATED_BUFFER,4,2     ## @ANOBJ_ALLOCATED_BUFFER
	.comm	_ACPI_TYPE_METHOD,8,3           ## @ACPI_TYPE_METHOD
	.comm	_ACPI_DESC_TYPE_OPERAND,8,3     ## @ACPI_DESC_TYPE_OPERAND
	.comm	_ACPI_TYPE_ANY,4,2              ## @ACPI_TYPE_ANY
	.comm	_ACPI_DB_NAMES,4,2              ## @ACPI_DB_NAMES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_detach_object          ; -- Begin function acpi_ns_detach_object
	.p2align	2
_acpi_ns_detach_object:                 ; @acpi_ns_detach_object
	.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	x20, x0
Lloh0:
	adrp	x8, _ns_detach_object@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ns_detach_object@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	x19, [x20, #8]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _ANOBJ_ALLOCATED_BUFFER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ANOBJ_ALLOCATED_BUFFER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x0, [x19]
Lloh6:
	adrp	x8, _ACPI_TYPE_METHOD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_TYPE_METHOD@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_FREE
LBB0_3:
	str	xzr, [x20, #8]
	mov	x0, x19
	bl	_ACPI_GET_DESCRIPTOR_TYPE
Lloh9:
	adrp	x8, _ACPI_DESC_TYPE_OPERAND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_DESC_TYPE_OPERAND@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
	str	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x9, [x8]
Lloh12:
	adrp	x10, _ACPI_TYPE_LOCAL_DATA@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ACPI_TYPE_LOCAL_DATA@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x8, #8]
	str	x8, [x20, #8]
LBB0_7:
Lloh15:
	adrp	x8, _ACPI_TYPE_ANY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACPI_TYPE_ANY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_acpi_ut_get_node_name
	mov	x0, x19
	bl	_ACPI_DEBUG_PRINT
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_acpi_ut_remove_reference
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ns_detach_object,4,2           ; @ns_detach_object
	.comm	_ACPI_TYPE_LOCAL_DATA,8,3       ; @ACPI_TYPE_LOCAL_DATA
	.comm	_return_VOID,4,2                ; @return_VOID
	.comm	_ANOBJ_ALLOCATED_BUFFER,4,2     ; @ANOBJ_ALLOCATED_BUFFER
	.comm	_ACPI_TYPE_METHOD,8,3           ; @ACPI_TYPE_METHOD
	.comm	_ACPI_DESC_TYPE_OPERAND,8,3     ; @ACPI_DESC_TYPE_OPERAND
	.comm	_ACPI_TYPE_ANY,4,2              ; @ACPI_TYPE_ANY
	.comm	_ACPI_DB_NAMES,4,2              ; @ACPI_DB_NAMES
.subsections_via_symbols
