Given the following C code and 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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.
Optimized Assembly Code:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```