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

```c
#include<stdio.h>
int p[100010]={0};
int d[100010]={0};
int S[100010]={0};//サイズ用配列 未実験
int Find(int a,int b){
  int r,n;
  for(r=a;p[r];r=p[r]);
  for(;n=p[a];a=n)p[a]=r;
  for(r=b;p[r];r=p[r]);
  for(;n=p[b];b=n)p[b]=r;
  return a-b?1:0;
}
void Union(int a,int b){
  if(Find(a,b)){
    for(;p[a];a=p[a]);
    for(;p[b];b=p[b]);
    d[a]<d[b]?(p[a]=b):(p[b]=a);
    if(d[a]==d[b])d[a]++;
    S[a]=S[b]=S[a]+S[b];
  }
}
int main(){
  int n,m,k,i,a,b,o,c[100010]={};
  for(i=0;i<100010;i++)S[i]=1;
  scanf("%d %d %d",&n,&m,&o);
  while(m--){
    scanf("%d %d",&a,&b);
    Union(a,b);
    c[a]++;
    c[b]++;
  }
  while(o--){
    scanf("%d %d",&a,&b);
    if(Find(a,b)==0){
      c[a]++;
      c[b]++;
    }
  }
  for(i=1;i<=n;i++){
    for(a=i;p[a];a=p[a]);
    S[i]=S[a];
  }
  ///for(i=0;i<n;i++)printf("%d %d\n",S[i+1],c[i+1]);printf("\n");
  for(i=1;i<=n;i++)printf("%d%c",S[i]-c[i]-1,n==i?'\n':' ');
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 400040
p:
	.zero	400040
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 400040
d:
	.zero	400040
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 400040
S:
	.zero	400040
	.text
	.globl	Find
	.type	Find, @function
Find:
.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	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L3
	jmp	.L4
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L5
	movl	-24(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L6
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L7
	jmp	.L8
.L9:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
.L8:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L9
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	setne	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Find, .-Find
	.globl	Union
	.type	Union, @function
Union:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$8, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Find
	testl	%eax, %eax
	je	.L20
	jmp	.L13
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
.L13:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L14
	jmp	.L15
.L16:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L16
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L17
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L18
.L17:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L19
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L19:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	S(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Union, .-Union
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400048(%rbp), %rax
	movl	$400040, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400052(%rbp)
	jmp	.L22
.L23:
	movl	-400052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -400052(%rbp)
.L22:
	cmpl	$100009, -400052(%rbp)
	jle	.L23
	leaq	-400056(%rbp), %rcx
	leaq	-400068(%rbp), %rdx
	leaq	-400072(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L24
.L25:
	leaq	-400060(%rbp), %rdx
	leaq	-400064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400060(%rbp), %edx
	movl	-400064(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Union
	movl	-400064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	movl	-400060(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
.L24:
	movl	-400068(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -400068(%rbp)
	testl	%eax, %eax
	jne	.L25
	jmp	.L26
.L27:
	leaq	-400060(%rbp), %rdx
	leaq	-400064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400060(%rbp), %edx
	movl	-400064(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Find
	testl	%eax, %eax
	jne	.L26
	movl	-400064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	movl	-400060(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
.L26:
	movl	-400056(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -400056(%rbp)
	testl	%eax, %eax
	jne	.L27
	movl	$1, -400052(%rbp)
	jmp	.L28
.L31:
	movl	-400052(%rbp), %eax
	movl	%eax, -400064(%rbp)
	jmp	.L29
.L30:
	movl	-400064(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400064(%rbp)
.L29:
	movl	-400064(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L30
	movl	-400064(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-400052(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	S(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -400052(%rbp)
.L28:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jle	.L31
	movl	$1, -400052(%rbp)
	jmp	.L32
.L35:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jne	.L33
	movl	$10, %ecx
	jmp	.L34
.L33:
	movl	$32, %ecx
.L34:
	movl	-400052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-400052(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	subl	$1, %eax
	movl	%ecx, %edx
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -400052(%rbp)
.L32:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jle	.L35
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	Find
	.type	Find, @function
Find:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %edx
	movl	%edi, %ecx
	leaq	p(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L2:
	movslq	%ecx, %rcx
	movq	%rcx, %rdi
	movl	(%rax,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L2
	movslq	%edx, %r8
	movl	(%rax,%r8,4), %ecx
	testl	%ecx, %ecx
	jne	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%edx, %r8
.L4:
	movslq	%ecx, %rcx
	movl	%edi, (%rax,%r8,4)
	movq	%rcx, %rdx
	movl	(%rax,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L19
.L3:
	movl	%esi, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	%ecx, %rcx
	movq	%rcx, %rdi
	movl	(%rax,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L5
	movslq	%esi, %r8
	movl	(%rax,%r8,4), %ecx
	testl	%ecx, %ecx
	jne	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	movslq	%esi, %r8
.L7:
	movslq	%ecx, %rcx
	movl	%edi, (%rax,%r8,4)
	movq	%rcx, %rsi
	movl	(%rax,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L20
.L6:
	xorl	%eax, %eax
	cmpl	%esi, %edx
	setne	%al
	ret
	.cfi_endproc
.LFE23:
	.size	Find, .-Find
	.p2align 4
	.globl	Union
	.type	Union, @function
Union:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%edi, %r8d
	movl	%esi, %r9d
	leaq	p(%rip), %rax
	movl	%edi, %edx
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	%edx, %rdx
	movq	%rdx, %rsi
	movl	(%rax,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L22
	movslq	%r8d, %r10
	movl	(%rax,%r10,4), %edx
	testl	%edx, %edx
	je	.L33
	movslq	%r8d, %rcx
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%esi, (%rax,%rcx,4)
	movslq	%edx, %rcx
	movslq	%ecx, %rdx
	movl	(%rax,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L24
.L23:
	movl	%r9d, %edx
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%edx, %rdx
	movq	%rdx, %rsi
	movl	(%rax,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L25
	movslq	%r9d, %r11
	movl	(%rax,%r11,4), %edi
	testl	%edi, %edi
	je	.L34
	movslq	%r9d, %rdx
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%esi, (%rax,%rdx,4)
	movslq	%edi, %rdx
	movslq	%edx, %rdi
	movl	(%rax,%rdi,4), %edi
	testl	%edi, %edi
	jne	.L27
	cmpl	%edx, %ecx
	jne	.L29
.L21:
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	movslq	%r8d, %r10
.L29:
	movl	%r8d, %ecx
	movl	(%rax,%r10,4), %r8d
	testl	%r8d, %r8d
	jne	.L43
	movslq	%r9d, %rdx
	movl	(%rax,%r11,4), %r9d
	testl	%r9d, %r9d
	je	.L41
	.p2align 4,,10
	.p2align 3
.L44:
	movslq	%r9d, %r11
	movslq	%r9d, %rdx
	movl	(%rax,%r11,4), %r9d
	testl	%r9d, %r9d
	jne	.L44
.L41:
	leaq	d(%rip), %rdi
	movslq	%ecx, %rsi
	movl	(%rdi,%rsi,4), %r8d
	cmpl	(%rdi,%r11,4), %r8d
	jge	.L31
	movl	%edx, (%rax,%rsi,4)
.L32:
	leaq	S(%rip), %rax
	movl	(%rax,%rdx,4), %ecx
	addl	(%rax,%rsi,4), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movl	%ecx, (%rax,%rsi,4)
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	movl	%ecx, (%rax,%r11,4)
	jne	.L32
	addl	$1, %r8d
	movl	%r8d, (%rdi,%rsi,4)
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%r8d, %ecx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L34:
	movl	%r9d, %edx
	cmpl	%edx, %ecx
	je	.L21
	jmp	.L29
	.cfi_endproc
.LFE24:
	.size	Union, .-Union
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"%d %d"
.LC4:
	.string	"%d%c"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2776, %rsp
	.cfi_def_cfa_offset 400144
	movl	$400040, %edx
	xorl	%esi, %esi
	leaq	S(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 400072(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r15
	movq	%r15, %rdi
	call	memset@PLT
	movdqa	.LC0(%rip), %xmm0
	movq	%rbp, %rax
	leaq	400032(%rbp), %rdx
	.p2align 4,,10
	.p2align 3
.L46:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L46
	movq	.LC1(%rip), %rax
	leaq	16(%rsp), %rdx
	leaq	28(%rsp), %rcx
	leaq	12(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	movq	%rax, 400032+S(%rip)
	xorl	%eax, %eax
	leaq	24(%rsp), %r13
	leaq	20(%rsp), %r12
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	leaq	.LC3(%rip), %rbx
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	je	.L49
	.p2align 4,,10
	.p2align 3
.L47:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	movl	20(%rsp), %edi
	call	Union
	movslq	20(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	24(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	jne	.L47
.L49:
	leaq	24(%rsp), %r14
	leaq	.LC3(%rip), %r13
	leaq	p(%rip), %rbx
.L48:
	leaq	20(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L56:
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	je	.L88
	movq	%r14, %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rdx
	movslq	24(%rsp), %rax
	movl	%edx, %ecx
	.p2align 4,,10
	.p2align 3
.L50:
	movslq	%ecx, %rcx
	movq	%rcx, %rsi
	movl	(%rbx,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L50
	movslq	%edx, %rdi
	movl	(%rbx,%rdi,4), %ecx
	testl	%ecx, %ecx
	je	.L51
	.p2align 4,,10
	.p2align 3
.L52:
	movl	%esi, (%rbx,%rdx,4)
	movslq	%ecx, %rdx
	movslq	%edx, %rcx
	movl	(%rbx,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L52
.L51:
	movl	%eax, %ecx
	.p2align 4,,10
	.p2align 3
.L53:
	movslq	%ecx, %rcx
	movq	%rcx, %rsi
	movl	(%rbx,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L53
	movslq	%eax, %r8
	movl	(%rbx,%r8,4), %ecx
	testl	%ecx, %ecx
	je	.L54
	.p2align 4,,10
	.p2align 3
.L55:
	movl	%esi, (%rbx,%rax,4)
	movslq	%ecx, %rax
	movslq	%eax, %rcx
	movl	(%rbx,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L55
.L54:
	cmpl	%eax, %edx
	jne	.L56
	addl	$1, 32(%rsp,%rdi,4)
	addl	$1, 32(%rsp,%r8,4)
	jmp	.L48
.L88:
	movl	12(%rsp), %edi
	movl	$1, %esi
	leaq	p(%rip), %rcx
	leal	1(%rdi), %r8d
	testl	%edi, %edi
	jle	.L64
	.p2align 4,,10
	.p2align 3
.L61:
	movl	(%rcx,%rsi,4), %eax
	movl	%esi, %edx
	testl	%eax, %eax
	je	.L59
	.p2align 4,,10
	.p2align 3
.L60:
	cltq
	movq	%rax, %rdx
	movl	(%rcx,%rax,4), %eax
	testl	%eax, %eax
	jne	.L60
.L59:
	movslq	%edx, %rax
	movl	0(%rbp,%rax,4), %eax
	movl	%eax, 0(%rbp,%rsi,4)
	addq	$1, %rsi
	cmpq	%rsi, %r8
	jne	.L61
	movl	%edx, 20(%rsp)
	movl	$1, %ebx
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L65:
	movl	0(%rbp,%rbx,4), %edx
	subl	(%r15,%rbx,4), %edx
	movl	$32, %ecx
	subl	$1, %edx
	cmpl	%ebx, %edi
	jne	.L87
	movl	$10, %ecx
.L87:
	movl	$1, %edi
	movq	%r12, %rsi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	movl	12(%rsp), %edi
	cmpl	%ebx, %edi
	jge	.L65
.L64:
	movq	400072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L89
	addq	$400088, %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
.L89:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 400040
S:
	.zero	400040
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 400040
d:
	.zero	400040
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 400040
p:
	.zero	400040
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.set	.LC1,.LC0
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %edx
	movl	%edi, %ecx
	leaq	p(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L2:
	movslq	%ecx, %rcx
	movq	%rcx, %rdi
	movl	(%rax,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L2
	movslq	%edx, %r8
	movl	(%rax,%r8,4), %ecx
	testl	%ecx, %ecx
	jne	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%edx, %r8
.L4:
	movslq	%ecx, %rcx
	movl	%edi, (%rax,%r8,4)
	movq	%rcx, %rdx
	movl	(%rax,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L19
.L3:
	movl	%esi, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	%ecx, %rcx
	movq	%rcx, %rdi
	movl	(%rax,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L5
	movslq	%esi, %r8
	movl	(%rax,%r8,4), %ecx
	testl	%ecx, %ecx
	jne	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	movslq	%esi, %r8
.L7:
	movslq	%ecx, %rcx
	movl	%edi, (%rax,%r8,4)
	movq	%rcx, %rsi
	movl	(%rax,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L20
.L6:
	xorl	%eax, %eax
	cmpl	%esi, %edx
	setne	%al
	ret
	.cfi_endproc
.LFE23:
	.size	Find, .-Find
	.p2align 4
	.globl	Union
	.type	Union, @function
Union:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%edi, %r8d
	movl	%esi, %r9d
	leaq	p(%rip), %rax
	movl	%edi, %edx
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	%edx, %rdx
	movq	%rdx, %rsi
	movl	(%rax,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L22
	movslq	%r8d, %r10
	movl	(%rax,%r10,4), %edx
	testl	%edx, %edx
	je	.L33
	movslq	%r8d, %rcx
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%esi, (%rax,%rcx,4)
	movslq	%edx, %rcx
	movslq	%ecx, %rdx
	movl	(%rax,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L24
.L23:
	movl	%r9d, %edx
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%edx, %rdx
	movq	%rdx, %rsi
	movl	(%rax,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L25
	movslq	%r9d, %r11
	movl	(%rax,%r11,4), %edi
	testl	%edi, %edi
	je	.L34
	movslq	%r9d, %rdx
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%esi, (%rax,%rdx,4)
	movslq	%edi, %rdx
	movslq	%edx, %rdi
	movl	(%rax,%rdi,4), %edi
	testl	%edi, %edi
	jne	.L27
	cmpl	%edx, %ecx
	jne	.L29
.L21:
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	movslq	%r8d, %r10
.L29:
	movl	%r8d, %ecx
	movl	(%rax,%r10,4), %r8d
	testl	%r8d, %r8d
	jne	.L43
	movslq	%r9d, %rdx
	movl	(%rax,%r11,4), %r9d
	testl	%r9d, %r9d
	je	.L41
	.p2align 4,,10
	.p2align 3
.L44:
	movslq	%r9d, %r11
	movslq	%r9d, %rdx
	movl	(%rax,%r11,4), %r9d
	testl	%r9d, %r9d
	jne	.L44
.L41:
	leaq	d(%rip), %rdi
	movslq	%ecx, %rsi
	movl	(%rdi,%rsi,4), %r8d
	cmpl	(%rdi,%r11,4), %r8d
	jge	.L31
	movl	%edx, (%rax,%rsi,4)
.L32:
	leaq	S(%rip), %rax
	movl	(%rax,%rdx,4), %ecx
	addl	(%rax,%rsi,4), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movl	%ecx, (%rax,%rsi,4)
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	movl	%ecx, (%rax,%r11,4)
	jne	.L32
	addl	$1, %r8d
	movl	%r8d, (%rdi,%rsi,4)
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%r8d, %ecx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L34:
	movl	%r9d, %edx
	cmpl	%edx, %ecx
	je	.L21
	jmp	.L29
	.cfi_endproc
.LFE24:
	.size	Union, .-Union
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"%d %d"
.LC4:
	.string	"%d%c"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2776, %rsp
	.cfi_def_cfa_offset 400144
	movl	$400040, %edx
	xorl	%esi, %esi
	leaq	S(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 400072(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r15
	movq	%r15, %rdi
	call	memset@PLT
	movdqa	.LC0(%rip), %xmm0
	movq	%rbp, %rax
	leaq	400032(%rbp), %rdx
	.p2align 4,,10
	.p2align 3
.L46:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L46
	movq	.LC1(%rip), %rax
	leaq	16(%rsp), %rdx
	leaq	28(%rsp), %rcx
	leaq	12(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	movq	%rax, 400032+S(%rip)
	xorl	%eax, %eax
	leaq	24(%rsp), %r13
	leaq	20(%rsp), %r12
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	leaq	.LC3(%rip), %rbx
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	je	.L49
	.p2align 4,,10
	.p2align 3
.L47:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	movl	20(%rsp), %edi
	call	Union
	movslq	20(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	24(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	jne	.L47
.L49:
	leaq	24(%rsp), %r14
	leaq	.LC3(%rip), %r13
	leaq	p(%rip), %rbx
.L48:
	leaq	20(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L56:
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	je	.L88
	movq	%r14, %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rdx
	movslq	24(%rsp), %rax
	movl	%edx, %ecx
	.p2align 4,,10
	.p2align 3
.L50:
	movslq	%ecx, %rcx
	movq	%rcx, %rsi
	movl	(%rbx,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L50
	movslq	%edx, %rdi
	movl	(%rbx,%rdi,4), %ecx
	testl	%ecx, %ecx
	je	.L51
	.p2align 4,,10
	.p2align 3
.L52:
	movl	%esi, (%rbx,%rdx,4)
	movslq	%ecx, %rdx
	movslq	%edx, %rcx
	movl	(%rbx,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L52
.L51:
	movl	%eax, %ecx
	.p2align 4,,10
	.p2align 3
.L53:
	movslq	%ecx, %rcx
	movq	%rcx, %rsi
	movl	(%rbx,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L53
	movslq	%eax, %r8
	movl	(%rbx,%r8,4), %ecx
	testl	%ecx, %ecx
	je	.L54
	.p2align 4,,10
	.p2align 3
.L55:
	movl	%esi, (%rbx,%rax,4)
	movslq	%ecx, %rax
	movslq	%eax, %rcx
	movl	(%rbx,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	.L55
.L54:
	cmpl	%eax, %edx
	jne	.L56
	addl	$1, 32(%rsp,%rdi,4)
	addl	$1, 32(%rsp,%r8,4)
	jmp	.L48
.L88:
	movl	12(%rsp), %edi
	movl	$1, %esi
	leaq	p(%rip), %rcx
	leal	1(%rdi), %r8d
	testl	%edi, %edi
	jle	.L64
	.p2align 4,,10
	.p2align 3
.L61:
	movl	(%rcx,%rsi,4), %eax
	movl	%esi, %edx
	testl	%eax, %eax
	je	.L59
	.p2align 4,,10
	.p2align 3
.L60:
	cltq
	movq	%rax, %rdx
	movl	(%rcx,%rax,4), %eax
	testl	%eax, %eax
	jne	.L60
.L59:
	movslq	%edx, %rax
	movl	0(%rbp,%rax,4), %eax
	movl	%eax, 0(%rbp,%rsi,4)
	addq	$1, %rsi
	cmpq	%rsi, %r8
	jne	.L61
	movl	%edx, 20(%rsp)
	movl	$1, %ebx
	leaq	.LC4(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L65:
	movl	0(%rbp,%rbx,4), %edx
	subl	(%r15,%rbx,4), %edx
	movl	$32, %ecx
	subl	$1, %edx
	cmpl	%ebx, %edi
	jne	.L87
	movl	$10, %ecx
.L87:
	movl	$1, %edi
	movq	%r12, %rsi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	movl	12(%rsp), %edi
	cmpl	%ebx, %edi
	jge	.L65
.L64:
	movq	400072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L89
	addq	$400088, %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
.L89:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 400040
S:
	.zero	400040
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 400040
d:
	.zero	400040
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 400040
p:
	.zero	400040
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.set	.LC1,.LC0
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
int p[100010]={0};
int d[100010]={0};
int S[100010]={0};//サイズ用配列 未実験
int Find(int a,int b){
  int r,n;
  for(r=a;p[r];r=p[r]);
  for(;n=p[a];a=n)p[a]=r;
  for(r=b;p[r];r=p[r]);
  for(;n=p[b];b=n)p[b]=r;
  return a-b?1:0;
}
void Union(int a,int b){
  if(Find(a,b)){
    for(;p[a];a=p[a]);
    for(;p[b];b=p[b]);
    d[a]<d[b]?(p[a]=b):(p[b]=a);
    if(d[a]==d[b])d[a]++;
    S[a]=S[b]=S[a]+S[b];
  }
}
int main(){
  int n,m,k,i,a,b,o,c[100010]={};
  for(i=0;i<100010;i++)S[i]=1;
  scanf("%d %d %d",&n,&m,&o);
  while(m--){
    scanf("%d %d",&a,&b);
    Union(a,b);
    c[a]++;
    c[b]++;
  }
  while(o--){
    scanf("%d %d",&a,&b);
    if(Find(a,b)==0){
      c[a]++;
      c[b]++;
    }
  }
  for(i=1;i<=n;i++){
    for(a=i;p[a];a=p[a]);
    S[i]=S[a];
  }
  ///for(i=0;i<n;i++)printf("%d %d\n",S[i+1],c[i+1]);printf("\n");
  for(i=1;i<=n;i++)printf("%d%c",S[i]-c[i]-1,n==i?'\n':' ');
  return 0;
}
5 10 0
1 2
1 3
1 4
1 5
3 2
2 4
2 5
4 3
1 3
4 5
 5 10 0
1 2
1 3
2 4
1 5
3 2
2 4
2 5
4 3
1 3
4 5
 5 10 0
1 2
1 3
2 4
1 5
3 2
2 4
2 5
4 1
1 3
4 5
 5 10 0
1 2
1 3
2 5
1 5
3 2
2 4
2 5
4 1
1 3
4 5
 5 10 0
1 2
1 3
2 5
1 5
3 2
2 4
2 3
4 1
1 3
4 5
 5 10 0
1 2
1 3
1 4
1 5
3 2
2 4
2 5
4 3
5 3
4 3
 10 9 3
10 1
6 6
8 2
2 5
8 4
7 3
10 9
6 4
5 8
2 6
7 5
3 1
 5 10 0
1 2
1 3
2 4
1 5
3 2
2 4
2 5
4 1
1 2
4 5
 5 10 0
1 2
1 3
2 5
1 5
3 2
2 4
2 5
4 1
1 0
4 5
 10 9 3
10 1
10 6
8 2
2 5
8 4
7 3
10 9
6 4
5 8
2 6
7 5
3 1

-1 0 0 0 1
 0 -1 0 0 1
 -1 -1 1 0 1
 -1 -1 1 1 0
 -1 -1 0 1 1
 0 0 -1 0 1
 1 1 0 2 2 0 0 1 1 0
 -1 -2 2 0 1
 0 0 3 2 1
 6 4 0 5 5 4 0 4 6 4

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

```c
#include<stdio.h>
int p[100010]={0};
int d[100010]={0};
int S[100010]={0};//サイズ用配列 未実験
int Find(int a,int b){
  int r,n;
  for(r=a;p[r];r=p[r]);
  for(;n=p[a];a=n)p[a]=r;
  for(r=b;p[r];r=p[r]);
  for(;n=p[b];b=n)p[b]=r;
  return a-b?1:0;
}
void Union(int a,int b){
  if(Find(a,b)){
    for(;p[a];a=p[a]);
    for(;p[b];b=p[b]);
    d[a]<d[b]?(p[a]=b):(p[b]=a);
    if(d[a]==d[b])d[a]++;
    S[a]=S[b]=S[a]+S[b];
  }
}
int main(){
  int n,m,k,i,a,b,o,c[100010]={};
  for(i=0;i<100010;i++)S[i]=1;
  scanf("%d %d %d",&n,&m,&o);
  while(m--){
    scanf("%d %d",&a,&b);
    Union(a,b);
    c[a]++;
    c[b]++;
  }
  while(o--){
    scanf("%d %d",&a,&b);
    if(Find(a,b)==0){
      c[a]++;
      c[b]++;
    }
  }
  for(i=1;i<=n;i++){
    for(a=i;p[a];a=p[a]);
    S[i]=S[a];
  }
  ///for(i=0;i<n;i++)printf("%d %d\n",S[i+1],c[i+1]);printf("\n");
  for(i=1;i<=n;i++)printf("%d%c",S[i]-c[i]-1,n==i?'\n':' ');
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 400040
p:
	.zero	400040
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 400040
d:
	.zero	400040
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 400040
S:
	.zero	400040
	.text
	.globl	Find
	.type	Find, @function
Find:
.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	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L3
	jmp	.L4
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L5
	movl	-24(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L6
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L7
	jmp	.L8
.L9:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
.L8:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L9
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	setne	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Find, .-Find
	.globl	Union
	.type	Union, @function
Union:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$8, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Find
	testl	%eax, %eax
	je	.L20
	jmp	.L13
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
.L13:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L14
	jmp	.L15
.L16:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L16
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L17
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L18
.L17:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L19
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L19:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	S(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Union, .-Union
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400048(%rbp), %rax
	movl	$400040, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400052(%rbp)
	jmp	.L22
.L23:
	movl	-400052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -400052(%rbp)
.L22:
	cmpl	$100009, -400052(%rbp)
	jle	.L23
	leaq	-400056(%rbp), %rcx
	leaq	-400068(%rbp), %rdx
	leaq	-400072(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L24
.L25:
	leaq	-400060(%rbp), %rdx
	leaq	-400064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400060(%rbp), %edx
	movl	-400064(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Union
	movl	-400064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	movl	-400060(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
.L24:
	movl	-400068(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -400068(%rbp)
	testl	%eax, %eax
	jne	.L25
	jmp	.L26
.L27:
	leaq	-400060(%rbp), %rdx
	leaq	-400064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400060(%rbp), %edx
	movl	-400064(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Find
	testl	%eax, %eax
	jne	.L26
	movl	-400064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	movl	-400060(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
.L26:
	movl	-400056(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -400056(%rbp)
	testl	%eax, %eax
	jne	.L27
	movl	$1, -400052(%rbp)
	jmp	.L28
.L31:
	movl	-400052(%rbp), %eax
	movl	%eax, -400064(%rbp)
	jmp	.L29
.L30:
	movl	-400064(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400064(%rbp)
.L29:
	movl	-400064(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L30
	movl	-400064(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-400052(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	S(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -400052(%rbp)
.L28:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jle	.L31
	movl	$1, -400052(%rbp)
	jmp	.L32
.L35:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jne	.L33
	movl	$10, %ecx
	jmp	.L34
.L33:
	movl	$32, %ecx
.L34:
	movl	-400052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-400052(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	subl	$1, %eax
	movl	%ecx, %edx
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -400052(%rbp)
.L32:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jle	.L35
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 400040
p:
	.zero	400040
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 400040
d:
	.zero	400040
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 400040
S:
	.zero	400040
	.text
	.globl	Find
	.type	Find, @function
Find:
.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	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L3
	jmp	.L4
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L5
	movl	-24(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L6
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L7
	jmp	.L8
.L9:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
.L8:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L9
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	setne	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Find, .-Find
	.globl	Union
	.type	Union, @function
Union:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$8, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Find
	testl	%eax, %eax
	je	.L20
	jmp	.L13
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
.L13:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L14
	jmp	.L15
.L16:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L16
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L17
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L18
.L17:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L19
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L19:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	S(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Union, .-Union
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400048(%rbp), %rax
	movl	$400040, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400052(%rbp)
	jmp	.L22
.L23:
	movl	-400052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -400052(%rbp)
.L22:
	cmpl	$100009, -400052(%rbp)
	jle	.L23
	leaq	-400056(%rbp), %rcx
	leaq	-400068(%rbp), %rdx
	leaq	-400072(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L24
.L25:
	leaq	-400060(%rbp), %rdx
	leaq	-400064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400060(%rbp), %edx
	movl	-400064(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Union
	movl	-400064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	movl	-400060(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
.L24:
	movl	-400068(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -400068(%rbp)
	testl	%eax, %eax
	jne	.L25
	jmp	.L26
.L27:
	leaq	-400060(%rbp), %rdx
	leaq	-400064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400060(%rbp), %edx
	movl	-400064(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Find
	testl	%eax, %eax
	jne	.L26
	movl	-400064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	movl	-400060(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
.L26:
	movl	-400056(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -400056(%rbp)
	testl	%eax, %eax
	jne	.L27
	movl	$1, -400052(%rbp)
	jmp	.L28
.L31:
	movl	-400052(%rbp), %eax
	movl	%eax, -400064(%rbp)
	jmp	.L29
.L30:
	movl	-400064(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400064(%rbp)
.L29:
	movl	-400064(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L30
	movl	-400064(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-400052(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	S(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -400052(%rbp)
.L28:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jle	.L31
	movl	$1, -400052(%rbp)
	jmp	.L32
.L35:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jne	.L33
	movl	$10, %ecx
	jmp	.L34
.L33:
	movl	$32, %ecx
.L34:
	movl	-400052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-400052(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	subl	$1, %eax
	movl	%ecx, %edx
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -400052(%rbp)
.L32:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jle	.L35
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
