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 F[45];
void fib(int n){
  //if(n==0 || n==1)return 1;
  //return fib(n-1)+fib(n-2);
int i;
F[0]=1;
F[1]=1;
for(i=2;i<n+1;i++){
  F[i]=F[i-2]+F[i-1];
}
}
int main(){
  int n;
  scanf("%d",&n);
  fib(n);
  printf("%d\n",F[n]);
  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	F
	.bss
	.align 32
	.type	F, @object
	.size	F, 180
F:
	.zero	180
	.text
	.globl	fib
	.type	fib, @function
fib:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, F(%rip)
	movl	$1, 4+F(%rip)
	movl	$2, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L2:
	movl	-20(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L3
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fib, .-fib
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	fib
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	fib
	.type	fib, @function
fib:
.LFB23:
	.cfi_startproc
	endbr64
	movq	.LC0(%rip), %rax
	movl	%edi, %esi
	movq	%rax, F(%rip)
	cmpl	$1, %edi
	jle	.L1
	cmpl	$3, %edi
	jle	.L6
	leal	-4(%rdi), %eax
	movl	$1, %edx
	movl	$1, %edi
	shrl	%eax
	leaq	-8+F(%rip), %r9
	leal	3(%rax), %r8d
	movl	$4, %eax
	addq	%r8, %r8
.L4:
	addl	%edi, %edx
	movl	%eax, %ecx
	addl	%edx, %edi
	movd	%edx, %xmm0
	movd	%edi, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%r9,%rax,4)
	addq	$2, %rax
	cmpq	%r8, %rax
	jne	.L4
.L3:
	movslq	%ecx, %rax
	leaq	F(%rip), %rdx
	leaq	(%rdx,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movl	-8(%rax), %edx
	addl	$1, %ecx
	addl	-4(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpl	%ecx, %esi
	jge	.L5
.L1:
	ret
.L6:
	movl	$2, %ecx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	fib, .-fib
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	.LC0(%rip), %rax
	movslq	4(%rsp), %rsi
	leaq	F(%rip), %rdi
	movq	%rax, F(%rip)
	cmpl	$1, %esi
	jle	.L11
	cmpl	$3, %esi
	jle	.L16
	leal	-4(%rsi), %eax
	movl	$1, %edi
	movl	$1, %edx
	shrl	%eax
	leaq	-8+F(%rip), %r9
	leal	3(%rax), %r8d
	movl	$4, %eax
	addq	%r8, %r8
.L13:
	addl	%edi, %edx
	movl	%eax, %ecx
	addl	%edx, %edi
	movd	%edx, %xmm0
	movd	%edi, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%r9,%rax,4)
	addq	$2, %rax
	cmpq	%r8, %rax
	jne	.L13
.L12:
	movslq	%ecx, %rax
	leaq	F(%rip), %rdi
	leaq	(%rdi,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L14:
	movl	-8(%rax), %edx
	addl	$1, %ecx
	addl	-4(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpl	%ecx, %esi
	jge	.L14
.L11:
	movl	(%rdi,%rsi,4), %edx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$2, %ecx
	jmp	.L12
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	F
	.bss
	.align 32
	.type	F, @object
	.size	F, 180
F:
	.zero	180
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1
	.long	1
	.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
	.p2align 4
	.globl	fib
	.type	fib, @function
fib:
.LFB23:
	.cfi_startproc
	endbr64
	movq	.LC0(%rip), %rax
	movl	%edi, %esi
	movq	%rax, F(%rip)
	cmpl	$1, %edi
	jle	.L1
	cmpl	$3, %edi
	jle	.L6
	leal	-4(%rdi), %eax
	movl	$1, %edx
	movl	$1, %edi
	shrl	%eax
	leaq	-8+F(%rip), %r9
	leal	3(%rax), %r8d
	movl	$4, %eax
	addq	%r8, %r8
.L4:
	addl	%edi, %edx
	movl	%eax, %ecx
	addl	%edx, %edi
	movd	%edx, %xmm0
	movd	%edi, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%r9,%rax,4)
	addq	$2, %rax
	cmpq	%r8, %rax
	jne	.L4
.L3:
	movslq	%ecx, %rax
	leaq	F(%rip), %rdx
	leaq	(%rdx,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movl	-8(%rax), %edx
	addl	$1, %ecx
	addl	-4(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpl	%ecx, %esi
	jge	.L5
.L1:
	ret
.L6:
	movl	$2, %ecx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	fib, .-fib
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	.LC0(%rip), %rax
	movslq	4(%rsp), %rsi
	leaq	F(%rip), %rdi
	movq	%rax, F(%rip)
	cmpl	$1, %esi
	jle	.L11
	cmpl	$3, %esi
	jle	.L16
	leal	-4(%rsi), %eax
	movl	$1, %edi
	movl	$1, %edx
	shrl	%eax
	leaq	-8+F(%rip), %r9
	leal	3(%rax), %r8d
	movl	$4, %eax
	addq	%r8, %r8
.L13:
	addl	%edi, %edx
	movl	%eax, %ecx
	addl	%edx, %edi
	movd	%edx, %xmm0
	movd	%edi, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%r9,%rax,4)
	addq	$2, %rax
	cmpq	%r8, %rax
	jne	.L13
.L12:
	movslq	%ecx, %rax
	leaq	F(%rip), %rdi
	leaq	(%rdi,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L14:
	movl	-8(%rax), %edx
	addl	$1, %ecx
	addl	-4(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpl	%ecx, %esi
	jge	.L14
.L11:
	movl	(%rdi,%rsi,4), %edx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$2, %ecx
	jmp	.L12
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	F
	.bss
	.align 32
	.type	F, @object
	.size	F, 180
F:
	.zero	180
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1
	.long	1
	.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 F[45];
void fib(int n){
  //if(n==0 || n==1)return 1;
  //return fib(n-1)+fib(n-2);
int i;
F[0]=1;
F[1]=1;
for(i=2;i<n+1;i++){
  F[i]=F[i-2]+F[i-1];
}
}
int main(){
  int n;
  scanf("%d",&n);
  fib(n);
  printf("%d\n",F[n]);
  return 0;
}


1
 2
 4
 8
 6
 15
 7
 24
 14
 5

1
 2
 5
 34
 13
 987
 21
 75025
 610
 8

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 F[45];
void fib(int n){
  //if(n==0 || n==1)return 1;
  //return fib(n-1)+fib(n-2);
int i;
F[0]=1;
F[1]=1;
for(i=2;i<n+1;i++){
  F[i]=F[i-2]+F[i-1];
}
}
int main(){
  int n;
  scanf("%d",&n);
  fib(n);
  printf("%d\n",F[n]);
  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	F
	.bss
	.align 32
	.type	F, @object
	.size	F, 180
F:
	.zero	180
	.text
	.globl	fib
	.type	fib, @function
fib:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, F(%rip)
	movl	$1, 4+F(%rip)
	movl	$2, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L2:
	movl	-20(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L3
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fib, .-fib
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	fib
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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.
train
	.file	"temp.c"
	.text
	.globl	F
	.bss
	.align 32
	.type	F, @object
	.size	F, 180
F:
	.zero	180
	.text
	.globl	fib
	.type	fib, @function
fib:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, F(%rip)
	movl	$1, 4+F(%rip)
	movl	$2, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L2:
	movl	-20(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L3
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fib, .-fib
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	fib
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
