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 X,Y,n,fld[20][20],i,j,x,y,z;
    while(1){
        scanf ("%d %d",&X,&Y);
        if (X==0&&Y==0){break;}
        for(i=0; i<=Y;i++){
                for(j=0; j<=X; j++){
                    fld[j][i]=0;
                }

        }
        scanf("%d",&n);
        for(z=0;z<n;z++){
            scanf("%d %d",&x,&y);
            fld[x][y]=-1;
        }
         for(i=1; i<=Y;i++){
                for(j=1; j<=X; j++){
                    if(j==1&&i==1){
                        fld[j][i]=1;}
                        else if(fld[j][i]==-1){
                                fld[j][i]=0;}


                        else{
                            fld[j][i]=fld[j-1][i]+fld[j][i-1];
                        }

                }

        }
        printf ("%d\n",fld[X][Y]);




    }
return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%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	$1648, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L17:
	leaq	-1644(%rbp), %rdx
	leaq	-1648(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1648(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-1644(%rbp), %eax
	testl	%eax, %eax
	je	.L21
.L2:
	movl	$0, -1628(%rbp)
	jmp	.L4
.L7:
	movl	$0, -1624(%rbp)
	jmp	.L5
.L6:
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -1616(%rbp,%rax,4)
	addl	$1, -1624(%rbp)
.L5:
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1624(%rbp)
	jle	.L6
	addl	$1, -1628(%rbp)
.L4:
	movl	-1644(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jle	.L7
	leaq	-1640(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1620(%rbp)
	jmp	.L8
.L9:
	leaq	-1632(%rbp), %rdx
	leaq	-1636(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1636(%rbp), %eax
	movl	-1632(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$-1, -1616(%rbp,%rax,4)
	addl	$1, -1620(%rbp)
.L8:
	movl	-1640(%rbp), %eax
	cmpl	%eax, -1620(%rbp)
	jl	.L9
	movl	$1, -1628(%rbp)
	jmp	.L10
.L16:
	movl	$1, -1624(%rbp)
	jmp	.L11
.L15:
	cmpl	$1, -1624(%rbp)
	jne	.L12
	cmpl	$1, -1628(%rbp)
	jne	.L12
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$1, -1616(%rbp,%rax,4)
	jmp	.L13
.L12:
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L14
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -1616(%rbp,%rax,4)
	jmp	.L13
.L14:
	movl	-1624(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-1616(%rbp,%rax,4), %ecx
	movl	-1628(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-1616(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-1628(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%ecx, -1616(%rbp,%rax,4)
.L13:
	addl	$1, -1624(%rbp)
.L11:
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1624(%rbp)
	jle	.L15
	addl	$1, -1628(%rbp)
.L10:
	movl	-1644(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jle	.L16
	movl	-1648(%rbp), %eax
	movl	-1644(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L17
.L21:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	"%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
	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	.LC0(%rip), %rbx
	subq	$1656, %rsp
	.cfi_def_cfa_offset 1712
	movq	%fs:40, %rax
	movq	%rax, 1640(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L19:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r9d
	movl	16(%rsp), %r10d
	movl	%r9d, %eax
	orl	%r10d, %eax
	je	.L2
	testl	%r10d, %r10d
	js	.L3
	testl	%r9d, %r9d
	js	.L3
	leal	1(%r10), %r11d
	leaq	32(%rsp), %rcx
	addl	$1, %r9d
	xorl	%esi, %esi
	movl	%r11d, %edi
	movl	%r11d, %r8d
	pxor	%xmm0, %xmm0
	movl	%r11d, %r13d
	shrl	$2, %edi
	andl	$-4, %r8d
	andl	$3, %r13d
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$2, %r10d
	jle	.L55
	movaps	%xmm0, (%rcx)
	cmpl	$1, %edi
	jbe	.L6
	movaps	%xmm0, 16(%rcx)
	cmpl	$2, %edi
	je	.L6
	movaps	%xmm0, 32(%rcx)
	cmpl	$3, %edi
	je	.L6
	movaps	%xmm0, 48(%rcx)
	cmpl	$4, %edi
	je	.L6
	movaps	%xmm0, 64(%rcx)
.L6:
	cmpl	%r8d, %r11d
	je	.L7
	movl	%r13d, %r14d
	movl	%r8d, %edx
.L8:
	movslq	%esi, %rax
	movslq	%edx, %r15
	leaq	(%rax,%rax,4), %rax
	salq	$2, %rax
	addq	%rax, %r15
	movl	$0, 32(%rsp,%r15,4)
	leal	1(%rdx), %r15d
	cmpl	$1, %r14d
	je	.L7
	movslq	%r15d, %r15
	addl	$2, %edx
	addq	%rax, %r15
	movl	$0, 32(%rsp,%r15,4)
	cmpl	$2, %r14d
	je	.L7
	movslq	%edx, %rdx
	addq	%rdx, %rax
	movl	$0, 32(%rsp,%rax,4)
.L7:
	addl	$1, %esi
	addq	$80, %rcx
	cmpl	%r9d, %esi
	jne	.L5
.L3:
	leaq	20(%rsp), %rsi
	xorl	%eax, %eax
	leaq	28(%rsp), %r15
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %rdi
	leaq	24(%rsp), %r14
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	24(%rsp), %rax
	movslq	28(%rsp), %rdx
	addl	$1, %r13d
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rax
	movl	$-1, 32(%rsp,%rax,4)
	cmpl	%r13d, 20(%rsp)
	jg	.L10
.L14:
	movslq	16(%rsp), %r15
	movslq	12(%rsp), %r14
	testl	%r15d, %r15d
	jle	.L11
	testl	%r14d, %r14d
	jle	.L11
	leaq	36(%rsp), %r11
	leal	1(%r15), %r13d
	movl	$1, %r8d
	xorl	%r10d, %r10d
	leal	1(%r14), %esi
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	$1, %r8d
	movq	%r10, %r9
	movq	%r11, %rdx
	movl	$1, %eax
	sete	%dil
	subq	%r8, %r9
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L57:
	movl	$1, 116(%rsp)
.L16:
	addl	$1, %eax
	addq	$80, %rdx
	cmpl	%esi, %eax
	je	.L56
.L18:
	cmpl	$1, %eax
	jne	.L15
	testb	%dil, %dil
	jne	.L57
.L15:
	cmpl	$-1, 80(%rdx)
	je	.L58
	movl	(%rdx), %ecx
	addl	$1, %eax
	addl	80(%rdx,%r9,4), %ecx
	addq	$80, %rdx
	movl	%ecx, (%rdx)
	cmpl	%esi, %eax
	jne	.L18
.L56:
	addq	$1, %r8
	addq	$1, %r10
	addq	$4, %r11
	cmpq	%r13, %r8
	jne	.L13
.L11:
	leaq	(%r14,%r14,4), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	leaq	(%r15,%rax,4), %rax
	movl	32(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L58:
	movl	$0, 80(%rdx)
	jmp	.L16
.L55:
	movl	%r11d, %r14d
	xorl	%edx, %edx
	jmp	.L8
.L2:
	movq	1640(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$1656, %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
.L59:
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.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
	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	.LC0(%rip), %rbx
	subq	$1656, %rsp
	.cfi_def_cfa_offset 1712
	movq	%fs:40, %rax
	movq	%rax, 1640(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L19:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r9d
	movl	16(%rsp), %r10d
	movl	%r9d, %eax
	orl	%r10d, %eax
	je	.L2
	testl	%r10d, %r10d
	js	.L3
	testl	%r9d, %r9d
	js	.L3
	leal	1(%r10), %r11d
	leaq	32(%rsp), %rcx
	addl	$1, %r9d
	xorl	%esi, %esi
	movl	%r11d, %edi
	movl	%r11d, %r8d
	pxor	%xmm0, %xmm0
	movl	%r11d, %r13d
	shrl	$2, %edi
	andl	$-4, %r8d
	andl	$3, %r13d
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$2, %r10d
	jle	.L55
	movaps	%xmm0, (%rcx)
	cmpl	$1, %edi
	jbe	.L6
	movaps	%xmm0, 16(%rcx)
	cmpl	$2, %edi
	je	.L6
	movaps	%xmm0, 32(%rcx)
	cmpl	$3, %edi
	je	.L6
	movaps	%xmm0, 48(%rcx)
	cmpl	$4, %edi
	je	.L6
	movaps	%xmm0, 64(%rcx)
.L6:
	cmpl	%r8d, %r11d
	je	.L7
	movl	%r13d, %r14d
	movl	%r8d, %edx
.L8:
	movslq	%esi, %rax
	movslq	%edx, %r15
	leaq	(%rax,%rax,4), %rax
	salq	$2, %rax
	addq	%rax, %r15
	movl	$0, 32(%rsp,%r15,4)
	leal	1(%rdx), %r15d
	cmpl	$1, %r14d
	je	.L7
	movslq	%r15d, %r15
	addl	$2, %edx
	addq	%rax, %r15
	movl	$0, 32(%rsp,%r15,4)
	cmpl	$2, %r14d
	je	.L7
	movslq	%edx, %rdx
	addq	%rdx, %rax
	movl	$0, 32(%rsp,%rax,4)
.L7:
	addl	$1, %esi
	addq	$80, %rcx
	cmpl	%r9d, %esi
	jne	.L5
.L3:
	leaq	20(%rsp), %rsi
	xorl	%eax, %eax
	leaq	28(%rsp), %r15
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %rdi
	leaq	24(%rsp), %r14
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	24(%rsp), %rax
	movslq	28(%rsp), %rdx
	addl	$1, %r13d
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rax
	movl	$-1, 32(%rsp,%rax,4)
	cmpl	%r13d, 20(%rsp)
	jg	.L10
.L14:
	movslq	16(%rsp), %r15
	movslq	12(%rsp), %r14
	testl	%r15d, %r15d
	jle	.L11
	testl	%r14d, %r14d
	jle	.L11
	leaq	36(%rsp), %r11
	leal	1(%r15), %r13d
	movl	$1, %r8d
	xorl	%r10d, %r10d
	leal	1(%r14), %esi
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	$1, %r8d
	movq	%r10, %r9
	movq	%r11, %rdx
	movl	$1, %eax
	sete	%dil
	subq	%r8, %r9
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L57:
	movl	$1, 116(%rsp)
.L16:
	addl	$1, %eax
	addq	$80, %rdx
	cmpl	%esi, %eax
	je	.L56
.L18:
	cmpl	$1, %eax
	jne	.L15
	testb	%dil, %dil
	jne	.L57
.L15:
	cmpl	$-1, 80(%rdx)
	je	.L58
	movl	(%rdx), %ecx
	addl	$1, %eax
	addl	80(%rdx,%r9,4), %ecx
	addq	$80, %rdx
	movl	%ecx, (%rdx)
	cmpl	%esi, %eax
	jne	.L18
.L56:
	addq	$1, %r8
	addq	$1, %r10
	addq	$4, %r11
	cmpq	%r13, %r8
	jne	.L13
.L11:
	leaq	(%r14,%r14,4), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	leaq	(%r15,%rax,4), %rax
	movl	32(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L58:
	movl	$0, 80(%rdx)
	jmp	.L16
.L55:
	movl	%r11d, %r14d
	xorl	%edx, %edx
	jmp	.L8
.L2:
	movq	1640(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$1656, %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
.L59:
	.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:

#include <stdio.h>
int main(){
    int X,Y,n,fld[20][20],i,j,x,y,z;
    while(1){
        scanf ("%d %d",&X,&Y);
        if (X==0&&Y==0){break;}
        for(i=0; i<=Y;i++){
                for(j=0; j<=X; j++){
                    fld[j][i]=0;
                }

        }
        scanf("%d",&n);
        for(z=0;z<n;z++){
            scanf("%d %d",&x,&y);
            fld[x][y]=-1;
        }
         for(i=1; i<=Y;i++){
                for(j=1; j<=X; j++){
                    if(j==1&&i==1){
                        fld[j][i]=1;}
                        else if(fld[j][i]==-1){
                                fld[j][i]=0;}


                        else{
                            fld[j][i]=fld[j-1][i]+fld[j][i-1];
                        }

                }

        }
        printf ("%d\n",fld[X][Y]);




    }
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>
int main(){
    int X,Y,n,fld[20][20],i,j,x,y,z;
    while(1){
        scanf ("%d %d",&X,&Y);
        if (X==0&&Y==0){break;}
        for(i=0; i<=Y;i++){
                for(j=0; j<=X; j++){
                    fld[j][i]=0;
                }

        }
        scanf("%d",&n);
        for(z=0;z<n;z++){
            scanf("%d %d",&x,&y);
            fld[x][y]=-1;
        }
         for(i=1; i<=Y;i++){
                for(j=1; j<=X; j++){
                    if(j==1&&i==1){
                        fld[j][i]=1;}
                        else if(fld[j][i]==-1){
                                fld[j][i]=0;}


                        else{
                            fld[j][i]=fld[j-1][i]+fld[j][i-1];
                        }

                }

        }
        printf ("%d\n",fld[X][Y]);




    }
return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%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	$1648, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L17:
	leaq	-1644(%rbp), %rdx
	leaq	-1648(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1648(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-1644(%rbp), %eax
	testl	%eax, %eax
	je	.L21
.L2:
	movl	$0, -1628(%rbp)
	jmp	.L4
.L7:
	movl	$0, -1624(%rbp)
	jmp	.L5
.L6:
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -1616(%rbp,%rax,4)
	addl	$1, -1624(%rbp)
.L5:
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1624(%rbp)
	jle	.L6
	addl	$1, -1628(%rbp)
.L4:
	movl	-1644(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jle	.L7
	leaq	-1640(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1620(%rbp)
	jmp	.L8
.L9:
	leaq	-1632(%rbp), %rdx
	leaq	-1636(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1636(%rbp), %eax
	movl	-1632(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$-1, -1616(%rbp,%rax,4)
	addl	$1, -1620(%rbp)
.L8:
	movl	-1640(%rbp), %eax
	cmpl	%eax, -1620(%rbp)
	jl	.L9
	movl	$1, -1628(%rbp)
	jmp	.L10
.L16:
	movl	$1, -1624(%rbp)
	jmp	.L11
.L15:
	cmpl	$1, -1624(%rbp)
	jne	.L12
	cmpl	$1, -1628(%rbp)
	jne	.L12
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$1, -1616(%rbp,%rax,4)
	jmp	.L13
.L12:
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L14
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -1616(%rbp,%rax,4)
	jmp	.L13
.L14:
	movl	-1624(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-1616(%rbp,%rax,4), %ecx
	movl	-1628(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-1616(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-1628(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%ecx, -1616(%rbp,%rax,4)
.L13:
	addl	$1, -1624(%rbp)
.L11:
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1624(%rbp)
	jle	.L15
	addl	$1, -1628(%rbp)
.L10:
	movl	-1644(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jle	.L16
	movl	-1648(%rbp), %eax
	movl	-1644(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L17
.L21:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	"%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	$1648, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L17:
	leaq	-1644(%rbp), %rdx
	leaq	-1648(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1648(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-1644(%rbp), %eax
	testl	%eax, %eax
	je	.L21
.L2:
	movl	$0, -1628(%rbp)
	jmp	.L4
.L7:
	movl	$0, -1624(%rbp)
	jmp	.L5
.L6:
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -1616(%rbp,%rax,4)
	addl	$1, -1624(%rbp)
.L5:
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1624(%rbp)
	jle	.L6
	addl	$1, -1628(%rbp)
.L4:
	movl	-1644(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jle	.L7
	leaq	-1640(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1620(%rbp)
	jmp	.L8
.L9:
	leaq	-1632(%rbp), %rdx
	leaq	-1636(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1636(%rbp), %eax
	movl	-1632(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$-1, -1616(%rbp,%rax,4)
	addl	$1, -1620(%rbp)
.L8:
	movl	-1640(%rbp), %eax
	cmpl	%eax, -1620(%rbp)
	jl	.L9
	movl	$1, -1628(%rbp)
	jmp	.L10
.L16:
	movl	$1, -1624(%rbp)
	jmp	.L11
.L15:
	cmpl	$1, -1624(%rbp)
	jne	.L12
	cmpl	$1, -1628(%rbp)
	jne	.L12
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$1, -1616(%rbp,%rax,4)
	jmp	.L13
.L12:
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L14
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -1616(%rbp,%rax,4)
	jmp	.L13
.L14:
	movl	-1624(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-1628(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-1616(%rbp,%rax,4), %ecx
	movl	-1628(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-1616(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-1628(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1624(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%ecx, -1616(%rbp,%rax,4)
.L13:
	addl	$1, -1624(%rbp)
.L11:
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1624(%rbp)
	jle	.L15
	addl	$1, -1628(%rbp)
.L10:
	movl	-1644(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jle	.L16
	movl	-1648(%rbp), %eax
	movl	-1644(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L17
.L21:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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:
