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>
#include <string.h>
#include <math.h>


int main(void) {
	int n, m;
	scanf("%d %d", &n, &m);
	int ans = 1;
	int a, oldA = 0;
	long long dp[100002] = { 0 };
	long long mod = 1000000007;
	dp[0] = 0;
	dp[1] = 1;
	for (int i = 0; i < m; ++i) {
		scanf("%d", &a);
		if (oldA && a - oldA == 1) {
			ans = 0;
		}
		oldA = a;
		dp[a + 1] = -1;
	}


	if (ans) {
		for (int i = 2; i < n + 2; ++i) {
			if (dp[i] == -1) {
				dp[i] = 0;
				continue;
			}
			dp[i] += dp[i - 1] != -1 ? dp[i - 1] : 0;
			dp[i] += dp[i - 2] != -1 ? dp[i - 2] : 0;
			dp[i] %= mod;

		}
		printf("%lld", dp[n + 1]);
	}
	else
	{
		printf("0");
	}




	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1360, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800064(%rbp), %rdx
	leaq	-800068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -800056(%rbp)
	movl	$0, -800052(%rbp)
	leaq	-800032(%rbp), %rax
	movl	$800016, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$1000000007, -800040(%rbp)
	movq	$0, -800032(%rbp)
	movq	$1, -800024(%rbp)
	movl	$0, -800048(%rbp)
	jmp	.L2
.L4:
	leaq	-800060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -800052(%rbp)
	je	.L3
	movl	-800060(%rbp), %eax
	subl	-800052(%rbp), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	$0, -800056(%rbp)
.L3:
	movl	-800060(%rbp), %eax
	movl	%eax, -800052(%rbp)
	movl	-800060(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	$-1, -800032(%rbp,%rax,8)
	addl	$1, -800048(%rbp)
.L2:
	movl	-800064(%rbp), %eax
	cmpl	%eax, -800048(%rbp)
	jl	.L4
	cmpl	$0, -800056(%rbp)
	je	.L5
	movl	$2, -800044(%rbp)
	jmp	.L6
.L13:
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cmpq	$-1, %rax
	jne	.L7
	movl	-800044(%rbp), %eax
	cltq
	movq	$0, -800032(%rbp,%rax,8)
	jmp	.L8
.L7:
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rdx
	movl	-800044(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cmpq	$-1, %rax
	je	.L9
	movl	-800044(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	jmp	.L10
.L9:
	movl	$0, %eax
.L10:
	addq	%rax, %rdx
	movl	-800044(%rbp), %eax
	cltq
	movq	%rdx, -800032(%rbp,%rax,8)
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rdx
	movl	-800044(%rbp), %eax
	subl	$2, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cmpq	$-1, %rax
	je	.L11
	movl	-800044(%rbp), %eax
	subl	$2, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	jmp	.L12
.L11:
	movl	$0, %eax
.L12:
	addq	%rax, %rdx
	movl	-800044(%rbp), %eax
	cltq
	movq	%rdx, -800032(%rbp,%rax,8)
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cqto
	idivq	-800040(%rbp)
	movl	-800044(%rbp), %eax
	cltq
	movq	%rdx, -800032(%rbp,%rax,8)
.L8:
	addl	$1, -800044(%rbp)
.L6:
	movl	-800068(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -800044(%rbp)
	jle	.L13
	movl	-800068(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L5:
	movl	$48, %edi
	call	putchar@PLT
.L14:
	movl	$0, %eax
	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 %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	32(%rsp), %rax
	movl	$800016, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	memset@PLT
	movl	24(%rsp), %eax
	movq	$1, 40(%rsp)
	testl	%eax, %eax
	jle	.L7
	leaq	28(%rsp), %r13
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	movl	$1, %ebx
	leaq	.LC1(%rip), %r12
	movq	%r13, %rsi
	movl	$1, %ebp
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r15d
	cmpl	$1, 24(%rsp)
	leal	1(%r15), %eax
	cltq
	movq	$-1, 32(%rsp,%rax,8)
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%r15d, %r15d
	je	.L5
	movl	%eax, %ecx
	subl	%r15d, %ecx
	cmpl	$1, %ecx
	cmove	%r14d, %ebp
.L5:
	movl	%eax, %r15d
	leal	1(%rax), %eax
	addl	$1, %ebx
	cltq
	movq	$-1, 32(%rsp,%rax,8)
	cmpl	%ebx, 24(%rsp)
	jg	.L6
	testl	%ebp, %ebp
	je	.L32
.L7:
	movl	20(%rsp), %eax
	leal	1(%rax), %r8d
	cmpl	$1, %r8d
	jle	.L4
	subl	$1, %eax
	movq	8(%rsp), %rsi
	movabsq	$-8543223828751151131, %r9
	leaq	40(%rsp,%rax,8), %rdi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L33:
	movq	8(%rsi), %rax
	leaq	(%rcx,%rax), %rdx
	cmpq	$-1, %rax
	movq	(%rsi), %rax
	cmovne	%rdx, %rcx
	cmpq	$-1, %rax
	leaq	(%rcx,%rax), %rdx
	cmovne	%rdx, %rcx
	addq	$8, %rsi
	movq	%rcx, %rax
	imulq	%r9
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	%rdx, 8(%rsi)
	cmpq	%rsi, %rdi
	je	.L4
.L13:
	movq	16(%rsi), %rcx
	cmpq	$-1, %rcx
	jne	.L33
	xorl	%edx, %edx
	addq	$8, %rsi
	movq	%rdx, 8(%rsi)
	cmpq	%rsi, %rdi
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%r8d, %r8
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	32(%rsp,%r8,8), %rdx
	call	__printf_chk@PLT
.L9:
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$800072, %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
.L32:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L9
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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 %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	32(%rsp), %rax
	movl	$800016, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	memset@PLT
	movl	24(%rsp), %eax
	movq	$1, 40(%rsp)
	testl	%eax, %eax
	jle	.L7
	leaq	28(%rsp), %r13
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	movl	$1, %ebx
	leaq	.LC1(%rip), %r12
	movq	%r13, %rsi
	movl	$1, %ebp
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r15d
	cmpl	$1, 24(%rsp)
	leal	1(%r15), %eax
	cltq
	movq	$-1, 32(%rsp,%rax,8)
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%r15d, %r15d
	je	.L5
	movl	%eax, %ecx
	subl	%r15d, %ecx
	cmpl	$1, %ecx
	cmove	%r14d, %ebp
.L5:
	movl	%eax, %r15d
	leal	1(%rax), %eax
	addl	$1, %ebx
	cltq
	movq	$-1, 32(%rsp,%rax,8)
	cmpl	%ebx, 24(%rsp)
	jg	.L6
	testl	%ebp, %ebp
	je	.L32
.L7:
	movl	20(%rsp), %eax
	leal	1(%rax), %r8d
	cmpl	$1, %r8d
	jle	.L4
	subl	$1, %eax
	movq	8(%rsp), %rsi
	movabsq	$-8543223828751151131, %r9
	leaq	40(%rsp,%rax,8), %rdi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L33:
	movq	8(%rsi), %rax
	leaq	(%rcx,%rax), %rdx
	cmpq	$-1, %rax
	movq	(%rsi), %rax
	cmovne	%rdx, %rcx
	cmpq	$-1, %rax
	leaq	(%rcx,%rax), %rdx
	cmovne	%rdx, %rcx
	addq	$8, %rsi
	movq	%rcx, %rax
	imulq	%r9
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	%rdx, 8(%rsi)
	cmpq	%rsi, %rdi
	je	.L4
.L13:
	movq	16(%rsi), %rcx
	cmpq	$-1, %rcx
	jne	.L33
	xorl	%edx, %edx
	addq	$8, %rsi
	movq	%rdx, 8(%rsi)
	cmpq	%rsi, %rdi
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%r8d, %r8
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	32(%rsp,%r8,8), %rdx
	call	__printf_chk@PLT
.L9:
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$800072, %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
.L32:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L9
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include <string.h>
#include <math.h>


int main(void) {
	int n, m;
	scanf("%d %d", &n, &m);
	int ans = 1;
	int a, oldA = 0;
	long long dp[100002] = { 0 };
	long long mod = 1000000007;
	dp[0] = 0;
	dp[1] = 1;
	for (int i = 0; i < m; ++i) {
		scanf("%d", &a);
		if (oldA && a - oldA == 1) {
			ans = 0;
		}
		oldA = a;
		dp[a + 1] = -1;
	}


	if (ans) {
		for (int i = 2; i < n + 2; ++i) {
			if (dp[i] == -1) {
				dp[i] = 0;
				continue;
			}
			dp[i] += dp[i - 1] != -1 ? dp[i - 1] : 0;
			dp[i] += dp[i - 2] != -1 ? dp[i - 2] : 0;
			dp[i] %= mod;

		}
		printf("%lld", dp[n + 1]);
	}
	else
	{
		printf("0");
	}




	return 0;
}

100 5
1
23
45
47
89
 10 2
4
1
 4 1
3
 100 3
1
23
45
47
89
 100 0
1
23
45
47
89
 10 2
3
2
 101 0
0
35
44
58
89
 101 5
1
23
45
67
89
 6 1
1
 100 5
1
23
21
47
89

621622238 8 2 733629168 782204094 0 470199269 366077159 5 358254682
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>
#include <string.h>
#include <math.h>


int main(void) {
	int n, m;
	scanf("%d %d", &n, &m);
	int ans = 1;
	int a, oldA = 0;
	long long dp[100002] = { 0 };
	long long mod = 1000000007;
	dp[0] = 0;
	dp[1] = 1;
	for (int i = 0; i < m; ++i) {
		scanf("%d", &a);
		if (oldA && a - oldA == 1) {
			ans = 0;
		}
		oldA = a;
		dp[a + 1] = -1;
	}


	if (ans) {
		for (int i = 2; i < n + 2; ++i) {
			if (dp[i] == -1) {
				dp[i] = 0;
				continue;
			}
			dp[i] += dp[i - 1] != -1 ? dp[i - 1] : 0;
			dp[i] += dp[i - 2] != -1 ? dp[i - 2] : 0;
			dp[i] %= mod;

		}
		printf("%lld", dp[n + 1]);
	}
	else
	{
		printf("0");
	}




	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1360, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800064(%rbp), %rdx
	leaq	-800068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -800056(%rbp)
	movl	$0, -800052(%rbp)
	leaq	-800032(%rbp), %rax
	movl	$800016, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$1000000007, -800040(%rbp)
	movq	$0, -800032(%rbp)
	movq	$1, -800024(%rbp)
	movl	$0, -800048(%rbp)
	jmp	.L2
.L4:
	leaq	-800060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -800052(%rbp)
	je	.L3
	movl	-800060(%rbp), %eax
	subl	-800052(%rbp), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	$0, -800056(%rbp)
.L3:
	movl	-800060(%rbp), %eax
	movl	%eax, -800052(%rbp)
	movl	-800060(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	$-1, -800032(%rbp,%rax,8)
	addl	$1, -800048(%rbp)
.L2:
	movl	-800064(%rbp), %eax
	cmpl	%eax, -800048(%rbp)
	jl	.L4
	cmpl	$0, -800056(%rbp)
	je	.L5
	movl	$2, -800044(%rbp)
	jmp	.L6
.L13:
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cmpq	$-1, %rax
	jne	.L7
	movl	-800044(%rbp), %eax
	cltq
	movq	$0, -800032(%rbp,%rax,8)
	jmp	.L8
.L7:
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rdx
	movl	-800044(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cmpq	$-1, %rax
	je	.L9
	movl	-800044(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	jmp	.L10
.L9:
	movl	$0, %eax
.L10:
	addq	%rax, %rdx
	movl	-800044(%rbp), %eax
	cltq
	movq	%rdx, -800032(%rbp,%rax,8)
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rdx
	movl	-800044(%rbp), %eax
	subl	$2, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cmpq	$-1, %rax
	je	.L11
	movl	-800044(%rbp), %eax
	subl	$2, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	jmp	.L12
.L11:
	movl	$0, %eax
.L12:
	addq	%rax, %rdx
	movl	-800044(%rbp), %eax
	cltq
	movq	%rdx, -800032(%rbp,%rax,8)
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cqto
	idivq	-800040(%rbp)
	movl	-800044(%rbp), %eax
	cltq
	movq	%rdx, -800032(%rbp,%rax,8)
.L8:
	addl	$1, -800044(%rbp)
.L6:
	movl	-800068(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -800044(%rbp)
	jle	.L13
	movl	-800068(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L5:
	movl	$48, %edi
	call	putchar@PLT
.L14:
	movl	$0, %eax
	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 %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1360, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800064(%rbp), %rdx
	leaq	-800068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -800056(%rbp)
	movl	$0, -800052(%rbp)
	leaq	-800032(%rbp), %rax
	movl	$800016, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$1000000007, -800040(%rbp)
	movq	$0, -800032(%rbp)
	movq	$1, -800024(%rbp)
	movl	$0, -800048(%rbp)
	jmp	.L2
.L4:
	leaq	-800060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -800052(%rbp)
	je	.L3
	movl	-800060(%rbp), %eax
	subl	-800052(%rbp), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	$0, -800056(%rbp)
.L3:
	movl	-800060(%rbp), %eax
	movl	%eax, -800052(%rbp)
	movl	-800060(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	$-1, -800032(%rbp,%rax,8)
	addl	$1, -800048(%rbp)
.L2:
	movl	-800064(%rbp), %eax
	cmpl	%eax, -800048(%rbp)
	jl	.L4
	cmpl	$0, -800056(%rbp)
	je	.L5
	movl	$2, -800044(%rbp)
	jmp	.L6
.L13:
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cmpq	$-1, %rax
	jne	.L7
	movl	-800044(%rbp), %eax
	cltq
	movq	$0, -800032(%rbp,%rax,8)
	jmp	.L8
.L7:
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rdx
	movl	-800044(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cmpq	$-1, %rax
	je	.L9
	movl	-800044(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	jmp	.L10
.L9:
	movl	$0, %eax
.L10:
	addq	%rax, %rdx
	movl	-800044(%rbp), %eax
	cltq
	movq	%rdx, -800032(%rbp,%rax,8)
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rdx
	movl	-800044(%rbp), %eax
	subl	$2, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cmpq	$-1, %rax
	je	.L11
	movl	-800044(%rbp), %eax
	subl	$2, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	jmp	.L12
.L11:
	movl	$0, %eax
.L12:
	addq	%rax, %rdx
	movl	-800044(%rbp), %eax
	cltq
	movq	%rdx, -800032(%rbp,%rax,8)
	movl	-800044(%rbp), %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	cqto
	idivq	-800040(%rbp)
	movl	-800044(%rbp), %eax
	cltq
	movq	%rdx, -800032(%rbp,%rax,8)
.L8:
	addl	$1, -800044(%rbp)
.L6:
	movl	-800068(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -800044(%rbp)
	jle	.L13
	movl	-800068(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-800032(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L5:
	movl	$48, %edi
	call	putchar@PLT
.L14:
	movl	$0, %eax
	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:
