	.file	"extr_ipuv3-crtc.c_ipu_irq_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ipu_irq_handler, @function
ipu_irq_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 16[rsi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	rdi, r13
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	drm_crtc_handle_vblank@PLT
	cmp	QWORD PTR 0[rbp], 0
	je	.L3
	mov	rdi, QWORD PTR 8[rbp]
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 8[rbp]
	mov	r8, QWORD PTR [rdi+rbx*8]
	test	r8, r8
	je	.L5
	mov	rdi, r8
	call	ipu_plane_atomic_update_pending@PLT
	test	rax, rax
	jne	.L10
	mov	rdi, QWORD PTR 8[rbp]
.L5:
	add	rbx, 1
.L4:
	mov	r12d, ebx
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jg	.L9
.L10:
	mov	rdi, QWORD PTR 8[rbp]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	je	.L16
.L3:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbp]
	xor	r12d, r12d
	mov	rsi, r12
	call	spin_lock_irqsave@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r13
	call	drm_crtc_send_vblank_event@PLT
	mov	QWORD PTR 0[rbp], 0
	mov	rdi, r13
	call	drm_crtc_vblank_put@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	rsi, r12
	call	spin_unlock_irqrestore@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ipu_irq_handler, .-ipu_irq_handler
	.comm	IRQ_HANDLED,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_ipuv3-crtc.c_ipu_irq_handler.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipu_irq_handler, %function
ipu_irq_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	add	r6, r1, #8
	mov	r0, r6
	bl	drm_crtc_handle_vblank
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L3
	mov	r4, #0
	ldr	r0, [r5, #4]
	b	.L4
.L9:
	ldr	r0, [r5, #4]
	ldr	r3, [r0, r4, lsl #2]
	cmp	r3, #0
	beq	.L5
	mov	r0, r3
	bl	ipu_plane_atomic_update_pending
	cmp	r0, #0
	bne	.L10
	ldr	r0, [r5, #4]
.L5:
	add	r4, r4, #1
.L4:
	bl	ARRAY_SIZE
	cmp	r0, r4
	bgt	.L9
.L10:
	ldr	r0, [r5, #4]
	bl	ARRAY_SIZE
	cmp	r0, r4
	beq	.L16
.L3:
	ldr	r3, .L17
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L16:
	mov	r4, #0
	ldr	r0, [r5, #8]
	mov	r1, r4
	bl	spin_lock_irqsave
	ldr	r1, [r5]
	mov	r0, r6
	bl	drm_crtc_send_vblank_event
	mov	r0, r6
	str	r4, [r5]
	bl	drm_crtc_vblank_put
	mov	r1, r4
	ldr	r0, [r5, #8]
	bl	spin_unlock_irqrestore
	b	.L3
.L18:
	.align	2
.L17:
	.word	IRQ_HANDLED
	.size	ipu_irq_handler, .-ipu_irq_handler
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
