	.file	"extr_sun8i_vi_layer.c_sun8i_vi_layer_update_coord.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Updating VI channel %d overlay %d\n"
	.align 8
.LC1:
	.string	"Layer source offset X: %d Y: %d\n"
	.align 8
.LC2:
	.string	"Layer source size W: %d H: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"HW scaling is enabled\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Using vertical coarse scaling\n"
	.align 8
.LC5:
	.string	"Using horizontal coarse scaling\n"
	.section	.rodata.str1.1
.LC6:
	.string	"HW scaling is not needed\n"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Layer destination coordinates X: %d Y: %d\n"
	.align 8
.LC8:
	.string	"Layer destination size W: %d H: %d\n"
	.text
	.p2align 4
	.type	sun8i_vi_layer_update_coord, @function
sun8i_vi_layer_update_coord:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	lea	rdi, .LC0[rip]
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rbp, QWORD PTR [rcx]
	mov	DWORD PTR 48[rsp], r8d
	mov	rax, QWORD PTR 24[rbp]
	mov	DWORD PTR 52[rsp], esi
	lea	r12, 16[rbp]
	mov	r8, QWORD PTR [rax]
	xor	eax, eax
	mov	QWORD PTR 24[rsp], r8
	call	DRM_DEBUG_DRIVER@PLT
	mov	rdi, rbx
	call	sun8i_blender_base@PLT
	mov	esi, r15d
	mov	rdi, rbx
	mov	DWORD PTR 36[rsp], eax
	call	sun8i_channel_base@PLT
	mov	rdi, r12
	mov	r15d, eax
	call	drm_rect_width@PLT
	mov	rdi, r12
	sar	eax, 16
	mov	DWORD PTR 4[rsp], eax
	call	drm_rect_height@PLT
	mov	rdi, rbp
	mov	ecx, eax
	sar	ecx, 16
	mov	DWORD PTR 16[rsp], ecx
	call	drm_rect_width@PLT
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	call	drm_rect_height@PLT
	mov	r8, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR 16[rbp]
	mov	DWORD PTR 8[rsp], eax
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, DWORD PTR [r8]
	movzx	r11d, si
	movzx	ecx, dx
	mov	DWORD PTR 20[rsp], r11d
	cmp	eax, 1
	mov	DWORD PTR 32[rsp], ecx
	mov	ecx, DWORD PTR 16[rsp]
	jle	.L2
	lea	edi, -1[rax]
	sar	esi, 16
	neg	eax
	and	esi, edi
	mov	edi, DWORD PTR 4[rsp]
	add	edi, esi
	sal	esi, 16
	and	eax, edi
	add	r11d, esi
	mov	DWORD PTR 4[rsp], eax
	mov	DWORD PTR 20[rsp], r11d
.L2:
	mov	esi, DWORD PTR 4[r8]
	cmp	esi, 1
	jle	.L3
	lea	eax, -1[rsi]
	sar	edx, 16
	neg	esi
	and	edx, eax
	add	ecx, edx
	sal	edx, 16
	add	DWORD PTR 32[rsp], edx
	and	ecx, esi
.L3:
	mov	edi, DWORD PTR 4[rsp]
	mov	esi, ecx
	mov	DWORD PTR 16[rsp], ecx
	mov	QWORD PTR 40[rsp], r8
	call	SUN8I_MIXER_SIZE@PLT
	mov	esi, DWORD PTR 8[rsp]
	mov	edi, DWORD PTR 12[rsp]
	mov	r12d, eax
	call	SUN8I_MIXER_SIZE@PLT
	mov	r8, QWORD PTR 40[rsp]
	movsx	edx, WORD PTR 22[rbp]
	lea	rdi, .LC1[rip]
	mov	DWORD PTR 24[rsp], eax
	movsx	esi, WORD PTR 18[rbp]
	mov	eax, DWORD PTR 4[r8]
	neg	eax
	and	edx, eax
	mov	eax, DWORD PTR [r8]
	neg	eax
	and	esi, eax
	xor	eax, eax
	call	DRM_DEBUG_DRIVER@PLT
	mov	ecx, DWORD PTR 16[rsp]
	mov	esi, DWORD PTR 4[rsp]
	xor	eax, eax
	lea	rdi, .LC2[rip]
	mov	edx, ecx
	call	DRM_DEBUG_DRIVER@PLT
	mov	esi, r14d
	mov	edi, r15d
	call	SUN8I_MIXER_CHAN_VI_LAYER_SIZE@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	mov	edi, r15d
	call	SUN8I_MIXER_CHAN_VI_OVL_SIZE@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	mov	r8, QWORD PTR 40[rsp]
	mov	ecx, DWORD PTR 16[rsp]
	mov	r9d, 1
	cmp	DWORD PTR [r8], 1
	jle	.L19
.L4:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	mov	DWORD PTR 56[rsp], r9d
	mov	QWORD PTR 40[rsp], r8
	mov	DWORD PTR 16[rsp], ecx
	call	DRM_DEBUG_DRIVER@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	rax, QWORD PTR 8[rax]
	mov	r14, QWORD PTR [rax]
	imul	r13d, DWORD PTR [r14], 1000
	mov	edi, DWORD PTR 4[r14]
	imul	edi, DWORD PTR 8[r14]
	mov	eax, r13d
	cdq
	idiv	edi
	mov	edi, DWORD PTR 16[rbx]
	mov	r13d, eax
	call	clk_get_rate@PLT
	imul	r13d, DWORD PTR 12[r14]
	mov	esi, DWORD PTR 12[rsp]
	xor	r14d, r14d
	mov	edi, DWORD PTR 4[rsp]
	lea	r12d, [rax+rax*4]
	sal	r12d, 4
	call	max@PLT
	mov	esi, r13d
	mov	edi, r12d
	xor	r13d, r13d
	imul	esi, eax
	call	do_div@PLT
	mov	ecx, DWORD PTR 16[rsp]
	mov	r8, QWORD PTR 40[rsp]
	mov	r9d, DWORD PTR 56[rsp]
	imul	eax, ecx, 100
	cdq
	idiv	DWORD PTR 8[rsp]
	cmp	r12d, eax
	jb	.L20
.L6:
	mov	r12d, 2048
	test	r9d, r9d
	jne	.L21
.L7:
	mov	DWORD PTR 16[rsp], 0
	xor	r10d, r10d
	cmp	DWORD PTR 4[rsp], r12d
	ja	.L22
.L8:
	mov	DWORD PTR 40[rsp], r10d
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	push	r8
	.cfi_def_cfa_offset 144
	mov	eax, DWORD PTR 48[rsp]
	push	rax
	.cfi_def_cfa_offset 152
	mov	eax, DWORD PTR 44[rsp]
	push	rax
	.cfi_def_cfa_offset 160
	mov	eax, ecx
	mov	r9d, DWORD PTR 40[rsp]
	sal	eax, 16
	cdq
	idiv	r9d
	push	rax
	.cfi_def_cfa_offset 168
	mov	edi, DWORD PTR 44[rsp]
	mov	r8d, DWORD PTR 52[rsp]
	mov	eax, edi
	sal	eax, 16
	cdq
	idiv	r8d
	mov	edx, edi
	mov	rdi, rbx
	push	rax
	.cfi_def_cfa_offset 176
	mov	r12d, DWORD PTR 100[rsp]
	mov	esi, r12d
	call	sun8i_vi_scaler_setup@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 128
	mov	esi, r12d
	mov	rdi, rbx
	mov	edx, 1
	call	sun8i_vi_scaler_enable@PLT
	mov	r10d, DWORD PTR 40[rsp]
.L9:
	mov	edi, r10d
	mov	DWORD PTR 4[rsp], r10d
	call	SUN8I_MIXER_CHAN_VI_DS_N@PLT
	mov	edi, DWORD PTR 16[rsp]
	mov	r12d, eax
	call	SUN8I_MIXER_CHAN_VI_DS_M@PLT
	mov	edi, r15d
	or	r12d, eax
	call	SUN8I_MIXER_CHAN_VI_HDS_Y@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	mov	r10d, DWORD PTR 4[rsp]
	mov	edi, r10d
	call	SUN8I_MIXER_CHAN_VI_DS_N@PLT
	mov	edi, DWORD PTR 16[rsp]
	mov	r12d, eax
	call	SUN8I_MIXER_CHAN_VI_DS_M@PLT
	mov	edi, r15d
	or	r12d, eax
	call	SUN8I_MIXER_CHAN_VI_HDS_UV@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	mov	edi, r13d
	call	SUN8I_MIXER_CHAN_VI_DS_N@PLT
	mov	edi, r14d
	mov	r12d, eax
	call	SUN8I_MIXER_CHAN_VI_DS_M@PLT
	mov	edi, r15d
	or	r12d, eax
	call	SUN8I_MIXER_CHAN_VI_VDS_Y@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	mov	edi, r13d
	call	SUN8I_MIXER_CHAN_VI_DS_N@PLT
	mov	edi, r14d
	mov	r12d, eax
	call	SUN8I_MIXER_CHAN_VI_DS_M@PLT
	mov	edi, r15d
	or	r12d, eax
	call	SUN8I_MIXER_CHAN_VI_VDS_UV@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	mov	edx, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR 0[rbp]
	xor	eax, eax
	lea	rdi, .LC7[rip]
	call	DRM_DEBUG_DRIVER@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	esi, DWORD PTR 12[rsp]
	xor	eax, eax
	lea	rdi, .LC8[rip]
	call	DRM_DEBUG_DRIVER@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 0[rbp]
	call	SUN8I_MIXER_COORD@PLT
	mov	r14d, DWORD PTR 48[rsp]
	mov	r15d, DWORD PTR 36[rsp]
	mov	r12d, eax
	mov	esi, r14d
	mov	edi, r15d
	call	SUN8I_MIXER_BLEND_ATTR_COORD@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	mov	esi, r14d
	mov	edi, r15d
	call	SUN8I_MIXER_BLEND_ATTR_INSIZE@PLT
	mov	edx, DWORD PTR 24[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	esi, eax
	call	regmap_write@PLT
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L21:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	mov	r12d, DWORD PTR [rax]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	DWORD PTR 4[r8], 1
	jg	.L4
	cmp	r12d, DWORD PTR 24[rsp]
	jne	.L12
	mov	r10d, DWORD PTR 20[rsp]
	or	r10d, DWORD PTR 32[rsp]
	je	.L5
.L12:
	xor	r9d, r9d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	DRM_DEBUG_DRIVER@PLT
	imul	r12d, DWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 16[rsp]
	mov	r9d, DWORD PTR 56[rsp]
	mov	r8, QWORD PTR 40[rsp]
	mov	r14d, ecx
	movsx	r13, r12d
	sar	r12d, 31
	imul	r13, r13, 1374389535
	sar	r13, 37
	sub	r13d, r12d
	mov	ecx, r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC5[rip]
	xor	eax, eax
	mov	QWORD PTR 56[rsp], r8
	mov	DWORD PTR 40[rsp], ecx
	call	DRM_DEBUG_DRIVER@PLT
	mov	eax, DWORD PTR 4[rsp]
	mov	ecx, DWORD PTR 40[rsp]
	mov	r10d, r12d
	mov	DWORD PTR 4[rsp], r12d
	mov	r8, QWORD PTR 56[rsp]
	mov	DWORD PTR 16[rsp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdi, .LC6[rip]
	xor	eax, eax
	xor	r14d, r14d
	xor	r13d, r13d
	mov	DWORD PTR 4[rsp], r10d
	call	DRM_DEBUG_DRIVER@PLT
	mov	esi, DWORD PTR 52[rsp]
	xor	edx, edx
	mov	rdi, rbx
	call	sun8i_vi_scaler_enable@PLT
	mov	DWORD PTR 16[rsp], 0
	mov	r10d, DWORD PTR 4[rsp]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	sun8i_vi_layer_update_coord, .-sun8i_vi_layer_update_coord
	.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_sun8i_vi_layer.c_sun8i_vi_layer_update_coord.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Updating VI channel %d overlay %d\012\000"
	.align	2
.LC1:
	.ascii	"Layer source offset X: %d Y: %d\012\000"
	.align	2
.LC2:
	.ascii	"Layer source size W: %d H: %d\012\000"
	.align	2
.LC3:
	.ascii	"HW scaling is enabled\012\000"
	.global	__aeabi_idiv
	.align	2
.LC4:
	.ascii	"Using vertical coarse scaling\012\000"
	.align	2
.LC5:
	.ascii	"Using horizontal coarse scaling\012\000"
	.align	2
.LC6:
	.ascii	"HW scaling is not needed\012\000"
	.align	2
.LC7:
	.ascii	"Layer destination coordinates X: %d Y: %d\012\000"
	.align	2
.LC8:
	.ascii	"Layer destination size W: %d H: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sun8i_vi_layer_update_coord, %function
sun8i_vi_layer_update_coord:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r5, [r3]
	mov	r10, r3
	ldr	r3, [r5, #20]
	sub	sp, sp, #76
	ldr	r3, [r3]
	ldr	r0, .L21
	str	r3, [sp, #36]
	mov	r6, r1
	mov	r9, r2
	str	r1, [sp, #64]
	bl	DRM_DEBUG_DRIVER
	mov	r0, r4
	bl	sun8i_blender_base
	mov	r2, r0
	mov	r1, r6
	mov	r0, r4
	str	r2, [sp, #60]
	bl	sun8i_channel_base
	add	r6, r5, #12
	mov	r8, r0
	mov	r0, r6
	bl	drm_rect_width
	mov	r7, r0
	mov	r0, r6
	bl	drm_rect_height
	mov	fp, r0
	mov	r0, r5
	bl	drm_rect_width
	mov	r2, r0
	mov	r0, r5
	str	r2, [sp, #40]
	bl	drm_rect_height
	ldr	r3, [sp, #36]
	ldr	r1, .L21+4
	ldr	r2, [r3]
	ldr	lr, [r5, #12]
	ldr	ip, [r5, #16]
	str	r0, [sp, #36]
	cmp	r2, #1
	and	r0, lr, r1
	and	r1, ip, r1
	asr	r7, r7, #16
	asr	fp, fp, #16
	str	r0, [sp, #48]
	str	r1, [sp, #44]
	ble	.L2
	sub	r1, r2, #1
	and	r1, r1, lr, asr #16
	add	r7, r7, r1
	rsb	r2, r2, #0
	add	r1, r0, r1, lsl #16
	str	r1, [sp, #48]
	and	r7, r7, r2
.L2:
	ldr	r2, [r3, #4]
	cmp	r2, #1
	ble	.L3
	sub	r1, r2, #1
	and	r1, r1, ip, asr #16
	ldr	ip, [sp, #44]
	add	r0, fp, r1
	rsb	r2, r2, #0
	add	r1, ip, r1, lsl #16
	str	r1, [sp, #44]
	and	fp, r2, r0
.L3:
	mov	r1, fp
	mov	r0, r7
	str	r3, [sp, #52]
	bl	SUN8I_MIXER_SIZE
	ldr	r1, [sp, #36]
	mov	r6, r0
	ldr	r0, [sp, #40]
	bl	SUN8I_MIXER_SIZE
	mov	ip, r0
	ldr	r3, [sp, #52]
	ldrsh	lr, [r5, #18]
	ldrsh	r0, [r5, #14]
	ldm	r3, {r1, r2}
	rsb	r2, r2, #0
	rsb	r1, r1, #0
	and	r2, r2, lr
	and	r1, r1, r0
	ldr	r0, .L21+8
	str	r3, [sp, #56]
	str	ip, [sp, #52]
	bl	DRM_DEBUG_DRIVER
	mov	r2, fp
	mov	r1, r7
	ldr	r0, .L21+12
	bl	DRM_DEBUG_DRIVER
	mov	r1, r9
	mov	r0, r8
	ldr	r9, [r4]
	bl	SUN8I_MIXER_CHAN_VI_LAYER_SIZE
	mov	r2, r6
	mov	r1, r0
	mov	r0, r9
	bl	regmap_write
	mov	r0, r8
	ldr	r9, [r4]
	bl	SUN8I_MIXER_CHAN_VI_OVL_SIZE
	mov	r2, r6
	mov	r1, r0
	mov	r0, r9
	bl	regmap_write
	ldr	r3, [sp, #56]
	ldr	r2, [r3]
	cmp	r2, #1
	ble	.L18
.L11:
	mov	r2, #1
	str	r2, [sp, #56]
.L4:
	ldr	r0, .L21+16
	str	r3, [sp, #68]
	bl	DRM_DEBUG_DRIVER
	ldr	r2, [r10]
	ldr	r2, [r2, #8]
	ldr	r9, [r2]
	ldm	r9, {r0, r2}
	ldr	r1, [r9, #8]
	rsb	ip, r0, r0, lsl #5
	add	r0, r0, ip, lsl #2
	mul	r1, r2, r1
	lsl	r0, r0, #3
	bl	__aeabi_idiv
	mov	r10, r0
	ldr	r0, [r4, #8]
	bl	clk_get_rate
	ldr	r2, [r9, #12]
	ldr	r1, [sp, #40]
	add	r6, r0, r0, lsl #2
	mov	r0, r7
	mul	r10, r2, r10
	bl	max
	mov	r1, r0
	lsl	r6, r6, #4
	mul	r1, r10, r1
	mov	r0, r6
	bl	do_div
	add	r0, fp, fp, lsl #2
	add	r0, r0, r0, lsl #2
	ldr	r1, [sp, #36]
	lsl	r0, r0, #2
	bl	__aeabi_idiv
	cmp	r6, r0
	movcs	r10, #0
	ldr	r3, [sp, #68]
	movcs	r6, r10
	bcc	.L19
.L6:
	ldr	r2, [sp, #56]
	cmp	r2, #0
	moveq	r9, #2048
	ldrne	r2, [r4, #4]
	ldrne	r9, [r2]
	cmp	r7, r9
	movls	r2, #0
	movls	r9, r2
	strls	r2, [sp, #56]
	bhi	.L20
.L8:
	ldr	r2, [sp, #44]
	ldr	r1, [sp, #36]
	str	r2, [sp, #20]
	ldr	r2, [sp, #48]
	lsl	r0, fp, #16
	str	r2, [sp, #16]
	str	r3, [sp, #24]
	bl	__aeabi_idiv
	mov	r3, r0
	ldr	r1, [sp, #40]
	lsl	r0, r7, #16
	str	r3, [sp, #12]
	bl	__aeabi_idiv
	ldr	r3, [sp, #36]
	mov	r2, r7
	str	r3, [sp, #4]
	ldr	r7, [sp, #64]
	ldr	r3, [sp, #40]
	mov	r1, r7
	str	r0, [sp, #8]
	str	r3, [sp]
	mov	r0, r4
	mov	r3, fp
	bl	sun8i_vi_scaler_setup
	mov	r1, r7
	mov	r2, #1
	mov	r0, r4
	bl	sun8i_vi_scaler_enable
.L9:
	mov	r0, r8
	ldr	r7, [r4]
	bl	SUN8I_MIXER_CHAN_VI_HDS_Y
	mov	r1, r0
	mov	r0, r9
	str	r1, [sp, #48]
	bl	SUN8I_MIXER_CHAN_VI_DS_N
	mov	r2, r0
	ldr	fp, [sp, #56]
	str	r2, [sp, #44]
	mov	r0, fp
	bl	SUN8I_MIXER_CHAN_VI_DS_M
	ldr	r2, [sp, #44]
	ldr	r1, [sp, #48]
	orr	r2, r2, r0
	mov	r0, r7
	bl	regmap_write
	mov	r0, r8
	ldr	r7, [r4]
	bl	SUN8I_MIXER_CHAN_VI_HDS_UV
	mov	r1, r0
	mov	r0, r9
	str	r1, [sp, #44]
	bl	SUN8I_MIXER_CHAN_VI_DS_N
	mov	r9, r0
	mov	r0, fp
	bl	SUN8I_MIXER_CHAN_VI_DS_M
	ldr	r1, [sp, #44]
	orr	r2, r9, r0
	mov	r0, r7
	bl	regmap_write
	mov	r0, r8
	ldr	r7, [r4]
	bl	SUN8I_MIXER_CHAN_VI_VDS_Y
	mov	fp, r0
	mov	r0, r6
	bl	SUN8I_MIXER_CHAN_VI_DS_N
	mov	r9, r0
	mov	r0, r10
	bl	SUN8I_MIXER_CHAN_VI_DS_M
	mov	r1, fp
	orr	r2, r9, r0
	mov	r0, r7
	bl	regmap_write
	mov	r0, r8
	ldr	r7, [r4]
	bl	SUN8I_MIXER_CHAN_VI_VDS_UV
	mov	r8, r0
	mov	r0, r6
	bl	SUN8I_MIXER_CHAN_VI_DS_N
	mov	r6, r0
	mov	r0, r10
	bl	SUN8I_MIXER_CHAN_VI_DS_M
	mov	r1, r8
	orr	r2, r6, r0
	mov	r0, r7
	bl	regmap_write
	ldm	r5, {r1, r2}
	ldr	r0, .L21+20
	bl	DRM_DEBUG_DRIVER
	ldr	r2, [sp, #36]
	ldr	r1, [sp, #40]
	ldr	r0, .L21+24
	bl	DRM_DEBUG_DRIVER
	ldr	r8, [sp, #60]
	ldr	r1, [sp, #112]
	mov	r0, r8
	ldr	r7, [r4]
	bl	SUN8I_MIXER_BLEND_ATTR_COORD
	ldr	r1, [r5, #4]
	mov	r6, r0
	ldr	r0, [r5]
	bl	SUN8I_MIXER_COORD
	mov	r1, r6
	mov	r2, r0
	mov	r0, r7
	bl	regmap_write
	ldr	r1, [sp, #112]
	mov	r0, r8
	ldr	r4, [r4]
	bl	SUN8I_MIXER_BLEND_ATTR_INSIZE
	ldr	r2, [sp, #52]
	mov	r1, r0
	mov	r0, r4
	bl	regmap_write
	mov	r0, #0
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r2, [r3, #4]
	cmp	r2, #1
	bgt	.L11
	ldr	r2, [sp, #52]
	cmp	r6, r2
	bne	.L12
	ldr	r2, [sp, #48]
	ldr	r1, [sp, #44]
	orrs	r9, r2, r1
	beq	.L5
.L12:
	mov	r2, #0
	str	r2, [sp, #56]
	b	.L4
.L20:
	ldr	r0, .L21+28
	str	r3, [sp, #68]
	str	r7, [sp, #56]
	bl	DRM_DEBUG_DRIVER
	mov	r7, r9
	ldr	r3, [sp, #68]
	b	.L8
.L19:
	ldr	r0, .L21+32
	bl	DRM_DEBUG_DRIVER
	ldr	r3, [sp, #36]
	ldr	r2, .L21+36
	mul	r3, r6, r3
	mov	r6, r3
	smull	r3, r2, r6, r2
	asr	r6, r6, #31
	rsb	r6, r6, r2, asr #5
	mov	r10, fp
	ldr	r3, [sp, #68]
	mov	fp, r6
	b	.L6
.L5:
	ldr	r0, .L21+40
	bl	DRM_DEBUG_DRIVER
	mov	r2, r9
	mov	r0, r4
	ldr	r1, [sp, #64]
	bl	sun8i_vi_scaler_enable
	mov	r10, r9
	mov	r6, r9
	str	r9, [sp, #56]
	b	.L9
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	65535
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC7
	.word	.LC8
	.word	.LC5
	.word	.LC4
	.word	1374389535
	.word	.LC6
	.size	sun8i_vi_layer_update_coord, .-sun8i_vi_layer_update_coord
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
