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()
{
	int i, N;
	scanf("%d", &N);
	
	long long L[87] = {2, 1};
	for (i = 2; i <= N; i++) L[i] = L[i-1] + L[i-2];
	printf("%lld\n", L[N]);
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.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	$720, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-712(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-704(%rbp), %rdx
	movl	$0, %eax
	movl	$87, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	$2, -704(%rbp)
	movq	$1, -696(%rbp)
	movl	$2, -708(%rbp)
	jmp	.L2
.L3:
	movl	-708(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-704(%rbp,%rax,8), %rdx
	movl	-708(%rbp), %eax
	subl	$2, %eax
	cltq
	movq	-704(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-708(%rbp), %eax
	cltq
	movq	%rdx, -704(%rbp,%rax,8)
	addl	$1, -708(%rbp)
.L2:
	movl	-712(%rbp), %eax
	cmpl	%eax, -708(%rbp)
	jle	.L3
	movl	-712(%rbp), %eax
	cltq
	movq	-704(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$728, %rsp
	.cfi_def_cfa_offset 736
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 712(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movdqa	.LC1(%rip), %xmm0
	leaq	16(%rsp), %rdx
	xorl	%eax, %eax
	movslq	12(%rsp), %rsi
	movl	$87, %ecx
	movq	%rdx, %rdi
	rep stosq
	movaps	%xmm0, 16(%rsp)
	cmpl	$1, %esi
	jle	.L2
	cmpl	$3, %esi
	jle	.L7
	leal	-4(%rsi), %eax
	movl	$1, %r8d
	movl	$2, %edi
	shrl	%eax
	leal	3(%rax), %r9d
	movl	$4, %eax
	addq	%r9, %r9
.L4:
	addq	%r8, %rdi
	movl	%eax, %ecx
	addq	%rdi, %r8
	movq	%rdi, %xmm0
	movq	%r8, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, -16(%rdx,%rax,8)
	addq	$2, %rax
	cmpq	%r9, %rax
	jne	.L4
.L3:
	movslq	%ecx, %rax
	leaq	(%rdx,%rax,8), %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movq	-8(%rax), %rdx
	addl	$1, %ecx
	addq	-16(%rax), %rdx
	addq	$8, %rax
	movq	%rdx, -8(%rax)
	cmpl	%ecx, %esi
	jge	.L5
.L2:
	movq	16(%rsp,%rsi,8), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	712(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	xorl	%eax, %eax
	addq	$728, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	movl	$2, %ecx
	jmp	.L3
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.quad	2
	.quad	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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$728, %rsp
	.cfi_def_cfa_offset 736
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 712(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movdqa	.LC1(%rip), %xmm0
	leaq	16(%rsp), %rdx
	xorl	%eax, %eax
	movslq	12(%rsp), %rsi
	movl	$87, %ecx
	movq	%rdx, %rdi
	rep stosq
	movaps	%xmm0, 16(%rsp)
	cmpl	$1, %esi
	jle	.L2
	cmpl	$3, %esi
	jle	.L7
	leal	-4(%rsi), %eax
	movl	$1, %r8d
	movl	$2, %edi
	shrl	%eax
	leal	3(%rax), %r9d
	movl	$4, %eax
	addq	%r9, %r9
.L4:
	addq	%r8, %rdi
	movl	%eax, %ecx
	addq	%rdi, %r8
	movq	%rdi, %xmm0
	movq	%r8, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, -16(%rdx,%rax,8)
	addq	$2, %rax
	cmpq	%r9, %rax
	jne	.L4
.L3:
	movslq	%ecx, %rax
	leaq	(%rdx,%rax,8), %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movq	-8(%rax), %rdx
	addl	$1, %ecx
	addq	-16(%rax), %rdx
	addq	$8, %rax
	movq	%rdx, -8(%rax)
	cmpl	%ecx, %esi
	jge	.L5
.L2:
	movq	16(%rsp,%rsi,8), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	712(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	xorl	%eax, %eax
	addq	$728, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	movl	$2, %ecx
	jmp	.L3
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.quad	2
	.quad	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 main()
{
	int i, N;
	scanf("%d", &N);
	
	long long L[87] = {2, 1};
	for (i = 2; i <= N; i++) L[i] = L[i-1] + L[i-2];
	printf("%lld\n", L[N]);
	fflush(stdout);
	return 0;
}
1
 2
 4
 3
 30
 49
 6
 8
 7
 58

1
 3
 7
 4
 1860498
 17393796001
 18
 47
 29
 1322157322203

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()
{
	int i, N;
	scanf("%d", &N);
	
	long long L[87] = {2, 1};
	for (i = 2; i <= N; i++) L[i] = L[i-1] + L[i-2];
	printf("%lld\n", L[N]);
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.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	$720, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-712(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-704(%rbp), %rdx
	movl	$0, %eax
	movl	$87, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	$2, -704(%rbp)
	movq	$1, -696(%rbp)
	movl	$2, -708(%rbp)
	jmp	.L2
.L3:
	movl	-708(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-704(%rbp,%rax,8), %rdx
	movl	-708(%rbp), %eax
	subl	$2, %eax
	cltq
	movq	-704(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-708(%rbp), %eax
	cltq
	movq	%rdx, -704(%rbp,%rax,8)
	addl	$1, -708(%rbp)
.L2:
	movl	-712(%rbp), %eax
	cmpl	%eax, -708(%rbp)
	jle	.L3
	movl	-712(%rbp), %eax
	cltq
	movq	-704(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.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	$720, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-712(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-704(%rbp), %rdx
	movl	$0, %eax
	movl	$87, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	$2, -704(%rbp)
	movq	$1, -696(%rbp)
	movl	$2, -708(%rbp)
	jmp	.L2
.L3:
	movl	-708(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-704(%rbp,%rax,8), %rdx
	movl	-708(%rbp), %eax
	subl	$2, %eax
	cltq
	movq	-704(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-708(%rbp), %eax
	cltq
	movq	%rdx, -704(%rbp,%rax,8)
	addl	$1, -708(%rbp)
.L2:
	movl	-712(%rbp), %eax
	cmpl	%eax, -708(%rbp)
	jle	.L3
	movl	-712(%rbp), %eax
	cltq
	movq	-704(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
