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 <math.h>

int main(void)
{
    int i,n;
        double x,mean,poi[1010]={0};
    
    while(scanf("%d",&n)==1 && n!=0){
        x=0;
        for(i=0;i<n;i++){
            scanf("%lf",&poi[i]);
            x+=poi[i];
        }
        mean=x/n;
        x=0;
        
        for(i=0;i<n;i++){
            x+=pow(poi[i]-mean,2);
        }
        
        mean=sqrt(x/n);
        printf("%f\n",mean);
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC1:
	.string	"%lf"
.LC3:
	.string	"%f\n"
.LC4:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4032, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-8096(%rbp), %rdx
	movl	$0, %eax
	movl	$1010, %ecx
	movq	%rdx, %rdi
	rep stosq
	jmp	.L2
.L8:
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8112(%rbp)
	movl	$0, -8116(%rbp)
	jmp	.L3
.L4:
	leaq	-8096(%rbp), %rdx
	movl	-8116(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-8116(%rbp), %eax
	cltq
	movsd	-8096(%rbp,%rax,8), %xmm0
	movsd	-8112(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8112(%rbp)
	addl	$1, -8116(%rbp)
.L3:
	movl	-8120(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jl	.L4
	movl	-8120(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-8112(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -8104(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8112(%rbp)
	movl	$0, -8116(%rbp)
	jmp	.L5
.L6:
	movl	-8116(%rbp), %eax
	cltq
	movsd	-8096(%rbp,%rax,8), %xmm0
	subsd	-8104(%rbp), %xmm0
	movq	%xmm0, %rax
	movsd	.LC2(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	-8112(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8112(%rbp)
	addl	$1, -8116(%rbp)
.L5:
	movl	-8120(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jl	.L6
	movl	-8120(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-8112(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8104(%rbp)
	movq	-8104(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	-8120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L7
	movl	-8120(%rbp), %eax
	testl	%eax, %eax
	jne	.L8
.L7:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lf"
.LC2:
	.string	"%f\n"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4040, %rsp
	.cfi_def_cfa_offset 8192
	movl	$1010, %ecx
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 8120(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r12
	leaq	28(%rsp), %r14
	movq	%r12, %rdi
	rep stosq
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r14, %rsi
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L12
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L12
	jle	.L30
	movq	%r12, %rbx
	movq	%r12, %r13
	pxor	%xmm2, %xmm2
	xorl	%r15d, %r15d
	movq	$0x000000000, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movsd	%xmm2, (%rsp)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	$1, %r15d
	movsd	(%rsp), %xmm2
	addq	$8, %r13
	addsd	-8(%r13), %xmm2
	cmpl	%r15d, %eax
	jg	.L3
	pxor	%xmm5, %xmm5
	cvtsi2sdl	%eax, %xmm5
	divsd	%xmm5, %xmm2
	testl	%eax, %eax
	jle	.L16
	cmpl	$1, %eax
	je	.L17
	movl	%eax, %edx
	movapd	%xmm2, %xmm4
	pxor	%xmm0, %xmm0
	shrl	%edx
	unpcklpd	%xmm4, %xmm4
	leal	-1(%rdx), %ecx
	leaq	16(%r12), %rdx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$16, %rdx
.L6:
	movapd	(%rbx), %xmm1
	movq	%rdx, %rbx
	subpd	%xmm4, %xmm1
	mulpd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	unpckhpd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	cmpq	%rcx, %rdx
	jne	.L31
	movl	%eax, %edx
	andl	$-2, %edx
	testb	$1, %al
	je	.L4
.L5:
	movslq	%edx, %rax
	movsd	32(%rsp,%rax,8), %xmm1
	subsd	%xmm2, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
.L4:
	divsd	%xmm5, %xmm0
	movsd	8(%rsp), %xmm6
	ucomisd	%xmm0, %xmm6
	ja	.L25
	sqrtsd	%xmm0, %xmm0
.L11:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	movq	8120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$8136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	pxor	%xmm5, %xmm5
	pxor	%xmm0, %xmm0
	movq	$0x000000000, 8(%rsp)
	cvtsi2sdl	%eax, %xmm5
	jmp	.L4
.L17:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	jmp	.L5
.L25:
	call	sqrt@PLT
	jmp	.L11
.L16:
	pxor	%xmm0, %xmm0
	jmp	.L4
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lf"
.LC2:
	.string	"%f\n"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4040, %rsp
	.cfi_def_cfa_offset 8192
	movl	$1010, %ecx
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 8120(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r12
	leaq	28(%rsp), %r14
	movq	%r12, %rdi
	rep stosq
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r14, %rsi
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L12
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L12
	jle	.L30
	movq	%r12, %rbx
	movq	%r12, %r13
	pxor	%xmm2, %xmm2
	xorl	%r15d, %r15d
	movq	$0x000000000, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movsd	%xmm2, (%rsp)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	$1, %r15d
	movsd	(%rsp), %xmm2
	addq	$8, %r13
	addsd	-8(%r13), %xmm2
	cmpl	%r15d, %eax
	jg	.L3
	pxor	%xmm5, %xmm5
	cvtsi2sdl	%eax, %xmm5
	divsd	%xmm5, %xmm2
	testl	%eax, %eax
	jle	.L16
	cmpl	$1, %eax
	je	.L17
	movl	%eax, %edx
	movapd	%xmm2, %xmm4
	pxor	%xmm0, %xmm0
	shrl	%edx
	unpcklpd	%xmm4, %xmm4
	leal	-1(%rdx), %ecx
	leaq	16(%r12), %rdx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$16, %rdx
.L6:
	movapd	(%rbx), %xmm1
	movq	%rdx, %rbx
	subpd	%xmm4, %xmm1
	mulpd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	unpckhpd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	cmpq	%rcx, %rdx
	jne	.L31
	movl	%eax, %edx
	andl	$-2, %edx
	testb	$1, %al
	je	.L4
.L5:
	movslq	%edx, %rax
	movsd	32(%rsp,%rax,8), %xmm1
	subsd	%xmm2, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
.L4:
	divsd	%xmm5, %xmm0
	movsd	8(%rsp), %xmm6
	ucomisd	%xmm0, %xmm6
	ja	.L25
	sqrtsd	%xmm0, %xmm0
.L11:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	movq	8120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$8136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	pxor	%xmm5, %xmm5
	pxor	%xmm0, %xmm0
	movq	$0x000000000, 8(%rsp)
	cvtsi2sdl	%eax, %xmm5
	jmp	.L4
.L17:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	jmp	.L5
.L25:
	call	sqrt@PLT
	jmp	.L11
.L16:
	pxor	%xmm0, %xmm0
	jmp	.L4
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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 <math.h>

int main(void)
{
    int i,n;
        double x,mean,poi[1010]={0};
    
    while(scanf("%d",&n)==1 && n!=0){
        x=0;
        for(i=0;i<n;i++){
            scanf("%lf",&poi[i]);
            x+=poi[i];
        }
        mean=x/n;
        x=0;
        
        for(i=0;i<n;i++){
            x+=pow(poi[i]-mean,2);
        }
        
        mean=sqrt(x/n);
        printf("%f\n",mean);
    }
    return 0;
}

5
70 80 100 107 20
3
80 80 80
0
 5
70 80 100 107 20
0
80 80 80
0
 5
70 80 101 107 20
0
80 80 80
0
 5
70 80 101 123 20
0
80 80 80
0
 5
70 80 111 123 20
0
80 80 80
0
 5
70 80 100 90 20
3
74 80 80
0
 5
70 80 100 99 20
3
80 80 80
0
 5
70 80 100 107 1
0
80 80 80
0
 5
70 75 111 123 20
0
80 80 80
0
 5
70 80 100 107 0
0
54 80 80
0

30.734996
0.000000
 30.734996
 30.897249
 34.591328
 36.074368
 27.856777
2.828427
 29.219172
0.000000
 37.728504
 36.151902
 38.103018

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 <math.h>

int main(void)
{
    int i,n;
        double x,mean,poi[1010]={0};
    
    while(scanf("%d",&n)==1 && n!=0){
        x=0;
        for(i=0;i<n;i++){
            scanf("%lf",&poi[i]);
            x+=poi[i];
        }
        mean=x/n;
        x=0;
        
        for(i=0;i<n;i++){
            x+=pow(poi[i]-mean,2);
        }
        
        mean=sqrt(x/n);
        printf("%f\n",mean);
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC1:
	.string	"%lf"
.LC3:
	.string	"%f\n"
.LC4:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4032, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-8096(%rbp), %rdx
	movl	$0, %eax
	movl	$1010, %ecx
	movq	%rdx, %rdi
	rep stosq
	jmp	.L2
.L8:
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8112(%rbp)
	movl	$0, -8116(%rbp)
	jmp	.L3
.L4:
	leaq	-8096(%rbp), %rdx
	movl	-8116(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-8116(%rbp), %eax
	cltq
	movsd	-8096(%rbp,%rax,8), %xmm0
	movsd	-8112(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8112(%rbp)
	addl	$1, -8116(%rbp)
.L3:
	movl	-8120(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jl	.L4
	movl	-8120(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-8112(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -8104(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8112(%rbp)
	movl	$0, -8116(%rbp)
	jmp	.L5
.L6:
	movl	-8116(%rbp), %eax
	cltq
	movsd	-8096(%rbp,%rax,8), %xmm0
	subsd	-8104(%rbp), %xmm0
	movq	%xmm0, %rax
	movsd	.LC2(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	-8112(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8112(%rbp)
	addl	$1, -8116(%rbp)
.L5:
	movl	-8120(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jl	.L6
	movl	-8120(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-8112(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8104(%rbp)
	movq	-8104(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	-8120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L7
	movl	-8120(%rbp), %eax
	testl	%eax, %eax
	jne	.L8
.L7:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.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
	.section	.rodata
.LC1:
	.string	"%lf"
.LC3:
	.string	"%f\n"
.LC4:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4032, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-8096(%rbp), %rdx
	movl	$0, %eax
	movl	$1010, %ecx
	movq	%rdx, %rdi
	rep stosq
	jmp	.L2
.L8:
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8112(%rbp)
	movl	$0, -8116(%rbp)
	jmp	.L3
.L4:
	leaq	-8096(%rbp), %rdx
	movl	-8116(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-8116(%rbp), %eax
	cltq
	movsd	-8096(%rbp,%rax,8), %xmm0
	movsd	-8112(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8112(%rbp)
	addl	$1, -8116(%rbp)
.L3:
	movl	-8120(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jl	.L4
	movl	-8120(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-8112(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -8104(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8112(%rbp)
	movl	$0, -8116(%rbp)
	jmp	.L5
.L6:
	movl	-8116(%rbp), %eax
	cltq
	movsd	-8096(%rbp,%rax,8), %xmm0
	subsd	-8104(%rbp), %xmm0
	movq	%xmm0, %rax
	movsd	.LC2(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	-8112(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8112(%rbp)
	addl	$1, -8116(%rbp)
.L5:
	movl	-8120(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jl	.L6
	movl	-8120(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-8112(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8104(%rbp)
	movq	-8104(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	-8120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L7
	movl	-8120(%rbp), %eax
	testl	%eax, %eax
	jne	.L8
.L7:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.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:
