	.file	"extr_vmwgfx_stdu.c_vmw_stdu_primary_plane_atomic_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to bind surface to STDU.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Failed to update STDU.\n"
.LC2:
	.string	"Failed to blank STDU\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Failed to queue event on fence.\n"
	.text
	.p2align 4
	.type	vmw_stdu_primary_plane_atomic_update, @function
vmw_stdu_primary_plane_atomic_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	vmw_plane_state_to_vps@PLT
	mov	QWORD PTR 16[rsp], 0
	mov	r12, rax
	mov	rax, QWORD PTR 0[rbp]
	mov	rbx, QWORD PTR 8[rax]
	test	rbx, rbx
	je	.L2
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	jne	.L42
.L2:
	mov	r12, QWORD PTR 0[r13]
	mov	rdi, r12
	call	vmw_crtc_to_stdu@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	rbp, rax
	call	vmw_priv@PLT
	mov	r12, rax
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L43
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L44
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r12
	call	vmw_stdu_bind_st@PLT
	test	eax, eax
	jne	.L45
.L8:
	mov	rsi, rbp
	mov	rdi, r12
	call	vmw_stdu_update_st@PLT
	test	eax, eax
	je	.L1
	lea	rdi, .LC1[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	call	vmw_framebuffer_to_vfb@PLT
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rax
	call	vmw_crtc_to_stdu@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	r14, rax
	call	vmw_priv@PLT
	mov	rdx, QWORD PTR 8[r12]
	mov	rsi, r14
	mov	r15, rax
	mov	eax, DWORD PTR 4[r12]
	mov	QWORD PTR 8[r14], rdx
	mov	rdi, r15
	mov	DWORD PTR 20[r14], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 16[r14], eax
	call	vmw_stdu_bind_st@PLT
	mov	rcx, QWORD PTR 8[rsp]
	test	eax, eax
	jne	.L46
.L3:
	lea	r12, 16[rsp]
	cmp	QWORD PTR [rcx], 0
	mov	rdx, r13
	mov	rsi, rbp
	mov	r8, r12
	mov	rdi, r15
	jne	.L47
	call	vmw_stdu_plane_update_surface@PLT
.L5:
	test	eax, eax
	jne	.L48
.L6:
	mov	rax, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 16[rsp]
	mov	r8, QWORD PTR [rax]
	test	r8, r8
	je	.L10
	test	rsi, rsi
	je	.L1
	mov	rdi, QWORD PTR 8[r8]
	lea	rcx, 4[r8]
	lea	rdx, 8[r8]
	mov	r9d, 1
	call	vmw_event_fence_action_queue@PLT
	test	eax, eax
	jne	.L49
	mov	rax, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 16[rsp]
	mov	QWORD PTR [rax], 0
.L10:
	test	rsi, rsi
	je	.L1
	mov	rdi, r12
	call	vmw_fence_obj_unreference@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L47:
	call	vmw_stdu_plane_update_bo@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L46:
	lea	rdi, .LC0[rip]
	call	DRM_ERROR@PLT
	mov	rcx, QWORD PTR 8[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L45:
	lea	rdi, .LC2[rip]
	call	DRM_ERROR@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L48:
	lea	rdi, .LC1[rip]
	call	DRM_ERROR@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L49:
	lea	rdi, .LC3[rip]
	call	DRM_ERROR@PLT
	mov	rsi, QWORD PTR 16[rsp]
	jmp	.L10
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vmw_stdu_primary_plane_atomic_update, .-vmw_stdu_primary_plane_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_vmwgfx_stdu.c_vmw_stdu_primary_plane_atomic_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to bind surface to STDU.\012\000"
	.align	2
.LC1:
	.ascii	"Failed to update STDU.\012\000"
	.align	2
.LC2:
	.ascii	"Failed to blank STDU\012\000"
	.align	2
.LC3:
	.ascii	"Failed to queue event on fence.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmw_stdu_primary_plane_atomic_update, %function
vmw_stdu_primary_plane_atomic_update:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	ldr	r3, .L53
	sub	sp, sp, #20
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r7, r1
	bl	vmw_plane_state_to_vps
	mov	r2, #0
	ldr	r3, [r4]
	str	r2, [sp, #8]
	ldr	r6, [r3, #4]
	cmp	r6, r2
	beq	.L2
	mov	r5, r0
	ldr	r0, [r3]
	cmp	r0, r2
	bne	.L45
.L2:
	ldr	r5, [r7]
	mov	r0, r5
	bl	vmw_crtc_to_stdu
	mov	r4, r0
	ldr	r0, [r5, #4]
	bl	vmw_priv
	ldr	r3, [r4]
	mov	r5, r0
	cmp	r3, #0
	bne	.L46
.L1:
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L46:
	mov	r2, #0
	mov	r1, r4
	bl	vmw_stdu_bind_st
	cmp	r0, #0
	bne	.L48
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	vmw_stdu_update_st
	cmp	r0, #0
	beq	.L1
	ldr	r0, .L53+4
	bl	DRM_ERROR
	b	.L1
.L45:
	bl	vmw_framebuffer_to_vfb
	mov	r9, r0
	mov	r0, r6
	bl	vmw_crtc_to_stdu
	mov	r8, r0
	ldr	r0, [r6, #4]
	bl	vmw_priv
	ldmib	r5, {r1, r2}
	ldr	r3, [r5]
	str	r1, [r8, #12]
	str	r2, [r8, #4]
	mov	r1, r8
	str	r3, [r8, #8]
	mov	r8, r0
	bl	vmw_stdu_bind_st
	cmp	r0, #0
	bne	.L49
.L3:
	ldr	r3, [r9]
	add	r5, sp, #8
	cmp	r3, #0
	mov	r2, r7
	mov	r3, r9
	mov	r1, r4
	mov	r0, r8
	str	r5, [sp]
	bne	.L50
	bl	vmw_stdu_plane_update_surface
.L5:
	cmp	r0, #0
	bne	.L51
.L6:
	ldr	r3, [r6]
	ldr	r1, [sp, #8]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L10
	cmp	r1, #0
	beq	.L1
	mov	r3, #1
	ldr	r0, [r2, #8]
	stm	sp, {r2, r3}
	add	r3, r2, #4
	add	r2, r2, #8
	bl	vmw_event_fence_action_queue
	cmp	r0, #0
	bne	.L52
	ldr	r3, [r6]
	ldr	r1, [sp, #8]
	str	r0, [r3]
.L10:
	cmp	r1, #0
	beq	.L1
	mov	r0, r5
	bl	vmw_fence_obj_unreference
	b	.L1
.L50:
	bl	vmw_stdu_plane_update_bo
	b	.L5
.L49:
	ldr	r0, .L53+8
	bl	DRM_ERROR
	b	.L3
.L48:
	ldr	r0, .L53+12
	bl	DRM_ERROR
	b	.L8
.L51:
	ldr	r0, .L53+4
	bl	DRM_ERROR
	b	.L6
.L52:
	ldr	r0, .L53+16
	bl	DRM_ERROR
	ldr	r1, [sp, #8]
	b	.L10
.L47:
	bl	__stack_chk_fail
.L54:
	.align	2
.L53:
	.word	.LC4
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.size	vmw_stdu_primary_plane_atomic_update, .-vmw_stdu_primary_plane_atomic_update
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
