	.file	"extr_dispc.c_dispc_ovl_set_scale_coef.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dispc_ovl_set_scale_coef, @function
dispc_ovl_set_scale_coef:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edi
	mov	edi, esi
	mov	esi, 1
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 4[rsp], ecx
	mov	DWORD PTR [rsp], r8d
	call	dispc_ovl_get_scale_coef@PLT
	mov	esi, r15d
	mov	edi, ebp
	mov	rbx, rax
	call	dispc_ovl_get_scale_coef@PLT
	mov	QWORD PTR 8[rsp], rax
	lea	r13, 8[rax]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	call	dispc_ovl_write_firh2_reg@PLT
	mov	edx, ebp
	mov	esi, r12d
	mov	edi, r14d
	call	dispc_ovl_write_firhv2_reg@PLT
.L3:
	add	r12d, 1
	add	rbx, 20
	add	r13, 20
	cmp	r12d, 8
	je	.L14
.L4:
	mov	edi, DWORD PTR 4[rbx]
	xor	edx, edx
	mov	esi, 7
	call	FLD_VAL@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	edx, 8
	mov	esi, 15
	mov	ebp, eax
	call	FLD_VAL@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, 16
	mov	esi, 23
	or	ebp, eax
	call	FLD_VAL@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, 24
	mov	esi, 31
	or	ebp, eax
	call	FLD_VAL@PLT
	mov	edi, DWORD PTR [rbx]
	xor	edx, edx
	mov	r15d, ebp
	mov	esi, 7
	or	r15d, eax
	call	FLD_VAL@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	edx, 8
	mov	esi, 15
	mov	ebp, eax
	call	FLD_VAL@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	edx, 16
	mov	esi, 23
	or	ebp, eax
	call	FLD_VAL@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	edx, 24
	mov	esi, 31
	or	ebp, eax
	call	FLD_VAL@PLT
	mov	edx, r15d
	mov	esi, r12d
	mov	edi, r14d
	or	ebp, eax
	mov	eax, DWORD PTR [rsp]
	cmp	DWORD PTR DISPC_COLOR_COMPONENT_RGB_Y[rip], eax
	jne	.L2
	call	dispc_ovl_write_firh_reg@PLT
	mov	edx, ebp
	mov	esi, r12d
	mov	edi, r14d
	call	dispc_ovl_write_firhv_reg@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L1
	mov	rbp, QWORD PTR 8[rsp]
	xor	r12d, r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	call	dispc_ovl_write_firv2_reg@PLT
	add	r12d, 1
	add	rbp, 20
	cmp	r12d, 8
	je	.L1
.L8:
	mov	edi, DWORD PTR 4[rbp]
	xor	edx, edx
	mov	esi, 7
	call	FLD_VAL@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, 8
	mov	esi, 15
	mov	ebx, eax
	call	FLD_VAL@PLT
	mov	esi, r12d
	mov	edi, r14d
	or	ebx, eax
	mov	eax, DWORD PTR [rsp]
	cmp	DWORD PTR DISPC_COLOR_COMPONENT_RGB_Y[rip], eax
	mov	edx, ebx
	jne	.L6
	call	dispc_ovl_write_firv_reg@PLT
	add	r12d, 1
	add	rbp, 20
	cmp	r12d, 8
	jne	.L8
.L1:
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	dispc_ovl_set_scale_coef, .-dispc_ovl_set_scale_coef
	.comm	DISPC_COLOR_COMPONENT_RGB_Y,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_dispc.c_dispc_ovl_set_scale_coef.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dispc_ovl_set_scale_coef, %function
dispc_ovl_set_scale_coef:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	sub	sp, sp, #12
	mov	r0, r1
	mov	r1, #1
	mov	r6, r3
	mov	r4, r2
	str	r3, [sp]
	bl	dispc_ovl_get_scale_coef
	mov	r1, r6
	mov	r5, r0
	mov	r0, r4
	bl	dispc_ovl_get_scale_coef
	mov	r6, #0
	mov	r7, r0
	mov	r9, r6
	ldr	fp, .L15
	ldr	r6, [sp, #48]
	str	r0, [sp, #4]
	b	.L4
.L2:
	bl	dispc_ovl_write_firh2_reg
	mov	r2, r10
	mov	r1, r9
	mov	r0, r8
	bl	dispc_ovl_write_firhv2_reg
.L3:
	add	r9, r9, #1
	cmp	r9, #8
	add	r5, r5, #20
	add	r7, r7, #20
	beq	.L14
.L4:
	mov	r2, #0
	mov	r1, #7
	ldr	r0, [r5, #4]
	bl	FLD_VAL
	mov	r2, #8
	mov	r4, r0
	mov	r1, #15
	ldr	r0, [r5, #16]
	bl	FLD_VAL
	mov	ip, r0
	mov	r2, #16
	mov	r1, #23
	ldr	r0, [r5, #12]
	orr	r4, r4, ip
	bl	FLD_VAL
	mov	ip, r0
	mov	r2, #24
	mov	r1, #31
	ldr	r0, [r5, #8]
	orr	r4, r4, ip
	bl	FLD_VAL
	mov	ip, r0
	mov	r2, #0
	mov	r1, #7
	ldr	r0, [r5]
	orr	r4, r4, ip
	bl	FLD_VAL
	mov	r2, #8
	mov	r10, r0
	mov	r1, #15
	ldr	r0, [r7, #16]
	bl	FLD_VAL
	mov	ip, r0
	mov	r2, #16
	mov	r1, #23
	ldr	r0, [r7, #12]
	orr	r10, r10, ip
	bl	FLD_VAL
	mov	ip, r0
	mov	r2, #24
	mov	r1, #31
	ldr	r0, [r7, #8]
	orr	r10, r10, ip
	bl	FLD_VAL
	ldr	r2, [fp]
	orr	r10, r10, r0
	cmp	r2, r6
	mov	r1, r9
	mov	r2, r4
	mov	r0, r8
	bne	.L2
	bl	dispc_ovl_write_firh_reg
	mov	r2, r10
	mov	r1, r9
	mov	r0, r8
	bl	dispc_ovl_write_firhv_reg
	b	.L3
.L14:
	ldm	sp, {r3, r9}
	cmp	r3, #0
	beq	.L1
	mov	r5, #0
	ldr	r6, [sp, #48]
	b	.L5
.L6:
	add	r5, r5, #1
	bl	dispc_ovl_write_firv2_reg
	cmp	r5, #8
	add	r9, r9, #20
	beq	.L1
.L5:
	mov	r2, #0
	mov	r1, #7
	ldr	r0, [r9, #4]
	bl	FLD_VAL
	mov	r2, #8
	mov	r4, r0
	mov	r1, #15
	ldr	r0, [r9]
	bl	FLD_VAL
	ldr	r3, [fp]
	orr	r2, r4, r0
	cmp	r3, r6
	mov	r1, r5
	mov	r0, r8
	bne	.L6
	add	r5, r5, #1
	bl	dispc_ovl_write_firv_reg
	cmp	r5, #8
	add	r9, r9, #20
	bne	.L5
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	DISPC_COLOR_COMPONENT_RGB_Y
	.size	dispc_ovl_set_scale_coef, .-dispc_ovl_set_scale_coef
	.comm	DISPC_COLOR_COMPONENT_RGB_Y,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
