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>

#define N 200
#define MIN(A,B) \
  ( (A) < (B) ? (A) : (B) )
#define MAX(A,B) \
  ( (A) > (B) ? (A) : (B) )

/** Application main entry point. */
int main (
  int     argc,
  char  * argv[ ]
  )
{
  int i;

  for ( ; ; )
  {
    int x[ N ] = { 0 }, y[ N ] = { 0 };
    int l = 0, r = 0
      , t = 0, b = 0;
    int n;

    scanf ( "%d", &n );
    if ( !( n ) ) break ;

    for ( i = 1; i < n; ++i )
    {
      int no, d;

      scanf ( "%d%d", &no, &d );
      x[ i ] = x[ no ]; y[ i ] = y[ no ];
      switch ( d )
      {
        case 0: --x[ i ]; break ;
        case 1: ++y[ i ]; break ;
        case 2: ++x[ i ]; break ;
        case 3: --y[ i ]; break ;
      }

      l = MIN( l, x[ i ] ); r = MAX( r, x[ i ] );
      t = MIN( t, y[ i ] ); b = MAX( b, y[ i ] );
    }

    printf ( "%d %d\n", r - l + 1, b - t + 1 );
  }

  return ( 0 );
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d %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	$1664, %rsp
	movl	%edi, -1652(%rbp)
	movq	%rsi, -1664(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L11:
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -1632(%rbp)
	movl	$0, -1628(%rbp)
	movl	$0, -1624(%rbp)
	movl	$0, -1620(%rbp)
	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	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	jmp	.L13
.L2:
	movl	$1, -1636(%rbp)
	jmp	.L4
.L10:
	leaq	-1640(%rbp), %rdx
	leaq	-1644(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1644(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1644(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-1640(%rbp), %eax
	cmpl	$3, %eax
	je	.L5
	cmpl	$3, %eax
	jg	.L6
	cmpl	$2, %eax
	je	.L7
	cmpl	$2, %eax
	jg	.L6
	testl	%eax, %eax
	je	.L8
	cmpl	$1, %eax
	je	.L9
	jmp	.L6
.L8:
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	jmp	.L6
.L9:
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	jmp	.L6
.L7:
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	nop
.L6:
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	-1632(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -1632(%rbp)
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	-1628(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -1628(%rbp)
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	-1624(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -1624(%rbp)
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	-1620(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -1620(%rbp)
	addl	$1, -1636(%rbp)
.L4:
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1636(%rbp)
	jl	.L10
	movl	-1620(%rbp), %eax
	subl	-1624(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1628(%rbp), %eax
	subl	-1632(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L13:
	call	__stack_chk_fail@PLT
.L12:
	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 %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
	subq	$1672, %rsp
	.cfi_def_cfa_offset 1728
	movq	%fs:40, %rax
	movq	%rax, 1656(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	848(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rsp), %rdi
	xorl	%eax, %eax
	movl	$100, %ecx
	movq	24(%rsp), %rsi
	rep stosq
	movq	8(%rsp), %rdi
	movl	$100, %ecx
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	cmpl	$1, %eax
	jle	.L13
	leaq	44(%rsp), %r13
	leaq	40(%rsp), %rax
	xorl	%ebp, %ebp
	xorl	%ebx, %ebx
	movl	$1, %r15d
	movq	%rax, 16(%rsp)
	movq	%r13, %rax
	xorl	%r14d, %r14d
	movq	%r15, %r12
	movl	%ebx, %r13d
	movl	%ebp, %r15d
	movq	%rax, %rbp
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	$1, %esi
	jne	.L8
	addl	$1, %eax
	movl	%eax, (%rdi,%r12,4)
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%edx, %r14d
	cmovg	%edx, %r14d
	cmpl	%edx, %r13d
	cmovl	%edx, %r13d
	cmpl	%eax, %r15d
	cmovg	%eax, %r15d
	cmpl	%eax, %ebx
	cmovl	%eax, %ebx
	addq	$1, %r12
	cmpl	%r12d, 36(%rsp)
	jle	.L17
.L10:
	movq	16(%rsp), %rsi
	movq	%rbp, %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %rax
	movq	(%rsp), %rcx
	movq	8(%rsp), %rdi
	movl	44(%rsp), %esi
	movl	48(%rsp,%rax,4), %edx
	movl	848(%rsp,%rax,4), %eax
	movl	%edx, (%rcx,%r12,4)
	movl	%eax, (%rdi,%r12,4)
	cmpl	$2, %esi
	je	.L4
	jg	.L5
	testl	%esi, %esi
	jne	.L18
	subl	$1, %edx
	movl	%edx, (%rcx,%r12,4)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$3, %esi
	jne	.L8
	subl	$1, %eax
	movl	%eax, (%rdi,%r12,4)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %edx
	movl	%edx, (%rcx,%r12,4)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%ebx, %r12d
	movl	%r13d, %ebx
	movl	%r12d, %ecx
	subl	%r14d, %ebx
	subl	%r15d, %ecx
	leal	1(%rbx), %edx
	addl	$1, %ecx
.L3:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	movq	1656(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$1672, %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
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movl	$1, %edx
	movl	$1, %ecx
	jmp	.L3
.L19:
	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 %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
	subq	$1672, %rsp
	.cfi_def_cfa_offset 1728
	movq	%fs:40, %rax
	movq	%rax, 1656(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	848(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rsp), %rdi
	xorl	%eax, %eax
	movl	$100, %ecx
	movq	24(%rsp), %rsi
	rep stosq
	movq	8(%rsp), %rdi
	movl	$100, %ecx
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	cmpl	$1, %eax
	jle	.L13
	leaq	44(%rsp), %r13
	leaq	40(%rsp), %rax
	xorl	%ebp, %ebp
	xorl	%ebx, %ebx
	movl	$1, %r15d
	movq	%rax, 16(%rsp)
	movq	%r13, %rax
	xorl	%r14d, %r14d
	movq	%r15, %r12
	movl	%ebx, %r13d
	movl	%ebp, %r15d
	movq	%rax, %rbp
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	$1, %esi
	jne	.L8
	addl	$1, %eax
	movl	%eax, (%rdi,%r12,4)
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%edx, %r14d
	cmovg	%edx, %r14d
	cmpl	%edx, %r13d
	cmovl	%edx, %r13d
	cmpl	%eax, %r15d
	cmovg	%eax, %r15d
	cmpl	%eax, %ebx
	cmovl	%eax, %ebx
	addq	$1, %r12
	cmpl	%r12d, 36(%rsp)
	jle	.L17
.L10:
	movq	16(%rsp), %rsi
	movq	%rbp, %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %rax
	movq	(%rsp), %rcx
	movq	8(%rsp), %rdi
	movl	44(%rsp), %esi
	movl	48(%rsp,%rax,4), %edx
	movl	848(%rsp,%rax,4), %eax
	movl	%edx, (%rcx,%r12,4)
	movl	%eax, (%rdi,%r12,4)
	cmpl	$2, %esi
	je	.L4
	jg	.L5
	testl	%esi, %esi
	jne	.L18
	subl	$1, %edx
	movl	%edx, (%rcx,%r12,4)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$3, %esi
	jne	.L8
	subl	$1, %eax
	movl	%eax, (%rdi,%r12,4)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %edx
	movl	%edx, (%rcx,%r12,4)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%ebx, %r12d
	movl	%r13d, %ebx
	movl	%r12d, %ecx
	subl	%r14d, %ebx
	subl	%r15d, %ecx
	leal	1(%rbx), %edx
	addl	$1, %ecx
.L3:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	movq	1656(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$1672, %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
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movl	$1, %edx
	movl	$1, %ecx
	jmp	.L3
.L19:
	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>

#define N 200
#define MIN(A,B) \
  ( (A) < (B) ? (A) : (B) )
#define MAX(A,B) \
  ( (A) > (B) ? (A) : (B) )

/** Application main entry point. */
int main (
  int     argc,
  char  * argv[ ]
  )
{
  int i;

  for ( ; ; )
  {
    int x[ N ] = { 0 }, y[ N ] = { 0 };
    int l = 0, r = 0
      , t = 0, b = 0;
    int n;

    scanf ( "%d", &n );
    if ( !( n ) ) break ;

    for ( i = 1; i < n; ++i )
    {
      int no, d;

      scanf ( "%d%d", &no, &d );
      x[ i ] = x[ no ]; y[ i ] = y[ no ];
      switch ( d )
      {
        case 0: --x[ i ]; break ;
        case 1: ++y[ i ]; break ;
        case 2: ++x[ i ]; break ;
        case 3: --y[ i ]; break ;
      }

      l = MIN( l, x[ i ] ); r = MAX( r, x[ i ] );
      t = MIN( t, y[ i ] ); b = MAX( b, y[ i ] );
    }

    printf ( "%d %d\n", r - l + 1, b - t + 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>

#define N 200
#define MIN(A,B) \
  ( (A) < (B) ? (A) : (B) )
#define MAX(A,B) \
  ( (A) > (B) ? (A) : (B) )

/** Application main entry point. */
int main (
  int     argc,
  char  * argv[ ]
  )
{
  int i;

  for ( ; ; )
  {
    int x[ N ] = { 0 }, y[ N ] = { 0 };
    int l = 0, r = 0
      , t = 0, b = 0;
    int n;

    scanf ( "%d", &n );
    if ( !( n ) ) break ;

    for ( i = 1; i < n; ++i )
    {
      int no, d;

      scanf ( "%d%d", &no, &d );
      x[ i ] = x[ no ]; y[ i ] = y[ no ];
      switch ( d )
      {
        case 0: --x[ i ]; break ;
        case 1: ++y[ i ]; break ;
        case 2: ++x[ i ]; break ;
        case 3: --y[ i ]; break ;
      }

      l = MIN( l, x[ i ] ); r = MAX( r, x[ i ] );
      t = MIN( t, y[ i ] ); b = MAX( b, y[ i ] );
    }

    printf ( "%d %d\n", r - l + 1, b - t + 1 );
  }

  return ( 0 );
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d %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	$1664, %rsp
	movl	%edi, -1652(%rbp)
	movq	%rsi, -1664(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L11:
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -1632(%rbp)
	movl	$0, -1628(%rbp)
	movl	$0, -1624(%rbp)
	movl	$0, -1620(%rbp)
	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	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	jmp	.L13
.L2:
	movl	$1, -1636(%rbp)
	jmp	.L4
.L10:
	leaq	-1640(%rbp), %rdx
	leaq	-1644(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1644(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1644(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-1640(%rbp), %eax
	cmpl	$3, %eax
	je	.L5
	cmpl	$3, %eax
	jg	.L6
	cmpl	$2, %eax
	je	.L7
	cmpl	$2, %eax
	jg	.L6
	testl	%eax, %eax
	je	.L8
	cmpl	$1, %eax
	je	.L9
	jmp	.L6
.L8:
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	jmp	.L6
.L9:
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	jmp	.L6
.L7:
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	nop
.L6:
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	-1632(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -1632(%rbp)
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	-1628(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -1628(%rbp)
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	-1624(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -1624(%rbp)
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	-1620(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -1620(%rbp)
	addl	$1, -1636(%rbp)
.L4:
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1636(%rbp)
	jl	.L10
	movl	-1620(%rbp), %eax
	subl	-1624(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1628(%rbp), %eax
	subl	-1632(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L13:
	call	__stack_chk_fail@PLT
.L12:
	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 %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	$1664, %rsp
	movl	%edi, -1652(%rbp)
	movq	%rsi, -1664(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L11:
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -1632(%rbp)
	movl	$0, -1628(%rbp)
	movl	$0, -1624(%rbp)
	movl	$0, -1620(%rbp)
	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	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	jmp	.L13
.L2:
	movl	$1, -1636(%rbp)
	jmp	.L4
.L10:
	leaq	-1640(%rbp), %rdx
	leaq	-1644(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1644(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1644(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-1640(%rbp), %eax
	cmpl	$3, %eax
	je	.L5
	cmpl	$3, %eax
	jg	.L6
	cmpl	$2, %eax
	je	.L7
	cmpl	$2, %eax
	jg	.L6
	testl	%eax, %eax
	je	.L8
	cmpl	$1, %eax
	je	.L9
	jmp	.L6
.L8:
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	jmp	.L6
.L9:
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	jmp	.L6
.L7:
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1636(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	nop
.L6:
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	-1632(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -1632(%rbp)
	movl	-1636(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	-1628(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -1628(%rbp)
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	-1624(%rbp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -1624(%rbp)
	movl	-1636(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	-1620(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -1620(%rbp)
	addl	$1, -1636(%rbp)
.L4:
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1636(%rbp)
	jl	.L10
	movl	-1620(%rbp), %eax
	subl	-1624(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1628(%rbp), %eax
	subl	-1632(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L13:
	call	__stack_chk_fail@PLT
.L12:
	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:
