	.file	"extr_scan.c_acpi_device_unregister.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	acpi_device_unregister, @function
acpi_device_unregister:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdi, acpi_device_lock[rip]
	call	mutex_lock@PLT
	cmp	QWORD PTR 16[rbp], 0
	jne	.L5
.L2:
	lea	rdi, 8[rbp]
	call	list_del@PLT
	lea	rdi, acpi_device_lock[rip]
	call	mutex_unlock@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR acpi_bus_data_handler[rip]
	call	acpi_detach_data@PLT
	mov	rdi, rbp
	call	acpi_device_remove_files@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	device_unregister@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, 12[rbp]
	call	list_del@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	acpi_device_unregister, .-acpi_device_unregister
	.comm	acpi_device_lock,4,4
	.comm	acpi_bus_data_handler,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_scan.c_acpi_device_unregister.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_device_unregister, %function
acpi_device_unregister:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, .L9
	bl	mutex_lock
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L8
.L2:
	add	r0, r4, #8
	bl	list_del
	ldr	r0, .L9
	bl	mutex_unlock
	ldr	r3, .L9+4
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	acpi_detach_data
	mov	r0, r4
	bl	acpi_device_remove_files
	mov	r0, r4
	pop	{r4, lr}
	b	device_unregister
.L8:
	add	r0, r4, #12
	bl	list_del
	b	.L2
.L10:
	.align	2
.L9:
	.word	acpi_device_lock
	.word	acpi_bus_data_handler
	.size	acpi_device_unregister, .-acpi_device_unregister
	.comm	acpi_device_lock,4,4
	.comm	acpi_bus_data_handler,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
