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 n, x[1000], i;
    
    while(1){
        scanf("%d\n", &n);
        
        if(n == 0){
            break;
        }
        
        for(i=0; i<n; i++){
            scanf("%d", &x[i]);
        }
        
        double m=0, a=0;
        
        for(i=0; i<n; i++){
            m += x[i];
        }
        
        m = m/n;
        
        for(i=0; i<n; i++){
            a += pow(x[i]-m, 2.0);
        }
        
        a = a/n;
        
        printf("%.8f\n", sqrt(a));
        }
    
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
.LC4:
	.string	"%.8f\n"
	.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	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L10:
	leaq	-4040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4040(%rbp), %eax
	testl	%eax, %eax
	je	.L14
	movl	$0, -4036(%rbp)
	jmp	.L4
.L5:
	leaq	-4016(%rbp), %rdx
	movl	-4036(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4036(%rbp)
.L4:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4036(%rbp)
	jl	.L5
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -4032(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -4024(%rbp)
	movl	$0, -4036(%rbp)
	jmp	.L6
.L7:
	movl	-4036(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	-4032(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -4032(%rbp)
	addl	$1, -4036(%rbp)
.L6:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4036(%rbp)
	jl	.L7
	movl	-4040(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-4032(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -4032(%rbp)
	movl	$0, -4036(%rbp)
	jmp	.L8
.L9:
	movl	-4036(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-4032(%rbp), %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	-4024(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -4024(%rbp)
	addl	$1, -4036(%rbp)
.L8:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4036(%rbp)
	jl	.L9
	movl	-4040(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-4024(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -4024(%rbp)
	movq	-4024(%rbp), %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	jmp	.L10
.L14:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
.LC3:
	.string	"%.8f\n"
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC2(%rip), %rbx
	subq	$4040, %rsp
	.cfi_def_cfa_offset 4096
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	jle	.L3
	leaq	16(%rsp), %r13
	xorl	%r14d, %r14d
	movq	%r13, %r15
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %r15
	cmpl	%r14d, %ecx
	jg	.L4
	testl	%ecx, %ecx
	jle	.L3
	leal	-1(%rcx), %eax
	leaq	4(%r13), %rdx
	pxor	%xmm4, %xmm4
	leaq	(%rdx,%rax,4), %rsi
	movapd	%xmm4, %xmm0
	movq	%r13, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	pxor	%xmm1, %xmm1
	addq	$4, %rax
	cvtsi2sdl	-4(%rax), %xmm1
	addsd	%xmm1, %xmm0
	cmpq	%rax, %rsi
	jne	.L5
	pxor	%xmm3, %xmm3
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%ecx, %xmm3
	divsd	%xmm3, %xmm0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$4, %rdx
.L7:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	0(%r13), %xmm1
	movq	%rdx, %r13
	subsd	%xmm0, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm2
	cmpq	%rdx, %rsi
	jne	.L23
.L12:
	divsd	%xmm3, %xmm2
	ucomisd	%xmm2, %xmm4
	movapd	%xmm2, %xmm0
	ja	.L19
	sqrtsd	%xmm0, %xmm0
.L10:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$4040, %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
.L3:
	.cfi_restore_state
	pxor	%xmm3, %xmm3
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%ecx, %xmm3
	movapd	%xmm4, %xmm2
	jmp	.L12
.L19:
	call	sqrt@PLT
	jmp	.L10
.L24:
	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	"%d\n"
.LC2:
	.string	"%d"
.LC3:
	.string	"%.8f\n"
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC2(%rip), %rbx
	subq	$4040, %rsp
	.cfi_def_cfa_offset 4096
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	jle	.L3
	leaq	16(%rsp), %r13
	xorl	%r14d, %r14d
	movq	%r13, %r15
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %r15
	cmpl	%r14d, %ecx
	jg	.L4
	testl	%ecx, %ecx
	jle	.L3
	leal	-1(%rcx), %eax
	leaq	4(%r13), %rdx
	pxor	%xmm4, %xmm4
	leaq	(%rdx,%rax,4), %rsi
	movapd	%xmm4, %xmm0
	movq	%r13, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	pxor	%xmm1, %xmm1
	addq	$4, %rax
	cvtsi2sdl	-4(%rax), %xmm1
	addsd	%xmm1, %xmm0
	cmpq	%rax, %rsi
	jne	.L5
	pxor	%xmm3, %xmm3
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%ecx, %xmm3
	divsd	%xmm3, %xmm0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$4, %rdx
.L7:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	0(%r13), %xmm1
	movq	%rdx, %r13
	subsd	%xmm0, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm2
	cmpq	%rdx, %rsi
	jne	.L23
.L12:
	divsd	%xmm3, %xmm2
	ucomisd	%xmm2, %xmm4
	movapd	%xmm2, %xmm0
	ja	.L19
	sqrtsd	%xmm0, %xmm0
.L10:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$4040, %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
.L3:
	.cfi_restore_state
	pxor	%xmm3, %xmm3
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%ecx, %xmm3
	movapd	%xmm4, %xmm2
	jmp	.L12
.L19:
	call	sqrt@PLT
	jmp	.L10
.L24:
	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 n, x[1000], i;
    
    while(1){
        scanf("%d\n", &n);
        
        if(n == 0){
            break;
        }
        
        for(i=0; i<n; i++){
            scanf("%d", &x[i]);
        }
        
        double m=0, a=0;
        
        for(i=0; i<n; i++){
            m += x[i];
        }
        
        m = m/n;
        
        for(i=0; i<n; i++){
            a += pow(x[i]-m, 2.0);
        }
        
        a = a/n;
        
        printf("%.8f\n", sqrt(a));
        }
    
    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.73499634
0.00000000
 30.73499634
 30.89724907
 34.59132839
 36.07436763
 27.85677655
2.82842712
 29.21917179
0.00000000
 37.72850381
 36.15190175
 38.10301825

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 n, x[1000], i;
    
    while(1){
        scanf("%d\n", &n);
        
        if(n == 0){
            break;
        }
        
        for(i=0; i<n; i++){
            scanf("%d", &x[i]);
        }
        
        double m=0, a=0;
        
        for(i=0; i<n; i++){
            m += x[i];
        }
        
        m = m/n;
        
        for(i=0; i<n; i++){
            a += pow(x[i]-m, 2.0);
        }
        
        a = a/n;
        
        printf("%.8f\n", sqrt(a));
        }
    
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
.LC4:
	.string	"%.8f\n"
	.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	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L10:
	leaq	-4040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4040(%rbp), %eax
	testl	%eax, %eax
	je	.L14
	movl	$0, -4036(%rbp)
	jmp	.L4
.L5:
	leaq	-4016(%rbp), %rdx
	movl	-4036(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4036(%rbp)
.L4:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4036(%rbp)
	jl	.L5
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -4032(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -4024(%rbp)
	movl	$0, -4036(%rbp)
	jmp	.L6
.L7:
	movl	-4036(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	-4032(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -4032(%rbp)
	addl	$1, -4036(%rbp)
.L6:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4036(%rbp)
	jl	.L7
	movl	-4040(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-4032(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -4032(%rbp)
	movl	$0, -4036(%rbp)
	jmp	.L8
.L9:
	movl	-4036(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-4032(%rbp), %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	-4024(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -4024(%rbp)
	addl	$1, -4036(%rbp)
.L8:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4036(%rbp)
	jl	.L9
	movl	-4040(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-4024(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -4024(%rbp)
	movq	-4024(%rbp), %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	jmp	.L10
.L14:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
.LC4:
	.string	"%.8f\n"
	.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	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L10:
	leaq	-4040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4040(%rbp), %eax
	testl	%eax, %eax
	je	.L14
	movl	$0, -4036(%rbp)
	jmp	.L4
.L5:
	leaq	-4016(%rbp), %rdx
	movl	-4036(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4036(%rbp)
.L4:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4036(%rbp)
	jl	.L5
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -4032(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -4024(%rbp)
	movl	$0, -4036(%rbp)
	jmp	.L6
.L7:
	movl	-4036(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	-4032(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -4032(%rbp)
	addl	$1, -4036(%rbp)
.L6:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4036(%rbp)
	jl	.L7
	movl	-4040(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-4032(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -4032(%rbp)
	movl	$0, -4036(%rbp)
	jmp	.L8
.L9:
	movl	-4036(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-4032(%rbp), %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	-4024(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -4024(%rbp)
	addl	$1, -4036(%rbp)
.L8:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4036(%rbp)
	jl	.L9
	movl	-4040(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-4024(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -4024(%rbp)
	movq	-4024(%rbp), %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	jmp	.L10
.L14:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
