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 41

typedef struct node{
  int l, r;
}node;

node c[N];
int a[N], b[N];
int cnt=0;

void postorder(int root,int n){

        if(c[root].l != -1) postorder(c[root].l, n);
        if(c[root].r != -1) postorder(c[root].r, n);
        if(cnt < n - 1) printf("%d ", root);
        else printf("%d\n", root);

        cnt++;

        return;

}

int reconst(int start,int last,int n){
  int i, j;

  if(start == last) return b[start];
  else if(start > last) return -1;

  else {
    for(i = 1 ; i <= n ; i++){
      for(j = start ; j <= last ; j++){
        if(a[i] == b[j]){
          c[a[i]].l = reconst(start, j - 1, n);
          c[a[i]].r = reconst(j + 1, last, n);
          return a[i];
        }
      }
    }
  }
}


int main(){
  int n,i, root;

  scanf("%d",&n);

  for(i = 1 ; i <= n ; i++) scanf("%d",&a[i]);
  for(i = 1 ; i <= n ; i++) scanf("%d",&b[i]);
  for(i = 1 ; i <= n ; i++){
    c[i].l = -1;
    c[i].r = -1;
  }

  root = reconst(1,n,n);

  postorder(root,n);

  return 0;

}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 328
c:
	.zero	328
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 164
a:
	.zero	164
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 164
b:
	.zero	164
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	"%d\n"
	.text
	.globl	postorder
	.type	postorder, @function
postorder:
.LFB0:
	.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	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L2
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	postorder
.L2:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L3
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	postorder
.L3:
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	cnt(%rip), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L5
.L4:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	postorder, .-postorder
	.globl	reconst
	.type	reconst, @function
reconst:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L8
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L8:
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jle	.L10
	movl	$-1, %eax
	jmp	.L7
.L10:
	movl	$1, -24(%rbp)
	jmp	.L11
.L15:
	movl	-36(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L12
.L14:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-44(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	reconst
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	reconst
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L13:
	addl	$1, -20(%rbp)
.L12:
	movl	-20(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jle	.L14
	addl	$1, -24(%rbp)
.L11:
	movl	-24(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jle	.L15
.L7:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	reconst, .-reconst
	.section	.rodata
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -16(%rbp)
	jmp	.L17
.L18:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L17:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L18
	movl	$1, -16(%rbp)
	jmp	.L19
.L20:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L19:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L20
	movl	$1, -16(%rbp)
	jmp	.L21
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+c(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L21:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L22
	movl	-20(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	movl	$1, %edi
	call	reconst
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	postorder
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d "
.LC1:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	postorder
	.type	postorder, @function
postorder:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movslq	%edi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leal	-1(%rsi), %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r14, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	c(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	(%rbx,%r14,8), %r15d
	cmpl	$-1, %r15d
	jne	.L140
.L2:
	movl	4(%rbx,%r14,8), %r14d
	movl	cnt(%rip), %eax
	cmpl	$-1, %r14d
	jne	.L141
.L35:
	movl	%r12d, %edx
	cmpl	%r13d, %eax
	jge	.L67
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L68:
	addl	$1, cnt(%rip)
	addq	$56, %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
.L67:
	.cfi_restore_state
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L140:
	movslq	%r15d, %rcx
	movl	(%rbx,%rcx,8), %r8d
	cmpl	$-1, %r8d
	je	.L3
	movslq	%r8d, %r9
	movl	(%rbx,%r9,8), %edx
	cmpl	$-1, %edx
	jne	.L142
	movl	4(%rbx,%r9,8), %edx
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	jne	.L143
.L10:
	movq	%rcx, 8(%rsp)
	movl	%r8d, %edx
	cmpl	%r13d, %eax
	jl	.L144
.L15:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rcx
.L16:
	addl	$1, cnt(%rip)
.L3:
	movl	4(%rbx,%rcx,8), %r8d
	movl	cnt(%rip), %eax
	cmpl	$-1, %r8d
	je	.L18
	movslq	%r8d, %rcx
	movl	(%rbx,%rcx,8), %edx
	cmpl	$-1, %edx
	jne	.L145
	movl	4(%rbx,%rcx,8), %edx
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	jne	.L146
.L25:
	movl	%r8d, %edx
	cmpl	%r13d, %eax
	jl	.L147
.L30:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L31:
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
.L18:
	movl	%r15d, %edx
	cmpl	%r13d, %eax
	jge	.L32
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L33:
	addl	$1, cnt(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L141:
	movslq	%r14d, %r15
	movl	(%rbx,%r15,8), %r8d
	cmpl	$-1, %r8d
	je	.L36
	movslq	%r8d, %rcx
	movl	(%rbx,%rcx,8), %edx
	cmpl	$-1, %edx
	jne	.L148
	movl	4(%rbx,%rcx,8), %edx
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	jne	.L149
.L43:
	movl	%r8d, %edx
	cmpl	%r13d, %eax
	jl	.L150
.L48:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L49:
	addl	$1, cnt(%rip)
.L36:
	movl	4(%rbx,%r15,8), %r15d
	movl	cnt(%rip), %eax
	cmpl	$-1, %r15d
	je	.L51
	movslq	%r15d, %rcx
	movl	(%rbx,%rcx,8), %edx
	cmpl	$-1, %edx
	jne	.L151
	movl	4(%rbx,%rcx,8), %edx
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	jne	.L152
.L58:
	movl	%r15d, %edx
	cmpl	%r13d, %eax
	jl	.L153
.L63:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L64:
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
.L51:
	movl	%r14d, %edx
	cmpl	%r13d, %eax
	jge	.L65
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L66:
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L65:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L153:
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L150:
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L147:
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L144:
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rcx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L146:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L26
	movl	%ebp, %esi
	movq	%rax, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rax
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L26:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L27
	movl	%ebp, %esi
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L27:
	cmpl	%r13d, cnt(%rip)
	movl	%r8d, 8(%rsp)
	jge	.L28
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
.L29:
	movl	cnt(%rip), %eax
	movl	%r8d, %edx
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	cmpl	%r13d, %eax
	jge	.L30
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L145:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L20
	movl	%ebp, %esi
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L20:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L21
	movl	%ebp, %esi
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L21:
	cmpl	%r13d, cnt(%rip)
	movq	%rcx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	jge	.L22
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	movq	16(%rsp), %rcx
.L23:
	movl	4(%rbx,%rcx,8), %edx
	addl	$1, cnt(%rip)
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	je	.L25
	jmp	.L146
	.p2align 4,,10
	.p2align 3
.L143:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L11
	movl	%ebp, %esi
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L11:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L12
	movl	%ebp, %esi
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L12:
	cmpl	%r13d, cnt(%rip)
	movq	%rcx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	jge	.L13
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	movq	16(%rsp), %rcx
.L14:
	movl	cnt(%rip), %eax
	movq	%rcx, 8(%rsp)
	movl	%r8d, %edx
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	cmpl	%r13d, %eax
	jge	.L15
	jmp	.L144
	.p2align 4,,10
	.p2align 3
.L142:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L5
	movq	%rax, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	40(%rsp), %rax
	movq	32(%rsp), %r9
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L5:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L6
	movl	%ebp, %esi
	movq	%r9, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	32(%rsp), %r9
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L6:
	cmpl	%r13d, cnt(%rip)
	movq	%r9, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	jge	.L7
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	movq	16(%rsp), %rcx
	movq	24(%rsp), %r9
.L8:
	movl	4(%rbx,%r9,8), %edx
	addl	$1, cnt(%rip)
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	je	.L10
	jmp	.L143
	.p2align 4,,10
	.p2align 3
.L152:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L59
	movl	%ebp, %esi
	movq	%rax, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postorder
	movq	16(%rsp), %rax
	movl	8(%rsp), %edx
.L59:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L60
	movl	%ebp, %esi
	movl	%edx, 8(%rsp)
	call	postorder
	movl	8(%rsp), %edx
.L60:
	cmpl	%r13d, cnt(%rip)
	jge	.L61
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L62:
	movl	cnt(%rip), %eax
	movl	%r15d, %edx
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	cmpl	%r13d, %eax
	jge	.L63
	jmp	.L153
	.p2align 4,,10
	.p2align 3
.L149:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L44
	movl	%ebp, %esi
	movq	%rax, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rax
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L44:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L45
	movl	%ebp, %esi
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L45:
	cmpl	%r13d, cnt(%rip)
	movl	%r8d, 8(%rsp)
	jge	.L46
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
.L47:
	movl	cnt(%rip), %eax
	movl	%r8d, %edx
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	cmpl	%r13d, %eax
	jge	.L48
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L151:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L53
	movl	%ebp, %esi
	movq	%rax, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rax
	movq	16(%rsp), %rcx
	movl	8(%rsp), %edx
.L53:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L54
	movl	%ebp, %esi
	movq	%rcx, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postorder
	movq	16(%rsp), %rcx
	movl	8(%rsp), %edx
.L54:
	cmpl	%r13d, cnt(%rip)
	movq	%rcx, 8(%rsp)
	jge	.L55
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rcx
.L56:
	movl	4(%rbx,%rcx,8), %edx
	addl	$1, cnt(%rip)
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	je	.L58
	jmp	.L152
	.p2align 4,,10
	.p2align 3
.L148:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L38
	movl	%ebp, %esi
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L38:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L39
	movl	%ebp, %esi
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L39:
	cmpl	%r13d, cnt(%rip)
	movq	%rcx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	jge	.L40
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	movq	16(%rsp), %rcx
.L41:
	movl	4(%rbx,%rcx,8), %edx
	addl	$1, cnt(%rip)
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	je	.L43
	jmp	.L149
	.p2align 4,,10
	.p2align 3
.L28:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L40:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movl	8(%rsp), %r8d
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L22:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movl	8(%rsp), %r8d
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movl	8(%rsp), %r8d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %r9
	movq	16(%rsp), %rcx
	movl	8(%rsp), %r8d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L46:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L61:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L55:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rcx
	jmp	.L56
	.cfi_endproc
.LFE23:
	.size	postorder, .-postorder
	.p2align 4
	.globl	reconst
	.type	reconst, @function
reconst:
.LFB24:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	je	.L167
	movl	$-1, %eax
	jg	.L164
	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
	movl	%edx, %r13d
	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	$8, %rsp
	.cfi_def_cfa_offset 64
	testl	%edx, %edx
	jle	.L154
	leaq	b(%rip), %rdx
	movslq	%edi, %rax
	movl	%esi, %r12d
	leaq	(%rdx,%rax,4), %rcx
	leaq	a(%rip), %r15
	movl	$1, %edx
.L158:
	movslq	(%r15,%rdx,4), %rbx
	movslq	%edx, %r14
	movq	%rcx, %rax
	movl	%edi, %ebp
	jmp	.L160
	.p2align 4,,10
	.p2align 3
.L159:
	addq	$4, %rax
	cmpl	%r12d, %ebp
	jg	.L168
.L160:
	movl	%ebp, %esi
	addl	$1, %ebp
	cmpl	(%rax), %ebx
	jne	.L159
	subl	$1, %esi
	movl	%r13d, %edx
	call	reconst
	movl	%r13d, %edx
	movl	%r12d, %esi
	movl	%ebp, %edi
	leaq	c(%rip), %rcx
	movl	%eax, (%rcx,%rbx,8)
	movslq	(%r15,%r14,4), %rbx
	call	reconst
	leaq	c(%rip), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	movl	(%r15,%r14,4), %eax
.L154:
	addq	$8, %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
.L168:
	.cfi_restore_state
	addq	$1, %rdx
	cmpl	%edx, %r13d
	jge	.L158
	jmp	.L154
	.p2align 4,,10
	.p2align 3
.L164:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.p2align 4,,10
	.p2align 3
.L167:
	movslq	%edi, %rdi
	leaq	b(%rip), %rax
	movl	(%rax,%rdi,4), %eax
	ret
	.cfi_endproc
.LFE24:
	.size	reconst, .-reconst
	.section	.rodata.str1.1
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	jle	.L173
	leaq	4+a(%rip), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L171:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jge	.L171
	testl	%esi, %esi
	jle	.L173
	leaq	4+b(%rip), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L172:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jge	.L172
	testl	%esi, %esi
	jle	.L173
	cmpl	$1, %esi
	je	.L179
	movl	%esi, %edx
	leaq	8+c(%rip), %rax
	pcmpeqd	%xmm0, %xmm0
	shrl	%edx
	leaq	16(%rax), %rcx
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L175:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L175
	movl	%esi, %eax
	orl	$1, %eax
	testb	$1, %sil
	je	.L173
.L174:
	movq	.LC3(%rip), %rcx
	cltq
	leaq	c(%rip), %rdx
	movq	%rcx, (%rdx,%rax,8)
.L173:
	movl	%esi, %edx
	movl	$1, %edi
	call	reconst
	movl	4(%rsp), %esi
	movl	%eax, %edi
	call	postorder
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L184
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L179:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L174
.L184:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 164
b:
	.zero	164
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 164
a:
	.zero	164
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 328
c:
	.zero	328
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.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 "
.LC1:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	postorder
	.type	postorder, @function
postorder:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movslq	%edi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leal	-1(%rsi), %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r14, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	c(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	(%rbx,%r14,8), %r15d
	cmpl	$-1, %r15d
	jne	.L140
.L2:
	movl	4(%rbx,%r14,8), %r14d
	movl	cnt(%rip), %eax
	cmpl	$-1, %r14d
	jne	.L141
.L35:
	movl	%r12d, %edx
	cmpl	%r13d, %eax
	jge	.L67
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L68:
	addl	$1, cnt(%rip)
	addq	$56, %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
.L67:
	.cfi_restore_state
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L140:
	movslq	%r15d, %rcx
	movl	(%rbx,%rcx,8), %r8d
	cmpl	$-1, %r8d
	je	.L3
	movslq	%r8d, %r9
	movl	(%rbx,%r9,8), %edx
	cmpl	$-1, %edx
	jne	.L142
	movl	4(%rbx,%r9,8), %edx
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	jne	.L143
.L10:
	movq	%rcx, 8(%rsp)
	movl	%r8d, %edx
	cmpl	%r13d, %eax
	jl	.L144
.L15:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rcx
.L16:
	addl	$1, cnt(%rip)
.L3:
	movl	4(%rbx,%rcx,8), %r8d
	movl	cnt(%rip), %eax
	cmpl	$-1, %r8d
	je	.L18
	movslq	%r8d, %rcx
	movl	(%rbx,%rcx,8), %edx
	cmpl	$-1, %edx
	jne	.L145
	movl	4(%rbx,%rcx,8), %edx
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	jne	.L146
.L25:
	movl	%r8d, %edx
	cmpl	%r13d, %eax
	jl	.L147
.L30:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L31:
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
.L18:
	movl	%r15d, %edx
	cmpl	%r13d, %eax
	jge	.L32
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L33:
	addl	$1, cnt(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L141:
	movslq	%r14d, %r15
	movl	(%rbx,%r15,8), %r8d
	cmpl	$-1, %r8d
	je	.L36
	movslq	%r8d, %rcx
	movl	(%rbx,%rcx,8), %edx
	cmpl	$-1, %edx
	jne	.L148
	movl	4(%rbx,%rcx,8), %edx
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	jne	.L149
.L43:
	movl	%r8d, %edx
	cmpl	%r13d, %eax
	jl	.L150
.L48:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L49:
	addl	$1, cnt(%rip)
.L36:
	movl	4(%rbx,%r15,8), %r15d
	movl	cnt(%rip), %eax
	cmpl	$-1, %r15d
	je	.L51
	movslq	%r15d, %rcx
	movl	(%rbx,%rcx,8), %edx
	cmpl	$-1, %edx
	jne	.L151
	movl	4(%rbx,%rcx,8), %edx
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	jne	.L152
.L58:
	movl	%r15d, %edx
	cmpl	%r13d, %eax
	jl	.L153
.L63:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L64:
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
.L51:
	movl	%r14d, %edx
	cmpl	%r13d, %eax
	jge	.L65
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L66:
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L65:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L153:
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L150:
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L147:
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L144:
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rcx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L146:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L26
	movl	%ebp, %esi
	movq	%rax, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rax
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L26:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L27
	movl	%ebp, %esi
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L27:
	cmpl	%r13d, cnt(%rip)
	movl	%r8d, 8(%rsp)
	jge	.L28
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
.L29:
	movl	cnt(%rip), %eax
	movl	%r8d, %edx
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	cmpl	%r13d, %eax
	jge	.L30
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L145:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L20
	movl	%ebp, %esi
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L20:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L21
	movl	%ebp, %esi
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L21:
	cmpl	%r13d, cnt(%rip)
	movq	%rcx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	jge	.L22
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	movq	16(%rsp), %rcx
.L23:
	movl	4(%rbx,%rcx,8), %edx
	addl	$1, cnt(%rip)
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	je	.L25
	jmp	.L146
	.p2align 4,,10
	.p2align 3
.L143:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L11
	movl	%ebp, %esi
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L11:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L12
	movl	%ebp, %esi
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L12:
	cmpl	%r13d, cnt(%rip)
	movq	%rcx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	jge	.L13
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	movq	16(%rsp), %rcx
.L14:
	movl	cnt(%rip), %eax
	movq	%rcx, 8(%rsp)
	movl	%r8d, %edx
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	cmpl	%r13d, %eax
	jge	.L15
	jmp	.L144
	.p2align 4,,10
	.p2align 3
.L142:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L5
	movq	%rax, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	40(%rsp), %rax
	movq	32(%rsp), %r9
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L5:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L6
	movl	%ebp, %esi
	movq	%r9, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	32(%rsp), %r9
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L6:
	cmpl	%r13d, cnt(%rip)
	movq	%r9, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	jge	.L7
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	movq	16(%rsp), %rcx
	movq	24(%rsp), %r9
.L8:
	movl	4(%rbx,%r9,8), %edx
	addl	$1, cnt(%rip)
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	je	.L10
	jmp	.L143
	.p2align 4,,10
	.p2align 3
.L152:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L59
	movl	%ebp, %esi
	movq	%rax, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postorder
	movq	16(%rsp), %rax
	movl	8(%rsp), %edx
.L59:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L60
	movl	%ebp, %esi
	movl	%edx, 8(%rsp)
	call	postorder
	movl	8(%rsp), %edx
.L60:
	cmpl	%r13d, cnt(%rip)
	jge	.L61
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L62:
	movl	cnt(%rip), %eax
	movl	%r15d, %edx
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	cmpl	%r13d, %eax
	jge	.L63
	jmp	.L153
	.p2align 4,,10
	.p2align 3
.L149:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L44
	movl	%ebp, %esi
	movq	%rax, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rax
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L44:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L45
	movl	%ebp, %esi
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L45:
	cmpl	%r13d, cnt(%rip)
	movl	%r8d, 8(%rsp)
	jge	.L46
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
.L47:
	movl	cnt(%rip), %eax
	movl	%r8d, %edx
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	cmpl	%r13d, %eax
	jge	.L48
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L151:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L53
	movl	%ebp, %esi
	movq	%rax, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rax
	movq	16(%rsp), %rcx
	movl	8(%rsp), %edx
.L53:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L54
	movl	%ebp, %esi
	movq	%rcx, 16(%rsp)
	movl	%edx, 8(%rsp)
	call	postorder
	movq	16(%rsp), %rcx
	movl	8(%rsp), %edx
.L54:
	cmpl	%r13d, cnt(%rip)
	movq	%rcx, 8(%rsp)
	jge	.L55
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rcx
.L56:
	movl	4(%rbx,%rcx,8), %edx
	addl	$1, cnt(%rip)
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	je	.L58
	jmp	.L152
	.p2align 4,,10
	.p2align 3
.L148:
	movslq	%edx, %rax
	movl	(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L38
	movl	%ebp, %esi
	movq	%rax, 32(%rsp)
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	32(%rsp), %rax
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L38:
	movl	4(%rbx,%rax,8), %edi
	cmpl	$-1, %edi
	je	.L39
	movl	%ebp, %esi
	movq	%rcx, 24(%rsp)
	movl	%edx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	call	postorder
	movq	24(%rsp), %rcx
	movl	16(%rsp), %edx
	movl	8(%rsp), %r8d
.L39:
	cmpl	%r13d, cnt(%rip)
	movq	%rcx, 16(%rsp)
	movl	%r8d, 8(%rsp)
	jge	.L40
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	movq	16(%rsp), %rcx
.L41:
	movl	4(%rbx,%rcx,8), %edx
	addl	$1, cnt(%rip)
	movl	cnt(%rip), %eax
	cmpl	$-1, %edx
	je	.L43
	jmp	.L149
	.p2align 4,,10
	.p2align 3
.L28:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L40:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movl	8(%rsp), %r8d
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L22:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movl	8(%rsp), %r8d
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movl	8(%rsp), %r8d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %r9
	movq	16(%rsp), %rcx
	movl	8(%rsp), %r8d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L46:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %r8d
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L61:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L55:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rcx
	jmp	.L56
	.cfi_endproc
.LFE23:
	.size	postorder, .-postorder
	.p2align 4
	.globl	reconst
	.type	reconst, @function
reconst:
.LFB24:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	je	.L167
	movl	$-1, %eax
	jg	.L164
	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
	movl	%edx, %r13d
	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	$8, %rsp
	.cfi_def_cfa_offset 64
	testl	%edx, %edx
	jle	.L154
	leaq	b(%rip), %rdx
	movslq	%edi, %rax
	movl	%esi, %r12d
	leaq	(%rdx,%rax,4), %rcx
	leaq	a(%rip), %r15
	movl	$1, %edx
.L158:
	movslq	(%r15,%rdx,4), %rbx
	movslq	%edx, %r14
	movq	%rcx, %rax
	movl	%edi, %ebp
	jmp	.L160
	.p2align 4,,10
	.p2align 3
.L159:
	addq	$4, %rax
	cmpl	%r12d, %ebp
	jg	.L168
.L160:
	movl	%ebp, %esi
	addl	$1, %ebp
	cmpl	(%rax), %ebx
	jne	.L159
	subl	$1, %esi
	movl	%r13d, %edx
	call	reconst
	movl	%r13d, %edx
	movl	%r12d, %esi
	movl	%ebp, %edi
	leaq	c(%rip), %rcx
	movl	%eax, (%rcx,%rbx,8)
	movslq	(%r15,%r14,4), %rbx
	call	reconst
	leaq	c(%rip), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	movl	(%r15,%r14,4), %eax
.L154:
	addq	$8, %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
.L168:
	.cfi_restore_state
	addq	$1, %rdx
	cmpl	%edx, %r13d
	jge	.L158
	jmp	.L154
	.p2align 4,,10
	.p2align 3
.L164:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.p2align 4,,10
	.p2align 3
.L167:
	movslq	%edi, %rdi
	leaq	b(%rip), %rax
	movl	(%rax,%rdi,4), %eax
	ret
	.cfi_endproc
.LFE24:
	.size	reconst, .-reconst
	.section	.rodata.str1.1
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	jle	.L173
	leaq	4+a(%rip), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L171:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jge	.L171
	testl	%esi, %esi
	jle	.L173
	leaq	4+b(%rip), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L172:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jge	.L172
	testl	%esi, %esi
	jle	.L173
	cmpl	$1, %esi
	je	.L179
	movl	%esi, %edx
	leaq	8+c(%rip), %rax
	pcmpeqd	%xmm0, %xmm0
	shrl	%edx
	leaq	16(%rax), %rcx
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L175:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L175
	movl	%esi, %eax
	orl	$1, %eax
	testb	$1, %sil
	je	.L173
.L174:
	movq	.LC3(%rip), %rcx
	cltq
	leaq	c(%rip), %rdx
	movq	%rcx, (%rdx,%rax,8)
.L173:
	movl	%esi, %edx
	movl	$1, %edi
	call	reconst
	movl	4(%rsp), %esi
	movl	%eax, %edi
	call	postorder
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L184
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L179:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L174
.L184:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 164
b:
	.zero	164
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 164
a:
	.zero	164
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 328
c:
	.zero	328
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.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 41

typedef struct node{
  int l, r;
}node;

node c[N];
int a[N], b[N];
int cnt=0;

void postorder(int root,int n){

        if(c[root].l != -1) postorder(c[root].l, n);
        if(c[root].r != -1) postorder(c[root].r, n);
        if(cnt < n - 1) printf("%d ", root);
        else printf("%d\n", root);

        cnt++;

        return;

}

int reconst(int start,int last,int n){
  int i, j;

  if(start == last) return b[start];
  else if(start > last) return -1;

  else {
    for(i = 1 ; i <= n ; i++){
      for(j = start ; j <= last ; j++){
        if(a[i] == b[j]){
          c[a[i]].l = reconst(start, j - 1, n);
          c[a[i]].r = reconst(j + 1, last, n);
          return a[i];
        }
      }
    }
  }
}


int main(){
  int n,i, root;

  scanf("%d",&n);

  for(i = 1 ; i <= n ; i++) scanf("%d",&a[i]);
  for(i = 1 ; i <= n ; i++) scanf("%d",&b[i]);
  for(i = 1 ; i <= n ; i++){
    c[i].l = -1;
    c[i].r = -1;
  }

  root = reconst(1,n,n);

  postorder(root,n);

  return 0;

}

4
1 2 3 4
2 1 3 4
 4
2 1 3 4
2 1 3 4
 4
2 1 3 4
3 1 2 4
 5
1 2 3 4 5
1 2 4 3 5
 4
2 1 3 4
1 2 3 4
 5
1 3 2 4 5
3 2 4 1 5
 4
1 4 3 2
1 2 3 4
 5
1 2 3 4 5
3 4 2 1 5
 4
1 2 3 4
1 2 4 3
 4
2 1 3 4
2 1 4 3

2 4 3 1
 4 3 1 2
 3 1 4 2
 4 5 3 2 1
 1 4 3 2
 4 2 3 5 1
 2 3 4 1
 4 3 2 5 1
 4 3 2 1
 4 3 1 2

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 41

typedef struct node{
  int l, r;
}node;

node c[N];
int a[N], b[N];
int cnt=0;

void postorder(int root,int n){

        if(c[root].l != -1) postorder(c[root].l, n);
        if(c[root].r != -1) postorder(c[root].r, n);
        if(cnt < n - 1) printf("%d ", root);
        else printf("%d\n", root);

        cnt++;

        return;

}

int reconst(int start,int last,int n){
  int i, j;

  if(start == last) return b[start];
  else if(start > last) return -1;

  else {
    for(i = 1 ; i <= n ; i++){
      for(j = start ; j <= last ; j++){
        if(a[i] == b[j]){
          c[a[i]].l = reconst(start, j - 1, n);
          c[a[i]].r = reconst(j + 1, last, n);
          return a[i];
        }
      }
    }
  }
}


int main(){
  int n,i, root;

  scanf("%d",&n);

  for(i = 1 ; i <= n ; i++) scanf("%d",&a[i]);
  for(i = 1 ; i <= n ; i++) scanf("%d",&b[i]);
  for(i = 1 ; i <= n ; i++){
    c[i].l = -1;
    c[i].r = -1;
  }

  root = reconst(1,n,n);

  postorder(root,n);

  return 0;

}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 328
c:
	.zero	328
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 164
a:
	.zero	164
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 164
b:
	.zero	164
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	"%d\n"
	.text
	.globl	postorder
	.type	postorder, @function
postorder:
.LFB0:
	.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	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L2
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	postorder
.L2:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L3
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	postorder
.L3:
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	cnt(%rip), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L5
.L4:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	postorder, .-postorder
	.globl	reconst
	.type	reconst, @function
reconst:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L8
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L8:
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jle	.L10
	movl	$-1, %eax
	jmp	.L7
.L10:
	movl	$1, -24(%rbp)
	jmp	.L11
.L15:
	movl	-36(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L12
.L14:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-44(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	reconst
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	reconst
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L13:
	addl	$1, -20(%rbp)
.L12:
	movl	-20(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jle	.L14
	addl	$1, -24(%rbp)
.L11:
	movl	-24(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jle	.L15
.L7:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	reconst, .-reconst
	.section	.rodata
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -16(%rbp)
	jmp	.L17
.L18:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L17:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L18
	movl	$1, -16(%rbp)
	jmp	.L19
.L20:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L19:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L20
	movl	$1, -16(%rbp)
	jmp	.L21
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+c(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L21:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L22
	movl	-20(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	movl	$1, %edi
	call	reconst
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	postorder
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 328
c:
	.zero	328
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 164
a:
	.zero	164
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 164
b:
	.zero	164
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	"%d\n"
	.text
	.globl	postorder
	.type	postorder, @function
postorder:
.LFB0:
	.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	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L2
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	postorder
.L2:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L3
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	postorder
.L3:
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	cnt(%rip), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L5
.L4:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	postorder, .-postorder
	.globl	reconst
	.type	reconst, @function
reconst:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L8
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L8:
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jle	.L10
	movl	$-1, %eax
	jmp	.L7
.L10:
	movl	$1, -24(%rbp)
	jmp	.L11
.L15:
	movl	-36(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L12
.L14:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-44(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	reconst
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	reconst
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L13:
	addl	$1, -20(%rbp)
.L12:
	movl	-20(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jle	.L14
	addl	$1, -24(%rbp)
.L11:
	movl	-24(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jle	.L15
.L7:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	reconst, .-reconst
	.section	.rodata
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -16(%rbp)
	jmp	.L17
.L18:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L17:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L18
	movl	$1, -16(%rbp)
	jmp	.L19
.L20:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L19:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L20
	movl	$1, -16(%rbp)
	jmp	.L21
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+c(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L21:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L22
	movl	-20(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	movl	$1, %edi
	call	reconst
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	postorder
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
