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

```c
#include <stdio.h>
int b[300000];
int count[300000]={0};
int fa(int k){
	int i=0;
	int a[100000];
	while (b[k]!=k){
		a[i]=k;
		i++;
		k=b[k];
	}
	for (int j=0;j<i;j++){
		b[a[j]]=k;
	}
	return k;
}
int main(){
	int n,m,x,y;
	scanf("%d %d",&n,&m);
	for (int i=1;i<=n;i++){
		b[i]=i;
		count[i]=1;
	}
	for (int i=1;i<=m;i++){
		scanf("%d %d",&x,&y);
		int fax=fa(x);
		int fay=fa(y);
		if (fax==fay) continue;
		b[fax]=fay;
		count[fay]+=count[fax];
	} 
	int ans=0;
	for (int i=1;i<=n;i++){
		if (ans<count[i]) 
		  ans=count[i]; 
	}
	printf("%d",ans);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 1200000
b:
	.zero	1200000
	.globl	count
	.align 32
	.type	count, @object
	.size	count, 1200000
count:
	.zero	1200000
	.text
	.globl	fa
	.type	fa, @function
fa:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movl	%edi, -400036(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400024(%rbp)
	jmp	.L2
.L3:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400036(%rbp), %edx
	movl	%edx, -400016(%rbp,%rax,4)
	addl	$1, -400024(%rbp)
	movl	-400036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400036(%rbp)
.L2:
	movl	-400036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -400036(%rbp)
	jne	.L3
	movl	$0, -400020(%rbp)
	jmp	.L4
.L5:
	movl	-400020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-400036(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -400020(%rbp)
.L4:
	movl	-400020(%rbp), %eax
	cmpl	-400024(%rbp), %eax
	jl	.L5
	movl	-400036(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fa, .-fa
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -32(%rbp)
	jmp	.L9
.L10:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-32(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L9:
	movl	-48(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L10
	movl	$1, -28(%rbp)
	jmp	.L11
.L14:
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	fa
	movl	%eax, -16(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, %edi
	call	fa
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L20
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L13
.L20:
	nop
.L13:
	addl	$1, -28(%rbp)
.L11:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L14
	movl	$0, -24(%rbp)
	movl	$1, -20(%rbp)
	jmp	.L15
.L17:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jge	.L16
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
.L16:
	addl	$1, -20(%rbp)
.L15:
	movl	-48(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L17
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	fa
	.type	fa, @function
fa:
.LFB23:
	.cfi_startproc
	endbr64
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2712, %rsp
	.cfi_def_cfa_offset 400032
	leaq	b(%rip), %rsi
	movq	%fs:40, %rax
	movq	%rax, 400008(%rsp)
	xorl	%eax, %eax
	movslq	%edi, %rax
	movl	(%rsi,%rax,4), %r8d
	cmpl	%r8d, %edi
	je	.L1
	xorl	%edx, %edx
	movq	%rsp, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%ecx, %r8d
.L3:
	movslq	%r8d, %rcx
	movl	%edi, (%rax,%rdx,4)
	movq	%rdx, %r9
	movl	%r8d, %edi
	movl	(%rsi,%rcx,4), %ecx
	addq	$1, %rdx
	cmpl	%r8d, %ecx
	jne	.L6
	leaq	4(%rsp,%r9,4), %rcx
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	(%rax), %rdx
	addq	$4, %rax
	movl	%r8d, (%rsi,%rdx,4)
	cmpq	%rax, %rcx
	jne	.L4
.L1:
	movq	400008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	movl	%r8d, %eax
	addq	$400024, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	fa, .-fa
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	movq	%rbx, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L12
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L31
	movl	%ecx, %eax
	movdqa	.LC0(%rip), %xmm0
	movdqa	.LC2(%rip), %xmm3
	leaq	b(%rip), %rdi
	shrl	$2, %eax
	movdqa	.LC3(%rip), %xmm2
	leaq	count(%rip), %rsi
	leal	-1(%rax), %edx
	movl	$4, %eax
	salq	$4, %rdx
	addq	$20, %rdx
	.p2align 4,,10
	.p2align 3
.L14:
	movdqa	%xmm0, %xmm1
	movups	%xmm2, (%rsi,%rax)
	paddd	%xmm3, %xmm0
	movups	%xmm1, (%rdi,%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L14
	movl	%ecx, %edx
	andl	$-4, %edx
	leal	1(%rdx), %eax
	cmpl	%edx, %ecx
	je	.L38
.L13:
	movslq	%eax, %rdx
	movl	%eax, (%rdi,%rdx,4)
	movl	$1, (%rsi,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ecx
	jl	.L16
	movslq	%edx, %r8
	addl	$2, %eax
	movl	%edx, (%rdi,%r8,4)
	movl	$1, (%rsi,%r8,4)
	cmpl	%eax, %ecx
	jl	.L16
	movslq	%eax, %rdx
	movl	%eax, (%rdi,%rdx,4)
	movl	$1, (%rsi,%rdx,4)
.L16:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
.L26:
	movl	$1, %r15d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	count(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %edi
	call	fa
	movl	20(%rsp), %edi
	movslq	%eax, %r14
	call	fa
	cmpl	%eax, %r14d
	je	.L17
	leaq	b(%rip), %rcx
	movl	0(%r13,%r14,4), %edx
	addl	$1, %r15d
	movl	%eax, (%rcx,%r14,4)
	cltq
	addl	%edx, 0(%r13,%rax,4)
	cmpl	12(%rsp), %r15d
	jle	.L20
.L19:
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L27
.L21:
	testl	%ecx, %ecx
	movl	$1, %esi
	cmovg	%ecx, %esi
	cmpl	$3, %ecx
	jle	.L32
.L28:
	leaq	4+count(%rip), %rax
	pxor	%xmm2, %xmm2
	movl	%esi, %edx
	shrl	$2, %edx
	leaq	16(%rax), %rdi
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rdi, %rdx
	.p2align 4,,10
	.p2align 3
.L24:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rdx
	jne	.L24
	movdqa	%xmm2, %xmm0
	movl	%esi, %edi
	psrldq	$8, %xmm0
	andl	$-4, %edi
	movdqa	%xmm0, %xmm1
	leal	1(%rdi), %eax
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %edx
	cmpl	%esi, %edi
	je	.L22
.L23:
	leaq	count(%rip), %rdi
	movslq	%eax, %rsi
	movl	(%rdi,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	leal	1(%rax), %esi
	cmpl	%ecx, %esi
	jg	.L22
	movslq	%esi, %rsi
	movl	(%rdi,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	addl	$2, %eax
	cmpl	%ecx, %eax
	jg	.L22
	cltq
	movl	(%rdi,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L22:
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	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
.L17:
	.cfi_restore_state
	addl	$1, %r15d
	cmpl	%r15d, 12(%rsp)
	jge	.L20
	jmp	.L19
.L38:
	cmpl	$0, 12(%rsp)
	jg	.L26
	testl	%ecx, %ecx
	movl	$1, %esi
	cmovg	%ecx, %esi
	jmp	.L28
.L12:
	cmpl	$0, 12(%rsp)
	jg	.L26
.L27:
	xorl	%edx, %edx
	jmp	.L22
.L31:
	movl	$1, %eax
	leaq	b(%rip), %rdi
	leaq	count(%rip), %rsi
	jmp	.L13
.L32:
	movl	$1, %eax
	xorl	%edx, %edx
	jmp	.L23
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	count
	.bss
	.align 32
	.type	count, @object
	.size	count, 1200000
count:
	.zero	1200000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 1200000
b:
	.zero	1200000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.long	1
	.long	1
	.long	1
	.long	1
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	fa
	.type	fa, @function
fa:
.LFB23:
	.cfi_startproc
	endbr64
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2712, %rsp
	.cfi_def_cfa_offset 400032
	leaq	b(%rip), %rsi
	movq	%fs:40, %rax
	movq	%rax, 400008(%rsp)
	xorl	%eax, %eax
	movslq	%edi, %rax
	movl	(%rsi,%rax,4), %r8d
	cmpl	%r8d, %edi
	je	.L1
	xorl	%edx, %edx
	movq	%rsp, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%ecx, %r8d
.L3:
	movslq	%r8d, %rcx
	movl	%edi, (%rax,%rdx,4)
	movq	%rdx, %r9
	movl	%r8d, %edi
	movl	(%rsi,%rcx,4), %ecx
	addq	$1, %rdx
	cmpl	%r8d, %ecx
	jne	.L6
	leaq	4(%rsp,%r9,4), %rcx
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	(%rax), %rdx
	addq	$4, %rax
	movl	%r8d, (%rsi,%rdx,4)
	cmpq	%rax, %rcx
	jne	.L4
.L1:
	movq	400008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	movl	%r8d, %eax
	addq	$400024, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	fa, .-fa
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	movq	%rbx, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L12
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L31
	movl	%ecx, %eax
	movdqa	.LC0(%rip), %xmm0
	movdqa	.LC2(%rip), %xmm3
	leaq	b(%rip), %rdi
	shrl	$2, %eax
	movdqa	.LC3(%rip), %xmm2
	leaq	count(%rip), %rsi
	leal	-1(%rax), %edx
	movl	$4, %eax
	salq	$4, %rdx
	addq	$20, %rdx
	.p2align 4,,10
	.p2align 3
.L14:
	movdqa	%xmm0, %xmm1
	movups	%xmm2, (%rsi,%rax)
	paddd	%xmm3, %xmm0
	movups	%xmm1, (%rdi,%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L14
	movl	%ecx, %edx
	andl	$-4, %edx
	leal	1(%rdx), %eax
	cmpl	%edx, %ecx
	je	.L38
.L13:
	movslq	%eax, %rdx
	movl	%eax, (%rdi,%rdx,4)
	movl	$1, (%rsi,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ecx
	jl	.L16
	movslq	%edx, %r8
	addl	$2, %eax
	movl	%edx, (%rdi,%r8,4)
	movl	$1, (%rsi,%r8,4)
	cmpl	%eax, %ecx
	jl	.L16
	movslq	%eax, %rdx
	movl	%eax, (%rdi,%rdx,4)
	movl	$1, (%rsi,%rdx,4)
.L16:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
.L26:
	movl	$1, %r15d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	count(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %edi
	call	fa
	movl	20(%rsp), %edi
	movslq	%eax, %r14
	call	fa
	cmpl	%eax, %r14d
	je	.L17
	leaq	b(%rip), %rcx
	movl	0(%r13,%r14,4), %edx
	addl	$1, %r15d
	movl	%eax, (%rcx,%r14,4)
	cltq
	addl	%edx, 0(%r13,%rax,4)
	cmpl	12(%rsp), %r15d
	jle	.L20
.L19:
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L27
.L21:
	testl	%ecx, %ecx
	movl	$1, %esi
	cmovg	%ecx, %esi
	cmpl	$3, %ecx
	jle	.L32
.L28:
	leaq	4+count(%rip), %rax
	pxor	%xmm2, %xmm2
	movl	%esi, %edx
	shrl	$2, %edx
	leaq	16(%rax), %rdi
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rdi, %rdx
	.p2align 4,,10
	.p2align 3
.L24:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rdx
	jne	.L24
	movdqa	%xmm2, %xmm0
	movl	%esi, %edi
	psrldq	$8, %xmm0
	andl	$-4, %edi
	movdqa	%xmm0, %xmm1
	leal	1(%rdi), %eax
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %edx
	cmpl	%esi, %edi
	je	.L22
.L23:
	leaq	count(%rip), %rdi
	movslq	%eax, %rsi
	movl	(%rdi,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	leal	1(%rax), %esi
	cmpl	%ecx, %esi
	jg	.L22
	movslq	%esi, %rsi
	movl	(%rdi,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	addl	$2, %eax
	cmpl	%ecx, %eax
	jg	.L22
	cltq
	movl	(%rdi,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L22:
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	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
.L17:
	.cfi_restore_state
	addl	$1, %r15d
	cmpl	%r15d, 12(%rsp)
	jge	.L20
	jmp	.L19
.L38:
	cmpl	$0, 12(%rsp)
	jg	.L26
	testl	%ecx, %ecx
	movl	$1, %esi
	cmovg	%ecx, %esi
	jmp	.L28
.L12:
	cmpl	$0, 12(%rsp)
	jg	.L26
.L27:
	xorl	%edx, %edx
	jmp	.L22
.L31:
	movl	$1, %eax
	leaq	b(%rip), %rdi
	leaq	count(%rip), %rsi
	jmp	.L13
.L32:
	movl	$1, %eax
	xorl	%edx, %edx
	jmp	.L23
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	count
	.bss
	.align 32
	.type	count, @object
	.size	count, 1200000
count:
	.zero	1200000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 1200000
b:
	.zero	1200000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.long	1
	.long	1
	.long	1
	.long	1
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
int b[300000];
int count[300000]={0};
int fa(int k){
	int i=0;
	int a[100000];
	while (b[k]!=k){
		a[i]=k;
		i++;
		k=b[k];
	}
	for (int j=0;j<i;j++){
		b[a[j]]=k;
	}
	return k;
}
int main(){
	int n,m,x,y;
	scanf("%d %d",&n,&m);
	for (int i=1;i<=n;i++){
		b[i]=i;
		count[i]=1;
	}
	for (int i=1;i<=m;i++){
		scanf("%d %d",&x,&y);
		int fax=fa(x);
		int fay=fa(y);
		if (fax==fay) continue;
		b[fax]=fay;
		count[fay]+=count[fax];
	} 
	int ans=0;
	for (int i=1;i<=n;i++){
		if (ans<count[i]) 
		  ans=count[i]; 
	}
	printf("%d",ans);
}

10 4
3 1
3 1
5 9
2 6
 4 10
1 1
2 1
1 2
2 1
1 2
1 3
1 4
2 3
2 4
3 4
 2 0
1 1
2 1
1 6
2 1
1 2
1 3
1 4
3 3
2 4
4 4
 10 4
6 1
3 1
5 6
2 6
 5 2
1 4
3 4
3 1
 10 4
6 1
3 1
5 9
2 6
 4 10
1 1
2 1
1 2
2 1
1 2
1 3
1 4
1 3
2 4
3 4
 4 10
1 1
2 1
1 2
2 1
1 2
1 3
1 4
1 4
2 4
3 4
 5 3
1 2
3 4
3 1
 10 4
1 1
4 1
5 9
2 6

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

```c
#include <stdio.h>
int b[300000];
int count[300000]={0};
int fa(int k){
	int i=0;
	int a[100000];
	while (b[k]!=k){
		a[i]=k;
		i++;
		k=b[k];
	}
	for (int j=0;j<i;j++){
		b[a[j]]=k;
	}
	return k;
}
int main(){
	int n,m,x,y;
	scanf("%d %d",&n,&m);
	for (int i=1;i<=n;i++){
		b[i]=i;
		count[i]=1;
	}
	for (int i=1;i<=m;i++){
		scanf("%d %d",&x,&y);
		int fax=fa(x);
		int fay=fa(y);
		if (fax==fay) continue;
		b[fax]=fay;
		count[fay]+=count[fax];
	} 
	int ans=0;
	for (int i=1;i<=n;i++){
		if (ans<count[i]) 
		  ans=count[i]; 
	}
	printf("%d",ans);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 1200000
b:
	.zero	1200000
	.globl	count
	.align 32
	.type	count, @object
	.size	count, 1200000
count:
	.zero	1200000
	.text
	.globl	fa
	.type	fa, @function
fa:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movl	%edi, -400036(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400024(%rbp)
	jmp	.L2
.L3:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400036(%rbp), %edx
	movl	%edx, -400016(%rbp,%rax,4)
	addl	$1, -400024(%rbp)
	movl	-400036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400036(%rbp)
.L2:
	movl	-400036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -400036(%rbp)
	jne	.L3
	movl	$0, -400020(%rbp)
	jmp	.L4
.L5:
	movl	-400020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-400036(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -400020(%rbp)
.L4:
	movl	-400020(%rbp), %eax
	cmpl	-400024(%rbp), %eax
	jl	.L5
	movl	-400036(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fa, .-fa
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -32(%rbp)
	jmp	.L9
.L10:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-32(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L9:
	movl	-48(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L10
	movl	$1, -28(%rbp)
	jmp	.L11
.L14:
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	fa
	movl	%eax, -16(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, %edi
	call	fa
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L20
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L13
.L20:
	nop
.L13:
	addl	$1, -28(%rbp)
.L11:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L14
	movl	$0, -24(%rbp)
	movl	$1, -20(%rbp)
	jmp	.L15
.L17:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jge	.L16
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
.L16:
	addl	$1, -20(%rbp)
.L15:
	movl	-48(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L17
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 1200000
b:
	.zero	1200000
	.globl	count
	.align 32
	.type	count, @object
	.size	count, 1200000
count:
	.zero	1200000
	.text
	.globl	fa
	.type	fa, @function
fa:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movl	%edi, -400036(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400024(%rbp)
	jmp	.L2
.L3:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400036(%rbp), %edx
	movl	%edx, -400016(%rbp,%rax,4)
	addl	$1, -400024(%rbp)
	movl	-400036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400036(%rbp)
.L2:
	movl	-400036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -400036(%rbp)
	jne	.L3
	movl	$0, -400020(%rbp)
	jmp	.L4
.L5:
	movl	-400020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-400036(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -400020(%rbp)
.L4:
	movl	-400020(%rbp), %eax
	cmpl	-400024(%rbp), %eax
	jl	.L5
	movl	-400036(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fa, .-fa
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -32(%rbp)
	jmp	.L9
.L10:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-32(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L9:
	movl	-48(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L10
	movl	$1, -28(%rbp)
	jmp	.L11
.L14:
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	fa
	movl	%eax, -16(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, %edi
	call	fa
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L20
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L13
.L20:
	nop
.L13:
	addl	$1, -28(%rbp)
.L11:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L14
	movl	$0, -24(%rbp)
	movl	$1, -20(%rbp)
	jmp	.L15
.L17:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jge	.L16
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
.L16:
	addl	$1, -20(%rbp)
.L15:
	movl	-48(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L17
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
