	.file	"extr_display.c_VoutDisplayCropRatio.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	VoutDisplayCropRatio, @function
VoutDisplayCropRatio:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r11, rdx
	xor	edx, edx
	mov	r10d, DWORD PTR 8[r8]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, DWORD PTR 4[r8]
	mov	ebp, DWORD PTR 24[rsp]
	mov	eax, ebx
	imul	eax, r9d
	imul	eax, DWORD PTR [r8]
	div	ebp
	xor	edx, edx
	div	r10d
	mov	edx, DWORD PTR 12[r8]
	cmp	edx, eax
	jbe	.L2
	sub	edx, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	shr	edx
	mov	DWORD PTR [rdi], edx
	mov	DWORD PTR [rsi], 0
	add	eax, DWORD PTR [rdi]
	mov	DWORD PTR [r11], eax
	mov	eax, DWORD PTR [r8]
	add	eax, DWORD PTR [rsi]
	mov	DWORD PTR [rcx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, r10d
	mov	DWORD PTR [rdi], 0
	imul	eax, edx
	xor	edx, edx
	imul	eax, ebp
	div	r9d
	xor	edx, edx
	div	ebx
	mov	edx, DWORD PTR [r8]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	sub	edx, eax
	shr	edx
	mov	DWORD PTR [rsi], edx
	mov	edx, DWORD PTR 12[r8]
	add	edx, DWORD PTR [rdi]
	mov	DWORD PTR [r11], edx
	add	eax, DWORD PTR [rsi]
	mov	DWORD PTR [rcx], eax
	ret
	.cfi_endproc
.LFE0:
	.size	VoutDisplayCropRatio, .-VoutDisplayCropRatio
	.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_display.c_VoutDisplayCropRatio.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	VoutDisplayCropRatio, %function
VoutDisplayCropRatio:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [sp, #40]
	mov	r5, r1
	ldr	r1, [sp, #44]
	mov	fp, r0
	ldm	r4, {r0, r9}
	mul	r1, r9, r1
	ldr	r10, [sp, #48]
	ldr	r8, [r4, #8]
	mul	r0, r1, r0
	mov	r1, r10
	mov	r6, r3
	mov	r7, r2
	bl	__aeabi_uidiv
	mov	r1, r8
	bl	__aeabi_uidiv
	ldr	r3, [r4, #12]
	cmp	r3, r0
	bls	.L2
	mov	r2, #0
	sub	r3, r3, r0
	lsr	r3, r3, #1
	str	r3, [fp]
	str	r2, [r5]
	ldr	r3, [fp]
	add	r0, r3, r0
	str	r0, [r7]
	ldr	r3, [r5]
	ldr	r2, [r4]
	add	r3, r3, r2
	str	r3, [r6]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mul	r0, r3, r8
	ldr	r1, [sp, #44]
	mul	r0, r10, r0
	bl	__aeabi_uidiv
	mov	r1, r9
	bl	__aeabi_uidiv
	mov	r3, #0
	str	r3, [fp]
	ldr	r3, [r4]
	sub	r3, r3, r0
	lsr	r3, r3, #1
	str	r3, [r5]
	ldr	r3, [fp]
	ldr	r2, [r4, #12]
	add	r3, r3, r2
	str	r3, [r7]
	ldr	r3, [r5]
	add	r0, r3, r0
	str	r0, [r6]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	VoutDisplayCropRatio, .-VoutDisplayCropRatio
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
