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 w,h,i,j,n;
  while(scanf("%d %d",&w,&h),w||h){
    int f[20][20],d[20][20]={0};
    for(i=0;i<400;i++)f[i/20][i%20]=1;
    scanf("%d",&n);
    while(n--){
      scanf("%d %d",&i,&j);
      f[j][i]=0;
    }
    d[1][0]=1;
    for(i=1;i<=h;i++){
      for(j=1;j<=w;j++)d[i][j]=d[i-1][j]*f[i-1][j]+d[i][j-1]*f[i][j-1];
    }
    printf("%d\n",d[h][w]);
  }
  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	$3248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L14:
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$200, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3228(%rbp)
	jmp	.L3
.L4:
	movl	-3228(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-3228(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$1, -3216(%rbp,%rax,4)
	movl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3228(%rbp)
.L3:
	movl	-3228(%rbp), %eax
	cmpl	$399, %eax
	jle	.L4
	leaq	-3220(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L5
.L6:
	leaq	-3224(%rbp), %rdx
	leaq	-3228(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3224(%rbp), %eax
	movl	-3228(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -3216(%rbp,%rax,4)
.L5:
	movl	-3220(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -3220(%rbp)
	testl	%eax, %eax
	jne	.L6
	movl	$1, -1536(%rbp)
	movl	$1, -3228(%rbp)
	jmp	.L7
.L10:
	movl	$1, -3224(%rbp)
	jmp	.L8
.L9:
	movl	-3228(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-3224(%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	-3228(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-3224(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-3216(%rbp,%rax,4), %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-3228(%rbp), %eax
	movl	-3224(%rbp), %edx
	subl	$1, %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), %ecx
	movl	-3228(%rbp), %eax
	movl	-3224(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movl	-3216(%rbp,%rax,4), %eax
	imull	%eax, %ecx
	movl	-3228(%rbp), %eax
	movl	-3224(%rbp), %edx
	addl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%ecx, -1616(%rbp,%rax,4)
	movl	-3224(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3224(%rbp)
.L8:
	movl	-3224(%rbp), %edx
	movl	-3236(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3228(%rbp)
.L7:
	movl	-3228(%rbp), %edx
	movl	-3232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	-3232(%rbp), %eax
	movl	-3236(%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
.L2:
	leaq	-3232(%rbp), %rdx
	leaq	-3236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3236(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-3232(%rbp), %eax
	testl	%eax, %eax
	je	.L12
.L11:
	movl	$1, %eax
	jmp	.L13
.L12:
	movl	$0, %eax
.L13:
	testl	%eax, %eax
	jne	.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"
.LC1:
	.string	"%d %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
	movl	$3435973837, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$3272, %rsp
	.cfi_def_cfa_offset 3328
	movq	%fs:40, %rax
	movq	%rax, 3256(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	32(%rsp), %r12
	movq	%rax, 8(%rsp)
	leaq	1648(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	orl	32(%rsp), %eax
	je	.L22
	movq	(%rsp), %rdi
	movl	$200, %ecx
	xorl	%eax, %eax
	xorl	%edx, %edx
	rep stosq
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %eax
	movl	%edx, %ecx
	addl	$1, %edx
	imulq	%rbp, %rax
	shrq	$36, %rax
	leal	(%rax,%rax,4), %esi
	cltq
	sall	$2, %esi
	leaq	(%rax,%rax,4), %rax
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 48(%rsp,%rax,4)
	cmpl	$400, %edx
	jne	.L3
	leaq	44(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	movl	$400, 36(%rsp)
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	leaq	40(%rsp), %r14
	leaq	36(%rsp), %r13
	leal	-1(%rax), %edx
	movl	%edx, 44(%rsp)
	testl	%eax, %eax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %rax
	movslq	36(%rsp), %rdx
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rax
	movl	$0, 48(%rsp,%rax,4)
	movl	44(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 44(%rsp)
	testl	%eax, %eax
	jne	.L4
.L7:
	movslq	32(%rsp), %r14
	movl	$1, 36(%rsp)
	movl	$1, 1728(%rsp)
	movslq	28(%rsp), %r11
	testl	%r14d, %r14d
	jle	.L6
	leal	-1(%r14), %eax
	leal	1(%r11), %r15d
	movq	(%rsp), %r9
	leaq	(%rax,%rax,4), %rax
	leal	-1(%r11), %r10d
	salq	$4, %rax
	testl	%r11d, %r11d
	leaq	48(%rsp), %r8
	leaq	1808(%rsp,%rax), %r13
	movl	$1, %eax
	leaq	128(%rsp), %rdi
	cmovle	%eax, %r15d
	leaq	1728(%rsp), %rsi
	addq	$2, %r10
	.p2align 4,,10
	.p2align 3
.L10:
	testl	%r11d, %r11d
	jle	.L8
	movl	(%rsi), %edx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%r9,%rax,4), %ecx
	imull	-4(%rdi,%rax,4), %edx
	imull	(%r8,%rax,4), %ecx
	addl	%ecx, %edx
	movl	%edx, (%rsi,%rax,4)
	addq	$1, %rax
	cmpq	%rax, %r10
	jne	.L9
.L8:
	addq	$80, %rsi
	addq	$80, %r9
	addq	$80, %r8
	addq	$80, %rdi
	cmpq	%r13, %rsi
	jne	.L10
	leal	1(%r14), %eax
	movl	%r15d, 40(%rsp)
	movl	%eax, 36(%rsp)
.L6:
	leaq	(%r14,%r14,4), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	leaq	(%r11,%rax,4), %rax
	movl	1648(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L22:
	movq	3256(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$3272, %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
.L23:
	.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"
.LC1:
	.string	"%d %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
	movl	$3435973837, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$3272, %rsp
	.cfi_def_cfa_offset 3328
	movq	%fs:40, %rax
	movq	%rax, 3256(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	32(%rsp), %r12
	movq	%rax, 8(%rsp)
	leaq	1648(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	orl	32(%rsp), %eax
	je	.L22
	movq	(%rsp), %rdi
	movl	$200, %ecx
	xorl	%eax, %eax
	xorl	%edx, %edx
	rep stosq
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %eax
	movl	%edx, %ecx
	addl	$1, %edx
	imulq	%rbp, %rax
	shrq	$36, %rax
	leal	(%rax,%rax,4), %esi
	cltq
	sall	$2, %esi
	leaq	(%rax,%rax,4), %rax
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 48(%rsp,%rax,4)
	cmpl	$400, %edx
	jne	.L3
	leaq	44(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	movl	$400, 36(%rsp)
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	leaq	40(%rsp), %r14
	leaq	36(%rsp), %r13
	leal	-1(%rax), %edx
	movl	%edx, 44(%rsp)
	testl	%eax, %eax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %rax
	movslq	36(%rsp), %rdx
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rax
	movl	$0, 48(%rsp,%rax,4)
	movl	44(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 44(%rsp)
	testl	%eax, %eax
	jne	.L4
.L7:
	movslq	32(%rsp), %r14
	movl	$1, 36(%rsp)
	movl	$1, 1728(%rsp)
	movslq	28(%rsp), %r11
	testl	%r14d, %r14d
	jle	.L6
	leal	-1(%r14), %eax
	leal	1(%r11), %r15d
	movq	(%rsp), %r9
	leaq	(%rax,%rax,4), %rax
	leal	-1(%r11), %r10d
	salq	$4, %rax
	testl	%r11d, %r11d
	leaq	48(%rsp), %r8
	leaq	1808(%rsp,%rax), %r13
	movl	$1, %eax
	leaq	128(%rsp), %rdi
	cmovle	%eax, %r15d
	leaq	1728(%rsp), %rsi
	addq	$2, %r10
	.p2align 4,,10
	.p2align 3
.L10:
	testl	%r11d, %r11d
	jle	.L8
	movl	(%rsi), %edx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%r9,%rax,4), %ecx
	imull	-4(%rdi,%rax,4), %edx
	imull	(%r8,%rax,4), %ecx
	addl	%ecx, %edx
	movl	%edx, (%rsi,%rax,4)
	addq	$1, %rax
	cmpq	%rax, %r10
	jne	.L9
.L8:
	addq	$80, %rsi
	addq	$80, %r9
	addq	$80, %r8
	addq	$80, %rdi
	cmpq	%r13, %rsi
	jne	.L10
	leal	1(%r14), %eax
	movl	%r15d, 40(%rsp)
	movl	%eax, 36(%rsp)
.L6:
	leaq	(%r14,%r14,4), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	leaq	(%r11,%rax,4), %rax
	movl	1648(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L22:
	movq	3256(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$3272, %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
.L23:
	.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 w,h,i,j,n;
  while(scanf("%d %d",&w,&h),w||h){
    int f[20][20],d[20][20]={0};
    for(i=0;i<400;i++)f[i/20][i%20]=1;
    scanf("%d",&n);
    while(n--){
      scanf("%d %d",&i,&j);
      f[j][i]=0;
    }
    d[1][0]=1;
    for(i=1;i<=h;i++){
      for(j=1;j<=w;j++)d[i][j]=d[i-1][j]*f[i-1][j]+d[i][j-1]*f[i][j-1];
    }
    printf("%d\n",d[h][w]);
  }
  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 w,h,i,j,n;
  while(scanf("%d %d",&w,&h),w||h){
    int f[20][20],d[20][20]={0};
    for(i=0;i<400;i++)f[i/20][i%20]=1;
    scanf("%d",&n);
    while(n--){
      scanf("%d %d",&i,&j);
      f[j][i]=0;
    }
    d[1][0]=1;
    for(i=1;i<=h;i++){
      for(j=1;j<=w;j++)d[i][j]=d[i-1][j]*f[i-1][j]+d[i][j-1]*f[i][j-1];
    }
    printf("%d\n",d[h][w]);
  }
  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	$3248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L14:
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$200, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3228(%rbp)
	jmp	.L3
.L4:
	movl	-3228(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-3228(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$1, -3216(%rbp,%rax,4)
	movl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3228(%rbp)
.L3:
	movl	-3228(%rbp), %eax
	cmpl	$399, %eax
	jle	.L4
	leaq	-3220(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L5
.L6:
	leaq	-3224(%rbp), %rdx
	leaq	-3228(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3224(%rbp), %eax
	movl	-3228(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -3216(%rbp,%rax,4)
.L5:
	movl	-3220(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -3220(%rbp)
	testl	%eax, %eax
	jne	.L6
	movl	$1, -1536(%rbp)
	movl	$1, -3228(%rbp)
	jmp	.L7
.L10:
	movl	$1, -3224(%rbp)
	jmp	.L8
.L9:
	movl	-3228(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-3224(%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	-3228(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-3224(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-3216(%rbp,%rax,4), %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-3228(%rbp), %eax
	movl	-3224(%rbp), %edx
	subl	$1, %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), %ecx
	movl	-3228(%rbp), %eax
	movl	-3224(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movl	-3216(%rbp,%rax,4), %eax
	imull	%eax, %ecx
	movl	-3228(%rbp), %eax
	movl	-3224(%rbp), %edx
	addl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%ecx, -1616(%rbp,%rax,4)
	movl	-3224(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3224(%rbp)
.L8:
	movl	-3224(%rbp), %edx
	movl	-3236(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3228(%rbp)
.L7:
	movl	-3228(%rbp), %edx
	movl	-3232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	-3232(%rbp), %eax
	movl	-3236(%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
.L2:
	leaq	-3232(%rbp), %rdx
	leaq	-3236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3236(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-3232(%rbp), %eax
	testl	%eax, %eax
	je	.L12
.L11:
	movl	$1, %eax
	jmp	.L13
.L12:
	movl	$0, %eax
.L13:
	testl	%eax, %eax
	jne	.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"
.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	$3248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L14:
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$200, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3228(%rbp)
	jmp	.L3
.L4:
	movl	-3228(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-3228(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$1, -3216(%rbp,%rax,4)
	movl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3228(%rbp)
.L3:
	movl	-3228(%rbp), %eax
	cmpl	$399, %eax
	jle	.L4
	leaq	-3220(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L5
.L6:
	leaq	-3224(%rbp), %rdx
	leaq	-3228(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3224(%rbp), %eax
	movl	-3228(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -3216(%rbp,%rax,4)
.L5:
	movl	-3220(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -3220(%rbp)
	testl	%eax, %eax
	jne	.L6
	movl	$1, -1536(%rbp)
	movl	$1, -3228(%rbp)
	jmp	.L7
.L10:
	movl	$1, -3224(%rbp)
	jmp	.L8
.L9:
	movl	-3228(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-3224(%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	-3228(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-3224(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-3216(%rbp,%rax,4), %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-3228(%rbp), %eax
	movl	-3224(%rbp), %edx
	subl	$1, %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), %ecx
	movl	-3228(%rbp), %eax
	movl	-3224(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movl	-3216(%rbp,%rax,4), %eax
	imull	%eax, %ecx
	movl	-3228(%rbp), %eax
	movl	-3224(%rbp), %edx
	addl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%ecx, -1616(%rbp,%rax,4)
	movl	-3224(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3224(%rbp)
.L8:
	movl	-3224(%rbp), %edx
	movl	-3236(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3228(%rbp)
.L7:
	movl	-3228(%rbp), %edx
	movl	-3232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	-3232(%rbp), %eax
	movl	-3236(%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
.L2:
	leaq	-3232(%rbp), %rdx
	leaq	-3236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3236(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-3232(%rbp), %eax
	testl	%eax, %eax
	je	.L12
.L11:
	movl	$1, %eax
	jmp	.L13
.L12:
	movl	$0, %eax
.L13:
	testl	%eax, %eax
	jne	.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:
