	.file	"57949819.c"
	.intel_syntax noprefix
	.text
	.globl	orderCalculation
	.type	orderCalculation, @function
orderCalculation:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, edx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -32[rbp], xmm0
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -28[rbp], xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -32[rbp]
	mov	DWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 500
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -20[rbp], eax
	cmovge	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, edx
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm1, QWORD PTR .LC1[rip]
	mulsd	xmm2, xmm1
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm2
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, QWORD PTR -16[rbp]
	jbe	.L7
	movsd	xmm0, QWORD PTR -16[rbp]
	jmp	.L4
.L7:
	movsd	xmm0, QWORD PTR -8[rbp]
.L4:
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	orderCalculation, .-orderCalculation
	.section	.rodata
	.align 4
.LC0:
	.long	1077936128
	.align 8
.LC1:
	.long	-1717986918
	.long	1068079513
	.align 8
.LC2:
	.long	-1717986918
	.long	1069128089
	.align 8
.LC3:
	.long	0
	.long	1079574528
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"57949819.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_f2d
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_dcmplt
	.global	__aeabi_dadd
	.global	__aeabi_d2f
	.align	2
	.global	orderCalculation
	.syntax unified
	.arm
	.fpu softvfp
	.type	orderCalculation, %function
orderCalculation:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	sub	r3, fp, #52
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-44]	@ float
	ldr	r3, .L8
	str	r3, [fp, #-40]	@ float
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #500
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L8+4
	ldr	r3, .L8+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L8+4
	ldr	r3, .L8+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #0
	ldr	r3, .L8+16
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	b	.L4
.L7:
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
.L4:
	mov	r2, r4
	mov	r3, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L9:
	.align	2
.L8:
	.word	1077936128
	.word	-1717986918
	.word	1068079513
	.word	1069128089
	.word	1079574528
	.size	orderCalculation, .-orderCalculation
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
