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()
{
 int j,s[1001],sum;
 double n,m,a,shiguma,kake;

for(;;){
        scanf("%lf",&n);
        if(n==0)break;
        sum=0;
        shiguma=0;
        for(j=0;j<n;j++){
                         
                         scanf("%d",&s[j]);
                         sum+=s[j];
                         }
        m=sum/n;
        for(j=0;j<n;j++){
                         
                         shiguma+=pow(s[j]-m,2);
                         }
        a=sqrt(shiguma/n);
        printf("%lf\n",a);
                }
 return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lf"
.LC2:
	.string	"%d"
.LC3:
	.string	"%lf\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	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4040, %rsp
	.cfi_def_cfa_offset 4096
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %r13
	leaq	16(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L13:
	xorl	%eax, %eax
	movq	%r13, %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movsd	8(%rsp), %xmm2
	pxor	%xmm4, %xmm4
	ucomisd	%xmm4, %xmm2
	jp	.L17
	je	.L2
.L17:
	pxor	%xmm5, %xmm5
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%rbx, %r15
	comisd	%xmm5, %xmm2
	jbe	.L24
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	addl	(%r15), %r14d
	addq	$4, %r15
	cvtsi2sdl	%r12d, %xmm0
	movsd	8(%rsp), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L6
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r14d, %xmm3
.L4:
	pxor	%xmm6, %xmm6
	movl	$1, %eax
	pxor	%xmm0, %xmm0
	divsd	%xmm2, %xmm3
	comisd	%xmm6, %xmm2
	jbe	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-4(%rbx,%rax,4), %xmm1
	subsd	%xmm3, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	addq	$1, %rax
	comisd	%xmm1, %xmm2
	ja	.L9
.L7:
	divsd	%xmm2, %xmm0
	pxor	%xmm7, %xmm7
	ucomisd	%xmm0, %xmm7
	ja	.L25
	sqrtsd	%xmm0, %xmm0
.L12:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	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
.L24:
	.cfi_restore_state
	pxor	%xmm3, %xmm3
	jmp	.L4
.L25:
	call	sqrt@PLT
	jmp	.L12
.L28:
	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	"%lf"
.LC2:
	.string	"%d"
.LC3:
	.string	"%lf\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	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4040, %rsp
	.cfi_def_cfa_offset 4096
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %r13
	leaq	16(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L13:
	xorl	%eax, %eax
	movq	%r13, %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movsd	8(%rsp), %xmm2
	pxor	%xmm4, %xmm4
	ucomisd	%xmm4, %xmm2
	jp	.L17
	je	.L2
.L17:
	pxor	%xmm5, %xmm5
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%rbx, %r15
	comisd	%xmm5, %xmm2
	jbe	.L24
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	addl	(%r15), %r14d
	addq	$4, %r15
	cvtsi2sdl	%r12d, %xmm0
	movsd	8(%rsp), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L6
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r14d, %xmm3
.L4:
	pxor	%xmm6, %xmm6
	movl	$1, %eax
	pxor	%xmm0, %xmm0
	divsd	%xmm2, %xmm3
	comisd	%xmm6, %xmm2
	jbe	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-4(%rbx,%rax,4), %xmm1
	subsd	%xmm3, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	addq	$1, %rax
	comisd	%xmm1, %xmm2
	ja	.L9
.L7:
	divsd	%xmm2, %xmm0
	pxor	%xmm7, %xmm7
	ucomisd	%xmm0, %xmm7
	ja	.L25
	sqrtsd	%xmm0, %xmm0
.L12:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	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
.L24:
	.cfi_restore_state
	pxor	%xmm3, %xmm3
	jmp	.L4
.L25:
	call	sqrt@PLT
	jmp	.L12
.L28:
	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	"%lf"
.LC2:
	.string	"%d"
.LC3:
	.string	"%lf\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	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4040, %rsp
	.cfi_def_cfa_offset 4096
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %r13
	leaq	16(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L13:
	xorl	%eax, %eax
	movq	%r13, %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movsd	8(%rsp), %xmm2
	pxor	%xmm4, %xmm4
	ucomisd	%xmm4, %xmm2
	jp	.L17
	je	.L2
.L17:
	pxor	%xmm5, %xmm5
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%rbx, %r15
	comisd	%xmm5, %xmm2
	jbe	.L24
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	addl	(%r15), %r14d
	addq	$4, %r15
	cvtsi2sdl	%r12d, %xmm0
	movsd	8(%rsp), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L6
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r14d, %xmm3
.L4:
	pxor	%xmm6, %xmm6
	movl	$1, %eax
	pxor	%xmm0, %xmm0
	divsd	%xmm2, %xmm3
	comisd	%xmm6, %xmm2
	jbe	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-4(%rbx,%rax,4), %xmm1
	subsd	%xmm3, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	addq	$1, %rax
	comisd	%xmm1, %xmm2
	ja	.L9
.L7:
	divsd	%xmm2, %xmm0
	pxor	%xmm7, %xmm7
	ucomisd	%xmm0, %xmm7
	ja	.L25
	sqrtsd	%xmm0, %xmm0
.L12:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	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
.L24:
	.cfi_restore_state
	pxor	%xmm3, %xmm3
	jmp	.L4
.L25:
	call	sqrt@PLT
	jmp	.L12
.L28:
	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()
{
 int j,s[1001],sum;
 double n,m,a,shiguma,kake;

for(;;){
        scanf("%lf",&n);
        if(n==0)break;
        sum=0;
        shiguma=0;
        for(j=0;j<n;j++){
                         
                         scanf("%d",&s[j]);
                         sum+=s[j];
                         }
        m=sum/n;
        for(j=0;j<n;j++){
                         
                         shiguma+=pow(s[j]-m,2);
                         }
        a=sqrt(shiguma/n);
        printf("%lf\n",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()
{
 int j,s[1001],sum;
 double n,m,a,shiguma,kake;

for(;;){
        scanf("%lf",&n);
        if(n==0)break;
        sum=0;
        shiguma=0;
        for(j=0;j<n;j++){
                         
                         scanf("%d",&s[j]);
                         sum+=s[j];
                         }
        m=sum/n;
        for(j=0;j<n;j++){
                         
                         shiguma+=pow(s[j]-m,2);
                         }
        a=sqrt(shiguma/n);
        printf("%lf\n",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.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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

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

int main()
{
 int j,s[1001],sum;
 double n,m,a,shiguma,kake;

for(;;){
        scanf("%lf",&n);
        if(n==0)break;
        sum=0;
        shiguma=0;
        for(j=0;j<n;j++){
                         
                         scanf("%d",&s[j]);
                         sum+=s[j];
                         }
        m=sum/n;
        for(j=0;j<n;j++){
                         
                         shiguma+=pow(s[j]-m,2);
                         }
        a=sqrt(shiguma/n);
        printf("%lf\n",a);
                }
 return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lf"
.LC2:
	.string	"%d"
.LC3:
	.string	"%lf\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	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4040, %rsp
	.cfi_def_cfa_offset 4096
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %r13
	leaq	16(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L13:
	xorl	%eax, %eax
	movq	%r13, %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movsd	8(%rsp), %xmm2
	pxor	%xmm4, %xmm4
	ucomisd	%xmm4, %xmm2
	jp	.L17
	je	.L2
.L17:
	pxor	%xmm5, %xmm5
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%rbx, %r15
	comisd	%xmm5, %xmm2
	jbe	.L24
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	addl	(%r15), %r14d
	addq	$4, %r15
	cvtsi2sdl	%r12d, %xmm0
	movsd	8(%rsp), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L6
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r14d, %xmm3
.L4:
	pxor	%xmm6, %xmm6
	movl	$1, %eax
	pxor	%xmm0, %xmm0
	divsd	%xmm2, %xmm3
	comisd	%xmm6, %xmm2
	jbe	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-4(%rbx,%rax,4), %xmm1
	subsd	%xmm3, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	addq	$1, %rax
	comisd	%xmm1, %xmm2
	ja	.L9
.L7:
	divsd	%xmm2, %xmm0
	pxor	%xmm7, %xmm7
	ucomisd	%xmm0, %xmm7
	ja	.L25
	sqrtsd	%xmm0, %xmm0
.L12:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	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
.L24:
	.cfi_restore_state
	pxor	%xmm3, %xmm3
	jmp	.L4
.L25:
	call	sqrt@PLT
	jmp	.L12
.L28:
	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	"%lf"
.LC2:
	.string	"%d"
.LC3:
	.string	"%lf\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	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4040, %rsp
	.cfi_def_cfa_offset 4096
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %r13
	leaq	16(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L13:
	xorl	%eax, %eax
	movq	%r13, %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movsd	8(%rsp), %xmm2
	pxor	%xmm4, %xmm4
	ucomisd	%xmm4, %xmm2
	jp	.L17
	je	.L2
.L17:
	pxor	%xmm5, %xmm5
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%rbx, %r15
	comisd	%xmm5, %xmm2
	jbe	.L24
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	addl	(%r15), %r14d
	addq	$4, %r15
	cvtsi2sdl	%r12d, %xmm0
	movsd	8(%rsp), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L6
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r14d, %xmm3
.L4:
	pxor	%xmm6, %xmm6
	movl	$1, %eax
	pxor	%xmm0, %xmm0
	divsd	%xmm2, %xmm3
	comisd	%xmm6, %xmm2
	jbe	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-4(%rbx,%rax,4), %xmm1
	subsd	%xmm3, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	addq	$1, %rax
	comisd	%xmm1, %xmm2
	ja	.L9
.L7:
	divsd	%xmm2, %xmm0
	pxor	%xmm7, %xmm7
	ucomisd	%xmm0, %xmm7
	ja	.L25
	sqrtsd	%xmm0, %xmm0
.L12:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	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
.L24:
	.cfi_restore_state
	pxor	%xmm3, %xmm3
	jmp	.L4
.L25:
	call	sqrt@PLT
	jmp	.L12
.L28:
	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:
```