	.file	"extr_vf_find_rect.c_compare.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	compare, @function
compare:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rdx, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r14d, DWORD PTR [rsi]
	mov	r15d, DWORD PTR 4[rsi]
	mov	eax, r14d
	imul	eax, r15d
	mov	DWORD PTR 28[rsp], eax
	mov	rax, QWORD PTR 8[rsi]
	mov	rbx, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rdi]
	mov	rdi, QWORD PTR 8[rdi]
	mov	r8d, DWORD PTR [rax]
	imul	ecx, r8d
	movsx	rax, ecx
	add	rax, rdx
	mov	rdx, QWORD PTR [rdi]
	lea	rbp, [rdx+rax*4]
	test	r14d, r14d
	jle	.L9
	movsx	rax, r8d
	xor	edi, edi
	xor	r8d, r8d
	xor	r10d, r10d
	sal	rax, 2
	xor	r9d, r9d
	lea	r12d, -1[r15]
	xor	r13d, r13d
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 16[rsi]
	movsx	rax, DWORD PTR [rax]
	sal	rax, 2
	mov	QWORD PTR 16[rsp], rax
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L3:
	xor	ecx, ecx
	test	r15d, r15d
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR [rbx+rcx*4]
	mov	esi, DWORD PTR 0[rbp+rcx*4]
	mov	r11d, edx
	add	r9d, edx
	add	r10d, esi
	imul	r11d, edx
	imul	edx, esi
	add	edi, r11d
	mov	r11d, esi
	imul	r11d, esi
	add	eax, edx
	mov	rdx, rcx
	add	rcx, 1
	add	r8d, r11d
	cmp	r12, rdx
	jne	.L4
.L7:
	add	r13d, 1
	add	rbx, QWORD PTR 16[rsp]
	add	rbp, QWORD PTR 8[rsp]
	cmp	r14d, r13d
	jne	.L3
	mov	ebx, DWORD PTR 28[rsp]
	mov	ecx, r10d
	mov	edx, r9d
	imul	ecx, r10d
	imul	r8d, ebx
	imul	edi, ebx
	imul	edx, r9d
	sub	r8d, ecx
	mov	ebp, r8d
	sub	edi, edx
	je	.L9
	test	r8d, r8d
	je	.L9
	imul	r9d, r10d
	imul	eax, ebx
	sub	eax, r9d
	mov	ebx, eax
	call	sqrt@PLT
	mov	edi, ebp
	mov	r12d, eax
	call	sqrt@PLT
	mov	ecx, r12d
	pxor	xmm0, xmm0
	imul	ecx, eax
	mov	eax, ebx
	cdq
	idiv	ecx
	cvtsi2ss	xmm0, eax
	call	fabs@PLT
	movss	xmm1, DWORD PTR .LC0[rip]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	subss	xmm1, xmm0
	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
	movaps	xmm0, xmm1
	ret
.L9:
	.cfi_restore_state
	movss	xmm0, DWORD PTR .LC0[rip]
	add	rsp, 40
	.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	compare, .-compare
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1065353216
	.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_vf_find_rect.c_compare.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_i2f
	.global	__aeabi_fsub
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare, %function
compare:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	lr, [r0, #12]
	ldr	ip, [r0, #8]
	ldr	r0, [lr]
	ldr	r8, [ip]
	mla	r3, r0, r3, r2
	ldr	ip, [r1, #4]
	add	r8, r8, r3, lsl #2
	mov	r3, ip
	ldr	lr, [r1]
	ldr	r2, [r1, #8]
	mul	r3, lr, r3
	sub	sp, sp, #20
	cmp	lr, #0
	ldr	r10, [r2]
	str	lr, [sp]
	str	ip, [sp, #4]
	str	r3, [sp, #12]
	ble	.L9
	mov	r4, #0
	add	r7, r10, ip, lsl #2
	mov	lr, r4
	mov	ip, r4
	mov	r6, r4
	mov	r5, r4
	mov	r9, r4
	ldr	r3, [r1, #12]
	sub	r7, r7, #4
	ldr	fp, [r3]
	lsl	r3, r0, #2
	str	r3, [sp, #8]
	lsl	fp, fp, #2
.L3:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	subgt	r1, r10, #4
	subgt	r0, r8, #4
	ble	.L7
.L4:
	ldr	r2, [r1, #4]!
	ldr	r3, [r0, #4]!
	cmp	r7, r1
	mla	lr, r2, r2, lr
	mla	r4, r3, r2, r4
	mla	ip, r3, r3, ip
	add	r5, r5, r2
	add	r6, r6, r3
	bne	.L4
.L7:
	ldr	r3, [sp]
	add	r9, r9, #1
	cmp	r3, r9
	ldr	r3, [sp, #8]
	add	r10, r10, fp
	add	r8, r8, r3
	add	r7, r7, fp
	bne	.L3
	ldr	r2, [sp, #12]
	mul	r0, r5, r5
	mov	r3, r2
	mov	r1, r2
	mul	r3, lr, r3
	mul	r1, ip, r1
	mul	r7, r6, r6
	subs	r0, r3, r0
	mov	lr, r3
	moveq	r3, #1
	movne	r3, #0
	subs	r7, r1, r7
	moveq	r3, #1
	cmp	r3, #0
	bne	.L9
	mul	r2, r4, r2
	mul	r5, r6, r5
	sub	r5, r2, r5
	bl	sqrt
	mov	r4, r0
	mov	r0, r7
	bl	sqrt
	mov	r1, r0
	mov	r0, r5
	mul	r1, r4, r1
	bl	__aeabi_idiv
	bl	__aeabi_i2f
	bl	fabs
	mov	r1, r0
	mov	r0, #1065353216
	bl	__aeabi_fsub
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r0, #1065353216
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	compare, .-compare
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
