Given the following C code and 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;
}

```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}

```
Given the following C 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;
}

```

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.
Optimized Assembly Code:

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 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;
}

```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```