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>
#include<stdlib.h>
int fibonacci(int n,int *x){
  int i;
  x[0]=1;
  x[1]=1;
  for(i=2;i<=n;i++){
    x[i]=x[i-2]+x[i-1];
  }
  return x[n];
}
int main(){
  int n,i,j;
  int *f;
  scanf("%d",&n);
  f=(int *)malloc(n *sizeof(int));
  j=fibonacci(n,f);
  printf("%d\n",j);
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	fibonacci
	.type	fibonacci, @function
fibonacci:
.LFB39:
	.cfi_startproc
	endbr64
	movq	.LC0(%rip), %rax
	movq	%rsi, %rcx
	movq	%rax, (%rsi)
	cmpl	$1, %edi
	jle	.L2
	cmpl	$3, %edi
	jle	.L6
	leal	-4(%rdi), %eax
	movl	$4, %edx
	movl	$1, %r8d
	movl	$1, %esi
	shrl	%eax
	leal	3(%rax), %r9d
	addq	%r9, %r9
.L4:
	addl	%r8d, %esi
	movslq	%edx, %rax
	addl	%esi, %r8d
	movd	%esi, %xmm0
	movd	%r8d, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%r9, %rdx
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	-8(%rcx,%rax,4), %edx
	addl	-4(%rcx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %edi
	jge	.L5
.L2:
	movslq	%edi, %rdi
	movl	(%rcx,%rdi,4), %eax
	ret
.L6:
	movl	$2, %eax
	jmp	.L5
	.cfi_endproc
.LFE39:
	.size	fibonacci, .-fibonacci
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rbp
	leaq	0(,%rbp,4), %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movq	.LC0(%rip), %rax
	movq	%rax, (%rcx)
	cmpl	$1, %ebp
	jle	.L11
	movq	%rbp, %rbx
	cmpl	$3, %ebp
	jle	.L16
	leal	-4(%rbp), %eax
	movl	$4, %edx
	movl	$1, %edi
	movl	$1, %esi
	shrl	%eax
	leal	3(%rax), %r8d
	addq	%r8, %r8
.L13:
	addl	%edi, %esi
	movslq	%edx, %rax
	addl	%esi, %edi
	movd	%esi, %xmm0
	movd	%edi, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%r8, %rdx
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	movl	-8(%rcx,%rax,4), %edx
	addl	-4(%rcx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %ebx
	jge	.L14
.L11:
	movl	(%rcx,%rbp,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$2, %eax
	jmp	.L14
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.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:
```

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	fibonacci
	.type	fibonacci, @function
fibonacci:
.LFB39:
	.cfi_startproc
	endbr64
	movq	.LC0(%rip), %rax
	movq	%rsi, %rcx
	movq	%rax, (%rsi)
	cmpl	$1, %edi
	jle	.L2
	cmpl	$3, %edi
	jle	.L6
	leal	-4(%rdi), %eax
	movl	$4, %edx
	movl	$1, %r8d
	movl	$1, %esi
	shrl	%eax
	leal	3(%rax), %r9d
	addq	%r9, %r9
.L4:
	addl	%r8d, %esi
	movslq	%edx, %rax
	addl	%esi, %r8d
	movd	%esi, %xmm0
	movd	%r8d, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%r9, %rdx
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	-8(%rcx,%rax,4), %edx
	addl	-4(%rcx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %edi
	jge	.L5
.L2:
	movslq	%edi, %rdi
	movl	(%rcx,%rdi,4), %eax
	ret
.L6:
	movl	$2, %eax
	jmp	.L5
	.cfi_endproc
.LFE39:
	.size	fibonacci, .-fibonacci
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rbp
	leaq	0(,%rbp,4), %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movq	.LC0(%rip), %rax
	movq	%rax, (%rcx)
	cmpl	$1, %ebp
	jle	.L11
	movq	%rbp, %rbx
	cmpl	$3, %ebp
	jle	.L16
	leal	-4(%rbp), %eax
	movl	$4, %edx
	movl	$1, %edi
	movl	$1, %esi
	shrl	%eax
	leal	3(%rax), %r8d
	addq	%r8, %r8
.L13:
	addl	%edi, %esi
	movslq	%edx, %rax
	addl	%esi, %edi
	movd	%esi, %xmm0
	movd	%edi, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%r8, %rdx
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	movl	-8(%rcx,%rax,4), %edx
	addl	-4(%rcx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %ebx
	jge	.L14
.L11:
	movl	(%rcx,%rbp,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$2, %eax
	jmp	.L14
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	fibonacci
	.type	fibonacci, @function
fibonacci:
.LFB39:
	.cfi_startproc
	endbr64
	movq	.LC0(%rip), %rax
	movq	%rsi, %rcx
	movq	%rax, (%rsi)
	cmpl	$1, %edi
	jle	.L2
	cmpl	$3, %edi
	jle	.L6
	leal	-4(%rdi), %eax
	movl	$4, %edx
	movl	$1, %r8d
	movl	$1, %esi
	shrl	%eax
	leal	3(%rax), %r9d
	addq	%r9, %r9
.L4:
	addl	%r8d, %esi
	movslq	%edx, %rax
	addl	%esi, %r8d
	movd	%esi, %xmm0
	movd	%r8d, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%r9, %rdx
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	-8(%rcx,%rax,4), %edx
	addl	-4(%rcx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %edi
	jge	.L5
.L2:
	movslq	%edi, %rdi
	movl	(%rcx,%rdi,4), %eax
	ret
.L6:
	movl	$2, %eax
	jmp	.L5
	.cfi_endproc
.LFE39:
	.size	fibonacci, .-fibonacci
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rbp
	leaq	0(,%rbp,4), %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movq	.LC0(%rip), %rax
	movq	%rax, (%rcx)
	cmpl	$1, %ebp
	jle	.L11
	movq	%rbp, %rbx
	cmpl	$3, %ebp
	jle	.L16
	leal	-4(%rbp), %eax
	movl	$4, %edx
	movl	$1, %edi
	movl	$1, %esi
	shrl	%eax
	leal	3(%rax), %r8d
	addq	%r8, %r8
.L13:
	addl	%edi, %esi
	movslq	%edx, %rax
	addl	%esi, %edi
	movd	%esi, %xmm0
	movd	%edi, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%r8, %rdx
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	movl	-8(%rcx,%rax,4), %edx
	addl	-4(%rcx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %ebx
	jge	.L14
.L11:
	movl	(%rcx,%rbp,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$2, %eax
	jmp	.L14
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.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:
```
```c
#include<stdio.h>
#include<stdlib.h>
int fibonacci(int n,int *x){
  int i;
  x[0]=1;
  x[1]=1;
  for(i=2;i<=n;i++){
    x[i]=x[i-2]+x[i-1];
  }
  return x[n];
}
int main(){
  int n,i,j;
  int *f;
  scanf("%d",&n);
  f=(int *)malloc(n *sizeof(int));
  j=fibonacci(n,f);
  printf("%d\n",j);
  return 0;
}

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

```c
#include<stdio.h>
#include<stdlib.h>
int fibonacci(int n,int *x){
  int i;
  x[0]=1;
  x[1]=1;
  for(i=2;i<=n;i++){
    x[i]=x[i-2]+x[i-1];
  }
  return x[n];
}
int main(){
  int n,i,j;
  int *f;
  scanf("%d",&n);
  f=(int *)malloc(n *sizeof(int));
  j=fibonacci(n,f);
  printf("%d\n",j);
  return 0;
}

```

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

1
 2
 5
 34

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>
#include<stdlib.h>
int fibonacci(int n,int *x){
  int i;
  x[0]=1;
  x[1]=1;
  for(i=2;i<=n;i++){
    x[i]=x[i-2]+x[i-1];
  }
  return x[n];
}
int main(){
  int n,i,j;
  int *f;
  scanf("%d",&n);
  f=(int *)malloc(n *sizeof(int));
  j=fibonacci(n,f);
  printf("%d\n",j);
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	fibonacci
	.type	fibonacci, @function
fibonacci:
.LFB39:
	.cfi_startproc
	endbr64
	movq	.LC0(%rip), %rax
	movq	%rsi, %rcx
	movq	%rax, (%rsi)
	cmpl	$1, %edi
	jle	.L2
	cmpl	$3, %edi
	jle	.L6
	leal	-4(%rdi), %eax
	movl	$4, %edx
	movl	$1, %r8d
	movl	$1, %esi
	shrl	%eax
	leal	3(%rax), %r9d
	addq	%r9, %r9
.L4:
	addl	%r8d, %esi
	movslq	%edx, %rax
	addl	%esi, %r8d
	movd	%esi, %xmm0
	movd	%r8d, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%r9, %rdx
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	-8(%rcx,%rax,4), %edx
	addl	-4(%rcx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %edi
	jge	.L5
.L2:
	movslq	%edi, %rdi
	movl	(%rcx,%rdi,4), %eax
	ret
.L6:
	movl	$2, %eax
	jmp	.L5
	.cfi_endproc
.LFE39:
	.size	fibonacci, .-fibonacci
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rbp
	leaq	0(,%rbp,4), %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movq	.LC0(%rip), %rax
	movq	%rax, (%rcx)
	cmpl	$1, %ebp
	jle	.L11
	movq	%rbp, %rbx
	cmpl	$3, %ebp
	jle	.L16
	leal	-4(%rbp), %eax
	movl	$4, %edx
	movl	$1, %edi
	movl	$1, %esi
	shrl	%eax
	leal	3(%rax), %r8d
	addq	%r8, %r8
.L13:
	addl	%edi, %esi
	movslq	%edx, %rax
	addl	%esi, %edi
	movd	%esi, %xmm0
	movd	%edi, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%r8, %rdx
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	movl	-8(%rcx,%rax,4), %edx
	addl	-4(%rcx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %ebx
	jge	.L14
.L11:
	movl	(%rcx,%rbp,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$2, %eax
	jmp	.L14
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.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:
```

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	fibonacci
	.type	fibonacci, @function
fibonacci:
.LFB39:
	.cfi_startproc
	endbr64
	movq	.LC0(%rip), %rax
	movq	%rsi, %rcx
	movq	%rax, (%rsi)
	cmpl	$1, %edi
	jle	.L2
	cmpl	$3, %edi
	jle	.L6
	leal	-4(%rdi), %eax
	movl	$4, %edx
	movl	$1, %r8d
	movl	$1, %esi
	shrl	%eax
	leal	3(%rax), %r9d
	addq	%r9, %r9
.L4:
	addl	%r8d, %esi
	movslq	%edx, %rax
	addl	%esi, %r8d
	movd	%esi, %xmm0
	movd	%r8d, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%r9, %rdx
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	-8(%rcx,%rax,4), %edx
	addl	-4(%rcx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %edi
	jge	.L5
.L2:
	movslq	%edi, %rdi
	movl	(%rcx,%rdi,4), %eax
	ret
.L6:
	movl	$2, %eax
	jmp	.L5
	.cfi_endproc
.LFE39:
	.size	fibonacci, .-fibonacci
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rbp
	leaq	0(,%rbp,4), %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movq	.LC0(%rip), %rax
	movq	%rax, (%rcx)
	cmpl	$1, %ebp
	jle	.L11
	movq	%rbp, %rbx
	cmpl	$3, %ebp
	jle	.L16
	leal	-4(%rbp), %eax
	movl	$4, %edx
	movl	$1, %edi
	movl	$1, %esi
	shrl	%eax
	leal	3(%rax), %r8d
	addq	%r8, %r8
.L13:
	addl	%edi, %esi
	movslq	%edx, %rax
	addl	%esi, %edi
	movd	%esi, %xmm0
	movd	%edi, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%r8, %rdx
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	movl	-8(%rcx,%rax,4), %edx
	addl	-4(%rcx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %ebx
	jge	.L14
.L11:
	movl	(%rcx,%rbp,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$2, %eax
	jmp	.L14
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.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:
```