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(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;
}```

Assembly Code:

```assembly
	.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:
```

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	"-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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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	"-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:
```