	.file	"extr_aspect.c_aspect_calc_panscan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aspect_calc_panscan, @function
aspect_calc_panscan:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm2, xmm2
	pxor	xmm1, xmm1
	pxor	xmm3, xmm3
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	cvtsi2ss	xmm2, ecx
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	cvtsi2ss	xmm3, r8d
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cvtsi2ss	xmm1, DWORD PTR 80[rsp]
	movsd	QWORD PTR [rsp], xmm0
	divss	xmm1, xmm2
	mulss	xmm1, xmm3
	cvtss2sd	xmm1, xmm1
	divsd	xmm1, xmm0
	cvttsd2si	ebx, xmm1
	cmp	ebx, DWORD PTR 88[rsp]
	jg	.L11
	cmp	ebx, edx
	jl	.L11
.L2:
	mov	esi, 1
	mov	edi, ebx
	mov	r15d, DWORD PTR 88[rsp]
	call	MPMAX@PLT
	pxor	xmm1, xmm1
	pxor	xmm0, xmm0
	mov	ecx, DWORD PTR 80[rsp]
	cvtsi2sd	xmm0, rax
	sub	r15d, ebx
	movsd	xmm3, QWORD PTR .LC0[rip]
	cvtsi2sd	xmm1, DWORD PTR 80[rsp]
	movapd	xmm2, xmm1
	divsd	xmm2, xmm0
	test	r15d, r15d
	je	.L8
.L5:
	test	r14d, r14d
	je	.L6
	cmp	r14d, 2
	je	.L27
.L7:
	pxor	xmm1, xmm1
	mov	ebx, r12d
	xor	r15d, r15d
	cvtsi2sd	xmm1, ebp
	mulsd	xmm1, QWORD PTR [rsp]
	cvttsd2si	ecx, xmm1
.L6:
	mov	eax, DWORD PTR 0[r13]
	pxor	xmm0, xmm0
	imul	eax, r15d
	cvtsi2sd	xmm0, eax
	movapd	xmm1, xmm0
	pxor	xmm0, xmm0
	mulsd	xmm1, xmm2
	cvtsi2sd	xmm0, ecx
	mov	rcx, QWORD PTR 96[rsp]
	addsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, ebx
	cvttsd2si	eax, xmm0
	pxor	xmm0, xmm0
	mov	DWORD PTR [rcx], eax
	mov	edx, DWORD PTR 0[r13]
	imul	edx, r15d
	cvtsi2sd	xmm0, edx
	mov	rdx, QWORD PTR 104[rsp]
	mulsd	xmm0, xmm3
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR [rdx], eax
	add	rsp, 24
	.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
.L11:
	.cfi_restore_state
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR 88[rsp]
	divss	xmm0, xmm3
	mulss	xmm0, xmm2
	cvtss2sd	xmm0, xmm0
	mulsd	xmm0, QWORD PTR [rsp]
	cvttsd2si	ecx, xmm0
	cmp	DWORD PTR 80[rsp], ecx
	jl	.L2
	mov	edi, DWORD PTR 88[rsp]
	mov	esi, 1
	mov	DWORD PTR 12[rsp], ecx
	call	MPMAX@PLT
	mov	r15d, DWORD PTR 80[rsp]
	mov	ecx, DWORD PTR 12[rsp]
	mov	ebx, DWORD PTR 88[rsp]
	sub	r15d, ecx
.L8:
	mov	edi, ecx
	mov	esi, 1
	mov	DWORD PTR 12[rsp], ecx
	call	MPMAX@PLT
	pxor	xmm0, xmm0
	pxor	xmm1, xmm1
	movsd	xmm2, QWORD PTR .LC0[rip]
	cvtsi2sd	xmm0, ebx
	mov	ecx, DWORD PTR 12[rsp]
	cvtsi2sd	xmm1, rax
	movapd	xmm3, xmm0
	divsd	xmm3, xmm1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	cmp	DWORD PTR 80[rsp], ebp
	jl	.L10
	cmp	r12d, DWORD PTR 88[rsp]
	jle	.L7
.L10:
	xor	r15d, r15d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	aspect_calc_panscan, .-aspect_calc_panscan
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.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_aspect.c_aspect_calc_panscan.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_f2d
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.global	__aeabi_dmul
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aspect_calc_panscan, %function
aspect_calc_panscan:
	@ args = 32, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	sub	sp, sp, #20
	mov	r0, r3
	mov	r9, r2
	mov	r7, r3
	bl	__aeabi_i2f
	mov	r6, r0
	ldr	r0, [sp, #56]
	bl	__aeabi_i2f
	mov	r8, r0
	ldr	r10, [sp, #64]
	mov	r0, r10
	bl	__aeabi_i2f
	mov	r1, r6
	bl	__aeabi_fdiv
	mov	r1, r8
	bl	__aeabi_fmul
	bl	__aeabi_f2d
	add	r3, sp, #72
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	bl	__aeabi_d2iz
	cmp	r0, r9
	movge	r9, #0
	movlt	r9, #1
	ldr	fp, [sp, #68]
	mov	r4, r0
	cmp	r0, fp
	orrgt	r9, r9, #1
	cmp	r9, #0
	beq	.L2
	mov	r0, fp
	bl	__aeabi_i2f
	mov	r1, r8
	bl	__aeabi_fdiv
	mov	r1, r6
	bl	__aeabi_fmul
	bl	__aeabi_f2d
	add	r3, sp, #72
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	bl	__aeabi_d2iz
	cmp	r10, r0
	mov	r9, r0
	bge	.L3
.L2:
	mov	r1, #1
	mov	r0, r4
	bl	MPMAX
	mov	r6, r0
	mov	r0, r10
	bl	__aeabi_i2d
	mov	r8, r0
	mov	r0, r6
	mov	r9, r1
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ddiv
	sub	r6, fp, r4
	cmp	r6, #0
	mov	r9, r10
	stm	sp, {r0-r1}
	beq	.L7
	mov	r2, #0
	ldr	r3, .L20
	str	r2, [sp, #8]
	str	r3, [sp, #12]
.L4:
	ldr	r3, [sp, #60]
	cmp	r3, #0
	beq	.L5
	cmp	r3, #2
	beq	.L19
.L6:
	mov	r0, r7
	bl	__aeabi_i2d
	add	r3, sp, #72
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	bl	__aeabi_d2iz
	mov	r6, #0
	mov	r9, r0
	ldr	r4, [sp, #56]
.L5:
	ldr	r0, [r5]
	mul	r0, r6, r0
	bl	__aeabi_i2d
	ldmia	sp, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r0, r9
	mov	r8, r2
	mov	r9, r1
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dadd
	bl	__aeabi_d2iz
	ldr	r3, [sp, #80]
	str	r0, [r3]
	ldr	r0, [r5]
	mul	r0, r6, r0
	bl	__aeabi_i2d
	add	r3, sp, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r0, r4
	mov	r5, r1
	mov	r4, r2
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	bl	__aeabi_d2iz
	ldr	r3, [sp, #84]
	str	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r1, #1
	mov	r0, fp
	bl	MPMAX
	mov	r4, fp
	sub	r6, r10, r9
.L7:
	mov	r1, #1
	mov	r0, r9
	bl	MPMAX
	mov	r8, r0
	mov	r0, r4
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	stm	sp, {r2-r3}
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldmia	sp, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, #0
	ldr	r3, .L20
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	b	.L4
.L19:
	ldr	r3, [sp, #56]
	cmp	r10, r7
	movlt	r6, #0
	movge	r6, #1
	cmp	r3, fp
	movgt	r6, #0
	cmp	r6, #0
	beq	.L5
	b	.L6
.L21:
	.align	2
.L20:
	.word	1072693248
	.size	aspect_calc_panscan, .-aspect_calc_panscan
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
