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

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600072(%rbp)
	jmp	.L2
.L3:
	leaq	-1600064(%rbp), %rdx
	movl	-1600072(%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, -1600072(%rbp)
.L2:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L3
	movl	$0, -1600072(%rbp)
	jmp	.L4
.L5:
	movl	-1600072(%rbp), %eax
	cltq
	movl	$0, -800032(%rbp,%rax,4)
	addl	$1, -1600072(%rbp)
.L4:
	movl	-1600076(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -1600072(%rbp)
	jle	.L5
	movl	-1600076(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -1600072(%rbp)
	jmp	.L6
.L7:
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	addl	$1, %eax
	cltq
	movl	-800032(%rbp,%rax,4), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	addl	$1, %edx
	cltq
	movl	%edx, -800032(%rbp,%rax,4)
	subl	$1, -1600072(%rbp)
.L6:
	cmpl	$0, -1600072(%rbp)
	jns	.L7
	movl	$0, -1600068(%rbp)
	movl	$0, -1600072(%rbp)
	jmp	.L8
.L10:
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	cmpl	%eax, -1600068(%rbp)
	jge	.L9
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	movl	%eax, -1600068(%rbp)
.L9:
	addl	$1, -1600072(%rbp)
.L8:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jle	.L10
	movl	-1600076(%rbp), %eax
	subl	-1600068(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597488
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2640, %rsp
	.cfi_def_cfa_offset 1600128
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600072(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r13
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	movl	%ebx, %ebp
	addl	$1, %ebp
	js	.L4
.L11:
	movslq	%ebp, %rax
	leaq	800048(%rsp), %rdi
	xorl	%esi, %esi
	leaq	4(,%rax,4), %rdx
	call	memset@PLT
.L4:
	testl	%ebx, %ebx
	jle	.L5
	movslq	%ebx, %rsi
	leal	-1(%rbx), %eax
	salq	$2, %rsi
	salq	$2, %rax
	leaq	16(%rsp,%rsi), %rdx
	addq	%r13, %rsi
	subq	%rax, %rsi
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	-4(%rdx), %rcx
	subq	$4, %rdx
	movq	%rcx, %rax
	addl	$1, %eax
	cltq
	movl	800048(%rsp,%rax,4), %eax
	addl	$1, %eax
	movl	%eax, 800048(%rsp,%rcx,4)
	cmpq	%rsi, %rdx
	jne	.L6
.L5:
	testl	%ebx, %ebx
	js	.L13
	cmpl	$2, %ebx
	jle	.L14
	movl	%ebp, %edx
	leaq	800048(%rsp), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	800064(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	pcmpgtd	-16(%rax), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rax), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rdx, %rax
	jne	.L9
	movdqa	%xmm0, %xmm2
	movl	%ebp, %edx
	psrldq	$8, %xmm2
	andl	$-4, %edx
	andl	$3, %ebp
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %eax
	je	.L7
.L8:
	movslq	%edx, %rcx
	movl	800048(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	leal	1(%rdx), %ecx
	cmpl	%ebx, %ecx
	jg	.L7
	movslq	%ecx, %rcx
	movl	800048(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	addl	$2, %edx
	cmpl	%ebx, %edx
	jg	.L7
	movslq	%edx, %rdx
	movl	800048(%rsp,%rdx,4), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
.L7:
	subl	%eax, %ebx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	%ebx, %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1600072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$1600080, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	%ebx, %ebp
	addl	$1, %ebp
	jns	.L11
	jmp	.L5
.L13:
	xorl	%eax, %eax
	jmp	.L7
.L14:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L8
.L21:
	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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597488
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2640, %rsp
	.cfi_def_cfa_offset 1600128
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600072(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r13
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	movl	%ebx, %ebp
	addl	$1, %ebp
	js	.L4
.L11:
	movslq	%ebp, %rax
	leaq	800048(%rsp), %rdi
	xorl	%esi, %esi
	leaq	4(,%rax,4), %rdx
	call	memset@PLT
.L4:
	testl	%ebx, %ebx
	jle	.L5
	movslq	%ebx, %rsi
	leal	-1(%rbx), %eax
	salq	$2, %rsi
	salq	$2, %rax
	leaq	16(%rsp,%rsi), %rdx
	addq	%r13, %rsi
	subq	%rax, %rsi
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	-4(%rdx), %rcx
	subq	$4, %rdx
	movq	%rcx, %rax
	addl	$1, %eax
	cltq
	movl	800048(%rsp,%rax,4), %eax
	addl	$1, %eax
	movl	%eax, 800048(%rsp,%rcx,4)
	cmpq	%rsi, %rdx
	jne	.L6
.L5:
	testl	%ebx, %ebx
	js	.L13
	cmpl	$2, %ebx
	jle	.L14
	movl	%ebp, %edx
	leaq	800048(%rsp), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	800064(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	pcmpgtd	-16(%rax), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rax), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rdx, %rax
	jne	.L9
	movdqa	%xmm0, %xmm2
	movl	%ebp, %edx
	psrldq	$8, %xmm2
	andl	$-4, %edx
	andl	$3, %ebp
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %eax
	je	.L7
.L8:
	movslq	%edx, %rcx
	movl	800048(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	leal	1(%rdx), %ecx
	cmpl	%ebx, %ecx
	jg	.L7
	movslq	%ecx, %rcx
	movl	800048(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	addl	$2, %edx
	cmpl	%ebx, %edx
	jg	.L7
	movslq	%edx, %rdx
	movl	800048(%rsp,%rdx,4), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
.L7:
	subl	%eax, %ebx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	%ebx, %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1600072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$1600080, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	%ebx, %ebp
	addl	$1, %ebp
	jns	.L11
	jmp	.L5
.L13:
	xorl	%eax, %eax
	jmp	.L7
.L14:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L8
.L21:
	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()
{
	int n;
	scanf("%d", &n);
	int i;
	int p[200005];
	for (i = 0; i < n; i++)
		scanf("%d", &p[i]);
	int a[200005];
	for (i = 0; i <= n + 1; i++)
		a[i] = 0;
	for (i = n - 1; i >= 0; i--)
		a[p[i]] = a[p[i] + 1] + 1;
	int max = 0;
	for (i = 0; i <= n; i++)
		if (max < a[i])
			max = a[i];
	printf("%d\n", n - max);
	return 0;
}
6
2
3
5
1
4
6
 8
6
3
2
1
7
4
8
5
 4
1
4
2
3
 6
3
1
5
2
4
6
 4
3
1
2
4
 8
6
3
1
2
5
4
8
7
 4
2
4
1
3
 8
6
3
2
1
4
7
8
5
 6
2
5
3
1
4
6
 8
6
3
2
1
7
4
5
8

3
 5
 1
 4
 2
 6
 2
 5
 3
 5

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

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600072(%rbp)
	jmp	.L2
.L3:
	leaq	-1600064(%rbp), %rdx
	movl	-1600072(%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, -1600072(%rbp)
.L2:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L3
	movl	$0, -1600072(%rbp)
	jmp	.L4
.L5:
	movl	-1600072(%rbp), %eax
	cltq
	movl	$0, -800032(%rbp,%rax,4)
	addl	$1, -1600072(%rbp)
.L4:
	movl	-1600076(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -1600072(%rbp)
	jle	.L5
	movl	-1600076(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -1600072(%rbp)
	jmp	.L6
.L7:
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	addl	$1, %eax
	cltq
	movl	-800032(%rbp,%rax,4), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	addl	$1, %edx
	cltq
	movl	%edx, -800032(%rbp,%rax,4)
	subl	$1, -1600072(%rbp)
.L6:
	cmpl	$0, -1600072(%rbp)
	jns	.L7
	movl	$0, -1600068(%rbp)
	movl	$0, -1600072(%rbp)
	jmp	.L8
.L10:
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	cmpl	%eax, -1600068(%rbp)
	jge	.L9
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	movl	%eax, -1600068(%rbp)
.L9:
	addl	$1, -1600072(%rbp)
.L8:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jle	.L10
	movl	-1600076(%rbp), %eax
	subl	-1600068(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"%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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600072(%rbp)
	jmp	.L2
.L3:
	leaq	-1600064(%rbp), %rdx
	movl	-1600072(%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, -1600072(%rbp)
.L2:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L3
	movl	$0, -1600072(%rbp)
	jmp	.L4
.L5:
	movl	-1600072(%rbp), %eax
	cltq
	movl	$0, -800032(%rbp,%rax,4)
	addl	$1, -1600072(%rbp)
.L4:
	movl	-1600076(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -1600072(%rbp)
	jle	.L5
	movl	-1600076(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -1600072(%rbp)
	jmp	.L6
.L7:
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	addl	$1, %eax
	cltq
	movl	-800032(%rbp,%rax,4), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	addl	$1, %edx
	cltq
	movl	%edx, -800032(%rbp,%rax,4)
	subl	$1, -1600072(%rbp)
.L6:
	cmpl	$0, -1600072(%rbp)
	jns	.L7
	movl	$0, -1600068(%rbp)
	movl	$0, -1600072(%rbp)
	jmp	.L8
.L10:
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	cmpl	%eax, -1600068(%rbp)
	jge	.L9
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	movl	%eax, -1600068(%rbp)
.L9:
	addl	$1, -1600072(%rbp)
.L8:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jle	.L10
	movl	-1600076(%rbp), %eax
	subl	-1600068(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
