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 MAX 100005
#define NIL -1
 
typedef struct{
  int parent, left, right;
}Node;
 
Node Tree[MAX];
int Depth[MAX];
int degree[MAX];
int h;
 
void preOrder(int);
void inOrder(int);
void postOrder(int);
 
int main(void){
  int i, n, root;
  int vertex;
  int child[2];
 
 
  scanf("%d", &n);
 
  for ( i = 0; i < n; i++ ) {
    Tree[i].parent = NIL;
    Tree[i].left = NIL;
    Tree[i].right = NIL;
  }
 
  for ( i = 0; i < n; i++ ){
    scanf("%d %d %d", &vertex, &child[0], &child[1]);
 
    //子どもがいない場合はdegreeは0である。
    if(child[0] == NIL && child[1] == NIL)
      degree[vertex] = 0;
 
    //子どもがどちらかにいればdegreeは1である。
    else if(child[0] == NIL && child[1] != NIL){
      degree[vertex] = 1;
      Tree[child[1]].parent = vertex;
      Tree[vertex].right = child[1];
    }
     
    else if(child[0] != NIL && child[1] == NIL){
      degree[vertex] = 1;
      Tree[child[0]].parent = vertex;
      Tree[vertex].left = child[0];
    }
 
 
    //子どもが両方存在するという事はdegreeは2という事
    else{
      degree[vertex] = 2;
      Tree[child[0]].parent = vertex;
      Tree[child[1]].parent = vertex;
       
      Tree[vertex].left = child[0];
      Tree[vertex].right = child[1];
    }
  }

  for (i = 0; i < n; i++)
  {
    if (Tree[i].parent == NIL){
      root = i;
    }
  }

  printf("Preorder\n");
  preOrder(root);
  printf("\n");
 
  printf("Inorder\n");
  inOrder(root);
  printf("\n");
 
  printf("Postorder\n");
  postOrder(root);
  printf("\n");
 
  return 0;
}
 
void preOrder(int n) {
  if(n == NIL)return;
  printf(" %d", n);
  preOrder(Tree[n].left);
  preOrder(Tree[n].right);
}
 
void inOrder(int n) {
  if(n == NIL)return;
  inOrder(Tree[n].left);
  printf(" %d", n);
  inOrder(Tree[n].right);
}
 
void postOrder(int n) {
  if(n == NIL)return;
  postOrder(Tree[n].left);
  postOrder(Tree[n].right);
  printf(" %d", n);
}
 

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Tree
	.bss
	.align 32
	.type	Tree, @object
	.size	Tree, 1200060
Tree:
	.zero	1200060
	.globl	Depth
	.align 32
	.type	Depth, @object
	.size	Depth, 400020
Depth:
	.zero	400020
	.globl	degree
	.align 32
	.type	degree, @object
	.size	degree, 400020
degree:
	.zero	400020
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"Preorder"
.LC3:
	.string	"Inorder"
.LC4:
	.string	"Postorder"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L2
.L3:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	Tree(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -24(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L3
	movl	$0, -24(%rbp)
	jmp	.L4
.L9:
	leaq	-16(%rbp), %rax
	leaq	4(%rax), %rcx
	leaq	-16(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L5
	movl	-12(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L5
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L6
.L5:
	movl	-16(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L7
	movl	-12(%rbp), %eax
	cmpl	$-1, %eax
	je	.L7
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	jmp	.L6
.L7:
	movl	-16(%rbp), %eax
	cmpl	$-1, %eax
	je	.L8
	movl	-12(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L8
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	jmp	.L6
.L8:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$2, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-12(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L6:
	addl	$1, -24(%rbp)
.L4:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L9
	movl	$0, -24(%rbp)
	jmp	.L10
.L12:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L11
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
.L11:
	addl	$1, -24(%rbp)
.L10:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	preOrder
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	inOrder
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	postOrder
	movl	$10, %edi
	call	putchar@PLT
	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
	.section	.rodata
.LC5:
	.string	" %d"
	.text
	.globl	preOrder
	.type	preOrder, @function
preOrder:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$-1, -4(%rbp)
	je	.L18
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	preOrder
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	preOrder
	jmp	.L15
.L18:
	nop
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	preOrder, .-preOrder
	.globl	inOrder
	.type	inOrder, @function
inOrder:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$-1, -4(%rbp)
	je	.L22
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	inOrder
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	inOrder
	jmp	.L19
.L22:
	nop
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	inOrder, .-inOrder
	.globl	postOrder
	.type	postOrder, @function
postOrder:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$-1, -4(%rbp)
	je	.L26
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	postOrder
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	postOrder
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L23
.L26:
	nop
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	postOrder, .-postOrder
	.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"
	.text
	.p2align 4
	.type	postOrder.part.0, @function
postOrder.part.0:
.LFB27:
	.cfi_startproc
	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
	movslq	%edi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	0(%r13,%r13,2), %rax
	movq	%r13, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	Tree(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	4(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L2
	movslq	%r14d, %r15
	leaq	(%r15,%r15,2), %rax
	movslq	4(%rbx,%rax,4), %rax
	movl	%eax, 8(%rsp)
	cmpl	$-1, %eax
	je	.L3
	movq	%rax, 16(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%rbx,%rax,4), %eax
	movl	%eax, 24(%rsp)
	cmpl	$-1, %eax
	je	.L4
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L5
	movslq	%edx, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L6
	movq	%rcx, 40(%rsp)
	movl	%edx, 32(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rcx
	movl	32(%rsp), %edx
.L6:
	leaq	0(%rbp,%rbp,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L7
	movq	%rcx, 40(%rsp)
	movl	%edx, 32(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rcx
	movl	32(%rsp), %edx
.L7:
	leaq	.LC0(%rip), %rbp
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 32(%rsp)
	movq	%rbp, %rsi
	call	__printf_chk@PLT
	movq	32(%rsp), %rcx
.L5:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L8
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L9
	movq	%rax, 40(%rsp)
	movl	%edx, 32(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rax
	movl	32(%rsp), %edx
.L9:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L10
	movl	%edx, 32(%rsp)
	call	postOrder.part.0
	movl	32(%rsp), %edx
.L10:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	movl	24(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	16(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%eax, 16(%rsp)
	cmpl	$-1, %eax
	je	.L11
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L12
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L13
	movq	%rax, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rax
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L13:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L14
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L14:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 24(%rsp)
	call	__printf_chk@PLT
	movq	24(%rsp), %rcx
.L12:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L15
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L16
	movq	%rax, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movl	24(%rsp), %edx
.L16:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L17
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movl	24(%rsp), %edx
.L17:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L15:
	movl	16(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movl	8(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	leaq	(%r15,%r15,2), %rax
	movl	8(%rbx,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L18
	movslq	%r15d, %rax
	movq	%rax, 8(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%rbx,%rax,4), %eax
	movl	%eax, 16(%rsp)
	cmpl	$-1, %eax
	je	.L19
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L20
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L21
	movq	%rax, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rax
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L21:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L22
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L22:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 24(%rsp)
	call	__printf_chk@PLT
	movq	24(%rsp), %rcx
.L20:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L23
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L24
	movq	%rax, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movl	24(%rsp), %edx
.L24:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L25
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movl	24(%rsp), %edx
.L25:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L23:
	movl	16(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L19:
	movq	8(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%eax, 8(%rsp)
	cmpl	$-1, %eax
	je	.L26
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L27
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L28
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L28:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L29
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L29:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 16(%rsp)
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
.L27:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L30
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L31
	movq	%rax, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rax
	movl	16(%rsp), %edx
.L31:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L32
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movl	16(%rsp), %edx
.L32:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L30:
	movl	8(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L26:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L2:
	leaq	0(%r13,%r13,2), %rax
	movl	8(%rbx,%rax,4), %r13d
	cmpl	$-1, %r13d
	je	.L33
	movslq	%r13d, %r14
	leaq	(%r14,%r14,2), %rax
	movl	4(%rbx,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L34
	movslq	%r15d, %rax
	movq	%rax, 8(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%rbx,%rax,4), %eax
	movl	%eax, 16(%rsp)
	cmpl	$-1, %eax
	je	.L35
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L36
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L37
	movq	%rax, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rax
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L37:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L38
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L38:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 24(%rsp)
	call	__printf_chk@PLT
	movq	24(%rsp), %rcx
.L36:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L39
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L40
	movq	%rax, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movl	24(%rsp), %edx
.L40:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L41
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movl	24(%rsp), %edx
.L41:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L39:
	movl	16(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L35:
	movq	8(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%eax, 8(%rsp)
	cmpl	$-1, %eax
	je	.L42
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L43
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L44
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L44:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L45
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L45:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 16(%rsp)
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
.L43:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L46
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L47
	movq	%rax, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rax
	movl	16(%rsp), %edx
.L47:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L48
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movl	16(%rsp), %edx
.L48:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L46:
	movl	8(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L42:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L34:
	leaq	(%r14,%r14,2), %rax
	movl	8(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L49
	movslq	%r14d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%rbx,%rax,4), %eax
	movl	%eax, 8(%rsp)
	cmpl	$-1, %eax
	je	.L50
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L51
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L52
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L52:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L53
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L53:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 16(%rsp)
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
.L51:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L54
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L55
	movq	%rax, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rax
	movl	16(%rsp), %edx
.L55:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L56
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movl	16(%rsp), %edx
.L56:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L54:
	movl	8(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L50:
	leaq	(%r15,%r15,2), %rax
	movl	8(%rbx,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L57
	movslq	%r15d, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L58
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L59
	movq	%rax, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rax
	movq	16(%rsp), %rcx
	movl	8(%rsp), %edx
.L59:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L60
	movq	%rcx, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movq	16(%rsp), %rcx
	movl	8(%rsp), %edx
.L60:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 8(%rsp)
	call	__printf_chk@PLT
	movq	8(%rsp), %rcx
.L58:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L61
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L62
	movq	%rax, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movq	16(%rsp), %rax
	movl	8(%rsp), %edx
.L62:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L63
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movl	8(%rsp), %edx
.L63:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L61:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L57:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L49:
	movl	%r13d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L33:
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	popq	%rbx
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	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
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE27:
	.size	postOrder.part.0, .-postOrder.part.0
	.p2align 4
	.globl	preOrder
	.type	preOrder, @function
preOrder:
.LFB24:
	.cfi_startproc
	endbr64
	cmpl	$-1, %edi
	je	.L309
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	Tree(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
.L253:
	movl	%ebp, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movslq	%ebp, %rax
	movq	%rax, 32(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%rbx,%rax,4), %ebp
	cmpl	$-1, %ebp
	je	.L254
.L269:
	movl	%ebp, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movslq	%ebp, %rax
	movq	%rax, 8(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L255
.L268:
	movl	%r14d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movslq	%r14d, %rax
	movq	%rax, 16(%rsp)
	leaq	(%rax,%rax,2), %rax
	movslq	4(%rbx,%rax,4), %r15
	cmpl	$-1, %r15d
	je	.L256
.L267:
	movl	%r15d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r15,%r15,2), %rax
	movl	4(%rbx,%rax,4), %ebp
	cmpl	$-1, %ebp
	je	.L257
.L266:
	movl	%ebp, %edx
	movslq	%ebp, %r14
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r14,%r14,2), %rax
	movslq	4(%rbx,%rax,4), %rbp
	cmpl	$-1, %ebp
	je	.L258
.L265:
	movl	%ebp, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%rbx,%rax,4), %r13d
	cmpl	$-1, %r13d
	je	.L259
.L264:
	movl	%r13d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movslq	%r13d, %rax
	movq	%rax, 24(%rsp)
	leaq	(%rax,%rax,2), %rax
	movslq	4(%rbx,%rax,4), %r13
	cmpl	$-1, %r13d
	je	.L260
.L263:
	movl	%r13d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	0(%r13,%r13,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L261
.L262:
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%edx, 40(%rsp)
	call	__printf_chk@PLT
	movslq	40(%rsp), %rdx
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%rbx,%rax,4), %rax
	movl	4(%rax), %edi
	movq	%rax, 40(%rsp)
	call	preOrder
	movq	40(%rsp), %rax
	movl	8(%rax), %edx
	cmpl	$-1, %edx
	jne	.L262
.L261:
	leaq	0(%r13,%r13,2), %rax
	movslq	8(%rbx,%rax,4), %r13
	cmpl	$-1, %r13d
	jne	.L263
.L260:
	movq	24(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %r13d
	cmpl	$-1, %r13d
	jne	.L264
.L259:
	leaq	0(%rbp,%rbp,2), %rax
	movslq	8(%rbx,%rax,4), %rbp
	cmpl	$-1, %ebp
	jne	.L265
.L258:
	leaq	(%r14,%r14,2), %rax
	movl	8(%rbx,%rax,4), %ebp
	cmpl	$-1, %ebp
	jne	.L266
.L257:
	leaq	(%r15,%r15,2), %rax
	movslq	8(%rbx,%rax,4), %r15
	cmpl	$-1, %r15d
	jne	.L267
.L256:
	movq	16(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	jne	.L268
.L255:
	movq	8(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %ebp
	cmpl	$-1, %ebp
	jne	.L269
.L254:
	movq	32(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %ebp
	cmpl	$-1, %ebp
	jne	.L253
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	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
.L309:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE24:
	.size	preOrder, .-preOrder
	.p2align 4
	.globl	inOrder
	.type	inOrder, @function
inOrder:
.LFB25:
	.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	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 36(%rsp)
	cmpl	$-1, %edi
	je	.L312
	leaq	Tree(%rip), %r14
	leaq	.LC0(%rip), %r13
.L313:
	movslq	36(%rsp), %rax
	movq	%rax, 72(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%r14,%rax,4), %eax
	movl	%eax, 24(%rsp)
	cmpl	$-1, %eax
	je	.L314
.L329:
	movslq	24(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%r14,%rax,4), %eax
	movl	%eax, 28(%rsp)
	cmpl	$-1, %eax
	je	.L315
.L328:
	movslq	28(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%r14,%rax,4), %eax
	movl	%eax, 32(%rsp)
	cmpl	$-1, %eax
	je	.L316
.L327:
	movslq	32(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%r14,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L317
.L326:
	movslq	%r15d, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%r14,%rax,4), %r12d
	cmpl	$-1, %r12d
	je	.L318
	movl	%r15d, 12(%rsp)
	movq	%rbx, 16(%rsp)
.L325:
	movslq	%r12d, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%r14,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L319
.L324:
	movslq	%r15d, %rax
	movq	%rax, 64(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%r14,%rax,4), %r8d
	cmpl	$-1, %r8d
	je	.L320
.L323:
	movslq	%r8d, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%r14,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L321
	movq	%rbx, %rcx
.L322:
	movslq	%edx, %rax
	movq	%rcx, 88(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	%r8d, 84(%rsp)
	leaq	(%r14,%rax,4), %rbx
	movl	%edx, 80(%rsp)
	movl	4(%rbx), %edi
	call	inOrder
	movl	80(%rsp), %edx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	8(%rbx), %edx
	movl	84(%rsp), %r8d
	movq	88(%rsp), %rcx
	cmpl	$-1, %edx
	jne	.L322
	movq	%rcx, %rbx
.L321:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r14,%rax,4), %r8d
	cmpl	$-1, %r8d
	jne	.L323
.L320:
	movl	%r15d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	64(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%r14,%rax,4), %r15d
	cmpl	$-1, %r15d
	jne	.L324
.L319:
	movl	%r12d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	0(%rbp,%rbp,2), %rax
	movl	8(%r14,%rax,4), %r12d
	cmpl	$-1, %r12d
	jne	.L325
	movl	12(%rsp), %r15d
	movq	16(%rsp), %rbx
.L318:
	movl	%r15d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r14,%rax,4), %r15d
	cmpl	$-1, %r15d
	jne	.L326
.L317:
	movl	32(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%r14,%rax,4), %eax
	movl	%eax, 32(%rsp)
	cmpl	$-1, %eax
	jne	.L327
.L316:
	movl	28(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	48(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%r14,%rax,4), %eax
	movl	%eax, 28(%rsp)
	cmpl	$-1, %eax
	jne	.L328
.L315:
	movl	24(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%r14,%rax,4), %eax
	movl	%eax, 24(%rsp)
	cmpl	$-1, %eax
	jne	.L329
.L314:
	movl	36(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%r14,%rax,4), %eax
	movl	%eax, 36(%rsp)
	cmpl	$-1, %eax
	jne	.L313
.L312:
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE25:
	.size	inOrder, .-inOrder
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
.LC3:
	.string	"%d %d %d"
.LC4:
	.string	"Preorder"
.LC5:
	.string	"Inorder"
.LC6:
	.string	"Postorder"
	.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
	leaq	.LC1(%rip), %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L371
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L384
	movl	%ecx, %edx
	leaq	Tree(%rip), %r12
	pcmpeqd	%xmm0, %xmm0
	shrl	$2, %edx
	leaq	48(%r12), %rsi
	movq	%r12, %rax
	subl	$1, %edx
	leaq	(%rdx,%rdx,2), %rdx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L373:
	movaps	%xmm0, (%rax)
	addq	$48, %rax
	movaps	%xmm0, -32(%rax)
	movaps	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L373
	movl	%ecx, %eax
	andl	$-4, %eax
	testb	$3, %cl
	je	.L374
.L372:
	movslq	%eax, %rdx
	movq	.LC2(%rip), %rsi
	leaq	(%rdx,%rdx,2), %rdx
	salq	$2, %rdx
	movq	%rsi, (%r12,%rdx)
	movl	$-1, 8(%rdx,%r12)
	leal	1(%rax), %edx
	cmpl	%edx, %ecx
	jle	.L374
	movslq	%edx, %rdx
	addl	$2, %eax
	imulq	$12, %rdx, %rdx
	movq	%rsi, (%r12,%rdx)
	movl	$-1, 8(%rdx,%r12)
	cmpl	%ecx, %eax
	jge	.L374
	cltq
	imulq	$12, %rax, %rax
	movq	%rsi, (%r12,%rax)
	movl	$-1, 8(%rax,%r12)
.L374:
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r15
	leaq	20(%rsp), %r14
	leaq	12(%rsp), %r13
	jmp	.L379
	.p2align 4,,10
	.p2align 3
.L375:
	movl	20(%rsp), %edx
	movq	16(%rsp), %rdi
	movl	12(%rsp), %ecx
	cmpl	$-1, %edx
	je	.L390
	leaq	(%rax,%rax,2), %rax
	movslq	%ecx, %rsi
	leaq	degree(%rip), %r8
	movl	%ecx, (%r12,%rax,4)
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	movl	$2, (%r8,%rsi,4)
	movl	%ecx, (%r12,%rax,4)
	leaq	(%rsi,%rsi,2), %rax
	leaq	4+Tree(%rip), %rsi
	movq	%rdi, (%rsi,%rax,4)
.L377:
	movl	8(%rsp), %ecx
	addl	$1, %ebx
	cmpl	%ebx, %ecx
	jle	.L391
.L379:
	movq	%r14, %rcx
	movq	%r15, %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rax
	cmpl	$-1, %eax
	jne	.L375
	movl	20(%rsp), %edx
	movslq	12(%rsp), %rax
	cmpl	$-1, %edx
	je	.L392
	movslq	%edx, %rsi
	movslq	%eax, %rcx
	leaq	degree(%rip), %rdi
	addl	$1, %ebx
	leaq	(%rsi,%rsi,2), %rsi
	movl	$1, (%rdi,%rcx,4)
	movl	%eax, (%r12,%rsi,4)
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rsp), %ecx
	movl	%edx, 8(%r12,%rax,4)
	cmpl	%ebx, %ecx
	jg	.L379
.L391:
	testl	%ecx, %ecx
	jle	.L371
	leaq	Tree(%rip), %rdx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L382:
	cmpl	$-1, (%rdx)
	cmove	%eax, %ebp
	addl	$1, %eax
	addq	$12, %rdx
	cmpl	%eax, %ecx
	jne	.L382
.L371:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	preOrder
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	inOrder
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	postOrder.part.0
	movl	$10, %edi
	call	putchar@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L393
	addq	$40, %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
.L390:
	.cfi_restore_state
	movslq	%ecx, %rdx
	leaq	degree(%rip), %rdi
	movslq	%eax, %rsi
	movl	$1, (%rdi,%rdx,4)
	leaq	(%rsi,%rsi,2), %rsi
	leaq	(%rdx,%rdx,2), %rdx
	movl	%ecx, (%r12,%rsi,4)
	movl	%eax, 4(%r12,%rdx,4)
	jmp	.L377
	.p2align 4,,10
	.p2align 3
.L392:
	leaq	degree(%rip), %rdi
	movl	$0, (%rdi,%rax,4)
	jmp	.L377
.L384:
	xorl	%eax, %eax
	leaq	Tree(%rip), %r12
	jmp	.L372
.L393:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	postOrder
	.type	postOrder, @function
postOrder:
.LFB26:
	.cfi_startproc
	endbr64
	cmpl	$-1, %edi
	je	.L394
	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
	movslq	%edi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	0(%r13,%r13,2), %rax
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	Tree(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	4(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L396
	movslq	%r14d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L397
	movslq	%edx, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L398
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movl	8(%rsp), %edx
.L398:
	leaq	0(%rbp,%rbp,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L399
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movl	8(%rsp), %edx
.L399:
	leaq	.LC0(%rip), %rbp
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__printf_chk@PLT
.L397:
	leaq	(%r15,%r15,2), %rax
	movl	8(%rbx,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L400
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rdx
	movl	4(%rbx,%rdx,4), %edi
	cmpl	$-1, %edi
	je	.L401
	movq	%rax, 8(%rsp)
	call	postOrder.part.0
	movq	8(%rsp), %rax
.L401:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L402
	call	postOrder.part.0
.L402:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L400:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L396:
	leaq	0(%r13,%r13,2), %rax
	movl	8(%rbx,%rax,4), %r13d
	cmpl	$-1, %r13d
	je	.L403
	movslq	%r13d, %r14
	leaq	(%r14,%r14,2), %rax
	movl	4(%rbx,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L404
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rdx
	movl	4(%rbx,%rdx,4), %edi
	cmpl	$-1, %edi
	je	.L405
	movq	%rax, 8(%rsp)
	call	postOrder.part.0
	movq	8(%rsp), %rax
.L405:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L406
	call	postOrder.part.0
.L406:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L404:
	leaq	(%r14,%r14,2), %rax
	movl	8(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L407
	movslq	%r14d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L408
	call	postOrder.part.0
.L408:
	leaq	(%r15,%r15,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L409
	call	postOrder.part.0
.L409:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L407:
	movl	%r13d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L403:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	popq	%rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_restore 12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_restore 13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_restore 14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_restore 15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L394:
	ret
	.cfi_endproc
.LFE26:
	.size	postOrder, .-postOrder
	.globl	h
	.bss
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	degree
	.align 32
	.type	degree, @object
	.size	degree, 400020
degree:
	.zero	400020
	.globl	Depth
	.align 32
	.type	Depth, @object
	.size	Depth, 400020
Depth:
	.zero	400020
	.globl	Tree
	.align 32
	.type	Tree, @object
	.size	Tree, 1200060
Tree:
	.zero	1200060
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	-1
	.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
.LC0:
	.string	" %d"
	.text
	.p2align 4
	.type	postOrder.part.0, @function
postOrder.part.0:
.LFB27:
	.cfi_startproc
	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
	movslq	%edi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	0(%r13,%r13,2), %rax
	movq	%r13, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	Tree(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	4(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L2
	movslq	%r14d, %r15
	leaq	(%r15,%r15,2), %rax
	movslq	4(%rbx,%rax,4), %rax
	movl	%eax, 8(%rsp)
	cmpl	$-1, %eax
	je	.L3
	movq	%rax, 16(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%rbx,%rax,4), %eax
	movl	%eax, 24(%rsp)
	cmpl	$-1, %eax
	je	.L4
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L5
	movslq	%edx, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L6
	movq	%rcx, 40(%rsp)
	movl	%edx, 32(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rcx
	movl	32(%rsp), %edx
.L6:
	leaq	0(%rbp,%rbp,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L7
	movq	%rcx, 40(%rsp)
	movl	%edx, 32(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rcx
	movl	32(%rsp), %edx
.L7:
	leaq	.LC0(%rip), %rbp
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 32(%rsp)
	movq	%rbp, %rsi
	call	__printf_chk@PLT
	movq	32(%rsp), %rcx
.L5:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L8
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L9
	movq	%rax, 40(%rsp)
	movl	%edx, 32(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rax
	movl	32(%rsp), %edx
.L9:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L10
	movl	%edx, 32(%rsp)
	call	postOrder.part.0
	movl	32(%rsp), %edx
.L10:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	movl	24(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	16(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%eax, 16(%rsp)
	cmpl	$-1, %eax
	je	.L11
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L12
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L13
	movq	%rax, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rax
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L13:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L14
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L14:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 24(%rsp)
	call	__printf_chk@PLT
	movq	24(%rsp), %rcx
.L12:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L15
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L16
	movq	%rax, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movl	24(%rsp), %edx
.L16:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L17
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movl	24(%rsp), %edx
.L17:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L15:
	movl	16(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movl	8(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	leaq	(%r15,%r15,2), %rax
	movl	8(%rbx,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L18
	movslq	%r15d, %rax
	movq	%rax, 8(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%rbx,%rax,4), %eax
	movl	%eax, 16(%rsp)
	cmpl	$-1, %eax
	je	.L19
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L20
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L21
	movq	%rax, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rax
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L21:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L22
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L22:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 24(%rsp)
	call	__printf_chk@PLT
	movq	24(%rsp), %rcx
.L20:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L23
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L24
	movq	%rax, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movl	24(%rsp), %edx
.L24:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L25
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movl	24(%rsp), %edx
.L25:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L23:
	movl	16(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L19:
	movq	8(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%eax, 8(%rsp)
	cmpl	$-1, %eax
	je	.L26
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L27
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L28
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L28:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L29
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L29:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 16(%rsp)
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
.L27:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L30
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L31
	movq	%rax, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rax
	movl	16(%rsp), %edx
.L31:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L32
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movl	16(%rsp), %edx
.L32:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L30:
	movl	8(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L26:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L2:
	leaq	0(%r13,%r13,2), %rax
	movl	8(%rbx,%rax,4), %r13d
	cmpl	$-1, %r13d
	je	.L33
	movslq	%r13d, %r14
	leaq	(%r14,%r14,2), %rax
	movl	4(%rbx,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L34
	movslq	%r15d, %rax
	movq	%rax, 8(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%rbx,%rax,4), %eax
	movl	%eax, 16(%rsp)
	cmpl	$-1, %eax
	je	.L35
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L36
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L37
	movq	%rax, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	40(%rsp), %rax
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L37:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L38
	movq	%rcx, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rcx
	movl	24(%rsp), %edx
.L38:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 24(%rsp)
	call	__printf_chk@PLT
	movq	24(%rsp), %rcx
.L36:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L39
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L40
	movq	%rax, 32(%rsp)
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movl	24(%rsp), %edx
.L40:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L41
	movl	%edx, 24(%rsp)
	call	postOrder.part.0
	movl	24(%rsp), %edx
.L41:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L39:
	movl	16(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L35:
	movq	8(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%eax, 8(%rsp)
	cmpl	$-1, %eax
	je	.L42
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L43
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L44
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L44:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L45
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L45:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 16(%rsp)
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
.L43:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L46
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L47
	movq	%rax, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rax
	movl	16(%rsp), %edx
.L47:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L48
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movl	16(%rsp), %edx
.L48:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L46:
	movl	8(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L42:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L34:
	leaq	(%r14,%r14,2), %rax
	movl	8(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L49
	movslq	%r14d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%rbx,%rax,4), %eax
	movl	%eax, 8(%rsp)
	cmpl	$-1, %eax
	je	.L50
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L51
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L52
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L52:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L53
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
.L53:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 16(%rsp)
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
.L51:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L54
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L55
	movq	%rax, 24(%rsp)
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rax
	movl	16(%rsp), %edx
.L55:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L56
	movl	%edx, 16(%rsp)
	call	postOrder.part.0
	movl	16(%rsp), %edx
.L56:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L54:
	movl	8(%rsp), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L50:
	leaq	(%r15,%r15,2), %rax
	movl	8(%rbx,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L57
	movslq	%r15d, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L58
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rsi
	movl	4(%rbx,%rsi,4), %edi
	cmpl	$-1, %edi
	je	.L59
	movq	%rax, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movq	24(%rsp), %rax
	movq	16(%rsp), %rcx
	movl	8(%rsp), %edx
.L59:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L60
	movq	%rcx, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movq	16(%rsp), %rcx
	movl	8(%rsp), %edx
.L60:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rcx, 8(%rsp)
	call	__printf_chk@PLT
	movq	8(%rsp), %rcx
.L58:
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L61
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rbx,%rcx,4), %edi
	cmpl	$-1, %edi
	je	.L62
	movq	%rax, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movq	16(%rsp), %rax
	movl	8(%rsp), %edx
.L62:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L63
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movl	8(%rsp), %edx
.L63:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L61:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L57:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L49:
	movl	%r13d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L33:
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	popq	%rbx
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	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
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE27:
	.size	postOrder.part.0, .-postOrder.part.0
	.p2align 4
	.globl	preOrder
	.type	preOrder, @function
preOrder:
.LFB24:
	.cfi_startproc
	endbr64
	cmpl	$-1, %edi
	je	.L309
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	Tree(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
.L253:
	movl	%ebp, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movslq	%ebp, %rax
	movq	%rax, 32(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%rbx,%rax,4), %ebp
	cmpl	$-1, %ebp
	je	.L254
.L269:
	movl	%ebp, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movslq	%ebp, %rax
	movq	%rax, 8(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L255
.L268:
	movl	%r14d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movslq	%r14d, %rax
	movq	%rax, 16(%rsp)
	leaq	(%rax,%rax,2), %rax
	movslq	4(%rbx,%rax,4), %r15
	cmpl	$-1, %r15d
	je	.L256
.L267:
	movl	%r15d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r15,%r15,2), %rax
	movl	4(%rbx,%rax,4), %ebp
	cmpl	$-1, %ebp
	je	.L257
.L266:
	movl	%ebp, %edx
	movslq	%ebp, %r14
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r14,%r14,2), %rax
	movslq	4(%rbx,%rax,4), %rbp
	cmpl	$-1, %ebp
	je	.L258
.L265:
	movl	%ebp, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%rbx,%rax,4), %r13d
	cmpl	$-1, %r13d
	je	.L259
.L264:
	movl	%r13d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movslq	%r13d, %rax
	movq	%rax, 24(%rsp)
	leaq	(%rax,%rax,2), %rax
	movslq	4(%rbx,%rax,4), %r13
	cmpl	$-1, %r13d
	je	.L260
.L263:
	movl	%r13d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	0(%r13,%r13,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L261
.L262:
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%edx, 40(%rsp)
	call	__printf_chk@PLT
	movslq	40(%rsp), %rdx
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%rbx,%rax,4), %rax
	movl	4(%rax), %edi
	movq	%rax, 40(%rsp)
	call	preOrder
	movq	40(%rsp), %rax
	movl	8(%rax), %edx
	cmpl	$-1, %edx
	jne	.L262
.L261:
	leaq	0(%r13,%r13,2), %rax
	movslq	8(%rbx,%rax,4), %r13
	cmpl	$-1, %r13d
	jne	.L263
.L260:
	movq	24(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %r13d
	cmpl	$-1, %r13d
	jne	.L264
.L259:
	leaq	0(%rbp,%rbp,2), %rax
	movslq	8(%rbx,%rax,4), %rbp
	cmpl	$-1, %ebp
	jne	.L265
.L258:
	leaq	(%r14,%r14,2), %rax
	movl	8(%rbx,%rax,4), %ebp
	cmpl	$-1, %ebp
	jne	.L266
.L257:
	leaq	(%r15,%r15,2), %rax
	movslq	8(%rbx,%rax,4), %r15
	cmpl	$-1, %r15d
	jne	.L267
.L256:
	movq	16(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	jne	.L268
.L255:
	movq	8(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %ebp
	cmpl	$-1, %ebp
	jne	.L269
.L254:
	movq	32(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %ebp
	cmpl	$-1, %ebp
	jne	.L253
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	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
.L309:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE24:
	.size	preOrder, .-preOrder
	.p2align 4
	.globl	inOrder
	.type	inOrder, @function
inOrder:
.LFB25:
	.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	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 36(%rsp)
	cmpl	$-1, %edi
	je	.L312
	leaq	Tree(%rip), %r14
	leaq	.LC0(%rip), %r13
.L313:
	movslq	36(%rsp), %rax
	movq	%rax, 72(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%r14,%rax,4), %eax
	movl	%eax, 24(%rsp)
	cmpl	$-1, %eax
	je	.L314
.L329:
	movslq	24(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%r14,%rax,4), %eax
	movl	%eax, 28(%rsp)
	cmpl	$-1, %eax
	je	.L315
.L328:
	movslq	28(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%r14,%rax,4), %eax
	movl	%eax, 32(%rsp)
	cmpl	$-1, %eax
	je	.L316
.L327:
	movslq	32(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%r14,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L317
.L326:
	movslq	%r15d, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%r14,%rax,4), %r12d
	cmpl	$-1, %r12d
	je	.L318
	movl	%r15d, 12(%rsp)
	movq	%rbx, 16(%rsp)
.L325:
	movslq	%r12d, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%r14,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L319
.L324:
	movslq	%r15d, %rax
	movq	%rax, 64(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	4(%r14,%rax,4), %r8d
	cmpl	$-1, %r8d
	je	.L320
.L323:
	movslq	%r8d, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%r14,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L321
	movq	%rbx, %rcx
.L322:
	movslq	%edx, %rax
	movq	%rcx, 88(%rsp)
	leaq	(%rax,%rax,2), %rax
	movl	%r8d, 84(%rsp)
	leaq	(%r14,%rax,4), %rbx
	movl	%edx, 80(%rsp)
	movl	4(%rbx), %edi
	call	inOrder
	movl	80(%rsp), %edx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	8(%rbx), %edx
	movl	84(%rsp), %r8d
	movq	88(%rsp), %rcx
	cmpl	$-1, %edx
	jne	.L322
	movq	%rcx, %rbx
.L321:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r14,%rax,4), %r8d
	cmpl	$-1, %r8d
	jne	.L323
.L320:
	movl	%r15d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	64(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%r14,%rax,4), %r15d
	cmpl	$-1, %r15d
	jne	.L324
.L319:
	movl	%r12d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	0(%rbp,%rbp,2), %rax
	movl	8(%r14,%rax,4), %r12d
	cmpl	$-1, %r12d
	jne	.L325
	movl	12(%rsp), %r15d
	movq	16(%rsp), %rbx
.L318:
	movl	%r15d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r14,%rax,4), %r15d
	cmpl	$-1, %r15d
	jne	.L326
.L317:
	movl	32(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%r14,%rax,4), %eax
	movl	%eax, 32(%rsp)
	cmpl	$-1, %eax
	jne	.L327
.L316:
	movl	28(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	48(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%r14,%rax,4), %eax
	movl	%eax, 28(%rsp)
	cmpl	$-1, %eax
	jne	.L328
.L315:
	movl	24(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%r14,%rax,4), %eax
	movl	%eax, 24(%rsp)
	cmpl	$-1, %eax
	jne	.L329
.L314:
	movl	36(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%r14,%rax,4), %eax
	movl	%eax, 36(%rsp)
	cmpl	$-1, %eax
	jne	.L313
.L312:
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE25:
	.size	inOrder, .-inOrder
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
.LC3:
	.string	"%d %d %d"
.LC4:
	.string	"Preorder"
.LC5:
	.string	"Inorder"
.LC6:
	.string	"Postorder"
	.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
	leaq	.LC1(%rip), %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L371
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L384
	movl	%ecx, %edx
	leaq	Tree(%rip), %r12
	pcmpeqd	%xmm0, %xmm0
	shrl	$2, %edx
	leaq	48(%r12), %rsi
	movq	%r12, %rax
	subl	$1, %edx
	leaq	(%rdx,%rdx,2), %rdx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L373:
	movaps	%xmm0, (%rax)
	addq	$48, %rax
	movaps	%xmm0, -32(%rax)
	movaps	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L373
	movl	%ecx, %eax
	andl	$-4, %eax
	testb	$3, %cl
	je	.L374
.L372:
	movslq	%eax, %rdx
	movq	.LC2(%rip), %rsi
	leaq	(%rdx,%rdx,2), %rdx
	salq	$2, %rdx
	movq	%rsi, (%r12,%rdx)
	movl	$-1, 8(%rdx,%r12)
	leal	1(%rax), %edx
	cmpl	%edx, %ecx
	jle	.L374
	movslq	%edx, %rdx
	addl	$2, %eax
	imulq	$12, %rdx, %rdx
	movq	%rsi, (%r12,%rdx)
	movl	$-1, 8(%rdx,%r12)
	cmpl	%ecx, %eax
	jge	.L374
	cltq
	imulq	$12, %rax, %rax
	movq	%rsi, (%r12,%rax)
	movl	$-1, 8(%rax,%r12)
.L374:
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r15
	leaq	20(%rsp), %r14
	leaq	12(%rsp), %r13
	jmp	.L379
	.p2align 4,,10
	.p2align 3
.L375:
	movl	20(%rsp), %edx
	movq	16(%rsp), %rdi
	movl	12(%rsp), %ecx
	cmpl	$-1, %edx
	je	.L390
	leaq	(%rax,%rax,2), %rax
	movslq	%ecx, %rsi
	leaq	degree(%rip), %r8
	movl	%ecx, (%r12,%rax,4)
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	movl	$2, (%r8,%rsi,4)
	movl	%ecx, (%r12,%rax,4)
	leaq	(%rsi,%rsi,2), %rax
	leaq	4+Tree(%rip), %rsi
	movq	%rdi, (%rsi,%rax,4)
.L377:
	movl	8(%rsp), %ecx
	addl	$1, %ebx
	cmpl	%ebx, %ecx
	jle	.L391
.L379:
	movq	%r14, %rcx
	movq	%r15, %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rax
	cmpl	$-1, %eax
	jne	.L375
	movl	20(%rsp), %edx
	movslq	12(%rsp), %rax
	cmpl	$-1, %edx
	je	.L392
	movslq	%edx, %rsi
	movslq	%eax, %rcx
	leaq	degree(%rip), %rdi
	addl	$1, %ebx
	leaq	(%rsi,%rsi,2), %rsi
	movl	$1, (%rdi,%rcx,4)
	movl	%eax, (%r12,%rsi,4)
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%rsp), %ecx
	movl	%edx, 8(%r12,%rax,4)
	cmpl	%ebx, %ecx
	jg	.L379
.L391:
	testl	%ecx, %ecx
	jle	.L371
	leaq	Tree(%rip), %rdx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L382:
	cmpl	$-1, (%rdx)
	cmove	%eax, %ebp
	addl	$1, %eax
	addq	$12, %rdx
	cmpl	%eax, %ecx
	jne	.L382
.L371:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	preOrder
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	inOrder
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	postOrder.part.0
	movl	$10, %edi
	call	putchar@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L393
	addq	$40, %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
.L390:
	.cfi_restore_state
	movslq	%ecx, %rdx
	leaq	degree(%rip), %rdi
	movslq	%eax, %rsi
	movl	$1, (%rdi,%rdx,4)
	leaq	(%rsi,%rsi,2), %rsi
	leaq	(%rdx,%rdx,2), %rdx
	movl	%ecx, (%r12,%rsi,4)
	movl	%eax, 4(%r12,%rdx,4)
	jmp	.L377
	.p2align 4,,10
	.p2align 3
.L392:
	leaq	degree(%rip), %rdi
	movl	$0, (%rdi,%rax,4)
	jmp	.L377
.L384:
	xorl	%eax, %eax
	leaq	Tree(%rip), %r12
	jmp	.L372
.L393:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	postOrder
	.type	postOrder, @function
postOrder:
.LFB26:
	.cfi_startproc
	endbr64
	cmpl	$-1, %edi
	je	.L394
	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
	movslq	%edi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	0(%r13,%r13,2), %rax
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	Tree(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	4(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L396
	movslq	%r14d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%rbx,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L397
	movslq	%edx, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L398
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movl	8(%rsp), %edx
.L398:
	leaq	0(%rbp,%rbp,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L399
	movl	%edx, 8(%rsp)
	call	postOrder.part.0
	movl	8(%rsp), %edx
.L399:
	leaq	.LC0(%rip), %rbp
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__printf_chk@PLT
.L397:
	leaq	(%r15,%r15,2), %rax
	movl	8(%rbx,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L400
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rdx
	movl	4(%rbx,%rdx,4), %edi
	cmpl	$-1, %edi
	je	.L401
	movq	%rax, 8(%rsp)
	call	postOrder.part.0
	movq	8(%rsp), %rax
.L401:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L402
	call	postOrder.part.0
.L402:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L400:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L396:
	leaq	0(%r13,%r13,2), %rax
	movl	8(%rbx,%rax,4), %r13d
	cmpl	$-1, %r13d
	je	.L403
	movslq	%r13d, %r14
	leaq	(%r14,%r14,2), %rax
	movl	4(%rbx,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L404
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rdx
	movl	4(%rbx,%rdx,4), %edi
	cmpl	$-1, %edi
	je	.L405
	movq	%rax, 8(%rsp)
	call	postOrder.part.0
	movq	8(%rsp), %rax
.L405:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L406
	call	postOrder.part.0
.L406:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L404:
	leaq	(%r14,%r14,2), %rax
	movl	8(%rbx,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L407
	movslq	%r14d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L408
	call	postOrder.part.0
.L408:
	leaq	(%r15,%r15,2), %rax
	movl	8(%rbx,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L409
	call	postOrder.part.0
.L409:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L407:
	movl	%r13d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L403:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	popq	%rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_restore 12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_restore 13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_restore 14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_restore 15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L394:
	ret
	.cfi_endproc
.LFE26:
	.size	postOrder, .-postOrder
	.globl	h
	.bss
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	degree
	.align 32
	.type	degree, @object
	.size	degree, 400020
degree:
	.zero	400020
	.globl	Depth
	.align 32
	.type	Depth, @object
	.size	Depth, 400020
Depth:
	.zero	400020
	.globl	Tree
	.align 32
	.type	Tree, @object
	.size	Tree, 1200060
Tree:
	.zero	1200060
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	-1
	.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>
#define MAX 100005
#define NIL -1
 
typedef struct{
  int parent, left, right;
}Node;
 
Node Tree[MAX];
int Depth[MAX];
int degree[MAX];
int h;
 
void preOrder(int);
void inOrder(int);
void postOrder(int);
 
int main(void){
  int i, n, root;
  int vertex;
  int child[2];
 
 
  scanf("%d", &n);
 
  for ( i = 0; i < n; i++ ) {
    Tree[i].parent = NIL;
    Tree[i].left = NIL;
    Tree[i].right = NIL;
  }
 
  for ( i = 0; i < n; i++ ){
    scanf("%d %d %d", &vertex, &child[0], &child[1]);
 
    //子どもがいない場合はdegreeは0である。
    if(child[0] == NIL && child[1] == NIL)
      degree[vertex] = 0;
 
    //子どもがどちらかにいればdegreeは1である。
    else if(child[0] == NIL && child[1] != NIL){
      degree[vertex] = 1;
      Tree[child[1]].parent = vertex;
      Tree[vertex].right = child[1];
    }
     
    else if(child[0] != NIL && child[1] == NIL){
      degree[vertex] = 1;
      Tree[child[0]].parent = vertex;
      Tree[vertex].left = child[0];
    }
 
 
    //子どもが両方存在するという事はdegreeは2という事
    else{
      degree[vertex] = 2;
      Tree[child[0]].parent = vertex;
      Tree[child[1]].parent = vertex;
       
      Tree[vertex].left = child[0];
      Tree[vertex].right = child[1];
    }
  }

  for (i = 0; i < n; i++)
  {
    if (Tree[i].parent == NIL){
      root = i;
    }
  }

  printf("Preorder\n");
  preOrder(root);
  printf("\n");
 
  printf("Inorder\n");
  inOrder(root);
  printf("\n");
 
  printf("Postorder\n");
  postOrder(root);
  printf("\n");
 
  return 0;
}
 
void preOrder(int n) {
  if(n == NIL)return;
  printf(" %d", n);
  preOrder(Tree[n].left);
  preOrder(Tree[n].right);
}
 
void inOrder(int n) {
  if(n == NIL)return;
  inOrder(Tree[n].left);
  printf(" %d", n);
  inOrder(Tree[n].right);
}
 
void postOrder(int n) {
  if(n == NIL)return;
  postOrder(Tree[n].left);
  postOrder(Tree[n].right);
  printf(" %d", n);
}
 


9
0 1 4
1 2 5
2 -1 -1
3 -1 -1
4 3 8
5 6 7
6 -1 -1
7 -1 -1
8 -1 -1
 9
0 2 4
1 1 3
2 -1 -1
3 -1 -1
4 5 8
5 6 7
6 -1 -1
7 -1 -1
8 -1 -1
 9
0 2 4
1 0 3
2 -1 -1
3 -1 -1
4 5 8
5 6 7
6 -1 -1
7 -1 -1
8 -1 -1
 9
0 2 4
1 0 3
2 -1 -1
3 -1 0
4 5 8
5 6 7
6 -1 -1
7 -1 -1
8 -1 -1
 9
0 2 4
1 0 3
2 -1 -1
3 0 0
4 5 8
5 6 7
6 -1 -1
7 -1 -1
8 -1 -1

Preorder
 0 1 2 5 6 7 4 3 8
Inorder
 2 1 6 5 7 0 3 4 8
Postorder
 2 6 7 5 1 3 8 4 0
 Preorder
 0 2 4 5 6 7 8
Inorder
 2 0 6 5 7 4 8
Postorder
 2 6 7 5 8 4 0
 Preorder
 1 0 2 4 5 6 7 8 3
Inorder
 2 0 6 5 7 4 8 1 3
Postorder
 2 6 7 5 8 4 0 3 1
 Preorder
 1 0 2 4 5 6 7 8 3 0 2 4 5 6 7 8
Inorder
 2 0 6 5 7 4 8 1 3 2 0 6 5 7 4 8
Postorder
 2 6 7 5 8 4 0 2 6 7 5 8 4 0 3 1
 Preorder
 1 0 2 4 5 6 7 8 3 0 2 4 5 6 7 8 0 2 4 5 6 7 8
Inorder
 2 0 6 5 7 4 8 1 2 0 6 5 7 4 8 3 2 0 6 5 7 4 8
Postorder
 2 6 7 5 8 4 0 2 6 7 5 8 4 0 2 6 7 5 8 4 0 3 1

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 MAX 100005
#define NIL -1
 
typedef struct{
  int parent, left, right;
}Node;
 
Node Tree[MAX];
int Depth[MAX];
int degree[MAX];
int h;
 
void preOrder(int);
void inOrder(int);
void postOrder(int);
 
int main(void){
  int i, n, root;
  int vertex;
  int child[2];
 
 
  scanf("%d", &n);
 
  for ( i = 0; i < n; i++ ) {
    Tree[i].parent = NIL;
    Tree[i].left = NIL;
    Tree[i].right = NIL;
  }
 
  for ( i = 0; i < n; i++ ){
    scanf("%d %d %d", &vertex, &child[0], &child[1]);
 
    //子どもがいない場合はdegreeは0である。
    if(child[0] == NIL && child[1] == NIL)
      degree[vertex] = 0;
 
    //子どもがどちらかにいればdegreeは1である。
    else if(child[0] == NIL && child[1] != NIL){
      degree[vertex] = 1;
      Tree[child[1]].parent = vertex;
      Tree[vertex].right = child[1];
    }
     
    else if(child[0] != NIL && child[1] == NIL){
      degree[vertex] = 1;
      Tree[child[0]].parent = vertex;
      Tree[vertex].left = child[0];
    }
 
 
    //子どもが両方存在するという事はdegreeは2という事
    else{
      degree[vertex] = 2;
      Tree[child[0]].parent = vertex;
      Tree[child[1]].parent = vertex;
       
      Tree[vertex].left = child[0];
      Tree[vertex].right = child[1];
    }
  }

  for (i = 0; i < n; i++)
  {
    if (Tree[i].parent == NIL){
      root = i;
    }
  }

  printf("Preorder\n");
  preOrder(root);
  printf("\n");
 
  printf("Inorder\n");
  inOrder(root);
  printf("\n");
 
  printf("Postorder\n");
  postOrder(root);
  printf("\n");
 
  return 0;
}
 
void preOrder(int n) {
  if(n == NIL)return;
  printf(" %d", n);
  preOrder(Tree[n].left);
  preOrder(Tree[n].right);
}
 
void inOrder(int n) {
  if(n == NIL)return;
  inOrder(Tree[n].left);
  printf(" %d", n);
  inOrder(Tree[n].right);
}
 
void postOrder(int n) {
  if(n == NIL)return;
  postOrder(Tree[n].left);
  postOrder(Tree[n].right);
  printf(" %d", n);
}
 

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Tree
	.bss
	.align 32
	.type	Tree, @object
	.size	Tree, 1200060
Tree:
	.zero	1200060
	.globl	Depth
	.align 32
	.type	Depth, @object
	.size	Depth, 400020
Depth:
	.zero	400020
	.globl	degree
	.align 32
	.type	degree, @object
	.size	degree, 400020
degree:
	.zero	400020
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"Preorder"
.LC3:
	.string	"Inorder"
.LC4:
	.string	"Postorder"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L2
.L3:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	Tree(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -24(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L3
	movl	$0, -24(%rbp)
	jmp	.L4
.L9:
	leaq	-16(%rbp), %rax
	leaq	4(%rax), %rcx
	leaq	-16(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L5
	movl	-12(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L5
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L6
.L5:
	movl	-16(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L7
	movl	-12(%rbp), %eax
	cmpl	$-1, %eax
	je	.L7
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	jmp	.L6
.L7:
	movl	-16(%rbp), %eax
	cmpl	$-1, %eax
	je	.L8
	movl	-12(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L8
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	jmp	.L6
.L8:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$2, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-12(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L6:
	addl	$1, -24(%rbp)
.L4:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L9
	movl	$0, -24(%rbp)
	jmp	.L10
.L12:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L11
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
.L11:
	addl	$1, -24(%rbp)
.L10:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	preOrder
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	inOrder
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	postOrder
	movl	$10, %edi
	call	putchar@PLT
	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
	.section	.rodata
.LC5:
	.string	" %d"
	.text
	.globl	preOrder
	.type	preOrder, @function
preOrder:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$-1, -4(%rbp)
	je	.L18
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	preOrder
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	preOrder
	jmp	.L15
.L18:
	nop
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	preOrder, .-preOrder
	.globl	inOrder
	.type	inOrder, @function
inOrder:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$-1, -4(%rbp)
	je	.L22
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	inOrder
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	inOrder
	jmp	.L19
.L22:
	nop
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	inOrder, .-inOrder
	.globl	postOrder
	.type	postOrder, @function
postOrder:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$-1, -4(%rbp)
	je	.L26
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	postOrder
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	postOrder
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L23
.L26:
	nop
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	postOrder, .-postOrder
	.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
	.globl	Tree
	.bss
	.align 32
	.type	Tree, @object
	.size	Tree, 1200060
Tree:
	.zero	1200060
	.globl	Depth
	.align 32
	.type	Depth, @object
	.size	Depth, 400020
Depth:
	.zero	400020
	.globl	degree
	.align 32
	.type	degree, @object
	.size	degree, 400020
degree:
	.zero	400020
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"Preorder"
.LC3:
	.string	"Inorder"
.LC4:
	.string	"Postorder"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L2
.L3:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	Tree(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -24(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L3
	movl	$0, -24(%rbp)
	jmp	.L4
.L9:
	leaq	-16(%rbp), %rax
	leaq	4(%rax), %rcx
	leaq	-16(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L5
	movl	-12(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L5
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L6
.L5:
	movl	-16(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L7
	movl	-12(%rbp), %eax
	cmpl	$-1, %eax
	je	.L7
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	jmp	.L6
.L7:
	movl	-16(%rbp), %eax
	cmpl	$-1, %eax
	je	.L8
	movl	-12(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L8
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	jmp	.L6
.L8:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	degree(%rip), %rax
	movl	$2, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-12(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-28(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+Tree(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L6:
	addl	$1, -24(%rbp)
.L4:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L9
	movl	$0, -24(%rbp)
	jmp	.L10
.L12:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L11
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
.L11:
	addl	$1, -24(%rbp)
.L10:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	preOrder
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	inOrder
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	postOrder
	movl	$10, %edi
	call	putchar@PLT
	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
	.section	.rodata
.LC5:
	.string	" %d"
	.text
	.globl	preOrder
	.type	preOrder, @function
preOrder:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$-1, -4(%rbp)
	je	.L18
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	preOrder
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	preOrder
	jmp	.L15
.L18:
	nop
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	preOrder, .-preOrder
	.globl	inOrder
	.type	inOrder, @function
inOrder:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$-1, -4(%rbp)
	je	.L22
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	inOrder
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	inOrder
	jmp	.L19
.L22:
	nop
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	inOrder, .-inOrder
	.globl	postOrder
	.type	postOrder, @function
postOrder:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$-1, -4(%rbp)
	je	.L26
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	postOrder
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+Tree(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	postOrder
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L23
.L26:
	nop
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	postOrder, .-postOrder
	.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:
