	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_detach_data            ## -- Begin function acpi_ns_detach_data
	.p2align	4, 0x90
_acpi_ns_detach_data:                   ## @acpi_ns_detach_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %r8
	movq	(%rdi), %rdi
	movq	_AE_NOT_FOUND@GOTPCREL(%rip), %r9
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	_ACPI_TYPE_LOCAL_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%rdi), %rax
	cmpq	%rsi, %rax
	jne	LBB0_7
## %bb.2:
	cmpq	%rdx, %rax
	jne	LBB0_7
## %bb.3:
	xorl	%eax, %eax
LBB0_6:
	leaq	8(%rax), %rcx
	testq	%rax, %rax
	movq	8(%rdi), %rax
	cmoveq	%r8, %rcx
	movq	%rax, (%rcx)
	callq	_acpi_ut_remove_reference
	movq	_AE_OK@GOTPCREL(%rip), %r9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rdi), %rcx
	cmpq	%rsi, %rcx
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rdx, %rcx
	je	LBB0_6
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rax
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
LBB0_8:
	movl	(%r9), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_TYPE_LOCAL_DATA,8,3       ## @ACPI_TYPE_LOCAL_DATA
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_AE_NOT_FOUND,4,2               ## @AE_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_detach_data            ; -- Begin function acpi_ns_detach_data
	.p2align	2
_acpi_ns_detach_data:                   ; @acpi_ns_detach_data
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, _ACPI_TYPE_LOCAL_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_TYPE_LOCAL_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
	ldr	x9, [x8]
	cmp	x9, x1
	ccmp	x9, x10, #0, eq
	b.eq	LBB0_6
; %bb.2:
Lloh3:
	adrp	x9, _AE_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AE_NOT_FOUND@GOTPAGEOFF]
	mov	x11, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x11, #8]
	cbz	x8, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x8]
	cmp	x12, x1
	ccmp	x12, x10, #0, eq
	mov	x12, x11
	mov	x11, x8
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x9, _AE_NOT_FOUND@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AE_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x12, #0
LBB0_7:
	ldr	x9, [x8, #8]
	add	x10, x12, #8
	cmp	x12, #0
	csel	x10, x0, x10, eq
	str	x9, [x10]
	mov	x0, x8
	bl	_acpi_ut_remove_reference
Lloh7:
	adrp	x9, _AE_OK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AE_OK@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_TYPE_LOCAL_DATA,8,3       ; @ACPI_TYPE_LOCAL_DATA
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_AE_NOT_FOUND,4,2               ; @AE_NOT_FOUND
.subsections_via_symbols
