	.file	"extr_qxl_display.c_qxl_primary_atomic_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qxl_primary_atomic_update, @function
qxl_primary_atomic_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	r13, QWORD PTR [rax]
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR [rax]
	call	gem_to_qxl_bo@PLT
	mov	r12, rax
	mov	rax, QWORD PTR [rbx]
	mov	rbp, QWORD PTR 16[r12]
	mov	rsi, QWORD PTR [rax]
	test	rbp, rbp
	mov	edx, DWORD PTR [rsi]
	cmove	rbp, r12
	mov	DWORD PTR [rsp], edx
	mov	edx, DWORD PTR 4[rsi]
	mov	QWORD PTR 8[rsp], 0
	mov	DWORD PTR 4[rsp], edx
	mov	edx, DWORD PTR 8[rbp]
	test	edx, edx
	jne	.L3
	cmp	QWORD PTR 8[r13], 0
	jne	.L11
.L4:
	mov	rsi, rbp
	mov	rdi, r13
	call	qxl_io_create_primary@PLT
	mov	rdi, rbx
	call	qxl_primary_apply_cursor@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rsi, QWORD PTR [rax]
.L3:
	xor	edx, edx
	cmp	QWORD PTR [r12], 0
	je	.L5
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 0[r13]
	mov	edx, DWORD PTR [rax+rdx*4]
.L5:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rdi, r13
	push	rdx
	.cfi_def_cfa_offset 96
	mov	rdx, r12
	push	1
	.cfi_def_cfa_offset 104
	push	1
	.cfi_def_cfa_offset 112
	lea	r9, 32[rsp]
	call	qxl_draw_dirty_fb@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.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
.L11:
	.cfi_restore_state
	mov	rdi, r13
	call	qxl_io_destroy_primary@PLT
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qxl_primary_atomic_update, .-qxl_primary_atomic_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_qxl_display.c_qxl_primary_atomic_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	qxl_primary_atomic_update, %function
qxl_primary_atomic_update:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r3]
	ldr	r2, [r0, #4]
	ldr	r3, [r3, #8]
	ldr	r1, .L18
	sub	sp, sp, #52
	mov	r5, r0
	ldr	r0, [r3]
	ldr	r1, [r1]
	str	r1, [sp, #44]
	mov	r1,#0
	ldr	r7, [r2]
	bl	gem_to_qxl_bo
	ldr	r6, [r0, #8]
	mov	r2, #0
	cmp	r6, #0
	moveq	r6, r0
	ldr	r3, [r5]
	mov	r4, r0
	ldr	r1, [r3]
	ldr	ip, [r6, #4]
	ldr	r0, [r1]
	cmp	ip, r2
	str	r0, [sp, #28]
	ldr	r0, [r1, #4]
	str	r2, [sp, #36]
	str	r0, [sp, #32]
	str	r2, [sp, #40]
	bne	.L3
	ldr	r3, [r7, #4]
	cmp	r3, r2
	bne	.L16
.L4:
	mov	r1, r6
	mov	r0, r7
	bl	qxl_io_create_primary
	mov	r0, r5
	bl	qxl_primary_apply_cursor
	ldr	r3, [r5]
	ldr	r1, [r3]
.L3:
	ldr	r2, [r4]
	mov	ip, #1
	cmp	r2, #0
	ldrne	r2, [r3, #4]
	ldrne	r3, [r7]
	ldrne	r2, [r2]
	add	lr, sp, #28
	ldrne	r2, [r3, r2, lsl #2]
	mov	r3, #0
	str	r2, [sp, #16]
	stm	sp, {r3, lr}
	mov	r2, r4
	mov	r0, r7
	str	ip, [sp, #12]
	str	ip, [sp, #8]
	bl	qxl_draw_dirty_fb
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	mov	r0, r7
	bl	qxl_io_destroy_primary
	b	.L4
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	qxl_primary_atomic_update, .-qxl_primary_atomic_update
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
