	.file	"extr_nsobject.c_acpi_ns_detach_object.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_ns_detach_object
	.type	acpi_ns_detach_object, @function
acpi_ns_detach_object:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR ns_detach_object[rip]
	call	ACPI_FUNCTION_TRACE@PLT
	mov	r12, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR ANOBJ_ALLOCATED_BUFFER[rip], eax
	je	.L2
	mov	rax, QWORD PTR ACPI_TYPE_METHOD[rip]
	cmp	QWORD PTR [r12], rax
	je	.L14
.L2:
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, r12
	call	ACPI_GET_DESCRIPTOR_TYPE@PLT
	cmp	rax, QWORD PTR ACPI_DESC_TYPE_OPERAND[rip]
	je	.L15
.L4:
	mov	eax, DWORD PTR ACPI_TYPE_ANY[rip]
	mov	rdi, rbp
	mov	DWORD PTR 4[rbp], eax
	call	acpi_ut_get_node_name@PLT
	mov	edi, r12d
	call	ACPI_DEBUG_PRINT@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	acpi_ut_remove_reference@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L4
	mov	rdx, QWORD PTR ACPI_TYPE_LOCAL_DATA[rip]
	cmp	QWORD PTR [rax], rdx
	je	.L4
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 8[rbp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR [r12]
	call	ACPI_FREE@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	acpi_ns_detach_object, .-acpi_ns_detach_object
	.comm	return_VOID,4,4
	.comm	ns_detach_object,4,4
	.comm	ANOBJ_ALLOCATED_BUFFER,4,4
	.comm	ACPI_TYPE_METHOD,8,8
	.comm	ACPI_TYPE_LOCAL_DATA,8,8
	.comm	ACPI_TYPE_ANY,4,4
	.comm	ACPI_DESC_TYPE_OPERAND,8,8
	.comm	ACPI_DB_NAMES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_nsobject.c_acpi_ns_detach_object.c"
	.text
	.align	2
	.global	acpi_ns_detach_object
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_ns_detach_object, %function
acpi_ns_detach_object:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L16
	ldr	r0, [r3]
	bl	ACPI_FUNCTION_TRACE
	ldr	r3, .L16+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r5, [r4, #8]
	tst	r2, r3
	beq	.L2
	ldr	r3, .L16+8
	ldr	r0, [r5]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L14
.L2:
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4, #8]
	bl	ACPI_GET_DESCRIPTOR_TYPE
	ldr	r3, .L16+12
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L15
.L4:
	ldr	r3, .L16+16
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4, #4]
	bl	acpi_ut_get_node_name
	mov	r0, r5
	bl	ACPI_DEBUG_PRINT
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	acpi_ut_remove_reference
.L15:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	str	r3, [r4, #8]
	beq	.L4
	ldr	r2, .L16+20
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	ldrne	r3, [r3, #4]
	strne	r3, [r4, #8]
	b	.L4
.L14:
	bl	ACPI_FREE
	b	.L2
.L17:
	.align	2
.L16:
	.word	ns_detach_object
	.word	ANOBJ_ALLOCATED_BUFFER
	.word	ACPI_TYPE_METHOD
	.word	ACPI_DESC_TYPE_OPERAND
	.word	ACPI_TYPE_ANY
	.word	ACPI_TYPE_LOCAL_DATA
	.size	acpi_ns_detach_object, .-acpi_ns_detach_object
	.comm	return_VOID,4,4
	.comm	ns_detach_object,4,4
	.comm	ANOBJ_ALLOCATED_BUFFER,4,4
	.comm	ACPI_TYPE_METHOD,4,4
	.comm	ACPI_TYPE_LOCAL_DATA,4,4
	.comm	ACPI_TYPE_ANY,4,4
	.comm	ACPI_DESC_TYPE_OPERAND,4,4
	.comm	ACPI_DB_NAMES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
