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

```c
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
typedef struct{int Parent,Rank;}UnionFind;
static inline int Root(int x,UnionFind *uf)
{
  if(uf[x].Parent==x)return x;
  else return uf[x].Parent=Root(uf[x].Parent,uf);
}
static inline int Unite(int x,int y,UnionFind *uf)
{
  x=Root(x,uf),y=Root(y,uf);
  if(x==y)return 0;
  uf[x].Parent=y;uf[y].Rank+=uf[x].Rank;return 1;
}
static inline int Size(int x,UnionFind *uf){return uf[Root(x,uf)].Rank;}
static inline int Belong(int x,int y,UnionFind *uf){return Root(x,uf)==Root(y,uf);}
int main(void)
{
  int A,B,C,D,N,M,K;
  scanf("%d %d %d",&N,&M,&K);
  int known[N];
  UnionFind uft[N];
  for(int i=0;i<N;i++){known[i]=0;uft[i].Parent=i;uft[i].Rank=1;}
  while(M--)
  {
    scanf("%d %d",&A,&B);
    A--,B--;known[A]++,known[B]++;Unite(A,B,uft);
  }
  while(K--)
  {
    scanf("%d %d",&C,&D);
    C--,D--;if(Belong(C,D,uft))known[C]++,known[D]++;
  }
  for(int i=0;i<N;i++){printf("%d ",Size(i,uft)-known[i]-1);}
  return printf("\n"),0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.type	Root, @function
Root:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L2
	movl	-20(%rbp), %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, (%rbx)
	movl	(%rbx), %eax
.L3:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Root, .-Root
	.type	Unite, @function
Unite:
.LFB1:
	.cfi_startproc
	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)
	movq	%rdx, -16(%rbp)
	movq	-16(%rbp), %rdx
	movl	-4(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, -4(%rbp)
	movq	-16(%rbp), %rdx
	movl	-8(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jne	.L5
	movl	$0, %eax
	jmp	.L6
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rax, %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-16(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, 4(%rax)
	movl	$1, %eax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Unite, .-Unite
	.type	Size, @function
Size:
.LFB2:
	.cfi_startproc
	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)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movl	-4(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	Size, .-Size
	.type	Belong, @function
Belong:
.LFB3:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-32(%rbp), %rdx
	movl	-20(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, %ebx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	cmpl	%eax, %ebx
	sete	%al
	movzbl	%al, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	Belong, .-Belong
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-100(%rbp), %rcx
	leaq	-104(%rbp), %rdx
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L12:
	cmpq	%rdx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L14
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L15:
	cmpq	%rdx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L17
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -96(%rbp)
	jmp	.L18
.L19:
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	-96(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, 4(%rax,%rdx,8)
	addl	$1, -96(%rbp)
.L18:
	movl	-108(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L19
	jmp	.L20
.L21:
	leaq	-120(%rbp), %rdx
	leaq	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -124(%rbp)
	movl	-120(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -120(%rbp)
	movl	-124(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
	movl	-120(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
	movl	-120(%rbp), %ecx
	movl	-124(%rbp), %eax
	movq	-64(%rbp), %rdx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	Unite
.L20:
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -104(%rbp)
	testl	%eax, %eax
	jne	.L21
	jmp	.L22
.L23:
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-112(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -112(%rbp)
	movl	-112(%rbp), %ecx
	movl	-116(%rbp), %eax
	movq	-64(%rbp), %rdx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	Belong
	testl	%eax, %eax
	je	.L22
	movl	-116(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
	movl	-112(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
.L22:
	movl	-100(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -100(%rbp)
	testl	%eax, %eax
	jne	.L23
	movl	$0, -92(%rbp)
	jmp	.L24
.L25:
	movq	-64(%rbp), %rdx
	movl	-92(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Size
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edx
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -92(%rbp)
.L24:
	movl	-108(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L25
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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
	.p2align 4
	.type	Root, @function
Root:
.LFB23:
	.cfi_startproc
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movslq	%edi, %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdx, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	(%rsi,%rdx,8), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movl	(%rbx), %edx
	cmpl	%eax, %edx
	jne	.L8
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movslq	%edx, %rax
	leaq	(%rsi,%rax,8), %rbp
	movl	0(%rbp), %eax
	cmpl	%eax, %edx
	je	.L3
	movslq	%eax, %rdx
	leaq	(%rsi,%rdx,8), %r12
	movl	(%r12), %edx
	cmpl	%edx, %eax
	jne	.L9
	movl	%edx, 0(%rbp)
	movl	%edx, %eax
.L3:
	movl	%eax, (%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movslq	%edx, %rax
	leaq	(%rsi,%rax,8), %r13
	movl	0(%r13), %edi
	cmpl	%edi, %edx
	je	.L5
	call	Root
	movl	%eax, 0(%r13)
	movl	%eax, %edi
.L5:
	movl	%edi, %edx
	movl	%edi, (%r12)
	movl	%edx, %eax
	movl	%edx, 0(%rbp)
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	Root, .-Root
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %rdx
	pushq	%r13
	leaq	-68(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-68(%rbp), %rcx
	movq	%rsp, %rsi
	leaq	15(,%rcx,4), %rax
	movq	%rcx, %r13
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L12
.L97:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L97
.L12:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L98
.L13:
	leaq	15(,%rcx,8), %rax
	movq	%rsp, %rcx
	movq	%rsp, %r12
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L14:
	cmpq	%rcx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L98:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L13
.L15:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L99
.L16:
	movq	%rsp, %rbx
	testl	%r13d, %r13d
	jle	.L21
	leal	-1(%r13), %r14d
	movl	%r13d, %r13d
	xorl	%esi, %esi
	movq	%r12, %rdi
	leaq	0(,%r13,4), %rdx
	call	memset@PLT
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%eax, (%rbx,%rax,8)
	addq	$1, %rax
	cmpq	%r13, %rax
	jne	.L19
	leaq	4(%rbx), %rax
	leaq	12(%rbx,%r14,8), %rdx
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$1, (%rax)
	addq	$8, %rax
	cmpq	%rax, %rdx
	jne	.L20
.L21:
	leaq	.LC1(%rip), %r13
.L39:
	movl	-64(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -64(%rbp)
	testl	%eax, %eax
	je	.L100
.L40:
	leaq	-80(%rbp), %rdx
	movq	%r13, %rdi
	leaq	-84(%rbp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %eax
	movl	-80(%rbp), %edi
	subl	$1, %eax
	leal	-1(%rdi), %ecx
	movslq	%eax, %rdx
	movslq	%ecx, %r8
	movl	%eax, -84(%rbp)
	leaq	(%rbx,%rdx,8), %r9
	addl	$1, (%r12,%rdx,4)
	movslq	(%r9), %r11
	addl	$1, (%r12,%r8,4)
	movl	%ecx, -80(%rbp)
	cmpl	%r11d, %eax
	je	.L22
	movslq	%r11d, %rax
	leaq	(%rbx,%rax,8), %r10
	movl	(%r10), %eax
	cmpl	%eax, %r11d
	je	.L23
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r11
	movl	(%r11), %esi
	cmpl	%esi, %eax
	je	.L24
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %r14
	movl	(%r14), %eax
	cmpl	%eax, %esi
	je	.L25
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r15
	movl	(%r15), %esi
	cmpl	%esi, %eax
	je	.L26
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rdx
	movl	(%rdx), %eax
	cmpl	%eax, %esi
	je	.L27
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movl	(%rdi), %esi
	movq	%rdi, -104(%rbp)
	cmpl	%esi, %eax
	je	.L28
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movl	(%rax), %edi
	movq	%rax, -112(%rbp)
	cmpl	%edi, %esi
	jne	.L101
.L29:
	movq	-104(%rbp), %rax
	movl	%edi, %esi
	movl	%edi, (%rax)
.L28:
	movl	%esi, (%rdx)
	movl	%esi, %eax
.L27:
	movl	%eax, (%r15)
	movl	%eax, %esi
.L26:
	movl	%esi, (%r14)
.L25:
	movl	%esi, (%r11)
.L24:
	movl	%esi, (%r10)
	movl	%esi, %eax
.L23:
	movl	%eax, (%r9)
	movslq	%eax, %r11
.L22:
	leaq	(%rbx,%r8,8), %r8
	movslq	(%r8), %rax
	cmpl	%eax, %ecx
	je	.L30
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	je	.L31
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r9
	movl	(%r9), %eax
	cmpl	%eax, %edx
	je	.L32
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r10
	movl	(%r10), %edx
	cmpl	%edx, %eax
	je	.L33
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r14
	movl	(%r14), %eax
	cmpl	%eax, %edx
	je	.L34
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r15
	movl	(%r15), %esi
	cmpl	%esi, %eax
	je	.L35
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rdx
	movl	(%rdx), %eax
	cmpl	%eax, %esi
	je	.L36
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movl	(%rdi), %esi
	movq	%rdi, -104(%rbp)
	cmpl	%esi, %eax
	jne	.L102
.L37:
	movl	%esi, (%rdx)
	movl	%esi, %eax
.L36:
	movl	%eax, (%r15)
	movl	%eax, %esi
.L35:
	movl	%esi, (%r14)
	movl	%esi, %eax
.L34:
	movl	%eax, (%r10)
.L33:
	movl	%eax, (%r9)
.L32:
	movl	%eax, (%rcx)
	movl	%eax, %edx
.L31:
	movl	%edx, (%r8)
	movslq	%edx, %rax
.L30:
	cmpl	%r11d, %eax
	je	.L39
	leaq	(%rbx,%r11,8), %rdx
	movl	%eax, (%rdx)
	movl	4(%rdx), %edx
	addl	%edx, 4(%rbx,%rax,8)
	movl	-64(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -64(%rbp)
	testl	%eax, %eax
	jne	.L40
.L100:
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L62:
	movl	-60(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -60(%rbp)
	testl	%eax, %eax
	je	.L103
.L63:
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	leaq	-76(%rbp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-76(%rbp), %eax
	movl	-72(%rbp), %edi
	subl	$1, %eax
	leal	-1(%rdi), %ecx
	movslq	%eax, %rdx
	movl	%eax, -76(%rbp)
	leaq	(%rbx,%rdx,8), %r8
	movl	%ecx, -72(%rbp)
	movl	(%r8), %r10d
	cmpl	%r10d, %eax
	je	.L42
	movslq	%r10d, %rax
	leaq	(%rbx,%rax,8), %r9
	movl	(%r9), %eax
	cmpl	%eax, %r10d
	je	.L43
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r10
	movl	(%r10), %edx
	cmpl	%edx, %eax
	je	.L44
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r11
	movl	(%r11), %eax
	cmpl	%eax, %edx
	je	.L45
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r14
	movl	(%r14), %edx
	cmpl	%edx, %eax
	je	.L46
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r15
	movl	(%r15), %eax
	cmpl	%eax, %edx
	je	.L47
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %rdx
	movl	(%rdx), %esi
	cmpl	%esi, %eax
	je	.L48
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movq	%rax, -104(%rbp)
	movl	(%rax), %eax
	cmpl	%eax, %esi
	je	.L49
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movl	(%rdi), %esi
	movq	%rdi, -112(%rbp)
	cmpl	%esi, %eax
	jne	.L104
.L50:
	movq	-104(%rbp), %rax
	movl	%esi, (%rax)
	movl	%esi, %eax
.L49:
	movl	%eax, (%rdx)
	movl	%eax, %esi
.L48:
	movl	%esi, (%r15)
	movl	%esi, %eax
.L47:
	movl	%eax, (%r14)
.L46:
	movl	%eax, (%r11)
.L45:
	movl	%eax, (%r10)
	movl	%eax, %edx
.L44:
	movl	%edx, (%r9)
	movl	%edx, %eax
.L43:
	movl	%eax, (%r8)
	movl	%eax, %r10d
.L42:
	movslq	%ecx, %rax
	leaq	(%rbx,%rax,8), %r8
	movl	(%r8), %eax
	cmpl	%eax, %ecx
	je	.L52
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	je	.L53
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r9
	movl	(%r9), %eax
	cmpl	%eax, %edx
	je	.L54
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r11
	movl	(%r11), %esi
	cmpl	%esi, %eax
	je	.L55
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %r14
	movl	(%r14), %eax
	cmpl	%eax, %esi
	je	.L56
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r15
	movl	(%r15), %esi
	cmpl	%esi, %eax
	je	.L57
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rdx
	movl	(%rdx), %eax
	cmpl	%eax, %esi
	je	.L58
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movl	(%rdi), %esi
	movq	%rdi, -104(%rbp)
	cmpl	%esi, %eax
	je	.L59
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movq	%rax, -112(%rbp)
	movl	(%rax), %eax
	cmpl	%eax, %esi
	jne	.L105
.L60:
	movq	-104(%rbp), %rdi
	movl	%eax, %esi
	movl	%eax, (%rdi)
.L59:
	movl	%esi, (%rdx)
	movl	%esi, %eax
.L58:
	movl	%eax, (%r15)
	movl	%eax, %esi
.L57:
	movl	%esi, (%r14)
.L56:
	movl	%esi, (%r11)
.L55:
	movl	%esi, (%r9)
	movl	%esi, %eax
.L54:
	movl	%eax, (%rcx)
	movl	%eax, %edx
.L53:
	movl	%edx, (%r8)
	movl	%edx, %eax
.L52:
	cmpl	%r10d, %eax
	jne	.L62
	movslq	-76(%rbp), %rax
	addl	$1, (%r12,%rax,4)
	movslq	-72(%rbp), %rax
	addl	$1, (%r12,%rax,4)
	movl	-60(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -60(%rbp)
	testl	%eax, %eax
	jne	.L63
	.p2align 4,,10
	.p2align 3
.L103:
	movl	-68(%rbp), %eax
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	leaq	.LC2(%rip), %r15
	testl	%eax, %eax
	jle	.L75
	.p2align 4,,10
	.p2align 3
.L74:
	movl	(%r14), %eax
	movq	%r14, %rcx
	cmpl	%r13d, %eax
	je	.L65
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	je	.L66
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r8
	movl	(%r8), %eax
	cmpl	%eax, %edx
	je	.L67
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r9
	movl	(%r9), %esi
	cmpl	%esi, %eax
	je	.L68
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %r10
	movl	(%r10), %eax
	cmpl	%eax, %esi
	je	.L69
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r11
	movl	(%r11), %esi
	cmpl	%esi, %eax
	je	.L70
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rdx
	movl	(%rdx), %eax
	cmpl	%eax, %esi
	je	.L71
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movl	(%rdi), %esi
	movq	%rdi, -104(%rbp)
	cmpl	%esi, %eax
	jne	.L106
.L72:
	movl	%esi, (%rdx)
	movl	%esi, %eax
.L71:
	movl	%eax, (%r11)
	movl	%eax, %esi
.L70:
	movl	%esi, (%r10)
	movl	%esi, %eax
.L69:
	movl	%eax, (%r9)
	movslq	%eax, %rdx
.L68:
	movl	%eax, (%r8)
	leaq	(%rbx,%rdx,8), %r8
.L67:
	movl	%eax, (%rcx)
	movl	%eax, %edx
	movq	%r8, %rcx
.L66:
	movl	%edx, (%r14)
.L65:
	movl	4(%rcx), %edx
	subl	(%r12,%r13,4), %edx
	movq	%r15, %rsi
	movl	$1, %edi
	subl	$1, %edx
	xorl	%eax, %eax
	addq	$1, %r13
	addq	$8, %r14
	call	__printf_chk@PLT
	cmpl	%r13d, -68(%rbp)
	jg	.L74
.L75:
	movl	$10, %edi
	call	putchar@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L107
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L99:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L16
.L106:
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movl	(%rax), %edi
	movq	%rax, -112(%rbp)
	cmpl	%edi, %esi
	je	.L73
	movq	%rbx, %rsi
	movq	%rdx, -120(%rbp)
	call	Root
	movq	-120(%rbp), %rdx
	movl	%eax, %edi
	movq	-112(%rbp), %rax
	movl	%edi, (%rax)
.L73:
	movq	-104(%rbp), %rax
	movl	%edi, %esi
	movl	%edi, (%rax)
	jmp	.L72
.L105:
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movq	%rdi, -120(%rbp)
	movl	(%rdi), %edi
	cmpl	%edi, %eax
	je	.L61
	movq	%rbx, %rsi
	movq	%rdx, -128(%rbp)
	call	Root
	movq	-128(%rbp), %rdx
	movl	%eax, %edi
	movq	-120(%rbp), %rax
	movl	%edi, (%rax)
.L61:
	movq	-112(%rbp), %rax
	movl	%edi, (%rax)
	movl	%edi, %eax
	jmp	.L60
.L104:
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movl	(%rax), %edi
	movq	%rax, -120(%rbp)
	cmpl	%edi, %esi
	je	.L51
	movq	%rbx, %rsi
	movq	%rdx, -128(%rbp)
	call	Root
	movq	-128(%rbp), %rdx
	movl	%eax, %edi
	movq	-120(%rbp), %rax
	movl	%edi, (%rax)
.L51:
	movq	-112(%rbp), %rax
	movl	%edi, %esi
	movl	%edi, (%rax)
	jmp	.L50
.L102:
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movl	(%rax), %edi
	movq	%rax, -112(%rbp)
	cmpl	%edi, %esi
	je	.L38
	movq	%rbx, %rsi
	movq	%rdx, -120(%rbp)
	call	Root
	movq	-120(%rbp), %rdx
	movl	%eax, %edi
	movq	-112(%rbp), %rax
	movl	%edi, (%rax)
.L38:
	movq	-104(%rbp), %rax
	movl	%edi, %esi
	movl	%edi, (%rax)
	jmp	.L37
.L101:
	movq	%rbx, %rsi
	movq	%rdx, -120(%rbp)
	call	Root
	movq	-120(%rbp), %rdx
	movl	%eax, %edi
	movq	-112(%rbp), %rax
	movl	%edi, (%rax)
	jmp	.L29
.L107:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE27:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.type	Root, @function
Root:
.LFB23:
	.cfi_startproc
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movslq	%edi, %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdx, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	(%rsi,%rdx,8), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movl	(%rbx), %edx
	cmpl	%eax, %edx
	jne	.L8
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movslq	%edx, %rax
	leaq	(%rsi,%rax,8), %rbp
	movl	0(%rbp), %eax
	cmpl	%eax, %edx
	je	.L3
	movslq	%eax, %rdx
	leaq	(%rsi,%rdx,8), %r12
	movl	(%r12), %edx
	cmpl	%edx, %eax
	jne	.L9
	movl	%edx, 0(%rbp)
	movl	%edx, %eax
.L3:
	movl	%eax, (%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movslq	%edx, %rax
	leaq	(%rsi,%rax,8), %r13
	movl	0(%r13), %edi
	cmpl	%edi, %edx
	je	.L5
	call	Root
	movl	%eax, 0(%r13)
	movl	%eax, %edi
.L5:
	movl	%edi, %edx
	movl	%edi, (%r12)
	movl	%edx, %eax
	movl	%edx, 0(%rbp)
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	Root, .-Root
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %rdx
	pushq	%r13
	leaq	-68(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-68(%rbp), %rcx
	movq	%rsp, %rsi
	leaq	15(,%rcx,4), %rax
	movq	%rcx, %r13
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L12
.L97:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L97
.L12:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L98
.L13:
	leaq	15(,%rcx,8), %rax
	movq	%rsp, %rcx
	movq	%rsp, %r12
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L14:
	cmpq	%rcx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L98:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L13
.L15:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L99
.L16:
	movq	%rsp, %rbx
	testl	%r13d, %r13d
	jle	.L21
	leal	-1(%r13), %r14d
	movl	%r13d, %r13d
	xorl	%esi, %esi
	movq	%r12, %rdi
	leaq	0(,%r13,4), %rdx
	call	memset@PLT
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%eax, (%rbx,%rax,8)
	addq	$1, %rax
	cmpq	%r13, %rax
	jne	.L19
	leaq	4(%rbx), %rax
	leaq	12(%rbx,%r14,8), %rdx
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$1, (%rax)
	addq	$8, %rax
	cmpq	%rax, %rdx
	jne	.L20
.L21:
	leaq	.LC1(%rip), %r13
.L39:
	movl	-64(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -64(%rbp)
	testl	%eax, %eax
	je	.L100
.L40:
	leaq	-80(%rbp), %rdx
	movq	%r13, %rdi
	leaq	-84(%rbp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %eax
	movl	-80(%rbp), %edi
	subl	$1, %eax
	leal	-1(%rdi), %ecx
	movslq	%eax, %rdx
	movslq	%ecx, %r8
	movl	%eax, -84(%rbp)
	leaq	(%rbx,%rdx,8), %r9
	addl	$1, (%r12,%rdx,4)
	movslq	(%r9), %r11
	addl	$1, (%r12,%r8,4)
	movl	%ecx, -80(%rbp)
	cmpl	%r11d, %eax
	je	.L22
	movslq	%r11d, %rax
	leaq	(%rbx,%rax,8), %r10
	movl	(%r10), %eax
	cmpl	%eax, %r11d
	je	.L23
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r11
	movl	(%r11), %esi
	cmpl	%esi, %eax
	je	.L24
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %r14
	movl	(%r14), %eax
	cmpl	%eax, %esi
	je	.L25
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r15
	movl	(%r15), %esi
	cmpl	%esi, %eax
	je	.L26
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rdx
	movl	(%rdx), %eax
	cmpl	%eax, %esi
	je	.L27
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movl	(%rdi), %esi
	movq	%rdi, -104(%rbp)
	cmpl	%esi, %eax
	je	.L28
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movl	(%rax), %edi
	movq	%rax, -112(%rbp)
	cmpl	%edi, %esi
	jne	.L101
.L29:
	movq	-104(%rbp), %rax
	movl	%edi, %esi
	movl	%edi, (%rax)
.L28:
	movl	%esi, (%rdx)
	movl	%esi, %eax
.L27:
	movl	%eax, (%r15)
	movl	%eax, %esi
.L26:
	movl	%esi, (%r14)
.L25:
	movl	%esi, (%r11)
.L24:
	movl	%esi, (%r10)
	movl	%esi, %eax
.L23:
	movl	%eax, (%r9)
	movslq	%eax, %r11
.L22:
	leaq	(%rbx,%r8,8), %r8
	movslq	(%r8), %rax
	cmpl	%eax, %ecx
	je	.L30
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	je	.L31
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r9
	movl	(%r9), %eax
	cmpl	%eax, %edx
	je	.L32
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r10
	movl	(%r10), %edx
	cmpl	%edx, %eax
	je	.L33
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r14
	movl	(%r14), %eax
	cmpl	%eax, %edx
	je	.L34
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r15
	movl	(%r15), %esi
	cmpl	%esi, %eax
	je	.L35
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rdx
	movl	(%rdx), %eax
	cmpl	%eax, %esi
	je	.L36
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movl	(%rdi), %esi
	movq	%rdi, -104(%rbp)
	cmpl	%esi, %eax
	jne	.L102
.L37:
	movl	%esi, (%rdx)
	movl	%esi, %eax
.L36:
	movl	%eax, (%r15)
	movl	%eax, %esi
.L35:
	movl	%esi, (%r14)
	movl	%esi, %eax
.L34:
	movl	%eax, (%r10)
.L33:
	movl	%eax, (%r9)
.L32:
	movl	%eax, (%rcx)
	movl	%eax, %edx
.L31:
	movl	%edx, (%r8)
	movslq	%edx, %rax
.L30:
	cmpl	%r11d, %eax
	je	.L39
	leaq	(%rbx,%r11,8), %rdx
	movl	%eax, (%rdx)
	movl	4(%rdx), %edx
	addl	%edx, 4(%rbx,%rax,8)
	movl	-64(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -64(%rbp)
	testl	%eax, %eax
	jne	.L40
.L100:
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L62:
	movl	-60(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -60(%rbp)
	testl	%eax, %eax
	je	.L103
.L63:
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	leaq	-76(%rbp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-76(%rbp), %eax
	movl	-72(%rbp), %edi
	subl	$1, %eax
	leal	-1(%rdi), %ecx
	movslq	%eax, %rdx
	movl	%eax, -76(%rbp)
	leaq	(%rbx,%rdx,8), %r8
	movl	%ecx, -72(%rbp)
	movl	(%r8), %r10d
	cmpl	%r10d, %eax
	je	.L42
	movslq	%r10d, %rax
	leaq	(%rbx,%rax,8), %r9
	movl	(%r9), %eax
	cmpl	%eax, %r10d
	je	.L43
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r10
	movl	(%r10), %edx
	cmpl	%edx, %eax
	je	.L44
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r11
	movl	(%r11), %eax
	cmpl	%eax, %edx
	je	.L45
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r14
	movl	(%r14), %edx
	cmpl	%edx, %eax
	je	.L46
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r15
	movl	(%r15), %eax
	cmpl	%eax, %edx
	je	.L47
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %rdx
	movl	(%rdx), %esi
	cmpl	%esi, %eax
	je	.L48
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movq	%rax, -104(%rbp)
	movl	(%rax), %eax
	cmpl	%eax, %esi
	je	.L49
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movl	(%rdi), %esi
	movq	%rdi, -112(%rbp)
	cmpl	%esi, %eax
	jne	.L104
.L50:
	movq	-104(%rbp), %rax
	movl	%esi, (%rax)
	movl	%esi, %eax
.L49:
	movl	%eax, (%rdx)
	movl	%eax, %esi
.L48:
	movl	%esi, (%r15)
	movl	%esi, %eax
.L47:
	movl	%eax, (%r14)
.L46:
	movl	%eax, (%r11)
.L45:
	movl	%eax, (%r10)
	movl	%eax, %edx
.L44:
	movl	%edx, (%r9)
	movl	%edx, %eax
.L43:
	movl	%eax, (%r8)
	movl	%eax, %r10d
.L42:
	movslq	%ecx, %rax
	leaq	(%rbx,%rax,8), %r8
	movl	(%r8), %eax
	cmpl	%eax, %ecx
	je	.L52
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	je	.L53
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r9
	movl	(%r9), %eax
	cmpl	%eax, %edx
	je	.L54
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r11
	movl	(%r11), %esi
	cmpl	%esi, %eax
	je	.L55
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %r14
	movl	(%r14), %eax
	cmpl	%eax, %esi
	je	.L56
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r15
	movl	(%r15), %esi
	cmpl	%esi, %eax
	je	.L57
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rdx
	movl	(%rdx), %eax
	cmpl	%eax, %esi
	je	.L58
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movl	(%rdi), %esi
	movq	%rdi, -104(%rbp)
	cmpl	%esi, %eax
	je	.L59
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movq	%rax, -112(%rbp)
	movl	(%rax), %eax
	cmpl	%eax, %esi
	jne	.L105
.L60:
	movq	-104(%rbp), %rdi
	movl	%eax, %esi
	movl	%eax, (%rdi)
.L59:
	movl	%esi, (%rdx)
	movl	%esi, %eax
.L58:
	movl	%eax, (%r15)
	movl	%eax, %esi
.L57:
	movl	%esi, (%r14)
.L56:
	movl	%esi, (%r11)
.L55:
	movl	%esi, (%r9)
	movl	%esi, %eax
.L54:
	movl	%eax, (%rcx)
	movl	%eax, %edx
.L53:
	movl	%edx, (%r8)
	movl	%edx, %eax
.L52:
	cmpl	%r10d, %eax
	jne	.L62
	movslq	-76(%rbp), %rax
	addl	$1, (%r12,%rax,4)
	movslq	-72(%rbp), %rax
	addl	$1, (%r12,%rax,4)
	movl	-60(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -60(%rbp)
	testl	%eax, %eax
	jne	.L63
	.p2align 4,,10
	.p2align 3
.L103:
	movl	-68(%rbp), %eax
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	leaq	.LC2(%rip), %r15
	testl	%eax, %eax
	jle	.L75
	.p2align 4,,10
	.p2align 3
.L74:
	movl	(%r14), %eax
	movq	%r14, %rcx
	cmpl	%r13d, %eax
	je	.L65
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	je	.L66
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %r8
	movl	(%r8), %eax
	cmpl	%eax, %edx
	je	.L67
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r9
	movl	(%r9), %esi
	cmpl	%esi, %eax
	je	.L68
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %r10
	movl	(%r10), %eax
	cmpl	%eax, %esi
	je	.L69
	movslq	%eax, %rdx
	leaq	(%rbx,%rdx,8), %r11
	movl	(%r11), %esi
	cmpl	%esi, %eax
	je	.L70
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rdx
	movl	(%rdx), %eax
	cmpl	%eax, %esi
	je	.L71
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movl	(%rdi), %esi
	movq	%rdi, -104(%rbp)
	cmpl	%esi, %eax
	jne	.L106
.L72:
	movl	%esi, (%rdx)
	movl	%esi, %eax
.L71:
	movl	%eax, (%r11)
	movl	%eax, %esi
.L70:
	movl	%esi, (%r10)
	movl	%esi, %eax
.L69:
	movl	%eax, (%r9)
	movslq	%eax, %rdx
.L68:
	movl	%eax, (%r8)
	leaq	(%rbx,%rdx,8), %r8
.L67:
	movl	%eax, (%rcx)
	movl	%eax, %edx
	movq	%r8, %rcx
.L66:
	movl	%edx, (%r14)
.L65:
	movl	4(%rcx), %edx
	subl	(%r12,%r13,4), %edx
	movq	%r15, %rsi
	movl	$1, %edi
	subl	$1, %edx
	xorl	%eax, %eax
	addq	$1, %r13
	addq	$8, %r14
	call	__printf_chk@PLT
	cmpl	%r13d, -68(%rbp)
	jg	.L74
.L75:
	movl	$10, %edi
	call	putchar@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L107
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L99:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L16
.L106:
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movl	(%rax), %edi
	movq	%rax, -112(%rbp)
	cmpl	%edi, %esi
	je	.L73
	movq	%rbx, %rsi
	movq	%rdx, -120(%rbp)
	call	Root
	movq	-120(%rbp), %rdx
	movl	%eax, %edi
	movq	-112(%rbp), %rax
	movl	%edi, (%rax)
.L73:
	movq	-104(%rbp), %rax
	movl	%edi, %esi
	movl	%edi, (%rax)
	jmp	.L72
.L105:
	movslq	%eax, %rsi
	leaq	(%rbx,%rsi,8), %rdi
	movq	%rdi, -120(%rbp)
	movl	(%rdi), %edi
	cmpl	%edi, %eax
	je	.L61
	movq	%rbx, %rsi
	movq	%rdx, -128(%rbp)
	call	Root
	movq	-128(%rbp), %rdx
	movl	%eax, %edi
	movq	-120(%rbp), %rax
	movl	%edi, (%rax)
.L61:
	movq	-112(%rbp), %rax
	movl	%edi, (%rax)
	movl	%edi, %eax
	jmp	.L60
.L104:
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movl	(%rax), %edi
	movq	%rax, -120(%rbp)
	cmpl	%edi, %esi
	je	.L51
	movq	%rbx, %rsi
	movq	%rdx, -128(%rbp)
	call	Root
	movq	-128(%rbp), %rdx
	movl	%eax, %edi
	movq	-120(%rbp), %rax
	movl	%edi, (%rax)
.L51:
	movq	-112(%rbp), %rax
	movl	%edi, %esi
	movl	%edi, (%rax)
	jmp	.L50
.L102:
	movslq	%esi, %rax
	leaq	(%rbx,%rax,8), %rax
	movl	(%rax), %edi
	movq	%rax, -112(%rbp)
	cmpl	%edi, %esi
	je	.L38
	movq	%rbx, %rsi
	movq	%rdx, -120(%rbp)
	call	Root
	movq	-120(%rbp), %rdx
	movl	%eax, %edi
	movq	-112(%rbp), %rax
	movl	%edi, (%rax)
.L38:
	movq	-104(%rbp), %rax
	movl	%edi, %esi
	movl	%edi, (%rax)
	jmp	.L37
.L101:
	movq	%rbx, %rsi
	movq	%rdx, -120(%rbp)
	call	Root
	movq	-120(%rbp), %rdx
	movl	%eax, %edi
	movq	-112(%rbp), %rax
	movl	%edi, (%rax)
	jmp	.L29
.L107:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE27:
	.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:

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
typedef struct{int Parent,Rank;}UnionFind;
static inline int Root(int x,UnionFind *uf)
{
  if(uf[x].Parent==x)return x;
  else return uf[x].Parent=Root(uf[x].Parent,uf);
}
static inline int Unite(int x,int y,UnionFind *uf)
{
  x=Root(x,uf),y=Root(y,uf);
  if(x==y)return 0;
  uf[x].Parent=y;uf[y].Rank+=uf[x].Rank;return 1;
}
static inline int Size(int x,UnionFind *uf){return uf[Root(x,uf)].Rank;}
static inline int Belong(int x,int y,UnionFind *uf){return Root(x,uf)==Root(y,uf);}
int main(void)
{
  int A,B,C,D,N,M,K;
  scanf("%d %d %d",&N,&M,&K);
  int known[N];
  UnionFind uft[N];
  for(int i=0;i<N;i++){known[i]=0;uft[i].Parent=i;uft[i].Rank=1;}
  while(M--)
  {
    scanf("%d %d",&A,&B);
    A--,B--;known[A]++,known[B]++;Unite(A,B,uft);
  }
  while(K--)
  {
    scanf("%d %d",&C,&D);
    C--,D--;if(Belong(C,D,uft))known[C]++,known[D]++;
  }
  for(int i=0;i<N;i++){printf("%d ",Size(i,uft)-known[i]-1);}
  return printf("\n"),0;
}
5 10 0
1 2
1 3
1 4
1 5
3 2
2 4
2 5
4 3
1 3
4 5
 5 10 0
1 2
1 3
2 4
1 5
3 2
2 4
2 5
4 3
1 3
4 5
 5 10 0
1 2
1 3
2 4
1 5
3 2
2 4
2 5
4 1
1 3
4 5
 5 10 0
1 2
1 3
2 5
1 5
3 2
2 4
2 5
4 1
1 3
4 5
 5 10 0
1 2
1 3
2 5
1 5
3 2
2 4
2 3
4 1
1 3
4 5
 5 10 0
1 2
1 3
1 4
1 5
3 2
2 4
2 5
4 3
5 3
4 3
 10 9 3
10 1
6 6
8 2
2 5
8 4
7 3
10 9
6 4
5 8
2 6
7 5
3 1
 5 10 0
1 2
1 3
2 4
1 5
3 2
2 4
2 5
4 1
1 2
4 5

-1 0 0 0 1 
 0 -1 0 0 1 
 -1 -1 1 0 1 
 -1 -1 1 1 0 
 -1 -1 0 1 1 
 0 0 -1 0 1 
 1 1 0 2 2 0 0 1 1 0 
 -1 -2 2 0 1 

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

```c
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
typedef struct{int Parent,Rank;}UnionFind;
static inline int Root(int x,UnionFind *uf)
{
  if(uf[x].Parent==x)return x;
  else return uf[x].Parent=Root(uf[x].Parent,uf);
}
static inline int Unite(int x,int y,UnionFind *uf)
{
  x=Root(x,uf),y=Root(y,uf);
  if(x==y)return 0;
  uf[x].Parent=y;uf[y].Rank+=uf[x].Rank;return 1;
}
static inline int Size(int x,UnionFind *uf){return uf[Root(x,uf)].Rank;}
static inline int Belong(int x,int y,UnionFind *uf){return Root(x,uf)==Root(y,uf);}
int main(void)
{
  int A,B,C,D,N,M,K;
  scanf("%d %d %d",&N,&M,&K);
  int known[N];
  UnionFind uft[N];
  for(int i=0;i<N;i++){known[i]=0;uft[i].Parent=i;uft[i].Rank=1;}
  while(M--)
  {
    scanf("%d %d",&A,&B);
    A--,B--;known[A]++,known[B]++;Unite(A,B,uft);
  }
  while(K--)
  {
    scanf("%d %d",&C,&D);
    C--,D--;if(Belong(C,D,uft))known[C]++,known[D]++;
  }
  for(int i=0;i<N;i++){printf("%d ",Size(i,uft)-known[i]-1);}
  return printf("\n"),0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.type	Root, @function
Root:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L2
	movl	-20(%rbp), %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, (%rbx)
	movl	(%rbx), %eax
.L3:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Root, .-Root
	.type	Unite, @function
Unite:
.LFB1:
	.cfi_startproc
	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)
	movq	%rdx, -16(%rbp)
	movq	-16(%rbp), %rdx
	movl	-4(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, -4(%rbp)
	movq	-16(%rbp), %rdx
	movl	-8(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jne	.L5
	movl	$0, %eax
	jmp	.L6
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rax, %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-16(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, 4(%rax)
	movl	$1, %eax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Unite, .-Unite
	.type	Size, @function
Size:
.LFB2:
	.cfi_startproc
	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)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movl	-4(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	Size, .-Size
	.type	Belong, @function
Belong:
.LFB3:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-32(%rbp), %rdx
	movl	-20(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, %ebx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	cmpl	%eax, %ebx
	sete	%al
	movzbl	%al, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	Belong, .-Belong
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-100(%rbp), %rcx
	leaq	-104(%rbp), %rdx
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L12:
	cmpq	%rdx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L14
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L15:
	cmpq	%rdx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L17
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -96(%rbp)
	jmp	.L18
.L19:
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	-96(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, 4(%rax,%rdx,8)
	addl	$1, -96(%rbp)
.L18:
	movl	-108(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L19
	jmp	.L20
.L21:
	leaq	-120(%rbp), %rdx
	leaq	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -124(%rbp)
	movl	-120(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -120(%rbp)
	movl	-124(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
	movl	-120(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
	movl	-120(%rbp), %ecx
	movl	-124(%rbp), %eax
	movq	-64(%rbp), %rdx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	Unite
.L20:
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -104(%rbp)
	testl	%eax, %eax
	jne	.L21
	jmp	.L22
.L23:
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-112(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -112(%rbp)
	movl	-112(%rbp), %ecx
	movl	-116(%rbp), %eax
	movq	-64(%rbp), %rdx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	Belong
	testl	%eax, %eax
	je	.L22
	movl	-116(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
	movl	-112(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
.L22:
	movl	-100(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -100(%rbp)
	testl	%eax, %eax
	jne	.L23
	movl	$0, -92(%rbp)
	jmp	.L24
.L25:
	movq	-64(%rbp), %rdx
	movl	-92(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Size
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edx
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -92(%rbp)
.L24:
	movl	-108(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L25
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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
	.type	Root, @function
Root:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L2
	movl	-20(%rbp), %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, (%rbx)
	movl	(%rbx), %eax
.L3:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Root, .-Root
	.type	Unite, @function
Unite:
.LFB1:
	.cfi_startproc
	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)
	movq	%rdx, -16(%rbp)
	movq	-16(%rbp), %rdx
	movl	-4(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, -4(%rbp)
	movq	-16(%rbp), %rdx
	movl	-8(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jne	.L5
	movl	$0, %eax
	jmp	.L6
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rax, %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-16(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, 4(%rax)
	movl	$1, %eax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Unite, .-Unite
	.type	Size, @function
Size:
.LFB2:
	.cfi_startproc
	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)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movl	-4(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	Size, .-Size
	.type	Belong, @function
Belong:
.LFB3:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-32(%rbp), %rdx
	movl	-20(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	movl	%eax, %ebx
	movq	-32(%rbp), %rdx
	movl	-24(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Root
	cmpl	%eax, %ebx
	sete	%al
	movzbl	%al, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	Belong, .-Belong
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-100(%rbp), %rcx
	leaq	-104(%rbp), %rdx
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L12:
	cmpq	%rdx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L14
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L15:
	cmpq	%rdx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L17
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -96(%rbp)
	jmp	.L18
.L19:
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	-96(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, 4(%rax,%rdx,8)
	addl	$1, -96(%rbp)
.L18:
	movl	-108(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L19
	jmp	.L20
.L21:
	leaq	-120(%rbp), %rdx
	leaq	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -124(%rbp)
	movl	-120(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -120(%rbp)
	movl	-124(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
	movl	-120(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
	movl	-120(%rbp), %ecx
	movl	-124(%rbp), %eax
	movq	-64(%rbp), %rdx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	Unite
.L20:
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -104(%rbp)
	testl	%eax, %eax
	jne	.L21
	jmp	.L22
.L23:
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-112(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -112(%rbp)
	movl	-112(%rbp), %ecx
	movl	-116(%rbp), %eax
	movq	-64(%rbp), %rdx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	Belong
	testl	%eax, %eax
	je	.L22
	movl	-116(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
	movl	-112(%rbp), %eax
	movq	-80(%rbp), %rdx
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-80(%rbp), %rdx
	cltq
	movl	%ecx, (%rdx,%rax,4)
.L22:
	movl	-100(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -100(%rbp)
	testl	%eax, %eax
	jne	.L23
	movl	$0, -92(%rbp)
	jmp	.L24
.L25:
	movq	-64(%rbp), %rdx
	movl	-92(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	Size
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edx
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -92(%rbp)
.L24:
	movl	-108(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L25
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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:
