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 <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <assert.h>
typedef int64_t ll;
typedef uint64_t ull;
int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */
int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */
#define min(a,b) (a < b ? a: b)
#define max(a,b) (a > b ? a: b)

#define MAXN (100001)
#define MOD (1000000007)


//Union Find
int uf[MAXN];
int ufSize[MAXN];
void UFinit(int n)
{
    for(int i=0;i<n;i++)
    {
        uf[i] = i;
        ufSize[i] = 1;
    }
}

int UFroot(int i)
{
    if(uf[i]==i) return i;
    uf[i] = UFroot(uf[i]);
    return uf[i];
}

// 元々根が同じならfalse 違うなら統合してtrue
bool UFunite(int i,int j)
{
    int ri = UFroot(i);
    int rj = UFroot(j);

    if(ri == rj) return false;
    ufSize[ri] += ufSize[rj];
    uf[rj] = ri;
    return true;
}


ll as[MAXN];
ll a[MAXN];
ll b[MAXN];
ll bs[MAXN];

typedef struct 
{
    ll a;
    ll b;
}s;
int acs_a(const void *a, const void *b){return ((s*)a)->a - ((s*)b)->a;} /* 1,2,3,4.. */
int acs_b(const void *a, const void *b){return ((s*)a)->b - ((s*)b)->b;} /* 1,2,3,4.. */

s ss[MAXN];

int main(void)
{
    ll n;
    scanf("%ld",&n);

    for(int i=0;i<n;i++) scanf("%ld",&a[i]);
    for(int i=0;i<n;i++) scanf("%ld",&b[i]);
    for(int i=0;i<n;i++)
    {
        as[i] = a[i];
        bs[i] = b[i];
        ss[i].a = a[i];
        ss[i].b = b[i];
    }
    qsort(as,n,sizeof(ll),acs);
    qsort(bs,n,sizeof(ll),acs);

    qsort(ss,n,sizeof(s),acs_a);
    for(int i=0;i<n;i++) ss[i].a = i;
    qsort(ss,n,sizeof(s),acs_b);


    bool ans = true;
    for(int i=0;i<n;i++) if(as[i]>bs[i]) ans =false;
    
    if(!ans)
    {
        printf("No\n");
        return 0;
    }

    UFinit(n);
    for(int i=0;i<n;i++) UFunite(i,ss[i].a);

    if(ufSize[UFroot(0)]==n)
    {
        ans = false;
        for(int i=0;i<n-1;i++)
        {
            if(as[i+1]<=bs[i])
            {
                ans = true;
                break;
            }
        }
    }else ans = true;

    printf("%s\n", ans?"Yes":"No");
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	acs
	.type	acs, @function
acs:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	acs, .-acs
	.globl	des
	.type	des, @function
des:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	des, .-des
	.globl	uf
	.bss
	.align 32
	.type	uf, @object
	.size	uf, 400004
uf:
	.zero	400004
	.globl	ufSize
	.align 32
	.type	ufSize, @object
	.size	ufSize, 400004
ufSize:
	.zero	400004
	.text
	.globl	UFinit
	.type	UFinit, @function
UFinit:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	uf(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	UFinit, .-UFinit
	.globl	UFroot
	.type	UFroot, @function
UFroot:
.LFB9:
	.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	uf(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L9
	movl	-4(%rbp), %eax
	jmp	.L10
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	uf(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	UFroot
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	uf(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	uf(%rip), %rax
	movl	(%rdx,%rax), %eax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	UFroot, .-UFroot
	.globl	UFunite
	.type	UFunite, @function
UFunite:
.LFB10:
	.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	UFroot
	movl	%eax, -8(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	UFroot
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jne	.L12
	movl	$0, %eax
	jmp	.L13
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	uf(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, %eax
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	UFunite, .-UFunite
	.globl	as
	.bss
	.align 32
	.type	as, @object
	.size	as, 800008
as:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	bs
	.align 32
	.type	bs, @object
	.size	bs, 800008
bs:
	.zero	800008
	.text
	.globl	acs_a
	.type	acs_a, @function
acs_a:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	acs_a, .-acs_a
	.globl	acs_b
	.type	acs_b, @function
acs_b:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	8(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	acs_b, .-acs_b
	.globl	ss
	.bss
	.align 32
	.type	ss, @object
	.size	ss, 1600016
ss:
	.zero	1600016
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -44(%rbp)
	jmp	.L19
.L20:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44(%rbp)
.L19:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L20
	movl	$0, -40(%rbp)
	jmp	.L21
.L22:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L21:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L22
	movl	$0, -36(%rbp)
	jmp	.L23
.L24:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	as(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	bs(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	ss(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+ss(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -36(%rbp)
.L23:
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L24
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs(%rip), %rax
	movq	%rax, %rcx
	movl	$8, %edx
	leaq	as(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs(%rip), %rax
	movq	%rax, %rcx
	movl	$8, %edx
	leaq	bs(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs_a(%rip), %rax
	movq	%rax, %rcx
	movl	$16, %edx
	leaq	ss(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -32(%rbp)
	jmp	.L25
.L26:
	movl	-32(%rbp), %eax
	cltq
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	ss(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L25:
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L26
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs_b(%rip), %rax
	movq	%rax, %rcx
	movl	$16, %edx
	leaq	ss(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movb	$1, -45(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L27
.L29:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	as(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	bs(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	jle	.L28
	movb	$0, -45(%rbp)
.L28:
	addl	$1, -28(%rbp)
.L27:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L29
	movzbl	-45(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L30
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L42
.L30:
	movq	-16(%rbp), %rax
	movl	%eax, %edi
	call	UFinit
	movl	$0, -24(%rbp)
	jmp	.L32
.L33:
	movl	-24(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	ss(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	UFunite
	addl	$1, -24(%rbp)
.L32:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L33
	movl	$0, %edi
	call	UFroot
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L34
	movb	$0, -45(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L35
.L38:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	as(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	bs(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	jg	.L36
	movb	$1, -45(%rbp)
	jmp	.L39
.L36:
	addl	$1, -20(%rbp)
.L35:
	movl	-20(%rbp), %eax
	cltq
	movq	-16(%rbp), %rdx
	subq	$1, %rdx
	cmpq	%rdx, %rax
	jl	.L38
	jmp	.L39
.L34:
	movb	$1, -45(%rbp)
.L39:
	cmpb	$0, -45(%rbp)
	je	.L40
	leaq	.LC2(%rip), %rax
	jmp	.L41
.L40:
	leaq	.LC1(%rip), %rax
.L41:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L42:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	acs
	.type	acs, @function
acs:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	acs, .-acs
	.p2align 4
	.globl	acs_a
	.type	acs_a, @function
acs_a:
.LFB56:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE56:
	.size	acs_a, .-acs_a
	.p2align 4
	.globl	acs_b
	.type	acs_b, @function
acs_b:
.LFB57:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rax
	subl	8(%rsi), %eax
	ret
	.cfi_endproc
.LFE57:
	.size	acs_b, .-acs_b
	.p2align 4
	.globl	des
	.type	des, @function
des:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE52:
	.size	des, .-des
	.p2align 4
	.globl	UFinit
	.type	UFinit, @function
UFinit:
.LFB53:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L6
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L11
	movl	%edi, %edx
	movdqa	.LC0(%rip), %xmm0
	xorl	%eax, %eax
	movdqa	.LC1(%rip), %xmm3
	shrl	$2, %edx
	movdqa	.LC2(%rip), %xmm2
	leaq	uf(%rip), %rsi
	leaq	ufSize(%rip), %rcx
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm0, %xmm1
	movaps	%xmm2, (%rcx,%rax)
	paddd	%xmm3, %xmm0
	movaps	%xmm1, (%rsi,%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L9
	movl	%edi, %eax
	andl	$-4, %eax
	testb	$3, %dil
	je	.L13
.L8:
	movslq	%eax, %rdx
	movl	%eax, (%rsi,%rdx,4)
	movl	$1, (%rcx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %edi
	jle	.L6
	movslq	%edx, %r8
	addl	$2, %eax
	movl	%edx, (%rsi,%r8,4)
	movl	$1, (%rcx,%r8,4)
	cmpl	%eax, %edi
	jle	.L6
	movslq	%eax, %rdx
	movl	%eax, (%rsi,%rdx,4)
	movl	$1, (%rcx,%rdx,4)
.L6:
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	ret
.L11:
	xorl	%eax, %eax
	leaq	uf(%rip), %rsi
	leaq	ufSize(%rip), %rcx
	jmp	.L8
	.cfi_endproc
.LFE53:
	.size	UFinit, .-UFinit
	.p2align 4
	.globl	UFroot
	.type	UFroot, @function
UFroot:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	uf(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	(%rbx,%rbp,4), %edx
	movl	%edx, %eax
	cmpl	%edi, %edx
	je	.L14
	movslq	%edx, %r12
	movl	(%rbx,%r12,4), %eax
	cmpl	%eax, %edx
	je	.L16
	movslq	%eax, %r13
	movl	(%rbx,%r13,4), %edx
	cmpl	%edx, %eax
	je	.L17
	movslq	%edx, %r14
	movl	(%rbx,%r14,4), %eax
	cmpl	%eax, %edx
	je	.L18
	movslq	%eax, %r15
	movl	(%rbx,%r15,4), %edx
	cmpl	%edx, %eax
	je	.L19
	movslq	%edx, %rcx
	movl	(%rbx,%rcx,4), %eax
	movq	%rcx, 8(%rsp)
	cmpl	%eax, %edx
	je	.L20
	movl	%eax, %edi
	call	UFroot
	movq	8(%rsp), %rcx
	movl	%eax, (%rbx,%rcx,4)
.L20:
	movl	%eax, (%rbx,%r15,4)
.L19:
	movl	%eax, (%rbx,%r14,4)
.L18:
	movl	%eax, (%rbx,%r13,4)
.L17:
	movl	%eax, (%rbx,%r12,4)
.L16:
	movl	%eax, (%rbx,%rbp,4)
.L14:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE54:
	.size	UFroot, .-UFroot
	.p2align 4
	.globl	UFunite
	.type	UFunite, @function
UFunite:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	uf(%rip), %r9
	movslq	%edi, %r10
	movl	%esi, %r8d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	(%r9,%r10,4), %esi
	cmpl	%esi, %edi
	je	.L27
	movslq	%esi, %r11
	movl	(%r9,%r11,4), %eax
	cmpl	%eax, %esi
	je	.L28
	movslq	%eax, %rbx
	movl	(%r9,%rbx,4), %esi
	cmpl	%esi, %eax
	je	.L29
	movslq	%esi, %rbp
	movl	(%r9,%rbp,4), %edi
	cmpl	%edi, %esi
	je	.L30
	call	UFroot
	movl	%eax, (%r9,%rbp,4)
	movl	%eax, %esi
.L30:
	movl	%esi, (%r9,%rbx,4)
.L29:
	movl	%esi, (%r9,%r11,4)
.L28:
	movl	%esi, (%r9,%r10,4)
.L27:
	movslq	%r8d, %r10
	movslq	(%r9,%r10,4), %rdi
	cmpl	%edi, %r8d
	je	.L31
	movslq	%edi, %r8
	movl	(%r9,%r8,4), %eax
	cmpl	%eax, %edi
	je	.L32
	movslq	%eax, %r11
	movslq	(%r9,%r11,4), %rdi
	cmpl	%edi, %eax
	je	.L33
	movslq	%edi, %rbx
	movl	(%r9,%rbx,4), %eax
	cmpl	%eax, %edi
	je	.L34
	movslq	%eax, %rbp
	movslq	(%r9,%rbp,4), %rdi
	cmpl	%edi, %eax
	je	.L35
	call	UFroot
	movslq	%eax, %rdi
	movl	%edi, (%r9,%rbp,4)
.L35:
	movl	%edi, (%r9,%rbx,4)
.L34:
	movl	%edi, (%r9,%r11,4)
.L33:
	movl	%edi, (%r9,%r8,4)
.L32:
	movl	%edi, (%r9,%r10,4)
.L31:
	xorl	%eax, %eax
	cmpl	%esi, %edi
	je	.L26
	movl	%esi, (%r9,%rdi,4)
	leaq	ufSize(%rip), %rax
	movslq	%esi, %rdx
	movl	(%rax,%rdi,4), %ecx
	addl	%ecx, (%rax,%rdx,4)
	movl	$1, %eax
.L26:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE55:
	.size	UFunite, .-UFunite
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"No"
.LC4:
	.string	"Yes"
.LC5:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB58:
	.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
	leaq	.LC5(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	leaq	a(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %r14
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rbp
	testq	%rbp, %rbp
	jle	.L104
	.p2align 4,,10
	.p2align 3
.L45:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rbp
	addq	$8, %r14
	cmpq	%rbx, %rbp
	jg	.L45
	testq	%rbp, %rbp
	jle	.L104
	leaq	b(%rip), %r14
	xorl	%ebx, %ebx
	movq	%r14, %r15
	.p2align 4,,10
	.p2align 3
.L46:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rbp
	addq	$8, %r15
	cmpq	%rbx, %rbp
	jg	.L46
	testq	%rbp, %rbp
	jle	.L104
	leaq	as(%rip), %rbx
	leaq	0(,%rbp,8), %rdx
	leaq	a(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rdx, 8(%rsp)
	leaq	bs(%rip), %r13
	call	memcpy@PLT
	movq	8(%rsp), %rdx
	leaq	b(%rip), %rsi
	movq	%r13, %rdi
	call	memcpy@PLT
	cmpq	$1, %rbp
	je	.L76
	movq	%rbp, %rdx
	leaq	ss(%rip), %r8
	shrq	%rdx
	movq	%r8, %rax
	salq	$4, %rdx
	addq	%r12, %rdx
	.p2align 4,,10
	.p2align 3
.L49:
	movdqa	(%r12), %xmm0
	addq	$16, %r12
	addq	$32, %rax
	movq	%xmm0, -32(%rax)
	movhps	%xmm0, -16(%rax)
	cmpq	%rdx, %r12
	jne	.L49
	movq	%rbp, %rdx
	andq	$-2, %rdx
	movslq	%edx, %rax
	cmpq	%rdx, %rbp
	je	.L50
.L48:
	leaq	a(%rip), %rcx
	movq	%rax, %rdx
	movq	(%rcx,%rax,8), %rax
	salq	$4, %rdx
	movq	%rax, (%r8,%rdx)
	cmpq	$1, %rbp
	je	.L77
.L50:
	movq	%rbp, %rdx
	leaq	8+ss(%rip), %rax
	shrq	%rdx
	salq	$4, %rdx
	addq	%r14, %rdx
	.p2align 4,,10
	.p2align 3
.L52:
	movdqa	(%r14), %xmm0
	addq	$16, %r14
	addq	$32, %rax
	movq	%xmm0, -32(%rax)
	movhps	%xmm0, -16(%rax)
	cmpq	%rdx, %r14
	jne	.L52
	movq	%rbp, %rdx
	andq	$-2, %rdx
	movslq	%edx, %rax
	cmpq	%rdx, %rbp
	je	.L47
.L51:
	leaq	b(%rip), %rcx
	movq	%rax, %rdx
	movq	(%rcx,%rax,8), %rax
	salq	$4, %rdx
	movq	%rax, 8(%rdx,%r8)
.L47:
	movl	$8, %edx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movq	%r8, 8(%rsp)
	leaq	acs(%rip), %r12
	movq	%r12, %rcx
	call	qsort@PLT
	movq	16(%rsp), %rsi
	movq	%r12, %rcx
	movq	%r13, %rdi
	movl	$8, %edx
	call	qsort@PLT
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$16, %edx
	leaq	acs_a(%rip), %rcx
	call	qsort@PLT
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	movq	8(%rsp), %r8
	leaq	ss(%rip), %rdx
	testq	%rsi, %rsi
	jle	.L58
	.p2align 4,,10
	.p2align 3
.L57:
	movq	%rax, (%rdx)
	addq	$1, %rax
	addq	$16, %rdx
	cmpq	%rax, %rsi
	jne	.L57
.L58:
	leaq	acs_b(%rip), %rcx
	movl	$16, %edx
	movq	%r8, %rdi
	call	qsort@PLT
	movq	16(%rsp), %r12
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	movl	$1, %edx
	leaq	0(,%r12,8), %rsi
	testq	%r12, %r12
	jle	.L105
	.p2align 4,,10
	.p2align 3
.L60:
	movq	0(%r13,%rax), %rdi
	cmpq	%rdi, (%rbx,%rax)
	cmovg	%ecx, %edx
	addq	$8, %rax
	cmpq	%rsi, %rax
	jne	.L60
	movl	%r12d, %esi
	testb	%dl, %dl
	je	.L106
.L62:
	testl	%esi, %esi
	movl	$1, %edi
	cmovg	%esi, %edi
	cmpl	$3, %esi
	jle	.L78
	movl	%edi, %edx
	movdqa	.LC0(%rip), %xmm0
	xorl	%eax, %eax
	movdqa	.LC1(%rip), %xmm3
	shrl	$2, %edx
	movdqa	.LC2(%rip), %xmm2
	leaq	uf(%rip), %rcx
	leaq	ufSize(%rip), %r13
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L68:
	movdqa	%xmm0, %xmm1
	movaps	%xmm2, 0(%r13,%rax)
	paddd	%xmm3, %xmm0
	movaps	%xmm1, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L68
	movl	%edi, %eax
	andl	$-4, %eax
	andb	$3, %dil
	je	.L69
.L67:
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	$1, 0(%r13,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %esi
	jle	.L69
	movslq	%edx, %rdi
	addl	$2, %eax
	movl	%edx, (%rcx,%rdi,4)
	movl	$1, 0(%r13,%rdi,4)
	cmpl	%eax, %esi
	jle	.L69
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	$1, 0(%r13,%rdx,4)
.L69:
	testq	%r12, %r12
	jle	.L70
	leaq	ss(%rip), %rbx
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L71:
	movl	(%rbx), %esi
	movl	%ebp, %edi
	addq	$1, %rbp
	addq	$16, %rbx
	call	UFunite
	cmpq	%r12, %rbp
	jne	.L71
.L70:
	movslq	uf(%rip), %rdi
	testl	%edi, %edi
	je	.L63
	call	UFroot
	movslq	%eax, %rdi
	movl	%edi, uf(%rip)
.L63:
	movslq	0(%r13,%rdi,4), %rax
	leaq	.LC4(%rip), %rdi
	cmpq	%r12, %rax
	je	.L107
.L72:
	call	puts@PLT
.L66:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L108
	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
.L77:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L51
.L107:
	subq	$1, %r12
	xorl	%eax, %eax
	leaq	8+as(%rip), %rsi
	leaq	-8+bs(%rip), %rcx
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L74:
	movq	(%rsi,%rax,8), %rdx
	addq	$1, %rax
	cmpq	(%rcx,%rax,8), %rdx
	jle	.L80
.L73:
	cmpq	%rax, %r12
	jg	.L74
	leaq	.LC3(%rip), %rdi
	jmp	.L72
.L106:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L66
.L80:
	leaq	.LC4(%rip), %rdi
	jmp	.L72
.L105:
	movl	%r12d, %esi
	testl	%r12d, %r12d
	jg	.L62
	leaq	ufSize(%rip), %r13
	jmp	.L70
.L104:
	leaq	as(%rip), %rbx
	leaq	bs(%rip), %r13
	leaq	ss(%rip), %r8
	jmp	.L47
.L76:
	xorl	%eax, %eax
	leaq	ss(%rip), %r8
	jmp	.L48
.L78:
	xorl	%eax, %eax
	leaq	uf(%rip), %rcx
	leaq	ufSize(%rip), %r13
	jmp	.L67
.L108:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE58:
	.size	main, .-main
	.globl	ss
	.bss
	.align 32
	.type	ss, @object
	.size	ss, 1600016
ss:
	.zero	1600016
	.globl	bs
	.align 32
	.type	bs, @object
	.size	bs, 800008
bs:
	.zero	800008
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.globl	as
	.align 32
	.type	as, @object
	.size	as, 800008
as:
	.zero	800008
	.globl	ufSize
	.align 32
	.type	ufSize, @object
	.size	ufSize, 400004
ufSize:
	.zero	400004
	.globl	uf
	.align 32
	.type	uf, @object
	.size	uf, 400004
uf:
	.zero	400004
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	acs
	.type	acs, @function
acs:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	acs, .-acs
	.p2align 4
	.globl	acs_a
	.type	acs_a, @function
acs_a:
.LFB56:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE56:
	.size	acs_a, .-acs_a
	.p2align 4
	.globl	acs_b
	.type	acs_b, @function
acs_b:
.LFB57:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rax
	subl	8(%rsi), %eax
	ret
	.cfi_endproc
.LFE57:
	.size	acs_b, .-acs_b
	.p2align 4
	.globl	des
	.type	des, @function
des:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE52:
	.size	des, .-des
	.p2align 4
	.globl	UFinit
	.type	UFinit, @function
UFinit:
.LFB53:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L6
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L11
	movl	%edi, %edx
	movdqa	.LC0(%rip), %xmm0
	xorl	%eax, %eax
	movdqa	.LC1(%rip), %xmm3
	shrl	$2, %edx
	movdqa	.LC2(%rip), %xmm2
	leaq	uf(%rip), %rsi
	leaq	ufSize(%rip), %rcx
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm0, %xmm1
	movaps	%xmm2, (%rcx,%rax)
	paddd	%xmm3, %xmm0
	movaps	%xmm1, (%rsi,%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L9
	movl	%edi, %eax
	andl	$-4, %eax
	testb	$3, %dil
	je	.L13
.L8:
	movslq	%eax, %rdx
	movl	%eax, (%rsi,%rdx,4)
	movl	$1, (%rcx,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %edi
	jle	.L6
	movslq	%edx, %r8
	addl	$2, %eax
	movl	%edx, (%rsi,%r8,4)
	movl	$1, (%rcx,%r8,4)
	cmpl	%eax, %edi
	jle	.L6
	movslq	%eax, %rdx
	movl	%eax, (%rsi,%rdx,4)
	movl	$1, (%rcx,%rdx,4)
.L6:
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	ret
.L11:
	xorl	%eax, %eax
	leaq	uf(%rip), %rsi
	leaq	ufSize(%rip), %rcx
	jmp	.L8
	.cfi_endproc
.LFE53:
	.size	UFinit, .-UFinit
	.p2align 4
	.globl	UFroot
	.type	UFroot, @function
UFroot:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	uf(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	(%rbx,%rbp,4), %edx
	movl	%edx, %eax
	cmpl	%edi, %edx
	je	.L14
	movslq	%edx, %r12
	movl	(%rbx,%r12,4), %eax
	cmpl	%eax, %edx
	je	.L16
	movslq	%eax, %r13
	movl	(%rbx,%r13,4), %edx
	cmpl	%edx, %eax
	je	.L17
	movslq	%edx, %r14
	movl	(%rbx,%r14,4), %eax
	cmpl	%eax, %edx
	je	.L18
	movslq	%eax, %r15
	movl	(%rbx,%r15,4), %edx
	cmpl	%edx, %eax
	je	.L19
	movslq	%edx, %rcx
	movl	(%rbx,%rcx,4), %eax
	movq	%rcx, 8(%rsp)
	cmpl	%eax, %edx
	je	.L20
	movl	%eax, %edi
	call	UFroot
	movq	8(%rsp), %rcx
	movl	%eax, (%rbx,%rcx,4)
.L20:
	movl	%eax, (%rbx,%r15,4)
.L19:
	movl	%eax, (%rbx,%r14,4)
.L18:
	movl	%eax, (%rbx,%r13,4)
.L17:
	movl	%eax, (%rbx,%r12,4)
.L16:
	movl	%eax, (%rbx,%rbp,4)
.L14:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE54:
	.size	UFroot, .-UFroot
	.p2align 4
	.globl	UFunite
	.type	UFunite, @function
UFunite:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	uf(%rip), %r9
	movslq	%edi, %r10
	movl	%esi, %r8d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	(%r9,%r10,4), %esi
	cmpl	%esi, %edi
	je	.L27
	movslq	%esi, %r11
	movl	(%r9,%r11,4), %eax
	cmpl	%eax, %esi
	je	.L28
	movslq	%eax, %rbx
	movl	(%r9,%rbx,4), %esi
	cmpl	%esi, %eax
	je	.L29
	movslq	%esi, %rbp
	movl	(%r9,%rbp,4), %edi
	cmpl	%edi, %esi
	je	.L30
	call	UFroot
	movl	%eax, (%r9,%rbp,4)
	movl	%eax, %esi
.L30:
	movl	%esi, (%r9,%rbx,4)
.L29:
	movl	%esi, (%r9,%r11,4)
.L28:
	movl	%esi, (%r9,%r10,4)
.L27:
	movslq	%r8d, %r10
	movslq	(%r9,%r10,4), %rdi
	cmpl	%edi, %r8d
	je	.L31
	movslq	%edi, %r8
	movl	(%r9,%r8,4), %eax
	cmpl	%eax, %edi
	je	.L32
	movslq	%eax, %r11
	movslq	(%r9,%r11,4), %rdi
	cmpl	%edi, %eax
	je	.L33
	movslq	%edi, %rbx
	movl	(%r9,%rbx,4), %eax
	cmpl	%eax, %edi
	je	.L34
	movslq	%eax, %rbp
	movslq	(%r9,%rbp,4), %rdi
	cmpl	%edi, %eax
	je	.L35
	call	UFroot
	movslq	%eax, %rdi
	movl	%edi, (%r9,%rbp,4)
.L35:
	movl	%edi, (%r9,%rbx,4)
.L34:
	movl	%edi, (%r9,%r11,4)
.L33:
	movl	%edi, (%r9,%r8,4)
.L32:
	movl	%edi, (%r9,%r10,4)
.L31:
	xorl	%eax, %eax
	cmpl	%esi, %edi
	je	.L26
	movl	%esi, (%r9,%rdi,4)
	leaq	ufSize(%rip), %rax
	movslq	%esi, %rdx
	movl	(%rax,%rdi,4), %ecx
	addl	%ecx, (%rax,%rdx,4)
	movl	$1, %eax
.L26:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE55:
	.size	UFunite, .-UFunite
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"No"
.LC4:
	.string	"Yes"
.LC5:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB58:
	.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
	leaq	.LC5(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	leaq	a(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %r14
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rbp
	testq	%rbp, %rbp
	jle	.L104
	.p2align 4,,10
	.p2align 3
.L45:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rbp
	addq	$8, %r14
	cmpq	%rbx, %rbp
	jg	.L45
	testq	%rbp, %rbp
	jle	.L104
	leaq	b(%rip), %r14
	xorl	%ebx, %ebx
	movq	%r14, %r15
	.p2align 4,,10
	.p2align 3
.L46:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rbp
	addq	$8, %r15
	cmpq	%rbx, %rbp
	jg	.L46
	testq	%rbp, %rbp
	jle	.L104
	leaq	as(%rip), %rbx
	leaq	0(,%rbp,8), %rdx
	leaq	a(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rdx, 8(%rsp)
	leaq	bs(%rip), %r13
	call	memcpy@PLT
	movq	8(%rsp), %rdx
	leaq	b(%rip), %rsi
	movq	%r13, %rdi
	call	memcpy@PLT
	cmpq	$1, %rbp
	je	.L76
	movq	%rbp, %rdx
	leaq	ss(%rip), %r8
	shrq	%rdx
	movq	%r8, %rax
	salq	$4, %rdx
	addq	%r12, %rdx
	.p2align 4,,10
	.p2align 3
.L49:
	movdqa	(%r12), %xmm0
	addq	$16, %r12
	addq	$32, %rax
	movq	%xmm0, -32(%rax)
	movhps	%xmm0, -16(%rax)
	cmpq	%rdx, %r12
	jne	.L49
	movq	%rbp, %rdx
	andq	$-2, %rdx
	movslq	%edx, %rax
	cmpq	%rdx, %rbp
	je	.L50
.L48:
	leaq	a(%rip), %rcx
	movq	%rax, %rdx
	movq	(%rcx,%rax,8), %rax
	salq	$4, %rdx
	movq	%rax, (%r8,%rdx)
	cmpq	$1, %rbp
	je	.L77
.L50:
	movq	%rbp, %rdx
	leaq	8+ss(%rip), %rax
	shrq	%rdx
	salq	$4, %rdx
	addq	%r14, %rdx
	.p2align 4,,10
	.p2align 3
.L52:
	movdqa	(%r14), %xmm0
	addq	$16, %r14
	addq	$32, %rax
	movq	%xmm0, -32(%rax)
	movhps	%xmm0, -16(%rax)
	cmpq	%rdx, %r14
	jne	.L52
	movq	%rbp, %rdx
	andq	$-2, %rdx
	movslq	%edx, %rax
	cmpq	%rdx, %rbp
	je	.L47
.L51:
	leaq	b(%rip), %rcx
	movq	%rax, %rdx
	movq	(%rcx,%rax,8), %rax
	salq	$4, %rdx
	movq	%rax, 8(%rdx,%r8)
.L47:
	movl	$8, %edx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movq	%r8, 8(%rsp)
	leaq	acs(%rip), %r12
	movq	%r12, %rcx
	call	qsort@PLT
	movq	16(%rsp), %rsi
	movq	%r12, %rcx
	movq	%r13, %rdi
	movl	$8, %edx
	call	qsort@PLT
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$16, %edx
	leaq	acs_a(%rip), %rcx
	call	qsort@PLT
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	movq	8(%rsp), %r8
	leaq	ss(%rip), %rdx
	testq	%rsi, %rsi
	jle	.L58
	.p2align 4,,10
	.p2align 3
.L57:
	movq	%rax, (%rdx)
	addq	$1, %rax
	addq	$16, %rdx
	cmpq	%rax, %rsi
	jne	.L57
.L58:
	leaq	acs_b(%rip), %rcx
	movl	$16, %edx
	movq	%r8, %rdi
	call	qsort@PLT
	movq	16(%rsp), %r12
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	movl	$1, %edx
	leaq	0(,%r12,8), %rsi
	testq	%r12, %r12
	jle	.L105
	.p2align 4,,10
	.p2align 3
.L60:
	movq	0(%r13,%rax), %rdi
	cmpq	%rdi, (%rbx,%rax)
	cmovg	%ecx, %edx
	addq	$8, %rax
	cmpq	%rsi, %rax
	jne	.L60
	movl	%r12d, %esi
	testb	%dl, %dl
	je	.L106
.L62:
	testl	%esi, %esi
	movl	$1, %edi
	cmovg	%esi, %edi
	cmpl	$3, %esi
	jle	.L78
	movl	%edi, %edx
	movdqa	.LC0(%rip), %xmm0
	xorl	%eax, %eax
	movdqa	.LC1(%rip), %xmm3
	shrl	$2, %edx
	movdqa	.LC2(%rip), %xmm2
	leaq	uf(%rip), %rcx
	leaq	ufSize(%rip), %r13
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L68:
	movdqa	%xmm0, %xmm1
	movaps	%xmm2, 0(%r13,%rax)
	paddd	%xmm3, %xmm0
	movaps	%xmm1, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L68
	movl	%edi, %eax
	andl	$-4, %eax
	andb	$3, %dil
	je	.L69
.L67:
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	$1, 0(%r13,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %esi
	jle	.L69
	movslq	%edx, %rdi
	addl	$2, %eax
	movl	%edx, (%rcx,%rdi,4)
	movl	$1, 0(%r13,%rdi,4)
	cmpl	%eax, %esi
	jle	.L69
	movslq	%eax, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	$1, 0(%r13,%rdx,4)
.L69:
	testq	%r12, %r12
	jle	.L70
	leaq	ss(%rip), %rbx
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L71:
	movl	(%rbx), %esi
	movl	%ebp, %edi
	addq	$1, %rbp
	addq	$16, %rbx
	call	UFunite
	cmpq	%r12, %rbp
	jne	.L71
.L70:
	movslq	uf(%rip), %rdi
	testl	%edi, %edi
	je	.L63
	call	UFroot
	movslq	%eax, %rdi
	movl	%edi, uf(%rip)
.L63:
	movslq	0(%r13,%rdi,4), %rax
	leaq	.LC4(%rip), %rdi
	cmpq	%r12, %rax
	je	.L107
.L72:
	call	puts@PLT
.L66:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L108
	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
.L77:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L51
.L107:
	subq	$1, %r12
	xorl	%eax, %eax
	leaq	8+as(%rip), %rsi
	leaq	-8+bs(%rip), %rcx
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L74:
	movq	(%rsi,%rax,8), %rdx
	addq	$1, %rax
	cmpq	(%rcx,%rax,8), %rdx
	jle	.L80
.L73:
	cmpq	%rax, %r12
	jg	.L74
	leaq	.LC3(%rip), %rdi
	jmp	.L72
.L106:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L66
.L80:
	leaq	.LC4(%rip), %rdi
	jmp	.L72
.L105:
	movl	%r12d, %esi
	testl	%r12d, %r12d
	jg	.L62
	leaq	ufSize(%rip), %r13
	jmp	.L70
.L104:
	leaq	as(%rip), %rbx
	leaq	bs(%rip), %r13
	leaq	ss(%rip), %r8
	jmp	.L47
.L76:
	xorl	%eax, %eax
	leaq	ss(%rip), %r8
	jmp	.L48
.L78:
	xorl	%eax, %eax
	leaq	uf(%rip), %rcx
	leaq	ufSize(%rip), %r13
	jmp	.L67
.L108:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE58:
	.size	main, .-main
	.globl	ss
	.bss
	.align 32
	.type	ss, @object
	.size	ss, 1600016
ss:
	.zero	1600016
	.globl	bs
	.align 32
	.type	bs, @object
	.size	bs, 800008
bs:
	.zero	800008
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.globl	as
	.align 32
	.type	as, @object
	.size	as, 800008
as:
	.zero	800008
	.globl	ufSize
	.align 32
	.type	ufSize, @object
	.size	ufSize, 400004
ufSize:
	.zero	400004
	.globl	uf
	.align 32
	.type	uf, @object
	.size	uf, 400004
uf:
	.zero	400004
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <assert.h>
typedef int64_t ll;
typedef uint64_t ull;
int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */
int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */
#define min(a,b) (a < b ? a: b)
#define max(a,b) (a > b ? a: b)

#define MAXN (100001)
#define MOD (1000000007)


//Union Find
int uf[MAXN];
int ufSize[MAXN];
void UFinit(int n)
{
    for(int i=0;i<n;i++)
    {
        uf[i] = i;
        ufSize[i] = 1;
    }
}

int UFroot(int i)
{
    if(uf[i]==i) return i;
    uf[i] = UFroot(uf[i]);
    return uf[i];
}

// 元々根が同じならfalse 違うなら統合してtrue
bool UFunite(int i,int j)
{
    int ri = UFroot(i);
    int rj = UFroot(j);

    if(ri == rj) return false;
    ufSize[ri] += ufSize[rj];
    uf[rj] = ri;
    return true;
}


ll as[MAXN];
ll a[MAXN];
ll b[MAXN];
ll bs[MAXN];

typedef struct 
{
    ll a;
    ll b;
}s;
int acs_a(const void *a, const void *b){return ((s*)a)->a - ((s*)b)->a;} /* 1,2,3,4.. */
int acs_b(const void *a, const void *b){return ((s*)a)->b - ((s*)b)->b;} /* 1,2,3,4.. */

s ss[MAXN];

int main(void)
{
    ll n;
    scanf("%ld",&n);

    for(int i=0;i<n;i++) scanf("%ld",&a[i]);
    for(int i=0;i<n;i++) scanf("%ld",&b[i]);
    for(int i=0;i<n;i++)
    {
        as[i] = a[i];
        bs[i] = b[i];
        ss[i].a = a[i];
        ss[i].b = b[i];
    }
    qsort(as,n,sizeof(ll),acs);
    qsort(bs,n,sizeof(ll),acs);

    qsort(ss,n,sizeof(s),acs_a);
    for(int i=0;i<n;i++) ss[i].a = i;
    qsort(ss,n,sizeof(s),acs_b);


    bool ans = true;
    for(int i=0;i<n;i++) if(as[i]>bs[i]) ans =false;
    
    if(!ans)
    {
        printf("No\n");
        return 0;
    }

    UFinit(n);
    for(int i=0;i<n;i++) UFunite(i,ss[i].a);

    if(ufSize[UFroot(0)]==n)
    {
        ans = false;
        for(int i=0;i<n-1;i++)
        {
            if(as[i+1]<=bs[i])
            {
                ans = true;
                break;
            }
        }
    }else ans = true;

    printf("%s\n", ans?"Yes":"No");
    return 0;
}

3
1 3 3
2 2 2
 3
1 3 2
2 2 3
 6
3 1 2 6 3 4
2 2 8 2 4 3
 3
1 3 6
2 2 2
 6
0 1 2 6 3 4
2 2 8 3 4 3
 3
1 3 2
3 2 3
 3
1 3 6
2 2 4
 6
0 1 4 6 3 4
2 2 8 3 4 3
 3
2 3 2
3 2 3
 3
1 3 6
3 2 4

No
 Yes
 No
 No
 Yes
 Yes
 No
 No
 Yes
 No

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 <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <assert.h>
typedef int64_t ll;
typedef uint64_t ull;
int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */
int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */
#define min(a,b) (a < b ? a: b)
#define max(a,b) (a > b ? a: b)

#define MAXN (100001)
#define MOD (1000000007)


//Union Find
int uf[MAXN];
int ufSize[MAXN];
void UFinit(int n)
{
    for(int i=0;i<n;i++)
    {
        uf[i] = i;
        ufSize[i] = 1;
    }
}

int UFroot(int i)
{
    if(uf[i]==i) return i;
    uf[i] = UFroot(uf[i]);
    return uf[i];
}

// 元々根が同じならfalse 違うなら統合してtrue
bool UFunite(int i,int j)
{
    int ri = UFroot(i);
    int rj = UFroot(j);

    if(ri == rj) return false;
    ufSize[ri] += ufSize[rj];
    uf[rj] = ri;
    return true;
}


ll as[MAXN];
ll a[MAXN];
ll b[MAXN];
ll bs[MAXN];

typedef struct 
{
    ll a;
    ll b;
}s;
int acs_a(const void *a, const void *b){return ((s*)a)->a - ((s*)b)->a;} /* 1,2,3,4.. */
int acs_b(const void *a, const void *b){return ((s*)a)->b - ((s*)b)->b;} /* 1,2,3,4.. */

s ss[MAXN];

int main(void)
{
    ll n;
    scanf("%ld",&n);

    for(int i=0;i<n;i++) scanf("%ld",&a[i]);
    for(int i=0;i<n;i++) scanf("%ld",&b[i]);
    for(int i=0;i<n;i++)
    {
        as[i] = a[i];
        bs[i] = b[i];
        ss[i].a = a[i];
        ss[i].b = b[i];
    }
    qsort(as,n,sizeof(ll),acs);
    qsort(bs,n,sizeof(ll),acs);

    qsort(ss,n,sizeof(s),acs_a);
    for(int i=0;i<n;i++) ss[i].a = i;
    qsort(ss,n,sizeof(s),acs_b);


    bool ans = true;
    for(int i=0;i<n;i++) if(as[i]>bs[i]) ans =false;
    
    if(!ans)
    {
        printf("No\n");
        return 0;
    }

    UFinit(n);
    for(int i=0;i<n;i++) UFunite(i,ss[i].a);

    if(ufSize[UFroot(0)]==n)
    {
        ans = false;
        for(int i=0;i<n-1;i++)
        {
            if(as[i+1]<=bs[i])
            {
                ans = true;
                break;
            }
        }
    }else ans = true;

    printf("%s\n", ans?"Yes":"No");
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	acs
	.type	acs, @function
acs:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	acs, .-acs
	.globl	des
	.type	des, @function
des:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	des, .-des
	.globl	uf
	.bss
	.align 32
	.type	uf, @object
	.size	uf, 400004
uf:
	.zero	400004
	.globl	ufSize
	.align 32
	.type	ufSize, @object
	.size	ufSize, 400004
ufSize:
	.zero	400004
	.text
	.globl	UFinit
	.type	UFinit, @function
UFinit:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	uf(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	UFinit, .-UFinit
	.globl	UFroot
	.type	UFroot, @function
UFroot:
.LFB9:
	.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	uf(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L9
	movl	-4(%rbp), %eax
	jmp	.L10
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	uf(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	UFroot
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	uf(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	uf(%rip), %rax
	movl	(%rdx,%rax), %eax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	UFroot, .-UFroot
	.globl	UFunite
	.type	UFunite, @function
UFunite:
.LFB10:
	.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	UFroot
	movl	%eax, -8(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	UFroot
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jne	.L12
	movl	$0, %eax
	jmp	.L13
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	uf(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, %eax
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	UFunite, .-UFunite
	.globl	as
	.bss
	.align 32
	.type	as, @object
	.size	as, 800008
as:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	bs
	.align 32
	.type	bs, @object
	.size	bs, 800008
bs:
	.zero	800008
	.text
	.globl	acs_a
	.type	acs_a, @function
acs_a:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	acs_a, .-acs_a
	.globl	acs_b
	.type	acs_b, @function
acs_b:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	8(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	acs_b, .-acs_b
	.globl	ss
	.bss
	.align 32
	.type	ss, @object
	.size	ss, 1600016
ss:
	.zero	1600016
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -44(%rbp)
	jmp	.L19
.L20:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44(%rbp)
.L19:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L20
	movl	$0, -40(%rbp)
	jmp	.L21
.L22:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L21:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L22
	movl	$0, -36(%rbp)
	jmp	.L23
.L24:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	as(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	bs(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	ss(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+ss(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -36(%rbp)
.L23:
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L24
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs(%rip), %rax
	movq	%rax, %rcx
	movl	$8, %edx
	leaq	as(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs(%rip), %rax
	movq	%rax, %rcx
	movl	$8, %edx
	leaq	bs(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs_a(%rip), %rax
	movq	%rax, %rcx
	movl	$16, %edx
	leaq	ss(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -32(%rbp)
	jmp	.L25
.L26:
	movl	-32(%rbp), %eax
	cltq
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	ss(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L25:
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L26
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs_b(%rip), %rax
	movq	%rax, %rcx
	movl	$16, %edx
	leaq	ss(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movb	$1, -45(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L27
.L29:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	as(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	bs(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	jle	.L28
	movb	$0, -45(%rbp)
.L28:
	addl	$1, -28(%rbp)
.L27:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L29
	movzbl	-45(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L30
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L42
.L30:
	movq	-16(%rbp), %rax
	movl	%eax, %edi
	call	UFinit
	movl	$0, -24(%rbp)
	jmp	.L32
.L33:
	movl	-24(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	ss(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	UFunite
	addl	$1, -24(%rbp)
.L32:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L33
	movl	$0, %edi
	call	UFroot
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L34
	movb	$0, -45(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L35
.L38:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	as(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	bs(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	jg	.L36
	movb	$1, -45(%rbp)
	jmp	.L39
.L36:
	addl	$1, -20(%rbp)
.L35:
	movl	-20(%rbp), %eax
	cltq
	movq	-16(%rbp), %rdx
	subq	$1, %rdx
	cmpq	%rdx, %rax
	jl	.L38
	jmp	.L39
.L34:
	movb	$1, -45(%rbp)
.L39:
	cmpb	$0, -45(%rbp)
	je	.L40
	leaq	.LC2(%rip), %rax
	jmp	.L41
.L40:
	leaq	.LC1(%rip), %rax
.L41:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L42:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	acs
	.type	acs, @function
acs:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	acs, .-acs
	.globl	des
	.type	des, @function
des:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	des, .-des
	.globl	uf
	.bss
	.align 32
	.type	uf, @object
	.size	uf, 400004
uf:
	.zero	400004
	.globl	ufSize
	.align 32
	.type	ufSize, @object
	.size	ufSize, 400004
ufSize:
	.zero	400004
	.text
	.globl	UFinit
	.type	UFinit, @function
UFinit:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	uf(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	UFinit, .-UFinit
	.globl	UFroot
	.type	UFroot, @function
UFroot:
.LFB9:
	.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	uf(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L9
	movl	-4(%rbp), %eax
	jmp	.L10
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	uf(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	UFroot
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	uf(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	uf(%rip), %rax
	movl	(%rdx,%rax), %eax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	UFroot, .-UFroot
	.globl	UFunite
	.type	UFunite, @function
UFunite:
.LFB10:
	.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	UFroot
	movl	%eax, -8(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	UFroot
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jne	.L12
	movl	$0, %eax
	jmp	.L13
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	uf(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, %eax
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	UFunite, .-UFunite
	.globl	as
	.bss
	.align 32
	.type	as, @object
	.size	as, 800008
as:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	bs
	.align 32
	.type	bs, @object
	.size	bs, 800008
bs:
	.zero	800008
	.text
	.globl	acs_a
	.type	acs_a, @function
acs_a:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	acs_a, .-acs_a
	.globl	acs_b
	.type	acs_b, @function
acs_b:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	8(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	acs_b, .-acs_b
	.globl	ss
	.bss
	.align 32
	.type	ss, @object
	.size	ss, 1600016
ss:
	.zero	1600016
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -44(%rbp)
	jmp	.L19
.L20:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44(%rbp)
.L19:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L20
	movl	$0, -40(%rbp)
	jmp	.L21
.L22:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L21:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L22
	movl	$0, -36(%rbp)
	jmp	.L23
.L24:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	as(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	bs(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	ss(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+ss(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -36(%rbp)
.L23:
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L24
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs(%rip), %rax
	movq	%rax, %rcx
	movl	$8, %edx
	leaq	as(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs(%rip), %rax
	movq	%rax, %rcx
	movl	$8, %edx
	leaq	bs(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs_a(%rip), %rax
	movq	%rax, %rcx
	movl	$16, %edx
	leaq	ss(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -32(%rbp)
	jmp	.L25
.L26:
	movl	-32(%rbp), %eax
	cltq
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	ss(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L25:
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L26
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	acs_b(%rip), %rax
	movq	%rax, %rcx
	movl	$16, %edx
	leaq	ss(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movb	$1, -45(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L27
.L29:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	as(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	bs(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	jle	.L28
	movb	$0, -45(%rbp)
.L28:
	addl	$1, -28(%rbp)
.L27:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L29
	movzbl	-45(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L30
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L42
.L30:
	movq	-16(%rbp), %rax
	movl	%eax, %edi
	call	UFinit
	movl	$0, -24(%rbp)
	jmp	.L32
.L33:
	movl	-24(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	ss(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	UFunite
	addl	$1, -24(%rbp)
.L32:
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L33
	movl	$0, %edi
	call	UFroot
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ufSize(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L34
	movb	$0, -45(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L35
.L38:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	as(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	bs(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	jg	.L36
	movb	$1, -45(%rbp)
	jmp	.L39
.L36:
	addl	$1, -20(%rbp)
.L35:
	movl	-20(%rbp), %eax
	cltq
	movq	-16(%rbp), %rdx
	subq	$1, %rdx
	cmpq	%rdx, %rax
	jl	.L38
	jmp	.L39
.L34:
	movb	$1, -45(%rbp)
.L39:
	cmpb	$0, -45(%rbp)
	je	.L40
	leaq	.LC2(%rip), %rax
	jmp	.L41
.L40:
	leaq	.LC1(%rip), %rax
.L41:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L42:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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:
