	.file	"extr_drm_vblank.c_drm_crtc_vblank_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_crtc_vblank_reset
	.type	drm_crtc_vblank_reset, @function
drm_crtc_vblank_reset:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR [rdi]
	lea	r12, 4[rbp]
	call	drm_crtc_index@PLT
	mov	rdx, QWORD PTR 8[rbp]
	xor	esi, esi
	mov	rdi, r12
	mov	eax, eax
	lea	rbx, [rdx+rax*8]
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L5
.L2:
	xor	esi, esi
	mov	rdi, r12
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbp
	call	list_empty@PLT
	xor	edi, edi
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	test	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	sete	dil
	jmp	WARN_ON@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, 4[rbx]
	call	atomic_inc@PLT
	mov	DWORD PTR [rbx], 1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	drm_crtc_vblank_reset, .-drm_crtc_vblank_reset
	.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_vblank.c_drm_crtc_vblank_reset.c"
	.text
	.align	2
	.global	drm_crtc_vblank_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_crtc_vblank_reset, %function
drm_crtc_vblank_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0]
	bl	drm_crtc_index
	mov	r4, r0
	ldr	r6, [r5, #8]
	add	r7, r5, #4
	mov	r0, r7
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r6, r4, lsl #3]
	add	r0, r6, r4, lsl #3
	cmp	r3, #0
	beq	.L5
.L2:
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r5
	bl	list_empty
	pop	{r4, r5, r6, r7, r8, lr}
	clz	r0, r0
	lsr	r0, r0, #5
	b	WARN_ON
.L5:
	add	r0, r0, #4
	bl	atomic_inc
	mov	r3, #1
	str	r3, [r6, r4, lsl #3]
	b	.L2
	.size	drm_crtc_vblank_reset, .-drm_crtc_vblank_reset
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
