	.file	"extr_drm_lock.c_drm_legacy_idlelock_release.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_legacy_idlelock_release
	.type	drm_legacy_idlelock_release, @function
drm_legacy_idlelock_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 32[rdi]
	mov	rdi, r13
	call	spin_lock_bh@PLT
	sub	QWORD PTR [rbx], 1
	jne	.L2
	cmp	QWORD PTR 16[rbx], 0
	je	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ebp, DWORD PTR [r12]
	mov	edx, DWORD PTR DRM_KERNEL_CONTEXT[rip]
	mov	rdi, r12
	mov	esi, ebp
	call	cmpxchg@PLT
	cmp	ebp, eax
	jne	.L3
	lea	rdi, 24[rbx]
	call	wake_up_interruptible@PLT
	mov	QWORD PTR 16[rbx], 0
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_bh@PLT
	.cfi_endproc
.LFE0:
	.size	drm_legacy_idlelock_release, .-drm_legacy_idlelock_release
	.comm	DRM_KERNEL_CONTEXT,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_drm_lock.c_drm_legacy_idlelock_release.c"
	.text
	.align	2
	.global	drm_legacy_idlelock_release
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_legacy_idlelock_release, %function
drm_legacy_idlelock_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	add	r8, r0, #4
	mov	r0, r8
	ldr	r6, [r4, #16]
	bl	spin_lock_bh
	ldr	r3, [r4]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4]
	bne	.L2
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L2
	ldr	r7, .L10
.L3:
	ldr	r5, [r6]
	mov	r0, r6
	mov	r1, r5
	ldr	r2, [r7]
	bl	cmpxchg
	cmp	r5, r0
	bne	.L3
	add	r0, r4, #12
	bl	wake_up_interruptible
	mov	r3, #0
	str	r3, [r4, #8]
.L2:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock_bh
.L11:
	.align	2
.L10:
	.word	DRM_KERNEL_CONTEXT
	.size	drm_legacy_idlelock_release, .-drm_legacy_idlelock_release
	.comm	DRM_KERNEL_CONTEXT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
