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>

int main(){
	//gp
	int a, b, n, x, y, i, j;
	//oHz
	int dp[17][17];
	//while
	while( scanf("%d %d", &a, &b) != EOF && a && b ){
		
		//oH
		memset( dp, -1, sizeof(dp) );
		
		//ss_
		scanf( "%d", &n );
		
		//X^[guuoH0
		for( i = 0; i <= a; i++ ){
			dp[i][0] = 0;
		}
		for( i = 0; i <= b; i++ ){
			dp[0][i] = 0;
		}
		
		dp[1][1] = 1; //X^[guoH1
		
		for( i = 0; i < n; i++ ){
			//ss_u
			scanf( "%d %d", &x, &y );
			
			//ss_oH0
			dp[x][y] = 0;
		}
		for( i = 1; i <= a; i++ ){ 
			for( j = 1; j <= b; j++ ){
				//oHvZs
				if( dp[i][j] != -1 ){
					continue;
				}
				
				//n_oHuoHuoHv
				dp[i][j] = dp[i - 1][j] + dp[i][j - 1];
			}
		}
		
		//oHo
		printf( "%d\n", dp[a][b] );
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.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	$1200, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L16:
	leaq	-1168(%rbp), %rax
	movl	$1156, %edx
	movl	$-1, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1188(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1176(%rbp)
	jmp	.L3
.L4:
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1168, %rax
	movl	$0, (%rax)
	addl	$1, -1176(%rbp)
.L3:
	movl	-1196(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jle	.L4
	movl	$0, -1176(%rbp)
	jmp	.L5
.L6:
	movl	-1176(%rbp), %eax
	cltq
	movl	$0, -1168(%rbp,%rax,4)
	addl	$1, -1176(%rbp)
.L5:
	movl	-1192(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jle	.L6
	movl	$1, -1096(%rbp)
	movl	$0, -1176(%rbp)
	jmp	.L7
.L8:
	leaq	-1180(%rbp), %rdx
	leaq	-1184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1184(%rbp), %eax
	movl	-1180(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -1168(%rbp,%rax,4)
	addl	$1, -1176(%rbp)
.L7:
	movl	-1188(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jl	.L8
	movl	$1, -1176(%rbp)
	jmp	.L9
.L14:
	movl	$1, -1172(%rbp)
	jmp	.L10
.L13:
	movl	-1172(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L19
	movl	-1176(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-1172(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1168(%rbp,%rax,4), %ecx
	movl	-1172(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1168(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-1172(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1168(%rbp,%rax,4)
	jmp	.L12
.L19:
	nop
.L12:
	addl	$1, -1172(%rbp)
.L10:
	movl	-1192(%rbp), %eax
	cmpl	%eax, -1172(%rbp)
	jle	.L13
	addl	$1, -1176(%rbp)
.L9:
	movl	-1196(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jle	.L14
	movl	-1196(%rbp), %eax
	movl	-1192(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1168(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-1192(%rbp), %rdx
	leaq	-1196(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L15
	movl	-1196(%rbp), %eax
	testl	%eax, %eax
	je	.L15
	movl	-1192(%rbp), %eax
	testl	%eax, %eax
	jne	.L16
.L15:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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 %d"
.LC2:
	.string	"%d\n"
	.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	.LC1(%rip), %rbx
	subq	$1224, %rsp
	.cfi_def_cfa_offset 1280
	movq	%fs:40, %rax
	movq	%rax, 1208(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	32(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	48(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r15, %rdx
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L30
	movl	28(%rsp), %edx
	testl	%edx, %edx
	je	.L30
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L30
	movq	$-1, %rax
	movl	$144, %ecx
	movq	%r13, %rdi
	rep stosq
	leaq	36(%rsp), %rsi
	xorl	%eax, %eax
	movl	$-1, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %r9
	testl	%r9d, %r9d
	js	.L6
	movl	$0, 48(%rsp)
	je	.L6
	movl	$0, 116(%rsp)
	cmpl	$1, %r9d
	je	.L6
	movl	$0, 184(%rsp)
	cmpl	$2, %r9d
	je	.L6
	movl	$0, 252(%rsp)
	cmpl	$3, %r9d
	je	.L6
	movl	$0, 320(%rsp)
	cmpl	$4, %r9d
	je	.L6
	movl	$0, 388(%rsp)
	cmpl	$5, %r9d
	je	.L6
	movl	$0, 456(%rsp)
	cmpl	$6, %r9d
	je	.L6
	movl	$0, 524(%rsp)
	cmpl	$7, %r9d
	je	.L6
	movl	$0, 592(%rsp)
	cmpl	$8, %r9d
	je	.L6
	movl	$0, 660(%rsp)
	cmpl	$9, %r9d
	je	.L6
	movl	$0, 728(%rsp)
	cmpl	$10, %r9d
	je	.L6
	movl	$0, 796(%rsp)
	cmpl	$11, %r9d
	je	.L6
	movl	$0, 864(%rsp)
	cmpl	$12, %r9d
	je	.L6
	movl	$0, 932(%rsp)
	cmpl	$13, %r9d
	je	.L6
	movl	$0, 1000(%rsp)
	cmpl	$14, %r9d
	je	.L6
	movl	$0, 1068(%rsp)
	cmpl	$15, %r9d
	je	.L6
	movl	$0, 1136(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	32(%rsp), %rcx
	testl	%ecx, %ecx
	js	.L5
	movslq	%ecx, %rax
	xorl	%esi, %esi
	movq	%r13, %rdi
	movl	%r9d, 4(%rsp)
	leaq	4(,%rax,4), %rdx
	movl	%ecx, (%rsp)
	call	memset@PLT
	movslq	(%rsp), %rcx
	movslq	4(%rsp), %r9
.L5:
	movl	36(%rsp), %esi
	movl	$1, 120(%rsp)
	xorl	%r14d, %r14d
	leaq	44(%rsp), %r12
	leaq	40(%rsp), %rbp
	testl	%esi, %esi
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %rdx
	movslq	44(%rsp), %rcx
	addl	$1, %r14d
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, 48(%rsp,%rax,4)
	cmpl	%r14d, 36(%rsp)
	jg	.L7
	movslq	32(%rsp), %rcx
	movslq	28(%rsp), %r9
.L8:
	testl	%r9d, %r9d
	jle	.L9
	testl	%ecx, %ecx
	jle	.L9
	leal	-1(%r9), %esi
	leaq	52(%rsp), %rax
	movq	%rsi, %rdx
	salq	$4, %rdx
	addq	%rsi, %rdx
	leaq	120(%rsp,%rdx,4), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	cmpl	$-1, 68(%rax)
	jne	.L13
	movl	(%rax), %edx
	addl	64(%rax), %edx
	movl	%edx, 68(%rax)
.L13:
	cmpl	$1, %ecx
	je	.L14
	cmpl	$-1, 72(%rax)
	jne	.L15
	movl	68(%rax), %edx
	addl	4(%rax), %edx
	movl	%edx, 72(%rax)
.L15:
	cmpl	$2, %ecx
	je	.L14
	cmpl	$-1, 76(%rax)
	jne	.L16
	movl	72(%rax), %edx
	addl	8(%rax), %edx
	movl	%edx, 76(%rax)
.L16:
	cmpl	$3, %ecx
	je	.L14
	cmpl	$-1, 80(%rax)
	jne	.L17
	movl	76(%rax), %edx
	addl	12(%rax), %edx
	movl	%edx, 80(%rax)
.L17:
	cmpl	$4, %ecx
	je	.L14
	cmpl	$-1, 84(%rax)
	jne	.L18
	movl	80(%rax), %edx
	addl	16(%rax), %edx
	movl	%edx, 84(%rax)
.L18:
	cmpl	$5, %ecx
	je	.L14
	cmpl	$-1, 88(%rax)
	jne	.L19
	movl	84(%rax), %edx
	addl	20(%rax), %edx
	movl	%edx, 88(%rax)
.L19:
	cmpl	$6, %ecx
	je	.L14
	cmpl	$-1, 92(%rax)
	jne	.L20
	movl	88(%rax), %edx
	addl	24(%rax), %edx
	movl	%edx, 92(%rax)
.L20:
	cmpl	$7, %ecx
	je	.L14
	cmpl	$-1, 96(%rax)
	jne	.L21
	movl	92(%rax), %edx
	addl	28(%rax), %edx
	movl	%edx, 96(%rax)
.L21:
	cmpl	$8, %ecx
	je	.L14
	cmpl	$-1, 100(%rax)
	jne	.L22
	movl	96(%rax), %edx
	addl	32(%rax), %edx
	movl	%edx, 100(%rax)
.L22:
	cmpl	$9, %ecx
	je	.L14
	cmpl	$-1, 104(%rax)
	jne	.L23
	movl	100(%rax), %edx
	addl	36(%rax), %edx
	movl	%edx, 104(%rax)
.L23:
	cmpl	$10, %ecx
	je	.L14
	cmpl	$-1, 108(%rax)
	jne	.L24
	movl	104(%rax), %edx
	addl	40(%rax), %edx
	movl	%edx, 108(%rax)
.L24:
	cmpl	$11, %ecx
	je	.L14
	cmpl	$-1, 112(%rax)
	jne	.L25
	movl	108(%rax), %edx
	addl	44(%rax), %edx
	movl	%edx, 112(%rax)
.L25:
	cmpl	$12, %ecx
	je	.L14
	cmpl	$-1, 116(%rax)
	jne	.L26
	movl	112(%rax), %edx
	addl	48(%rax), %edx
	movl	%edx, 116(%rax)
.L26:
	cmpl	$13, %ecx
	je	.L14
	cmpl	$-1, 120(%rax)
	jne	.L27
	movl	116(%rax), %edx
	addl	52(%rax), %edx
	movl	%edx, 120(%rax)
.L27:
	cmpl	$14, %ecx
	je	.L14
	cmpl	$-1, 124(%rax)
	jne	.L28
	movl	120(%rax), %edx
	addl	56(%rax), %edx
	movl	%edx, 124(%rax)
.L28:
	cmpl	$15, %ecx
	je	.L14
	cmpl	$-1, 128(%rax)
	jne	.L14
	movl	124(%rax), %edx
	addl	60(%rax), %edx
	movl	%edx, 128(%rax)
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$68, %rax
	cmpq	%rax, %rsi
	jne	.L11
.L9:
	movq	%r9, %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	salq	$4, %rax
	addq	%r9, %rax
	addq	%rcx, %rax
	movl	48(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L30:
	movq	1208(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L132
	addq	$1224, %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
.L132:
	.cfi_restore_state
	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"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.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	.LC1(%rip), %rbx
	subq	$1224, %rsp
	.cfi_def_cfa_offset 1280
	movq	%fs:40, %rax
	movq	%rax, 1208(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	32(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	48(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r15, %rdx
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L30
	movl	28(%rsp), %edx
	testl	%edx, %edx
	je	.L30
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L30
	movq	$-1, %rax
	movl	$144, %ecx
	movq	%r13, %rdi
	rep stosq
	leaq	36(%rsp), %rsi
	xorl	%eax, %eax
	movl	$-1, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %r9
	testl	%r9d, %r9d
	js	.L6
	movl	$0, 48(%rsp)
	je	.L6
	movl	$0, 116(%rsp)
	cmpl	$1, %r9d
	je	.L6
	movl	$0, 184(%rsp)
	cmpl	$2, %r9d
	je	.L6
	movl	$0, 252(%rsp)
	cmpl	$3, %r9d
	je	.L6
	movl	$0, 320(%rsp)
	cmpl	$4, %r9d
	je	.L6
	movl	$0, 388(%rsp)
	cmpl	$5, %r9d
	je	.L6
	movl	$0, 456(%rsp)
	cmpl	$6, %r9d
	je	.L6
	movl	$0, 524(%rsp)
	cmpl	$7, %r9d
	je	.L6
	movl	$0, 592(%rsp)
	cmpl	$8, %r9d
	je	.L6
	movl	$0, 660(%rsp)
	cmpl	$9, %r9d
	je	.L6
	movl	$0, 728(%rsp)
	cmpl	$10, %r9d
	je	.L6
	movl	$0, 796(%rsp)
	cmpl	$11, %r9d
	je	.L6
	movl	$0, 864(%rsp)
	cmpl	$12, %r9d
	je	.L6
	movl	$0, 932(%rsp)
	cmpl	$13, %r9d
	je	.L6
	movl	$0, 1000(%rsp)
	cmpl	$14, %r9d
	je	.L6
	movl	$0, 1068(%rsp)
	cmpl	$15, %r9d
	je	.L6
	movl	$0, 1136(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	32(%rsp), %rcx
	testl	%ecx, %ecx
	js	.L5
	movslq	%ecx, %rax
	xorl	%esi, %esi
	movq	%r13, %rdi
	movl	%r9d, 4(%rsp)
	leaq	4(,%rax,4), %rdx
	movl	%ecx, (%rsp)
	call	memset@PLT
	movslq	(%rsp), %rcx
	movslq	4(%rsp), %r9
.L5:
	movl	36(%rsp), %esi
	movl	$1, 120(%rsp)
	xorl	%r14d, %r14d
	leaq	44(%rsp), %r12
	leaq	40(%rsp), %rbp
	testl	%esi, %esi
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %rdx
	movslq	44(%rsp), %rcx
	addl	$1, %r14d
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, 48(%rsp,%rax,4)
	cmpl	%r14d, 36(%rsp)
	jg	.L7
	movslq	32(%rsp), %rcx
	movslq	28(%rsp), %r9
.L8:
	testl	%r9d, %r9d
	jle	.L9
	testl	%ecx, %ecx
	jle	.L9
	leal	-1(%r9), %esi
	leaq	52(%rsp), %rax
	movq	%rsi, %rdx
	salq	$4, %rdx
	addq	%rsi, %rdx
	leaq	120(%rsp,%rdx,4), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	cmpl	$-1, 68(%rax)
	jne	.L13
	movl	(%rax), %edx
	addl	64(%rax), %edx
	movl	%edx, 68(%rax)
.L13:
	cmpl	$1, %ecx
	je	.L14
	cmpl	$-1, 72(%rax)
	jne	.L15
	movl	68(%rax), %edx
	addl	4(%rax), %edx
	movl	%edx, 72(%rax)
.L15:
	cmpl	$2, %ecx
	je	.L14
	cmpl	$-1, 76(%rax)
	jne	.L16
	movl	72(%rax), %edx
	addl	8(%rax), %edx
	movl	%edx, 76(%rax)
.L16:
	cmpl	$3, %ecx
	je	.L14
	cmpl	$-1, 80(%rax)
	jne	.L17
	movl	76(%rax), %edx
	addl	12(%rax), %edx
	movl	%edx, 80(%rax)
.L17:
	cmpl	$4, %ecx
	je	.L14
	cmpl	$-1, 84(%rax)
	jne	.L18
	movl	80(%rax), %edx
	addl	16(%rax), %edx
	movl	%edx, 84(%rax)
.L18:
	cmpl	$5, %ecx
	je	.L14
	cmpl	$-1, 88(%rax)
	jne	.L19
	movl	84(%rax), %edx
	addl	20(%rax), %edx
	movl	%edx, 88(%rax)
.L19:
	cmpl	$6, %ecx
	je	.L14
	cmpl	$-1, 92(%rax)
	jne	.L20
	movl	88(%rax), %edx
	addl	24(%rax), %edx
	movl	%edx, 92(%rax)
.L20:
	cmpl	$7, %ecx
	je	.L14
	cmpl	$-1, 96(%rax)
	jne	.L21
	movl	92(%rax), %edx
	addl	28(%rax), %edx
	movl	%edx, 96(%rax)
.L21:
	cmpl	$8, %ecx
	je	.L14
	cmpl	$-1, 100(%rax)
	jne	.L22
	movl	96(%rax), %edx
	addl	32(%rax), %edx
	movl	%edx, 100(%rax)
.L22:
	cmpl	$9, %ecx
	je	.L14
	cmpl	$-1, 104(%rax)
	jne	.L23
	movl	100(%rax), %edx
	addl	36(%rax), %edx
	movl	%edx, 104(%rax)
.L23:
	cmpl	$10, %ecx
	je	.L14
	cmpl	$-1, 108(%rax)
	jne	.L24
	movl	104(%rax), %edx
	addl	40(%rax), %edx
	movl	%edx, 108(%rax)
.L24:
	cmpl	$11, %ecx
	je	.L14
	cmpl	$-1, 112(%rax)
	jne	.L25
	movl	108(%rax), %edx
	addl	44(%rax), %edx
	movl	%edx, 112(%rax)
.L25:
	cmpl	$12, %ecx
	je	.L14
	cmpl	$-1, 116(%rax)
	jne	.L26
	movl	112(%rax), %edx
	addl	48(%rax), %edx
	movl	%edx, 116(%rax)
.L26:
	cmpl	$13, %ecx
	je	.L14
	cmpl	$-1, 120(%rax)
	jne	.L27
	movl	116(%rax), %edx
	addl	52(%rax), %edx
	movl	%edx, 120(%rax)
.L27:
	cmpl	$14, %ecx
	je	.L14
	cmpl	$-1, 124(%rax)
	jne	.L28
	movl	120(%rax), %edx
	addl	56(%rax), %edx
	movl	%edx, 124(%rax)
.L28:
	cmpl	$15, %ecx
	je	.L14
	cmpl	$-1, 128(%rax)
	jne	.L14
	movl	124(%rax), %edx
	addl	60(%rax), %edx
	movl	%edx, 128(%rax)
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$68, %rax
	cmpq	%rax, %rsi
	jne	.L11
.L9:
	movq	%r9, %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	salq	$4, %rax
	addq	%r9, %rax
	addq	%rcx, %rax
	movl	48(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L30:
	movq	1208(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L132
	addq	$1224, %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
.L132:
	.cfi_restore_state
	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>

int main(){
	//gp
	int a, b, n, x, y, i, j;
	//oHz
	int dp[17][17];
	//while
	while( scanf("%d %d", &a, &b) != EOF && a && b ){
		
		//oH
		memset( dp, -1, sizeof(dp) );
		
		//ss_
		scanf( "%d", &n );
		
		//X^[guuoH0
		for( i = 0; i <= a; i++ ){
			dp[i][0] = 0;
		}
		for( i = 0; i <= b; i++ ){
			dp[0][i] = 0;
		}
		
		dp[1][1] = 1; //X^[guoH1
		
		for( i = 0; i < n; i++ ){
			//ss_u
			scanf( "%d %d", &x, &y );
			
			//ss_oH0
			dp[x][y] = 0;
		}
		for( i = 1; i <= a; i++ ){ 
			for( j = 1; j <= b; j++ ){
				//oHvZs
				if( dp[i][j] != -1 ){
					continue;
				}
				
				//n_oHuoHuoHv
				dp[i][j] = dp[i - 1][j] + dp[i][j - 1];
			}
		}
		
		//oHo
		printf( "%d\n", dp[a][b] );
	}
	return 0;
}
5 4
3
2 2
2 3
4 2
5 4
3
2 2
2 3
4 2
0 0

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

int main(){
	//gp
	int a, b, n, x, y, i, j;
	//oHz
	int dp[17][17];
	//while
	while( scanf("%d %d", &a, &b) != EOF && a && b ){
		
		//oH
		memset( dp, -1, sizeof(dp) );
		
		//ss_
		scanf( "%d", &n );
		
		//X^[guuoH0
		for( i = 0; i <= a; i++ ){
			dp[i][0] = 0;
		}
		for( i = 0; i <= b; i++ ){
			dp[0][i] = 0;
		}
		
		dp[1][1] = 1; //X^[guoH1
		
		for( i = 0; i < n; i++ ){
			//ss_u
			scanf( "%d %d", &x, &y );
			
			//ss_oH0
			dp[x][y] = 0;
		}
		for( i = 1; i <= a; i++ ){ 
			for( j = 1; j <= b; j++ ){
				//oHvZs
				if( dp[i][j] != -1 ){
					continue;
				}
				
				//n_oHuoHuoHv
				dp[i][j] = dp[i - 1][j] + dp[i][j - 1];
			}
		}
		
		//oHo
		printf( "%d\n", dp[a][b] );
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.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	$1200, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L16:
	leaq	-1168(%rbp), %rax
	movl	$1156, %edx
	movl	$-1, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1188(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1176(%rbp)
	jmp	.L3
.L4:
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1168, %rax
	movl	$0, (%rax)
	addl	$1, -1176(%rbp)
.L3:
	movl	-1196(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jle	.L4
	movl	$0, -1176(%rbp)
	jmp	.L5
.L6:
	movl	-1176(%rbp), %eax
	cltq
	movl	$0, -1168(%rbp,%rax,4)
	addl	$1, -1176(%rbp)
.L5:
	movl	-1192(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jle	.L6
	movl	$1, -1096(%rbp)
	movl	$0, -1176(%rbp)
	jmp	.L7
.L8:
	leaq	-1180(%rbp), %rdx
	leaq	-1184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1184(%rbp), %eax
	movl	-1180(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -1168(%rbp,%rax,4)
	addl	$1, -1176(%rbp)
.L7:
	movl	-1188(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jl	.L8
	movl	$1, -1176(%rbp)
	jmp	.L9
.L14:
	movl	$1, -1172(%rbp)
	jmp	.L10
.L13:
	movl	-1172(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L19
	movl	-1176(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-1172(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1168(%rbp,%rax,4), %ecx
	movl	-1172(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1168(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-1172(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1168(%rbp,%rax,4)
	jmp	.L12
.L19:
	nop
.L12:
	addl	$1, -1172(%rbp)
.L10:
	movl	-1192(%rbp), %eax
	cmpl	%eax, -1172(%rbp)
	jle	.L13
	addl	$1, -1176(%rbp)
.L9:
	movl	-1196(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jle	.L14
	movl	-1196(%rbp), %eax
	movl	-1192(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1168(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-1192(%rbp), %rdx
	leaq	-1196(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L15
	movl	-1196(%rbp), %eax
	testl	%eax, %eax
	je	.L15
	movl	-1192(%rbp), %eax
	testl	%eax, %eax
	jne	.L16
.L15:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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 %d"
.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	$1200, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L16:
	leaq	-1168(%rbp), %rax
	movl	$1156, %edx
	movl	$-1, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1188(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1176(%rbp)
	jmp	.L3
.L4:
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1168, %rax
	movl	$0, (%rax)
	addl	$1, -1176(%rbp)
.L3:
	movl	-1196(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jle	.L4
	movl	$0, -1176(%rbp)
	jmp	.L5
.L6:
	movl	-1176(%rbp), %eax
	cltq
	movl	$0, -1168(%rbp,%rax,4)
	addl	$1, -1176(%rbp)
.L5:
	movl	-1192(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jle	.L6
	movl	$1, -1096(%rbp)
	movl	$0, -1176(%rbp)
	jmp	.L7
.L8:
	leaq	-1180(%rbp), %rdx
	leaq	-1184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1184(%rbp), %eax
	movl	-1180(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -1168(%rbp,%rax,4)
	addl	$1, -1176(%rbp)
.L7:
	movl	-1188(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jl	.L8
	movl	$1, -1176(%rbp)
	jmp	.L9
.L14:
	movl	$1, -1172(%rbp)
	jmp	.L10
.L13:
	movl	-1172(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L19
	movl	-1176(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-1172(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1168(%rbp,%rax,4), %ecx
	movl	-1172(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1168(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-1172(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1176(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1168(%rbp,%rax,4)
	jmp	.L12
.L19:
	nop
.L12:
	addl	$1, -1172(%rbp)
.L10:
	movl	-1192(%rbp), %eax
	cmpl	%eax, -1172(%rbp)
	jle	.L13
	addl	$1, -1176(%rbp)
.L9:
	movl	-1196(%rbp), %eax
	cmpl	%eax, -1176(%rbp)
	jle	.L14
	movl	-1196(%rbp), %eax
	movl	-1192(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1168(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-1192(%rbp), %rdx
	leaq	-1196(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L15
	movl	-1196(%rbp), %eax
	testl	%eax, %eax
	je	.L15
	movl	-1192(%rbp), %eax
	testl	%eax, %eax
	jne	.L16
.L15:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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:
