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(void){
	int v[4][2] = {{-1, 0}, {0, 1}, {1, 0}, {0, -1}};  /* d をベクトル化するための配列 */
	int N, n, d;
	int x[200-1], y[200-1];
	int i, j, xmax, xmin, ymax, ymin;

	while (scanf("%d", &N) == 1){
		if (N < 1 || N >= 200){
			break;
		}

		/* 正方形を並べる */
		x[0] = 0;
		y[0] = 0;
		for (i = 1; i < N; i++){
			scanf("%d %d", &n, &d);
			x[i] = x[n] + v[d][0];
			y[i] = y[n] + v[d][1];
		}

		/* 最も左、下、右、上にある正方形の座標を調べる */
		xmax = x[0];
		xmin = x[0];
		ymax = y[0];
		ymin = y[0];
		for (i = 1; i < N; i++){
			if (x[i] < xmin){
				xmin = x[i];
			}else if (x[i] > xmax){
				xmax = x[i];
			}
			if (y[i] < ymin){
				ymin = y[i];
			}else if (y[i] > ymax){
				ymax = y[i];
			}
		}

		/* 必要な箱の大きさを出力する */
		/* xmax, xmin の絶対値はそれぞれ、座標平面の正の部分、負の部分の大きさを表す */
		/* ゆえに 箱の大きさは xmax - xmin + 1 */
		printf("%d %d\n", xmax - xmin + 1, ymax - ymin + 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	$-1, -1648(%rbp)
	movl	$0, -1644(%rbp)
	movl	$0, -1640(%rbp)
	movl	$1, -1636(%rbp)
	movl	$1, -1632(%rbp)
	movl	$0, -1628(%rbp)
	movl	$0, -1624(%rbp)
	movl	$-1, -1620(%rbp)
	jmp	.L2
.L12:
	movl	-1680(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-1680(%rbp), %eax
	cmpl	$199, %eax
	jg	.L3
	movl	$0, -1616(%rbp)
	movl	$0, -816(%rbp)
	movl	$1, -1668(%rbp)
	jmp	.L4
.L5:
	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	-1648(%rbp,%rax,8), %eax
	addl	%eax, %edx
	movl	-1668(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1676(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-1672(%rbp), %eax
	cltq
	movl	-1644(%rbp,%rax,8), %eax
	addl	%eax, %edx
	movl	-1668(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -1668(%rbp)
.L4:
	movl	-1680(%rbp), %eax
	cmpl	%eax, -1668(%rbp)
	jl	.L5
	movl	-1616(%rbp), %eax
	movl	%eax, -1664(%rbp)
	movl	-1616(%rbp), %eax
	movl	%eax, -1660(%rbp)
	movl	-816(%rbp), %eax
	movl	%eax, -1656(%rbp)
	movl	-816(%rbp), %eax
	movl	%eax, -1652(%rbp)
	movl	$1, -1668(%rbp)
	jmp	.L6
.L11:
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1660(%rbp)
	jle	.L7
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1660(%rbp)
	jmp	.L8
.L7:
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1664(%rbp)
	jge	.L8
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1664(%rbp)
.L8:
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, -1652(%rbp)
	jle	.L9
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -1652(%rbp)
	jmp	.L10
.L9:
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, -1656(%rbp)
	jge	.L10
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -1656(%rbp)
.L10:
	addl	$1, -1668(%rbp)
.L6:
	movl	-1680(%rbp), %eax
	cmpl	%eax, -1668(%rbp)
	jl	.L11
	movl	-1656(%rbp), %eax
	subl	-1652(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1664(%rbp), %eax
	subl	-1660(%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
	cmpl	$1, %eax
	je	.L12
.L3:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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
	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	.LC2(%rip), %rbx
	subq	$1688, %rsp
	.cfi_def_cfa_offset 1744
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 1672(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %r13
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC1(%rip), %xmm0
	leaq	24(%rsp), %rbp
	movq	%rax, 8(%rsp)
	movaps	%xmm0, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%eax, 4(%rsp)
	cmpl	$1, %eax
	jne	.L3
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	cmpl	$198, %edx
	ja	.L3
	movl	$0, 64(%rsp)
	movl	$1, %r12d
	leaq	64(%rsp), %r14
	leaq	864(%rsp), %r15
	movl	$0, 864(%rsp)
	cmpl	$1, %eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	movslq	24(%rsp), %rdx
	movl	32(%rsp,%rsi,8), %eax
	addl	64(%rsp,%rdx,4), %eax
	movl	%eax, (%r14,%r12,4)
	movl	36(%rsp,%rsi,8), %eax
	movslq	20(%rsp), %rsi
	addl	864(%rsp,%rdx,4), %eax
	movl	%eax, (%r15,%r12,4)
	addq	$1, %r12
	cmpl	%r12d, %esi
	jg	.L4
	cmpl	$1, %esi
	jle	.L6
	movl	$1, %eax
	xorl	%r10d, %r10d
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	movl	(%r15,%rax,4), %ecx
	cmpl	%ecx, %r10d
	jg	.L14
.L21:
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
	addq	$1, %rax
	cmpq	%rax, %rsi
	je	.L19
.L9:
	movl	(%r14,%rax,4), %ecx
	cmpl	%edi, %ecx
	jge	.L20
	movl	%ecx, %edi
	movl	(%r15,%rax,4), %ecx
	cmpl	%ecx, %r10d
	jle	.L21
.L14:
	addq	$1, %rax
	movl	%ecx, %r10d
	cmpq	%rax, %rsi
	jne	.L9
.L19:
	subl	%r10d, %r12d
	subl	%edi, %edx
	leal	1(%r12), %eax
	addl	$1, %edx
	movl	%eax, 4(%rsp)
	movl	%eax, %ecx
.L5:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	1672(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$1688, %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
.L6:
	.cfi_restore_state
	movl	4(%rsp), %ecx
	movl	$1, %edx
	jmp	.L5
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-1
	.long	0
	.long	0
	.long	1
	.align 16
.LC1:
	.long	1
	.long	0
	.long	0
	.long	-1
	.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
	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	.LC2(%rip), %rbx
	subq	$1688, %rsp
	.cfi_def_cfa_offset 1744
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 1672(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %r13
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC1(%rip), %xmm0
	leaq	24(%rsp), %rbp
	movq	%rax, 8(%rsp)
	movaps	%xmm0, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%eax, 4(%rsp)
	cmpl	$1, %eax
	jne	.L3
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	cmpl	$198, %edx
	ja	.L3
	movl	$0, 64(%rsp)
	movl	$1, %r12d
	leaq	64(%rsp), %r14
	leaq	864(%rsp), %r15
	movl	$0, 864(%rsp)
	cmpl	$1, %eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	movslq	24(%rsp), %rdx
	movl	32(%rsp,%rsi,8), %eax
	addl	64(%rsp,%rdx,4), %eax
	movl	%eax, (%r14,%r12,4)
	movl	36(%rsp,%rsi,8), %eax
	movslq	20(%rsp), %rsi
	addl	864(%rsp,%rdx,4), %eax
	movl	%eax, (%r15,%r12,4)
	addq	$1, %r12
	cmpl	%r12d, %esi
	jg	.L4
	cmpl	$1, %esi
	jle	.L6
	movl	$1, %eax
	xorl	%r10d, %r10d
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	movl	(%r15,%rax,4), %ecx
	cmpl	%ecx, %r10d
	jg	.L14
.L21:
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
	addq	$1, %rax
	cmpq	%rax, %rsi
	je	.L19
.L9:
	movl	(%r14,%rax,4), %ecx
	cmpl	%edi, %ecx
	jge	.L20
	movl	%ecx, %edi
	movl	(%r15,%rax,4), %ecx
	cmpl	%ecx, %r10d
	jle	.L21
.L14:
	addq	$1, %rax
	movl	%ecx, %r10d
	cmpq	%rax, %rsi
	jne	.L9
.L19:
	subl	%r10d, %r12d
	subl	%edi, %edx
	leal	1(%r12), %eax
	addl	$1, %edx
	movl	%eax, 4(%rsp)
	movl	%eax, %ecx
.L5:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	1672(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$1688, %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
.L6:
	.cfi_restore_state
	movl	4(%rsp), %ecx
	movl	$1, %edx
	jmp	.L5
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-1
	.long	0
	.long	0
	.long	1
	.align 16
.LC1:
	.long	1
	.long	0
	.long	0
	.long	-1
	.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(void){
	int v[4][2] = {{-1, 0}, {0, 1}, {1, 0}, {0, -1}};  /* d をベクトル化するための配列 */
	int N, n, d;
	int x[200-1], y[200-1];
	int i, j, xmax, xmin, ymax, ymin;

	while (scanf("%d", &N) == 1){
		if (N < 1 || N >= 200){
			break;
		}

		/* 正方形を並べる */
		x[0] = 0;
		y[0] = 0;
		for (i = 1; i < N; i++){
			scanf("%d %d", &n, &d);
			x[i] = x[n] + v[d][0];
			y[i] = y[n] + v[d][1];
		}

		/* 最も左、下、右、上にある正方形の座標を調べる */
		xmax = x[0];
		xmin = x[0];
		ymax = y[0];
		ymin = y[0];
		for (i = 1; i < N; i++){
			if (x[i] < xmin){
				xmin = x[i];
			}else if (x[i] > xmax){
				xmax = x[i];
			}
			if (y[i] < ymin){
				ymin = y[i];
			}else if (y[i] > ymax){
				ymax = y[i];
			}
		}

		/* 必要な箱の大きさを出力する */
		/* xmax, xmin の絶対値はそれぞれ、座標平面の正の部分、負の部分の大きさを表す */
		/* ゆえに 箱の大きさは xmax - xmin + 1 */
		printf("%d %d\n", xmax - xmin + 1, ymax - ymin + 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(void){
	int v[4][2] = {{-1, 0}, {0, 1}, {1, 0}, {0, -1}};  /* d をベクトル化するための配列 */
	int N, n, d;
	int x[200-1], y[200-1];
	int i, j, xmax, xmin, ymax, ymin;

	while (scanf("%d", &N) == 1){
		if (N < 1 || N >= 200){
			break;
		}

		/* 正方形を並べる */
		x[0] = 0;
		y[0] = 0;
		for (i = 1; i < N; i++){
			scanf("%d %d", &n, &d);
			x[i] = x[n] + v[d][0];
			y[i] = y[n] + v[d][1];
		}

		/* 最も左、下、右、上にある正方形の座標を調べる */
		xmax = x[0];
		xmin = x[0];
		ymax = y[0];
		ymin = y[0];
		for (i = 1; i < N; i++){
			if (x[i] < xmin){
				xmin = x[i];
			}else if (x[i] > xmax){
				xmax = x[i];
			}
			if (y[i] < ymin){
				ymin = y[i];
			}else if (y[i] > ymax){
				ymax = y[i];
			}
		}

		/* 必要な箱の大きさを出力する */
		/* xmax, xmin の絶対値はそれぞれ、座標平面の正の部分、負の部分の大きさを表す */
		/* ゆえに 箱の大きさは xmax - xmin + 1 */
		printf("%d %d\n", xmax - xmin + 1, ymax - ymin + 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	$-1, -1648(%rbp)
	movl	$0, -1644(%rbp)
	movl	$0, -1640(%rbp)
	movl	$1, -1636(%rbp)
	movl	$1, -1632(%rbp)
	movl	$0, -1628(%rbp)
	movl	$0, -1624(%rbp)
	movl	$-1, -1620(%rbp)
	jmp	.L2
.L12:
	movl	-1680(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-1680(%rbp), %eax
	cmpl	$199, %eax
	jg	.L3
	movl	$0, -1616(%rbp)
	movl	$0, -816(%rbp)
	movl	$1, -1668(%rbp)
	jmp	.L4
.L5:
	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	-1648(%rbp,%rax,8), %eax
	addl	%eax, %edx
	movl	-1668(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1676(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-1672(%rbp), %eax
	cltq
	movl	-1644(%rbp,%rax,8), %eax
	addl	%eax, %edx
	movl	-1668(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -1668(%rbp)
.L4:
	movl	-1680(%rbp), %eax
	cmpl	%eax, -1668(%rbp)
	jl	.L5
	movl	-1616(%rbp), %eax
	movl	%eax, -1664(%rbp)
	movl	-1616(%rbp), %eax
	movl	%eax, -1660(%rbp)
	movl	-816(%rbp), %eax
	movl	%eax, -1656(%rbp)
	movl	-816(%rbp), %eax
	movl	%eax, -1652(%rbp)
	movl	$1, -1668(%rbp)
	jmp	.L6
.L11:
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1660(%rbp)
	jle	.L7
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1660(%rbp)
	jmp	.L8
.L7:
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1664(%rbp)
	jge	.L8
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1664(%rbp)
.L8:
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, -1652(%rbp)
	jle	.L9
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -1652(%rbp)
	jmp	.L10
.L9:
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, -1656(%rbp)
	jge	.L10
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -1656(%rbp)
.L10:
	addl	$1, -1668(%rbp)
.L6:
	movl	-1680(%rbp), %eax
	cmpl	%eax, -1668(%rbp)
	jl	.L11
	movl	-1656(%rbp), %eax
	subl	-1652(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1664(%rbp), %eax
	subl	-1660(%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
	cmpl	$1, %eax
	je	.L12
.L3:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	$-1, -1648(%rbp)
	movl	$0, -1644(%rbp)
	movl	$0, -1640(%rbp)
	movl	$1, -1636(%rbp)
	movl	$1, -1632(%rbp)
	movl	$0, -1628(%rbp)
	movl	$0, -1624(%rbp)
	movl	$-1, -1620(%rbp)
	jmp	.L2
.L12:
	movl	-1680(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-1680(%rbp), %eax
	cmpl	$199, %eax
	jg	.L3
	movl	$0, -1616(%rbp)
	movl	$0, -816(%rbp)
	movl	$1, -1668(%rbp)
	jmp	.L4
.L5:
	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	-1648(%rbp,%rax,8), %eax
	addl	%eax, %edx
	movl	-1668(%rbp), %eax
	cltq
	movl	%edx, -1616(%rbp,%rax,4)
	movl	-1676(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-1672(%rbp), %eax
	cltq
	movl	-1644(%rbp,%rax,8), %eax
	addl	%eax, %edx
	movl	-1668(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -1668(%rbp)
.L4:
	movl	-1680(%rbp), %eax
	cmpl	%eax, -1668(%rbp)
	jl	.L5
	movl	-1616(%rbp), %eax
	movl	%eax, -1664(%rbp)
	movl	-1616(%rbp), %eax
	movl	%eax, -1660(%rbp)
	movl	-816(%rbp), %eax
	movl	%eax, -1656(%rbp)
	movl	-816(%rbp), %eax
	movl	%eax, -1652(%rbp)
	movl	$1, -1668(%rbp)
	jmp	.L6
.L11:
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1660(%rbp)
	jle	.L7
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1660(%rbp)
	jmp	.L8
.L7:
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1664(%rbp)
	jge	.L8
	movl	-1668(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1664(%rbp)
.L8:
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, -1652(%rbp)
	jle	.L9
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -1652(%rbp)
	jmp	.L10
.L9:
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, -1656(%rbp)
	jge	.L10
	movl	-1668(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -1656(%rbp)
.L10:
	addl	$1, -1668(%rbp)
.L6:
	movl	-1680(%rbp), %eax
	cmpl	%eax, -1668(%rbp)
	jl	.L11
	movl	-1656(%rbp), %eax
	subl	-1652(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1664(%rbp), %eax
	subl	-1660(%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
	cmpl	$1, %eax
	je	.L12
.L3:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
