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 n, x[100], y[100];
  int i, k, max = 0;
  double ans;

  scanf("%d", &n);
  
  for(i = 0; i<n; ++i){
    scanf("%d", &x[i]);
  }
  for(i = 0; i<n; ++i){
    scanf("%d", &y[i]);
  }

  for(i = 1; i<4; ++i){
    ans = 0;
    for(k = 0; k<n; ++k){
      ans += pow(fabs(x[k] - y[k]), i);
      if(max < fabs(x[k] - y[k])){
	max = fabs(x[k] - y[k]);
      }
    }
    ans = pow(ans, 1.0/i);

    printf("%lf\n", ans);
  }

  printf("%d\n", max);
  
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC4:
	.string	"%lf\n"
.LC5:
	.string	"%d\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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$872, %rsp
	.cfi_def_cfa_offset 928
	movq	%fs:40, %rax
	movq	%rax, 856(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	testl	%ebx, %ebx
	jle	.L2
	leaq	48(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	testl	%ebx, %ebx
	jle	.L2
	leaq	448(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L4
.L2:
	xorl	%r12d, %r12d
	movl	$1, %r13d
.L5:
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r13d, %xmm1
	testl	%ebx, %ebx
	jle	.L11
	xorl	%r15d, %r15d
	pxor	%xmm3, %xmm3
	leaq	48(%rsp), %r14
	leaq	448(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r14,%r15,4), %eax
	pxor	%xmm2, %xmm2
	subl	0(%rbp,%r15,4), %eax
	movsd	%xmm3, 24(%rsp)
	cvtsi2sdl	%eax, %xmm2
	andpd	.LC2(%rip), %xmm2
	movsd	%xmm1, 16(%rsp)
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 8(%rsp)
	call	pow@PLT
	movsd	24(%rsp), %xmm3
	movsd	8(%rsp), %xmm2
	movsd	16(%rsp), %xmm1
	addsd	%xmm0, %xmm3
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%r12d, %xmm0
	comisd	%xmm0, %xmm2
	jbe	.L6
	cvttsd2sil	%xmm2, %r12d
.L6:
	addq	$1, %r15
	cmpq	%r15, %rbx
	jne	.L8
.L11:
	movsd	.LC3(%rip), %xmm4
	movapd	%xmm3, %xmm0
	addl	$1, %r13d
	divsd	%xmm1, %xmm4
	movapd	%xmm4, %xmm1
	call	pow@PLT
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	cmpl	$4, %r13d
	je	.L9
	movslq	44(%rsp), %rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	movq	856(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$872, %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
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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"
.LC4:
	.string	"%lf\n"
.LC5:
	.string	"%d\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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$872, %rsp
	.cfi_def_cfa_offset 928
	movq	%fs:40, %rax
	movq	%rax, 856(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	testl	%ebx, %ebx
	jle	.L2
	leaq	48(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	testl	%ebx, %ebx
	jle	.L2
	leaq	448(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L4
.L2:
	xorl	%r12d, %r12d
	movl	$1, %r13d
.L5:
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r13d, %xmm1
	testl	%ebx, %ebx
	jle	.L11
	xorl	%r15d, %r15d
	pxor	%xmm3, %xmm3
	leaq	48(%rsp), %r14
	leaq	448(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r14,%r15,4), %eax
	pxor	%xmm2, %xmm2
	subl	0(%rbp,%r15,4), %eax
	movsd	%xmm3, 24(%rsp)
	cvtsi2sdl	%eax, %xmm2
	andpd	.LC2(%rip), %xmm2
	movsd	%xmm1, 16(%rsp)
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 8(%rsp)
	call	pow@PLT
	movsd	24(%rsp), %xmm3
	movsd	8(%rsp), %xmm2
	movsd	16(%rsp), %xmm1
	addsd	%xmm0, %xmm3
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%r12d, %xmm0
	comisd	%xmm0, %xmm2
	jbe	.L6
	cvttsd2sil	%xmm2, %r12d
.L6:
	addq	$1, %r15
	cmpq	%r15, %rbx
	jne	.L8
.L11:
	movsd	.LC3(%rip), %xmm4
	movapd	%xmm3, %xmm0
	addl	$1, %r13d
	divsd	%xmm1, %xmm4
	movapd	%xmm4, %xmm1
	call	pow@PLT
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	cmpl	$4, %r13d
	je	.L9
	movslq	44(%rsp), %rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	movq	856(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$872, %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
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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"
.LC4:
	.string	"%lf\n"
.LC5:
	.string	"%d\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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$872, %rsp
	.cfi_def_cfa_offset 928
	movq	%fs:40, %rax
	movq	%rax, 856(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	testl	%ebx, %ebx
	jle	.L2
	leaq	48(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	testl	%ebx, %ebx
	jle	.L2
	leaq	448(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L4
.L2:
	xorl	%r12d, %r12d
	movl	$1, %r13d
.L5:
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r13d, %xmm1
	testl	%ebx, %ebx
	jle	.L11
	xorl	%r15d, %r15d
	pxor	%xmm3, %xmm3
	leaq	48(%rsp), %r14
	leaq	448(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r14,%r15,4), %eax
	pxor	%xmm2, %xmm2
	subl	0(%rbp,%r15,4), %eax
	movsd	%xmm3, 24(%rsp)
	cvtsi2sdl	%eax, %xmm2
	andpd	.LC2(%rip), %xmm2
	movsd	%xmm1, 16(%rsp)
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 8(%rsp)
	call	pow@PLT
	movsd	24(%rsp), %xmm3
	movsd	8(%rsp), %xmm2
	movsd	16(%rsp), %xmm1
	addsd	%xmm0, %xmm3
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%r12d, %xmm0
	comisd	%xmm0, %xmm2
	jbe	.L6
	cvttsd2sil	%xmm2, %r12d
.L6:
	addq	$1, %r15
	cmpq	%r15, %rbx
	jne	.L8
.L11:
	movsd	.LC3(%rip), %xmm4
	movapd	%xmm3, %xmm0
	addl	$1, %r13d
	divsd	%xmm1, %xmm4
	movapd	%xmm4, %xmm1
	call	pow@PLT
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	cmpl	$4, %r13d
	je	.L9
	movslq	44(%rsp), %rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	movq	856(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$872, %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
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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 n, x[100], y[100];
  int i, k, max = 0;
  double ans;

  scanf("%d", &n);
  
  for(i = 0; i<n; ++i){
    scanf("%d", &x[i]);
  }
  for(i = 0; i<n; ++i){
    scanf("%d", &y[i]);
  }

  for(i = 1; i<4; ++i){
    ans = 0;
    for(k = 0; k<n; ++k){
      ans += pow(fabs(x[k] - y[k]), i);
      if(max < fabs(x[k] - y[k])){
	max = fabs(x[k] - y[k]);
      }
    }
    ans = pow(ans, 1.0/i);

    printf("%lf\n", ans);
  }

  printf("%d\n", max);
  
  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 n, x[100], y[100];
  int i, k, max = 0;
  double ans;

  scanf("%d", &n);
  
  for(i = 0; i<n; ++i){
    scanf("%d", &x[i]);
  }
  for(i = 0; i<n; ++i){
    scanf("%d", &y[i]);
  }

  for(i = 1; i<4; ++i){
    ans = 0;
    for(k = 0; k<n; ++k){
      ans += pow(fabs(x[k] - y[k]), i);
      if(max < fabs(x[k] - y[k])){
	max = fabs(x[k] - y[k]);
      }
    }
    ans = pow(ans, 1.0/i);

    printf("%lf\n", ans);
  }

  printf("%d\n", max);
  
  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:

3
2 2 3
2 0 4
 3
2 2 3
2 -1 4
 3
2 4 5
2 -1 4
 3
3 4 5
2 -1 4
 3
6 4 5
2 -1 4
 3
6 5 5
2 -1 4
 3
6 5 5
2 -1 3
 3
6 5 8
2 -1 3
 3
6 5 8
3 -1 3
 3
6 7 8
3 -1 3

3.000000
2.236068
2.080084
2
 4.000000
3.162278
3.036589
3
 6.000000
5.099020
5.013298
5
 7.000000
5.196152
5.026526
5
 10.000000
6.480741
5.748897
5
 11.000000
7.280110
6.549912
6
 12.000000
7.483315
6.603854
6
 15.000000
8.774964
7.398636
6
 14.000000
8.366600
7.166096
6
 16.000000
9.899495
8.724141
8

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 n, x[100], y[100];
  int i, k, max = 0;
  double ans;

  scanf("%d", &n);
  
  for(i = 0; i<n; ++i){
    scanf("%d", &x[i]);
  }
  for(i = 0; i<n; ++i){
    scanf("%d", &y[i]);
  }

  for(i = 1; i<4; ++i){
    ans = 0;
    for(k = 0; k<n; ++k){
      ans += pow(fabs(x[k] - y[k]), i);
      if(max < fabs(x[k] - y[k])){
	max = fabs(x[k] - y[k]);
      }
    }
    ans = pow(ans, 1.0/i);

    printf("%lf\n", ans);
  }

  printf("%d\n", max);
  
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC4:
	.string	"%lf\n"
.LC5:
	.string	"%d\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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$872, %rsp
	.cfi_def_cfa_offset 928
	movq	%fs:40, %rax
	movq	%rax, 856(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	testl	%ebx, %ebx
	jle	.L2
	leaq	48(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	testl	%ebx, %ebx
	jle	.L2
	leaq	448(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L4
.L2:
	xorl	%r12d, %r12d
	movl	$1, %r13d
.L5:
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r13d, %xmm1
	testl	%ebx, %ebx
	jle	.L11
	xorl	%r15d, %r15d
	pxor	%xmm3, %xmm3
	leaq	48(%rsp), %r14
	leaq	448(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r14,%r15,4), %eax
	pxor	%xmm2, %xmm2
	subl	0(%rbp,%r15,4), %eax
	movsd	%xmm3, 24(%rsp)
	cvtsi2sdl	%eax, %xmm2
	andpd	.LC2(%rip), %xmm2
	movsd	%xmm1, 16(%rsp)
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 8(%rsp)
	call	pow@PLT
	movsd	24(%rsp), %xmm3
	movsd	8(%rsp), %xmm2
	movsd	16(%rsp), %xmm1
	addsd	%xmm0, %xmm3
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%r12d, %xmm0
	comisd	%xmm0, %xmm2
	jbe	.L6
	cvttsd2sil	%xmm2, %r12d
.L6:
	addq	$1, %r15
	cmpq	%r15, %rbx
	jne	.L8
.L11:
	movsd	.LC3(%rip), %xmm4
	movapd	%xmm3, %xmm0
	addl	$1, %r13d
	divsd	%xmm1, %xmm4
	movapd	%xmm4, %xmm1
	call	pow@PLT
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	cmpl	$4, %r13d
	je	.L9
	movslq	44(%rsp), %rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	movq	856(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$872, %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
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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"
.LC4:
	.string	"%lf\n"
.LC5:
	.string	"%d\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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$872, %rsp
	.cfi_def_cfa_offset 928
	movq	%fs:40, %rax
	movq	%rax, 856(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	testl	%ebx, %ebx
	jle	.L2
	leaq	48(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	testl	%ebx, %ebx
	jle	.L2
	leaq	448(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %rbx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L4
.L2:
	xorl	%r12d, %r12d
	movl	$1, %r13d
.L5:
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r13d, %xmm1
	testl	%ebx, %ebx
	jle	.L11
	xorl	%r15d, %r15d
	pxor	%xmm3, %xmm3
	leaq	48(%rsp), %r14
	leaq	448(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r14,%r15,4), %eax
	pxor	%xmm2, %xmm2
	subl	0(%rbp,%r15,4), %eax
	movsd	%xmm3, 24(%rsp)
	cvtsi2sdl	%eax, %xmm2
	andpd	.LC2(%rip), %xmm2
	movsd	%xmm1, 16(%rsp)
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 8(%rsp)
	call	pow@PLT
	movsd	24(%rsp), %xmm3
	movsd	8(%rsp), %xmm2
	movsd	16(%rsp), %xmm1
	addsd	%xmm0, %xmm3
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%r12d, %xmm0
	comisd	%xmm0, %xmm2
	jbe	.L6
	cvttsd2sil	%xmm2, %r12d
.L6:
	addq	$1, %r15
	cmpq	%r15, %rbx
	jne	.L8
.L11:
	movsd	.LC3(%rip), %xmm4
	movapd	%xmm3, %xmm0
	addl	$1, %r13d
	divsd	%xmm1, %xmm4
	movapd	%xmm4, %xmm1
	call	pow@PLT
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	cmpl	$4, %r13d
	je	.L9
	movslq	44(%rsp), %rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	movq	856(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$872, %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
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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:
```