Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>

int cmpnum(const void * n1, const void * n2)
{
	if(*(double *)n1 >*(double *)n2)
	{
		return -1;
	}
	else if(*(double *)n1 < *(double *)n2)
	{
		return 1;
	}
	else
	{
		return 0;
}
}

int main(void)
{
  int i,n;
  double v[51]={0};
  double sum=0;

  scanf("%d",&n);
  for(i=0;i<n;i++)
    scanf("%lf",&v[i]);

  qsort(v, sizeof(v)/ sizeof(v[0]),sizeof(double),cmpnum);

  sum+=v[n-1];
  for(i=0;i<n-1;i++){
    sum+=v[n-2-i];
    sum/=2;
  }
  printf("%lf",sum);

  return 0;

}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmpnum
	.type	cmpnum, @function
cmpnum:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L9
	movl	$-1, %eax
	jmp	.L4
.L9:
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movl	$1, %eax
	jmp	.L4
.L10:
	movl	$0, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpnum, .-cmpnum
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%lf"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-416(%rbp), %rdx
	movl	$0, %eax
	movl	$51, %ecx
	movq	%rdx, %rdi
	rep stosq
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -424(%rbp)
	leaq	-432(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -428(%rbp)
	jmp	.L12
.L13:
	leaq	-416(%rbp), %rdx
	movl	-428(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -428(%rbp)
.L12:
	movl	-432(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jl	.L13
	leaq	-416(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movl	$51, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cltq
	movsd	-416(%rbp,%rax,8), %xmm0
	movsd	-424(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	movl	$0, -428(%rbp)
	jmp	.L14
.L15:
	movl	-432(%rbp), %eax
	subl	$2, %eax
	subl	-428(%rbp), %eax
	cltq
	movsd	-416(%rbp,%rax,8), %xmm0
	movsd	-424(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	movsd	-424(%rbp), %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	addl	$1, -428(%rbp)
.L14:
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -428(%rbp)
	jl	.L15
	movq	-424(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpnum
	.type	cmpnum, @function
cmpnum:
.LFB39:
	.cfi_startproc
	endbr64
	movsd	(%rdi), %xmm0
	movsd	(%rsi), %xmm1
	movl	$-1, %eax
	comisd	%xmm1, %xmm0
	ja	.L1
	xorl	%eax, %eax
	comisd	%xmm0, %xmm1
	seta	%al
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	cmpnum, .-cmpnum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$51, %ecx
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	movq	%rbp, %r12
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$8, %r12
	cmpl	%ebx, 12(%rsp)
	jg	.L9
.L10:
	leaq	cmpnum(%rip), %rcx
	movl	$8, %edx
	movl	$51, %esi
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	12(%rsp), %edx
	pxor	%xmm0, %xmm0
	leal	-1(%rdx), %eax
	movslq	%eax, %rcx
	addsd	16(%rsp,%rcx,8), %xmm0
	testl	%eax, %eax
	jle	.L8
	movslq	%edx, %rax
	subl	$2, %edx
	movsd	.LC3(%rip), %xmm1
	salq	$3, %rax
	salq	$3, %rdx
	leaq	0(%rbp,%rax), %rdi
	leaq	8(%rsp,%rax), %rax
	subq	%rdx, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	addsd	-16(%rdi), %xmm0
	subq	$8, %rdi
	mulsd	%xmm1, %xmm0
	cmpq	%rax, %rdi
	jne	.L11
.L8:
	movq	%r13, %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.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:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpnum
	.type	cmpnum, @function
cmpnum:
.LFB39:
	.cfi_startproc
	endbr64
	movsd	(%rdi), %xmm0
	movsd	(%rsi), %xmm1
	movl	$-1, %eax
	comisd	%xmm1, %xmm0
	ja	.L1
	xorl	%eax, %eax
	comisd	%xmm0, %xmm1
	seta	%al
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	cmpnum, .-cmpnum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$51, %ecx
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	movq	%rbp, %r12
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$8, %r12
	cmpl	%ebx, 12(%rsp)
	jg	.L9
.L10:
	leaq	cmpnum(%rip), %rcx
	movl	$8, %edx
	movl	$51, %esi
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	12(%rsp), %edx
	pxor	%xmm0, %xmm0
	leal	-1(%rdx), %eax
	movslq	%eax, %rcx
	addsd	16(%rsp,%rcx,8), %xmm0
	testl	%eax, %eax
	jle	.L8
	movslq	%edx, %rax
	subl	$2, %edx
	movsd	.LC3(%rip), %xmm1
	salq	$3, %rax
	salq	$3, %rdx
	leaq	0(%rbp,%rax), %rdi
	leaq	8(%rsp,%rax), %rax
	subq	%rdx, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	addsd	-16(%rdi), %xmm0
	subq	$8, %rdi
	mulsd	%xmm1, %xmm0
	cmpq	%rax, %rdi
	jne	.L11
.L8:
	movq	%r13, %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.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:

#include<stdio.h>
#include<stdlib.h>

int cmpnum(const void * n1, const void * n2)
{
	if(*(double *)n1 >*(double *)n2)
	{
		return -1;
	}
	else if(*(double *)n1 < *(double *)n2)
	{
		return 1;
	}
	else
	{
		return 0;
}
}

int main(void)
{
  int i,n;
  double v[51]={0};
  double sum=0;

  scanf("%d",&n);
  for(i=0;i<n;i++)
    scanf("%lf",&v[i]);

  qsort(v, sizeof(v)/ sizeof(v[0]),sizeof(double),cmpnum);

  sum+=v[n-1];
  for(i=0;i<n-1;i++){
    sum+=v[n-2-i];
    sum/=2;
  }
  printf("%lf",sum);

  return 0;

}

2
1 4
 3
500 300 210
 5
138 138 232 138 138
 2
1 2
 3
500 105 210
 5
138 138 232 218 138
 2
2 4
 3
500 4 210
 5
37 138 232 218 138
 3
500 4 409

2.500000 377.500000 185.000000 1.500000 328.750000 205.000000 3.000000 303.500000 198.687500 353.250000
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>

int cmpnum(const void * n1, const void * n2)
{
	if(*(double *)n1 >*(double *)n2)
	{
		return -1;
	}
	else if(*(double *)n1 < *(double *)n2)
	{
		return 1;
	}
	else
	{
		return 0;
}
}

int main(void)
{
  int i,n;
  double v[51]={0};
  double sum=0;

  scanf("%d",&n);
  for(i=0;i<n;i++)
    scanf("%lf",&v[i]);

  qsort(v, sizeof(v)/ sizeof(v[0]),sizeof(double),cmpnum);

  sum+=v[n-1];
  for(i=0;i<n-1;i++){
    sum+=v[n-2-i];
    sum/=2;
  }
  printf("%lf",sum);

  return 0;

}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmpnum
	.type	cmpnum, @function
cmpnum:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L9
	movl	$-1, %eax
	jmp	.L4
.L9:
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movl	$1, %eax
	jmp	.L4
.L10:
	movl	$0, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpnum, .-cmpnum
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%lf"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-416(%rbp), %rdx
	movl	$0, %eax
	movl	$51, %ecx
	movq	%rdx, %rdi
	rep stosq
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -424(%rbp)
	leaq	-432(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -428(%rbp)
	jmp	.L12
.L13:
	leaq	-416(%rbp), %rdx
	movl	-428(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -428(%rbp)
.L12:
	movl	-432(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jl	.L13
	leaq	-416(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movl	$51, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cltq
	movsd	-416(%rbp,%rax,8), %xmm0
	movsd	-424(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	movl	$0, -428(%rbp)
	jmp	.L14
.L15:
	movl	-432(%rbp), %eax
	subl	$2, %eax
	subl	-428(%rbp), %eax
	cltq
	movsd	-416(%rbp,%rax,8), %xmm0
	movsd	-424(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	movsd	-424(%rbp), %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	addl	$1, -428(%rbp)
.L14:
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -428(%rbp)
	jl	.L15
	movq	-424(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	cmpnum
	.type	cmpnum, @function
cmpnum:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L9
	movl	$-1, %eax
	jmp	.L4
.L9:
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movl	$1, %eax
	jmp	.L4
.L10:
	movl	$0, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpnum, .-cmpnum
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%lf"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-416(%rbp), %rdx
	movl	$0, %eax
	movl	$51, %ecx
	movq	%rdx, %rdi
	rep stosq
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -424(%rbp)
	leaq	-432(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -428(%rbp)
	jmp	.L12
.L13:
	leaq	-416(%rbp), %rdx
	movl	-428(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -428(%rbp)
.L12:
	movl	-432(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jl	.L13
	leaq	-416(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movl	$51, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cltq
	movsd	-416(%rbp,%rax,8), %xmm0
	movsd	-424(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	movl	$0, -428(%rbp)
	jmp	.L14
.L15:
	movl	-432(%rbp), %eax
	subl	$2, %eax
	subl	-428(%rbp), %eax
	cltq
	movsd	-416(%rbp,%rax,8), %xmm0
	movsd	-424(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	movsd	-424(%rbp), %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	addl	$1, -428(%rbp)
.L14:
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -428(%rbp)
	jl	.L15
	movq	-424(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.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:
