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>

int	main(void)
{
  	int	N;
  	int A[101];
  	int	i;
  	double	B[101];
  	double	sum;
  
  	scanf("%d\n", &N);
  	for(i=1; i<=N; i++)
    {
      	scanf("%d", &A[i]);
      	B[i] = (double)1.0 / A[i];
    }
  
  	sum = 0.0;
  	for(i=1; i<=N; i++)
    {
      	sum += B[i];
    }
  
  	printf("%f", 1.0 / sum);
  	return (0);
}
  
  	```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
.LC4:
	.string	"%f"
	.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	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1244(%rbp)
	jmp	.L2
.L3:
	leaq	-1232(%rbp), %rdx
	movl	-1244(%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
	movl	-1244(%rbp), %eax
	cltq
	movl	-1232(%rbp,%rax,4), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	divsd	%xmm1, %xmm0
	movl	-1244(%rbp), %eax
	cltq
	movsd	%xmm0, -816(%rbp,%rax,8)
	addl	$1, -1244(%rbp)
.L2:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1244(%rbp)
	jle	.L3
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -1240(%rbp)
	movl	$1, -1244(%rbp)
	jmp	.L4
.L5:
	movl	-1244(%rbp), %eax
	cltq
	movsd	-816(%rbp,%rax,8), %xmm0
	movsd	-1240(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -1240(%rbp)
	addl	$1, -1244(%rbp)
.L4:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1244(%rbp)
	jle	.L5
	movsd	.LC2(%rip), %xmm0
	divsd	-1240(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
.LC4:
	.string	"%f"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1248, %rsp
	.cfi_def_cfa_offset 1296
	movq	%fs:40, %rax
	movq	%rax, 1240(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsd	.LC3(%rip), %xmm3
	movl	12(%rsp), %eax
	movq	%xmm3, %r14
	testl	%eax, %eax
	jle	.L2
	movsd	.LC3(%rip), %xmm2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC2(%rip), %r13
	leaq	432(%rsp), %r12
	movq	%xmm2, %r14
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	movq	%r14, %xmm0
	movl	12(%rsp), %eax
	cvtsi2sdl	-4(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, (%r12,%rbx,8)
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jge	.L3
	testl	%eax, %eax
	jle	.L2
	movl	%eax, %esi
	cmpl	$1, %eax
	je	.L10
	movl	%eax, %ecx
	leaq	440(%rsp), %rdx
	pxor	%xmm1, %xmm1
	shrl	%ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	456(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movsd	(%rdx), %xmm0
	addq	$16, %rdx
	addsd	%xmm0, %xmm1
	movsd	-8(%rdx), %xmm0
	addsd	%xmm0, %xmm1
	cmpq	%rcx, %rdx
	jne	.L5
	andl	$-2, %eax
	movl	%eax, %edx
	leal	1(%rax), %eax
	cmpl	%edx, %esi
	je	.L7
.L4:
	cltq
	addsd	432(%rsp,%rax,8), %xmm1
.L7:
	movq	%r14, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	divsd	%xmm1, %xmm0
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	1240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$1248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	jmp	.L7
.L10:
	pxor	%xmm1, %xmm1
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
.LC4:
	.string	"%f"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1248, %rsp
	.cfi_def_cfa_offset 1296
	movq	%fs:40, %rax
	movq	%rax, 1240(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsd	.LC3(%rip), %xmm3
	movl	12(%rsp), %eax
	movq	%xmm3, %r14
	testl	%eax, %eax
	jle	.L2
	movsd	.LC3(%rip), %xmm2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC2(%rip), %r13
	leaq	432(%rsp), %r12
	movq	%xmm2, %r14
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	movq	%r14, %xmm0
	movl	12(%rsp), %eax
	cvtsi2sdl	-4(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, (%r12,%rbx,8)
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jge	.L3
	testl	%eax, %eax
	jle	.L2
	movl	%eax, %esi
	cmpl	$1, %eax
	je	.L10
	movl	%eax, %ecx
	leaq	440(%rsp), %rdx
	pxor	%xmm1, %xmm1
	shrl	%ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	456(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movsd	(%rdx), %xmm0
	addq	$16, %rdx
	addsd	%xmm0, %xmm1
	movsd	-8(%rdx), %xmm0
	addsd	%xmm0, %xmm1
	cmpq	%rcx, %rdx
	jne	.L5
	andl	$-2, %eax
	movl	%eax, %edx
	leal	1(%rax), %eax
	cmpl	%edx, %esi
	je	.L7
.L4:
	cltq
	addsd	432(%rsp,%rax,8), %xmm1
.L7:
	movq	%r14, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	divsd	%xmm1, %xmm0
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	1240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$1248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	jmp	.L7
.L10:
	pxor	%xmm1, %xmm1
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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:

#include <stdio.h>

int	main(void)
{
  	int	N;
  	int A[101];
  	int	i;
  	double	B[101];
  	double	sum;
  
  	scanf("%d\n", &N);
  	for(i=1; i<=N; i++)
    {
      	scanf("%d", &A[i]);
      	B[i] = (double)1.0 / A[i];
    }
  
  	sum = 0.0;
  	for(i=1; i<=N; i++)
    {
      	sum += B[i];
    }
  
  	printf("%f", 1.0 / sum);
  	return (0);
}
  
  	
2
14 30
 1
1001
 3
283 200 200
 2
14 38
 1
1100
 3
99 200 200
 2
17 38
 1
1110
 3
77 200 200
 2
17 24

9.545455 1001.000000 73.890339 10.230769 1100.000000 49.748744 11.745455 1110.000000 43.502825 9.951220
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>

int	main(void)
{
  	int	N;
  	int A[101];
  	int	i;
  	double	B[101];
  	double	sum;
  
  	scanf("%d\n", &N);
  	for(i=1; i<=N; i++)
    {
      	scanf("%d", &A[i]);
      	B[i] = (double)1.0 / A[i];
    }
  
  	sum = 0.0;
  	for(i=1; i<=N; i++)
    {
      	sum += B[i];
    }
  
  	printf("%f", 1.0 / sum);
  	return (0);
}
  
  	```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
.LC4:
	.string	"%f"
	.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	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1244(%rbp)
	jmp	.L2
.L3:
	leaq	-1232(%rbp), %rdx
	movl	-1244(%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
	movl	-1244(%rbp), %eax
	cltq
	movl	-1232(%rbp,%rax,4), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	divsd	%xmm1, %xmm0
	movl	-1244(%rbp), %eax
	cltq
	movsd	%xmm0, -816(%rbp,%rax,8)
	addl	$1, -1244(%rbp)
.L2:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1244(%rbp)
	jle	.L3
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -1240(%rbp)
	movl	$1, -1244(%rbp)
	jmp	.L4
.L5:
	movl	-1244(%rbp), %eax
	cltq
	movsd	-816(%rbp,%rax,8), %xmm0
	movsd	-1240(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -1240(%rbp)
	addl	$1, -1244(%rbp)
.L4:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1244(%rbp)
	jle	.L5
	movsd	.LC2(%rip), %xmm0
	divsd	-1240(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
.LC4:
	.string	"%f"
	.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	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1244(%rbp)
	jmp	.L2
.L3:
	leaq	-1232(%rbp), %rdx
	movl	-1244(%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
	movl	-1244(%rbp), %eax
	cltq
	movl	-1232(%rbp,%rax,4), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	divsd	%xmm1, %xmm0
	movl	-1244(%rbp), %eax
	cltq
	movsd	%xmm0, -816(%rbp,%rax,8)
	addl	$1, -1244(%rbp)
.L2:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1244(%rbp)
	jle	.L3
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -1240(%rbp)
	movl	$1, -1244(%rbp)
	jmp	.L4
.L5:
	movl	-1244(%rbp), %eax
	cltq
	movsd	-816(%rbp,%rax,8), %xmm0
	movsd	-1240(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -1240(%rbp)
	addl	$1, -1244(%rbp)
.L4:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1244(%rbp)
	jle	.L5
	movsd	.LC2(%rip), %xmm0
	divsd	-1240(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.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:
