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>
int p[200005], cnt[200005];
int root(int n)
{
	if (p[n] != n)
		p[n] = root(p[n]);
	return p[n];
}
void uni(int a, int b)
{
	a = root(a);
	b = root(b);
	if (a != b)
	{
		p[a] = b;
		cnt[b] += cnt[a];
	}
	return;
}
int main()
{
	int n, m;
	scanf("%d %d", &n, &m);
	int i;
	int a[200005], b[200005];
	for (i = 0; i < m; i++)
	{
		scanf("%d %d", &a[i], &b[i]);
		a[i]--;
		b[i]--;
	}
	for (i = 0; i < n; i++)
	{
		p[i] = i;
		cnt[i] = 1;
	}
	for (i = 0; i < m; i++)
		uni(a[i], b[i]);
	int ans = 0;
	for (i = 0; i < n; i++)
		if (ans < cnt[root(i)])
			ans = cnt[root(i)];
	printf("%d\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 800020
p:
	.zero	800020
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 800020
cnt:
	.zero	800020
	.text
	.globl	root
	.type	root, @function
root:
.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	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	je	.L2
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	root
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L2:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	root, .-root
	.globl	uni
	.type	uni, @function
uni:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	root
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, %edi
	call	root
	movl	%eax, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L7
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	nop
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	uni, .-uni
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600076(%rbp), %rdx
	leaq	-1600080(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600072(%rbp)
	jmp	.L9
.L10:
	leaq	-800032(%rbp), %rdx
	movl	-1600072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-1600064(%rbp), %rcx
	movl	-1600072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	%edx, -1600064(%rbp,%rax,4)
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	%edx, -800032(%rbp,%rax,4)
	addl	$1, -1600072(%rbp)
.L9:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L10
	movl	$0, -1600072(%rbp)
	jmp	.L11
.L12:
	movl	-1600072(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-1600072(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-1600072(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -1600072(%rbp)
.L11:
	movl	-1600080(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L12
	movl	$0, -1600072(%rbp)
	jmp	.L13
.L14:
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	uni
	addl	$1, -1600072(%rbp)
.L13:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L14
	movl	$0, -1600068(%rbp)
	movl	$0, -1600072(%rbp)
	jmp	.L15
.L17:
	movl	-1600072(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -1600068(%rbp)
	jge	.L16
	movl	-1600072(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -1600068(%rbp)
.L16:
	addl	$1, -1600072(%rbp)
.L15:
	movl	-1600080(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L17
	movl	-1600068(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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
	.p2align 4
	.globl	root
	.type	root, @function
root:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	p(%rip), %rbx
	movq	%rbp, %rax
	movl	(%rbx,%rbp,4), %edx
	cmpl	%ebp, %edx
	jne	.L9
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movslq	%edx, %r12
	movl	(%rbx,%r12,4), %eax
	cmpl	%eax, %edx
	je	.L3
	movslq	%eax, %r13
	movl	(%rbx,%r13,4), %edx
	cmpl	%edx, %eax
	jne	.L10
.L4:
	movl	%edx, (%rbx,%r12,4)
	movl	%edx, %eax
.L3:
	movl	%eax, (%rbx,%rbp,4)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movslq	%edx, %r14
	movl	(%rbx,%r14,4), %edi
	cmpl	%edi, %edx
	je	.L5
	call	root
	movl	%eax, (%rbx,%r14,4)
	movl	%eax, %edi
.L5:
	movl	%edi, (%rbx,%r13,4)
	movl	%edi, %edx
	jmp	.L4
	.cfi_endproc
.LFE23:
	.size	root, .-root
	.p2align 4
	.globl	uni
	.type	uni, @function
uni:
.LFB24:
	.cfi_startproc
	endbr64
	leaq	p(%rip), %rcx
	movslq	%edi, %r9
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%esi, %r8d
	movslq	(%rcx,%r9,4), %rsi
	cmpl	%esi, %edi
	jne	.L22
	movslq	%r8d, %r9
	movslq	(%rcx,%r9,4), %rax
	cmpl	%eax, %r8d
	jne	.L23
.L16:
	cmpl	%esi, %eax
	je	.L11
	leaq	cnt(%rip), %rdx
	movl	%eax, (%rcx,%rsi,4)
	movl	(%rdx,%rsi,4), %ecx
	addl	%ecx, (%rdx,%rax,4)
.L11:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movslq	%esi, %r10
	movl	(%rcx,%r10,4), %eax
	cmpl	%eax, %esi
	je	.L13
	movslq	%eax, %rsi
	movl	(%rcx,%rsi,4), %edx
	cmpl	%edx, %eax
	jne	.L24
.L14:
	movl	%edx, (%rcx,%r10,4)
	movl	%edx, %eax
.L13:
	movl	%eax, (%rcx,%r9,4)
	movslq	%r8d, %r9
	movslq	%eax, %rsi
	movslq	(%rcx,%r9,4), %rax
	cmpl	%eax, %r8d
	je	.L16
.L23:
	movslq	%eax, %r10
	movl	(%rcx,%r10,4), %edx
	cmpl	%edx, %eax
	je	.L17
	movslq	%edx, %r11
	movl	(%rcx,%r11,4), %r8d
	cmpl	%r8d, %edx
	jne	.L25
.L18:
	movl	%r8d, (%rcx,%r10,4)
	movl	%r8d, %edx
.L17:
	movl	%edx, (%rcx,%r9,4)
	movslq	%edx, %rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%r8d, %rbx
	movl	(%rcx,%rbx,4), %edi
	cmpl	%edi, %r8d
	je	.L19
	call	root
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edi
.L19:
	movl	%edi, (%rcx,%r11,4)
	movl	%edi, %r8d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L24:
	movslq	%edx, %r11
	movl	(%rcx,%r11,4), %edi
	cmpl	%edi, %edx
	je	.L15
	call	root
	movl	%eax, (%rcx,%r11,4)
	movl	%eax, %edi
.L15:
	movl	%edi, (%rcx,%rsi,4)
	movl	%edi, %edx
	jmp	.L14
	.cfi_endproc
.LFE24:
	.size	uni, .-uni
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597496
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2648, %rsp
	.cfi_def_cfa_offset 1600144
	leaq	.LC1(%rip), %r15
	movq	%r15, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600072(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L27
	leaq	16(%rsp), %r14
	leaq	800048(%rsp), %rbx
	xorl	%r13d, %r13d
	movq	%r14, %r12
	movq	%rbx, %rbp
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addl	$1, %r13d
	subl	$1, (%r12)
	subl	$1, 0(%rbp)
	addq	$4, %r12
	addq	$4, %rbp
	cmpl	%r13d, %edx
	jg	.L28
	movl	8(%rsp), %edi
	testl	%edi, %edi
	jle	.L29
.L61:
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L63
	movl	%edi, %esi
	movdqa	.LC0(%rip), %xmm0
	xorl	%eax, %eax
	movdqa	.LC2(%rip), %xmm3
	shrl	$2, %esi
	movdqa	.LC3(%rip), %xmm2
	leaq	p(%rip), %rcx
	leaq	cnt(%rip), %r9
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L31:
	movdqa	%xmm0, %xmm1
	movaps	%xmm2, (%r9,%rax)
	paddd	%xmm3, %xmm0
	movaps	%xmm1, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L31
	movl	%edi, %eax
	andl	$-4, %eax
	testb	$3, %dil
	je	.L32
.L30:
	movslq	%eax, %rsi
	movl	%eax, (%rcx,%rsi,4)
	movl	$1, (%r9,%rsi,4)
	leal	1(%rax), %esi
	cmpl	%edi, %esi
	jge	.L32
	movslq	%esi, %r8
	addl	$2, %eax
	movl	%esi, (%rcx,%r8,4)
	movl	$1, (%r9,%r8,4)
	cmpl	%edi, %eax
	jge	.L32
	movslq	%eax, %rsi
	movl	%eax, (%rcx,%rsi,4)
	movl	$1, (%r9,%rsi,4)
.L32:
	leaq	16(%rsp), %r14
	leaq	800048(%rsp), %rbx
	testl	%edx, %edx
	jle	.L47
.L59:
	xorl	%r8d, %r8d
	leaq	cnt(%rip), %r10
	.p2align 4,,10
	.p2align 3
.L46:
	movslq	(%r14,%r8,4), %r11
	movl	(%rbx,%r8,4), %r9d
	movslq	(%rcx,%r11,4), %rsi
	cmpl	%esi, %r11d
	je	.L33
	movslq	%esi, %rbp
	movl	(%rcx,%rbp,4), %eax
	cmpl	%eax, %esi
	je	.L34
	movslq	%eax, %rsi
	movl	(%rcx,%rsi,4), %edx
	cmpl	%edx, %eax
	je	.L35
	movslq	%edx, %r12
	movl	(%rcx,%r12,4), %eax
	cmpl	%eax, %edx
	jne	.L72
.L36:
	movl	(%rcx,%r12,4), %edx
	movl	%edx, (%rcx,%rsi,4)
.L35:
	movl	%edx, (%rcx,%rbp,4)
	movl	%edx, %eax
.L34:
	movl	%eax, (%rcx,%r11,4)
	movslq	%eax, %rsi
.L33:
	movslq	%r9d, %r11
	movslq	(%rcx,%r11,4), %rax
	cmpl	%eax, %r9d
	je	.L38
	movslq	%eax, %r9
	movl	(%rcx,%r9,4), %edx
	cmpl	%edx, %eax
	je	.L39
	movslq	%edx, %rbp
	movl	(%rcx,%rbp,4), %eax
	cmpl	%eax, %edx
	je	.L40
	movslq	%eax, %r12
	movl	(%rcx,%r12,4), %edx
	cmpl	%edx, %eax
	jne	.L73
.L41:
	movl	(%rcx,%r12,4), %eax
	movl	%eax, (%rcx,%rbp,4)
.L40:
	movl	%eax, (%rcx,%r9,4)
	movl	%eax, %edx
.L39:
	movl	%edx, (%rcx,%r11,4)
	movslq	%edx, %rax
.L38:
	cmpl	%eax, %esi
	je	.L43
	movl	(%r10,%rsi,4), %edx
	movl	%eax, (%rcx,%rsi,4)
	addq	$1, %r8
	addl	%edx, (%r10,%rax,4)
	cmpl	%r8d, 12(%rsp)
	jg	.L46
.L45:
	movl	8(%rsp), %eax
	leaq	cnt(%rip), %r9
	testl	%eax, %eax
	jle	.L60
.L47:
	leaq	p(%rip), %r8
	xorl	%r11d, %r11d
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L58:
	movl	(%r8), %edx
	cmpl	%esi, %edx
	je	.L49
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %eax
	cmpl	%eax, %edx
	je	.L50
	movslq	%eax, %r10
	movl	(%rcx,%r10,4), %edx
	cmpl	%edx, %eax
	je	.L51
	movslq	%edx, %rbp
	movl	(%rcx,%rbp,4), %eax
	cmpl	%eax, %edx
	jne	.L74
.L52:
	movl	(%rcx,%rbp,4), %edx
	movl	%edx, (%rcx,%r10,4)
.L51:
	movl	%edx, (%rcx,%rbx,4)
	movl	%edx, %eax
.L50:
	movslq	%eax, %r10
	movl	%eax, (%r8)
	movl	(%r9,%r10,4), %edx
	cmpl	%r11d, %edx
	jg	.L75
.L54:
	addl	$1, %esi
	addq	$4, %r8
	cmpl	%esi, 8(%rsp)
	jg	.L58
.L48:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	1600072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$1600088, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L49:
	.cfi_restore_state
	movslq	%esi, %rax
	movl	(%r9,%rax,4), %edx
	cmpl	%edx, %r11d
	jge	.L54
.L55:
	movl	%edx, %r11d
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L43:
	addq	$1, %r8
	cmpl	%r8d, 12(%rsp)
	jg	.L46
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L75:
	cmpl	%esi, %eax
	je	.L55
	movslq	(%rcx,%r10,4), %rdx
	cmpl	%edx, %eax
	je	.L56
	movslq	%edx, %r11
	movl	(%rcx,%r11,4), %edi
	cmpl	%edi, %edx
	jne	.L77
.L57:
	movslq	(%rcx,%r11,4), %rdx
	movl	%edx, (%rcx,%r10,4)
.L56:
	movl	%edx, (%r8)
	movl	(%r9,%rdx,4), %edx
	movl	%edx, %r11d
	jmp	.L54
.L74:
	movslq	%eax, %r12
	movl	(%rcx,%r12,4), %edi
	cmpl	%edi, %eax
	je	.L53
	call	root
	movl	%eax, (%rcx,%r12,4)
.L53:
	movl	(%rcx,%r12,4), %eax
	movl	%eax, (%rcx,%rbp,4)
	jmp	.L52
.L73:
	movslq	%edx, %r13
	movl	(%rcx,%r13,4), %edi
	cmpl	%edi, %edx
	je	.L42
	call	root
	movl	%eax, (%rcx,%r13,4)
.L42:
	movl	(%rcx,%r13,4), %eax
	movl	%eax, (%rcx,%r12,4)
	jmp	.L41
.L72:
	movslq	%eax, %r13
	movl	(%rcx,%r13,4), %edi
	cmpl	%edi, %eax
	je	.L37
	call	root
	movl	%eax, (%rcx,%r13,4)
.L37:
	movl	(%rcx,%r13,4), %eax
	movl	%eax, (%rcx,%r12,4)
	jmp	.L36
.L77:
	call	root
	movl	%eax, (%rcx,%r11,4)
	jmp	.L57
.L27:
	movl	8(%rsp), %edi
	testl	%edi, %edi
	jg	.L61
.L60:
	xorl	%r11d, %r11d
	jmp	.L48
.L29:
	leaq	p(%rip), %rcx
	testl	%edx, %edx
	jg	.L59
	jmp	.L60
.L63:
	xorl	%eax, %eax
	leaq	p(%rip), %rcx
	leaq	cnt(%rip), %r9
	jmp	.L30
.L76:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 800020
cnt:
	.zero	800020
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 800020
p:
	.zero	800020
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.long	1
	.long	1
	.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
	.p2align 4
	.globl	root
	.type	root, @function
root:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	p(%rip), %rbx
	movq	%rbp, %rax
	movl	(%rbx,%rbp,4), %edx
	cmpl	%ebp, %edx
	jne	.L9
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movslq	%edx, %r12
	movl	(%rbx,%r12,4), %eax
	cmpl	%eax, %edx
	je	.L3
	movslq	%eax, %r13
	movl	(%rbx,%r13,4), %edx
	cmpl	%edx, %eax
	jne	.L10
.L4:
	movl	%edx, (%rbx,%r12,4)
	movl	%edx, %eax
.L3:
	movl	%eax, (%rbx,%rbp,4)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movslq	%edx, %r14
	movl	(%rbx,%r14,4), %edi
	cmpl	%edi, %edx
	je	.L5
	call	root
	movl	%eax, (%rbx,%r14,4)
	movl	%eax, %edi
.L5:
	movl	%edi, (%rbx,%r13,4)
	movl	%edi, %edx
	jmp	.L4
	.cfi_endproc
.LFE23:
	.size	root, .-root
	.p2align 4
	.globl	uni
	.type	uni, @function
uni:
.LFB24:
	.cfi_startproc
	endbr64
	leaq	p(%rip), %rcx
	movslq	%edi, %r9
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%esi, %r8d
	movslq	(%rcx,%r9,4), %rsi
	cmpl	%esi, %edi
	jne	.L22
	movslq	%r8d, %r9
	movslq	(%rcx,%r9,4), %rax
	cmpl	%eax, %r8d
	jne	.L23
.L16:
	cmpl	%esi, %eax
	je	.L11
	leaq	cnt(%rip), %rdx
	movl	%eax, (%rcx,%rsi,4)
	movl	(%rdx,%rsi,4), %ecx
	addl	%ecx, (%rdx,%rax,4)
.L11:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movslq	%esi, %r10
	movl	(%rcx,%r10,4), %eax
	cmpl	%eax, %esi
	je	.L13
	movslq	%eax, %rsi
	movl	(%rcx,%rsi,4), %edx
	cmpl	%edx, %eax
	jne	.L24
.L14:
	movl	%edx, (%rcx,%r10,4)
	movl	%edx, %eax
.L13:
	movl	%eax, (%rcx,%r9,4)
	movslq	%r8d, %r9
	movslq	%eax, %rsi
	movslq	(%rcx,%r9,4), %rax
	cmpl	%eax, %r8d
	je	.L16
.L23:
	movslq	%eax, %r10
	movl	(%rcx,%r10,4), %edx
	cmpl	%edx, %eax
	je	.L17
	movslq	%edx, %r11
	movl	(%rcx,%r11,4), %r8d
	cmpl	%r8d, %edx
	jne	.L25
.L18:
	movl	%r8d, (%rcx,%r10,4)
	movl	%r8d, %edx
.L17:
	movl	%edx, (%rcx,%r9,4)
	movslq	%edx, %rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%r8d, %rbx
	movl	(%rcx,%rbx,4), %edi
	cmpl	%edi, %r8d
	je	.L19
	call	root
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edi
.L19:
	movl	%edi, (%rcx,%r11,4)
	movl	%edi, %r8d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L24:
	movslq	%edx, %r11
	movl	(%rcx,%r11,4), %edi
	cmpl	%edi, %edx
	je	.L15
	call	root
	movl	%eax, (%rcx,%r11,4)
	movl	%eax, %edi
.L15:
	movl	%edi, (%rcx,%rsi,4)
	movl	%edi, %edx
	jmp	.L14
	.cfi_endproc
.LFE24:
	.size	uni, .-uni
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597496
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2648, %rsp
	.cfi_def_cfa_offset 1600144
	leaq	.LC1(%rip), %r15
	movq	%r15, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600072(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L27
	leaq	16(%rsp), %r14
	leaq	800048(%rsp), %rbx
	xorl	%r13d, %r13d
	movq	%r14, %r12
	movq	%rbx, %rbp
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addl	$1, %r13d
	subl	$1, (%r12)
	subl	$1, 0(%rbp)
	addq	$4, %r12
	addq	$4, %rbp
	cmpl	%r13d, %edx
	jg	.L28
	movl	8(%rsp), %edi
	testl	%edi, %edi
	jle	.L29
.L61:
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L63
	movl	%edi, %esi
	movdqa	.LC0(%rip), %xmm0
	xorl	%eax, %eax
	movdqa	.LC2(%rip), %xmm3
	shrl	$2, %esi
	movdqa	.LC3(%rip), %xmm2
	leaq	p(%rip), %rcx
	leaq	cnt(%rip), %r9
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L31:
	movdqa	%xmm0, %xmm1
	movaps	%xmm2, (%r9,%rax)
	paddd	%xmm3, %xmm0
	movaps	%xmm1, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L31
	movl	%edi, %eax
	andl	$-4, %eax
	testb	$3, %dil
	je	.L32
.L30:
	movslq	%eax, %rsi
	movl	%eax, (%rcx,%rsi,4)
	movl	$1, (%r9,%rsi,4)
	leal	1(%rax), %esi
	cmpl	%edi, %esi
	jge	.L32
	movslq	%esi, %r8
	addl	$2, %eax
	movl	%esi, (%rcx,%r8,4)
	movl	$1, (%r9,%r8,4)
	cmpl	%edi, %eax
	jge	.L32
	movslq	%eax, %rsi
	movl	%eax, (%rcx,%rsi,4)
	movl	$1, (%r9,%rsi,4)
.L32:
	leaq	16(%rsp), %r14
	leaq	800048(%rsp), %rbx
	testl	%edx, %edx
	jle	.L47
.L59:
	xorl	%r8d, %r8d
	leaq	cnt(%rip), %r10
	.p2align 4,,10
	.p2align 3
.L46:
	movslq	(%r14,%r8,4), %r11
	movl	(%rbx,%r8,4), %r9d
	movslq	(%rcx,%r11,4), %rsi
	cmpl	%esi, %r11d
	je	.L33
	movslq	%esi, %rbp
	movl	(%rcx,%rbp,4), %eax
	cmpl	%eax, %esi
	je	.L34
	movslq	%eax, %rsi
	movl	(%rcx,%rsi,4), %edx
	cmpl	%edx, %eax
	je	.L35
	movslq	%edx, %r12
	movl	(%rcx,%r12,4), %eax
	cmpl	%eax, %edx
	jne	.L72
.L36:
	movl	(%rcx,%r12,4), %edx
	movl	%edx, (%rcx,%rsi,4)
.L35:
	movl	%edx, (%rcx,%rbp,4)
	movl	%edx, %eax
.L34:
	movl	%eax, (%rcx,%r11,4)
	movslq	%eax, %rsi
.L33:
	movslq	%r9d, %r11
	movslq	(%rcx,%r11,4), %rax
	cmpl	%eax, %r9d
	je	.L38
	movslq	%eax, %r9
	movl	(%rcx,%r9,4), %edx
	cmpl	%edx, %eax
	je	.L39
	movslq	%edx, %rbp
	movl	(%rcx,%rbp,4), %eax
	cmpl	%eax, %edx
	je	.L40
	movslq	%eax, %r12
	movl	(%rcx,%r12,4), %edx
	cmpl	%edx, %eax
	jne	.L73
.L41:
	movl	(%rcx,%r12,4), %eax
	movl	%eax, (%rcx,%rbp,4)
.L40:
	movl	%eax, (%rcx,%r9,4)
	movl	%eax, %edx
.L39:
	movl	%edx, (%rcx,%r11,4)
	movslq	%edx, %rax
.L38:
	cmpl	%eax, %esi
	je	.L43
	movl	(%r10,%rsi,4), %edx
	movl	%eax, (%rcx,%rsi,4)
	addq	$1, %r8
	addl	%edx, (%r10,%rax,4)
	cmpl	%r8d, 12(%rsp)
	jg	.L46
.L45:
	movl	8(%rsp), %eax
	leaq	cnt(%rip), %r9
	testl	%eax, %eax
	jle	.L60
.L47:
	leaq	p(%rip), %r8
	xorl	%r11d, %r11d
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L58:
	movl	(%r8), %edx
	cmpl	%esi, %edx
	je	.L49
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %eax
	cmpl	%eax, %edx
	je	.L50
	movslq	%eax, %r10
	movl	(%rcx,%r10,4), %edx
	cmpl	%edx, %eax
	je	.L51
	movslq	%edx, %rbp
	movl	(%rcx,%rbp,4), %eax
	cmpl	%eax, %edx
	jne	.L74
.L52:
	movl	(%rcx,%rbp,4), %edx
	movl	%edx, (%rcx,%r10,4)
.L51:
	movl	%edx, (%rcx,%rbx,4)
	movl	%edx, %eax
.L50:
	movslq	%eax, %r10
	movl	%eax, (%r8)
	movl	(%r9,%r10,4), %edx
	cmpl	%r11d, %edx
	jg	.L75
.L54:
	addl	$1, %esi
	addq	$4, %r8
	cmpl	%esi, 8(%rsp)
	jg	.L58
.L48:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	1600072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$1600088, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L49:
	.cfi_restore_state
	movslq	%esi, %rax
	movl	(%r9,%rax,4), %edx
	cmpl	%edx, %r11d
	jge	.L54
.L55:
	movl	%edx, %r11d
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L43:
	addq	$1, %r8
	cmpl	%r8d, 12(%rsp)
	jg	.L46
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L75:
	cmpl	%esi, %eax
	je	.L55
	movslq	(%rcx,%r10,4), %rdx
	cmpl	%edx, %eax
	je	.L56
	movslq	%edx, %r11
	movl	(%rcx,%r11,4), %edi
	cmpl	%edi, %edx
	jne	.L77
.L57:
	movslq	(%rcx,%r11,4), %rdx
	movl	%edx, (%rcx,%r10,4)
.L56:
	movl	%edx, (%r8)
	movl	(%r9,%rdx,4), %edx
	movl	%edx, %r11d
	jmp	.L54
.L74:
	movslq	%eax, %r12
	movl	(%rcx,%r12,4), %edi
	cmpl	%edi, %eax
	je	.L53
	call	root
	movl	%eax, (%rcx,%r12,4)
.L53:
	movl	(%rcx,%r12,4), %eax
	movl	%eax, (%rcx,%rbp,4)
	jmp	.L52
.L73:
	movslq	%edx, %r13
	movl	(%rcx,%r13,4), %edi
	cmpl	%edi, %edx
	je	.L42
	call	root
	movl	%eax, (%rcx,%r13,4)
.L42:
	movl	(%rcx,%r13,4), %eax
	movl	%eax, (%rcx,%r12,4)
	jmp	.L41
.L72:
	movslq	%eax, %r13
	movl	(%rcx,%r13,4), %edi
	cmpl	%edi, %eax
	je	.L37
	call	root
	movl	%eax, (%rcx,%r13,4)
.L37:
	movl	(%rcx,%r13,4), %eax
	movl	%eax, (%rcx,%r12,4)
	jmp	.L36
.L77:
	call	root
	movl	%eax, (%rcx,%r11,4)
	jmp	.L57
.L27:
	movl	8(%rsp), %edi
	testl	%edi, %edi
	jg	.L61
.L60:
	xorl	%r11d, %r11d
	jmp	.L48
.L29:
	leaq	p(%rip), %rcx
	testl	%edx, %edx
	jg	.L59
	jmp	.L60
.L63:
	xorl	%eax, %eax
	leaq	p(%rip), %rcx
	leaq	cnt(%rip), %r9
	jmp	.L30
.L76:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 800020
cnt:
	.zero	800020
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 800020
p:
	.zero	800020
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.long	1
	.long	1
	.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>
int p[200005], cnt[200005];
int root(int n)
{
	if (p[n] != n)
		p[n] = root(p[n]);
	return p[n];
}
void uni(int a, int b)
{
	a = root(a);
	b = root(b);
	if (a != b)
	{
		p[a] = b;
		cnt[b] += cnt[a];
	}
	return;
}
int main()
{
	int n, m;
	scanf("%d %d", &n, &m);
	int i;
	int a[200005], b[200005];
	for (i = 0; i < m; i++)
	{
		scanf("%d %d", &a[i], &b[i]);
		a[i]--;
		b[i]--;
	}
	for (i = 0; i < n; i++)
	{
		p[i] = i;
		cnt[i] = 1;
	}
	for (i = 0; i < m; i++)
		uni(a[i], b[i]);
	int ans = 0;
	for (i = 0; i < n; i++)
		if (ans < cnt[root(i)])
			ans = cnt[root(i)];
	printf("%d\n", ans);
	return 0;
}
10 4
3 1
3 1
5 9
2 6
 4 10
1 1
2 1
1 2
2 1
1 2
1 3
1 4
2 3
2 4
3 4
 2 0
1 1
2 1
1 6
2 1
1 2
1 3
1 4
3 3
2 4
4 4
 10 4
6 1
3 1
5 6
2 6
 5 2
1 4
3 4
3 1
 10 4
6 1
3 1
5 9
2 6
 4 10
1 1
2 1
1 2
2 1
1 2
1 3
1 4
1 3
2 4
3 4
 4 10
1 1
2 1
1 2
2 1
1 2
1 3
1 4
1 4
2 4
3 4
 5 3
1 2
3 4
3 1
 10 4
1 1
4 1
5 9
2 6

2
 4
 1
 5
 3
 4
 4
 4
 4
 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>
int p[200005], cnt[200005];
int root(int n)
{
	if (p[n] != n)
		p[n] = root(p[n]);
	return p[n];
}
void uni(int a, int b)
{
	a = root(a);
	b = root(b);
	if (a != b)
	{
		p[a] = b;
		cnt[b] += cnt[a];
	}
	return;
}
int main()
{
	int n, m;
	scanf("%d %d", &n, &m);
	int i;
	int a[200005], b[200005];
	for (i = 0; i < m; i++)
	{
		scanf("%d %d", &a[i], &b[i]);
		a[i]--;
		b[i]--;
	}
	for (i = 0; i < n; i++)
	{
		p[i] = i;
		cnt[i] = 1;
	}
	for (i = 0; i < m; i++)
		uni(a[i], b[i]);
	int ans = 0;
	for (i = 0; i < n; i++)
		if (ans < cnt[root(i)])
			ans = cnt[root(i)];
	printf("%d\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 800020
p:
	.zero	800020
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 800020
cnt:
	.zero	800020
	.text
	.globl	root
	.type	root, @function
root:
.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	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	je	.L2
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	root
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L2:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	root, .-root
	.globl	uni
	.type	uni, @function
uni:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	root
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, %edi
	call	root
	movl	%eax, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L7
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	nop
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	uni, .-uni
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600076(%rbp), %rdx
	leaq	-1600080(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600072(%rbp)
	jmp	.L9
.L10:
	leaq	-800032(%rbp), %rdx
	movl	-1600072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-1600064(%rbp), %rcx
	movl	-1600072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	%edx, -1600064(%rbp,%rax,4)
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	%edx, -800032(%rbp,%rax,4)
	addl	$1, -1600072(%rbp)
.L9:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L10
	movl	$0, -1600072(%rbp)
	jmp	.L11
.L12:
	movl	-1600072(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-1600072(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-1600072(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -1600072(%rbp)
.L11:
	movl	-1600080(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L12
	movl	$0, -1600072(%rbp)
	jmp	.L13
.L14:
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	uni
	addl	$1, -1600072(%rbp)
.L13:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L14
	movl	$0, -1600068(%rbp)
	movl	$0, -1600072(%rbp)
	jmp	.L15
.L17:
	movl	-1600072(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -1600068(%rbp)
	jge	.L16
	movl	-1600072(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -1600068(%rbp)
.L16:
	addl	$1, -1600072(%rbp)
.L15:
	movl	-1600080(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L17
	movl	-1600068(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 800020
p:
	.zero	800020
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 800020
cnt:
	.zero	800020
	.text
	.globl	root
	.type	root, @function
root:
.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	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	je	.L2
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	root
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L2:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	root, .-root
	.globl	uni
	.type	uni, @function
uni:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	root
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, %edi
	call	root
	movl	%eax, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L7
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	nop
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	uni, .-uni
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600076(%rbp), %rdx
	leaq	-1600080(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600072(%rbp)
	jmp	.L9
.L10:
	leaq	-800032(%rbp), %rdx
	movl	-1600072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-1600064(%rbp), %rcx
	movl	-1600072(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	%edx, -1600064(%rbp,%rax,4)
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	%edx, -800032(%rbp,%rax,4)
	addl	$1, -1600072(%rbp)
.L9:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L10
	movl	$0, -1600072(%rbp)
	jmp	.L11
.L12:
	movl	-1600072(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-1600072(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-1600072(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -1600072(%rbp)
.L11:
	movl	-1600080(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L12
	movl	$0, -1600072(%rbp)
	jmp	.L13
.L14:
	movl	-1600072(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %edx
	movl	-1600072(%rbp), %eax
	cltq
	movl	-1600064(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	uni
	addl	$1, -1600072(%rbp)
.L13:
	movl	-1600076(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L14
	movl	$0, -1600068(%rbp)
	movl	$0, -1600072(%rbp)
	jmp	.L15
.L17:
	movl	-1600072(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -1600068(%rbp)
	jge	.L16
	movl	-1600072(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -1600068(%rbp)
.L16:
	addl	$1, -1600072(%rbp)
.L15:
	movl	-1600080(%rbp), %eax
	cmpl	%eax, -1600072(%rbp)
	jl	.L17
	movl	-1600068(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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:
