	.file	"extr_gm12u320.c_gm12u320_pipe_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gm12u320_pipe_update, @function
gm12u320_pipe_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rsi, QWORD PTR [rbx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rbp, 4[rsp]
	mov	rdx, rbp
	call	drm_atomic_helper_damage_merged@PLT
	test	rax, rax
	jne	.L10
.L2:
	mov	rax, QWORD PTR 16[rbx]
	cmp	QWORD PTR [rax], 0
	je	.L1
	mov	rdi, QWORD PTR 8[rbx]
	call	spin_lock_irq@PLT
	mov	rax, QWORD PTR 16[rbx]
	lea	rdi, 8[rbx]
	mov	rsi, QWORD PTR [rax]
	call	drm_crtc_send_vblank_event@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	rdi, QWORD PTR 8[rbx]
	mov	QWORD PTR [rax], 0
	call	spin_unlock_irq@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	mov	rsi, rbp
	mov	edi, DWORD PTR [rax]
	call	gm12u320_fb_mark_dirty@PLT
	jmp	.L2
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gm12u320_pipe_update, .-gm12u320_pipe_update
	.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_gm12u320.c_gm12u320_pipe_update.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gm12u320_pipe_update, %function
gm12u320_pipe_update:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	sub	sp, sp, #8
	ldr	r3, .L15
	mov	r0, r1
	mov	r2, sp
	ldr	r1, [r4]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	drm_atomic_helper_damage_merged
	cmp	r0, #0
	bne	.L13
.L2:
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	ldr	r0, [r4, #4]
	bl	spin_lock_irq
	ldr	r3, [r4, #8]
	add	r0, r4, #4
	ldr	r1, [r3]
	bl	drm_crtc_send_vblank_event
	ldmib	r4, {r0, r3}
	mov	r2, #0
	str	r2, [r3]
	bl	spin_unlock_irq
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L13:
	ldr	r3, [r4]
	mov	r1, sp
	ldr	r0, [r3]
	bl	gm12u320_fb_mark_dirty
	b	.L2
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	gm12u320_pipe_update, .-gm12u320_pipe_update
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
