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[]={0,1,0,-1};
  int Y[]={1,0,-1,0};
  int m,n,s,w,e,i,r,k;
  int d[2][200]={0};
  while(scanf("%d",&m),m){
    n=s=w=e=0;
    for(i=1;i<m;i++){
      scanf("%d %d",&r,&k);
      d[0][i]=d[0][r]+Y[k];
      d[1][i]=d[1][r]+X[k];
      if(n<d[0][i])n=d[0][i];
      if(s>d[0][i])s=d[0][i];
      if(e<d[1][i])e=d[1][i];
      if(w>d[1][i])w=d[1][i];
    }
    printf("%d %d\n",n-s+1,e-w+1);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"%d"
	.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	$1680, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1648(%rbp)
	movl	$1, -1644(%rbp)
	movl	$0, -1640(%rbp)
	movl	$-1, -1636(%rbp)
	movl	$1, -1632(%rbp)
	movl	$0, -1628(%rbp)
	movl	$-1, -1624(%rbp)
	movl	$0, -1620(%rbp)
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$200, %ecx
	movq	%rdx, %rdi
	rep stosq
	jmp	.L2
.L9:
	movl	$0, -1656(%rbp)
	movl	-1656(%rbp), %eax
	movl	%eax, -1660(%rbp)
	movl	-1660(%rbp), %eax
	movl	%eax, -1664(%rbp)
	movl	-1664(%rbp), %eax
	movl	%eax, -1668(%rbp)
	movl	$1, -1652(%rbp)
	jmp	.L3
.L8:
	leaq	-1672(%rbp), %rdx
	leaq	-1676(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1676(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %edx
	movl	-1672(%rbp), %eax
	cltq
	movl	-1632(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1652(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1676(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %edx
	movl	-1672(%rbp), %eax
	cltq
	movl	-1648(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1668(%rbp)
	jge	.L4
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1668(%rbp)
.L4:
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1664(%rbp)
	jle	.L5
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1664(%rbp)
.L5:
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1656(%rbp)
	jge	.L6
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1656(%rbp)
.L6:
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1660(%rbp)
	jle	.L7
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1660(%rbp)
.L7:
	addl	$1, -1652(%rbp)
.L3:
	movl	-1680(%rbp), %eax
	cmpl	%eax, -1652(%rbp)
	jl	.L8
	movl	-1656(%rbp), %eax
	subl	-1660(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1668(%rbp), %eax
	subl	-1664(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-1680(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1680(%rbp), %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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
.LC2:
	.string	"%d %d"
.LC3:
	.string	"%d %d\n"
.LC4:
	.string	"%d"
	.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
	movl	$200, %ecx
	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
	subq	$1704, %rsp
	.cfi_def_cfa_offset 1760
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 1688(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rbx
	movq	%rbx, %rdi
	movaps	%xmm0, 48(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movaps	%xmm0, 64(%rsp)
	rep stosq
	leaq	36(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rsi
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	movl	$1, %edx
	movl	$1, %ecx
	cmpl	$1, %eax
	jle	.L5
	leaq	40(%rsp), %rax
	movl	$1, %r14d
	xorl	%r15d, %r15d
	xorl	%ebp, %ebp
	movq	%rax, 8(%rsp)
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %rsi
	movslq	44(%rsp), %rax
	movl	64(%rsp,%rax,4), %edx
	addl	80(%rsp,%rsi,4), %edx
	movl	%edx, (%rbx,%r14,4)
	movl	48(%rsp,%rax,4), %eax
	addl	880(%rsp,%rsi,4), %eax
	cmpl	%edx, %r12d
	cmovl	%edx, %r12d
	cmpl	%edx, %r13d
	movl	%eax, 800(%rbx,%r14,4)
	cmovg	%edx, %r13d
	cmpl	%eax, %r15d
	cmovl	%eax, %r15d
	cmpl	%eax, %ebp
	cmovg	%eax, %ebp
	addq	$1, %r14
	cmpl	%r14d, 36(%rsp)
	jg	.L3
	movl	%r12d, %r8d
	subl	%ebp, %r15d
	subl	%r13d, %r8d
	leal	1(%r15), %ecx
	leal	1(%r8), %edx
.L5:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movq	1688(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$1704, %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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	0
	.long	-1
	.align 16
.LC1:
	.long	1
	.long	0
	.long	-1
	.long	0
	.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
.LC2:
	.string	"%d %d"
.LC3:
	.string	"%d %d\n"
.LC4:
	.string	"%d"
	.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
	movl	$200, %ecx
	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
	subq	$1704, %rsp
	.cfi_def_cfa_offset 1760
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 1688(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rbx
	movq	%rbx, %rdi
	movaps	%xmm0, 48(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movaps	%xmm0, 64(%rsp)
	rep stosq
	leaq	36(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rsi
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	movl	$1, %edx
	movl	$1, %ecx
	cmpl	$1, %eax
	jle	.L5
	leaq	40(%rsp), %rax
	movl	$1, %r14d
	xorl	%r15d, %r15d
	xorl	%ebp, %ebp
	movq	%rax, 8(%rsp)
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %rsi
	movslq	44(%rsp), %rax
	movl	64(%rsp,%rax,4), %edx
	addl	80(%rsp,%rsi,4), %edx
	movl	%edx, (%rbx,%r14,4)
	movl	48(%rsp,%rax,4), %eax
	addl	880(%rsp,%rsi,4), %eax
	cmpl	%edx, %r12d
	cmovl	%edx, %r12d
	cmpl	%edx, %r13d
	movl	%eax, 800(%rbx,%r14,4)
	cmovg	%edx, %r13d
	cmpl	%eax, %r15d
	cmovl	%eax, %r15d
	cmpl	%eax, %ebp
	cmovg	%eax, %ebp
	addq	$1, %r14
	cmpl	%r14d, 36(%rsp)
	jg	.L3
	movl	%r12d, %r8d
	subl	%ebp, %r15d
	subl	%r13d, %r8d
	leal	1(%r15), %ecx
	leal	1(%r8), %edx
.L5:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movq	1688(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$1704, %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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	0
	.long	-1
	.align 16
.LC1:
	.long	1
	.long	0
	.long	-1
	.long	0
	.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[]={0,1,0,-1};
  int Y[]={1,0,-1,0};
  int m,n,s,w,e,i,r,k;
  int d[2][200]={0};
  while(scanf("%d",&m),m){
    n=s=w=e=0;
    for(i=1;i<m;i++){
      scanf("%d %d",&r,&k);
      d[0][i]=d[0][r]+Y[k];
      d[1][i]=d[1][r]+X[k];
      if(n<d[0][i])n=d[0][i];
      if(s>d[0][i])s=d[0][i];
      if(e<d[1][i])e=d[1][i];
      if(w>d[1][i])w=d[1][i];
    }
    printf("%d %d\n",n-s+1,e-w+1);
  }
  return 0;
}
1
5
0 0
0 1
0 2
0 3
12
0 0
1 1
2 0
3 1
4 1
5 1
6 2
7 2
8 2
9 3
10 3
10
0 2
1 2
2 2
3 2
2 1
5 1
6 1
7 1
8 1
0
 1
5
0 0
0 1
0 2
0 3
12
0 0
1 0
2 0
3 1
4 1
5 1
6 2
7 2
8 2
9 3
10 3
10
0 2
1 3
2 2
3 2
2 1
5 1
6 1
7 1
8 1
0
 1
5
0 0
0 0
0 2
0 3
12
0 0
1 0
2 0
3 1
4 1
5 1
6 2
7 2
8 2
9 3
10 3
10
0 2
1 3
2 2
3 2
2 1
5 1
6 1
7 1
8 1
0
 1
5
0 0
0 0
0 2
0 3
12
0 0
1 0
2 0
3 0
4 1
5 1
6 2
7 2
8 2
9 3
10 3
10
0 2
1 3
2 2
3 2
2 1
5 1
6 1
7 1
8 1
0
 1
5
0 0
0 0
0 2
0 3
12
0 0
1 0
2 0
3 0
4 1
5 1
6 2
3 2
8 2
9 3
10 3
10
0 2
1 3
2 2
3 2
2 1
5 1
6 1
7 1
8 1
0
 1
5
0 0
0 1
0 2
0 3
12
0 0
1 0
2 0
3 1
4 1
5 1
6 2
7 2
8 2
9 3
10 3
10
0 2
1 2
2 2
3 2
2 1
5 1
6 1
7 1
8 2
0
 1
5
0 0
0 1
0 2
0 3
12
0 0
1 0
2 0
3 1
4 2
5 1
6 2
7 2
8 2
9 3
10 3
10
0 2
1 3
2 2
3 2
2 1
5 1
6 1
7 1
8 1
0
 1
5
0 0
0 1
0 2
0 3
12
0 0
1 0
2 0
3 1
4 1
5 1
6 2
7 2
8 2
9 3
10 3
10
0 2
1 2
2 1
3 2
2 1
5 1
6 1
7 1
8 2
0
 1
5
0 0
0 1
0 2
0 3
12
0 0
1 0
2 0
3 1
4 2
5 1
6 2
7 1
8 1
9 3
10 3
10
0 2
1 3
2 2
3 2
2 1
5 1
6 1
7 1
8 1
0
 1
5
0 0
0 1
0 2
0 3
12
0 1
1 0
2 0
3 1
4 2
5 1
6 2
7 1
8 1
9 3
10 3
10
0 2
1 3
2 2
3 2
2 1
5 1
6 1
7 1
8 1
0

1 1
3 3
4 5
5 6
 1 1
3 3
4 4
4 6
 1 1
3 2
4 4
4 6
 1 1
3 2
5 3
4 6
 1 1
3 2
5 5
4 6
 1 1
3 3
4 4
5 5
 1 1
3 3
5 3
4 6
 1 1
3 3
4 4
4 5
 1 1
3 3
4 5
4 6
 1 1
3 3
3 6
4 6

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[]={0,1,0,-1};
  int Y[]={1,0,-1,0};
  int m,n,s,w,e,i,r,k;
  int d[2][200]={0};
  while(scanf("%d",&m),m){
    n=s=w=e=0;
    for(i=1;i<m;i++){
      scanf("%d %d",&r,&k);
      d[0][i]=d[0][r]+Y[k];
      d[1][i]=d[1][r]+X[k];
      if(n<d[0][i])n=d[0][i];
      if(s>d[0][i])s=d[0][i];
      if(e<d[1][i])e=d[1][i];
      if(w>d[1][i])w=d[1][i];
    }
    printf("%d %d\n",n-s+1,e-w+1);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"%d"
	.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	$1680, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1648(%rbp)
	movl	$1, -1644(%rbp)
	movl	$0, -1640(%rbp)
	movl	$-1, -1636(%rbp)
	movl	$1, -1632(%rbp)
	movl	$0, -1628(%rbp)
	movl	$-1, -1624(%rbp)
	movl	$0, -1620(%rbp)
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$200, %ecx
	movq	%rdx, %rdi
	rep stosq
	jmp	.L2
.L9:
	movl	$0, -1656(%rbp)
	movl	-1656(%rbp), %eax
	movl	%eax, -1660(%rbp)
	movl	-1660(%rbp), %eax
	movl	%eax, -1664(%rbp)
	movl	-1664(%rbp), %eax
	movl	%eax, -1668(%rbp)
	movl	$1, -1652(%rbp)
	jmp	.L3
.L8:
	leaq	-1672(%rbp), %rdx
	leaq	-1676(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1676(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %edx
	movl	-1672(%rbp), %eax
	cltq
	movl	-1632(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1652(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1676(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %edx
	movl	-1672(%rbp), %eax
	cltq
	movl	-1648(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1668(%rbp)
	jge	.L4
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1668(%rbp)
.L4:
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1664(%rbp)
	jle	.L5
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1664(%rbp)
.L5:
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1656(%rbp)
	jge	.L6
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1656(%rbp)
.L6:
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1660(%rbp)
	jle	.L7
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1660(%rbp)
.L7:
	addl	$1, -1652(%rbp)
.L3:
	movl	-1680(%rbp), %eax
	cmpl	%eax, -1652(%rbp)
	jl	.L8
	movl	-1656(%rbp), %eax
	subl	-1660(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1668(%rbp), %eax
	subl	-1664(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-1680(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1680(%rbp), %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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 %d\n"
.LC2:
	.string	"%d"
	.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	$1680, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1648(%rbp)
	movl	$1, -1644(%rbp)
	movl	$0, -1640(%rbp)
	movl	$-1, -1636(%rbp)
	movl	$1, -1632(%rbp)
	movl	$0, -1628(%rbp)
	movl	$-1, -1624(%rbp)
	movl	$0, -1620(%rbp)
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$200, %ecx
	movq	%rdx, %rdi
	rep stosq
	jmp	.L2
.L9:
	movl	$0, -1656(%rbp)
	movl	-1656(%rbp), %eax
	movl	%eax, -1660(%rbp)
	movl	-1660(%rbp), %eax
	movl	%eax, -1664(%rbp)
	movl	-1664(%rbp), %eax
	movl	%eax, -1668(%rbp)
	movl	$1, -1652(%rbp)
	jmp	.L3
.L8:
	leaq	-1672(%rbp), %rdx
	leaq	-1676(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1676(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %edx
	movl	-1672(%rbp), %eax
	cltq
	movl	-1632(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1652(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1676(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %edx
	movl	-1672(%rbp), %eax
	cltq
	movl	-1648(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1668(%rbp)
	jge	.L4
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1668(%rbp)
.L4:
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1664(%rbp)
	jle	.L5
	movl	-1652(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1664(%rbp)
.L5:
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1656(%rbp)
	jge	.L6
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1656(%rbp)
.L6:
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1660(%rbp)
	jle	.L7
	movl	-1652(%rbp), %eax
	cltq
	addq	$200, %rax
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1660(%rbp)
.L7:
	addl	$1, -1652(%rbp)
.L3:
	movl	-1680(%rbp), %eax
	cmpl	%eax, -1652(%rbp)
	jl	.L8
	movl	-1656(%rbp), %eax
	subl	-1660(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1668(%rbp), %eax
	subl	-1664(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-1680(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1680(%rbp), %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
