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

```c
#include <stdio.h>
#define NUM 100000
int pare[NUM];
int rank[NUM];
int size[NUM];


void init(int n){
	for(int i=0;i<n;i++){
		pare[i]=i;
		rank[i]=0;
		size[i]=1;
	}
}

int find(int x){
	if(pare[x]==x)return x;
	return pare[x] = find(pare[x]);
}

void unite(int x,int y){
	x = find(x);
	y = find(y);
	int cx = size[x];
	int cy = size[y];
	if(x==y)return;
	size[x] = size[y] = cx+cy;
	if(rank[x] < rank[y]){
		pare[x]=y;
	}else{
		pare[y] = x;
		if(rank[x] == rank[y])rank[x]++;
	}
}

int same(int x,int y){
	return find(x)==find(y)?1:0;
}

int count(int x){
	return size[find(x)];
}


int main(void){
	int n,m,i;
	scanf("%d%d",&n,&m);
	int a[m],b[m];
	long long ans[NUM]={0};
	for(i=0;i<m;i++){
		scanf("%d%d",&a[i],&b[i]);
		a[i]--,b[i]--;
	}
	ans[m-1] = (long long)n*(n-1)/2;
	init(n);


	for(i=m-2;i>=0;i--){
		if(same(a[i+1],b[i+1])){
			ans[i] = ans[i+1];
		}else{
			ans[i] = ans[i+1] - (long long)count(a[i+1])*count(b[i+1]);
			unite(a[i+1],b[i+1]);
		}
	}
	for(i=0;i<m;i++)printf("%lld\n",ans[i]);
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pare
	.bss
	.align 32
	.type	pare, @object
	.size	pare, 400000
pare:
	.zero	400000
	.globl	rank
	.align 32
	.type	rank, @object
	.size	rank, 400000
rank:
	.zero	400000
	.globl	size
	.align 32
	.type	size, @object
	.size	size, 400000
size:
	.zero	400000
	.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	pare(%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)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	$1, (%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	find
	.type	find, @function
find:
.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	pare(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L5
	movl	-4(%rbp), %eax
	jmp	.L6
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pare(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	find
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pare(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pare(%rip), %rax
	movl	(%rdx,%rax), %eax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	find, .-find
	.globl	unite
	.type	unite, @function
unite:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	find
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	find
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L11
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	size(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pare(%rip), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L7
.L10:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pare(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L7
.L11:
	nop
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	unite, .-unite
	.globl	same
	.type	same, @function
same:
.LFB3:
	.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	find
	movl	%eax, %ebx
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	find
	cmpl	%eax, %ebx
	sete	%al
	movzbl	%al, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	same, .-same
	.globl	count
	.type	count, @function
count:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	find
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	count, .-count
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.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
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1400, %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, %r13
	leaq	-800104(%rbp), %rdx
	leaq	-800108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -800096(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -800128(%rbp)
	movq	$0, -800120(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -800144(%rbp)
	movq	$0, -800136(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L17:
	cmpq	%rdx, %rsp
	je	.L18
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L17
.L18:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L19
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L19:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -800088(%rbp)
	movl	-800104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -800080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -800160(%rbp)
	movq	$0, -800152(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	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
.L20:
	cmpq	%rdx, %rsp
	je	.L21
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L20
.L21:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L22
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L22:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -800072(%rbp)
	leaq	-800064(%rbp), %rax
	movl	$800000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -800100(%rbp)
	jmp	.L23
.L24:
	movl	-800100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-800072(%rbp), %rax
	addq	%rax, %rdx
	movl	-800100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-800088(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-800088(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-800088(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-800072(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-800072(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -800100(%rbp)
.L23:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jl	.L24
	movl	-800108(%rbp), %eax
	movslq	%eax, %rdx
	movl	-800108(%rbp), %eax
	subl	$1, %eax
	cltq
	imulq	%rdx, %rax
	movl	-800104(%rbp), %edx
	subl	$1, %edx
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movslq	%edx, %rax
	movq	%rcx, -800064(%rbp,%rax,8)
	movl	-800108(%rbp), %eax
	movl	%eax, %edi
	call	init
	movl	-800104(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -800100(%rbp)
	jmp	.L25
.L28:
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-800100(%rbp), %eax
	leal	1(%rax), %ecx
	movq	-800088(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	same
	testl	%eax, %eax
	je	.L26
	movl	-800100(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-800064(%rbp,%rax,8), %rdx
	movl	-800100(%rbp), %eax
	cltq
	movq	%rdx, -800064(%rbp,%rax,8)
	jmp	.L27
.L26:
	movl	-800100(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-800064(%rbp,%rax,8), %rbx
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800088(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %edi
	call	count
	movslq	%eax, %r12
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %edi
	call	count
	cltq
	imulq	%r12, %rax
	subq	%rax, %rbx
	movq	%rbx, %rdx
	movl	-800100(%rbp), %eax
	cltq
	movq	%rdx, -800064(%rbp,%rax,8)
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-800100(%rbp), %eax
	leal	1(%rax), %ecx
	movq	-800088(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	unite
.L27:
	subl	$1, -800100(%rbp)
.L25:
	cmpl	$0, -800100(%rbp)
	jns	.L28
	movl	$0, -800100(%rbp)
	jmp	.L29
.L30:
	movl	-800100(%rbp), %eax
	cltq
	movq	-800064(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -800100(%rbp)
.L29:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jl	.L30
	movl	$0, %eax
	movq	%r13, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	.L30
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leal	-1(%rdi), %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	cmpl	$2, %ebp
	jbe	.L3
	movl	%edi, %edx
	leaq	pare(%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	%ebx, %eax
	andl	$-4, %eax
	testb	$3, %bl
	je	.L28
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
	addl	$1, %eax
	cmpl	%eax, %ebx
	jle	.L28
.L20:
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
	addl	$1, %eax
	cmpl	%eax, %ebx
	jle	.L7
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L7:
	movl	%ebx, %edx
	xorl	%esi, %esi
	leaq	rank(%rip), %rdi
	salq	$2, %rdx
	call	memset@PLT
	cmpl	$2, %ebp
	jbe	.L34
.L10:
	movl	%ebx, %edx
	leaq	size(%rip), %rcx
	movdqa	.LC2(%rip), %xmm0
	shrl	$2, %edx
	leaq	16(%rcx), %rsi
	movq	%rcx, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L8
	movl	%ebx, %eax
	andl	$-4, %eax
	testb	$3, %bl
	je	.L1
.L19:
	movslq	%eax, %rdx
	addl	$1, %eax
	movl	$1, (%rcx,%rdx,4)
	cmpl	%eax, %ebx
	jle	.L1
.L11:
	movslq	%eax, %rdx
	addl	$1, %eax
	movl	$1, (%rcx,%rdx,4)
	cmpl	%eax, %ebx
	jle	.L1
	cltq
	movl	$1, (%rcx,%rax,4)
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	movl	%ebx, %edx
	xorl	%esi, %esi
	leaq	rank(%rip), %rdi
	salq	$2, %rdx
	call	memset@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
.L3:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	movl	$0, pare(%rip)
	movl	$1, %eax
	leaq	pare(%rip), %rcx
	cmpl	$1, %edi
	jne	.L20
	movl	$0, rank(%rip)
	xorl	%eax, %eax
	leaq	size(%rip), %rcx
	jmp	.L19
.L34:
	movl	$1, size(%rip)
	movl	$1, %eax
	leaq	size(%rip), %rcx
	jmp	.L11
	.cfi_endproc
.LFE23:
	.size	init, .-init
	.p2align 4
	.globl	find
	.type	find, @function
find:
.LFB24:
	.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
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	pare(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	(%rbx,%rbp,4), %edx
	movl	%edx, %eax
	cmpl	%edi, %edx
	je	.L35
	movslq	%edx, %r12
	movl	(%rbx,%r12,4), %eax
	cmpl	%eax, %edx
	je	.L37
	movslq	%eax, %r13
	movl	(%rbx,%r13,4), %edx
	cmpl	%edx, %eax
	je	.L38
	movslq	%edx, %r14
	movl	(%rbx,%r14,4), %eax
	cmpl	%eax, %edx
	je	.L39
	movslq	%eax, %r15
	movl	(%rbx,%r15,4), %edx
	cmpl	%edx, %eax
	je	.L40
	movslq	%edx, %rcx
	movl	(%rbx,%rcx,4), %eax
	movq	%rcx, 8(%rsp)
	cmpl	%eax, %edx
	je	.L41
	movl	%eax, %edi
	call	find
	movq	8(%rsp), %rcx
	movl	%eax, (%rbx,%rcx,4)
.L41:
	movl	%eax, (%rbx,%r15,4)
.L40:
	movl	%eax, (%rbx,%r14,4)
.L39:
	movl	%eax, (%rbx,%r13,4)
.L38:
	movl	%eax, (%rbx,%r12,4)
.L37:
	movl	%eax, (%rbx,%rbp,4)
.L35:
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE24:
	.size	find, .-find
	.p2align 4
	.globl	unite
	.type	unite, @function
unite:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	pare(%rip), %r8
	movslq	%edi, %r10
	movl	%esi, %r11d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movslq	(%r8,%r10,4), %r9
	movq	%r9, %rsi
	cmpl	%r9d, %edi
	je	.L48
	movl	(%r8,%r9,4), %eax
	cmpl	%eax, %r9d
	je	.L49
	movslq	%eax, %rbx
	movl	(%r8,%rbx,4), %esi
	cmpl	%esi, %eax
	je	.L50
	movslq	%esi, %rbp
	movl	(%r8,%rbp,4), %edi
	cmpl	%edi, %esi
	je	.L51
	call	find
	movl	%eax, (%r8,%rbp,4)
	movl	%eax, %esi
.L51:
	movl	%esi, (%r8,%rbx,4)
.L50:
	movl	%esi, (%r8,%r9,4)
	movslq	%esi, %r9
.L49:
	movl	%esi, (%r8,%r10,4)
.L48:
	movslq	%r11d, %rbx
	movslq	(%r8,%rbx,4), %r10
	movq	%r10, %rax
	cmpl	%r10d, %r11d
	je	.L52
	movl	(%r8,%r10,4), %edx
	cmpl	%edx, %r10d
	je	.L53
	movslq	%edx, %r11
	movl	(%r8,%r11,4), %eax
	cmpl	%eax, %edx
	je	.L54
	movslq	%eax, %rbp
	movl	(%r8,%rbp,4), %edi
	cmpl	%edi, %eax
	je	.L55
	call	find
	movl	%eax, (%r8,%rbp,4)
.L55:
	movl	%eax, (%r8,%r11,4)
.L54:
	movl	%eax, (%r8,%r10,4)
	movslq	%eax, %r10
.L53:
	movl	%eax, (%r8,%rbx,4)
.L52:
	leaq	size(%rip), %rdx
	movl	(%rdx,%r9,4), %ecx
	movl	(%rdx,%r10,4), %edi
	cmpl	%esi, %eax
	je	.L47
	addl	%edi, %ecx
	movl	%ecx, (%rdx,%r10,4)
	movl	%ecx, (%rdx,%r9,4)
	leaq	rank(%rip), %rdx
	movl	(%rdx,%r9,4), %ecx
	cmpl	(%rdx,%r10,4), %ecx
	jge	.L58
	movl	%eax, (%r8,%r9,4)
.L47:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L58:
	.cfi_restore_state
	movl	%esi, (%r8,%r10,4)
	jne	.L47
	addl	$1, %ecx
	movl	%ecx, (%rdx,%r9,4)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	unite, .-unite
	.p2align 4
	.globl	same
	.type	same, @function
same:
.LFB26:
	.cfi_startproc
	endbr64
	leaq	pare(%rip), %r9
	movslq	%edi, %r10
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	%esi, %r8d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	(%r9,%r10,4), %esi
	cmpl	%esi, %edi
	je	.L68
	movslq	%esi, %r11
	movl	(%r9,%r11,4), %eax
	cmpl	%eax, %esi
	je	.L69
	movslq	%eax, %rbx
	movl	(%r9,%rbx,4), %esi
	cmpl	%esi, %eax
	je	.L70
	movslq	%esi, %rbp
	movl	(%r9,%rbp,4), %eax
	cmpl	%eax, %esi
	je	.L71
	movslq	%eax, %r12
	movl	(%r9,%r12,4), %esi
	cmpl	%esi, %eax
	je	.L72
	movl	%esi, %edi
	call	find
	movl	%eax, (%r9,%r12,4)
	movl	%eax, %esi
.L72:
	movl	%esi, (%r9,%rbp,4)
.L71:
	movl	%esi, (%r9,%rbx,4)
.L70:
	movl	%esi, (%r9,%r11,4)
.L69:
	movl	%esi, (%r9,%r10,4)
.L68:
	movslq	%r8d, %r10
	movl	(%r9,%r10,4), %edi
	cmpl	%edi, %r8d
	je	.L73
	movslq	%edi, %r8
	movl	(%r9,%r8,4), %eax
	cmpl	%eax, %edi
	je	.L74
	movslq	%eax, %r11
	movl	(%r9,%r11,4), %edi
	cmpl	%edi, %eax
	je	.L75
	movslq	%edi, %rbx
	movl	(%r9,%rbx,4), %eax
	cmpl	%eax, %edi
	je	.L76
	movslq	%eax, %rbp
	movl	(%r9,%rbp,4), %edi
	cmpl	%edi, %eax
	je	.L77
	call	find
	movl	%eax, (%r9,%rbp,4)
	movl	%eax, %edi
.L77:
	movl	%edi, (%r9,%rbx,4)
.L76:
	movl	%edi, (%r9,%r11,4)
.L75:
	movl	%edi, (%r9,%r8,4)
.L74:
	movl	%edi, (%r9,%r10,4)
.L73:
	xorl	%eax, %eax
	cmpl	%esi, %edi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	sete	%al
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE26:
	.size	same, .-same
	.p2align 4
	.globl	count
	.type	count, @function
count:
.LFB27:
	.cfi_startproc
	endbr64
	leaq	pare(%rip), %rsi
	movslq	%edi, %r9
	movslq	(%rsi,%r9,4), %r8
	cmpl	%r8d, %edi
	je	.L95
	movl	(%rsi,%r8,4), %edx
	movq	%r8, %rax
	cmpl	%edx, %r8d
	je	.L96
	movslq	%edx, %r10
	movl	(%rsi,%r10,4), %eax
	cmpl	%eax, %edx
	je	.L97
	movslq	%eax, %r11
	movl	(%rsi,%r11,4), %edx
	cmpl	%edx, %eax
	je	.L98
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movslq	%edx, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	(%rsi,%rbx,4), %eax
	cmpl	%eax, %edx
	je	.L88
	movslq	%eax, %rbp
	movl	(%rsi,%rbp,4), %edi
	cmpl	%edi, %eax
	je	.L89
	call	find
	movl	%eax, (%rsi,%rbp,4)
.L89:
	movl	%eax, (%rsi,%rbx,4)
.L88:
	movl	%eax, (%rsi,%r11,4)
	movl	%eax, (%rsi,%r10,4)
	movl	%eax, (%rsi,%r8,4)
	movslq	%eax, %r8
	movl	%eax, (%rsi,%r9,4)
	leaq	size(%rip), %rax
	movl	(%rax,%r8,4), %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L98:
	.cfi_restore 3
	.cfi_restore 6
	movl	%eax, (%rsi,%r10,4)
.L97:
	movl	%eax, (%rsi,%r8,4)
	movslq	%eax, %r8
.L96:
	movl	%eax, (%rsi,%r9,4)
.L95:
	leaq	size(%rip), %rax
	movl	(%rax,%r8,4), %eax
	ret
	.cfi_endproc
.LFE27:
	.size	count, .-count
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d%d"
.LC4:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB28:
	.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
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1352, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC3(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-800068(%rbp), %rdx
	leaq	-800072(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-800068(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r9
	leaq	15(,%rax,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L103
.L191:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L191
.L103:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L192
.L104:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %r15
	andq	$-16, %rdx
	subq	%rax, %rcx
.L105:
	cmpq	%rcx, %rsp
	je	.L106
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L105
.L192:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L104
.L106:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L193
.L107:
	leaq	-800064(%rbp), %r13
	movq	%rsp, %rbx
	movl	$800000, %edx
	xorl	%esi, %esi
	movq	%r13, %rdi
	movl	%r9d, -800088(%rbp)
	movq	%rbx, -800104(%rbp)
	call	memset@PLT
	movl	-800088(%rbp), %r9d
	testl	%r9d, %r9d
	jle	.L108
	movq	%r15, %r12
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L109:
	movq	%rbx, %rdx
	movq	%r12, %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-800068(%rbp), %r9d
	addl	$1, %r14d
	subl	$1, (%rbx)
	subl	$1, (%r12)
	addq	$4, %rbx
	addq	$4, %r12
	cmpl	%r14d, %r9d
	jg	.L109
.L108:
	movslq	-800072(%rbp), %rax
	leal	-1(%r9), %esi
	movslq	%esi, %rsi
	leal	-1(%rax), %ecx
	movq	%rax, %r12
	movslq	%ecx, %rdx
	imulq	%rax, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -800064(%rbp,%rsi,8)
	testl	%r12d, %r12d
	jle	.L120
	cmpl	$2, %ecx
	jbe	.L113
	movl	%r12d, %edx
	leaq	pare(%rip), %rbx
	movdqa	.LC0(%rip), %xmm0
	movdqa	.LC1(%rip), %xmm2
	shrl	$2, %edx
	leaq	16(%rbx), %rsi
	movq	%rbx, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L114:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	movaps	%xmm1, -16(%rax)
	cmpq	%rax, %rdx
	jne	.L114
	movl	%r12d, %eax
	andl	$-4, %eax
	testb	$3, %r12b
	je	.L186
	movslq	%eax, %rdx
	movl	%eax, (%rbx,%rdx,4)
	addl	$1, %eax
	cmpl	%eax, %r12d
	jle	.L186
.L152:
	movslq	%eax, %rdx
	movl	%eax, (%rbx,%rdx,4)
	addl	$1, %eax
	cmpl	%eax, %r12d
	jle	.L117
	movslq	%eax, %rdx
	movl	%eax, (%rbx,%rdx,4)
.L117:
	movl	%r12d, %edx
	xorl	%esi, %esi
	leaq	rank(%rip), %rdi
	movl	%ecx, -800096(%rbp)
	salq	$2, %rdx
	movl	%r9d, -800088(%rbp)
	call	memset@PLT
	movl	-800096(%rbp), %ecx
	movl	-800088(%rbp), %r9d
	cmpl	$2, %ecx
	jbe	.L194
.L149:
	movl	%r12d, %edx
	leaq	size(%rip), %rcx
	movdqa	.LC2(%rip), %xmm0
	shrl	$2, %edx
	leaq	16(%rcx), %rsi
	movq	%rcx, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L118:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L118
	movl	%r12d, %eax
	andl	$-4, %eax
	testb	$3, %r12b
	je	.L120
.L154:
	movslq	%eax, %rdx
	addl	$1, %eax
	movl	$1, (%rcx,%rdx,4)
	cmpl	%eax, %r12d
	jle	.L120
.L150:
	movslq	%eax, %rdx
	addl	$1, %eax
	movl	$1, (%rcx,%rdx,4)
	cmpl	%eax, %r12d
	jle	.L120
	cltq
	movl	$1, (%rcx,%rax,4)
.L120:
	subl	$2, %r9d
	movq	-800104(%rbp), %r14
	leaq	pare(%rip), %rbx
	movslq	%r9d, %r12
	jns	.L148
	jmp	.L112
	.p2align 4,,10
	.p2align 3
.L195:
	movq	%r8, 0(%r13,%r12,8)
	subq	$1, %r12
	testl	%r12d, %r12d
	js	.L112
.L148:
	movslq	4(%r15,%r12,4), %r8
	movl	4(%r14,%r12,4), %esi
	movl	(%rbx,%r8,4), %r10d
	cmpl	%r10d, %r8d
	je	.L124
	movslq	%r10d, %r9
	movl	(%rbx,%r9,4), %edx
	cmpl	%edx, %r10d
	je	.L125
	movslq	%edx, %r10
	movl	(%rbx,%r10,4), %eax
	cmpl	%eax, %edx
	je	.L126
	movslq	%eax, %r11
	movl	(%rbx,%r11,4), %ecx
	cmpl	%ecx, %eax
	je	.L127
	movslq	%ecx, %rdx
	movl	%ecx, %eax
	movl	(%rbx,%rdx,4), %edi
	cmpl	%edi, %ecx
	je	.L128
	movslq	%edi, %rcx
	movl	(%rbx,%rcx,4), %eax
	cmpl	%eax, %edi
	je	.L129
	movslq	%eax, %rdi
	movq	%rdi, -800088(%rbp)
	movl	(%rbx,%rdi,4), %edi
	cmpl	%edi, %eax
	je	.L130
	movq	%rcx, -800104(%rbp)
	movq	%rdx, -800096(%rbp)
	call	find
	movq	-800104(%rbp), %rcx
	movq	-800096(%rbp), %rdx
	movl	%eax, %edi
	movq	-800088(%rbp), %rax
	movl	%edi, (%rbx,%rax,4)
.L130:
	movl	%edi, (%rbx,%rcx,4)
	movl	%edi, %eax
.L129:
	movl	%eax, (%rbx,%rdx,4)
.L128:
	movl	%eax, (%rbx,%r11,4)
.L127:
	movl	%eax, (%rbx,%r10,4)
.L126:
	movl	%eax, (%rbx,%r9,4)
	movl	%eax, %r10d
.L125:
	movl	%r10d, (%rbx,%r8,4)
.L124:
	movslq	%esi, %r8
	movl	(%rbx,%r8,4), %eax
	cmpl	%eax, %esi
	je	.L131
	movslq	%eax, %rsi
	movl	(%rbx,%rsi,4), %edx
	cmpl	%edx, %eax
	je	.L132
	movslq	%edx, %r9
	movl	(%rbx,%r9,4), %eax
	cmpl	%eax, %edx
	je	.L133
	movslq	%eax, %r11
	movl	(%rbx,%r11,4), %ecx
	cmpl	%ecx, %eax
	je	.L134
	movslq	%ecx, %rdx
	movl	%ecx, %eax
	movl	(%rbx,%rdx,4), %edi
	cmpl	%edi, %ecx
	je	.L135
	movslq	%edi, %rcx
	movl	(%rbx,%rcx,4), %eax
	cmpl	%eax, %edi
	je	.L136
	movslq	%eax, %rdi
	movq	%rdi, -800088(%rbp)
	movl	(%rbx,%rdi,4), %edi
	cmpl	%edi, %eax
	je	.L137
	movq	%rcx, -800104(%rbp)
	movq	%rdx, -800096(%rbp)
	call	find
	movq	-800104(%rbp), %rcx
	movq	-800096(%rbp), %rdx
	movl	%eax, %edi
	movq	-800088(%rbp), %rax
	movl	%edi, (%rbx,%rax,4)
.L137:
	movl	%edi, (%rbx,%rcx,4)
	movl	%edi, %eax
.L136:
	movl	%eax, (%rbx,%rdx,4)
.L135:
	movl	%eax, (%rbx,%r11,4)
.L134:
	movl	%eax, (%rbx,%r9,4)
.L133:
	movl	%eax, (%rbx,%rsi,4)
.L132:
	movl	%eax, (%rbx,%r8,4)
.L131:
	movq	8(%r13,%r12,8), %r8
	cmpl	%r10d, %eax
	je	.L195
	movslq	4(%r15,%r12,4), %r9
	movslq	(%rbx,%r9,4), %rsi
	movq	%rsi, %rdi
	cmpl	%esi, %r9d
	je	.L140
	movl	(%rbx,%rsi,4), %eax
	cmpl	%eax, %esi
	je	.L141
	movslq	%eax, %r10
	movl	%eax, %edi
	movl	(%rbx,%r10,4), %edx
	cmpl	%edx, %eax
	je	.L142
	movslq	%edx, %r11
	movl	(%rbx,%r11,4), %edi
	cmpl	%edi, %edx
	je	.L143
	call	find
	movl	%eax, (%rbx,%r11,4)
	movl	%eax, %edi
.L143:
	movl	%edi, (%rbx,%r10,4)
.L142:
	movl	%edi, (%rbx,%rsi,4)
	movslq	%edi, %rsi
.L141:
	movl	%edi, (%rbx,%r9,4)
.L140:
	movslq	4(%r14,%r12,4), %r10
	leaq	size(%rip), %rax
	movslq	(%rax,%rsi,4), %r11
	movl	(%rbx,%r10,4), %edi
	movq	%r10, %rax
	cmpl	%edi, %r10d
	je	.L166
	movslq	%edi, %r9
	movl	(%rbx,%r9,4), %edx
	cmpl	%edx, %edi
	je	.L145
	movslq	%edx, %rsi
	movl	%edx, %edi
	movl	(%rbx,%rsi,4), %ecx
	cmpl	%ecx, %edx
	je	.L146
	movslq	%ecx, %rdx
	movl	(%rbx,%rdx,4), %edi
	movq	%rdx, -800088(%rbp)
	cmpl	%edi, %ecx
	je	.L147
	call	find
	movq	-800088(%rbp), %rdx
	movl	%eax, %edi
	movl	%eax, (%rbx,%rdx,4)
	movl	4(%r14,%r12,4), %eax
.L147:
	movl	%edi, (%rbx,%rsi,4)
.L146:
	movl	%edi, (%rbx,%r9,4)
	movslq	%edi, %r9
.L145:
	movl	%edi, (%rbx,%r10,4)
	movl	%eax, %esi
.L144:
	leaq	size(%rip), %rax
	movl	4(%r15,%r12,4), %edi
	movslq	(%rax,%r9,4), %rax
	imulq	%r11, %rax
	subq	%rax, %r8
	movq	%r8, 0(%r13,%r12,8)
	subq	$1, %r12
	call	unite
	testl	%r12d, %r12d
	jns	.L148
.L112:
	movl	-800068(%rbp), %eax
	xorl	%ebx, %ebx
	leaq	.LC4(%rip), %r12
	testl	%eax, %eax
	jle	.L123
	.p2align 4,,10
	.p2align 3
.L122:
	movq	0(%r13,%rbx,8), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, -800068(%rbp)
	jg	.L122
.L123:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L196
	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
	.p2align 4,,10
	.p2align 3
.L166:
	.cfi_restore_state
	movl	%r10d, %esi
	movq	%r10, %r9
	jmp	.L144
.L186:
	movl	%r12d, %edx
	xorl	%esi, %esi
	leaq	rank(%rip), %rdi
	movl	%r9d, -800088(%rbp)
	salq	$2, %rdx
	call	memset@PLT
	movl	-800088(%rbp), %r9d
	jmp	.L149
.L113:
	movl	$0, pare(%rip)
	movl	$1, %eax
	leaq	pare(%rip), %rbx
	cmpl	$1, %r12d
	jne	.L152
	leaq	rank(%rip), %rdx
	xorl	%eax, %eax
	movl	$4, %ecx
	movq	%rdx, %rdi
	rep stosb
	xorl	%eax, %eax
	leaq	size(%rip), %rcx
	jmp	.L154
.L194:
	movl	$1, size(%rip)
	movl	$1, %eax
	leaq	size(%rip), %rcx
	jmp	.L150
.L193:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L107
.L196:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE28:
	.size	main, .-main
	.globl	size
	.bss
	.align 32
	.type	size, @object
	.size	size, 400000
size:
	.zero	400000
	.globl	rank
	.align 32
	.type	rank, @object
	.size	rank, 400000
rank:
	.zero	400000
	.globl	pare
	.align 32
	.type	pare, @object
	.size	pare, 400000
pare:
	.zero	400000
	.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
	.align 16
.LC2:
	.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	init
	.type	init, @function
init:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L30
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leal	-1(%rdi), %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	cmpl	$2, %ebp
	jbe	.L3
	movl	%edi, %edx
	leaq	pare(%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	%ebx, %eax
	andl	$-4, %eax
	testb	$3, %bl
	je	.L28
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
	addl	$1, %eax
	cmpl	%eax, %ebx
	jle	.L28
.L20:
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
	addl	$1, %eax
	cmpl	%eax, %ebx
	jle	.L7
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L7:
	movl	%ebx, %edx
	xorl	%esi, %esi
	leaq	rank(%rip), %rdi
	salq	$2, %rdx
	call	memset@PLT
	cmpl	$2, %ebp
	jbe	.L34
.L10:
	movl	%ebx, %edx
	leaq	size(%rip), %rcx
	movdqa	.LC2(%rip), %xmm0
	shrl	$2, %edx
	leaq	16(%rcx), %rsi
	movq	%rcx, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L8
	movl	%ebx, %eax
	andl	$-4, %eax
	testb	$3, %bl
	je	.L1
.L19:
	movslq	%eax, %rdx
	addl	$1, %eax
	movl	$1, (%rcx,%rdx,4)
	cmpl	%eax, %ebx
	jle	.L1
.L11:
	movslq	%eax, %rdx
	addl	$1, %eax
	movl	$1, (%rcx,%rdx,4)
	cmpl	%eax, %ebx
	jle	.L1
	cltq
	movl	$1, (%rcx,%rax,4)
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	movl	%ebx, %edx
	xorl	%esi, %esi
	leaq	rank(%rip), %rdi
	salq	$2, %rdx
	call	memset@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
.L3:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	movl	$0, pare(%rip)
	movl	$1, %eax
	leaq	pare(%rip), %rcx
	cmpl	$1, %edi
	jne	.L20
	movl	$0, rank(%rip)
	xorl	%eax, %eax
	leaq	size(%rip), %rcx
	jmp	.L19
.L34:
	movl	$1, size(%rip)
	movl	$1, %eax
	leaq	size(%rip), %rcx
	jmp	.L11
	.cfi_endproc
.LFE23:
	.size	init, .-init
	.p2align 4
	.globl	find
	.type	find, @function
find:
.LFB24:
	.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
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	pare(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	(%rbx,%rbp,4), %edx
	movl	%edx, %eax
	cmpl	%edi, %edx
	je	.L35
	movslq	%edx, %r12
	movl	(%rbx,%r12,4), %eax
	cmpl	%eax, %edx
	je	.L37
	movslq	%eax, %r13
	movl	(%rbx,%r13,4), %edx
	cmpl	%edx, %eax
	je	.L38
	movslq	%edx, %r14
	movl	(%rbx,%r14,4), %eax
	cmpl	%eax, %edx
	je	.L39
	movslq	%eax, %r15
	movl	(%rbx,%r15,4), %edx
	cmpl	%edx, %eax
	je	.L40
	movslq	%edx, %rcx
	movl	(%rbx,%rcx,4), %eax
	movq	%rcx, 8(%rsp)
	cmpl	%eax, %edx
	je	.L41
	movl	%eax, %edi
	call	find
	movq	8(%rsp), %rcx
	movl	%eax, (%rbx,%rcx,4)
.L41:
	movl	%eax, (%rbx,%r15,4)
.L40:
	movl	%eax, (%rbx,%r14,4)
.L39:
	movl	%eax, (%rbx,%r13,4)
.L38:
	movl	%eax, (%rbx,%r12,4)
.L37:
	movl	%eax, (%rbx,%rbp,4)
.L35:
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE24:
	.size	find, .-find
	.p2align 4
	.globl	unite
	.type	unite, @function
unite:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	pare(%rip), %r8
	movslq	%edi, %r10
	movl	%esi, %r11d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movslq	(%r8,%r10,4), %r9
	movq	%r9, %rsi
	cmpl	%r9d, %edi
	je	.L48
	movl	(%r8,%r9,4), %eax
	cmpl	%eax, %r9d
	je	.L49
	movslq	%eax, %rbx
	movl	(%r8,%rbx,4), %esi
	cmpl	%esi, %eax
	je	.L50
	movslq	%esi, %rbp
	movl	(%r8,%rbp,4), %edi
	cmpl	%edi, %esi
	je	.L51
	call	find
	movl	%eax, (%r8,%rbp,4)
	movl	%eax, %esi
.L51:
	movl	%esi, (%r8,%rbx,4)
.L50:
	movl	%esi, (%r8,%r9,4)
	movslq	%esi, %r9
.L49:
	movl	%esi, (%r8,%r10,4)
.L48:
	movslq	%r11d, %rbx
	movslq	(%r8,%rbx,4), %r10
	movq	%r10, %rax
	cmpl	%r10d, %r11d
	je	.L52
	movl	(%r8,%r10,4), %edx
	cmpl	%edx, %r10d
	je	.L53
	movslq	%edx, %r11
	movl	(%r8,%r11,4), %eax
	cmpl	%eax, %edx
	je	.L54
	movslq	%eax, %rbp
	movl	(%r8,%rbp,4), %edi
	cmpl	%edi, %eax
	je	.L55
	call	find
	movl	%eax, (%r8,%rbp,4)
.L55:
	movl	%eax, (%r8,%r11,4)
.L54:
	movl	%eax, (%r8,%r10,4)
	movslq	%eax, %r10
.L53:
	movl	%eax, (%r8,%rbx,4)
.L52:
	leaq	size(%rip), %rdx
	movl	(%rdx,%r9,4), %ecx
	movl	(%rdx,%r10,4), %edi
	cmpl	%esi, %eax
	je	.L47
	addl	%edi, %ecx
	movl	%ecx, (%rdx,%r10,4)
	movl	%ecx, (%rdx,%r9,4)
	leaq	rank(%rip), %rdx
	movl	(%rdx,%r9,4), %ecx
	cmpl	(%rdx,%r10,4), %ecx
	jge	.L58
	movl	%eax, (%r8,%r9,4)
.L47:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L58:
	.cfi_restore_state
	movl	%esi, (%r8,%r10,4)
	jne	.L47
	addl	$1, %ecx
	movl	%ecx, (%rdx,%r9,4)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	unite, .-unite
	.p2align 4
	.globl	same
	.type	same, @function
same:
.LFB26:
	.cfi_startproc
	endbr64
	leaq	pare(%rip), %r9
	movslq	%edi, %r10
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	%esi, %r8d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	(%r9,%r10,4), %esi
	cmpl	%esi, %edi
	je	.L68
	movslq	%esi, %r11
	movl	(%r9,%r11,4), %eax
	cmpl	%eax, %esi
	je	.L69
	movslq	%eax, %rbx
	movl	(%r9,%rbx,4), %esi
	cmpl	%esi, %eax
	je	.L70
	movslq	%esi, %rbp
	movl	(%r9,%rbp,4), %eax
	cmpl	%eax, %esi
	je	.L71
	movslq	%eax, %r12
	movl	(%r9,%r12,4), %esi
	cmpl	%esi, %eax
	je	.L72
	movl	%esi, %edi
	call	find
	movl	%eax, (%r9,%r12,4)
	movl	%eax, %esi
.L72:
	movl	%esi, (%r9,%rbp,4)
.L71:
	movl	%esi, (%r9,%rbx,4)
.L70:
	movl	%esi, (%r9,%r11,4)
.L69:
	movl	%esi, (%r9,%r10,4)
.L68:
	movslq	%r8d, %r10
	movl	(%r9,%r10,4), %edi
	cmpl	%edi, %r8d
	je	.L73
	movslq	%edi, %r8
	movl	(%r9,%r8,4), %eax
	cmpl	%eax, %edi
	je	.L74
	movslq	%eax, %r11
	movl	(%r9,%r11,4), %edi
	cmpl	%edi, %eax
	je	.L75
	movslq	%edi, %rbx
	movl	(%r9,%rbx,4), %eax
	cmpl	%eax, %edi
	je	.L76
	movslq	%eax, %rbp
	movl	(%r9,%rbp,4), %edi
	cmpl	%edi, %eax
	je	.L77
	call	find
	movl	%eax, (%r9,%rbp,4)
	movl	%eax, %edi
.L77:
	movl	%edi, (%r9,%rbx,4)
.L76:
	movl	%edi, (%r9,%r11,4)
.L75:
	movl	%edi, (%r9,%r8,4)
.L74:
	movl	%edi, (%r9,%r10,4)
.L73:
	xorl	%eax, %eax
	cmpl	%esi, %edi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	sete	%al
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE26:
	.size	same, .-same
	.p2align 4
	.globl	count
	.type	count, @function
count:
.LFB27:
	.cfi_startproc
	endbr64
	leaq	pare(%rip), %rsi
	movslq	%edi, %r9
	movslq	(%rsi,%r9,4), %r8
	cmpl	%r8d, %edi
	je	.L95
	movl	(%rsi,%r8,4), %edx
	movq	%r8, %rax
	cmpl	%edx, %r8d
	je	.L96
	movslq	%edx, %r10
	movl	(%rsi,%r10,4), %eax
	cmpl	%eax, %edx
	je	.L97
	movslq	%eax, %r11
	movl	(%rsi,%r11,4), %edx
	cmpl	%edx, %eax
	je	.L98
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movslq	%edx, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	(%rsi,%rbx,4), %eax
	cmpl	%eax, %edx
	je	.L88
	movslq	%eax, %rbp
	movl	(%rsi,%rbp,4), %edi
	cmpl	%edi, %eax
	je	.L89
	call	find
	movl	%eax, (%rsi,%rbp,4)
.L89:
	movl	%eax, (%rsi,%rbx,4)
.L88:
	movl	%eax, (%rsi,%r11,4)
	movl	%eax, (%rsi,%r10,4)
	movl	%eax, (%rsi,%r8,4)
	movslq	%eax, %r8
	movl	%eax, (%rsi,%r9,4)
	leaq	size(%rip), %rax
	movl	(%rax,%r8,4), %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L98:
	.cfi_restore 3
	.cfi_restore 6
	movl	%eax, (%rsi,%r10,4)
.L97:
	movl	%eax, (%rsi,%r8,4)
	movslq	%eax, %r8
.L96:
	movl	%eax, (%rsi,%r9,4)
.L95:
	leaq	size(%rip), %rax
	movl	(%rax,%r8,4), %eax
	ret
	.cfi_endproc
.LFE27:
	.size	count, .-count
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d%d"
.LC4:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB28:
	.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
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1352, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC3(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-800068(%rbp), %rdx
	leaq	-800072(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-800068(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r9
	leaq	15(,%rax,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L103
.L191:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L191
.L103:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L192
.L104:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %r15
	andq	$-16, %rdx
	subq	%rax, %rcx
.L105:
	cmpq	%rcx, %rsp
	je	.L106
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L105
.L192:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L104
.L106:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L193
.L107:
	leaq	-800064(%rbp), %r13
	movq	%rsp, %rbx
	movl	$800000, %edx
	xorl	%esi, %esi
	movq	%r13, %rdi
	movl	%r9d, -800088(%rbp)
	movq	%rbx, -800104(%rbp)
	call	memset@PLT
	movl	-800088(%rbp), %r9d
	testl	%r9d, %r9d
	jle	.L108
	movq	%r15, %r12
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L109:
	movq	%rbx, %rdx
	movq	%r12, %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-800068(%rbp), %r9d
	addl	$1, %r14d
	subl	$1, (%rbx)
	subl	$1, (%r12)
	addq	$4, %rbx
	addq	$4, %r12
	cmpl	%r14d, %r9d
	jg	.L109
.L108:
	movslq	-800072(%rbp), %rax
	leal	-1(%r9), %esi
	movslq	%esi, %rsi
	leal	-1(%rax), %ecx
	movq	%rax, %r12
	movslq	%ecx, %rdx
	imulq	%rax, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -800064(%rbp,%rsi,8)
	testl	%r12d, %r12d
	jle	.L120
	cmpl	$2, %ecx
	jbe	.L113
	movl	%r12d, %edx
	leaq	pare(%rip), %rbx
	movdqa	.LC0(%rip), %xmm0
	movdqa	.LC1(%rip), %xmm2
	shrl	$2, %edx
	leaq	16(%rbx), %rsi
	movq	%rbx, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L114:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	movaps	%xmm1, -16(%rax)
	cmpq	%rax, %rdx
	jne	.L114
	movl	%r12d, %eax
	andl	$-4, %eax
	testb	$3, %r12b
	je	.L186
	movslq	%eax, %rdx
	movl	%eax, (%rbx,%rdx,4)
	addl	$1, %eax
	cmpl	%eax, %r12d
	jle	.L186
.L152:
	movslq	%eax, %rdx
	movl	%eax, (%rbx,%rdx,4)
	addl	$1, %eax
	cmpl	%eax, %r12d
	jle	.L117
	movslq	%eax, %rdx
	movl	%eax, (%rbx,%rdx,4)
.L117:
	movl	%r12d, %edx
	xorl	%esi, %esi
	leaq	rank(%rip), %rdi
	movl	%ecx, -800096(%rbp)
	salq	$2, %rdx
	movl	%r9d, -800088(%rbp)
	call	memset@PLT
	movl	-800096(%rbp), %ecx
	movl	-800088(%rbp), %r9d
	cmpl	$2, %ecx
	jbe	.L194
.L149:
	movl	%r12d, %edx
	leaq	size(%rip), %rcx
	movdqa	.LC2(%rip), %xmm0
	shrl	$2, %edx
	leaq	16(%rcx), %rsi
	movq	%rcx, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L118:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L118
	movl	%r12d, %eax
	andl	$-4, %eax
	testb	$3, %r12b
	je	.L120
.L154:
	movslq	%eax, %rdx
	addl	$1, %eax
	movl	$1, (%rcx,%rdx,4)
	cmpl	%eax, %r12d
	jle	.L120
.L150:
	movslq	%eax, %rdx
	addl	$1, %eax
	movl	$1, (%rcx,%rdx,4)
	cmpl	%eax, %r12d
	jle	.L120
	cltq
	movl	$1, (%rcx,%rax,4)
.L120:
	subl	$2, %r9d
	movq	-800104(%rbp), %r14
	leaq	pare(%rip), %rbx
	movslq	%r9d, %r12
	jns	.L148
	jmp	.L112
	.p2align 4,,10
	.p2align 3
.L195:
	movq	%r8, 0(%r13,%r12,8)
	subq	$1, %r12
	testl	%r12d, %r12d
	js	.L112
.L148:
	movslq	4(%r15,%r12,4), %r8
	movl	4(%r14,%r12,4), %esi
	movl	(%rbx,%r8,4), %r10d
	cmpl	%r10d, %r8d
	je	.L124
	movslq	%r10d, %r9
	movl	(%rbx,%r9,4), %edx
	cmpl	%edx, %r10d
	je	.L125
	movslq	%edx, %r10
	movl	(%rbx,%r10,4), %eax
	cmpl	%eax, %edx
	je	.L126
	movslq	%eax, %r11
	movl	(%rbx,%r11,4), %ecx
	cmpl	%ecx, %eax
	je	.L127
	movslq	%ecx, %rdx
	movl	%ecx, %eax
	movl	(%rbx,%rdx,4), %edi
	cmpl	%edi, %ecx
	je	.L128
	movslq	%edi, %rcx
	movl	(%rbx,%rcx,4), %eax
	cmpl	%eax, %edi
	je	.L129
	movslq	%eax, %rdi
	movq	%rdi, -800088(%rbp)
	movl	(%rbx,%rdi,4), %edi
	cmpl	%edi, %eax
	je	.L130
	movq	%rcx, -800104(%rbp)
	movq	%rdx, -800096(%rbp)
	call	find
	movq	-800104(%rbp), %rcx
	movq	-800096(%rbp), %rdx
	movl	%eax, %edi
	movq	-800088(%rbp), %rax
	movl	%edi, (%rbx,%rax,4)
.L130:
	movl	%edi, (%rbx,%rcx,4)
	movl	%edi, %eax
.L129:
	movl	%eax, (%rbx,%rdx,4)
.L128:
	movl	%eax, (%rbx,%r11,4)
.L127:
	movl	%eax, (%rbx,%r10,4)
.L126:
	movl	%eax, (%rbx,%r9,4)
	movl	%eax, %r10d
.L125:
	movl	%r10d, (%rbx,%r8,4)
.L124:
	movslq	%esi, %r8
	movl	(%rbx,%r8,4), %eax
	cmpl	%eax, %esi
	je	.L131
	movslq	%eax, %rsi
	movl	(%rbx,%rsi,4), %edx
	cmpl	%edx, %eax
	je	.L132
	movslq	%edx, %r9
	movl	(%rbx,%r9,4), %eax
	cmpl	%eax, %edx
	je	.L133
	movslq	%eax, %r11
	movl	(%rbx,%r11,4), %ecx
	cmpl	%ecx, %eax
	je	.L134
	movslq	%ecx, %rdx
	movl	%ecx, %eax
	movl	(%rbx,%rdx,4), %edi
	cmpl	%edi, %ecx
	je	.L135
	movslq	%edi, %rcx
	movl	(%rbx,%rcx,4), %eax
	cmpl	%eax, %edi
	je	.L136
	movslq	%eax, %rdi
	movq	%rdi, -800088(%rbp)
	movl	(%rbx,%rdi,4), %edi
	cmpl	%edi, %eax
	je	.L137
	movq	%rcx, -800104(%rbp)
	movq	%rdx, -800096(%rbp)
	call	find
	movq	-800104(%rbp), %rcx
	movq	-800096(%rbp), %rdx
	movl	%eax, %edi
	movq	-800088(%rbp), %rax
	movl	%edi, (%rbx,%rax,4)
.L137:
	movl	%edi, (%rbx,%rcx,4)
	movl	%edi, %eax
.L136:
	movl	%eax, (%rbx,%rdx,4)
.L135:
	movl	%eax, (%rbx,%r11,4)
.L134:
	movl	%eax, (%rbx,%r9,4)
.L133:
	movl	%eax, (%rbx,%rsi,4)
.L132:
	movl	%eax, (%rbx,%r8,4)
.L131:
	movq	8(%r13,%r12,8), %r8
	cmpl	%r10d, %eax
	je	.L195
	movslq	4(%r15,%r12,4), %r9
	movslq	(%rbx,%r9,4), %rsi
	movq	%rsi, %rdi
	cmpl	%esi, %r9d
	je	.L140
	movl	(%rbx,%rsi,4), %eax
	cmpl	%eax, %esi
	je	.L141
	movslq	%eax, %r10
	movl	%eax, %edi
	movl	(%rbx,%r10,4), %edx
	cmpl	%edx, %eax
	je	.L142
	movslq	%edx, %r11
	movl	(%rbx,%r11,4), %edi
	cmpl	%edi, %edx
	je	.L143
	call	find
	movl	%eax, (%rbx,%r11,4)
	movl	%eax, %edi
.L143:
	movl	%edi, (%rbx,%r10,4)
.L142:
	movl	%edi, (%rbx,%rsi,4)
	movslq	%edi, %rsi
.L141:
	movl	%edi, (%rbx,%r9,4)
.L140:
	movslq	4(%r14,%r12,4), %r10
	leaq	size(%rip), %rax
	movslq	(%rax,%rsi,4), %r11
	movl	(%rbx,%r10,4), %edi
	movq	%r10, %rax
	cmpl	%edi, %r10d
	je	.L166
	movslq	%edi, %r9
	movl	(%rbx,%r9,4), %edx
	cmpl	%edx, %edi
	je	.L145
	movslq	%edx, %rsi
	movl	%edx, %edi
	movl	(%rbx,%rsi,4), %ecx
	cmpl	%ecx, %edx
	je	.L146
	movslq	%ecx, %rdx
	movl	(%rbx,%rdx,4), %edi
	movq	%rdx, -800088(%rbp)
	cmpl	%edi, %ecx
	je	.L147
	call	find
	movq	-800088(%rbp), %rdx
	movl	%eax, %edi
	movl	%eax, (%rbx,%rdx,4)
	movl	4(%r14,%r12,4), %eax
.L147:
	movl	%edi, (%rbx,%rsi,4)
.L146:
	movl	%edi, (%rbx,%r9,4)
	movslq	%edi, %r9
.L145:
	movl	%edi, (%rbx,%r10,4)
	movl	%eax, %esi
.L144:
	leaq	size(%rip), %rax
	movl	4(%r15,%r12,4), %edi
	movslq	(%rax,%r9,4), %rax
	imulq	%r11, %rax
	subq	%rax, %r8
	movq	%r8, 0(%r13,%r12,8)
	subq	$1, %r12
	call	unite
	testl	%r12d, %r12d
	jns	.L148
.L112:
	movl	-800068(%rbp), %eax
	xorl	%ebx, %ebx
	leaq	.LC4(%rip), %r12
	testl	%eax, %eax
	jle	.L123
	.p2align 4,,10
	.p2align 3
.L122:
	movq	0(%r13,%rbx,8), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, -800068(%rbp)
	jg	.L122
.L123:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L196
	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
	.p2align 4,,10
	.p2align 3
.L166:
	.cfi_restore_state
	movl	%r10d, %esi
	movq	%r10, %r9
	jmp	.L144
.L186:
	movl	%r12d, %edx
	xorl	%esi, %esi
	leaq	rank(%rip), %rdi
	movl	%r9d, -800088(%rbp)
	salq	$2, %rdx
	call	memset@PLT
	movl	-800088(%rbp), %r9d
	jmp	.L149
.L113:
	movl	$0, pare(%rip)
	movl	$1, %eax
	leaq	pare(%rip), %rbx
	cmpl	$1, %r12d
	jne	.L152
	leaq	rank(%rip), %rdx
	xorl	%eax, %eax
	movl	$4, %ecx
	movq	%rdx, %rdi
	rep stosb
	xorl	%eax, %eax
	leaq	size(%rip), %rcx
	jmp	.L154
.L194:
	movl	$1, size(%rip)
	movl	$1, %eax
	leaq	size(%rip), %rcx
	jmp	.L150
.L193:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L107
.L196:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE28:
	.size	main, .-main
	.globl	size
	.bss
	.align 32
	.type	size, @object
	.size	size, 400000
size:
	.zero	400000
	.globl	rank
	.align 32
	.type	rank, @object
	.size	rank, 400000
rank:
	.zero	400000
	.globl	pare
	.align 32
	.type	pare, @object
	.size	pare, 400000
pare:
	.zero	400000
	.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
	.align 16
.LC2:
	.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>
#define NUM 100000
int pare[NUM];
int rank[NUM];
int size[NUM];


void init(int n){
	for(int i=0;i<n;i++){
		pare[i]=i;
		rank[i]=0;
		size[i]=1;
	}
}

int find(int x){
	if(pare[x]==x)return x;
	return pare[x] = find(pare[x]);
}

void unite(int x,int y){
	x = find(x);
	y = find(y);
	int cx = size[x];
	int cy = size[y];
	if(x==y)return;
	size[x] = size[y] = cx+cy;
	if(rank[x] < rank[y]){
		pare[x]=y;
	}else{
		pare[y] = x;
		if(rank[x] == rank[y])rank[x]++;
	}
}

int same(int x,int y){
	return find(x)==find(y)?1:0;
}

int count(int x){
	return size[find(x)];
}


int main(void){
	int n,m,i;
	scanf("%d%d",&n,&m);
	int a[m],b[m];
	long long ans[NUM]={0};
	for(i=0;i<m;i++){
		scanf("%d%d",&a[i],&b[i]);
		a[i]--,b[i]--;
	}
	ans[m-1] = (long long)n*(n-1)/2;
	init(n);


	for(i=m-2;i>=0;i--){
		if(same(a[i+1],b[i+1])){
			ans[i] = ans[i+1];
		}else{
			ans[i] = ans[i+1] - (long long)count(a[i+1])*count(b[i+1]);
			unite(a[i+1],b[i+1]);
		}
	}
	for(i=0;i<m;i++)printf("%lld\n",ans[i]);
	
	return 0;
}
6 5
3 3
1 2
5 6
3 4
4 5
 4 5
1 2
3 4
1 3
3 3
1 4
 2 1
2 2
 6 5
3 3
1 2
5 6
3 4
2 5
 4 5
1 2
3 4
1 3
3 3
1 1
 6 5
2 3
1 2
5 6
3 4
4 3
 4 5
1 0
3 4
1 3
2 3
1 4
 6 5
3 3
1 1
5 6
3 4
4 5
 4 5
1 2
3 4
1 3
3 2
1 1
 4 1
1 3
3 4
1 3
3 3
1 1

8
9
12
14
15
 3
3
5
5
6
 1
 8
11
13
14
15
 3
5
6
6
6
 12
13
14
14
15
 0
0
4
5
6
 9
9
12
14
15
 0
3
5
6
6
 6

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

```c
#include <stdio.h>
#define NUM 100000
int pare[NUM];
int rank[NUM];
int size[NUM];


void init(int n){
	for(int i=0;i<n;i++){
		pare[i]=i;
		rank[i]=0;
		size[i]=1;
	}
}

int find(int x){
	if(pare[x]==x)return x;
	return pare[x] = find(pare[x]);
}

void unite(int x,int y){
	x = find(x);
	y = find(y);
	int cx = size[x];
	int cy = size[y];
	if(x==y)return;
	size[x] = size[y] = cx+cy;
	if(rank[x] < rank[y]){
		pare[x]=y;
	}else{
		pare[y] = x;
		if(rank[x] == rank[y])rank[x]++;
	}
}

int same(int x,int y){
	return find(x)==find(y)?1:0;
}

int count(int x){
	return size[find(x)];
}


int main(void){
	int n,m,i;
	scanf("%d%d",&n,&m);
	int a[m],b[m];
	long long ans[NUM]={0};
	for(i=0;i<m;i++){
		scanf("%d%d",&a[i],&b[i]);
		a[i]--,b[i]--;
	}
	ans[m-1] = (long long)n*(n-1)/2;
	init(n);


	for(i=m-2;i>=0;i--){
		if(same(a[i+1],b[i+1])){
			ans[i] = ans[i+1];
		}else{
			ans[i] = ans[i+1] - (long long)count(a[i+1])*count(b[i+1]);
			unite(a[i+1],b[i+1]);
		}
	}
	for(i=0;i<m;i++)printf("%lld\n",ans[i]);
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pare
	.bss
	.align 32
	.type	pare, @object
	.size	pare, 400000
pare:
	.zero	400000
	.globl	rank
	.align 32
	.type	rank, @object
	.size	rank, 400000
rank:
	.zero	400000
	.globl	size
	.align 32
	.type	size, @object
	.size	size, 400000
size:
	.zero	400000
	.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	pare(%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)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	$1, (%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	find
	.type	find, @function
find:
.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	pare(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L5
	movl	-4(%rbp), %eax
	jmp	.L6
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pare(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	find
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pare(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pare(%rip), %rax
	movl	(%rdx,%rax), %eax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	find, .-find
	.globl	unite
	.type	unite, @function
unite:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	find
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	find
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L11
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	size(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pare(%rip), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L7
.L10:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pare(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L7
.L11:
	nop
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	unite, .-unite
	.globl	same
	.type	same, @function
same:
.LFB3:
	.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	find
	movl	%eax, %ebx
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	find
	cmpl	%eax, %ebx
	sete	%al
	movzbl	%al, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	same, .-same
	.globl	count
	.type	count, @function
count:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	find
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	count, .-count
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.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
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1400, %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, %r13
	leaq	-800104(%rbp), %rdx
	leaq	-800108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -800096(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -800128(%rbp)
	movq	$0, -800120(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -800144(%rbp)
	movq	$0, -800136(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L17:
	cmpq	%rdx, %rsp
	je	.L18
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L17
.L18:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L19
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L19:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -800088(%rbp)
	movl	-800104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -800080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -800160(%rbp)
	movq	$0, -800152(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	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
.L20:
	cmpq	%rdx, %rsp
	je	.L21
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L20
.L21:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L22
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L22:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -800072(%rbp)
	leaq	-800064(%rbp), %rax
	movl	$800000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -800100(%rbp)
	jmp	.L23
.L24:
	movl	-800100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-800072(%rbp), %rax
	addq	%rax, %rdx
	movl	-800100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-800088(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-800088(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-800088(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-800072(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-800072(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -800100(%rbp)
.L23:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jl	.L24
	movl	-800108(%rbp), %eax
	movslq	%eax, %rdx
	movl	-800108(%rbp), %eax
	subl	$1, %eax
	cltq
	imulq	%rdx, %rax
	movl	-800104(%rbp), %edx
	subl	$1, %edx
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movslq	%edx, %rax
	movq	%rcx, -800064(%rbp,%rax,8)
	movl	-800108(%rbp), %eax
	movl	%eax, %edi
	call	init
	movl	-800104(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -800100(%rbp)
	jmp	.L25
.L28:
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-800100(%rbp), %eax
	leal	1(%rax), %ecx
	movq	-800088(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	same
	testl	%eax, %eax
	je	.L26
	movl	-800100(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-800064(%rbp,%rax,8), %rdx
	movl	-800100(%rbp), %eax
	cltq
	movq	%rdx, -800064(%rbp,%rax,8)
	jmp	.L27
.L26:
	movl	-800100(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-800064(%rbp,%rax,8), %rbx
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800088(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %edi
	call	count
	movslq	%eax, %r12
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %edi
	call	count
	cltq
	imulq	%r12, %rax
	subq	%rax, %rbx
	movq	%rbx, %rdx
	movl	-800100(%rbp), %eax
	cltq
	movq	%rdx, -800064(%rbp,%rax,8)
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-800100(%rbp), %eax
	leal	1(%rax), %ecx
	movq	-800088(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	unite
.L27:
	subl	$1, -800100(%rbp)
.L25:
	cmpl	$0, -800100(%rbp)
	jns	.L28
	movl	$0, -800100(%rbp)
	jmp	.L29
.L30:
	movl	-800100(%rbp), %eax
	cltq
	movq	-800064(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -800100(%rbp)
.L29:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jl	.L30
	movl	$0, %eax
	movq	%r13, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	pare
	.bss
	.align 32
	.type	pare, @object
	.size	pare, 400000
pare:
	.zero	400000
	.globl	rank
	.align 32
	.type	rank, @object
	.size	rank, 400000
rank:
	.zero	400000
	.globl	size
	.align 32
	.type	size, @object
	.size	size, 400000
size:
	.zero	400000
	.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	pare(%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)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	$1, (%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	find
	.type	find, @function
find:
.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	pare(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L5
	movl	-4(%rbp), %eax
	jmp	.L6
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pare(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	find
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pare(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pare(%rip), %rax
	movl	(%rdx,%rax), %eax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	find, .-find
	.globl	unite
	.type	unite, @function
unite:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	find
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	find
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L11
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	size(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pare(%rip), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L7
.L10:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pare(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rank(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rank(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L7
.L11:
	nop
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	unite, .-unite
	.globl	same
	.type	same, @function
same:
.LFB3:
	.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	find
	movl	%eax, %ebx
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	find
	cmpl	%eax, %ebx
	sete	%al
	movzbl	%al, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	same, .-same
	.globl	count
	.type	count, @function
count:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	find
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	count, .-count
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.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
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1400, %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, %r13
	leaq	-800104(%rbp), %rdx
	leaq	-800108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -800096(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -800128(%rbp)
	movq	$0, -800120(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -800144(%rbp)
	movq	$0, -800136(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L17:
	cmpq	%rdx, %rsp
	je	.L18
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L17
.L18:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L19
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L19:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -800088(%rbp)
	movl	-800104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -800080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -800160(%rbp)
	movq	$0, -800152(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	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
.L20:
	cmpq	%rdx, %rsp
	je	.L21
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L20
.L21:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L22
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L22:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -800072(%rbp)
	leaq	-800064(%rbp), %rax
	movl	$800000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -800100(%rbp)
	jmp	.L23
.L24:
	movl	-800100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-800072(%rbp), %rax
	addq	%rax, %rdx
	movl	-800100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-800088(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-800088(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-800088(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-800072(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-800072(%rbp), %rax
	movl	-800100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -800100(%rbp)
.L23:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jl	.L24
	movl	-800108(%rbp), %eax
	movslq	%eax, %rdx
	movl	-800108(%rbp), %eax
	subl	$1, %eax
	cltq
	imulq	%rdx, %rax
	movl	-800104(%rbp), %edx
	subl	$1, %edx
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movslq	%edx, %rax
	movq	%rcx, -800064(%rbp,%rax,8)
	movl	-800108(%rbp), %eax
	movl	%eax, %edi
	call	init
	movl	-800104(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -800100(%rbp)
	jmp	.L25
.L28:
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-800100(%rbp), %eax
	leal	1(%rax), %ecx
	movq	-800088(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	same
	testl	%eax, %eax
	je	.L26
	movl	-800100(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-800064(%rbp,%rax,8), %rdx
	movl	-800100(%rbp), %eax
	cltq
	movq	%rdx, -800064(%rbp,%rax,8)
	jmp	.L27
.L26:
	movl	-800100(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-800064(%rbp,%rax,8), %rbx
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800088(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %edi
	call	count
	movslq	%eax, %r12
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %edi
	call	count
	cltq
	imulq	%r12, %rax
	subq	%rax, %rbx
	movq	%rbx, %rdx
	movl	-800100(%rbp), %eax
	cltq
	movq	%rdx, -800064(%rbp,%rax,8)
	movl	-800100(%rbp), %eax
	leal	1(%rax), %edx
	movq	-800072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-800100(%rbp), %eax
	leal	1(%rax), %ecx
	movq	-800088(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	unite
.L27:
	subl	$1, -800100(%rbp)
.L25:
	cmpl	$0, -800100(%rbp)
	jns	.L28
	movl	$0, -800100(%rbp)
	jmp	.L29
.L30:
	movl	-800100(%rbp), %eax
	cltq
	movq	-800064(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -800100(%rbp)
.L29:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jl	.L30
	movl	$0, %eax
	movq	%r13, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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:
