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>
#include <stdlib.h>


int main(int argc,char *argv[]){
	int a[400],d[200][2],i,j,k,ansWidth,ansHeight,N;
	int right,left,up,bottom;
	while(1){
		right = 0;
		left = 0;
		up = 0;
		bottom = 0;
				
		scanf("%d",&N);
		if(N == 0){
			break;
		}			
		for(i = 0;i < N-1;i++){
			scanf("%d %d",&a[i*2],&a[i*2+1]);			
		}
		//printf("%d\n",N);
		//for(i = 0;i < N-1;i++){
		//	printf("%d %d\n",a[i*2],a[i*2+1]);
		//}

		//????\?
		d[0][0] = 0;
		d[0][1] = 0;
		for(i = 0;i < N-1;i++){
			switch(a[i*2+1]){
				case 0:
					d[i+1][0] = d[a[i*2]][0]-1;
					d[i+1][1] = d[a[i*2]][1];
					break;
				case 1:
					d[i+1][0] = d[a[i*2]][0];
					d[i+1][1] = d[a[i*2]][1]-1;
					break;
				case 2:
					d[i+1][0] = d[a[i*2]][0]+1;
					d[i+1][1] = d[a[i*2]][1];
					break;
				case 3:
					d[i+1][0] = d[a[i*2]][0];
					d[i+1][1] = d[a[i*2]][1]+1;
					break;
								
			}
			
		}
			
		for(i = 0;i < N;i++){
			//printf("(%d,%d)\n",d[i][0],d[i][1]);
			if(d[i][0] > right){
				right = d[i][0];
			}else if(d[i][0] < left){
				left = d[i][0];
			}else if(d[i][1] > up){
				up = d[i][1];
			}else if(d[i][1] < bottom){
				bottom = d[i][1];
			}
		
		}
		printf("%d %d\n",right - left+1,up-bottom+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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$3264, %rsp
	movl	%edi, -3252(%rbp)
	movq	%rsi, -3264(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L19:
	movl	$0, -3232(%rbp)
	movl	$0, -3228(%rbp)
	movl	$0, -3224(%rbp)
	movl	$0, -3220(%rbp)
	leaq	-3240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3240(%rbp), %eax
	testl	%eax, %eax
	je	.L23
	movl	$0, -3236(%rbp)
	jmp	.L4
.L5:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	leaq	-3216(%rbp), %rdx
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	leaq	-3216(%rbp), %rcx
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3236(%rbp)
.L4:
	movl	-3240(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -3236(%rbp)
	jl	.L5
	movl	$0, -1616(%rbp)
	movl	$0, -1612(%rbp)
	movl	$0, -3236(%rbp)
	jmp	.L6
.L12:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	je	.L7
	cmpl	$3, %eax
	jg	.L8
	cmpl	$2, %eax
	je	.L9
	cmpl	$2, %eax
	jg	.L8
	testl	%eax, %eax
	je	.L10
	cmpl	$1, %eax
	je	.L11
	jmp	.L8
.L10:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	-1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1612(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	jmp	.L8
.L11:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1616(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	-1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	jmp	.L8
.L9:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1612(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	jmp	.L8
.L7:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1616(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	nop
.L8:
	addl	$1, -3236(%rbp)
.L6:
	movl	-3240(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -3236(%rbp)
	jl	.L12
	movl	$0, -3236(%rbp)
	jmp	.L13
.L18:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	cmpl	%eax, -3232(%rbp)
	jge	.L14
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	%eax, -3232(%rbp)
	jmp	.L15
.L14:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	cmpl	%eax, -3228(%rbp)
	jle	.L16
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	%eax, -3228(%rbp)
	jmp	.L15
.L16:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	cmpl	%eax, -3224(%rbp)
	jge	.L17
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	%eax, -3224(%rbp)
	jmp	.L15
.L17:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	cmpl	%eax, -3220(%rbp)
	jle	.L15
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	%eax, -3220(%rbp)
.L15:
	addl	$1, -3236(%rbp)
.L13:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3236(%rbp)
	jl	.L18
	movl	-3224(%rbp), %eax
	subl	-3220(%rbp), %eax
	leal	1(%rax), %edx
	movl	-3232(%rbp), %eax
	subl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L23:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
.LFB39:
	.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	.LC1(%rip), %rbx
	subq	$3240, %rsp
	.cfi_def_cfa_offset 3296
	movq	%fs:40, %rax
	movq	%rax, 3224(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r13
	leaq	16(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r13, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	je	.L2
	cmpl	$1, %esi
	jle	.L3
	movq	%rbp, %r14
	movq	%rbp, %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	leaq	4(%r15), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addl	$1, %r12d
	addq	$8, %r15
	leal	-1(%rsi), %eax
	cmpl	%r12d, %eax
	jg	.L4
	movq	$0, 1616(%rsp)
	testl	%eax, %eax
	jle	.L5
	leal	-2(%rsi), %eax
	leaq	8(%rbp), %rdx
	leaq	1624(%rsp), %rcx
	leaq	(%rdx,%rax,8), %rdi
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L28:
	cmpl	$1, %eax
	jne	.L10
	movslq	(%r14), %r8
	movl	1620(%rsp,%r8,8), %eax
	movd	1616(%rsp,%r8,8), %xmm0
	subl	$1, %eax
	movd	%eax, %xmm2
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, (%rcx)
.L10:
	movq	%rdx, %r14
	addq	$8, %rcx
	cmpq	%rdi, %rdx
	je	.L5
.L29:
	addq	$8, %rdx
.L12:
	movl	4(%r14), %eax
	cmpl	$2, %eax
	je	.L6
	jg	.L7
	testl	%eax, %eax
	jne	.L28
	movslq	(%r14), %rax
	addq	$8, %rcx
	movq	%rdx, %r14
	movl	1616(%rsp,%rax,8), %r11d
	movl	1620(%rsp,%rax,8), %eax
	leal	-1(%r11), %r10d
	movd	%eax, %xmm1
	movd	%r10d, %xmm0
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx)
	cmpq	%rdi, %rdx
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%esi, %esi
	jle	.L18
	leal	-1(%rsi), %edx
	leaq	1616(%rsp), %rax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	leaq	1624(%rsp,%rdx,8), %rdi
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L31:
	cmpl	%r8d, %esi
	jl	.L20
	movl	4(%rax), %esi
	cmpl	%ecx, %esi
	jg	.L21
	cmpl	%esi, %r9d
	cmovg	%esi, %r9d
.L14:
	addq	$8, %rax
	cmpq	%rax, %rdi
	je	.L30
.L15:
	movl	(%rax), %esi
	cmpl	%edx, %esi
	jle	.L31
	addq	$8, %rax
	movl	%esi, %edx
	cmpq	%rax, %rdi
	jne	.L15
.L30:
	subl	%r9d, %ecx
	subl	%r8d, %edx
	addl	$1, %ecx
	addl	$1, %edx
.L13:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$3, %eax
	jne	.L10
	movslq	(%r14), %r8
	movl	1620(%rsp,%r8,8), %eax
	movd	1616(%rsp,%r8,8), %xmm0
	addl	$1, %eax
	movd	%eax, %xmm4
	punpckldq	%xmm4, %xmm0
	movq	%xmm0, (%rcx)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	(%r14), %rax
	movl	1616(%rsp,%rax,8), %r11d
	movl	1620(%rsp,%rax,8), %eax
	leal	1(%r11), %r10d
	movd	%eax, %xmm3
	movd	%r10d, %xmm0
	punpckldq	%xmm3, %xmm0
	movq	%xmm0, (%rcx)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%esi, %r8d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%esi, %ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L2:
	movq	3224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$3240, %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
.L18:
	.cfi_restore_state
	movl	$1, %edx
	movl	$1, %ecx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	$0, 1616(%rsp)
	jmp	.L5
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:
.LFB39:
	.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	.LC1(%rip), %rbx
	subq	$3240, %rsp
	.cfi_def_cfa_offset 3296
	movq	%fs:40, %rax
	movq	%rax, 3224(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r13
	leaq	16(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r13, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	je	.L2
	cmpl	$1, %esi
	jle	.L3
	movq	%rbp, %r14
	movq	%rbp, %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	leaq	4(%r15), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addl	$1, %r12d
	addq	$8, %r15
	leal	-1(%rsi), %eax
	cmpl	%r12d, %eax
	jg	.L4
	movq	$0, 1616(%rsp)
	testl	%eax, %eax
	jle	.L5
	leal	-2(%rsi), %eax
	leaq	8(%rbp), %rdx
	leaq	1624(%rsp), %rcx
	leaq	(%rdx,%rax,8), %rdi
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L28:
	cmpl	$1, %eax
	jne	.L10
	movslq	(%r14), %r8
	movl	1620(%rsp,%r8,8), %eax
	movd	1616(%rsp,%r8,8), %xmm0
	subl	$1, %eax
	movd	%eax, %xmm2
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, (%rcx)
.L10:
	movq	%rdx, %r14
	addq	$8, %rcx
	cmpq	%rdi, %rdx
	je	.L5
.L29:
	addq	$8, %rdx
.L12:
	movl	4(%r14), %eax
	cmpl	$2, %eax
	je	.L6
	jg	.L7
	testl	%eax, %eax
	jne	.L28
	movslq	(%r14), %rax
	addq	$8, %rcx
	movq	%rdx, %r14
	movl	1616(%rsp,%rax,8), %r11d
	movl	1620(%rsp,%rax,8), %eax
	leal	-1(%r11), %r10d
	movd	%eax, %xmm1
	movd	%r10d, %xmm0
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rcx)
	cmpq	%rdi, %rdx
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%esi, %esi
	jle	.L18
	leal	-1(%rsi), %edx
	leaq	1616(%rsp), %rax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	leaq	1624(%rsp,%rdx,8), %rdi
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L31:
	cmpl	%r8d, %esi
	jl	.L20
	movl	4(%rax), %esi
	cmpl	%ecx, %esi
	jg	.L21
	cmpl	%esi, %r9d
	cmovg	%esi, %r9d
.L14:
	addq	$8, %rax
	cmpq	%rax, %rdi
	je	.L30
.L15:
	movl	(%rax), %esi
	cmpl	%edx, %esi
	jle	.L31
	addq	$8, %rax
	movl	%esi, %edx
	cmpq	%rax, %rdi
	jne	.L15
.L30:
	subl	%r9d, %ecx
	subl	%r8d, %edx
	addl	$1, %ecx
	addl	$1, %edx
.L13:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$3, %eax
	jne	.L10
	movslq	(%r14), %r8
	movl	1620(%rsp,%r8,8), %eax
	movd	1616(%rsp,%r8,8), %xmm0
	addl	$1, %eax
	movd	%eax, %xmm4
	punpckldq	%xmm4, %xmm0
	movq	%xmm0, (%rcx)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	(%r14), %rax
	movl	1616(%rsp,%rax,8), %r11d
	movl	1620(%rsp,%rax,8), %eax
	leal	1(%r11), %r10d
	movd	%eax, %xmm3
	movd	%r10d, %xmm0
	punpckldq	%xmm3, %xmm0
	movq	%xmm0, (%rcx)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%esi, %r8d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%esi, %ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L2:
	movq	3224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$3240, %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
.L18:
	.cfi_restore_state
	movl	$1, %edx
	movl	$1, %ecx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	$0, 1616(%rsp)
	jmp	.L5
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>
#include <stdlib.h>


int main(int argc,char *argv[]){
	int a[400],d[200][2],i,j,k,ansWidth,ansHeight,N;
	int right,left,up,bottom;
	while(1){
		right = 0;
		left = 0;
		up = 0;
		bottom = 0;
				
		scanf("%d",&N);
		if(N == 0){
			break;
		}			
		for(i = 0;i < N-1;i++){
			scanf("%d %d",&a[i*2],&a[i*2+1]);			
		}
		//printf("%d\n",N);
		//for(i = 0;i < N-1;i++){
		//	printf("%d %d\n",a[i*2],a[i*2+1]);
		//}

		//????\?
		d[0][0] = 0;
		d[0][1] = 0;
		for(i = 0;i < N-1;i++){
			switch(a[i*2+1]){
				case 0:
					d[i+1][0] = d[a[i*2]][0]-1;
					d[i+1][1] = d[a[i*2]][1];
					break;
				case 1:
					d[i+1][0] = d[a[i*2]][0];
					d[i+1][1] = d[a[i*2]][1]-1;
					break;
				case 2:
					d[i+1][0] = d[a[i*2]][0]+1;
					d[i+1][1] = d[a[i*2]][1];
					break;
				case 3:
					d[i+1][0] = d[a[i*2]][0];
					d[i+1][1] = d[a[i*2]][1]+1;
					break;
								
			}
			
		}
			
		for(i = 0;i < N;i++){
			//printf("(%d,%d)\n",d[i][0],d[i][1]);
			if(d[i][0] > right){
				right = d[i][0];
			}else if(d[i][0] < left){
				left = d[i][0];
			}else if(d[i][1] > up){
				up = d[i][1];
			}else if(d[i][1] < bottom){
				bottom = d[i][1];
			}
		
		}
		printf("%d %d\n",right - left+1,up-bottom+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>
#include <stdlib.h>


int main(int argc,char *argv[]){
	int a[400],d[200][2],i,j,k,ansWidth,ansHeight,N;
	int right,left,up,bottom;
	while(1){
		right = 0;
		left = 0;
		up = 0;
		bottom = 0;
				
		scanf("%d",&N);
		if(N == 0){
			break;
		}			
		for(i = 0;i < N-1;i++){
			scanf("%d %d",&a[i*2],&a[i*2+1]);			
		}
		//printf("%d\n",N);
		//for(i = 0;i < N-1;i++){
		//	printf("%d %d\n",a[i*2],a[i*2+1]);
		//}

		//????\?
		d[0][0] = 0;
		d[0][1] = 0;
		for(i = 0;i < N-1;i++){
			switch(a[i*2+1]){
				case 0:
					d[i+1][0] = d[a[i*2]][0]-1;
					d[i+1][1] = d[a[i*2]][1];
					break;
				case 1:
					d[i+1][0] = d[a[i*2]][0];
					d[i+1][1] = d[a[i*2]][1]-1;
					break;
				case 2:
					d[i+1][0] = d[a[i*2]][0]+1;
					d[i+1][1] = d[a[i*2]][1];
					break;
				case 3:
					d[i+1][0] = d[a[i*2]][0];
					d[i+1][1] = d[a[i*2]][1]+1;
					break;
								
			}
			
		}
			
		for(i = 0;i < N;i++){
			//printf("(%d,%d)\n",d[i][0],d[i][1]);
			if(d[i][0] > right){
				right = d[i][0];
			}else if(d[i][0] < left){
				left = d[i][0];
			}else if(d[i][1] > up){
				up = d[i][1];
			}else if(d[i][1] < bottom){
				bottom = d[i][1];
			}
		
		}
		printf("%d %d\n",right - left+1,up-bottom+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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$3264, %rsp
	movl	%edi, -3252(%rbp)
	movq	%rsi, -3264(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L19:
	movl	$0, -3232(%rbp)
	movl	$0, -3228(%rbp)
	movl	$0, -3224(%rbp)
	movl	$0, -3220(%rbp)
	leaq	-3240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3240(%rbp), %eax
	testl	%eax, %eax
	je	.L23
	movl	$0, -3236(%rbp)
	jmp	.L4
.L5:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	leaq	-3216(%rbp), %rdx
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	leaq	-3216(%rbp), %rcx
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3236(%rbp)
.L4:
	movl	-3240(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -3236(%rbp)
	jl	.L5
	movl	$0, -1616(%rbp)
	movl	$0, -1612(%rbp)
	movl	$0, -3236(%rbp)
	jmp	.L6
.L12:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	je	.L7
	cmpl	$3, %eax
	jg	.L8
	cmpl	$2, %eax
	je	.L9
	cmpl	$2, %eax
	jg	.L8
	testl	%eax, %eax
	je	.L10
	cmpl	$1, %eax
	je	.L11
	jmp	.L8
.L10:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	-1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1612(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	jmp	.L8
.L11:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1616(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	-1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	jmp	.L8
.L9:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1612(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	jmp	.L8
.L7:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1616(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	nop
.L8:
	addl	$1, -3236(%rbp)
.L6:
	movl	-3240(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -3236(%rbp)
	jl	.L12
	movl	$0, -3236(%rbp)
	jmp	.L13
.L18:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	cmpl	%eax, -3232(%rbp)
	jge	.L14
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	%eax, -3232(%rbp)
	jmp	.L15
.L14:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	cmpl	%eax, -3228(%rbp)
	jle	.L16
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	%eax, -3228(%rbp)
	jmp	.L15
.L16:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	cmpl	%eax, -3224(%rbp)
	jge	.L17
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	%eax, -3224(%rbp)
	jmp	.L15
.L17:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	cmpl	%eax, -3220(%rbp)
	jle	.L15
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	%eax, -3220(%rbp)
.L15:
	addl	$1, -3236(%rbp)
.L13:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3236(%rbp)
	jl	.L18
	movl	-3224(%rbp), %eax
	subl	-3220(%rbp), %eax
	leal	1(%rax), %edx
	movl	-3232(%rbp), %eax
	subl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L23:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$3264, %rsp
	movl	%edi, -3252(%rbp)
	movq	%rsi, -3264(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L19:
	movl	$0, -3232(%rbp)
	movl	$0, -3228(%rbp)
	movl	$0, -3224(%rbp)
	movl	$0, -3220(%rbp)
	leaq	-3240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3240(%rbp), %eax
	testl	%eax, %eax
	je	.L23
	movl	$0, -3236(%rbp)
	jmp	.L4
.L5:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	leaq	-3216(%rbp), %rdx
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	leaq	-3216(%rbp), %rcx
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3236(%rbp)
.L4:
	movl	-3240(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -3236(%rbp)
	jl	.L5
	movl	$0, -1616(%rbp)
	movl	$0, -1612(%rbp)
	movl	$0, -3236(%rbp)
	jmp	.L6
.L12:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	je	.L7
	cmpl	$3, %eax
	jg	.L8
	cmpl	$2, %eax
	je	.L9
	cmpl	$2, %eax
	jg	.L8
	testl	%eax, %eax
	je	.L10
	cmpl	$1, %eax
	je	.L11
	jmp	.L8
.L10:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	-1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1612(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	jmp	.L8
.L11:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1616(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	-1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	jmp	.L8
.L9:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1612(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	jmp	.L8
.L7:
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	movl	-1616(%rbp,%rax,8), %edx
	movslq	%ecx, %rax
	movl	%edx, -1616(%rbp,%rax,8)
	movl	-3236(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	-3236(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -1612(%rbp,%rax,8)
	nop
.L8:
	addl	$1, -3236(%rbp)
.L6:
	movl	-3240(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -3236(%rbp)
	jl	.L12
	movl	$0, -3236(%rbp)
	jmp	.L13
.L18:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	cmpl	%eax, -3232(%rbp)
	jge	.L14
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	%eax, -3232(%rbp)
	jmp	.L15
.L14:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	cmpl	%eax, -3228(%rbp)
	jle	.L16
	movl	-3236(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,8), %eax
	movl	%eax, -3228(%rbp)
	jmp	.L15
.L16:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	cmpl	%eax, -3224(%rbp)
	jge	.L17
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	%eax, -3224(%rbp)
	jmp	.L15
.L17:
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	cmpl	%eax, -3220(%rbp)
	jle	.L15
	movl	-3236(%rbp), %eax
	cltq
	movl	-1612(%rbp,%rax,8), %eax
	movl	%eax, -3220(%rbp)
.L15:
	addl	$1, -3236(%rbp)
.L13:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3236(%rbp)
	jl	.L18
	movl	-3224(%rbp), %eax
	subl	-3220(%rbp), %eax
	leal	1(%rax), %edx
	movl	-3232(%rbp), %eax
	subl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L23:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
