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>

int fib(int);
int f[45];

int main()
{
  int a,n;

  scanf("%d",&n);

  a = fib(n);
  printf("%d\n",a);

  return 0;
}

int fib(int n){

  int a;

  if(a = f[n])
    return a;
  
  if(n==0 || n==1){
    a = 1;
  }
  else
    a = fib(n-1)+fib(n-2);

  f[n] = a;
  return a;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	fib
	.type	fib, @function
fib:
.LFB24:
	.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
	movslq	%edi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	f(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	movl	(%r12,%r13,4), %eax
	testl	%eax, %eax
	jne	.L1
	movq	%r13, %rbp
	movl	$1, %eax
	cmpl	$1, %r13d
	ja	.L13
.L3:
	movl	%eax, (%r12,%r13,4)
.L1:
	addq	$8, %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
.L13:
	.cfi_restore_state
	leal	-1(%r13), %eax
	leal	-2(%r13), %ebx
	movslq	%eax, %r15
	movl	(%r12,%r15,4), %r14d
	testl	%r14d, %r14d
	jne	.L4
	movl	$1, %r14d
	cmpl	$1, %eax
	jbe	.L5
	movl	%ebx, %edi
	call	fib
	leal	-3(%r13), %edi
	movl	%eax, %r14d
	call	fib
	addl	%eax, %r14d
.L5:
	movl	%r14d, (%r12,%r15,4)
.L4:
	movslq	%ebx, %r15
	movl	(%r12,%r15,4), %eax
	testl	%eax, %eax
	jne	.L6
	movl	$1, %eax
	cmpl	$1, %ebx
	jbe	.L7
	leal	-3(%rbp), %edi
	call	fib
	leal	-4(%rbp), %edi
	movl	%eax, %ebx
	call	fib
	addl	%ebx, %eax
.L7:
	movl	%eax, (%r12,%r15,4)
.L6:
	addl	%r14d, %eax
	jmp	.L3
	.cfi_endproc
.LFE24:
	.size	fib, .-fib
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %r8
	leaq	f(%rip), %rsi
	movl	(%rsi,%r8,4), %edx
	testl	%edx, %edx
	jne	.L15
	movl	$1, %edx
	cmpl	$1, %r8d
	ja	.L23
.L16:
	movl	%edx, (%rsi,%r8,4)
.L15:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	leal	-1(%r8), %eax
	leal	-2(%r8), %r10d
	movslq	%eax, %r9
	movl	(%rsi,%r9,4), %edx
	testl	%edx, %edx
	jne	.L17
	movl	$1, %edx
	cmpl	$1, %eax
	jbe	.L18
	movl	%r10d, %edi
	call	fib
	leal	-3(%r8), %edi
	movl	%eax, %edx
	call	fib
	addl	%eax, %edx
.L18:
	movl	%edx, (%rsi,%r9,4)
.L17:
	movl	%r10d, %edi
	call	fib
	addl	%eax, %edx
	jmp	.L16
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 180
f:
	.zero	180
	.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
	.p2align 4
	.globl	fib
	.type	fib, @function
fib:
.LFB24:
	.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
	movslq	%edi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	f(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	movl	(%r12,%r13,4), %eax
	testl	%eax, %eax
	jne	.L1
	movq	%r13, %rbp
	movl	$1, %eax
	cmpl	$1, %r13d
	ja	.L13
.L3:
	movl	%eax, (%r12,%r13,4)
.L1:
	addq	$8, %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
.L13:
	.cfi_restore_state
	leal	-1(%r13), %eax
	leal	-2(%r13), %ebx
	movslq	%eax, %r15
	movl	(%r12,%r15,4), %r14d
	testl	%r14d, %r14d
	jne	.L4
	movl	$1, %r14d
	cmpl	$1, %eax
	jbe	.L5
	movl	%ebx, %edi
	call	fib
	leal	-3(%r13), %edi
	movl	%eax, %r14d
	call	fib
	addl	%eax, %r14d
.L5:
	movl	%r14d, (%r12,%r15,4)
.L4:
	movslq	%ebx, %r15
	movl	(%r12,%r15,4), %eax
	testl	%eax, %eax
	jne	.L6
	movl	$1, %eax
	cmpl	$1, %ebx
	jbe	.L7
	leal	-3(%rbp), %edi
	call	fib
	leal	-4(%rbp), %edi
	movl	%eax, %ebx
	call	fib
	addl	%ebx, %eax
.L7:
	movl	%eax, (%r12,%r15,4)
.L6:
	addl	%r14d, %eax
	jmp	.L3
	.cfi_endproc
.LFE24:
	.size	fib, .-fib
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %r8
	leaq	f(%rip), %rsi
	movl	(%rsi,%r8,4), %edx
	testl	%edx, %edx
	jne	.L15
	movl	$1, %edx
	cmpl	$1, %r8d
	ja	.L23
.L16:
	movl	%edx, (%rsi,%r8,4)
.L15:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	leal	-1(%r8), %eax
	leal	-2(%r8), %r10d
	movslq	%eax, %r9
	movl	(%rsi,%r9,4), %edx
	testl	%edx, %edx
	jne	.L17
	movl	$1, %edx
	cmpl	$1, %eax
	jbe	.L18
	movl	%r10d, %edi
	call	fib
	leal	-3(%r8), %edi
	movl	%eax, %edx
	call	fib
	addl	%eax, %edx
.L18:
	movl	%edx, (%rsi,%r9,4)
.L17:
	movl	%r10d, %edi
	call	fib
	addl	%eax, %edx
	jmp	.L16
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 180
f:
	.zero	180
	.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
	.p2align 4
	.globl	fib
	.type	fib, @function
fib:
.LFB24:
	.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
	movslq	%edi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	f(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	movl	(%r12,%r13,4), %eax
	testl	%eax, %eax
	jne	.L1
	movq	%r13, %rbp
	movl	$1, %eax
	cmpl	$1, %r13d
	ja	.L13
.L3:
	movl	%eax, (%r12,%r13,4)
.L1:
	addq	$8, %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
.L13:
	.cfi_restore_state
	leal	-1(%r13), %eax
	leal	-2(%r13), %ebx
	movslq	%eax, %r15
	movl	(%r12,%r15,4), %r14d
	testl	%r14d, %r14d
	jne	.L4
	movl	$1, %r14d
	cmpl	$1, %eax
	jbe	.L5
	movl	%ebx, %edi
	call	fib
	leal	-3(%r13), %edi
	movl	%eax, %r14d
	call	fib
	addl	%eax, %r14d
.L5:
	movl	%r14d, (%r12,%r15,4)
.L4:
	movslq	%ebx, %r15
	movl	(%r12,%r15,4), %eax
	testl	%eax, %eax
	jne	.L6
	movl	$1, %eax
	cmpl	$1, %ebx
	jbe	.L7
	leal	-3(%rbp), %edi
	call	fib
	leal	-4(%rbp), %edi
	movl	%eax, %ebx
	call	fib
	addl	%ebx, %eax
.L7:
	movl	%eax, (%r12,%r15,4)
.L6:
	addl	%r14d, %eax
	jmp	.L3
	.cfi_endproc
.LFE24:
	.size	fib, .-fib
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %r8
	leaq	f(%rip), %rsi
	movl	(%rsi,%r8,4), %edx
	testl	%edx, %edx
	jne	.L15
	movl	$1, %edx
	cmpl	$1, %r8d
	ja	.L23
.L16:
	movl	%edx, (%rsi,%r8,4)
.L15:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	leal	-1(%r8), %eax
	leal	-2(%r8), %r10d
	movslq	%eax, %r9
	movl	(%rsi,%r9,4), %edx
	testl	%edx, %edx
	jne	.L17
	movl	$1, %edx
	cmpl	$1, %eax
	jbe	.L18
	movl	%r10d, %edi
	call	fib
	leal	-3(%r8), %edi
	movl	%eax, %edx
	call	fib
	addl	%eax, %edx
.L18:
	movl	%edx, (%rsi,%r9,4)
.L17:
	movl	%r10d, %edi
	call	fib
	addl	%eax, %edx
	jmp	.L16
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 180
f:
	.zero	180
	.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>

int fib(int);
int f[45];

int main()
{
  int a,n;

  scanf("%d",&n);

  a = fib(n);
  printf("%d\n",a);

  return 0;
}

int fib(int n){

  int a;

  if(a = f[n])
    return a;
  
  if(n==0 || n==1){
    a = 1;
  }
  else
    a = fib(n-1)+fib(n-2);

  f[n] = a;
  return a;
}

```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int fib(int);
int f[45];

int main()
{
  int a,n;

  scanf("%d",&n);

  a = fib(n);
  printf("%d\n",a);

  return 0;
}

int fib(int n){

  int a;

  if(a = f[n])
    return a;
  
  if(n==0 || n==1){
    a = 1;
  }
  else
    a = fib(n-1)+fib(n-2);

  f[n] = a;
  return a;
}

```

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:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int fib(int);
int f[45];

int main()
{
  int a,n;

  scanf("%d",&n);

  a = fib(n);
  printf("%d\n",a);

  return 0;
}

int fib(int n){

  int a;

  if(a = f[n])
    return a;
  
  if(n==0 || n==1){
    a = 1;
  }
  else
    a = fib(n-1)+fib(n-2);

  f[n] = a;
  return a;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	fib
	.type	fib, @function
fib:
.LFB24:
	.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
	movslq	%edi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	f(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	movl	(%r12,%r13,4), %eax
	testl	%eax, %eax
	jne	.L1
	movq	%r13, %rbp
	movl	$1, %eax
	cmpl	$1, %r13d
	ja	.L13
.L3:
	movl	%eax, (%r12,%r13,4)
.L1:
	addq	$8, %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
.L13:
	.cfi_restore_state
	leal	-1(%r13), %eax
	leal	-2(%r13), %ebx
	movslq	%eax, %r15
	movl	(%r12,%r15,4), %r14d
	testl	%r14d, %r14d
	jne	.L4
	movl	$1, %r14d
	cmpl	$1, %eax
	jbe	.L5
	movl	%ebx, %edi
	call	fib
	leal	-3(%r13), %edi
	movl	%eax, %r14d
	call	fib
	addl	%eax, %r14d
.L5:
	movl	%r14d, (%r12,%r15,4)
.L4:
	movslq	%ebx, %r15
	movl	(%r12,%r15,4), %eax
	testl	%eax, %eax
	jne	.L6
	movl	$1, %eax
	cmpl	$1, %ebx
	jbe	.L7
	leal	-3(%rbp), %edi
	call	fib
	leal	-4(%rbp), %edi
	movl	%eax, %ebx
	call	fib
	addl	%ebx, %eax
.L7:
	movl	%eax, (%r12,%r15,4)
.L6:
	addl	%r14d, %eax
	jmp	.L3
	.cfi_endproc
.LFE24:
	.size	fib, .-fib
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %r8
	leaq	f(%rip), %rsi
	movl	(%rsi,%r8,4), %edx
	testl	%edx, %edx
	jne	.L15
	movl	$1, %edx
	cmpl	$1, %r8d
	ja	.L23
.L16:
	movl	%edx, (%rsi,%r8,4)
.L15:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	leal	-1(%r8), %eax
	leal	-2(%r8), %r10d
	movslq	%eax, %r9
	movl	(%rsi,%r9,4), %edx
	testl	%edx, %edx
	jne	.L17
	movl	$1, %edx
	cmpl	$1, %eax
	jbe	.L18
	movl	%r10d, %edi
	call	fib
	leal	-3(%r8), %edi
	movl	%eax, %edx
	call	fib
	addl	%eax, %edx
.L18:
	movl	%edx, (%rsi,%r9,4)
.L17:
	movl	%r10d, %edi
	call	fib
	addl	%eax, %edx
	jmp	.L16
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 180
f:
	.zero	180
	.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
	.p2align 4
	.globl	fib
	.type	fib, @function
fib:
.LFB24:
	.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
	movslq	%edi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	f(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	movl	(%r12,%r13,4), %eax
	testl	%eax, %eax
	jne	.L1
	movq	%r13, %rbp
	movl	$1, %eax
	cmpl	$1, %r13d
	ja	.L13
.L3:
	movl	%eax, (%r12,%r13,4)
.L1:
	addq	$8, %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
.L13:
	.cfi_restore_state
	leal	-1(%r13), %eax
	leal	-2(%r13), %ebx
	movslq	%eax, %r15
	movl	(%r12,%r15,4), %r14d
	testl	%r14d, %r14d
	jne	.L4
	movl	$1, %r14d
	cmpl	$1, %eax
	jbe	.L5
	movl	%ebx, %edi
	call	fib
	leal	-3(%r13), %edi
	movl	%eax, %r14d
	call	fib
	addl	%eax, %r14d
.L5:
	movl	%r14d, (%r12,%r15,4)
.L4:
	movslq	%ebx, %r15
	movl	(%r12,%r15,4), %eax
	testl	%eax, %eax
	jne	.L6
	movl	$1, %eax
	cmpl	$1, %ebx
	jbe	.L7
	leal	-3(%rbp), %edi
	call	fib
	leal	-4(%rbp), %edi
	movl	%eax, %ebx
	call	fib
	addl	%ebx, %eax
.L7:
	movl	%eax, (%r12,%r15,4)
.L6:
	addl	%r14d, %eax
	jmp	.L3
	.cfi_endproc
.LFE24:
	.size	fib, .-fib
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %r8
	leaq	f(%rip), %rsi
	movl	(%rsi,%r8,4), %edx
	testl	%edx, %edx
	jne	.L15
	movl	$1, %edx
	cmpl	$1, %r8d
	ja	.L23
.L16:
	movl	%edx, (%rsi,%r8,4)
.L15:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	leal	-1(%r8), %eax
	leal	-2(%r8), %r10d
	movslq	%eax, %r9
	movl	(%rsi,%r9,4), %edx
	testl	%edx, %edx
	jne	.L17
	movl	$1, %edx
	cmpl	$1, %eax
	jbe	.L18
	movl	%r10d, %edi
	call	fib
	leal	-3(%r8), %edi
	movl	%eax, %edx
	call	fib
	addl	%eax, %edx
.L18:
	movl	%edx, (%rsi,%r9,4)
.L17:
	movl	%r10d, %edi
	call	fib
	addl	%eax, %edx
	jmp	.L16
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 180
f:
	.zero	180
	.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:
```