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>
#include <stdlib.h>

int fibonacci(int,int,int[]);

int main(int argc, char** argv) {
    int seqNum;
    scanf("%d",&seqNum);
    int fibNum[seqNum];
    for(int i = 0; i < seqNum; i++)
        fibNum[i] = NULL;
    printf("%d\n",fibonacci(seqNum,seqNum,fibNum));
    return (EXIT_SUCCESS);
}

int fibonacci(int sequence, int size, int fibArray[size]){
    if(sequence == 1 || sequence == 0){
        fibArray[sequence] = 1;
        return 1;
    }
    else if(fibArray[sequence] != NULL && sequence < size){
        return fibArray[sequence];
    }
    fibArray[sequence] = fibonacci(sequence-1,size,fibArray) + fibonacci(sequence-2,size,fibArray);
    return fibArray[sequence];
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movl	%edi, -84(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L5
.L6:
	movq	-64(%rbp), %rax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -76(%rbp)
.L5:
	movl	-80(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L6
	movl	-80(%rbp), %ecx
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fibonacci
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	fibonacci
	.type	fibonacci, @function
fibonacci:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	cmpl	$1, -20(%rbp)
	je	.L10
	cmpl	$0, -20(%rbp)
	jne	.L11
.L10:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$1, %eax
	jmp	.L12
.L11:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L13
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L13
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	jmp	.L12
.L13:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	fibonacci
	movl	%eax, %ebx
	movl	-20(%rbp), %eax
	leal	-2(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	fibonacci
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	addl	%ebx, %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
.L12:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fibonacci, .-fibonacci
	.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	fibonacci
	.type	fibonacci, @function
fibonacci:
.LFB40:
	.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
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rbx
	salq	$2, %rbp
	leaq	(%rdx,%rbp), %rax
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%rax, (%rsp)
	cmpl	$1, %ebx
	jbe	.L151
	movl	(%rax), %eax
	movl	%esi, %r13d
	movq	%rdx, %r15
	cmpl	%ebx, %esi
	jle	.L65
	testl	%eax, %eax
	jne	.L1
.L65:
	leaq	-8(%r15,%rbp), %rdx
	leal	-1(%rbx), %eax
	movq	%rdx, 8(%rsp)
	leaq	-4(%r15,%rbp), %rcx
	leal	-2(%rbx), %r8d
	cmpl	$1, %eax
	jbe	.L152
	movl	(%rcx), %r12d
	testl	%r12d, %r12d
	je	.L66
	cmpl	%r13d, %eax
	jl	.L6
.L66:
	leaq	-12(%r15,%rbp), %rax
	leal	-3(%rbx), %r9d
	movq	%rax, 16(%rsp)
	leaq	-8(%r15,%rbp), %rax
	cmpl	$1, %r8d
	jbe	.L153
	movl	(%rax), %r14d
	cmpl	%r8d, %r13d
	jle	.L67
	testl	%r14d, %r14d
	jne	.L9
.L67:
	leal	-4(%rbx), %r14d
	leaq	-16(%r15,%rbp), %r10
	leaq	-12(%r15,%rbp), %rax
	cmpl	$1, %r9d
	jbe	.L154
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	je	.L68
	cmpl	%r9d, %r13d
	jg	.L12
.L68:
	leal	-5(%rbx), %r12d
	cmpl	$1, %r14d
	jbe	.L155
	movl	(%r10), %r11d
	testl	%r11d, %r11d
	je	.L69
	cmpl	%r14d, %r13d
	jg	.L15
.L69:
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%r12d, %edi
	movl	%r8d, 48(%rsp)
	movq	%rcx, 40(%rsp)
	movl	%r9d, 32(%rsp)
	movq	%r10, 24(%rsp)
	call	fibonacci
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, 16(%rsp)
	call	fibonacci
	movl	16(%rsp), %r11d
	movq	24(%rsp), %r10
	movl	48(%rsp), %r8d
	movq	40(%rsp), %rcx
	addl	%eax, %r11d
	movl	32(%rsp), %r9d
	movl	%r11d, (%r10)
.L15:
	leaq	-20(%r15,%rbp), %rax
	movq	%rax, 16(%rsp)
	cmpl	$1, %r12d
	jbe	.L156
	leaq	-20(%r15,%rbp), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L70
	cmpl	%r12d, %r13d
	jg	.L18
.L70:
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%r8d, 48(%rsp)
	movq	%rcx, 40(%rsp)
	movl	%r9d, 32(%rsp)
	movq	%r10, 24(%rsp)
	movl	%r11d, 16(%rsp)
	call	fibonacci
	movl	%r13d, %esi
	leal	-7(%rbx), %edi
	movq	%r15, %rdx
	movl	%eax, %r12d
	call	fibonacci
	leaq	-20(%r15,%rbp), %rsi
	movl	48(%rsp), %r8d
	movq	40(%rsp), %rcx
	addl	%r12d, %eax
	movl	32(%rsp), %r9d
	movq	24(%rsp), %r10
	movl	%eax, (%rsi)
	movl	16(%rsp), %r11d
.L18:
	leal	(%rax,%r11), %r12d
	leaq	-12(%r15,%rbp), %rax
	movl	%r12d, (%rax)
.L12:
	cmpl	$1, %r14d
	jbe	.L157
	movl	(%r10), %eax
	testl	%eax, %eax
	je	.L71
	cmpl	%r14d, %r13d
	jg	.L21
.L71:
	leal	-5(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%r8d, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%r9d, 24(%rsp)
	movq	%r10, 16(%rsp)
	call	fibonacci
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, %r14d
	call	fibonacci
	movq	16(%rsp), %r10
	movl	40(%rsp), %r8d
	addl	%r14d, %eax
	movq	32(%rsp), %rcx
	movl	24(%rsp), %r9d
	movl	%eax, (%r10)
.L21:
	leal	(%rax,%r12), %r14d
	leaq	-8(%r15,%rbp), %rax
	movl	%r14d, (%rax)
.L9:
	leaq	-12(%r15,%rbp), %rax
	cmpl	$1, %r9d
	jbe	.L158
	movl	(%rax), %r12d
	cmpl	%r9d, %r13d
	jle	.L72
	testl	%r12d, %r12d
	jne	.L24
.L72:
	leal	-4(%rbx), %eax
	leaq	-16(%r15,%rbp), %r12
	leal	-5(%rbx), %r10d
	cmpl	$1, %eax
	jbe	.L159
	movl	(%r12), %r9d
	testl	%r9d, %r9d
	je	.L73
	cmpl	%eax, %r13d
	jg	.L27
.L73:
	movl	%r10d, %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%r8d, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%r10d, 24(%rsp)
	call	fibonacci
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, 16(%rsp)
	call	fibonacci
	movl	16(%rsp), %r9d
	movl	40(%rsp), %r8d
	movq	32(%rsp), %rcx
	movl	24(%rsp), %r10d
	addl	%eax, %r9d
	movl	%r9d, (%r12)
.L27:
	leaq	-20(%r15,%rbp), %r11
	cmpl	$1, %r10d
	jbe	.L160
	movl	(%r11), %r12d
	cmpl	%r10d, %r13d
	jle	.L74
	testl	%r12d, %r12d
	jne	.L30
.L74:
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%r8d, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movq	%r11, 24(%rsp)
	movl	%r9d, 16(%rsp)
	call	fibonacci
	leal	-7(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, %r12d
	call	fibonacci
	movq	24(%rsp), %r11
	movl	40(%rsp), %r8d
	addl	%eax, %r12d
	movq	32(%rsp), %rcx
	movl	16(%rsp), %r9d
	movl	%r12d, (%r11)
.L30:
	addl	%r9d, %r12d
	leaq	-12(%r15,%rbp), %rax
	movl	%r12d, (%rax)
.L24:
	addl	%r14d, %r12d
	movl	%r12d, (%rcx)
.L6:
	cmpl	$1, %r8d
	jbe	.L161
.L32:
	leaq	-8(%r15,%rbp), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L75
	cmpl	%r8d, %r13d
	jg	.L33
.L75:
	leaq	-16(%r15,%rbp), %rdx
	leal	-3(%rbx), %eax
	movq	%rdx, 16(%rsp)
	leaq	-12(%r15,%rbp), %r9
	leal	-4(%rbx), %ecx
	cmpl	$1, %eax
	jbe	.L162
	movl	(%r9), %r8d
	testl	%r8d, %r8d
	je	.L76
	cmpl	%eax, %r13d
	jg	.L36
.L76:
	leal	-5(%rbx), %r10d
	leaq	-16(%r15,%rbp), %rax
	cmpl	$1, %ecx
	jbe	.L163
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	je	.L77
	cmpl	%ecx, %r13d
	jg	.L39
.L77:
	movl	%r10d, %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%ecx, 40(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r10d, 24(%rsp)
	call	fibonacci
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, %r14d
	call	fibonacci
	movl	40(%rsp), %ecx
	movq	32(%rsp), %r9
	leal	(%r14,%rax), %r8d
	leaq	-16(%r15,%rbp), %rax
	movl	24(%rsp), %r10d
	movl	%r8d, (%rax)
.L39:
	leaq	-20(%r15,%rbp), %r11
	cmpl	$1, %r10d
	jbe	.L164
	movl	(%r11), %r14d
	testl	%r14d, %r14d
	je	.L78
	cmpl	%r10d, %r13d
	jg	.L42
.L78:
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%ecx, 48(%rsp)
	movq	%r9, 40(%rsp)
	movq	%r11, 32(%rsp)
	movl	%r8d, 24(%rsp)
	call	fibonacci
	leal	-7(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, %r14d
	call	fibonacci
	movq	32(%rsp), %r11
	movl	48(%rsp), %ecx
	addl	%eax, %r14d
	movq	40(%rsp), %r9
	movl	24(%rsp), %r8d
	movl	%r14d, (%r11)
.L42:
	addl	%r14d, %r8d
	movl	%r8d, (%r9)
.L36:
	cmpl	$1, %ecx
	jbe	.L165
	leaq	-16(%r15,%rbp), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L79
	cmpl	%ecx, %r13d
	jg	.L45
.L79:
	leal	-5(%rbx), %eax
	leaq	-20(%r15,%rbp), %r10
	leal	-6(%rbx), %ecx
	leaq	-24(%r15,%rbp), %r11
	cmpl	$1, %eax
	jbe	.L166
	movl	(%r10), %r14d
	testl	%r14d, %r14d
	je	.L80
	cmpl	%eax, %r13d
	jg	.L48
.L80:
	leal	-7(%rbx), %r9d
	cmpl	$1, %ecx
	jbe	.L167
	movl	(%r11), %r14d
	cmpl	%ecx, %r13d
	jle	.L81
	testl	%r14d, %r14d
	jne	.L51
.L81:
	movl	%r9d, %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movq	%r11, 56(%rsp)
	movl	%ecx, 48(%rsp)
	movq	%r10, 40(%rsp)
	movl	%r8d, 32(%rsp)
	movl	%r9d, 24(%rsp)
	call	fibonacci
	leal	-8(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, %r14d
	call	fibonacci
	movq	56(%rsp), %r11
	movl	48(%rsp), %ecx
	addl	%eax, %r14d
	movq	40(%rsp), %r10
	movl	32(%rsp), %r8d
	movl	%r14d, (%r11)
	movl	24(%rsp), %r9d
.L51:
	leaq	-28(%r15,%rbp), %rax
	movq	%rax, 24(%rsp)
	cmpl	$1, %r9d
	jbe	.L168
	leaq	-28(%r15,%rbp), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L82
	cmpl	%r9d, %r13d
	jg	.L54
.L82:
	leal	-8(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movq	%r11, 56(%rsp)
	movl	%ecx, 48(%rsp)
	movq	%r10, 40(%rsp)
	movl	%r8d, 32(%rsp)
	call	fibonacci
	movl	%r13d, %esi
	leal	-9(%rbx), %edi
	movq	%r15, %rdx
	movl	%eax, 24(%rsp)
	call	fibonacci
	leaq	-28(%r15,%rbp), %rsi
	addl	24(%rsp), %eax
	movq	56(%rsp), %r11
	movl	48(%rsp), %ecx
	movq	40(%rsp), %r10
	movl	%eax, (%rsi)
	movl	32(%rsp), %r8d
.L54:
	addl	%eax, %r14d
	movl	%r14d, (%r10)
.L48:
	cmpl	$1, %ecx
	jbe	.L169
	movl	(%r11), %eax
	cmpl	%ecx, %r13d
	jle	.L83
	testl	%eax, %eax
	jne	.L57
.L83:
	leal	-7(%rbx), %eax
	leaq	-28(%r15,%rbp), %r10
	leal	-8(%rbx), %r9d
	cmpl	$1, %eax
	jbe	.L170
	movl	(%r10), %ecx
	testl	%ecx, %ecx
	je	.L84
	cmpl	%eax, %r13d
	jg	.L60
.L84:
	movl	%r9d, %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movq	%r11, 56(%rsp)
	movq	%r10, 48(%rsp)
	movl	%r8d, 40(%rsp)
	movl	%r9d, 32(%rsp)
	call	fibonacci
	leal	-9(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, 24(%rsp)
	call	fibonacci
	movl	24(%rsp), %ecx
	movq	48(%rsp), %r10
	movq	56(%rsp), %r11
	movl	40(%rsp), %r8d
	addl	%eax, %ecx
	movl	32(%rsp), %r9d
	movl	%ecx, (%r10)
.L60:
	leaq	-32(%r15,%rbp), %rbp
	cmpl	$1, %r9d
	jbe	.L171
	movl	0(%rbp), %eax
	cmpl	%r9d, %r13d
	jle	.L85
	testl	%eax, %eax
	jne	.L63
.L85:
	leal	-9(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movq	%r11, 48(%rsp)
	movl	%ecx, 40(%rsp)
	movl	%r8d, 32(%rsp)
	call	fibonacci
	leal	-10(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, 24(%rsp)
	call	fibonacci
	addl	24(%rsp), %eax
	movq	48(%rsp), %r11
	movl	40(%rsp), %ecx
	movl	32(%rsp), %r8d
	movl	%eax, 0(%rbp)
.L63:
	addl	%ecx, %eax
	movl	%eax, (%r11)
.L57:
	movq	16(%rsp), %rcx
	addl	%r14d, %eax
	movl	%eax, (%rcx)
.L45:
	movq	8(%rsp), %rcx
	addl	%r8d, %eax
	movl	%eax, (%rcx)
.L33:
	movq	(%rsp), %rsi
	addl	%r12d, %eax
	movl	%eax, (%rsi)
.L1:
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L151:
	.cfi_restore_state
	movl	$1, (%rax)
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$1, %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
.L152:
	.cfi_restore_state
	movl	$1, (%rcx)
	movl	$1, %r12d
	cmpl	$1, %r8d
	ja	.L32
.L161:
	movq	8(%rsp), %rax
	movq	(%rsp), %rsi
	movl	$1, (%rax)
	movl	$1, %eax
	addl	%r12d, %eax
	movl	%eax, (%rsi)
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L158:
	movl	$1, (%rax)
	movl	$1, %r12d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L162:
	movl	$1, (%r9)
	movl	$1, %r8d
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L165:
	movq	16(%rsp), %rax
	movl	$1, (%rax)
	movl	$1, %eax
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L153:
	movl	$1, (%rax)
	movl	$1, %r14d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L166:
	movl	$1, (%r10)
	movl	$1, %r14d
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L169:
	movl	$1, (%r11)
	movl	$1, %eax
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L164:
	movl	$1, (%r11)
	movl	$1, %r14d
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L163:
	movl	$1, (%rax)
	movl	$1, %r8d
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L154:
	movl	$1, (%rax)
	movl	$1, %r12d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L160:
	movl	$1, (%r11)
	movl	$1, %r12d
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L159:
	movl	$1, (%r12)
	movl	$1, %r9d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L157:
	movl	$1, (%r10)
	movl	$1, %eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L168:
	movl	$1, (%rax)
	movl	$1, %eax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L155:
	movl	$1, (%r10)
	movl	$1, %r11d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L167:
	movl	$1, (%r11)
	movl	$1, %r14d
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L170:
	movl	$1, (%r10)
	movl	$1, %ecx
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L156:
	movl	$1, (%rax)
	movl	$1, %eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L171:
	movl	$1, 0(%rbp)
	movl	$1, %eax
	jmp	.L63
	.cfi_endproc
.LFE40:
	.size	fibonacci, .-fibonacci
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	leaq	-28(%rbp), %rsi
	subq	$24, %rsp
	.cfi_offset 12, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-28(%rbp), %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rax
	movq	%rdx, %r12
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L174
.L182:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L182
.L174:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L183
.L175:
	movq	%rsp, %r8
	testl	%r12d, %r12d
	jle	.L176
	movq	%r8, %rdi
	salq	$2, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %r8
.L176:
	movq	%r8, %rdx
	movl	%r12d, %esi
	movl	%r12d, %edi
	call	fibonacci
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L184
	movq	-8(%rbp), %r12
	xorl	%eax, %eax
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L183:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L175
.L184:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	fibonacci
	.type	fibonacci, @function
fibonacci:
.LFB40:
	.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
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rbx
	salq	$2, %rbp
	leaq	(%rdx,%rbp), %rax
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%rax, (%rsp)
	cmpl	$1, %ebx
	jbe	.L151
	movl	(%rax), %eax
	movl	%esi, %r13d
	movq	%rdx, %r15
	cmpl	%ebx, %esi
	jle	.L65
	testl	%eax, %eax
	jne	.L1
.L65:
	leaq	-8(%r15,%rbp), %rdx
	leal	-1(%rbx), %eax
	movq	%rdx, 8(%rsp)
	leaq	-4(%r15,%rbp), %rcx
	leal	-2(%rbx), %r8d
	cmpl	$1, %eax
	jbe	.L152
	movl	(%rcx), %r12d
	testl	%r12d, %r12d
	je	.L66
	cmpl	%r13d, %eax
	jl	.L6
.L66:
	leaq	-12(%r15,%rbp), %rax
	leal	-3(%rbx), %r9d
	movq	%rax, 16(%rsp)
	leaq	-8(%r15,%rbp), %rax
	cmpl	$1, %r8d
	jbe	.L153
	movl	(%rax), %r14d
	cmpl	%r8d, %r13d
	jle	.L67
	testl	%r14d, %r14d
	jne	.L9
.L67:
	leal	-4(%rbx), %r14d
	leaq	-16(%r15,%rbp), %r10
	leaq	-12(%r15,%rbp), %rax
	cmpl	$1, %r9d
	jbe	.L154
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	je	.L68
	cmpl	%r9d, %r13d
	jg	.L12
.L68:
	leal	-5(%rbx), %r12d
	cmpl	$1, %r14d
	jbe	.L155
	movl	(%r10), %r11d
	testl	%r11d, %r11d
	je	.L69
	cmpl	%r14d, %r13d
	jg	.L15
.L69:
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%r12d, %edi
	movl	%r8d, 48(%rsp)
	movq	%rcx, 40(%rsp)
	movl	%r9d, 32(%rsp)
	movq	%r10, 24(%rsp)
	call	fibonacci
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, 16(%rsp)
	call	fibonacci
	movl	16(%rsp), %r11d
	movq	24(%rsp), %r10
	movl	48(%rsp), %r8d
	movq	40(%rsp), %rcx
	addl	%eax, %r11d
	movl	32(%rsp), %r9d
	movl	%r11d, (%r10)
.L15:
	leaq	-20(%r15,%rbp), %rax
	movq	%rax, 16(%rsp)
	cmpl	$1, %r12d
	jbe	.L156
	leaq	-20(%r15,%rbp), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L70
	cmpl	%r12d, %r13d
	jg	.L18
.L70:
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%r8d, 48(%rsp)
	movq	%rcx, 40(%rsp)
	movl	%r9d, 32(%rsp)
	movq	%r10, 24(%rsp)
	movl	%r11d, 16(%rsp)
	call	fibonacci
	movl	%r13d, %esi
	leal	-7(%rbx), %edi
	movq	%r15, %rdx
	movl	%eax, %r12d
	call	fibonacci
	leaq	-20(%r15,%rbp), %rsi
	movl	48(%rsp), %r8d
	movq	40(%rsp), %rcx
	addl	%r12d, %eax
	movl	32(%rsp), %r9d
	movq	24(%rsp), %r10
	movl	%eax, (%rsi)
	movl	16(%rsp), %r11d
.L18:
	leal	(%rax,%r11), %r12d
	leaq	-12(%r15,%rbp), %rax
	movl	%r12d, (%rax)
.L12:
	cmpl	$1, %r14d
	jbe	.L157
	movl	(%r10), %eax
	testl	%eax, %eax
	je	.L71
	cmpl	%r14d, %r13d
	jg	.L21
.L71:
	leal	-5(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%r8d, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%r9d, 24(%rsp)
	movq	%r10, 16(%rsp)
	call	fibonacci
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, %r14d
	call	fibonacci
	movq	16(%rsp), %r10
	movl	40(%rsp), %r8d
	addl	%r14d, %eax
	movq	32(%rsp), %rcx
	movl	24(%rsp), %r9d
	movl	%eax, (%r10)
.L21:
	leal	(%rax,%r12), %r14d
	leaq	-8(%r15,%rbp), %rax
	movl	%r14d, (%rax)
.L9:
	leaq	-12(%r15,%rbp), %rax
	cmpl	$1, %r9d
	jbe	.L158
	movl	(%rax), %r12d
	cmpl	%r9d, %r13d
	jle	.L72
	testl	%r12d, %r12d
	jne	.L24
.L72:
	leal	-4(%rbx), %eax
	leaq	-16(%r15,%rbp), %r12
	leal	-5(%rbx), %r10d
	cmpl	$1, %eax
	jbe	.L159
	movl	(%r12), %r9d
	testl	%r9d, %r9d
	je	.L73
	cmpl	%eax, %r13d
	jg	.L27
.L73:
	movl	%r10d, %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%r8d, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%r10d, 24(%rsp)
	call	fibonacci
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, 16(%rsp)
	call	fibonacci
	movl	16(%rsp), %r9d
	movl	40(%rsp), %r8d
	movq	32(%rsp), %rcx
	movl	24(%rsp), %r10d
	addl	%eax, %r9d
	movl	%r9d, (%r12)
.L27:
	leaq	-20(%r15,%rbp), %r11
	cmpl	$1, %r10d
	jbe	.L160
	movl	(%r11), %r12d
	cmpl	%r10d, %r13d
	jle	.L74
	testl	%r12d, %r12d
	jne	.L30
.L74:
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%r8d, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movq	%r11, 24(%rsp)
	movl	%r9d, 16(%rsp)
	call	fibonacci
	leal	-7(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, %r12d
	call	fibonacci
	movq	24(%rsp), %r11
	movl	40(%rsp), %r8d
	addl	%eax, %r12d
	movq	32(%rsp), %rcx
	movl	16(%rsp), %r9d
	movl	%r12d, (%r11)
.L30:
	addl	%r9d, %r12d
	leaq	-12(%r15,%rbp), %rax
	movl	%r12d, (%rax)
.L24:
	addl	%r14d, %r12d
	movl	%r12d, (%rcx)
.L6:
	cmpl	$1, %r8d
	jbe	.L161
.L32:
	leaq	-8(%r15,%rbp), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L75
	cmpl	%r8d, %r13d
	jg	.L33
.L75:
	leaq	-16(%r15,%rbp), %rdx
	leal	-3(%rbx), %eax
	movq	%rdx, 16(%rsp)
	leaq	-12(%r15,%rbp), %r9
	leal	-4(%rbx), %ecx
	cmpl	$1, %eax
	jbe	.L162
	movl	(%r9), %r8d
	testl	%r8d, %r8d
	je	.L76
	cmpl	%eax, %r13d
	jg	.L36
.L76:
	leal	-5(%rbx), %r10d
	leaq	-16(%r15,%rbp), %rax
	cmpl	$1, %ecx
	jbe	.L163
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	je	.L77
	cmpl	%ecx, %r13d
	jg	.L39
.L77:
	movl	%r10d, %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%ecx, 40(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r10d, 24(%rsp)
	call	fibonacci
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, %r14d
	call	fibonacci
	movl	40(%rsp), %ecx
	movq	32(%rsp), %r9
	leal	(%r14,%rax), %r8d
	leaq	-16(%r15,%rbp), %rax
	movl	24(%rsp), %r10d
	movl	%r8d, (%rax)
.L39:
	leaq	-20(%r15,%rbp), %r11
	cmpl	$1, %r10d
	jbe	.L164
	movl	(%r11), %r14d
	testl	%r14d, %r14d
	je	.L78
	cmpl	%r10d, %r13d
	jg	.L42
.L78:
	leal	-6(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%ecx, 48(%rsp)
	movq	%r9, 40(%rsp)
	movq	%r11, 32(%rsp)
	movl	%r8d, 24(%rsp)
	call	fibonacci
	leal	-7(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, %r14d
	call	fibonacci
	movq	32(%rsp), %r11
	movl	48(%rsp), %ecx
	addl	%eax, %r14d
	movq	40(%rsp), %r9
	movl	24(%rsp), %r8d
	movl	%r14d, (%r11)
.L42:
	addl	%r14d, %r8d
	movl	%r8d, (%r9)
.L36:
	cmpl	$1, %ecx
	jbe	.L165
	leaq	-16(%r15,%rbp), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L79
	cmpl	%ecx, %r13d
	jg	.L45
.L79:
	leal	-5(%rbx), %eax
	leaq	-20(%r15,%rbp), %r10
	leal	-6(%rbx), %ecx
	leaq	-24(%r15,%rbp), %r11
	cmpl	$1, %eax
	jbe	.L166
	movl	(%r10), %r14d
	testl	%r14d, %r14d
	je	.L80
	cmpl	%eax, %r13d
	jg	.L48
.L80:
	leal	-7(%rbx), %r9d
	cmpl	$1, %ecx
	jbe	.L167
	movl	(%r11), %r14d
	cmpl	%ecx, %r13d
	jle	.L81
	testl	%r14d, %r14d
	jne	.L51
.L81:
	movl	%r9d, %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movq	%r11, 56(%rsp)
	movl	%ecx, 48(%rsp)
	movq	%r10, 40(%rsp)
	movl	%r8d, 32(%rsp)
	movl	%r9d, 24(%rsp)
	call	fibonacci
	leal	-8(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, %r14d
	call	fibonacci
	movq	56(%rsp), %r11
	movl	48(%rsp), %ecx
	addl	%eax, %r14d
	movq	40(%rsp), %r10
	movl	32(%rsp), %r8d
	movl	%r14d, (%r11)
	movl	24(%rsp), %r9d
.L51:
	leaq	-28(%r15,%rbp), %rax
	movq	%rax, 24(%rsp)
	cmpl	$1, %r9d
	jbe	.L168
	leaq	-28(%r15,%rbp), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L82
	cmpl	%r9d, %r13d
	jg	.L54
.L82:
	leal	-8(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movq	%r11, 56(%rsp)
	movl	%ecx, 48(%rsp)
	movq	%r10, 40(%rsp)
	movl	%r8d, 32(%rsp)
	call	fibonacci
	movl	%r13d, %esi
	leal	-9(%rbx), %edi
	movq	%r15, %rdx
	movl	%eax, 24(%rsp)
	call	fibonacci
	leaq	-28(%r15,%rbp), %rsi
	addl	24(%rsp), %eax
	movq	56(%rsp), %r11
	movl	48(%rsp), %ecx
	movq	40(%rsp), %r10
	movl	%eax, (%rsi)
	movl	32(%rsp), %r8d
.L54:
	addl	%eax, %r14d
	movl	%r14d, (%r10)
.L48:
	cmpl	$1, %ecx
	jbe	.L169
	movl	(%r11), %eax
	cmpl	%ecx, %r13d
	jle	.L83
	testl	%eax, %eax
	jne	.L57
.L83:
	leal	-7(%rbx), %eax
	leaq	-28(%r15,%rbp), %r10
	leal	-8(%rbx), %r9d
	cmpl	$1, %eax
	jbe	.L170
	movl	(%r10), %ecx
	testl	%ecx, %ecx
	je	.L84
	cmpl	%eax, %r13d
	jg	.L60
.L84:
	movl	%r9d, %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movq	%r11, 56(%rsp)
	movq	%r10, 48(%rsp)
	movl	%r8d, 40(%rsp)
	movl	%r9d, 32(%rsp)
	call	fibonacci
	leal	-9(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, 24(%rsp)
	call	fibonacci
	movl	24(%rsp), %ecx
	movq	48(%rsp), %r10
	movq	56(%rsp), %r11
	movl	40(%rsp), %r8d
	addl	%eax, %ecx
	movl	32(%rsp), %r9d
	movl	%ecx, (%r10)
.L60:
	leaq	-32(%r15,%rbp), %rbp
	cmpl	$1, %r9d
	jbe	.L171
	movl	0(%rbp), %eax
	cmpl	%r9d, %r13d
	jle	.L85
	testl	%eax, %eax
	jne	.L63
.L85:
	leal	-9(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movq	%r11, 48(%rsp)
	movl	%ecx, 40(%rsp)
	movl	%r8d, 32(%rsp)
	call	fibonacci
	leal	-10(%rbx), %edi
	movq	%r15, %rdx
	movl	%r13d, %esi
	movl	%eax, 24(%rsp)
	call	fibonacci
	addl	24(%rsp), %eax
	movq	48(%rsp), %r11
	movl	40(%rsp), %ecx
	movl	32(%rsp), %r8d
	movl	%eax, 0(%rbp)
.L63:
	addl	%ecx, %eax
	movl	%eax, (%r11)
.L57:
	movq	16(%rsp), %rcx
	addl	%r14d, %eax
	movl	%eax, (%rcx)
.L45:
	movq	8(%rsp), %rcx
	addl	%r8d, %eax
	movl	%eax, (%rcx)
.L33:
	movq	(%rsp), %rsi
	addl	%r12d, %eax
	movl	%eax, (%rsi)
.L1:
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L151:
	.cfi_restore_state
	movl	$1, (%rax)
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$1, %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
.L152:
	.cfi_restore_state
	movl	$1, (%rcx)
	movl	$1, %r12d
	cmpl	$1, %r8d
	ja	.L32
.L161:
	movq	8(%rsp), %rax
	movq	(%rsp), %rsi
	movl	$1, (%rax)
	movl	$1, %eax
	addl	%r12d, %eax
	movl	%eax, (%rsi)
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L158:
	movl	$1, (%rax)
	movl	$1, %r12d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L162:
	movl	$1, (%r9)
	movl	$1, %r8d
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L165:
	movq	16(%rsp), %rax
	movl	$1, (%rax)
	movl	$1, %eax
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L153:
	movl	$1, (%rax)
	movl	$1, %r14d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L166:
	movl	$1, (%r10)
	movl	$1, %r14d
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L169:
	movl	$1, (%r11)
	movl	$1, %eax
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L164:
	movl	$1, (%r11)
	movl	$1, %r14d
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L163:
	movl	$1, (%rax)
	movl	$1, %r8d
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L154:
	movl	$1, (%rax)
	movl	$1, %r12d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L160:
	movl	$1, (%r11)
	movl	$1, %r12d
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L159:
	movl	$1, (%r12)
	movl	$1, %r9d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L157:
	movl	$1, (%r10)
	movl	$1, %eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L168:
	movl	$1, (%rax)
	movl	$1, %eax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L155:
	movl	$1, (%r10)
	movl	$1, %r11d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L167:
	movl	$1, (%r11)
	movl	$1, %r14d
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L170:
	movl	$1, (%r10)
	movl	$1, %ecx
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L156:
	movl	$1, (%rax)
	movl	$1, %eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L171:
	movl	$1, 0(%rbp)
	movl	$1, %eax
	jmp	.L63
	.cfi_endproc
.LFE40:
	.size	fibonacci, .-fibonacci
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	leaq	-28(%rbp), %rsi
	subq	$24, %rsp
	.cfi_offset 12, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-28(%rbp), %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rax
	movq	%rdx, %r12
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L174
.L182:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L182
.L174:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L183
.L175:
	movq	%rsp, %r8
	testl	%r12d, %r12d
	jle	.L176
	movq	%r8, %rdi
	salq	$2, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %r8
.L176:
	movq	%r8, %rdx
	movl	%r12d, %esi
	movl	%r12d, %edi
	call	fibonacci
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L184
	movq	-8(%rbp), %r12
	xorl	%eax, %eax
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L183:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L175
.L184:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:

#include <stdio.h>
#include <stdlib.h>

int fibonacci(int,int,int[]);

int main(int argc, char** argv) {
    int seqNum;
    scanf("%d",&seqNum);
    int fibNum[seqNum];
    for(int i = 0; i < seqNum; i++)
        fibNum[i] = NULL;
    printf("%d\n",fibonacci(seqNum,seqNum,fibNum));
    return (EXIT_SUCCESS);
}

int fibonacci(int sequence, int size, int fibArray[size]){
    if(sequence == 1 || sequence == 0){
        fibArray[sequence] = 1;
        return 1;
    }
    else if(fibArray[sequence] != NULL && sequence < size){
        return fibArray[sequence];
    }
    fibArray[sequence] = fibonacci(sequence-1,size,fibArray) + fibonacci(sequence-2,size,fibArray);
    return fibArray[sequence];
}


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>
#include <stdlib.h>

int fibonacci(int,int,int[]);

int main(int argc, char** argv) {
    int seqNum;
    scanf("%d",&seqNum);
    int fibNum[seqNum];
    for(int i = 0; i < seqNum; i++)
        fibNum[i] = NULL;
    printf("%d\n",fibonacci(seqNum,seqNum,fibNum));
    return (EXIT_SUCCESS);
}

int fibonacci(int sequence, int size, int fibArray[size]){
    if(sequence == 1 || sequence == 0){
        fibArray[sequence] = 1;
        return 1;
    }
    else if(fibArray[sequence] != NULL && sequence < size){
        return fibArray[sequence];
    }
    fibArray[sequence] = fibonacci(sequence-1,size,fibArray) + fibonacci(sequence-2,size,fibArray);
    return fibArray[sequence];
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movl	%edi, -84(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L5
.L6:
	movq	-64(%rbp), %rax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -76(%rbp)
.L5:
	movl	-80(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L6
	movl	-80(%rbp), %ecx
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fibonacci
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	fibonacci
	.type	fibonacci, @function
fibonacci:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	cmpl	$1, -20(%rbp)
	je	.L10
	cmpl	$0, -20(%rbp)
	jne	.L11
.L10:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$1, %eax
	jmp	.L12
.L11:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L13
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L13
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	jmp	.L12
.L13:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	fibonacci
	movl	%eax, %ebx
	movl	-20(%rbp), %eax
	leal	-2(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	fibonacci
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	addl	%ebx, %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
.L12:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fibonacci, .-fibonacci
	.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	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movl	%edi, -84(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L5
.L6:
	movq	-64(%rbp), %rax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -76(%rbp)
.L5:
	movl	-80(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L6
	movl	-80(%rbp), %ecx
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fibonacci
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	fibonacci
	.type	fibonacci, @function
fibonacci:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	cmpl	$1, -20(%rbp)
	je	.L10
	cmpl	$0, -20(%rbp)
	jne	.L11
.L10:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$1, %eax
	jmp	.L12
.L11:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L13
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L13
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	jmp	.L12
.L13:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	fibonacci
	movl	%eax, %ebx
	movl	-20(%rbp), %eax
	leal	-2(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	fibonacci
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	addl	%ebx, %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
.L12:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fibonacci, .-fibonacci
	.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:
