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 main()
{
  int n;
  scanf("%d",&n);
  int a[n];
  int b[n+1];
  for(int i=0;i<n+1;i++){
    b[i]=0;
  }
  
  for(int i=0;i<n-1;i++){
    scanf("%d",&a[i]);
  }
  for(int i=0;i<n-1;i++){
    b[a[i]]+=1;
  }
  for(int i=1;i<n+1;i++){
    printf("%d\n",b[i]);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC0(%rip), %r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	%rsp, %r8
	leaq	0(,%rsi,4), %rdx
	movq	%rsi, %rcx
	leaq	15(%rdx), %rax
	movq	%rax, %rdi
	andq	$-4096, %rax
	subq	%rax, %r8
	andq	$-16, %rdi
	cmpq	%r8, %rsp
	je	.L3
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%r8, %rsp
	jne	.L29
.L3:
	andl	$4095, %edi
	subq	%rdi, %rsp
	testq	%rdi, %rdi
	jne	.L30
.L4:
	addq	$19, %rdx
	movq	%rsp, -72(%rbp)
	movq	%rsp, %rdi
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rdi
.L5:
	cmpq	%rdi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L30:
	orq	$0, -8(%rsp,%rdi)
	jmp	.L4
.L6:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L31
.L7:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	js	.L10
	leaq	4(,%rsi,4), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ecx, -76(%rbp)
	call	memset@PLT
	movl	-76(%rbp), %ecx
	cmpl	$1, %ecx
	jle	.L10
	movq	-72(%rbp), %r15
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	addq	$4, %r15
	leal	-1(%rcx), %eax
	cmpl	%r13d, %eax
	jg	.L9
	testl	%eax, %eax
	jle	.L10
	movq	-72(%rbp), %rsi
	leaq	(%rsi,%rax,4), %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	(%rbx), %rax
	addq	$4, %rbx
	addl	$1, (%r12,%rax,4)
	cmpq	%rdx, %rbx
	jne	.L11
.L10:
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	testl	%ecx, %ecx
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r12,%rbx,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, -60(%rbp)
	jge	.L12
.L13:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L32
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L31:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC0(%rip), %r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	%rsp, %r8
	leaq	0(,%rsi,4), %rdx
	movq	%rsi, %rcx
	leaq	15(%rdx), %rax
	movq	%rax, %rdi
	andq	$-4096, %rax
	subq	%rax, %r8
	andq	$-16, %rdi
	cmpq	%r8, %rsp
	je	.L3
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%r8, %rsp
	jne	.L29
.L3:
	andl	$4095, %edi
	subq	%rdi, %rsp
	testq	%rdi, %rdi
	jne	.L30
.L4:
	addq	$19, %rdx
	movq	%rsp, -72(%rbp)
	movq	%rsp, %rdi
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rdi
.L5:
	cmpq	%rdi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L30:
	orq	$0, -8(%rsp,%rdi)
	jmp	.L4
.L6:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L31
.L7:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	js	.L10
	leaq	4(,%rsi,4), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ecx, -76(%rbp)
	call	memset@PLT
	movl	-76(%rbp), %ecx
	cmpl	$1, %ecx
	jle	.L10
	movq	-72(%rbp), %r15
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	addq	$4, %r15
	leal	-1(%rcx), %eax
	cmpl	%r13d, %eax
	jg	.L9
	testl	%eax, %eax
	jle	.L10
	movq	-72(%rbp), %rsi
	leaq	(%rsi,%rax,4), %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	(%rbx), %rax
	addq	$4, %rbx
	addl	$1, (%r12,%rax,4)
	cmpq	%rdx, %rbx
	jne	.L11
.L10:
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	testl	%ecx, %ecx
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r12,%rbx,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, -60(%rbp)
	jge	.L12
.L13:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L32
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L31:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
```assembly
	.file	"temp.c"
	.text
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC0(%rip), %r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	%rsp, %r8
	leaq	0(,%rsi,4), %rdx
	movq	%rsi, %rcx
	leaq	15(%rdx), %rax
	movq	%rax, %rdi
	andq	$-4096, %rax
	subq	%rax, %r8
	andq	$-16, %rdi
	cmpq	%r8, %rsp
	je	.L3
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%r8, %rsp
	jne	.L29
.L3:
	andl	$4095, %edi
	subq	%rdi, %rsp
	testq	%rdi, %rdi
	jne	.L30
.L4:
	addq	$19, %rdx
	movq	%rsp, -72(%rbp)
	movq	%rsp, %rdi
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rdi
.L5:
	cmpq	%rdi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L30:
	orq	$0, -8(%rsp,%rdi)
	jmp	.L4
.L6:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L31
.L7:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	js	.L10
	leaq	4(,%rsi,4), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ecx, -76(%rbp)
	call	memset@PLT
	movl	-76(%rbp), %ecx
	cmpl	$1, %ecx
	jle	.L10
	movq	-72(%rbp), %r15
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	addq	$4, %r15
	leal	-1(%rcx), %eax
	cmpl	%r13d, %eax
	jg	.L9
	testl	%eax, %eax
	jle	.L10
	movq	-72(%rbp), %rsi
	leaq	(%rsi,%rax,4), %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	(%rbx), %rax
	addq	$4, %rbx
	addl	$1, (%r12,%rax,4)
	cmpq	%rdx, %rbx
	jne	.L11
.L10:
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	testl	%ecx, %ecx
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r12,%rbx,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, -60(%rbp)
	jge	.L12
.L13:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L32
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L31:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
```c
#include <stdio.h>

int main()
{
  int n;
  scanf("%d",&n);
  int a[n];
  int b[n+1];
  for(int i=0;i<n+1;i++){
    b[i]=0;
  }
  
  for(int i=0;i<n-1;i++){
    scanf("%d",&a[i]);
  }
  for(int i=0;i<n-1;i++){
    b[a[i]]+=1;
  }
  for(int i=1;i<n+1;i++){
    printf("%d\n",b[i]);
  }
  return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main()
{
  int n;
  scanf("%d",&n);
  int a[n];
  int b[n+1];
  for(int i=0;i<n+1;i++){
    b[i]=0;
  }
  
  for(int i=0;i<n-1;i++){
    scanf("%d",&a[i]);
  }
  for(int i=0;i<n-1;i++){
    b[a[i]]+=1;
  }
  for(int i=1;i<n+1;i++){
    printf("%d\n",b[i]);
  }
  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:

5
1 1 2 3
 7
1 2 1 4 5 6
 10
1 1 1 1 1 2 1 1 1
 5
1 2 2 3
 7
1 2 3 4 5 4
 5
1 2 2 2
 7
1 2 2 4 5 6
 10
1 1 1 2 1 2 1 1 1
 7
1 2 3 4 5 2
 7
1 2 2 4 1 6

2
1
1
0
0
 2
1
0
1
1
1
0
 8
1
0
0
0
0
0
0
0
0
 1
2
1
0
0
 1
1
1
2
1
0
0
 1
3
0
0
0
 1
2
0
1
1
1
0
 7
2
0
0
0
0
0
0
0
0
 1
2
1
1
1
0
0
 2
2
0
1
0
1
0

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 main()
{
  int n;
  scanf("%d",&n);
  int a[n];
  int b[n+1];
  for(int i=0;i<n+1;i++){
    b[i]=0;
  }
  
  for(int i=0;i<n-1;i++){
    scanf("%d",&a[i]);
  }
  for(int i=0;i<n-1;i++){
    b[a[i]]+=1;
  }
  for(int i=1;i<n+1;i++){
    printf("%d\n",b[i]);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC0(%rip), %r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	%rsp, %r8
	leaq	0(,%rsi,4), %rdx
	movq	%rsi, %rcx
	leaq	15(%rdx), %rax
	movq	%rax, %rdi
	andq	$-4096, %rax
	subq	%rax, %r8
	andq	$-16, %rdi
	cmpq	%r8, %rsp
	je	.L3
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%r8, %rsp
	jne	.L29
.L3:
	andl	$4095, %edi
	subq	%rdi, %rsp
	testq	%rdi, %rdi
	jne	.L30
.L4:
	addq	$19, %rdx
	movq	%rsp, -72(%rbp)
	movq	%rsp, %rdi
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rdi
.L5:
	cmpq	%rdi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L30:
	orq	$0, -8(%rsp,%rdi)
	jmp	.L4
.L6:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L31
.L7:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	js	.L10
	leaq	4(,%rsi,4), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ecx, -76(%rbp)
	call	memset@PLT
	movl	-76(%rbp), %ecx
	cmpl	$1, %ecx
	jle	.L10
	movq	-72(%rbp), %r15
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	addq	$4, %r15
	leal	-1(%rcx), %eax
	cmpl	%r13d, %eax
	jg	.L9
	testl	%eax, %eax
	jle	.L10
	movq	-72(%rbp), %rsi
	leaq	(%rsi,%rax,4), %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	(%rbx), %rax
	addq	$4, %rbx
	addl	$1, (%r12,%rax,4)
	cmpq	%rdx, %rbx
	jne	.L11
.L10:
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	testl	%ecx, %ecx
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r12,%rbx,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, -60(%rbp)
	jge	.L12
.L13:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L32
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L31:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC0(%rip), %r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	%rsp, %r8
	leaq	0(,%rsi,4), %rdx
	movq	%rsi, %rcx
	leaq	15(%rdx), %rax
	movq	%rax, %rdi
	andq	$-4096, %rax
	subq	%rax, %r8
	andq	$-16, %rdi
	cmpq	%r8, %rsp
	je	.L3
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%r8, %rsp
	jne	.L29
.L3:
	andl	$4095, %edi
	subq	%rdi, %rsp
	testq	%rdi, %rdi
	jne	.L30
.L4:
	addq	$19, %rdx
	movq	%rsp, -72(%rbp)
	movq	%rsp, %rdi
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rdi
.L5:
	cmpq	%rdi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L30:
	orq	$0, -8(%rsp,%rdi)
	jmp	.L4
.L6:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L31
.L7:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	js	.L10
	leaq	4(,%rsi,4), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ecx, -76(%rbp)
	call	memset@PLT
	movl	-76(%rbp), %ecx
	cmpl	$1, %ecx
	jle	.L10
	movq	-72(%rbp), %r15
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	addq	$4, %r15
	leal	-1(%rcx), %eax
	cmpl	%r13d, %eax
	jg	.L9
	testl	%eax, %eax
	jle	.L10
	movq	-72(%rbp), %rsi
	leaq	(%rsi,%rax,4), %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	(%rbx), %rax
	addq	$4, %rbx
	addl	$1, (%r12,%rax,4)
	cmpq	%rdx, %rbx
	jne	.L11
.L10:
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	testl	%ecx, %ecx
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r12,%rbx,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, -60(%rbp)
	jge	.L12
.L13:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L32
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L31:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```