	.file	"extr_intel_sprite.c_vlv_update_plane.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vlv_update_plane, @function
vlv_update_plane:
.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, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	r14, 16[r13]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR 8[rdi]
	mov	QWORD PTR 32[rsp], rsi
	call	to_i915@PLT
	mov	edx, DWORD PTR 16[r13]
	mov	rdi, r14
	mov	ebp, DWORD PTR [rbx]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 8[r13]
	mov	r12d, DWORD PTR 4[rbx]
	mov	DWORD PTR 20[rsp], edx
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR 16[rsp], ecx
	mov	ecx, DWORD PTR 20[r13]
	mov	DWORD PTR 24[rsp], ecx
	call	drm_rect_width@PLT
	mov	rdi, r14
	mov	DWORD PTR 28[rsp], eax
	call	drm_rect_height@PLT
	mov	r9, QWORD PTR 32[rsp]
	mov	r14d, DWORD PTR 0[r13]
	mov	DWORD PTR 40[rsp], eax
	mov	rax, QWORD PTR 8[r13]
	mov	rdi, r9
	mov	r15d, DWORD PTR 4[rax]
	mov	ebx, DWORD PTR 8[rax]
	call	vlv_sprite_ctl_crtc@PLT
	xor	ecx, ecx
	mov	rdx, r13
	mov	esi, ebx
	mov	edi, r15d
	or	r14d, eax
	call	intel_fb_xy_to_linear@PLT
	mov	rdi, QWORD PTR 8[rsp]
	xor	esi, esi
	mov	DWORD PTR 32[rsp], eax
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	esi, r12d
	mov	edi, ebp
	mov	r9d, DWORD PTR 12[rax]
	mov	DWORD PTR 44[rsp], r9d
	call	SPSTRIDE@PLT
	mov	r9d, DWORD PTR 44[rsp]
	mov	edi, eax
	mov	esi, r9d
	call	I915_WRITE_FW@PLT
	mov	r9d, DWORD PTR 24[rsp]
	mov	esi, r12d
	mov	edi, ebp
	sal	r9d, 16
	or	r9d, DWORD PTR 20[rsp]
	mov	DWORD PTR 20[rsp], r9d
	call	SPPOS@PLT
	mov	r9d, DWORD PTR 20[rsp]
	mov	edi, eax
	mov	esi, r9d
	call	I915_WRITE_FW@PLT
	mov	r9d, DWORD PTR 40[rsp]
	mov	eax, DWORD PTR 28[rsp]
	mov	edi, ebp
	mov	esi, r12d
	sub	r9d, 1
	sub	eax, 1
	sal	r9d, 16
	or	r9d, eax
	mov	DWORD PTR 20[rsp], r9d
	call	SPSIZE@PLT
	mov	r9d, DWORD PTR 20[rsp]
	mov	edi, eax
	mov	esi, r9d
	call	I915_WRITE_FW@PLT
	mov	esi, r12d
	mov	edi, ebp
	call	SPCONSTALPHA@PLT
	xor	esi, esi
	mov	edi, eax
	call	I915_WRITE_FW@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	IS_CHERRYVIEW@PLT
	test	rax, rax
	je	.L2
	cmp	ebp, DWORD PTR PIPE_B[rip]
	je	.L9
.L2:
	cmp	QWORD PTR 40[r13], 0
	jne	.L10
.L3:
	mov	esi, r12d
	mov	edi, ebp
	sal	ebx, 16
	call	SPLINOFF@PLT
	mov	esi, DWORD PTR 32[rsp]
	or	r15d, ebx
	mov	edi, eax
	call	I915_WRITE_FW@PLT
	mov	esi, r12d
	mov	edi, ebp
	call	SPTILEOFF@PLT
	mov	esi, r15d
	mov	edi, eax
	call	I915_WRITE_FW@PLT
	mov	esi, r12d
	mov	edi, ebp
	call	SPCNTR@PLT
	mov	esi, r14d
	mov	edi, eax
	call	I915_WRITE_FW@PLT
	mov	rdi, r13
	call	intel_plane_ggtt_offset@PLT
	mov	r14d, DWORD PTR 16[rsp]
	mov	esi, r12d
	mov	edi, ebp
	add	r14d, eax
	call	SPSURF@PLT
	mov	esi, r14d
	mov	edi, eax
	call	I915_WRITE_FW@PLT
	mov	rdi, r13
	call	vlv_update_clrc@PLT
	mov	rdi, r13
	call	vlv_update_gamma@PLT
	mov	rdi, QWORD PTR 8[rsp]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	esi, esi
	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
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r9d, DWORD PTR 24[r13]
	mov	esi, r12d
	mov	edi, ebp
	mov	DWORD PTR 20[rsp], r9d
	call	SPKEYMINVAL@PLT
	mov	r9d, DWORD PTR 20[rsp]
	mov	edi, eax
	mov	esi, r9d
	call	I915_WRITE_FW@PLT
	mov	r9d, DWORD PTR 28[r13]
	mov	esi, r12d
	mov	edi, ebp
	mov	DWORD PTR 20[rsp], r9d
	call	SPKEYMSK@PLT
	mov	r9d, DWORD PTR 20[rsp]
	mov	edi, eax
	mov	esi, r9d
	call	I915_WRITE_FW@PLT
	mov	r9d, DWORD PTR 32[r13]
	mov	esi, r12d
	mov	edi, ebp
	mov	DWORD PTR 20[rsp], r9d
	call	SPKEYMAXVAL@PLT
	mov	r9d, DWORD PTR 20[rsp]
	mov	edi, eax
	mov	esi, r9d
	call	I915_WRITE_FW@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r13
	call	chv_update_csc@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	vlv_update_plane, .-vlv_update_plane
	.comm	PIPE_B,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_intel_sprite.c_vlv_update_plane.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vlv_update_plane, %function
vlv_update_plane:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r2
	sub	sp, sp, #28
	mov	r5, r0
	ldr	r0, [r0, #8]
	mov	r7, r1
	bl	to_i915
	ldm	r5, {r4, r5}
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #12]
	ldr	r3, [r3]
	add	r8, fp, #8
	str	r3, [sp, #4]
	ldr	r3, [fp, #8]
	mov	r6, r0
	mov	r0, r8
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	bl	drm_rect_width
	mov	r1, r0
	mov	r0, r8
	str	r1, [sp, #16]
	bl	drm_rect_height
	mov	r1, r0
	ldr	r3, [fp, #4]
	mov	r0, r7
	ldmib	r3, {r9, r10}
	ldr	r7, [fp]
	str	r1, [sp, #20]
	bl	vlv_sprite_ctl_crtc
	mov	ip, r0
	mov	r2, fp
	mov	r3, #0
	mov	r1, r10
	mov	r0, r9
	orr	r7, r7, ip
	bl	intel_fb_xy_to_linear
	mov	r1, #0
	mov	r8, r0
	mov	r0, r6
	bl	spin_lock_irqsave
	mov	r1, r5
	mov	r0, r4
	bl	SPSTRIDE
	ldr	r3, [fp, #4]
	ldr	r1, [r3, #12]
	bl	I915_WRITE_FW
	mov	r1, r5
	mov	r0, r4
	bl	SPPOS
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #8]
	orr	r1, r3, r2, lsl #16
	bl	I915_WRITE_FW
	mov	r1, r5
	mov	r0, r4
	bl	SPSIZE
	ldr	r3, [sp, #20]
	sub	r1, r3, #1
	ldr	r3, [sp, #16]
	sub	r3, r3, #1
	orr	r1, r3, r1, lsl #16
	bl	I915_WRITE_FW
	mov	r1, r5
	mov	r0, r4
	bl	SPCONSTALPHA
	mov	r1, #0
	bl	I915_WRITE_FW
	mov	r0, r6
	bl	IS_CHERRYVIEW
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r4, r3
	beq	.L12
.L2:
	ldr	r3, [fp, #28]
	cmp	r3, #0
	bne	.L13
.L3:
	mov	r1, r5
	mov	r0, r4
	bl	SPLINOFF
	mov	r1, r8
	bl	I915_WRITE_FW
	mov	r1, r5
	mov	r0, r4
	bl	SPTILEOFF
	orr	r1, r9, r10, lsl #16
	bl	I915_WRITE_FW
	mov	r1, r5
	mov	r0, r4
	bl	SPCNTR
	mov	r1, r7
	bl	I915_WRITE_FW
	mov	r1, r5
	mov	r0, r4
	bl	SPSURF
	mov	r4, r0
	mov	r0, fp
	bl	intel_plane_ggtt_offset
	mov	r1, r0
	ldr	r3, [sp, #4]
	mov	r0, r4
	add	r1, r1, r3
	bl	I915_WRITE_FW
	mov	r0, fp
	bl	vlv_update_clrc
	mov	r0, fp
	bl	vlv_update_gamma
	mov	r0, r6
	mov	r1, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	spin_unlock_irqrestore
.L13:
	mov	r1, r5
	mov	r0, r4
	bl	SPKEYMINVAL
	ldr	r1, [fp, #16]
	bl	I915_WRITE_FW
	mov	r1, r5
	mov	r0, r4
	bl	SPKEYMSK
	ldr	r1, [fp, #20]
	bl	I915_WRITE_FW
	mov	r1, r5
	mov	r0, r4
	bl	SPKEYMAXVAL
	ldr	r1, [fp, #24]
	bl	I915_WRITE_FW
	b	.L3
.L12:
	mov	r0, fp
	bl	chv_update_csc
	b	.L2
.L15:
	.align	2
.L14:
	.word	PIPE_B
	.size	vlv_update_plane, .-vlv_update_plane
	.comm	PIPE_B,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
