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>
#include<stdbool.h>
#define MAX_N 200200
int par[MAX_N], rank[MAX_N];
void init(int n){for(int i=0; i<n; i++){par[i] = i;rank[i] = 0;}}
int root(int x){return par[x]==x?x:(par[x]=root(par[x]));}
bool same(int x, int y){return root(x) == root(y);}
void unite(int x, int y){
    x = root(x);
    y = root(y);
    if(x == y) return;
    if(rank[x] < rank[y]){
        par[x] = y;
    }else{
        par[y] = x;
        if(rank[x] == rank[y])rank[x]++;
    }
}
int sz[1<<18];
int N, M, ans = 0;
int main(){
	scanf("%d%d", &N, &M);
	init(N);
	while(M--){
		int A, B;
		scanf("%d%d", &A, &B);
		A--; B--;
		unite(A, B);
	}
	for(int i=0; i<N; i++){
		sz[root(i)]++;
		if(ans < sz[root(i)])ans = sz[root(i)];
	}
	printf("%d\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	par
	.bss
	.align 32
	.type	par, @object
	.size	par, 800800
par:
	.zero	800800
	.globl	rank
	.align 32
	.type	rank, @object
	.size	rank, 800800
rank:
	.zero	800800
	.text
	.globl	init
	.type	init, @function
init:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	par(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L3
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	init, .-init
	.globl	root
	.type	root, @function
root:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	par(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	je	.L5
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	par(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	root
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	par(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	par(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L5:
	movl	-4(%rbp), %eax
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	root, .-root
	.globl	same
	.type	same, @function
same:
.LFB2:
	.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	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	root
	movl	%eax, %ebx
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	root
	cmpl	%eax, %ebx
	sete	%al
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	same, .-same
	.globl	unite
	.type	unite, @function
unite:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	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	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L13
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	par(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L10
.L13:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	par(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L10
.L14:
	nop
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	unite, .-unite
	.globl	sz
	.bss
	.align 32
	.type	sz, @object
	.size	sz, 1048576
sz:
	.zero	1048576
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.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
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	M(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	movl	%eax, %edi
	call	init
	jmp	.L16
.L17:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	unite
.L16:
	movl	M(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, M(%rip)
	testl	%eax, %eax
	jne	.L17
	movl	$0, -12(%rbp)
	jmp	.L18
.L20:
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	root
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	sz(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	ans(%rip), %eax
	cmpl	%eax, %edx
	jle	.L19
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, ans(%rip)
.L19:
	addl	$1, -12(%rbp)
.L18:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L20
	movl	ans(%rip), %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	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.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
	.globl	init
	.type	init, @function
init:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L1
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L6
	movl	%edi, %edx
	leaq	par(%rip), %rcx
	movdqa	.LC0(%rip), %xmm0
	movdqa	.LC1(%rip), %xmm2
	shrl	$2, %edx
	leaq	16(%rcx), %rsi
	movq	%rcx, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	movaps	%xmm1, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L4
	movl	%edi, %eax
	andl	$-4, %eax
	testb	$3, %dil
	je	.L5
.L3:
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %edi
	jle	.L5
	movslq	%edx, %rsi
	addl	$2, %eax
	movl	%edx, (%rcx,%rsi,4)
	cmpl	%eax, %edi
	jle	.L5
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L5:
	movl	%edi, %edi
	xorl	%esi, %esi
	leaq	0(,%rdi,4), %rdx
	leaq	rank(%rip), %rdi
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
.L6:
	xorl	%eax, %eax
	leaq	par(%rip), %rcx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	init, .-init
	.p2align 4
	.globl	root
	.type	root, @function
root:
.LFB24:
	.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	par(%rip), %rbx
	movq	%rbp, %rax
	movl	(%rbx,%rbp,4), %edx
	cmpl	%ebp, %edx
	jne	.L16
	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
.L16:
	.cfi_restore_state
	movslq	%edx, %r12
	movl	(%rbx,%r12,4), %eax
	cmpl	%eax, %edx
	je	.L11
	movslq	%eax, %r13
	movl	(%rbx,%r13,4), %edx
	cmpl	%edx, %eax
	jne	.L17
.L12:
	movl	%edx, (%rbx,%r12,4)
	movl	%edx, %eax
.L11:
	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
.L17:
	.cfi_restore_state
	movslq	%edx, %r14
	movl	(%rbx,%r14,4), %edi
	cmpl	%edi, %edx
	je	.L13
	call	root
	movl	%eax, (%rbx,%r14,4)
	movl	%eax, %edi
.L13:
	movl	%edi, (%rbx,%r13,4)
	movl	%edi, %edx
	jmp	.L12
	.cfi_endproc
.LFE24:
	.size	root, .-root
	.p2align 4
	.globl	same
	.type	same, @function
same:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	par(%rip), %rcx
	movslq	%edi, %r8
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movl	(%rcx,%r8,4), %r9d
	cmpl	%r9d, %edi
	jne	.L36
	movslq	%esi, %r8
	movl	(%rcx,%r8,4), %eax
	cmpl	%eax, %esi
	jne	.L37
.L27:
	cmpl	%r9d, %eax
	sete	%al
	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
.L36:
	.cfi_restore_state
	movslq	%r9d, %r10
	movl	(%rcx,%r10,4), %eax
	cmpl	%eax, %r9d
	je	.L20
	movslq	%eax, %r9
	movl	(%rcx,%r9,4), %edx
	cmpl	%edx, %eax
	jne	.L38
.L21:
	movl	%edx, (%rcx,%r10,4)
	movl	%edx, %eax
.L20:
	movl	%eax, (%rcx,%r8,4)
	movslq	%esi, %r8
	movl	%eax, %r9d
	movl	(%rcx,%r8,4), %eax
	cmpl	%eax, %esi
	je	.L27
.L37:
	movslq	%eax, %rsi
	movl	(%rcx,%rsi,4), %edx
	cmpl	%edx, %eax
	je	.L28
	movslq	%edx, %r10
	movl	(%rcx,%r10,4), %eax
	cmpl	%eax, %edx
	jne	.L39
.L29:
	movl	%eax, (%rcx,%rsi,4)
	movl	%eax, %edx
.L28:
	movl	%edx, (%rcx,%r8,4)
	movl	%edx, %eax
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L39:
	movslq	%eax, %r11
	movl	(%rcx,%r11,4), %edx
	cmpl	%edx, %eax
	je	.L30
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %eax
	cmpl	%eax, %edx
	jne	.L40
.L31:
	movl	%eax, (%rcx,%r11,4)
	movl	%eax, %edx
.L30:
	movl	%edx, (%rcx,%r10,4)
	movl	%edx, %eax
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L38:
	movslq	%edx, %r11
	movl	(%rcx,%r11,4), %eax
	cmpl	%eax, %edx
	je	.L22
	movslq	%eax, %rbx
	movl	(%rcx,%rbx,4), %edx
	cmpl	%edx, %eax
	jne	.L41
.L23:
	movl	%edx, (%rcx,%r11,4)
	movl	%edx, %eax
.L22:
	movl	%eax, (%rcx,%r9,4)
	movl	%eax, %edx
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	%edx, %rbp
	movl	(%rcx,%rbp,4), %eax
	cmpl	%eax, %edx
	je	.L24
	movslq	%eax, %r12
	movl	(%rcx,%r12,4), %edx
	cmpl	%edx, %eax
	je	.L25
	movslq	%edx, %r13
	movl	(%rcx,%r13,4), %edi
	cmpl	%edi, %edx
	je	.L26
	call	root
	movl	%eax, (%rcx,%r13,4)
	movl	%eax, %edi
.L26:
	movl	%edi, (%rcx,%r12,4)
	movl	%edi, %edx
.L25:
	movl	%edx, (%rcx,%rbp,4)
	movl	%edx, %eax
.L24:
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L40:
	movslq	%eax, %rbp
	movl	(%rcx,%rbp,4), %edx
	cmpl	%edx, %eax
	je	.L32
	movslq	%edx, %r12
	movl	(%rcx,%r12,4), %edi
	cmpl	%edi, %edx
	je	.L33
	movslq	%edi, %r13
	movl	(%rcx,%r13,4), %eax
	cmpl	%eax, %edi
	je	.L34
	movl	%eax, %edi
	call	root
	movl	%eax, (%rcx,%r13,4)
.L34:
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %edi
.L33:
	movl	%edi, (%rcx,%rbp,4)
	movl	%edi, %edx
.L32:
	movl	%edx, (%rcx,%rbx,4)
	movl	%edx, %eax
	jmp	.L31
	.cfi_endproc
.LFE25:
	.size	same, .-same
	.p2align 4
	.globl	unite
	.type	unite, @function
unite:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	par(%rip), %rcx
	movslq	%edi, %r9
	movl	%esi, %r8d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	(%rcx,%r9,4), %esi
	cmpl	%esi, %edi
	jne	.L68
.L43:
	movslq	%r8d, %r9
	movl	(%rcx,%r9,4), %eax
	cmpl	%eax, %r8d
	jne	.L69
.L54:
	cmpl	%esi, %eax
	je	.L42
	leaq	rank(%rip), %rdx
	movslq	%esi, %rdi
	movslq	%eax, %r9
	movl	(%rdx,%rdi,4), %r8d
	cmpl	(%rdx,%r9,4), %r8d
	jge	.L64
	movl	%eax, (%rcx,%rdi,4)
.L42:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L64:
	.cfi_restore_state
	movl	%esi, (%rcx,%r9,4)
	jne	.L42
	addl	$1, %r8d
	movl	%r8d, (%rdx,%rdi,4)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L69:
	.cfi_restore_state
	movslq	%eax, %r8
	movl	(%rcx,%r8,4), %edx
	cmpl	%edx, %eax
	je	.L55
	movslq	%edx, %r10
	movl	(%rcx,%r10,4), %eax
	cmpl	%eax, %edx
	jne	.L70
.L56:
	movl	%eax, (%rcx,%r8,4)
	movl	%eax, %edx
.L55:
	movl	%edx, (%rcx,%r9,4)
	movl	%edx, %eax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L68:
	movslq	%esi, %r10
	movl	(%rcx,%r10,4), %eax
	cmpl	%eax, %esi
	je	.L44
	movslq	%eax, %rsi
	movl	(%rcx,%rsi,4), %edx
	cmpl	%edx, %eax
	jne	.L71
.L45:
	movl	%edx, (%rcx,%r10,4)
	movl	%edx, %eax
.L44:
	movl	%eax, (%rcx,%r9,4)
	movl	%eax, %esi
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L71:
	movslq	%edx, %r11
	movl	(%rcx,%r11,4), %eax
	cmpl	%eax, %edx
	je	.L46
	movslq	%eax, %rbx
	movl	(%rcx,%rbx,4), %edx
	cmpl	%edx, %eax
	jne	.L72
.L47:
	movl	%edx, (%rcx,%r11,4)
	movl	%edx, %eax
.L46:
	movl	%eax, (%rcx,%rsi,4)
	movl	%eax, %edx
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L70:
	movslq	%eax, %r11
	movl	(%rcx,%r11,4), %edx
	cmpl	%edx, %eax
	je	.L57
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %eax
	cmpl	%eax, %edx
	jne	.L73
.L58:
	movl	%eax, (%rcx,%r11,4)
	movl	%eax, %edx
.L57:
	movl	%edx, (%rcx,%r10,4)
	movl	%edx, %eax
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L73:
	movslq	%eax, %rbp
	movl	(%rcx,%rbp,4), %edx
	cmpl	%edx, %eax
	je	.L59
	movslq	%edx, %r12
	movl	(%rcx,%r12,4), %edi
	cmpl	%edi, %edx
	je	.L60
	movslq	%edi, %r13
	movl	(%rcx,%r13,4), %eax
	cmpl	%eax, %edi
	je	.L61
	movl	%eax, %edi
	call	root
	movl	%eax, (%rcx,%r13,4)
.L61:
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %edi
.L60:
	movl	%edi, (%rcx,%rbp,4)
	movl	%edi, %edx
.L59:
	movl	%edx, (%rcx,%rbx,4)
	movl	%edx, %eax
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L72:
	movslq	%edx, %rbp
	movl	(%rcx,%rbp,4), %eax
	cmpl	%eax, %edx
	je	.L48
	movslq	%eax, %r12
	movl	(%rcx,%r12,4), %edx
	cmpl	%edx, %eax
	je	.L49
	movslq	%edx, %r13
	movl	(%rcx,%r13,4), %eax
	cmpl	%eax, %edx
	je	.L50
	movslq	%eax, %r14
	movl	(%rcx,%r14,4), %edx
	cmpl	%edx, %eax
	je	.L51
	movslq	%edx, %r15
	movl	(%rcx,%r15,4), %eax
	cmpl	%eax, %edx
	je	.L66
	movslq	%eax, %rdx
	movl	(%rcx,%rdx,4), %edi
	movq	%rdx, 8(%rsp)
	cmpl	%edi, %eax
	je	.L53
	call	root
	movq	8(%rsp), %rdx
	movl	%eax, %edi
	movl	%eax, (%rcx,%rdx,4)
.L53:
	movl	%edi, (%rcx,%r15,4)
	movl	%edi, %edx
.L52:
	movl	%edx, (%rcx,%r14,4)
.L51:
	movl	%edx, (%rcx,%r13,4)
	movl	%edx, %eax
.L50:
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %edx
.L49:
	movl	%edx, (%rcx,%rbp,4)
	movl	%edx, %eax
.L48:
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edx
	jmp	.L47
.L66:
	movl	%eax, %edx
	jmp	.L52
	.cfi_endproc
.LFE26:
	.size	unite, .-unite
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	M(%rip), %rdx
	leaq	N(%rip), %rsi
	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	.LC2(%rip), %rbx
	movq	%rbx, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %edx
	testl	%edx, %edx
	jle	.L81
	leal	-1(%rdx), %eax
	cmpl	$2, %eax
	jbe	.L116
	movl	%edx, %ecx
	leaq	par(%rip), %rsi
	movdqa	.LC0(%rip), %xmm0
	movdqa	.LC1(%rip), %xmm2
	shrl	$2, %ecx
	leaq	16(%rsi), %rdi
	movq	%rsi, %rax
	subl	$1, %ecx
	salq	$4, %rcx
	addq	%rdi, %rcx
	.p2align 4,,10
	.p2align 3
.L79:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	movaps	%xmm1, -16(%rax)
	cmpq	%rcx, %rax
	jne	.L79
	movl	%edx, %eax
	andl	$-4, %eax
	testb	$3, %dl
	je	.L80
.L78:
	movslq	%eax, %rcx
	movl	%eax, (%rsi,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %edx
	jle	.L80
	movslq	%ecx, %rdi
	addl	$2, %eax
	movl	%ecx, (%rsi,%rdi,4)
	cmpl	%eax, %edx
	jle	.L80
	movslq	%eax, %rcx
	movl	%eax, (%rsi,%rcx,4)
.L80:
	salq	$2, %rdx
	xorl	%esi, %esi
	leaq	rank(%rip), %rdi
	call	memset@PLT
.L81:
	movl	M(%rip), %eax
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leal	-1(%rax), %edx
	movl	%edx, M(%rip)
	testl	%eax, %eax
	je	.L77
	.p2align 4,,10
	.p2align 3
.L76:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	leal	-1(%rax), %edi
	movl	20(%rsp), %eax
	movl	%edi, 16(%rsp)
	leal	-1(%rax), %esi
	movl	%esi, 20(%rsp)
	call	unite
	movl	M(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, M(%rip)
	testl	%eax, %eax
	jne	.L76
.L77:
	movl	N(%rip), %eax
	leaq	par(%rip), %rsi
	xorl	%ecx, %ecx
	leaq	sz(%rip), %r9
	movq	%rsi, %r8
	testl	%eax, %eax
	jle	.L131
	.p2align 4,,10
	.p2align 3
.L112:
	movslq	(%r8), %rdx
	movl	%ecx, %ebx
	cmpl	%ecx, %edx
	je	.L84
	movslq	%edx, %r11
	movl	(%rsi,%r11,4), %eax
	cmpl	%eax, %edx
	je	.L85
	movslq	%eax, %r10
	movl	(%rsi,%r10,4), %edx
	cmpl	%edx, %eax
	je	.L86
	movslq	%edx, %rbp
	movl	(%rsi,%rbp,4), %eax
	cmpl	%eax, %edx
	jne	.L132
.L87:
	movl	%eax, (%rsi,%r10,4)
	movslq	%eax, %r10
.L86:
	movl	%eax, (%rsi,%r11,4)
	addl	$1, (%r9,%r10,4)
	movl	%eax, (%r8)
	cmpl	%eax, %ebx
	je	.L93
.L114:
	movl	(%rsi,%r10,4), %edx
	cmpl	%eax, %edx
	je	.L94
	movslq	%edx, %rbp
	movslq	(%rsi,%rbp,4), %r11
	movq	%r11, %rax
	cmpl	%r11d, %edx
	je	.L95
	movl	(%rsi,%r11,4), %edx
	cmpl	%edx, %r11d
	jne	.L133
.L96:
	movl	%eax, (%rsi,%rbp,4)
.L95:
	movl	(%r9,%r11,4), %edx
	movl	ans(%rip), %r11d
	movl	%eax, (%rsi,%r10,4)
	movl	%eax, (%r8)
	cmpl	%r11d, %edx
	jle	.L102
	cmpl	%eax, %ebx
	je	.L134
	movslq	%eax, %r10
.L103:
	movl	(%rsi,%r10,4), %edi
	cmpl	%edi, %eax
	je	.L105
	movslq	%edi, %r11
	movl	(%rsi,%r11,4), %eax
	cmpl	%eax, %edi
	jne	.L135
.L106:
	movl	%edi, (%rsi,%r10,4)
	movl	(%r9,%r11,4), %edx
.L105:
	movl	%edi, (%r8)
.L104:
	movl	%edx, ans(%rip)
	movl	%edx, %r11d
.L102:
	addq	$1, %rcx
	addq	$4, %r8
	cmpl	%ecx, N(%rip)
	jg	.L112
.L113:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L136
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L84:
	.cfi_restore_state
	addl	$1, (%r9,%rdx,4)
.L93:
	movl	(%r9,%rcx,4), %edx
	movl	ans(%rip), %r11d
	cmpl	%r11d, %edx
	jg	.L104
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L94:
	movl	(%r9,%r10,4), %edx
	movl	ans(%rip), %r11d
	movl	%eax, (%r8)
	cmpl	%edx, %r11d
	jl	.L103
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L85:
	addl	$1, (%r9,%r11,4)
	movq	%r11, %r10
	jmp	.L114
.L135:
	movslq	%eax, %rbx
	movl	(%rsi,%rbx,4), %edi
	cmpl	%edi, %eax
	je	.L107
	movslq	%edi, %rbp
	movl	(%rsi,%rbp,4), %eax
	cmpl	%eax, %edi
	jne	.L137
.L108:
	movl	%eax, (%rsi,%rbx,4)
	movl	%eax, %edi
.L107:
	movl	%edi, (%rsi,%r11,4)
	movslq	%edi, %r11
	jmp	.L106
.L133:
	movslq	%edx, %r12
	movl	(%rsi,%r12,4), %eax
	cmpl	%eax, %edx
	je	.L97
	movslq	%eax, %r13
	movl	(%rsi,%r13,4), %edx
	cmpl	%edx, %eax
	jne	.L138
.L98:
	movl	%edx, (%rsi,%r12,4)
	movl	%edx, %eax
.L97:
	movl	%eax, (%rsi,%r11,4)
	movslq	%eax, %r11
	jmp	.L96
.L132:
	movslq	%eax, %r12
	movl	(%rsi,%r12,4), %edx
	cmpl	%edx, %eax
	je	.L88
	movslq	%edx, %r13
	movl	(%rsi,%r13,4), %eax
	cmpl	%eax, %edx
	jne	.L139
.L89:
	movl	%eax, (%rsi,%r12,4)
	movl	%eax, %edx
.L88:
	movl	%edx, (%rsi,%rbp,4)
	movl	%edx, %eax
	jmp	.L87
.L137:
	movslq	%eax, %r12
	movl	(%rsi,%r12,4), %edx
	cmpl	%edx, %eax
	je	.L109
	movslq	%edx, %r13
	movl	(%rsi,%r13,4), %eax
	cmpl	%eax, %edx
	jne	.L140
.L110:
	movl	%eax, (%rsi,%r12,4)
	movl	%eax, %edx
.L109:
	movl	%edx, (%rsi,%rbp,4)
	movl	%edx, %eax
	jmp	.L108
.L139:
	movslq	%eax, %r14
	movl	(%rsi,%r14,4), %edx
	cmpl	%edx, %eax
	je	.L90
	movslq	%edx, %r15
	movl	(%rsi,%r15,4), %eax
	cmpl	%eax, %edx
	jne	.L141
.L91:
	movl	%eax, (%rsi,%r14,4)
	movl	%eax, %edx
.L90:
	movl	%edx, (%rsi,%r13,4)
	movl	%edx, %eax
	jmp	.L89
.L138:
	movslq	%edx, %r14
	movl	(%rsi,%r14,4), %eax
	cmpl	%eax, %edx
	je	.L99
	movslq	%eax, %r15
	movl	(%rsi,%r15,4), %edi
	cmpl	%edi, %eax
	jne	.L142
.L100:
	movl	%edi, (%rsi,%r14,4)
	movl	%edi, %eax
.L99:
	movl	%eax, (%rsi,%r13,4)
	movl	%eax, %edx
	jmp	.L98
.L131:
	movl	ans(%rip), %r11d
	jmp	.L113
.L116:
	xorl	%eax, %eax
	leaq	par(%rip), %rsi
	jmp	.L78
.L140:
	movslq	%eax, %r14
	movl	(%rsi,%r14,4), %edi
	cmpl	%edi, %eax
	je	.L111
	call	root
	movl	%eax, (%rsi,%r14,4)
	movl	%eax, %edi
.L111:
	movl	%edi, (%rsi,%r13,4)
	movl	%edi, %eax
	jmp	.L110
.L142:
	movslq	%edi, %rdx
	movl	(%rsi,%rdx,4), %eax
	movq	%rdx, 8(%rsp)
	cmpl	%eax, %edi
	je	.L101
	movl	%eax, %edi
	call	root
	movq	8(%rsp), %rdx
	movl	%eax, (%rsi,%rdx,4)
.L101:
	movl	%eax, (%rsi,%r15,4)
	movl	%eax, %edi
	jmp	.L100
.L141:
	movslq	%eax, %rdx
	movl	(%rsi,%rdx,4), %edi
	movq	%rdx, 8(%rsp)
	cmpl	%edi, %eax
	je	.L92
	call	root
	movq	8(%rsp), %rdx
	movl	%eax, %edi
	movl	%eax, (%rsi,%rdx,4)
.L92:
	movl	%edi, (%rsi,%r15,4)
	movl	%edi, %eax
	jmp	.L91
.L134:
	movl	(%r9,%rcx,4), %edx
	jmp	.L104
.L136:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE27:
	.size	main, .-main
	.globl	ans
	.bss
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	sz
	.align 32
	.type	sz, @object
	.size	sz, 1048576
sz:
	.zero	1048576
	.globl	rank
	.align 32
	.type	rank, @object
	.size	rank, 800800
rank:
	.zero	800800
	.globl	par
	.align 32
	.type	par, @object
	.size	par, 800800
par:
	.zero	800800
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.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	init
	.type	init, @function
init:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L1
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L6
	movl	%edi, %edx
	leaq	par(%rip), %rcx
	movdqa	.LC0(%rip), %xmm0
	movdqa	.LC1(%rip), %xmm2
	shrl	$2, %edx
	leaq	16(%rcx), %rsi
	movq	%rcx, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	movaps	%xmm1, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L4
	movl	%edi, %eax
	andl	$-4, %eax
	testb	$3, %dil
	je	.L5
.L3:
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %edi
	jle	.L5
	movslq	%edx, %rsi
	addl	$2, %eax
	movl	%edx, (%rcx,%rsi,4)
	cmpl	%eax, %edi
	jle	.L5
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L5:
	movl	%edi, %edi
	xorl	%esi, %esi
	leaq	0(,%rdi,4), %rdx
	leaq	rank(%rip), %rdi
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
.L6:
	xorl	%eax, %eax
	leaq	par(%rip), %rcx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	init, .-init
	.p2align 4
	.globl	root
	.type	root, @function
root:
.LFB24:
	.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	par(%rip), %rbx
	movq	%rbp, %rax
	movl	(%rbx,%rbp,4), %edx
	cmpl	%ebp, %edx
	jne	.L16
	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
.L16:
	.cfi_restore_state
	movslq	%edx, %r12
	movl	(%rbx,%r12,4), %eax
	cmpl	%eax, %edx
	je	.L11
	movslq	%eax, %r13
	movl	(%rbx,%r13,4), %edx
	cmpl	%edx, %eax
	jne	.L17
.L12:
	movl	%edx, (%rbx,%r12,4)
	movl	%edx, %eax
.L11:
	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
.L17:
	.cfi_restore_state
	movslq	%edx, %r14
	movl	(%rbx,%r14,4), %edi
	cmpl	%edi, %edx
	je	.L13
	call	root
	movl	%eax, (%rbx,%r14,4)
	movl	%eax, %edi
.L13:
	movl	%edi, (%rbx,%r13,4)
	movl	%edi, %edx
	jmp	.L12
	.cfi_endproc
.LFE24:
	.size	root, .-root
	.p2align 4
	.globl	same
	.type	same, @function
same:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	par(%rip), %rcx
	movslq	%edi, %r8
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movl	(%rcx,%r8,4), %r9d
	cmpl	%r9d, %edi
	jne	.L36
	movslq	%esi, %r8
	movl	(%rcx,%r8,4), %eax
	cmpl	%eax, %esi
	jne	.L37
.L27:
	cmpl	%r9d, %eax
	sete	%al
	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
.L36:
	.cfi_restore_state
	movslq	%r9d, %r10
	movl	(%rcx,%r10,4), %eax
	cmpl	%eax, %r9d
	je	.L20
	movslq	%eax, %r9
	movl	(%rcx,%r9,4), %edx
	cmpl	%edx, %eax
	jne	.L38
.L21:
	movl	%edx, (%rcx,%r10,4)
	movl	%edx, %eax
.L20:
	movl	%eax, (%rcx,%r8,4)
	movslq	%esi, %r8
	movl	%eax, %r9d
	movl	(%rcx,%r8,4), %eax
	cmpl	%eax, %esi
	je	.L27
.L37:
	movslq	%eax, %rsi
	movl	(%rcx,%rsi,4), %edx
	cmpl	%edx, %eax
	je	.L28
	movslq	%edx, %r10
	movl	(%rcx,%r10,4), %eax
	cmpl	%eax, %edx
	jne	.L39
.L29:
	movl	%eax, (%rcx,%rsi,4)
	movl	%eax, %edx
.L28:
	movl	%edx, (%rcx,%r8,4)
	movl	%edx, %eax
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L39:
	movslq	%eax, %r11
	movl	(%rcx,%r11,4), %edx
	cmpl	%edx, %eax
	je	.L30
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %eax
	cmpl	%eax, %edx
	jne	.L40
.L31:
	movl	%eax, (%rcx,%r11,4)
	movl	%eax, %edx
.L30:
	movl	%edx, (%rcx,%r10,4)
	movl	%edx, %eax
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L38:
	movslq	%edx, %r11
	movl	(%rcx,%r11,4), %eax
	cmpl	%eax, %edx
	je	.L22
	movslq	%eax, %rbx
	movl	(%rcx,%rbx,4), %edx
	cmpl	%edx, %eax
	jne	.L41
.L23:
	movl	%edx, (%rcx,%r11,4)
	movl	%edx, %eax
.L22:
	movl	%eax, (%rcx,%r9,4)
	movl	%eax, %edx
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	%edx, %rbp
	movl	(%rcx,%rbp,4), %eax
	cmpl	%eax, %edx
	je	.L24
	movslq	%eax, %r12
	movl	(%rcx,%r12,4), %edx
	cmpl	%edx, %eax
	je	.L25
	movslq	%edx, %r13
	movl	(%rcx,%r13,4), %edi
	cmpl	%edi, %edx
	je	.L26
	call	root
	movl	%eax, (%rcx,%r13,4)
	movl	%eax, %edi
.L26:
	movl	%edi, (%rcx,%r12,4)
	movl	%edi, %edx
.L25:
	movl	%edx, (%rcx,%rbp,4)
	movl	%edx, %eax
.L24:
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L40:
	movslq	%eax, %rbp
	movl	(%rcx,%rbp,4), %edx
	cmpl	%edx, %eax
	je	.L32
	movslq	%edx, %r12
	movl	(%rcx,%r12,4), %edi
	cmpl	%edi, %edx
	je	.L33
	movslq	%edi, %r13
	movl	(%rcx,%r13,4), %eax
	cmpl	%eax, %edi
	je	.L34
	movl	%eax, %edi
	call	root
	movl	%eax, (%rcx,%r13,4)
.L34:
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %edi
.L33:
	movl	%edi, (%rcx,%rbp,4)
	movl	%edi, %edx
.L32:
	movl	%edx, (%rcx,%rbx,4)
	movl	%edx, %eax
	jmp	.L31
	.cfi_endproc
.LFE25:
	.size	same, .-same
	.p2align 4
	.globl	unite
	.type	unite, @function
unite:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	par(%rip), %rcx
	movslq	%edi, %r9
	movl	%esi, %r8d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	(%rcx,%r9,4), %esi
	cmpl	%esi, %edi
	jne	.L68
.L43:
	movslq	%r8d, %r9
	movl	(%rcx,%r9,4), %eax
	cmpl	%eax, %r8d
	jne	.L69
.L54:
	cmpl	%esi, %eax
	je	.L42
	leaq	rank(%rip), %rdx
	movslq	%esi, %rdi
	movslq	%eax, %r9
	movl	(%rdx,%rdi,4), %r8d
	cmpl	(%rdx,%r9,4), %r8d
	jge	.L64
	movl	%eax, (%rcx,%rdi,4)
.L42:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L64:
	.cfi_restore_state
	movl	%esi, (%rcx,%r9,4)
	jne	.L42
	addl	$1, %r8d
	movl	%r8d, (%rdx,%rdi,4)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L69:
	.cfi_restore_state
	movslq	%eax, %r8
	movl	(%rcx,%r8,4), %edx
	cmpl	%edx, %eax
	je	.L55
	movslq	%edx, %r10
	movl	(%rcx,%r10,4), %eax
	cmpl	%eax, %edx
	jne	.L70
.L56:
	movl	%eax, (%rcx,%r8,4)
	movl	%eax, %edx
.L55:
	movl	%edx, (%rcx,%r9,4)
	movl	%edx, %eax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L68:
	movslq	%esi, %r10
	movl	(%rcx,%r10,4), %eax
	cmpl	%eax, %esi
	je	.L44
	movslq	%eax, %rsi
	movl	(%rcx,%rsi,4), %edx
	cmpl	%edx, %eax
	jne	.L71
.L45:
	movl	%edx, (%rcx,%r10,4)
	movl	%edx, %eax
.L44:
	movl	%eax, (%rcx,%r9,4)
	movl	%eax, %esi
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L71:
	movslq	%edx, %r11
	movl	(%rcx,%r11,4), %eax
	cmpl	%eax, %edx
	je	.L46
	movslq	%eax, %rbx
	movl	(%rcx,%rbx,4), %edx
	cmpl	%edx, %eax
	jne	.L72
.L47:
	movl	%edx, (%rcx,%r11,4)
	movl	%edx, %eax
.L46:
	movl	%eax, (%rcx,%rsi,4)
	movl	%eax, %edx
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L70:
	movslq	%eax, %r11
	movl	(%rcx,%r11,4), %edx
	cmpl	%edx, %eax
	je	.L57
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %eax
	cmpl	%eax, %edx
	jne	.L73
.L58:
	movl	%eax, (%rcx,%r11,4)
	movl	%eax, %edx
.L57:
	movl	%edx, (%rcx,%r10,4)
	movl	%edx, %eax
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L73:
	movslq	%eax, %rbp
	movl	(%rcx,%rbp,4), %edx
	cmpl	%edx, %eax
	je	.L59
	movslq	%edx, %r12
	movl	(%rcx,%r12,4), %edi
	cmpl	%edi, %edx
	je	.L60
	movslq	%edi, %r13
	movl	(%rcx,%r13,4), %eax
	cmpl	%eax, %edi
	je	.L61
	movl	%eax, %edi
	call	root
	movl	%eax, (%rcx,%r13,4)
.L61:
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %edi
.L60:
	movl	%edi, (%rcx,%rbp,4)
	movl	%edi, %edx
.L59:
	movl	%edx, (%rcx,%rbx,4)
	movl	%edx, %eax
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L72:
	movslq	%edx, %rbp
	movl	(%rcx,%rbp,4), %eax
	cmpl	%eax, %edx
	je	.L48
	movslq	%eax, %r12
	movl	(%rcx,%r12,4), %edx
	cmpl	%edx, %eax
	je	.L49
	movslq	%edx, %r13
	movl	(%rcx,%r13,4), %eax
	cmpl	%eax, %edx
	je	.L50
	movslq	%eax, %r14
	movl	(%rcx,%r14,4), %edx
	cmpl	%edx, %eax
	je	.L51
	movslq	%edx, %r15
	movl	(%rcx,%r15,4), %eax
	cmpl	%eax, %edx
	je	.L66
	movslq	%eax, %rdx
	movl	(%rcx,%rdx,4), %edi
	movq	%rdx, 8(%rsp)
	cmpl	%edi, %eax
	je	.L53
	call	root
	movq	8(%rsp), %rdx
	movl	%eax, %edi
	movl	%eax, (%rcx,%rdx,4)
.L53:
	movl	%edi, (%rcx,%r15,4)
	movl	%edi, %edx
.L52:
	movl	%edx, (%rcx,%r14,4)
.L51:
	movl	%edx, (%rcx,%r13,4)
	movl	%edx, %eax
.L50:
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %edx
.L49:
	movl	%edx, (%rcx,%rbp,4)
	movl	%edx, %eax
.L48:
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edx
	jmp	.L47
.L66:
	movl	%eax, %edx
	jmp	.L52
	.cfi_endproc
.LFE26:
	.size	unite, .-unite
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	M(%rip), %rdx
	leaq	N(%rip), %rsi
	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	.LC2(%rip), %rbx
	movq	%rbx, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %edx
	testl	%edx, %edx
	jle	.L81
	leal	-1(%rdx), %eax
	cmpl	$2, %eax
	jbe	.L116
	movl	%edx, %ecx
	leaq	par(%rip), %rsi
	movdqa	.LC0(%rip), %xmm0
	movdqa	.LC1(%rip), %xmm2
	shrl	$2, %ecx
	leaq	16(%rsi), %rdi
	movq	%rsi, %rax
	subl	$1, %ecx
	salq	$4, %rcx
	addq	%rdi, %rcx
	.p2align 4,,10
	.p2align 3
.L79:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	movaps	%xmm1, -16(%rax)
	cmpq	%rcx, %rax
	jne	.L79
	movl	%edx, %eax
	andl	$-4, %eax
	testb	$3, %dl
	je	.L80
.L78:
	movslq	%eax, %rcx
	movl	%eax, (%rsi,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %edx
	jle	.L80
	movslq	%ecx, %rdi
	addl	$2, %eax
	movl	%ecx, (%rsi,%rdi,4)
	cmpl	%eax, %edx
	jle	.L80
	movslq	%eax, %rcx
	movl	%eax, (%rsi,%rcx,4)
.L80:
	salq	$2, %rdx
	xorl	%esi, %esi
	leaq	rank(%rip), %rdi
	call	memset@PLT
.L81:
	movl	M(%rip), %eax
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leal	-1(%rax), %edx
	movl	%edx, M(%rip)
	testl	%eax, %eax
	je	.L77
	.p2align 4,,10
	.p2align 3
.L76:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	leal	-1(%rax), %edi
	movl	20(%rsp), %eax
	movl	%edi, 16(%rsp)
	leal	-1(%rax), %esi
	movl	%esi, 20(%rsp)
	call	unite
	movl	M(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, M(%rip)
	testl	%eax, %eax
	jne	.L76
.L77:
	movl	N(%rip), %eax
	leaq	par(%rip), %rsi
	xorl	%ecx, %ecx
	leaq	sz(%rip), %r9
	movq	%rsi, %r8
	testl	%eax, %eax
	jle	.L131
	.p2align 4,,10
	.p2align 3
.L112:
	movslq	(%r8), %rdx
	movl	%ecx, %ebx
	cmpl	%ecx, %edx
	je	.L84
	movslq	%edx, %r11
	movl	(%rsi,%r11,4), %eax
	cmpl	%eax, %edx
	je	.L85
	movslq	%eax, %r10
	movl	(%rsi,%r10,4), %edx
	cmpl	%edx, %eax
	je	.L86
	movslq	%edx, %rbp
	movl	(%rsi,%rbp,4), %eax
	cmpl	%eax, %edx
	jne	.L132
.L87:
	movl	%eax, (%rsi,%r10,4)
	movslq	%eax, %r10
.L86:
	movl	%eax, (%rsi,%r11,4)
	addl	$1, (%r9,%r10,4)
	movl	%eax, (%r8)
	cmpl	%eax, %ebx
	je	.L93
.L114:
	movl	(%rsi,%r10,4), %edx
	cmpl	%eax, %edx
	je	.L94
	movslq	%edx, %rbp
	movslq	(%rsi,%rbp,4), %r11
	movq	%r11, %rax
	cmpl	%r11d, %edx
	je	.L95
	movl	(%rsi,%r11,4), %edx
	cmpl	%edx, %r11d
	jne	.L133
.L96:
	movl	%eax, (%rsi,%rbp,4)
.L95:
	movl	(%r9,%r11,4), %edx
	movl	ans(%rip), %r11d
	movl	%eax, (%rsi,%r10,4)
	movl	%eax, (%r8)
	cmpl	%r11d, %edx
	jle	.L102
	cmpl	%eax, %ebx
	je	.L134
	movslq	%eax, %r10
.L103:
	movl	(%rsi,%r10,4), %edi
	cmpl	%edi, %eax
	je	.L105
	movslq	%edi, %r11
	movl	(%rsi,%r11,4), %eax
	cmpl	%eax, %edi
	jne	.L135
.L106:
	movl	%edi, (%rsi,%r10,4)
	movl	(%r9,%r11,4), %edx
.L105:
	movl	%edi, (%r8)
.L104:
	movl	%edx, ans(%rip)
	movl	%edx, %r11d
.L102:
	addq	$1, %rcx
	addq	$4, %r8
	cmpl	%ecx, N(%rip)
	jg	.L112
.L113:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L136
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L84:
	.cfi_restore_state
	addl	$1, (%r9,%rdx,4)
.L93:
	movl	(%r9,%rcx,4), %edx
	movl	ans(%rip), %r11d
	cmpl	%r11d, %edx
	jg	.L104
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L94:
	movl	(%r9,%r10,4), %edx
	movl	ans(%rip), %r11d
	movl	%eax, (%r8)
	cmpl	%edx, %r11d
	jl	.L103
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L85:
	addl	$1, (%r9,%r11,4)
	movq	%r11, %r10
	jmp	.L114
.L135:
	movslq	%eax, %rbx
	movl	(%rsi,%rbx,4), %edi
	cmpl	%edi, %eax
	je	.L107
	movslq	%edi, %rbp
	movl	(%rsi,%rbp,4), %eax
	cmpl	%eax, %edi
	jne	.L137
.L108:
	movl	%eax, (%rsi,%rbx,4)
	movl	%eax, %edi
.L107:
	movl	%edi, (%rsi,%r11,4)
	movslq	%edi, %r11
	jmp	.L106
.L133:
	movslq	%edx, %r12
	movl	(%rsi,%r12,4), %eax
	cmpl	%eax, %edx
	je	.L97
	movslq	%eax, %r13
	movl	(%rsi,%r13,4), %edx
	cmpl	%edx, %eax
	jne	.L138
.L98:
	movl	%edx, (%rsi,%r12,4)
	movl	%edx, %eax
.L97:
	movl	%eax, (%rsi,%r11,4)
	movslq	%eax, %r11
	jmp	.L96
.L132:
	movslq	%eax, %r12
	movl	(%rsi,%r12,4), %edx
	cmpl	%edx, %eax
	je	.L88
	movslq	%edx, %r13
	movl	(%rsi,%r13,4), %eax
	cmpl	%eax, %edx
	jne	.L139
.L89:
	movl	%eax, (%rsi,%r12,4)
	movl	%eax, %edx
.L88:
	movl	%edx, (%rsi,%rbp,4)
	movl	%edx, %eax
	jmp	.L87
.L137:
	movslq	%eax, %r12
	movl	(%rsi,%r12,4), %edx
	cmpl	%edx, %eax
	je	.L109
	movslq	%edx, %r13
	movl	(%rsi,%r13,4), %eax
	cmpl	%eax, %edx
	jne	.L140
.L110:
	movl	%eax, (%rsi,%r12,4)
	movl	%eax, %edx
.L109:
	movl	%edx, (%rsi,%rbp,4)
	movl	%edx, %eax
	jmp	.L108
.L139:
	movslq	%eax, %r14
	movl	(%rsi,%r14,4), %edx
	cmpl	%edx, %eax
	je	.L90
	movslq	%edx, %r15
	movl	(%rsi,%r15,4), %eax
	cmpl	%eax, %edx
	jne	.L141
.L91:
	movl	%eax, (%rsi,%r14,4)
	movl	%eax, %edx
.L90:
	movl	%edx, (%rsi,%r13,4)
	movl	%edx, %eax
	jmp	.L89
.L138:
	movslq	%edx, %r14
	movl	(%rsi,%r14,4), %eax
	cmpl	%eax, %edx
	je	.L99
	movslq	%eax, %r15
	movl	(%rsi,%r15,4), %edi
	cmpl	%edi, %eax
	jne	.L142
.L100:
	movl	%edi, (%rsi,%r14,4)
	movl	%edi, %eax
.L99:
	movl	%eax, (%rsi,%r13,4)
	movl	%eax, %edx
	jmp	.L98
.L131:
	movl	ans(%rip), %r11d
	jmp	.L113
.L116:
	xorl	%eax, %eax
	leaq	par(%rip), %rsi
	jmp	.L78
.L140:
	movslq	%eax, %r14
	movl	(%rsi,%r14,4), %edi
	cmpl	%edi, %eax
	je	.L111
	call	root
	movl	%eax, (%rsi,%r14,4)
	movl	%eax, %edi
.L111:
	movl	%edi, (%rsi,%r13,4)
	movl	%edi, %eax
	jmp	.L110
.L142:
	movslq	%edi, %rdx
	movl	(%rsi,%rdx,4), %eax
	movq	%rdx, 8(%rsp)
	cmpl	%eax, %edi
	je	.L101
	movl	%eax, %edi
	call	root
	movq	8(%rsp), %rdx
	movl	%eax, (%rsi,%rdx,4)
.L101:
	movl	%eax, (%rsi,%r15,4)
	movl	%eax, %edi
	jmp	.L100
.L141:
	movslq	%eax, %rdx
	movl	(%rsi,%rdx,4), %edi
	movq	%rdx, 8(%rsp)
	cmpl	%edi, %eax
	je	.L92
	call	root
	movq	8(%rsp), %rdx
	movl	%eax, %edi
	movl	%eax, (%rsi,%rdx,4)
.L92:
	movl	%edi, (%rsi,%r15,4)
	movl	%edi, %eax
	jmp	.L91
.L134:
	movl	(%r9,%rcx,4), %edx
	jmp	.L104
.L136:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE27:
	.size	main, .-main
	.globl	ans
	.bss
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	sz
	.align 32
	.type	sz, @object
	.size	sz, 1048576
sz:
	.zero	1048576
	.globl	rank
	.align 32
	.type	rank, @object
	.size	rank, 800800
rank:
	.zero	800800
	.globl	par
	.align 32
	.type	par, @object
	.size	par, 800800
par:
	.zero	800800
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.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>
#include<stdbool.h>
#define MAX_N 200200
int par[MAX_N], rank[MAX_N];
void init(int n){for(int i=0; i<n; i++){par[i] = i;rank[i] = 0;}}
int root(int x){return par[x]==x?x:(par[x]=root(par[x]));}
bool same(int x, int y){return root(x) == root(y);}
void unite(int x, int y){
    x = root(x);
    y = root(y);
    if(x == y) return;
    if(rank[x] < rank[y]){
        par[x] = y;
    }else{
        par[y] = x;
        if(rank[x] == rank[y])rank[x]++;
    }
}
int sz[1<<18];
int N, M, ans = 0;
int main(){
	scanf("%d%d", &N, &M);
	init(N);
	while(M--){
		int A, B;
		scanf("%d%d", &A, &B);
		A--; B--;
		unite(A, B);
	}
	for(int i=0; i<N; i++){
		sz[root(i)]++;
		if(ans < sz[root(i)])ans = sz[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>
#include<stdbool.h>
#define MAX_N 200200
int par[MAX_N], rank[MAX_N];
void init(int n){for(int i=0; i<n; i++){par[i] = i;rank[i] = 0;}}
int root(int x){return par[x]==x?x:(par[x]=root(par[x]));}
bool same(int x, int y){return root(x) == root(y);}
void unite(int x, int y){
    x = root(x);
    y = root(y);
    if(x == y) return;
    if(rank[x] < rank[y]){
        par[x] = y;
    }else{
        par[y] = x;
        if(rank[x] == rank[y])rank[x]++;
    }
}
int sz[1<<18];
int N, M, ans = 0;
int main(){
	scanf("%d%d", &N, &M);
	init(N);
	while(M--){
		int A, B;
		scanf("%d%d", &A, &B);
		A--; B--;
		unite(A, B);
	}
	for(int i=0; i<N; i++){
		sz[root(i)]++;
		if(ans < sz[root(i)])ans = sz[root(i)];
	}
	printf("%d\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	par
	.bss
	.align 32
	.type	par, @object
	.size	par, 800800
par:
	.zero	800800
	.globl	rank
	.align 32
	.type	rank, @object
	.size	rank, 800800
rank:
	.zero	800800
	.text
	.globl	init
	.type	init, @function
init:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	par(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L3
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	init, .-init
	.globl	root
	.type	root, @function
root:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	par(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	je	.L5
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	par(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	root
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	par(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	par(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L5:
	movl	-4(%rbp), %eax
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	root, .-root
	.globl	same
	.type	same, @function
same:
.LFB2:
	.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	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	root
	movl	%eax, %ebx
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	root
	cmpl	%eax, %ebx
	sete	%al
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	same, .-same
	.globl	unite
	.type	unite, @function
unite:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	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	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L13
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	par(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L10
.L13:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	par(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L10
.L14:
	nop
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	unite, .-unite
	.globl	sz
	.bss
	.align 32
	.type	sz, @object
	.size	sz, 1048576
sz:
	.zero	1048576
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.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
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	M(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	movl	%eax, %edi
	call	init
	jmp	.L16
.L17:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	unite
.L16:
	movl	M(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, M(%rip)
	testl	%eax, %eax
	jne	.L17
	movl	$0, -12(%rbp)
	jmp	.L18
.L20:
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	root
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	sz(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	ans(%rip), %eax
	cmpl	%eax, %edx
	jle	.L19
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, ans(%rip)
.L19:
	addl	$1, -12(%rbp)
.L18:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L20
	movl	ans(%rip), %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	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.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
	.globl	par
	.bss
	.align 32
	.type	par, @object
	.size	par, 800800
par:
	.zero	800800
	.globl	rank
	.align 32
	.type	rank, @object
	.size	rank, 800800
rank:
	.zero	800800
	.text
	.globl	init
	.type	init, @function
init:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	par(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L3
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	init, .-init
	.globl	root
	.type	root, @function
root:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	par(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	je	.L5
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	par(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	root
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	par(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	par(%rip), %rax
	movl	(%rdx,%rax), %eax
	jmp	.L7
.L5:
	movl	-4(%rbp), %eax
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	root, .-root
	.globl	same
	.type	same, @function
same:
.LFB2:
	.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	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	root
	movl	%eax, %ebx
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	root
	cmpl	%eax, %ebx
	sete	%al
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	same, .-same
	.globl	unite
	.type	unite, @function
unite:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	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	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L13
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	par(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L10
.L13:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	par(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L10
.L14:
	nop
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	unite, .-unite
	.globl	sz
	.bss
	.align 32
	.type	sz, @object
	.size	sz, 1048576
sz:
	.zero	1048576
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.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
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	M(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	movl	%eax, %edi
	call	init
	jmp	.L16
.L17:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	unite
.L16:
	movl	M(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, M(%rip)
	testl	%eax, %eax
	jne	.L17
	movl	$0, -12(%rbp)
	jmp	.L18
.L20:
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	root
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	sz(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	ans(%rip), %eax
	cmpl	%eax, %edx
	jle	.L19
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	root
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, ans(%rip)
.L19:
	addl	$1, -12(%rbp)
.L18:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L20
	movl	ans(%rip), %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	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.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:
