	.file	"extr_acpi_video.c_acpi_video_unregister.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_video_unregister
	.type	acpi_video_unregister, @function
acpi_video_unregister:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	lea	rdi, register_count_mutex[rip]
	call	mutex_lock@PLT
	cmp	QWORD PTR register_count[rip], 0
	jne	.L5
	lea	rdi, register_count_mutex[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, acpi_video_bus[rip]
	call	acpi_bus_unregister_driver@PLT
	lea	rdi, register_count_mutex[rip]
	mov	QWORD PTR register_count[rip], 0
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	acpi_video_unregister, .-acpi_video_unregister
	.comm	register_count_mutex,4,4
	.comm	register_count,8,8
	.comm	acpi_video_bus,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_acpi_video.c_acpi_video_unregister.c"
	.text
	.align	2
	.global	acpi_video_unregister
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_video_unregister, %function
acpi_video_unregister:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L9
	ldr	r0, .L9+4
	bl	mutex_lock
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L8
	pop	{r4, lr}
	ldr	r0, .L9+4
	b	mutex_unlock
.L8:
	ldr	r0, .L9+8
	bl	acpi_bus_unregister_driver
	mov	r3, #0
	ldr	r0, .L9+4
	str	r3, [r4]
	pop	{r4, lr}
	b	mutex_unlock
.L10:
	.align	2
.L9:
	.word	register_count
	.word	register_count_mutex
	.word	acpi_video_bus
	.size	acpi_video_unregister, .-acpi_video_unregister
	.comm	register_count_mutex,4,4
	.comm	register_count,4,4
	.comm	acpi_video_bus,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
