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

```c
#include <stdio.h>
#include <stdlib.h>
int parent[200001],max,component;void _union_(int a,int b);int find(int a);
int find(int a)
{
    if(parent[a]<0)
        return(a);
    else
    {
        return(parent[a]=find(parent[a]));
    }
}
void _union_(int a,int b)
{
    int pa,pb;pa=find(a);pb=find(b);
    if(pa==pb)
        return;
    else
    {
        if((-parent[pa])<=(-parent[pb]))
        {
          parent[pb]=parent[pa]+parent[pb];parent[pa]=pb;if(max<(-parent[pb]))max=-parent[pb];component--;return;
        }
        if((-parent[pa])>(-parent[pb]))
        {
          parent[pa]=parent[pa]+parent[pb];parent[pb]=pa;if(max<(-parent[pa]))max=-parent[pa];component--;
        }
    }
}
int main()
{
    int j,n,m;scanf("%d %d",&n,&m);
    for(j=0;j<=n;j++)
        parent[j]=-1;
    component=n;max=1;
    for(j=0;j<m;j++)
    {
        int a,b;scanf("%d %d",&a,&b);
        _union_(a,b);
        //printf("%d %d\n",component,max);
    }
    printf("%d\n",max);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	parent
	.bss
	.align 32
	.type	parent, @object
	.size	parent, 800004
parent:
	.zero	800004
	.globl	max
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.zero	4
	.globl	component
	.align 4
	.type	component, @object
	.size	component, 4
component:
	.zero	4
	.text
	.globl	find
	.type	find, @function
find:
.LFB6:
	.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	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jns	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	find
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	parent(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	find, .-find
	.globl	_union_
	.type	_union_, @function
_union_:
.LFB7:
	.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, -8(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	find
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	je	.L10
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, %edx
	movl	max(%rip), %eax
	cmpl	%eax, %edx
	jle	.L8
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, max(%rip)
.L8:
	movl	component(%rip), %eax
	subl	$1, %eax
	movl	%eax, component(%rip)
	jmp	.L4
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, %edx
	movl	max(%rip), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, max(%rip)
.L9:
	movl	component(%rip), %eax
	subl	$1, %eax
	movl	%eax, component(%rip)
	jmp	.L4
.L10:
	nop
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_union_, .-_union_
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L12
.L13:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L12:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L13
	movl	-28(%rbp), %eax
	movl	%eax, component(%rip)
	movl	$1, max(%rip)
	movl	$0, -12(%rbp)
	jmp	.L14
.L15:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	_union_
	addl	$1, -12(%rbp)
.L14:
	movl	-24(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L15
	movl	max(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	find
	.type	find, @function
find:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	parent(%rip), %rbx
	movq	%rbp, %rax
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movl	(%rbx,%rbp,4), %edx
	testl	%edx, %edx
	jns	.L8
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movslq	%edx, %r12
	movl	(%rbx,%r12,4), %eax
	testl	%eax, %eax
	jns	.L9
.L3:
	movl	%edx, (%rbx,%rbp,4)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movl	%edx, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movslq	%eax, %r13
	movl	(%rbx,%r13,4), %edi
	testl	%edi, %edi
	js	.L4
	call	find
	movl	%eax, (%rbx,%r13,4)
.L4:
	movl	%eax, (%rbx,%r12,4)
	movl	%eax, %edx
	jmp	.L3
	.cfi_endproc
.LFE39:
	.size	find, .-find
	.p2align 4
	.globl	_union_
	.type	_union_, @function
_union_:
.LFB40:
	.cfi_startproc
	endbr64
	movslq	%edi, %r9
	leaq	parent(%rip), %rcx
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r9, %r8
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	(%rcx,%r9,4), %eax
	testl	%eax, %eax
	jns	.L36
.L11:
	movslq	%esi, %r9
	movl	(%rcx,%r9,4), %eax
	testl	%eax, %eax
	jns	.L37
.L20:
	cmpl	%r8d, %esi
	je	.L10
	movslq	%r8d, %rax
	movslq	%esi, %rdx
	movl	max(%rip), %r10d
	movl	(%rcx,%rax,4), %r9d
	movl	(%rcx,%rdx,4), %edi
	leal	(%r9,%rdi), %r11d
	cmpl	%edi, %r9d
	jge	.L38
	movl	%r11d, (%rcx,%rax,4)
	movl	%r8d, (%rcx,%rdx,4)
	movl	(%rcx,%rax,4), %eax
	negl	%eax
	cmpl	%r10d, %eax
	jg	.L35
.L32:
	subl	$1, component(%rip)
.L10:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	movl	%r11d, (%rcx,%rdx,4)
	movl	%esi, (%rcx,%rax,4)
	movl	(%rcx,%rdx,4), %eax
	negl	%eax
	cmpl	%r10d, %eax
	jle	.L32
.L35:
	movl	%eax, max(%rip)
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L37:
	movslq	%eax, %rsi
	movl	(%rcx,%rsi,4), %edx
	testl	%edx, %edx
	jns	.L39
.L21:
	movl	%eax, (%rcx,%r9,4)
	movl	%eax, %esi
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L36:
	movslq	%eax, %r8
	movl	(%rcx,%r8,4), %edx
	testl	%edx, %edx
	jns	.L40
.L12:
	movl	%eax, (%rcx,%r9,4)
	movl	%eax, %r8d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L39:
	movslq	%edx, %r10
	movl	(%rcx,%r10,4), %eax
	testl	%eax, %eax
	jns	.L41
.L22:
	movl	%edx, (%rcx,%rsi,4)
	movl	%edx, %eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L40:
	movslq	%edx, %r10
	movl	(%rcx,%r10,4), %eax
	testl	%eax, %eax
	jns	.L42
.L13:
	movl	%edx, (%rcx,%r8,4)
	movl	%edx, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	%eax, %r11
	movl	(%rcx,%r11,4), %edx
	testl	%edx, %edx
	jns	.L43
.L23:
	movl	%eax, (%rcx,%r10,4)
	movl	%eax, %edx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L42:
	movslq	%eax, %r11
	movl	(%rcx,%r11,4), %edx
	testl	%edx, %edx
	jns	.L44
.L14:
	movl	%eax, (%rcx,%r10,4)
	movl	%eax, %edx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L44:
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %eax
	testl	%eax, %eax
	jns	.L45
.L15:
	movl	%edx, (%rcx,%r11,4)
	movl	%edx, %eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L43:
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %eax
	testl	%eax, %eax
	jns	.L46
.L24:
	movl	%edx, (%rcx,%r11,4)
	movl	%edx, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L45:
	movslq	%eax, %rbp
	movl	(%rcx,%rbp,4), %edx
	testl	%edx, %edx
	jns	.L47
.L16:
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L46:
	movslq	%eax, %rbp
	movl	(%rcx,%rbp,4), %edx
	testl	%edx, %edx
	jns	.L48
.L25:
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edx
	jmp	.L24
.L47:
	movslq	%edx, %r12
	movl	(%rcx,%r12,4), %eax
	testl	%eax, %eax
	jns	.L49
.L17:
	movl	%edx, (%rcx,%rbp,4)
	movl	%edx, %eax
	jmp	.L16
.L48:
	movslq	%edx, %r12
	movl	(%rcx,%r12,4), %eax
	testl	%eax, %eax
	jns	.L50
.L26:
	movl	%edx, (%rcx,%rbp,4)
	movl	%edx, %eax
	jmp	.L25
.L49:
	movslq	%eax, %r13
	movl	(%rcx,%r13,4), %edx
	testl	%edx, %edx
	jns	.L51
.L18:
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %edx
	jmp	.L17
.L50:
	movslq	%eax, %r13
	movl	(%rcx,%r13,4), %edx
	testl	%edx, %edx
	jns	.L52
.L27:
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %edx
	jmp	.L26
.L51:
	movslq	%edx, %r14
	movl	(%rcx,%r14,4), %edi
	testl	%edi, %edi
	js	.L19
	call	find
	movl	%eax, (%rcx,%r14,4)
	movl	%eax, %edx
.L19:
	movl	%edx, (%rcx,%r13,4)
	movl	%edx, %eax
	jmp	.L18
.L52:
	movslq	%edx, %r14
	movl	(%rcx,%r14,4), %edi
	testl	%edi, %edi
	js	.L28
	call	find
	movl	%eax, (%rcx,%r14,4)
	movl	%eax, %edx
.L28:
	movl	%edx, (%rcx,%r13,4)
	movl	%edx, %eax
	jmp	.L27
	.cfi_endproc
.LFE40:
	.size	_union_, .-_union_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rdx
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %ebx
	testl	%ebx, %ebx
	js	.L57
	movslq	%ebx, %rax
	leaq	parent(%rip), %rbp
	movl	$255, %esi
	leaq	4(,%rax,4), %rdx
	movq	%rbp, %rdi
	call	memset@PLT
.L57:
	movl	44(%rsp), %eax
	movl	%ebx, component(%rip)
	movl	$1, max(%rip)
	testl	%eax, %eax
	jle	.L56
	xorl	%ebx, %ebx
	leaq	52(%rsp), %r14
	leaq	48(%rsp), %r13
	leaq	parent(%rip), %rbp
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L58:
	movslq	%ecx, %rsi
	movl	0(%rbp,%rsi,4), %eax
	testl	%eax, %eax
	jns	.L86
.L67:
	cmpl	%r8d, %ecx
	je	.L76
	movslq	%r8d, %rax
	movslq	%ecx, %rdx
	movl	max(%rip), %r9d
	movl	0(%rbp,%rax,4), %edi
	movl	0(%rbp,%rdx,4), %esi
	leal	(%rdi,%rsi), %r10d
	cmpl	%esi, %edi
	jge	.L87
	movl	%r10d, 0(%rbp,%rax,4)
	movl	%r8d, 0(%rbp,%rdx,4)
	movl	0(%rbp,%rax,4), %eax
	negl	%eax
	cmpl	%r9d, %eax
	jle	.L79
.L85:
	movl	%eax, max(%rip)
.L79:
	subl	$1, component(%rip)
.L76:
	addl	$1, %ebx
	cmpl	%ebx, 44(%rsp)
	jle	.L56
.L55:
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	48(%rsp), %rsi
	movl	52(%rsp), %ecx
	movl	0(%rbp,%rsi,4), %eax
	movq	%rsi, %r8
	testl	%eax, %eax
	js	.L58
	movslq	%eax, %r8
	movl	0(%rbp,%r8,4), %edx
	testl	%edx, %edx
	jns	.L88
.L59:
	movl	%eax, 0(%rbp,%rsi,4)
	movslq	%ecx, %rsi
	movl	%eax, %r8d
	movl	0(%rbp,%rsi,4), %eax
	testl	%eax, %eax
	js	.L67
.L86:
	movslq	%eax, %rcx
	movl	0(%rbp,%rcx,4), %edx
	testl	%edx, %edx
	jns	.L89
.L68:
	movl	%eax, 0(%rbp,%rsi,4)
	movl	%eax, %ecx
	jmp	.L67
	.p2align 4,,10
	.p2align 3
.L87:
	movl	%r10d, 0(%rbp,%rdx,4)
	movl	%ecx, 0(%rbp,%rax,4)
	movl	0(%rbp,%rdx,4), %eax
	negl	%eax
	cmpl	%r9d, %eax
	jle	.L79
	jmp	.L85
	.p2align 4,,10
	.p2align 3
.L88:
	movslq	%edx, %r9
	movl	0(%rbp,%r9,4), %eax
	testl	%eax, %eax
	jns	.L90
.L60:
	movl	%edx, 0(%rbp,%r8,4)
	movl	%edx, %eax
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L89:
	movslq	%edx, %r9
	movl	0(%rbp,%r9,4), %eax
	testl	%eax, %eax
	jns	.L91
.L69:
	movl	%edx, 0(%rbp,%rcx,4)
	movl	%edx, %eax
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L56:
	movl	max(%rip), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L92
	addq	$72, %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
.L90:
	.cfi_restore_state
	movslq	%eax, %r10
	movl	0(%rbp,%r10,4), %edx
	testl	%edx, %edx
	jns	.L93
.L61:
	movl	%eax, 0(%rbp,%r9,4)
	movl	%eax, %edx
	jmp	.L60
.L91:
	movslq	%eax, %r10
	movl	0(%rbp,%r10,4), %edx
	testl	%edx, %edx
	jns	.L94
.L70:
	movl	%eax, 0(%rbp,%r9,4)
	movl	%eax, %edx
	jmp	.L69
.L94:
	movslq	%edx, %r11
	movl	0(%rbp,%r11,4), %eax
	testl	%eax, %eax
	jns	.L95
.L71:
	movl	%edx, 0(%rbp,%r10,4)
	movl	%edx, %eax
	jmp	.L70
.L93:
	movslq	%edx, %r11
	movl	0(%rbp,%r11,4), %eax
	testl	%eax, %eax
	jns	.L96
.L62:
	movl	%edx, 0(%rbp,%r10,4)
	movl	%edx, %eax
	jmp	.L61
.L96:
	movslq	%eax, %r15
	movl	0(%rbp,%r15,4), %edi
	testl	%edi, %edi
	jns	.L97
.L63:
	movl	%eax, 0(%rbp,%r11,4)
	movl	%eax, %edx
	jmp	.L62
.L95:
	movslq	%eax, %r15
	movl	0(%rbp,%r15,4), %edi
	testl	%edi, %edi
	jns	.L98
.L72:
	movl	%eax, 0(%rbp,%r11,4)
	movl	%eax, %edx
	jmp	.L71
.L97:
	movslq	%edi, %rdx
	movl	0(%rbp,%rdx,4), %eax
	testl	%eax, %eax
	jns	.L99
.L64:
	movl	%edi, 0(%rbp,%r15,4)
	movl	%edi, %eax
	jmp	.L63
.L98:
	movslq	%edi, %rdx
	movl	0(%rbp,%rdx,4), %eax
	testl	%eax, %eax
	jns	.L100
.L73:
	movl	%edi, 0(%rbp,%r15,4)
	movl	%edi, %eax
	jmp	.L72
.L99:
	movslq	%eax, %rdi
	movq	%rdi, 16(%rsp)
	movl	0(%rbp,%rdi,4), %edi
	testl	%edi, %edi
	jns	.L101
.L65:
	movl	%eax, 0(%rbp,%rdx,4)
	movl	%eax, %edi
	jmp	.L64
.L100:
	movslq	%eax, %rdi
	movq	%rdi, 16(%rsp)
	movl	0(%rbp,%rdi,4), %edi
	testl	%edi, %edi
	jns	.L102
.L74:
	movl	%eax, 0(%rbp,%rdx,4)
	movl	%eax, %edi
	jmp	.L73
.L101:
	movslq	%edi, %rax
	movq	%rax, 8(%rsp)
	movl	0(%rbp,%rax,4), %eax
	testl	%eax, %eax
	js	.L66
	movl	%eax, %edi
	movq	%rdx, 24(%rsp)
	call	find
	movq	24(%rsp), %rdx
	movl	%eax, %edi
	movq	8(%rsp), %rax
	movl	%edi, 0(%rbp,%rax,4)
.L66:
	movq	16(%rsp), %rax
	movl	%edi, 0(%rbp,%rax,4)
	movl	%edi, %eax
	jmp	.L65
.L102:
	movslq	%edi, %rax
	movq	%rax, 8(%rsp)
	movl	0(%rbp,%rax,4), %eax
	testl	%eax, %eax
	js	.L75
	movl	%eax, %edi
	movq	%rdx, 24(%rsp)
	call	find
	movq	24(%rsp), %rdx
	movl	%eax, %edi
	movq	8(%rsp), %rax
	movl	%edi, 0(%rbp,%rax,4)
.L75:
	movq	16(%rsp), %rax
	movl	%edi, 0(%rbp,%rax,4)
	movl	%edi, %eax
	jmp	.L74
.L92:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	component
	.bss
	.align 4
	.type	component, @object
	.size	component, 4
component:
	.zero	4
	.globl	max
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.zero	4
	.globl	parent
	.align 32
	.type	parent, @object
	.size	parent, 800004
parent:
	.zero	800004
	.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	find
	.type	find, @function
find:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	parent(%rip), %rbx
	movq	%rbp, %rax
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movl	(%rbx,%rbp,4), %edx
	testl	%edx, %edx
	jns	.L8
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movslq	%edx, %r12
	movl	(%rbx,%r12,4), %eax
	testl	%eax, %eax
	jns	.L9
.L3:
	movl	%edx, (%rbx,%rbp,4)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movl	%edx, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movslq	%eax, %r13
	movl	(%rbx,%r13,4), %edi
	testl	%edi, %edi
	js	.L4
	call	find
	movl	%eax, (%rbx,%r13,4)
.L4:
	movl	%eax, (%rbx,%r12,4)
	movl	%eax, %edx
	jmp	.L3
	.cfi_endproc
.LFE39:
	.size	find, .-find
	.p2align 4
	.globl	_union_
	.type	_union_, @function
_union_:
.LFB40:
	.cfi_startproc
	endbr64
	movslq	%edi, %r9
	leaq	parent(%rip), %rcx
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r9, %r8
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	(%rcx,%r9,4), %eax
	testl	%eax, %eax
	jns	.L36
.L11:
	movslq	%esi, %r9
	movl	(%rcx,%r9,4), %eax
	testl	%eax, %eax
	jns	.L37
.L20:
	cmpl	%r8d, %esi
	je	.L10
	movslq	%r8d, %rax
	movslq	%esi, %rdx
	movl	max(%rip), %r10d
	movl	(%rcx,%rax,4), %r9d
	movl	(%rcx,%rdx,4), %edi
	leal	(%r9,%rdi), %r11d
	cmpl	%edi, %r9d
	jge	.L38
	movl	%r11d, (%rcx,%rax,4)
	movl	%r8d, (%rcx,%rdx,4)
	movl	(%rcx,%rax,4), %eax
	negl	%eax
	cmpl	%r10d, %eax
	jg	.L35
.L32:
	subl	$1, component(%rip)
.L10:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	movl	%r11d, (%rcx,%rdx,4)
	movl	%esi, (%rcx,%rax,4)
	movl	(%rcx,%rdx,4), %eax
	negl	%eax
	cmpl	%r10d, %eax
	jle	.L32
.L35:
	movl	%eax, max(%rip)
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L37:
	movslq	%eax, %rsi
	movl	(%rcx,%rsi,4), %edx
	testl	%edx, %edx
	jns	.L39
.L21:
	movl	%eax, (%rcx,%r9,4)
	movl	%eax, %esi
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L36:
	movslq	%eax, %r8
	movl	(%rcx,%r8,4), %edx
	testl	%edx, %edx
	jns	.L40
.L12:
	movl	%eax, (%rcx,%r9,4)
	movl	%eax, %r8d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L39:
	movslq	%edx, %r10
	movl	(%rcx,%r10,4), %eax
	testl	%eax, %eax
	jns	.L41
.L22:
	movl	%edx, (%rcx,%rsi,4)
	movl	%edx, %eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L40:
	movslq	%edx, %r10
	movl	(%rcx,%r10,4), %eax
	testl	%eax, %eax
	jns	.L42
.L13:
	movl	%edx, (%rcx,%r8,4)
	movl	%edx, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	%eax, %r11
	movl	(%rcx,%r11,4), %edx
	testl	%edx, %edx
	jns	.L43
.L23:
	movl	%eax, (%rcx,%r10,4)
	movl	%eax, %edx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L42:
	movslq	%eax, %r11
	movl	(%rcx,%r11,4), %edx
	testl	%edx, %edx
	jns	.L44
.L14:
	movl	%eax, (%rcx,%r10,4)
	movl	%eax, %edx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L44:
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %eax
	testl	%eax, %eax
	jns	.L45
.L15:
	movl	%edx, (%rcx,%r11,4)
	movl	%edx, %eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L43:
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %eax
	testl	%eax, %eax
	jns	.L46
.L24:
	movl	%edx, (%rcx,%r11,4)
	movl	%edx, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L45:
	movslq	%eax, %rbp
	movl	(%rcx,%rbp,4), %edx
	testl	%edx, %edx
	jns	.L47
.L16:
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L46:
	movslq	%eax, %rbp
	movl	(%rcx,%rbp,4), %edx
	testl	%edx, %edx
	jns	.L48
.L25:
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edx
	jmp	.L24
.L47:
	movslq	%edx, %r12
	movl	(%rcx,%r12,4), %eax
	testl	%eax, %eax
	jns	.L49
.L17:
	movl	%edx, (%rcx,%rbp,4)
	movl	%edx, %eax
	jmp	.L16
.L48:
	movslq	%edx, %r12
	movl	(%rcx,%r12,4), %eax
	testl	%eax, %eax
	jns	.L50
.L26:
	movl	%edx, (%rcx,%rbp,4)
	movl	%edx, %eax
	jmp	.L25
.L49:
	movslq	%eax, %r13
	movl	(%rcx,%r13,4), %edx
	testl	%edx, %edx
	jns	.L51
.L18:
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %edx
	jmp	.L17
.L50:
	movslq	%eax, %r13
	movl	(%rcx,%r13,4), %edx
	testl	%edx, %edx
	jns	.L52
.L27:
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %edx
	jmp	.L26
.L51:
	movslq	%edx, %r14
	movl	(%rcx,%r14,4), %edi
	testl	%edi, %edi
	js	.L19
	call	find
	movl	%eax, (%rcx,%r14,4)
	movl	%eax, %edx
.L19:
	movl	%edx, (%rcx,%r13,4)
	movl	%edx, %eax
	jmp	.L18
.L52:
	movslq	%edx, %r14
	movl	(%rcx,%r14,4), %edi
	testl	%edi, %edi
	js	.L28
	call	find
	movl	%eax, (%rcx,%r14,4)
	movl	%eax, %edx
.L28:
	movl	%edx, (%rcx,%r13,4)
	movl	%edx, %eax
	jmp	.L27
	.cfi_endproc
.LFE40:
	.size	_union_, .-_union_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rdx
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %ebx
	testl	%ebx, %ebx
	js	.L57
	movslq	%ebx, %rax
	leaq	parent(%rip), %rbp
	movl	$255, %esi
	leaq	4(,%rax,4), %rdx
	movq	%rbp, %rdi
	call	memset@PLT
.L57:
	movl	44(%rsp), %eax
	movl	%ebx, component(%rip)
	movl	$1, max(%rip)
	testl	%eax, %eax
	jle	.L56
	xorl	%ebx, %ebx
	leaq	52(%rsp), %r14
	leaq	48(%rsp), %r13
	leaq	parent(%rip), %rbp
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L58:
	movslq	%ecx, %rsi
	movl	0(%rbp,%rsi,4), %eax
	testl	%eax, %eax
	jns	.L86
.L67:
	cmpl	%r8d, %ecx
	je	.L76
	movslq	%r8d, %rax
	movslq	%ecx, %rdx
	movl	max(%rip), %r9d
	movl	0(%rbp,%rax,4), %edi
	movl	0(%rbp,%rdx,4), %esi
	leal	(%rdi,%rsi), %r10d
	cmpl	%esi, %edi
	jge	.L87
	movl	%r10d, 0(%rbp,%rax,4)
	movl	%r8d, 0(%rbp,%rdx,4)
	movl	0(%rbp,%rax,4), %eax
	negl	%eax
	cmpl	%r9d, %eax
	jle	.L79
.L85:
	movl	%eax, max(%rip)
.L79:
	subl	$1, component(%rip)
.L76:
	addl	$1, %ebx
	cmpl	%ebx, 44(%rsp)
	jle	.L56
.L55:
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	48(%rsp), %rsi
	movl	52(%rsp), %ecx
	movl	0(%rbp,%rsi,4), %eax
	movq	%rsi, %r8
	testl	%eax, %eax
	js	.L58
	movslq	%eax, %r8
	movl	0(%rbp,%r8,4), %edx
	testl	%edx, %edx
	jns	.L88
.L59:
	movl	%eax, 0(%rbp,%rsi,4)
	movslq	%ecx, %rsi
	movl	%eax, %r8d
	movl	0(%rbp,%rsi,4), %eax
	testl	%eax, %eax
	js	.L67
.L86:
	movslq	%eax, %rcx
	movl	0(%rbp,%rcx,4), %edx
	testl	%edx, %edx
	jns	.L89
.L68:
	movl	%eax, 0(%rbp,%rsi,4)
	movl	%eax, %ecx
	jmp	.L67
	.p2align 4,,10
	.p2align 3
.L87:
	movl	%r10d, 0(%rbp,%rdx,4)
	movl	%ecx, 0(%rbp,%rax,4)
	movl	0(%rbp,%rdx,4), %eax
	negl	%eax
	cmpl	%r9d, %eax
	jle	.L79
	jmp	.L85
	.p2align 4,,10
	.p2align 3
.L88:
	movslq	%edx, %r9
	movl	0(%rbp,%r9,4), %eax
	testl	%eax, %eax
	jns	.L90
.L60:
	movl	%edx, 0(%rbp,%r8,4)
	movl	%edx, %eax
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L89:
	movslq	%edx, %r9
	movl	0(%rbp,%r9,4), %eax
	testl	%eax, %eax
	jns	.L91
.L69:
	movl	%edx, 0(%rbp,%rcx,4)
	movl	%edx, %eax
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L56:
	movl	max(%rip), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L92
	addq	$72, %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
.L90:
	.cfi_restore_state
	movslq	%eax, %r10
	movl	0(%rbp,%r10,4), %edx
	testl	%edx, %edx
	jns	.L93
.L61:
	movl	%eax, 0(%rbp,%r9,4)
	movl	%eax, %edx
	jmp	.L60
.L91:
	movslq	%eax, %r10
	movl	0(%rbp,%r10,4), %edx
	testl	%edx, %edx
	jns	.L94
.L70:
	movl	%eax, 0(%rbp,%r9,4)
	movl	%eax, %edx
	jmp	.L69
.L94:
	movslq	%edx, %r11
	movl	0(%rbp,%r11,4), %eax
	testl	%eax, %eax
	jns	.L95
.L71:
	movl	%edx, 0(%rbp,%r10,4)
	movl	%edx, %eax
	jmp	.L70
.L93:
	movslq	%edx, %r11
	movl	0(%rbp,%r11,4), %eax
	testl	%eax, %eax
	jns	.L96
.L62:
	movl	%edx, 0(%rbp,%r10,4)
	movl	%edx, %eax
	jmp	.L61
.L96:
	movslq	%eax, %r15
	movl	0(%rbp,%r15,4), %edi
	testl	%edi, %edi
	jns	.L97
.L63:
	movl	%eax, 0(%rbp,%r11,4)
	movl	%eax, %edx
	jmp	.L62
.L95:
	movslq	%eax, %r15
	movl	0(%rbp,%r15,4), %edi
	testl	%edi, %edi
	jns	.L98
.L72:
	movl	%eax, 0(%rbp,%r11,4)
	movl	%eax, %edx
	jmp	.L71
.L97:
	movslq	%edi, %rdx
	movl	0(%rbp,%rdx,4), %eax
	testl	%eax, %eax
	jns	.L99
.L64:
	movl	%edi, 0(%rbp,%r15,4)
	movl	%edi, %eax
	jmp	.L63
.L98:
	movslq	%edi, %rdx
	movl	0(%rbp,%rdx,4), %eax
	testl	%eax, %eax
	jns	.L100
.L73:
	movl	%edi, 0(%rbp,%r15,4)
	movl	%edi, %eax
	jmp	.L72
.L99:
	movslq	%eax, %rdi
	movq	%rdi, 16(%rsp)
	movl	0(%rbp,%rdi,4), %edi
	testl	%edi, %edi
	jns	.L101
.L65:
	movl	%eax, 0(%rbp,%rdx,4)
	movl	%eax, %edi
	jmp	.L64
.L100:
	movslq	%eax, %rdi
	movq	%rdi, 16(%rsp)
	movl	0(%rbp,%rdi,4), %edi
	testl	%edi, %edi
	jns	.L102
.L74:
	movl	%eax, 0(%rbp,%rdx,4)
	movl	%eax, %edi
	jmp	.L73
.L101:
	movslq	%edi, %rax
	movq	%rax, 8(%rsp)
	movl	0(%rbp,%rax,4), %eax
	testl	%eax, %eax
	js	.L66
	movl	%eax, %edi
	movq	%rdx, 24(%rsp)
	call	find
	movq	24(%rsp), %rdx
	movl	%eax, %edi
	movq	8(%rsp), %rax
	movl	%edi, 0(%rbp,%rax,4)
.L66:
	movq	16(%rsp), %rax
	movl	%edi, 0(%rbp,%rax,4)
	movl	%edi, %eax
	jmp	.L65
.L102:
	movslq	%edi, %rax
	movq	%rax, 8(%rsp)
	movl	0(%rbp,%rax,4), %eax
	testl	%eax, %eax
	js	.L75
	movl	%eax, %edi
	movq	%rdx, 24(%rsp)
	call	find
	movq	24(%rsp), %rdx
	movl	%eax, %edi
	movq	8(%rsp), %rax
	movl	%edi, 0(%rbp,%rax,4)
.L75:
	movq	16(%rsp), %rax
	movl	%edi, 0(%rbp,%rax,4)
	movl	%edi, %eax
	jmp	.L74
.L92:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	component
	.bss
	.align 4
	.type	component, @object
	.size	component, 4
component:
	.zero	4
	.globl	max
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.zero	4
	.globl	parent
	.align 32
	.type	parent, @object
	.size	parent, 800004
parent:
	.zero	800004
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <stdlib.h>
int parent[200001],max,component;void _union_(int a,int b);int find(int a);
int find(int a)
{
    if(parent[a]<0)
        return(a);
    else
    {
        return(parent[a]=find(parent[a]));
    }
}
void _union_(int a,int b)
{
    int pa,pb;pa=find(a);pb=find(b);
    if(pa==pb)
        return;
    else
    {
        if((-parent[pa])<=(-parent[pb]))
        {
          parent[pb]=parent[pa]+parent[pb];parent[pa]=pb;if(max<(-parent[pb]))max=-parent[pb];component--;return;
        }
        if((-parent[pa])>(-parent[pb]))
        {
          parent[pa]=parent[pa]+parent[pb];parent[pb]=pa;if(max<(-parent[pa]))max=-parent[pa];component--;
        }
    }
}
int main()
{
    int j,n,m;scanf("%d %d",&n,&m);
    for(j=0;j<=n;j++)
        parent[j]=-1;
    component=n;max=1;
    for(j=0;j<m;j++)
    {
        int a,b;scanf("%d %d",&a,&b);
        _union_(a,b);
        //printf("%d %d\n",component,max);
    }
    printf("%d\n",max);
    return 0;
}

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

2
 4
 1
 5
 3
 4
 4
 4
 4
 2

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

```c
#include <stdio.h>
#include <stdlib.h>
int parent[200001],max,component;void _union_(int a,int b);int find(int a);
int find(int a)
{
    if(parent[a]<0)
        return(a);
    else
    {
        return(parent[a]=find(parent[a]));
    }
}
void _union_(int a,int b)
{
    int pa,pb;pa=find(a);pb=find(b);
    if(pa==pb)
        return;
    else
    {
        if((-parent[pa])<=(-parent[pb]))
        {
          parent[pb]=parent[pa]+parent[pb];parent[pa]=pb;if(max<(-parent[pb]))max=-parent[pb];component--;return;
        }
        if((-parent[pa])>(-parent[pb]))
        {
          parent[pa]=parent[pa]+parent[pb];parent[pb]=pa;if(max<(-parent[pa]))max=-parent[pa];component--;
        }
    }
}
int main()
{
    int j,n,m;scanf("%d %d",&n,&m);
    for(j=0;j<=n;j++)
        parent[j]=-1;
    component=n;max=1;
    for(j=0;j<m;j++)
    {
        int a,b;scanf("%d %d",&a,&b);
        _union_(a,b);
        //printf("%d %d\n",component,max);
    }
    printf("%d\n",max);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	parent
	.bss
	.align 32
	.type	parent, @object
	.size	parent, 800004
parent:
	.zero	800004
	.globl	max
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.zero	4
	.globl	component
	.align 4
	.type	component, @object
	.size	component, 4
component:
	.zero	4
	.text
	.globl	find
	.type	find, @function
find:
.LFB6:
	.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	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jns	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	find
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	parent(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	find, .-find
	.globl	_union_
	.type	_union_, @function
_union_:
.LFB7:
	.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, -8(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	find
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	je	.L10
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, %edx
	movl	max(%rip), %eax
	cmpl	%eax, %edx
	jle	.L8
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, max(%rip)
.L8:
	movl	component(%rip), %eax
	subl	$1, %eax
	movl	%eax, component(%rip)
	jmp	.L4
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, %edx
	movl	max(%rip), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, max(%rip)
.L9:
	movl	component(%rip), %eax
	subl	$1, %eax
	movl	%eax, component(%rip)
	jmp	.L4
.L10:
	nop
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_union_, .-_union_
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L12
.L13:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L12:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L13
	movl	-28(%rbp), %eax
	movl	%eax, component(%rip)
	movl	$1, max(%rip)
	movl	$0, -12(%rbp)
	jmp	.L14
.L15:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	_union_
	addl	$1, -12(%rbp)
.L14:
	movl	-24(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L15
	movl	max(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	parent
	.bss
	.align 32
	.type	parent, @object
	.size	parent, 800004
parent:
	.zero	800004
	.globl	max
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.zero	4
	.globl	component
	.align 4
	.type	component, @object
	.size	component, 4
component:
	.zero	4
	.text
	.globl	find
	.type	find, @function
find:
.LFB6:
	.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	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jns	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	find
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	parent(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	find, .-find
	.globl	_union_
	.type	_union_, @function
_union_:
.LFB7:
	.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, -8(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	find
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	je	.L10
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, %edx
	movl	max(%rip), %eax
	cmpl	%eax, %edx
	jle	.L8
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, max(%rip)
.L8:
	movl	component(%rip), %eax
	subl	$1, %eax
	movl	%eax, component(%rip)
	jmp	.L4
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	parent(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, %edx
	movl	max(%rip), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, max(%rip)
.L9:
	movl	component(%rip), %eax
	subl	$1, %eax
	movl	%eax, component(%rip)
	jmp	.L4
.L10:
	nop
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_union_, .-_union_
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L12
.L13:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	parent(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L12:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L13
	movl	-28(%rbp), %eax
	movl	%eax, component(%rip)
	movl	$1, max(%rip)
	movl	$0, -12(%rbp)
	jmp	.L14
.L15:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	_union_
	addl	$1, -12(%rbp)
.L14:
	movl	-24(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L15
	movl	max(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
