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 n;
int b[105];
int order[105];

int main()
{

	scanf("%d", &n);
	for (int i = 1; i <= n; i++) {
		scanf("%d", &b[i]);
	}

	for (int i = n; i >= 1; i--) {
		int j = n;

		while (j > 0 && b[j] != j) {
			j--;
		}

		if (j <= 0) {
			printf("-1\n");
			return 0;
		}

		order[i] = j;

		//???
		while (j <= n) {
			b[j] = b[j + 1];
			j++;
		}

	}

	for (int i = 1; i <= n; i++) {
		printf("%d\n", order[i]);
	}

	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"-1"
	.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
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L15
	leaq	4+b(%rip), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	n(%rip), %r14d
	addq	$4, %rbp
	cmpl	%ebx, %r14d
	jge	.L3
	testl	%r14d, %r14d
	jle	.L15
	movslq	%r14d, %rbp
	leaq	order(%rip), %r13
	leal	-1(%r14), %eax
	movq	%rbp, %rdx
	leaq	0(%r13,%rbp,4), %r15
	leaq	b(%rip), %rbx
	subq	%rax, %rdx
	leaq	-4(%r13), %rax
	leaq	(%rax,%rdx,4), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	subq	$1, %rax
	testl	%eax, %eax
	jle	.L5
.L9:
	movl	%eax, %edx
	cmpl	%eax, (%rbx,%rax,4)
	jne	.L6
	movl	%eax, (%r15)
	cmpl	%eax, %r14d
	jl	.L14
	movslq	%edx, %rdi
	movl	%r14d, %eax
	salq	$2, %rdi
	subl	%edx, %eax
	leaq	4(%rbx,%rdi), %rsi
	leaq	4(,%rax,4), %rdx
	addq	%rbx, %rdi
	call	memmove@PLT
.L14:
	subq	$4, %r15
	cmpq	%r12, %r15
	jne	.L4
	cmpl	$0, n(%rip)
	jle	.L15
	movl	$1, %ebx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	0(%r13,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, n(%rip)
	jge	.L11
.L15:
	addq	$8, %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
.L5:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L15
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	order
	.bss
	.align 32
	.type	order, @object
	.size	order, 420
order:
	.zero	420
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 420
b:
	.zero	420
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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"
.LC2:
	.string	"-1"
	.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
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L15
	leaq	4+b(%rip), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	n(%rip), %r14d
	addq	$4, %rbp
	cmpl	%ebx, %r14d
	jge	.L3
	testl	%r14d, %r14d
	jle	.L15
	movslq	%r14d, %rbp
	leaq	order(%rip), %r13
	leal	-1(%r14), %eax
	movq	%rbp, %rdx
	leaq	0(%r13,%rbp,4), %r15
	leaq	b(%rip), %rbx
	subq	%rax, %rdx
	leaq	-4(%r13), %rax
	leaq	(%rax,%rdx,4), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	subq	$1, %rax
	testl	%eax, %eax
	jle	.L5
.L9:
	movl	%eax, %edx
	cmpl	%eax, (%rbx,%rax,4)
	jne	.L6
	movl	%eax, (%r15)
	cmpl	%eax, %r14d
	jl	.L14
	movslq	%edx, %rdi
	movl	%r14d, %eax
	salq	$2, %rdi
	subl	%edx, %eax
	leaq	4(%rbx,%rdi), %rsi
	leaq	4(,%rax,4), %rdx
	addq	%rbx, %rdi
	call	memmove@PLT
.L14:
	subq	$4, %r15
	cmpq	%r12, %r15
	jne	.L4
	cmpl	$0, n(%rip)
	jle	.L15
	movl	$1, %ebx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	0(%r13,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, n(%rip)
	jge	.L11
.L15:
	addq	$8, %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
.L5:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L15
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	order
	.bss
	.align 32
	.type	order, @object
	.size	order, 420
order:
	.zero	420
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 420
b:
	.zero	420
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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"
.LC2:
	.string	"-1"
	.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
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L15
	leaq	4+b(%rip), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	n(%rip), %r14d
	addq	$4, %rbp
	cmpl	%ebx, %r14d
	jge	.L3
	testl	%r14d, %r14d
	jle	.L15
	movslq	%r14d, %rbp
	leaq	order(%rip), %r13
	leal	-1(%r14), %eax
	movq	%rbp, %rdx
	leaq	0(%r13,%rbp,4), %r15
	leaq	b(%rip), %rbx
	subq	%rax, %rdx
	leaq	-4(%r13), %rax
	leaq	(%rax,%rdx,4), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	subq	$1, %rax
	testl	%eax, %eax
	jle	.L5
.L9:
	movl	%eax, %edx
	cmpl	%eax, (%rbx,%rax,4)
	jne	.L6
	movl	%eax, (%r15)
	cmpl	%eax, %r14d
	jl	.L14
	movslq	%edx, %rdi
	movl	%r14d, %eax
	salq	$2, %rdi
	subl	%edx, %eax
	leaq	4(%rbx,%rdi), %rsi
	leaq	4(,%rax,4), %rdx
	addq	%rbx, %rdi
	call	memmove@PLT
.L14:
	subq	$4, %r15
	cmpq	%r12, %r15
	jne	.L4
	cmpl	$0, n(%rip)
	jle	.L15
	movl	$1, %ebx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	0(%r13,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, n(%rip)
	jge	.L11
.L15:
	addq	$8, %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
.L5:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L15
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	order
	.bss
	.align 32
	.type	order, @object
	.size	order, 420
order:
	.zero	420
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 420
b:
	.zero	420
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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 n;
int b[105];
int order[105];

int main()
{

	scanf("%d", &n);
	for (int i = 1; i <= n; i++) {
		scanf("%d", &b[i]);
	}

	for (int i = n; i >= 1; i--) {
		int j = n;

		while (j > 0 && b[j] != j) {
			j--;
		}

		if (j <= 0) {
			printf("-1\n");
			return 0;
		}

		order[i] = j;

		//???
		while (j <= n) {
			b[j] = b[j + 1];
			j++;
		}

	}

	for (int i = 1; i <= n; i++) {
		printf("%d\n", order[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 n;
int b[105];
int order[105];

int main()
{

	scanf("%d", &n);
	for (int i = 1; i <= n; i++) {
		scanf("%d", &b[i]);
	}

	for (int i = n; i >= 1; i--) {
		int j = n;

		while (j > 0 && b[j] != j) {
			j--;
		}

		if (j <= 0) {
			printf("-1\n");
			return 0;
		}

		order[i] = j;

		//???
		while (j <= n) {
			b[j] = b[j + 1];
			j++;
		}

	}

	for (int i = 1; i <= n; i++) {
		printf("%d\n", order[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 n;
int b[105];
int order[105];

int main()
{

	scanf("%d", &n);
	for (int i = 1; i <= n; i++) {
		scanf("%d", &b[i]);
	}

	for (int i = n; i >= 1; i--) {
		int j = n;

		while (j > 0 && b[j] != j) {
			j--;
		}

		if (j <= 0) {
			printf("-1\n");
			return 0;
		}

		order[i] = j;

		//???
		while (j <= n) {
			b[j] = b[j + 1];
			j++;
		}

	}

	for (int i = 1; i <= n; i++) {
		printf("%d\n", order[i]);
	}

	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"-1"
	.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
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L15
	leaq	4+b(%rip), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	n(%rip), %r14d
	addq	$4, %rbp
	cmpl	%ebx, %r14d
	jge	.L3
	testl	%r14d, %r14d
	jle	.L15
	movslq	%r14d, %rbp
	leaq	order(%rip), %r13
	leal	-1(%r14), %eax
	movq	%rbp, %rdx
	leaq	0(%r13,%rbp,4), %r15
	leaq	b(%rip), %rbx
	subq	%rax, %rdx
	leaq	-4(%r13), %rax
	leaq	(%rax,%rdx,4), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	subq	$1, %rax
	testl	%eax, %eax
	jle	.L5
.L9:
	movl	%eax, %edx
	cmpl	%eax, (%rbx,%rax,4)
	jne	.L6
	movl	%eax, (%r15)
	cmpl	%eax, %r14d
	jl	.L14
	movslq	%edx, %rdi
	movl	%r14d, %eax
	salq	$2, %rdi
	subl	%edx, %eax
	leaq	4(%rbx,%rdi), %rsi
	leaq	4(,%rax,4), %rdx
	addq	%rbx, %rdi
	call	memmove@PLT
.L14:
	subq	$4, %r15
	cmpq	%r12, %r15
	jne	.L4
	cmpl	$0, n(%rip)
	jle	.L15
	movl	$1, %ebx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	0(%r13,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, n(%rip)
	jge	.L11
.L15:
	addq	$8, %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
.L5:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L15
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	order
	.bss
	.align 32
	.type	order, @object
	.size	order, 420
order:
	.zero	420
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 420
b:
	.zero	420
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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"
.LC2:
	.string	"-1"
	.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
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L15
	leaq	4+b(%rip), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	n(%rip), %r14d
	addq	$4, %rbp
	cmpl	%ebx, %r14d
	jge	.L3
	testl	%r14d, %r14d
	jle	.L15
	movslq	%r14d, %rbp
	leaq	order(%rip), %r13
	leal	-1(%r14), %eax
	movq	%rbp, %rdx
	leaq	0(%r13,%rbp,4), %r15
	leaq	b(%rip), %rbx
	subq	%rax, %rdx
	leaq	-4(%r13), %rax
	leaq	(%rax,%rdx,4), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	subq	$1, %rax
	testl	%eax, %eax
	jle	.L5
.L9:
	movl	%eax, %edx
	cmpl	%eax, (%rbx,%rax,4)
	jne	.L6
	movl	%eax, (%r15)
	cmpl	%eax, %r14d
	jl	.L14
	movslq	%edx, %rdi
	movl	%r14d, %eax
	salq	$2, %rdi
	subl	%edx, %eax
	leaq	4(%rbx,%rdi), %rsi
	leaq	4(,%rax,4), %rdx
	addq	%rbx, %rdi
	call	memmove@PLT
.L14:
	subq	$4, %r15
	cmpq	%r12, %r15
	jne	.L4
	cmpl	$0, n(%rip)
	jle	.L15
	movl	$1, %ebx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	0(%r13,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, n(%rip)
	jge	.L11
.L15:
	addq	$8, %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
.L5:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L15
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	order
	.bss
	.align 32
	.type	order, @object
	.size	order, 420
order:
	.zero	420
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 420
b:
	.zero	420
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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:
```