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(void) {
  int n,b[101]={},ans[101]={},N,t_N,flag;
  scanf("%d",&N);
  t_N=N;
  for(int i=1;i<=t_N;i++){scanf("%d",&b[i]);}
  while(t_N!=0){
    flag=1;
    for(int i=t_N;i>=1;i--){
      if(b[i]==i){
        for(int j=i;j<=t_N-1;j++){b[j]=b[j+1];}
        ans[t_N]=i;
        b[t_N]=0;
        t_N--;
        flag=0;
        break;
      }
    }
    if(flag){
      printf("-1");
      return 0;
    }
  }
  for(int i=1;i<=N;i++){printf("%d\n",ans[i]);}
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d\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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-832(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-416(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-860(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-860(%rbp), %eax
	movl	%eax, -856(%rbp)
	movl	$1, -848(%rbp)
	jmp	.L2
.L3:
	leaq	-832(%rbp), %rdx
	movl	-848(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -848(%rbp)
.L2:
	movl	-848(%rbp), %eax
	cmpl	-856(%rbp), %eax
	jle	.L3
	jmp	.L4
.L12:
	movl	$1, -852(%rbp)
	movl	-856(%rbp), %eax
	movl	%eax, -844(%rbp)
	jmp	.L5
.L10:
	movl	-844(%rbp), %eax
	cltq
	movl	-832(%rbp,%rax,4), %eax
	cmpl	%eax, -844(%rbp)
	jne	.L6
	movl	-844(%rbp), %eax
	movl	%eax, -840(%rbp)
	jmp	.L7
.L8:
	movl	-840(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-832(%rbp,%rax,4), %edx
	movl	-840(%rbp), %eax
	cltq
	movl	%edx, -832(%rbp,%rax,4)
	addl	$1, -840(%rbp)
.L7:
	movl	-856(%rbp), %eax
	cmpl	-840(%rbp), %eax
	jg	.L8
	movl	-856(%rbp), %eax
	cltq
	movl	-844(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
	movl	-856(%rbp), %eax
	cltq
	movl	$0, -832(%rbp,%rax,4)
	subl	$1, -856(%rbp)
	movl	$0, -852(%rbp)
	jmp	.L9
.L6:
	subl	$1, -844(%rbp)
.L5:
	cmpl	$0, -844(%rbp)
	jg	.L10
.L9:
	cmpl	$0, -852(%rbp)
	je	.L4
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L15
.L4:
	cmpl	$0, -856(%rbp)
	jne	.L12
	movl	$1, -836(%rbp)
	jmp	.L13
.L14:
	movl	-836(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -836(%rbp)
.L13:
	movl	-860(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jle	.L14
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$50, %ecx
	leaq	.LC0(%rip), %r15
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %rsi
	movq	%r14, %rdi
	leaq	432(%rsp), %r12
	rep stosq
	movl	$50, %ecx
	movl	$0, (%rdi)
	movq	%r12, %rdi
	rep stosq
	movl	$0, (%rdi)
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %r13
	testl	%r13d, %r13d
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, %r13d
	jge	.L3
.L9:
	testq	%r13, %r13
	je	.L12
	movq	%r13, %rbx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$1, %rbx
	testl	%ebx, %ebx
	jle	.L12
.L10:
	cmpl	%ebx, (%r14,%rbx,4)
	jne	.L5
	cmpl	%r13d, %ebx
	jge	.L6
	movslq	%ebx, %rdi
	leal	-1(%r13), %edx
	salq	$2, %rdi
	subl	%ebx, %edx
	leaq	4(%r14,%rdi), %rsi
	leaq	4(,%rdx,4), %rdx
	addq	%r14, %rdi
	call	memmove@PLT
.L6:
	movl	%ebx, (%r12,%r13,4)
	movl	$0, (%r14,%r13,4)
	subq	$1, %r13
	testl	%r13d, %r13d
	jne	.L9
	cmpl	$0, 12(%rsp)
	jle	.L11
	movl	$1, %ebx
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 12(%rsp)
	jge	.L14
	jmp	.L11
.L2:
	je	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %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
.L24:
	.cfi_restore_state
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$50, %ecx
	leaq	.LC0(%rip), %r15
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %rsi
	movq	%r14, %rdi
	leaq	432(%rsp), %r12
	rep stosq
	movl	$50, %ecx
	movl	$0, (%rdi)
	movq	%r12, %rdi
	rep stosq
	movl	$0, (%rdi)
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %r13
	testl	%r13d, %r13d
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, %r13d
	jge	.L3
.L9:
	testq	%r13, %r13
	je	.L12
	movq	%r13, %rbx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$1, %rbx
	testl	%ebx, %ebx
	jle	.L12
.L10:
	cmpl	%ebx, (%r14,%rbx,4)
	jne	.L5
	cmpl	%r13d, %ebx
	jge	.L6
	movslq	%ebx, %rdi
	leal	-1(%r13), %edx
	salq	$2, %rdi
	subl	%ebx, %edx
	leaq	4(%r14,%rdi), %rsi
	leaq	4(,%rdx,4), %rdx
	addq	%r14, %rdi
	call	memmove@PLT
.L6:
	movl	%ebx, (%r12,%r13,4)
	movl	$0, (%r14,%r13,4)
	subq	$1, %r13
	testl	%r13d, %r13d
	jne	.L9
	cmpl	$0, 12(%rsp)
	jle	.L11
	movl	$1, %ebx
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 12(%rsp)
	jge	.L14
	jmp	.L11
.L2:
	je	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %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
.L24:
	.cfi_restore_state
	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:

#include <stdio.h>

int main(void) {
  int n,b[101]={},ans[101]={},N,t_N,flag;
  scanf("%d",&N);
  t_N=N;
  for(int i=1;i<=t_N;i++){scanf("%d",&b[i]);}
  while(t_N!=0){
    flag=1;
    for(int i=t_N;i>=1;i--){
      if(b[i]==i){
        for(int j=i;j<=t_N-1;j++){b[j]=b[j+1];}
        ans[t_N]=i;
        b[t_N]=0;
        t_N--;
        flag=0;
        break;
      }
    }
    if(flag){
      printf("-1");
      return 0;
    }
  }
  for(int i=1;i<=N;i++){printf("%d\n",ans[i]);}
  return 0;
}
3
1 3 1
 9
1 1 1 1 2 1 2 3 2
 3
1 1 1
 2
1 1
 2
1 2
 9
1 1 1 2 1 1 2 3 2
 3
1 2 2
 9
1 1 1 1 2 1 4 3 2
 9
1 1 1 2 2 1 4 3 2
 9
1 1 1 2 2 1 4 1 2

-1 1
2
2
3
1
2
1
1
1
 1
1
1
 1
1
 1
2
 1
2
2
3
1
1
2
1
1
 1
2
2
 1
2
1
3
2
4
1
1
1
 1
2
1
3
2
4
2
1
1
 1
2
1
1
2
4
2
1
1

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(void) {
  int n,b[101]={},ans[101]={},N,t_N,flag;
  scanf("%d",&N);
  t_N=N;
  for(int i=1;i<=t_N;i++){scanf("%d",&b[i]);}
  while(t_N!=0){
    flag=1;
    for(int i=t_N;i>=1;i--){
      if(b[i]==i){
        for(int j=i;j<=t_N-1;j++){b[j]=b[j+1];}
        ans[t_N]=i;
        b[t_N]=0;
        t_N--;
        flag=0;
        break;
      }
    }
    if(flag){
      printf("-1");
      return 0;
    }
  }
  for(int i=1;i<=N;i++){printf("%d\n",ans[i]);}
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d\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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-832(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-416(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-860(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-860(%rbp), %eax
	movl	%eax, -856(%rbp)
	movl	$1, -848(%rbp)
	jmp	.L2
.L3:
	leaq	-832(%rbp), %rdx
	movl	-848(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -848(%rbp)
.L2:
	movl	-848(%rbp), %eax
	cmpl	-856(%rbp), %eax
	jle	.L3
	jmp	.L4
.L12:
	movl	$1, -852(%rbp)
	movl	-856(%rbp), %eax
	movl	%eax, -844(%rbp)
	jmp	.L5
.L10:
	movl	-844(%rbp), %eax
	cltq
	movl	-832(%rbp,%rax,4), %eax
	cmpl	%eax, -844(%rbp)
	jne	.L6
	movl	-844(%rbp), %eax
	movl	%eax, -840(%rbp)
	jmp	.L7
.L8:
	movl	-840(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-832(%rbp,%rax,4), %edx
	movl	-840(%rbp), %eax
	cltq
	movl	%edx, -832(%rbp,%rax,4)
	addl	$1, -840(%rbp)
.L7:
	movl	-856(%rbp), %eax
	cmpl	-840(%rbp), %eax
	jg	.L8
	movl	-856(%rbp), %eax
	cltq
	movl	-844(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
	movl	-856(%rbp), %eax
	cltq
	movl	$0, -832(%rbp,%rax,4)
	subl	$1, -856(%rbp)
	movl	$0, -852(%rbp)
	jmp	.L9
.L6:
	subl	$1, -844(%rbp)
.L5:
	cmpl	$0, -844(%rbp)
	jg	.L10
.L9:
	cmpl	$0, -852(%rbp)
	je	.L4
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L15
.L4:
	cmpl	$0, -856(%rbp)
	jne	.L12
	movl	$1, -836(%rbp)
	jmp	.L13
.L14:
	movl	-836(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -836(%rbp)
.L13:
	movl	-860(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jle	.L14
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"-1"
.LC2:
	.string	"%d\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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-832(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-416(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-860(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-860(%rbp), %eax
	movl	%eax, -856(%rbp)
	movl	$1, -848(%rbp)
	jmp	.L2
.L3:
	leaq	-832(%rbp), %rdx
	movl	-848(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -848(%rbp)
.L2:
	movl	-848(%rbp), %eax
	cmpl	-856(%rbp), %eax
	jle	.L3
	jmp	.L4
.L12:
	movl	$1, -852(%rbp)
	movl	-856(%rbp), %eax
	movl	%eax, -844(%rbp)
	jmp	.L5
.L10:
	movl	-844(%rbp), %eax
	cltq
	movl	-832(%rbp,%rax,4), %eax
	cmpl	%eax, -844(%rbp)
	jne	.L6
	movl	-844(%rbp), %eax
	movl	%eax, -840(%rbp)
	jmp	.L7
.L8:
	movl	-840(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-832(%rbp,%rax,4), %edx
	movl	-840(%rbp), %eax
	cltq
	movl	%edx, -832(%rbp,%rax,4)
	addl	$1, -840(%rbp)
.L7:
	movl	-856(%rbp), %eax
	cmpl	-840(%rbp), %eax
	jg	.L8
	movl	-856(%rbp), %eax
	cltq
	movl	-844(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
	movl	-856(%rbp), %eax
	cltq
	movl	$0, -832(%rbp,%rax,4)
	subl	$1, -856(%rbp)
	movl	$0, -852(%rbp)
	jmp	.L9
.L6:
	subl	$1, -844(%rbp)
.L5:
	cmpl	$0, -844(%rbp)
	jg	.L10
.L9:
	cmpl	$0, -852(%rbp)
	je	.L4
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L15
.L4:
	cmpl	$0, -856(%rbp)
	jne	.L12
	movl	$1, -836(%rbp)
	jmp	.L13
.L14:
	movl	-836(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -836(%rbp)
.L13:
	movl	-860(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jle	.L14
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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:
