Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#define N 25
#define NIL -1
int Pre(int t),In(int t),Post(int t);
struct Node{
  int p,l,r;
};
struct Node A[N];

int main(){
  int i,j,n,id,h,d;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    A[i].p=NIL;
    A[i].l=NIL;
    A[i].r=NIL;
  }
  for(i=0;i<n;i++){
    scanf("%d %d %d",&id,&h,&d);
    A[h].p=id;
    A[d].p=id;
    A[id].l=h;
    A[id].r=d;
  }
  for(i=0;i<n;i++){
    if(A[i].p==NIL)
      break;
  }
  printf("Preorder\n");
  Pre(i);
  printf("\n");
  printf("Inorder\n");
  In(i);
  printf("\n");
  printf("Postorder\n");
  Post(i);
  printf("\n");
  return 0;
  }
  int Pre(int t){
    printf(" %d",t);
    if(t!=NIL){
      if(A[t].l!=NIL)Pre(A[t].l);
      if(A[t].r!=NIL)Pre(A[t].r);
    }
    return 0;
  }
  int In(int t){
    if(t!=NIL){
      if(A[t].l!=NIL)
        In(A[t].l);
      printf(" %d",t);
      if(A[t].r!=NIL)
        In(A[t].r);
    }
    return 0;
  }

  int Post(int t){
    if(t!=NIL){
      if(A[t].l!=NIL)
        Post(A[t].l);
      if(A[t].r!=NIL)
        Post(A[t].r);
    }
    printf(" %d",t);
    return 0;
  }

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 300
A:
	.zero	300
	.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	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	A(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L3
	movl	$0, -12(%rbp)
	jmp	.L4
.L5:
	leaq	-16(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	movl	-24(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-16(%rbp), %eax
	movl	-24(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-24(%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	8+A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -12(%rbp)
.L4:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L5
	movl	$0, -12(%rbp)
	jmp	.L6
.L9:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L12
	addl	$1, -12(%rbp)
.L6:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L9
	jmp	.L8
.L12:
	nop
.L8:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	Pre
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	In
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	Post
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	" %d"
	.text
	.globl	Pre
	.type	Pre, @function
Pre:
.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)
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$-1, -4(%rbp)
	je	.L14
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L15
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Pre
.L15:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L14
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Pre
.L14:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Pre, .-Pre
	.globl	In
	.type	In, @function
In:
.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	.L18
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L19
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	In
.L19:
	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+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L18
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	In
.L18:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	In, .-In
	.globl	Post
	.type	Post, @function
Post:
.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	.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+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L23
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Post
.L23:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	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	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Post
.L22:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	Post, .-Post
	.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	In.part.0, @function
In.part.0:
.LFB28:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	A(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
.L17:
	movslq	%r12d, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%r14,%rax,4), %r13d
	cmpl	$-1, %r13d
	je	.L3
	movslq	%r13d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%r14,%rax,4), %edx
	cmpl	$-1, %edx
	jne	.L51
.L5:
	movl	%r13d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r15,%r15,2), %rax
	movl	8(%r14,%rax,4), %r13d
	cmpl	$-1, %r13d
	jne	.L52
.L3:
	movl	%r12d, %edx
	movq	%rbx, %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
	je	.L1
	movslq	%r12d, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%r14,%rax,4), %r13d
	cmpl	$-1, %r13d
	jne	.L53
.L12:
	movl	%r12d, %edx
	movq	%rbx, %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	.L54
.L1:
	addq	$24, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	movslq	%r13d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L9
	call	In.part.0
.L9:
	movl	$1, %edi
	movl	%r13d, %edx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r15,%r15,2), %rax
	movl	8(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L3
	call	In.part.0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L54:
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r14,%rax,4), %rbp
	movl	4(%rbp), %edi
	cmpl	$-1, %edi
	je	.L15
	call	In.part.0
.L15:
	movl	%r12d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rbp), %r12d
	cmpl	$-1, %r12d
	je	.L1
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L51:
	movslq	%edx, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L6
	movq	%rcx, 8(%rsp)
	movl	%edx, (%rsp)
	call	In.part.0
	movq	8(%rsp), %rcx
	movl	(%rsp), %edx
.L6:
	movl	$1, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%rcx, (%rsp)
	call	__printf_chk@PLT
	movq	(%rsp), %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L5
	call	In.part.0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L53:
	movslq	%r13d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L13
	call	In.part.0
.L13:
	movl	$1, %edi
	movl	%r13d, %edx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r15,%r15,2), %rax
	movl	8(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L12
	call	In.part.0
	jmp	.L12
	.cfi_endproc
.LFE28:
	.size	In.part.0, .-In.part.0
	.p2align 4
	.globl	Pre
	.type	Pre, @function
Pre:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movslq	%edi, %rbx
	movl	$1, %edi
	movl	%ebx, %edx
	call	__printf_chk@PLT
	cmpl	$-1, %ebx
	je	.L57
	leaq	A(%rip), %rbp
	leaq	(%rbx,%rbx,2), %rax
	movslq	4(%rbp,%rax,4), %r12
	cmpl	$-1, %r12d
	jne	.L106
.L59:
	leaq	(%rbx,%rbx,2), %rax
	movslq	8(%rbp,%rax,4), %rbx
	cmpl	$-1, %ebx
	jne	.L107
.L57:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L107:
	.cfi_restore_state
	movl	%ebx, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movslq	4(%rbp,%rax,4), %r12
	cmpl	$-1, %r12d
	jne	.L108
.L68:
	leaq	(%rbx,%rbx,2), %rax
	movslq	8(%rbp,%rax,4), %rbx
	cmpl	$-1, %ebx
	je	.L57
	movl	$1, %edi
	movl	%ebx, %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L71
	call	Pre
.L71:
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L57
	call	Pre
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L106:
	movl	%r12d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r12,%r12,2), %rax
	movslq	4(%rbp,%rax,4), %r14
	cmpl	$-1, %r14d
	jne	.L109
.L61:
	leaq	(%r12,%r12,2), %rax
	movslq	8(%rbp,%rax,4), %r12
	cmpl	$-1, %r12d
	je	.L59
	movl	$1, %edi
	movl	%r12d, %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r12,%r12,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L65
	call	Pre
.L65:
	leaq	(%r12,%r12,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L59
	call	Pre
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L109:
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r14,%r14,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L62
	call	Pre
.L62:
	leaq	(%r14,%r14,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L61
	call	Pre
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L108:
	movl	$1, %edi
	movl	%r12d, %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r12,%r12,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L69
	call	Pre
.L69:
	leaq	(%r12,%r12,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L68
	call	Pre
	jmp	.L68
	.cfi_endproc
.LFE24:
	.size	Pre, .-Pre
	.p2align 4
	.globl	In
	.type	In, @function
In:
.LFB25:
	.cfi_startproc
	endbr64
	cmpl	$-1, %edi
	je	.L135
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	A(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movslq	%edi, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%rbp,%rax,4), %r13d
	cmpl	$-1, %r13d
	jne	.L113
	leaq	.LC0(%rip), %r13
.L114:
	movl	%r12d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%rbp,%rax,4), %r12d
	cmpl	$-1, %r12d
	je	.L112
	movslq	%r12d, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L138
.L118:
	movl	$1, %edi
	movl	%r12d, %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L139
.L112:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L113:
	.cfi_restore_state
	movslq	%r13d, %r14
	leaq	(%r14,%r14,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L140
.L115:
	movl	%r13d, %edx
	leaq	.LC0(%rip), %r13
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__printf_chk@PLT
	leaq	(%r14,%r14,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L114
	call	In.part.0
	jmp	.L114
	.p2align 4,,10
	.p2align 3
.L135:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L139:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	call	In.part.0
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L140:
	.cfi_restore_state
	call	In.part.0
	jmp	.L115
	.p2align 4,,10
	.p2align 3
.L138:
	call	In.part.0
	jmp	.L118
	.cfi_endproc
.LFE25:
	.size	In, .-In
	.p2align 4
	.globl	Post
	.type	Post, @function
Post:
.LFB26:
	.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
	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
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$-1, %edi
	je	.L143
	movslq	%edi, %rbx
	leaq	A(%rip), %r13
	leaq	.LC0(%rip), %rbp
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%r13,%rax,4), %r14d
	cmpl	$-1, %r14d
	jne	.L201
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r13,%rax,4), %r14d
	cmpl	$-1, %r14d
	jne	.L202
.L143:
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$24, %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
.L202:
	.cfi_restore_state
	movslq	%r14d, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%r13,%rax,4), %r15d
	cmpl	$-1, %r15d
	jne	.L203
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r13,%rax,4), %r15d
	cmpl	$-1, %r15d
	jne	.L204
.L155:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L143
	.p2align 4,,10
	.p2align 3
.L201:
	movslq	%r14d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%r13,%rax,4), %edx
	cmpl	$-1, %edx
	jne	.L205
	leaq	(%r15,%r15,2), %rax
	movl	8(%r13,%rax,4), %r15d
	cmpl	$-1, %r15d
	jne	.L206
.L148:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r13,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L143
	jmp	.L202
	.p2align 4,,10
	.p2align 3
.L204:
	movslq	%r15d, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L207
.L156:
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L208
.L157:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L155
	.p2align 4,,10
	.p2align 3
.L206:
	movslq	%r15d, %rdx
	leaq	(%rdx,%rdx,2), %rax
	movl	4(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L209
.L149:
	leaq	(%rdx,%rdx,2), %rax
	movl	8(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L210
.L150:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L148
	.p2align 4,,10
	.p2align 3
.L205:
	movslq	%edx, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L211
.L146:
	leaq	0(%rbp,%rbp,2), %rax
	movl	8(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L212
.L147:
	leaq	.LC0(%rip), %rbp
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__printf_chk@PLT
	leaq	(%r15,%r15,2), %rax
	movl	8(%r13,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L148
	jmp	.L206
	.p2align 4,,10
	.p2align 3
.L203:
	movslq	%r15d, %rdx
	leaq	(%rdx,%rdx,2), %rax
	movl	4(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L213
.L153:
	leaq	(%rdx,%rdx,2), %rax
	movl	8(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L214
.L154:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r13,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L155
	jmp	.L204
	.p2align 4,,10
	.p2align 3
.L212:
	movl	%edx, 8(%rsp)
	call	Post
	movl	8(%rsp), %edx
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L210:
	call	Post
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L208:
	call	Post
	jmp	.L157
	.p2align 4,,10
	.p2align 3
.L214:
	call	Post
	jmp	.L154
	.p2align 4,,10
	.p2align 3
.L213:
	movq	%rdx, 8(%rsp)
	call	Post
	movq	8(%rsp), %rdx
	jmp	.L153
	.p2align 4,,10
	.p2align 3
.L211:
	movl	%edx, 8(%rsp)
	call	Post
	movl	8(%rsp), %edx
	jmp	.L146
	.p2align 4,,10
	.p2align 3
.L209:
	movq	%rdx, 8(%rsp)
	call	Post
	movq	8(%rsp), %rdx
	jmp	.L149
	.p2align 4,,10
	.p2align 3
.L207:
	call	Post
	jmp	.L156
	.cfi_endproc
.LFE26:
	.size	Post, .-Post
	.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), %edx
	testl	%edx, %edx
	jle	.L216
	leal	-1(%rdx), %eax
	cmpl	$2, %eax
	jbe	.L224
	movl	%edx, %eax
	pcmpeqd	%xmm0, %xmm0
	shrl	$2, %eax
	movaps	%xmm0, A(%rip)
	movaps	%xmm0, 16+A(%rip)
	movaps	%xmm0, 32+A(%rip)
	cmpl	$1, %eax
	je	.L218
	movaps	%xmm0, 48+A(%rip)
	movaps	%xmm0, 64+A(%rip)
	movaps	%xmm0, 80+A(%rip)
	cmpl	$2, %eax
	je	.L218
	movaps	%xmm0, 96+A(%rip)
	movaps	%xmm0, 112+A(%rip)
	movaps	%xmm0, 128+A(%rip)
	cmpl	$3, %eax
	je	.L218
	movaps	%xmm0, 144+A(%rip)
	movaps	%xmm0, 160+A(%rip)
	movaps	%xmm0, 176+A(%rip)
	cmpl	$4, %eax
	je	.L218
	movaps	%xmm0, 192+A(%rip)
	movaps	%xmm0, 208+A(%rip)
	movaps	%xmm0, 224+A(%rip)
	cmpl	$5, %eax
	je	.L218
	movaps	%xmm0, 240+A(%rip)
	movaps	%xmm0, 256+A(%rip)
	movaps	%xmm0, 272+A(%rip)
.L218:
	movl	%edx, %eax
	leaq	A(%rip), %rbx
	andl	$-4, %eax
	testb	$3, %dl
	je	.L219
.L217:
	movslq	%eax, %rcx
	movq	.LC2(%rip), %rsi
	leaq	A(%rip), %rbx
	leaq	(%rcx,%rcx,2), %rcx
	salq	$2, %rcx
	movq	%rsi, (%rbx,%rcx)
	movl	$-1, 8(%rcx,%rbx)
	leal	1(%rax), %ecx
	cmpl	%edx, %ecx
	jge	.L219
	movslq	%ecx, %rcx
	addl	$2, %eax
	imulq	$12, %rcx, %rcx
	movq	%rsi, (%rbx,%rcx)
	movl	$-1, 8(%rcx,%rbx)
	cmpl	%eax, %edx
	jle	.L219
	cltq
	imulq	$12, %rax, %rax
	movq	%rsi, (%rbx,%rax)
	movl	$-1, 8(%rax,%rbx)
.L219:
	xorl	%r15d, %r15d
	leaq	20(%rsp), %r14
	leaq	16(%rsp), %r13
	leaq	12(%rsp), %r12
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L220:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%r14, %rcx
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rdx
	movslq	12(%rsp), %rax
	leaq	4+A(%rip), %rsi
	movd	16(%rsp), %xmm0
	movd	20(%rsp), %xmm1
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, (%rbx,%rdx,4)
	movslq	20(%rsp), %rdx
	punpckldq	%xmm1, %xmm0
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, (%rbx,%rdx,4)
	leaq	(%rax,%rax,2), %rax
	movq	%xmm0, (%rsi,%rax,4)
	movl	8(%rsp), %edx
	cmpl	%r15d, %edx
	jg	.L220
	testl	%edx, %edx
	jle	.L216
	leaq	-4(%rsi), %rax
	xorl	%ebp, %ebp
	jmp	.L222
	.p2align 4,,10
	.p2align 3
.L244:
	addl	$1, %ebp
	addq	$12, %rax
	cmpl	%ebp, %edx
	je	.L221
.L222:
	cmpl	$-1, (%rax)
	jne	.L244
.L221:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	Pre
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	In.part.0
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	Post
	movl	$10, %edi
	call	putchar@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L245
	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
.L216:
	.cfi_restore_state
	xorl	%ebp, %ebp
	jmp	.L221
.L224:
	xorl	%eax, %eax
	jmp	.L217
.L245:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 300
A:
	.zero	300
	.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	In.part.0, @function
In.part.0:
.LFB28:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	A(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
.L17:
	movslq	%r12d, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%r14,%rax,4), %r13d
	cmpl	$-1, %r13d
	je	.L3
	movslq	%r13d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%r14,%rax,4), %edx
	cmpl	$-1, %edx
	jne	.L51
.L5:
	movl	%r13d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r15,%r15,2), %rax
	movl	8(%r14,%rax,4), %r13d
	cmpl	$-1, %r13d
	jne	.L52
.L3:
	movl	%r12d, %edx
	movq	%rbx, %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
	je	.L1
	movslq	%r12d, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%r14,%rax,4), %r13d
	cmpl	$-1, %r13d
	jne	.L53
.L12:
	movl	%r12d, %edx
	movq	%rbx, %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	.L54
.L1:
	addq	$24, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	movslq	%r13d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L9
	call	In.part.0
.L9:
	movl	$1, %edi
	movl	%r13d, %edx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r15,%r15,2), %rax
	movl	8(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L3
	call	In.part.0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L54:
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r14,%rax,4), %rbp
	movl	4(%rbp), %edi
	cmpl	$-1, %edi
	je	.L15
	call	In.part.0
.L15:
	movl	%r12d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rbp), %r12d
	cmpl	$-1, %r12d
	je	.L1
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L51:
	movslq	%edx, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L6
	movq	%rcx, 8(%rsp)
	movl	%edx, (%rsp)
	call	In.part.0
	movq	8(%rsp), %rcx
	movl	(%rsp), %edx
.L6:
	movl	$1, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%rcx, (%rsp)
	call	__printf_chk@PLT
	movq	(%rsp), %rcx
	leaq	(%rcx,%rcx,2), %rax
	movl	8(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L5
	call	In.part.0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L53:
	movslq	%r13d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L13
	call	In.part.0
.L13:
	movl	$1, %edi
	movl	%r13d, %edx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r15,%r15,2), %rax
	movl	8(%r14,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L12
	call	In.part.0
	jmp	.L12
	.cfi_endproc
.LFE28:
	.size	In.part.0, .-In.part.0
	.p2align 4
	.globl	Pre
	.type	Pre, @function
Pre:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movslq	%edi, %rbx
	movl	$1, %edi
	movl	%ebx, %edx
	call	__printf_chk@PLT
	cmpl	$-1, %ebx
	je	.L57
	leaq	A(%rip), %rbp
	leaq	(%rbx,%rbx,2), %rax
	movslq	4(%rbp,%rax,4), %r12
	cmpl	$-1, %r12d
	jne	.L106
.L59:
	leaq	(%rbx,%rbx,2), %rax
	movslq	8(%rbp,%rax,4), %rbx
	cmpl	$-1, %ebx
	jne	.L107
.L57:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L107:
	.cfi_restore_state
	movl	%ebx, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movslq	4(%rbp,%rax,4), %r12
	cmpl	$-1, %r12d
	jne	.L108
.L68:
	leaq	(%rbx,%rbx,2), %rax
	movslq	8(%rbp,%rax,4), %rbx
	cmpl	$-1, %ebx
	je	.L57
	movl	$1, %edi
	movl	%ebx, %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L71
	call	Pre
.L71:
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L57
	call	Pre
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L106:
	movl	%r12d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r12,%r12,2), %rax
	movslq	4(%rbp,%rax,4), %r14
	cmpl	$-1, %r14d
	jne	.L109
.L61:
	leaq	(%r12,%r12,2), %rax
	movslq	8(%rbp,%rax,4), %r12
	cmpl	$-1, %r12d
	je	.L59
	movl	$1, %edi
	movl	%r12d, %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r12,%r12,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L65
	call	Pre
.L65:
	leaq	(%r12,%r12,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L59
	call	Pre
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L109:
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r14,%r14,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L62
	call	Pre
.L62:
	leaq	(%r14,%r14,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L61
	call	Pre
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L108:
	movl	$1, %edi
	movl	%r12d, %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%r12,%r12,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L69
	call	Pre
.L69:
	leaq	(%r12,%r12,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L68
	call	Pre
	jmp	.L68
	.cfi_endproc
.LFE24:
	.size	Pre, .-Pre
	.p2align 4
	.globl	In
	.type	In, @function
In:
.LFB25:
	.cfi_startproc
	endbr64
	cmpl	$-1, %edi
	je	.L135
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	A(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movslq	%edi, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%rbp,%rax,4), %r13d
	cmpl	$-1, %r13d
	jne	.L113
	leaq	.LC0(%rip), %r13
.L114:
	movl	%r12d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%rbp,%rax,4), %r12d
	cmpl	$-1, %r12d
	je	.L112
	movslq	%r12d, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L138
.L118:
	movl	$1, %edi
	movl	%r12d, %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L139
.L112:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L113:
	.cfi_restore_state
	movslq	%r13d, %r14
	leaq	(%r14,%r14,2), %rax
	movl	4(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L140
.L115:
	movl	%r13d, %edx
	leaq	.LC0(%rip), %r13
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__printf_chk@PLT
	leaq	(%r14,%r14,2), %rax
	movl	8(%rbp,%rax,4), %edi
	cmpl	$-1, %edi
	je	.L114
	call	In.part.0
	jmp	.L114
	.p2align 4,,10
	.p2align 3
.L135:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L139:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	call	In.part.0
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L140:
	.cfi_restore_state
	call	In.part.0
	jmp	.L115
	.p2align 4,,10
	.p2align 3
.L138:
	call	In.part.0
	jmp	.L118
	.cfi_endproc
.LFE25:
	.size	In, .-In
	.p2align 4
	.globl	Post
	.type	Post, @function
Post:
.LFB26:
	.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
	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
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$-1, %edi
	je	.L143
	movslq	%edi, %rbx
	leaq	A(%rip), %r13
	leaq	.LC0(%rip), %rbp
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%r13,%rax,4), %r14d
	cmpl	$-1, %r14d
	jne	.L201
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r13,%rax,4), %r14d
	cmpl	$-1, %r14d
	jne	.L202
.L143:
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$24, %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
.L202:
	.cfi_restore_state
	movslq	%r14d, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%r13,%rax,4), %r15d
	cmpl	$-1, %r15d
	jne	.L203
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r13,%rax,4), %r15d
	cmpl	$-1, %r15d
	jne	.L204
.L155:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L143
	.p2align 4,,10
	.p2align 3
.L201:
	movslq	%r14d, %r15
	leaq	(%r15,%r15,2), %rax
	movl	4(%r13,%rax,4), %edx
	cmpl	$-1, %edx
	jne	.L205
	leaq	(%r15,%r15,2), %rax
	movl	8(%r13,%rax,4), %r15d
	cmpl	$-1, %r15d
	jne	.L206
.L148:
	movl	%r14d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r13,%rax,4), %r14d
	cmpl	$-1, %r14d
	je	.L143
	jmp	.L202
	.p2align 4,,10
	.p2align 3
.L204:
	movslq	%r15d, %rbx
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L207
.L156:
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L208
.L157:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L155
	.p2align 4,,10
	.p2align 3
.L206:
	movslq	%r15d, %rdx
	leaq	(%rdx,%rdx,2), %rax
	movl	4(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L209
.L149:
	leaq	(%rdx,%rdx,2), %rax
	movl	8(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L210
.L150:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L148
	.p2align 4,,10
	.p2align 3
.L205:
	movslq	%edx, %rbp
	leaq	0(%rbp,%rbp,2), %rax
	movl	4(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L211
.L146:
	leaq	0(%rbp,%rbp,2), %rax
	movl	8(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L212
.L147:
	leaq	.LC0(%rip), %rbp
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__printf_chk@PLT
	leaq	(%r15,%r15,2), %rax
	movl	8(%r13,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L148
	jmp	.L206
	.p2align 4,,10
	.p2align 3
.L203:
	movslq	%r15d, %rdx
	leaq	(%rdx,%rdx,2), %rax
	movl	4(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L213
.L153:
	leaq	(%rdx,%rdx,2), %rax
	movl	8(%r13,%rax,4), %edi
	cmpl	$-1, %edi
	jne	.L214
.L154:
	movl	%r15d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r13,%rax,4), %r15d
	cmpl	$-1, %r15d
	je	.L155
	jmp	.L204
	.p2align 4,,10
	.p2align 3
.L212:
	movl	%edx, 8(%rsp)
	call	Post
	movl	8(%rsp), %edx
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L210:
	call	Post
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L208:
	call	Post
	jmp	.L157
	.p2align 4,,10
	.p2align 3
.L214:
	call	Post
	jmp	.L154
	.p2align 4,,10
	.p2align 3
.L213:
	movq	%rdx, 8(%rsp)
	call	Post
	movq	8(%rsp), %rdx
	jmp	.L153
	.p2align 4,,10
	.p2align 3
.L211:
	movl	%edx, 8(%rsp)
	call	Post
	movl	8(%rsp), %edx
	jmp	.L146
	.p2align 4,,10
	.p2align 3
.L209:
	movq	%rdx, 8(%rsp)
	call	Post
	movq	8(%rsp), %rdx
	jmp	.L149
	.p2align 4,,10
	.p2align 3
.L207:
	call	Post
	jmp	.L156
	.cfi_endproc
.LFE26:
	.size	Post, .-Post
	.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), %edx
	testl	%edx, %edx
	jle	.L216
	leal	-1(%rdx), %eax
	cmpl	$2, %eax
	jbe	.L224
	movl	%edx, %eax
	pcmpeqd	%xmm0, %xmm0
	shrl	$2, %eax
	movaps	%xmm0, A(%rip)
	movaps	%xmm0, 16+A(%rip)
	movaps	%xmm0, 32+A(%rip)
	cmpl	$1, %eax
	je	.L218
	movaps	%xmm0, 48+A(%rip)
	movaps	%xmm0, 64+A(%rip)
	movaps	%xmm0, 80+A(%rip)
	cmpl	$2, %eax
	je	.L218
	movaps	%xmm0, 96+A(%rip)
	movaps	%xmm0, 112+A(%rip)
	movaps	%xmm0, 128+A(%rip)
	cmpl	$3, %eax
	je	.L218
	movaps	%xmm0, 144+A(%rip)
	movaps	%xmm0, 160+A(%rip)
	movaps	%xmm0, 176+A(%rip)
	cmpl	$4, %eax
	je	.L218
	movaps	%xmm0, 192+A(%rip)
	movaps	%xmm0, 208+A(%rip)
	movaps	%xmm0, 224+A(%rip)
	cmpl	$5, %eax
	je	.L218
	movaps	%xmm0, 240+A(%rip)
	movaps	%xmm0, 256+A(%rip)
	movaps	%xmm0, 272+A(%rip)
.L218:
	movl	%edx, %eax
	leaq	A(%rip), %rbx
	andl	$-4, %eax
	testb	$3, %dl
	je	.L219
.L217:
	movslq	%eax, %rcx
	movq	.LC2(%rip), %rsi
	leaq	A(%rip), %rbx
	leaq	(%rcx,%rcx,2), %rcx
	salq	$2, %rcx
	movq	%rsi, (%rbx,%rcx)
	movl	$-1, 8(%rcx,%rbx)
	leal	1(%rax), %ecx
	cmpl	%edx, %ecx
	jge	.L219
	movslq	%ecx, %rcx
	addl	$2, %eax
	imulq	$12, %rcx, %rcx
	movq	%rsi, (%rbx,%rcx)
	movl	$-1, 8(%rcx,%rbx)
	cmpl	%eax, %edx
	jle	.L219
	cltq
	imulq	$12, %rax, %rax
	movq	%rsi, (%rbx,%rax)
	movl	$-1, 8(%rax,%rbx)
.L219:
	xorl	%r15d, %r15d
	leaq	20(%rsp), %r14
	leaq	16(%rsp), %r13
	leaq	12(%rsp), %r12
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L220:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%r14, %rcx
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rdx
	movslq	12(%rsp), %rax
	leaq	4+A(%rip), %rsi
	movd	16(%rsp), %xmm0
	movd	20(%rsp), %xmm1
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, (%rbx,%rdx,4)
	movslq	20(%rsp), %rdx
	punpckldq	%xmm1, %xmm0
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, (%rbx,%rdx,4)
	leaq	(%rax,%rax,2), %rax
	movq	%xmm0, (%rsi,%rax,4)
	movl	8(%rsp), %edx
	cmpl	%r15d, %edx
	jg	.L220
	testl	%edx, %edx
	jle	.L216
	leaq	-4(%rsi), %rax
	xorl	%ebp, %ebp
	jmp	.L222
	.p2align 4,,10
	.p2align 3
.L244:
	addl	$1, %ebp
	addq	$12, %rax
	cmpl	%ebp, %edx
	je	.L221
.L222:
	cmpl	$-1, (%rax)
	jne	.L244
.L221:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	Pre
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	In.part.0
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	movl	%ebp, %edi
	call	Post
	movl	$10, %edi
	call	putchar@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L245
	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
.L216:
	.cfi_restore_state
	xorl	%ebp, %ebp
	jmp	.L221
.L224:
	xorl	%eax, %eax
	jmp	.L217
.L245:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 300
A:
	.zero	300
	.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 N 25
#define NIL -1
int Pre(int t),In(int t),Post(int t);
struct Node{
  int p,l,r;
};
struct Node A[N];

int main(){
  int i,j,n,id,h,d;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    A[i].p=NIL;
    A[i].l=NIL;
    A[i].r=NIL;
  }
  for(i=0;i<n;i++){
    scanf("%d %d %d",&id,&h,&d);
    A[h].p=id;
    A[d].p=id;
    A[id].l=h;
    A[id].r=d;
  }
  for(i=0;i<n;i++){
    if(A[i].p==NIL)
      break;
  }
  printf("Preorder\n");
  Pre(i);
  printf("\n");
  printf("Inorder\n");
  In(i);
  printf("\n");
  printf("Postorder\n");
  Post(i);
  printf("\n");
  return 0;
  }
  int Pre(int t){
    printf(" %d",t);
    if(t!=NIL){
      if(A[t].l!=NIL)Pre(A[t].l);
      if(A[t].r!=NIL)Pre(A[t].r);
    }
    return 0;
  }
  int In(int t){
    if(t!=NIL){
      if(A[t].l!=NIL)
        In(A[t].l);
      printf(" %d",t);
      if(A[t].r!=NIL)
        In(A[t].r);
    }
    return 0;
  }

  int Post(int t){
    if(t!=NIL){
      if(A[t].l!=NIL)
        Post(A[t].l);
      if(A[t].r!=NIL)
        Post(A[t].r);
    }
    printf(" %d",t);
    return 0;
  }


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 N 25
#define NIL -1
int Pre(int t),In(int t),Post(int t);
struct Node{
  int p,l,r;
};
struct Node A[N];

int main(){
  int i,j,n,id,h,d;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    A[i].p=NIL;
    A[i].l=NIL;
    A[i].r=NIL;
  }
  for(i=0;i<n;i++){
    scanf("%d %d %d",&id,&h,&d);
    A[h].p=id;
    A[d].p=id;
    A[id].l=h;
    A[id].r=d;
  }
  for(i=0;i<n;i++){
    if(A[i].p==NIL)
      break;
  }
  printf("Preorder\n");
  Pre(i);
  printf("\n");
  printf("Inorder\n");
  In(i);
  printf("\n");
  printf("Postorder\n");
  Post(i);
  printf("\n");
  return 0;
  }
  int Pre(int t){
    printf(" %d",t);
    if(t!=NIL){
      if(A[t].l!=NIL)Pre(A[t].l);
      if(A[t].r!=NIL)Pre(A[t].r);
    }
    return 0;
  }
  int In(int t){
    if(t!=NIL){
      if(A[t].l!=NIL)
        In(A[t].l);
      printf(" %d",t);
      if(A[t].r!=NIL)
        In(A[t].r);
    }
    return 0;
  }

  int Post(int t){
    if(t!=NIL){
      if(A[t].l!=NIL)
        Post(A[t].l);
      if(A[t].r!=NIL)
        Post(A[t].r);
    }
    printf(" %d",t);
    return 0;
  }

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 300
A:
	.zero	300
	.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	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	A(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L3
	movl	$0, -12(%rbp)
	jmp	.L4
.L5:
	leaq	-16(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	movl	-24(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-16(%rbp), %eax
	movl	-24(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-24(%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	8+A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -12(%rbp)
.L4:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L5
	movl	$0, -12(%rbp)
	jmp	.L6
.L9:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L12
	addl	$1, -12(%rbp)
.L6:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L9
	jmp	.L8
.L12:
	nop
.L8:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	Pre
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	In
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	Post
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	" %d"
	.text
	.globl	Pre
	.type	Pre, @function
Pre:
.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)
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$-1, -4(%rbp)
	je	.L14
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L15
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Pre
.L15:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L14
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Pre
.L14:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Pre, .-Pre
	.globl	In
	.type	In, @function
In:
.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	.L18
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L19
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	In
.L19:
	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+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L18
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	In
.L18:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	In, .-In
	.globl	Post
	.type	Post, @function
Post:
.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	.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+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L23
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Post
.L23:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	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	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Post
.L22:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	Post, .-Post
	.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	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 300
A:
	.zero	300
	.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	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	A(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L3
	movl	$0, -12(%rbp)
	jmp	.L4
.L5:
	leaq	-16(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	movl	-24(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-16(%rbp), %eax
	movl	-24(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %edx
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-24(%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	8+A(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -12(%rbp)
.L4:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L5
	movl	$0, -12(%rbp)
	jmp	.L6
.L9:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L12
	addl	$1, -12(%rbp)
.L6:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L9
	jmp	.L8
.L12:
	nop
.L8:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	Pre
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	In
	movl	$10, %edi
	call	putchar@PLT
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	Post
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	" %d"
	.text
	.globl	Pre
	.type	Pre, @function
Pre:
.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)
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$-1, -4(%rbp)
	je	.L14
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L15
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Pre
.L15:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L14
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Pre
.L14:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Pre, .-Pre
	.globl	In
	.type	In, @function
In:
.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	.L18
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L19
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	In
.L19:
	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+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L18
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	In
.L18:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	In, .-In
	.globl	Post
	.type	Post, @function
Post:
.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	.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+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L23
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Post
.L23:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	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	8+A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	Post
.L22:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	Post, .-Post
	.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:
