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 <stdlib.h>
#include <stdint.h> // uint64_t

#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
#define BUF_SIZE 50
#define DIVISOR 1000000007

// size: specify sizeof(str)
int get_str(char *str, int size) {
    if(!fgets(str, size, stdin)) return -1;
    return 0;
}

int get_int(void) {
  int num;
#ifdef BUF_SIZE
  char line[BUF_SIZE];
  if(!fgets(line, BUF_SIZE, stdin)) return 0;
  sscanf(line, "%d", &num);
#else
#error
#endif
  return num;
}

int get_int2(int *a1, int *a2) {
#ifdef BUF_SIZE
  char line[BUF_SIZE];
  if(!fgets(line, BUF_SIZE, stdin)) return -1;
  sscanf(line, "%d %d", a1, a2);
#else
#error
#endif
  return 0;
}

int get_int3(int *a1, int *a2, int *a3) {
#ifdef BUF_SIZE
  char line[BUF_SIZE];
  if(!fgets(line, BUF_SIZE, stdin)) return -1;
  sscanf(line, "%d %d %d", a1, a2, a3);
#else
#error
#endif
  return 0;
}

struct wufind {
    int parent;
    int depth;
    int dist;
};

#define VERTEX_MAX 100000
struct wufind *create_wufind(int num) {
    static struct wufind wufind[VERTEX_MAX];
    int i;
    for(i = 0; i < num; i++) {
        wufind[i].parent = i;
    }
    return wufind;
}

int get_root(struct wufind *wu, int v) {
    int base = v;
    struct wufind *elem = &wu[v];
    if(base == elem->parent) {
        return base;
    } else {
        int root = get_root(wu, elem->parent);
        struct wufind *par = &wu[elem->parent];
        elem->dist += par->dist;
        // compression
        elem->parent = root;
        return root;
    }
} 

int get_diff(struct wufind *wufind, int v1, int v2) {
    get_root(wufind, v1);
    get_root(wufind, v2);
#ifdef DEBUG
    printf("get_diff: %d\n", wufind[v2].dist - wufind[v1].dist);
#endif
    return wufind[v2].dist - wufind[v1].dist;
}

int is_connect(struct wufind *wufind, int v1, int v2) {
    int root1 = get_root(wufind, v1);
    int root2 = get_root(wufind, v2);
#ifdef DEBUG
    printf("is_connect: v1: %d, v2: %d\n", root1, root2);
#endif
    return root1 == root2;
}

// assume that v1, v2 gets compresson done
void unite(struct wufind *wufind, int v1, int v2, int diff) {
    int root1 = wufind[v1].parent;
    int root2 = wufind[v2].parent;
    int w1 = wufind[v1].dist;
    int w2 = wufind[v2].dist;
    struct wufind *wr1 = &wufind[root1];
    struct wufind *wr2 = &wufind[root2];
    // 2->1
    int new_dist = w1 + diff - w2;
    if(wr1->depth >= wr2->depth) {
        if(wr1->depth == wr2->depth) wr1->depth++;
        // 2->1
        wr2->parent = root1;
        wr2->depth = wr1->depth;
        wr2->dist = new_dist;
    } else {
        // 1->2
        wr1->parent = root2;
        wr1->depth = wr2->depth;
        wr1->dist = -new_dist;
    }
    return;
}

#include <limits.h>
#define DIST_MAX 1000000000

int main(void) {
    int num, qs;
    get_int2(&num, &qs);
    struct wufind *wufind = create_wufind(num);

    int i;
    int flag = 1;
    for(i = 0; i < qs; i++) {
        int p1, p2, diff;
        get_int3(&p1, &p2, &diff);
        // 1-indexed -> 0-indexed
        p1--; p2--;
        if(!is_connect(wufind, p1, p2)) {
            unite(wufind, p1, p2, diff);
        } else {
            if(diff != get_diff(wufind, p1, p2)) {
                flag = 0;
                break;
            }
        }
    }
    // int mi = INT_MAX;
    // int ma = INT_MIN;
    // for(i = 1; i < num; i++) {
    //     int res = get_diff(wufind, 0, i);
    //     mi = min(mi, res);
    //     ma = max(ma, res);
    // }
    // if(ma-mi > DIST_MAX) flag = 0;
    printf("%s\n", flag ? "Yes" : "No");
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	get_str
	.type	get_str, @function
get_str:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movq	stdin(%rip), %rdx
	movl	-12(%rbp), %ecx
	movq	-8(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_str, .-get_str
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-64(%rbp), %rax
	movl	$50, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L5
	movl	$0, %eax
	jmp	.L7
.L5:
	leaq	-68(%rbp), %rdx
	leaq	-64(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	-68(%rbp), %eax
.L7:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int, .-get_int
	.section	.rodata
.LC1:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-64(%rbp), %rax
	movl	$50, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L10
	movl	$-1, %eax
	jmp	.L12
.L10:
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, %eax
.L12:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_int2, .-get_int2
	.section	.rodata
.LC2:
	.string	"%d %d %d"
	.text
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-64(%rbp), %rax
	movl	$50, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L15
	movl	$-1, %eax
	jmp	.L17
.L15:
	movq	-88(%rbp), %rsi
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rsi, %r8
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, %eax
.L17:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_int3, .-get_int3
	.globl	create_wufind
	.type	create_wufind, @function
create_wufind:
.LFB10:
	.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	.L20
.L21:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	wufind.0(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L21
	leaq	wufind.0(%rip), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	create_wufind, .-create_wufind
	.globl	get_root
	.type	get_root, @function
get_root:
.LFB11:
	.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	%rdi, -40(%rbp)
	movl	%esi, -44(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -24(%rbp)
	jne	.L24
	movl	-24(%rbp), %eax
	jmp	.L25
.L24:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	8(%rax), %edx
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	addl	%eax, %edx
	movq	-16(%rbp), %rax
	movl	%edx, 8(%rax)
	movq	-16(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get_root, .-get_root
	.globl	get_diff
	.type	get_diff, @function
get_diff:
.LFB12:
	.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
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movl	%edx, -16(%rbp)
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	-16(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	get_diff, .-get_diff
	.globl	is_connect
	.type	is_connect, @function
is_connect:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	%eax, -8(%rbp)
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	sete	%al
	movzbl	%al, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	is_connect, .-is_connect
	.globl	unite
	.type	unite, @function
unite:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movl	%esi, -60(%rbp)
	movl	%edx, -64(%rbp)
	movl	%ecx, -68(%rbp)
	movl	-60(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	-60(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movl	-28(%rbp), %edx
	movl	-68(%rbp), %eax
	addl	%edx, %eax
	subl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jl	.L31
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jne	.L32
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, 4(%rax)
.L32:
	movq	-8(%rbp), %rax
	movl	-36(%rbp), %edx
	movl	%edx, (%rax)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, 8(%rax)
	jmp	.L30
.L31:
	movq	-16(%rbp), %rax
	movl	-32(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, 4(%rax)
	movl	-20(%rbp), %eax
	negl	%eax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movl	%edx, 8(%rax)
	nop
.L30:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	unite, .-unite
	.section	.rodata
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.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	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-44(%rbp), %eax
	movl	%eax, %edi
	call	create_wufind
	movq	%rax, -16(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L36
.L40:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	get_int3
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	is_connect
	testl	%eax, %eax
	jne	.L37
	movl	-28(%rbp), %ecx
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %esi
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	unite
	jmp	.L38
.L37:
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	get_diff
	movl	-28(%rbp), %edx
	cmpl	%edx, %eax
	je	.L38
	movl	$0, -20(%rbp)
	jmp	.L39
.L38:
	addl	$1, -24(%rbp)
.L36:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L40
.L39:
	cmpl	$0, -20(%rbp)
	je	.L41
	leaq	.LC3(%rip), %rax
	jmp	.L42
.L41:
	leaq	.LC4(%rip), %rax
.L42:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.local	wufind.0
	.comm	wufind.0,1200000,32
	.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
	.type	get_root.constprop.0, @function
get_root.constprop.0:
.LFB61:
	.cfi_startproc
	movslq	%edi, %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	(%rax,%rax,2), %rax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	wufind.0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	0(%rbp,%rax,4), %rbx
	movl	(%rbx), %eax
	cmpl	%eax, %edi
	jne	.L8
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	0(%rbp,%rdx,4), %r12
	movl	(%r12), %edx
	cmpl	%edx, %eax
	je	.L3
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	0(%rbp,%rax,4), %r13
	movl	0(%r13), %ecx
	cmpl	%ecx, %edx
	jne	.L9
.L4:
	movl	8(%r13), %eax
	movl	%ecx, (%r12)
	movl	%ecx, %edx
	addl	%eax, 8(%r12)
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	0(%rbp,%rax,4), %r12
.L3:
	movl	8(%r12), %eax
	movl	%edx, (%rbx)
	addl	%eax, 8(%rbx)
	movl	%edx, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movslq	%ecx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	0(%rbp,%rax,4), %r14
	movl	(%r14), %edi
	cmpl	%edi, %ecx
	je	.L5
	call	get_root.constprop.0
	movl	%eax, %edi
	movslq	(%r14), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbp,%rax,4), %eax
	movl	%edi, (%r14)
	addl	%eax, 8(%r14)
	movslq	0(%r13), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	0(%rbp,%rax,4), %r14
.L5:
	movl	8(%r14), %eax
	movl	%edi, 0(%r13)
	movl	%edi, %ecx
	addl	%eax, 8(%r13)
	movslq	(%r12), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	0(%rbp,%rax,4), %r13
	jmp	.L4
	.cfi_endproc
.LFE61:
	.size	get_root.constprop.0, .-get_root.constprop.0
	.p2align 4
	.globl	get_str
	.type	get_str, @function
get_str:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	stdin(%rip), %rcx
	movl	%esi, %edx
	movq	$-1, %rsi
	call	__fgets_chk@PLT
	cmpq	$1, %rax
	sbbl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	get_str, .-get_str
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$50, %esi
	subq	$80, %rsp
	.cfi_def_cfa_offset 96
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	movq	%rax, %r8
	xorl	%eax, %eax
	testq	%r8, %r8
	je	.L12
	leaq	12(%rsp), %rdx
	leaq	.LC0(%rip), %rsi
	movq	%rbp, %rdi
	call	__isoc99_sscanf@PLT
	movl	12(%rsp), %eax
.L12:
	movq	72(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L18
	addq	$80, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	get_int, .-get_int
	.section	.rodata.str1.1
.LC1:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r13
	movl	$50, %esi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L22
	movq	%r13, %rcx
	movq	%r12, %rdx
	leaq	.LC1(%rip), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
	xorl	%eax, %eax
.L19:
	movq	56(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L24
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	movl	$-1, %eax
	jmp	.L19
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	get_int2, .-get_int2
	.section	.rodata.str1.1
.LC2:
	.string	"%d %d %d"
	.text
	.p2align 4
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r13
	movl	$50, %esi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdx, %rbx
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L28
	movq	%rbx, %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rdi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
	xorl	%eax, %eax
.L25:
	movq	56(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L30
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	movl	$-1, %eax
	jmp	.L25
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	get_int3, .-get_int3
	.p2align 4
	.globl	create_wufind
	.type	create_wufind, @function
create_wufind:
.LFB55:
	.cfi_startproc
	endbr64
	leaq	wufind.0(%rip), %r8
	testl	%edi, %edi
	jle	.L32
	movq	%r8, %rdx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%eax, (%rdx)
	addl	$1, %eax
	addq	$12, %rdx
	cmpl	%eax, %edi
	jne	.L33
.L32:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE55:
	.size	create_wufind, .-create_wufind
	.p2align 4
	.globl	get_root
	.type	get_root, @function
get_root:
.LFB56:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movslq	%esi, %rdx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rdx, %rax
	leaq	(%rdx,%rdx,2), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	(%rdi,%rdx,4), %rbp
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movl	0(%rbp), %edx
	cmpl	%eax, %edx
	jne	.L42
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r12
	movl	(%r12), %eax
	cmpl	%eax, %edx
	je	.L38
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r13
	movl	0(%r13), %edx
	cmpl	%edx, %eax
	jne	.L43
.L39:
	movl	8(%r13), %eax
	movl	%edx, (%r12)
	addl	%eax, 8(%r12)
	movslq	0(%rbp), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r12
	movl	%edx, %eax
.L38:
	movl	8(%r12), %edx
	movl	%eax, 0(%rbp)
	addl	%edx, 8(%rbp)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r14
	movl	(%r14), %esi
	cmpl	%esi, %edx
	je	.L40
	movq	%rdi, 8(%rsp)
	call	get_root
	movq	8(%rsp), %rdi
	movl	%eax, %esi
	movslq	(%r14), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rdi,%rax,4), %eax
	movl	%esi, (%r14)
	addl	%eax, 8(%r14)
	movslq	0(%r13), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r14
.L40:
	movl	8(%r14), %eax
	movl	%esi, 0(%r13)
	movl	%esi, %edx
	addl	%eax, 8(%r13)
	movslq	(%r12), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r13
	jmp	.L39
	.cfi_endproc
.LFE56:
	.size	get_root, .-get_root
	.p2align 4
	.globl	get_diff
	.type	get_diff, @function
get_diff:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movslq	%esi, %rax
	movl	%edx, %r8d
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r9
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movl	(%r9), %eax
	cmpl	%eax, %esi
	jne	.L55
.L45:
	movslq	%r8d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r10
	movl	(%r10), %eax
	cmpl	%eax, %r8d
	jne	.L49
	movl	8(%r10), %eax
	subl	8(%r9), %eax
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L55:
	.cfi_restore_state
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r10
	movl	(%r10), %edx
	cmpl	%edx, %eax
	je	.L46
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	(%r11), %eax
	cmpl	%eax, %edx
	jne	.L56
.L47:
	movl	8(%r11), %edx
	movl	%eax, (%r10)
	addl	%edx, 8(%r10)
	movslq	(%r9), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r10
	movl	%eax, %edx
.L46:
	movl	8(%r10), %eax
	movl	%edx, (%r9)
	addl	%eax, 8(%r9)
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L49:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r8
	movl	(%r8), %edx
	cmpl	%edx, %eax
	je	.L51
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	(%r11), %eax
	cmpl	%eax, %edx
	jne	.L57
.L52:
	movl	8(%r11), %edx
	movl	%eax, (%r8)
	addl	%edx, 8(%r8)
	movslq	(%r10), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r8
	movl	%eax, %edx
.L51:
	movl	8(%r8), %eax
	addl	8(%r10), %eax
	movl	%edx, (%r10)
	movl	%eax, 8(%r10)
	subl	8(%r9), %eax
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L57:
	.cfi_restore_state
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %rbx
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	je	.L53
	movq	%rdi, 8(%rsp)
	call	get_root
	movq	8(%rsp), %rdi
	movl	%eax, %esi
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rdi,%rax,4), %eax
	movl	%esi, (%rbx)
	addl	%eax, 8(%rbx)
	movslq	(%r11), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rbx
.L53:
	movl	8(%rbx), %eax
	movl	%esi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r8), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	%esi, %eax
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L56:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %rbx
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	je	.L48
	movq	%rdi, 8(%rsp)
	call	get_root
	movq	8(%rsp), %rdi
	movl	%eax, %esi
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rdi,%rax,4), %eax
	movl	%esi, (%rbx)
	addl	%eax, 8(%rbx)
	movslq	(%r11), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rbx
.L48:
	movl	8(%rbx), %eax
	movl	%esi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r10), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	%esi, %eax
	jmp	.L47
	.cfi_endproc
.LFE57:
	.size	get_diff, .-get_diff
	.p2align 4
	.globl	is_connect
	.type	is_connect, @function
is_connect:
.LFB58:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movslq	%esi, %rax
	movl	%edx, %r8d
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r10
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movl	(%r10), %r9d
	cmpl	%r9d, %esi
	jne	.L68
.L59:
	movslq	%r8d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r10
	movl	(%r10), %eax
	cmpl	%eax, %r8d
	jne	.L69
	cmpl	%r9d, %eax
	sete	%al
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	movzbl	%al, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L68:
	.cfi_restore_state
	movslq	%r9d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	(%r11), %eax
	cmpl	%eax, %r9d
	je	.L60
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r9
	movl	(%r9), %edx
	cmpl	%edx, %eax
	jne	.L70
.L61:
	movl	8(%r9), %eax
	movl	%edx, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r10), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	%edx, %eax
.L60:
	movl	8(%r11), %edx
	movl	%eax, %r9d
	addl	%edx, 8(%r10)
	movl	%eax, (%r10)
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L69:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r8
	movl	(%r8), %edx
	cmpl	%edx, %eax
	je	.L64
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	(%r11), %eax
	cmpl	%eax, %edx
	jne	.L71
.L65:
	movl	8(%r11), %edx
	movl	%eax, (%r8)
	addl	%edx, 8(%r8)
	movslq	(%r10), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r8
	movl	%eax, %edx
.L64:
	movl	8(%r8), %eax
	addl	%eax, 8(%r10)
	movl	%edx, %eax
	cmpl	%r9d, %eax
	movl	%edx, (%r10)
	sete	%al
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	movzbl	%al, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L71:
	.cfi_restore_state
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %rbx
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	je	.L66
	movq	%rdi, 8(%rsp)
	call	get_root
	movq	8(%rsp), %rdi
	movl	%eax, %esi
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rdi,%rax,4), %eax
	movl	%esi, (%rbx)
	addl	%eax, 8(%rbx)
	movslq	(%r11), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rbx
.L66:
	movl	8(%rbx), %eax
	movl	%esi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r8), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	%esi, %eax
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L70:
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rbx
	movl	(%rbx), %esi
	cmpl	%esi, %edx
	je	.L62
	movq	%rdi, 8(%rsp)
	call	get_root
	movq	8(%rsp), %rdi
	movl	%eax, %esi
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rdi,%rax,4), %eax
	movl	%esi, (%rbx)
	addl	%eax, 8(%rbx)
	movslq	(%r9), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rbx
.L62:
	movl	8(%rbx), %eax
	movl	%esi, (%r9)
	movl	%esi, %edx
	addl	%eax, 8(%r9)
	movslq	(%r11), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r9
	jmp	.L61
	.cfi_endproc
.LFE58:
	.size	is_connect, .-is_connect
	.p2align 4
	.globl	unite
	.type	unite, @function
unite:
.LFB59:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	movslq	%edx, %rdx
	movq	%rdi, %rax
	leaq	(%rsi,%rsi,2), %rsi
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rsi,4), %r10
	leaq	(%rdi,%rdx,4), %rdi
	movslq	(%rdi), %r9
	movl	(%r10), %esi
	movl	8(%rdi), %r8d
	addl	8(%r10), %ecx
	movq	%r9, %rdx
	leaq	(%r9,%r9,2), %r9
	movslq	%esi, %rdi
	leaq	(%rax,%r9,4), %r9
	leaq	(%rdi,%rdi,2), %rdi
	movd	%edx, %xmm0
	movd	4(%r9), %xmm1
	leaq	(%rax,%rdi,4), %rdi
	movl	4(%rdi), %eax
	punpckldq	%xmm1, %xmm0
	cmpl	4(%r9), %eax
	jl	.L73
	je	.L76
.L74:
	movd	%esi, %xmm0
	movd	%eax, %xmm2
	subl	%r8d, %ecx
	punpckldq	%xmm2, %xmm0
	movl	%ecx, 8(%r9)
	movq	%xmm0, (%r9)
	ret
	.p2align 4,,10
	.p2align 3
.L73:
	subl	%ecx, %r8d
	movq	%xmm0, (%rdi)
	movl	%r8d, 8(%rdi)
	ret
	.p2align 4,,10
	.p2align 3
.L76:
	addl	$1, %eax
	movl	%eax, 4(%rdi)
	jmp	.L74
	.cfi_endproc
.LFE59:
	.size	unite, .-unite
	.section	.rodata.str1.1
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB60:
	.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
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	leaq	12(%rsp), %rdi
	call	get_int2
	movl	12(%rsp), %ecx
	leaq	wufind.0(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	.L82
	.p2align 4,,10
	.p2align 3
.L81:
	movl	%eax, (%rdx)
	addl	$1, %eax
	addq	$12, %rdx
	cmpl	%eax, %ecx
	jne	.L81
.L82:
	movl	16(%rsp), %eax
	xorl	%ebp, %ebp
	leaq	wufind.0(%rip), %rbx
	leaq	32(%rsp), %r12
	leaq	.LC2(%rip), %r13
	testl	%eax, %eax
	jle	.L80
	.p2align 4,,10
	.p2align 3
.L79:
	movq	stdin(%rip), %rdx
	movl	$50, %esi
	movq	%r12, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L84
	leaq	24(%rsp), %rcx
	leaq	20(%rsp), %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	leaq	28(%rsp), %r8
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
.L84:
	movl	20(%rsp), %eax
	movl	24(%rsp), %edi
	subl	$1, %eax
	leal	-1(%rdi), %esi
	movslq	%eax, %rdx
	movl	%eax, 20(%rsp)
	leaq	(%rdx,%rdx,2), %rdx
	movl	%esi, 24(%rsp)
	leaq	(%rbx,%rdx,4), %r9
	movl	(%r9), %r8d
	cmpl	%r8d, %eax
	je	.L85
	movslq	%r8d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r10
	movl	(%r10), %eax
	cmpl	%eax, %r8d
	je	.L86
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r8
	movl	(%r8), %edx
	cmpl	%edx, %eax
	je	.L87
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r11
	movl	(%r11), %edi
	movslq	%edi, %rax
	cmpl	%edi, %edx
	je	.L88
	movslq	%edi, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r14
	movslq	(%r14), %rdx
	cmpl	%edx, %edi
	jne	.L124
.L89:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%edi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r8), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r11
.L88:
	movl	8(%r11), %eax
	movl	%edi, (%r8)
	movl	%edi, %edx
	addl	%eax, 8(%r8)
	movslq	(%r10), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r8
.L87:
	movl	8(%r8), %eax
	movl	%edx, (%r10)
	addl	%eax, 8(%r10)
	movslq	(%r9), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r10
	movl	%edx, %eax
.L86:
	movl	8(%r10), %edx
	addl	%edx, 8(%r9)
	movl	%eax, %r8d
	movl	%eax, (%r9)
.L85:
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r9
	movl	(%r9), %eax
	cmpl	%eax, %esi
	je	.L91
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %rsi
	movl	(%rsi), %edx
	cmpl	%edx, %eax
	je	.L92
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r10
	movl	(%r10), %eax
	cmpl	%eax, %edx
	je	.L93
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r11
	movl	(%r11), %edi
	movslq	%edi, %rdx
	cmpl	%edi, %eax
	je	.L94
	movslq	%edi, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r14
	movslq	(%r14), %rax
	cmpl	%eax, %edi
	jne	.L125
.L95:
	leaq	(%rdx,%rdx,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%edi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r10), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r11
.L94:
	movl	8(%r11), %eax
	movl	%edi, (%r10)
	addl	%eax, 8(%r10)
	movslq	(%rsi), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r10
	movl	%edi, %eax
.L93:
	movl	8(%r10), %edx
	movl	%eax, (%rsi)
	addl	%edx, 8(%rsi)
	movslq	(%r9), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %rsi
	movl	%eax, %edx
.L92:
	movl	8(%rsi), %eax
	movl	%edx, (%r9)
	addl	%eax, 8(%r9)
	movl	%edx, %eax
.L91:
	movslq	24(%rsp), %rdx
	movl	20(%rsp), %esi
	movq	%rdx, %r10
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r9
	movslq	%esi, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r8d, %eax
	je	.L97
	movl	(%r9), %esi
	movslq	%edx, %rax
	movl	8(%r9), %r8d
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %rdi
	movslq	%esi, %rax
	movd	%esi, %xmm0
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r9
	movl	8(%rcx), %eax
	movl	4(%rdi), %ecx
	movd	4(%r9), %xmm1
	addl	28(%rsp), %eax
	punpckldq	%xmm1, %xmm0
	cmpl	4(%r9), %ecx
	jl	.L98
	jne	.L99
	addl	$1, %ecx
	movl	%ecx, 4(%rdi)
.L99:
	subl	%r8d, %eax
	movd	%edx, %xmm0
	movd	%ecx, %xmm2
	movl	%eax, 8(%r9)
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, (%r9)
.L100:
	addl	$1, %ebp
	cmpl	%ebp, 16(%rsp)
	jg	.L79
.L80:
	leaq	.LC3(%rip), %rdi
.L83:
	call	puts@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L126
	addq	$104, %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
.L97:
	.cfi_restore_state
	cmpl	%edx, %esi
	je	.L101
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r8
	movslq	(%r8), %rax
	cmpl	%edx, %eax
	je	.L102
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r11
	movslq	(%r11), %rsi
	movl	%esi, %edx
	cmpl	%esi, %eax
	je	.L103
	movslq	%esi, %r14
	imulq	$12, %r14, %r14
	addq	%rbx, %r14
	movl	(%r14), %edx
	cmpl	%edx, %esi
	jne	.L127
.L104:
	imulq	$12, %rsi, %rsi
	movl	8(%rbx,%rsi), %eax
	movl	%edx, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r8), %rax
.L103:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%edx, (%r8)
	addl	%eax, 8(%r8)
	movslq	(%rcx), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r8
.L102:
	movl	8(%r8), %eax
	addl	%eax, 8(%rcx)
	movl	%edx, (%rcx)
.L101:
	movl	(%r9), %eax
	cmpl	%r10d, %eax
	jne	.L105
	movl	8(%r9), %eax
.L106:
	subl	8(%rcx), %eax
	cmpl	%eax, 28(%rsp)
	je	.L100
	leaq	.LC4(%rip), %rdi
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L98:
	subl	%eax, %r8d
	movq	%xmm0, (%rdi)
	movl	%r8d, 8(%rdi)
	jmp	.L100
	.p2align 4,,10
	.p2align 3
.L105:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r8
	movl	(%r8), %esi
	movslq	%esi, %rdx
	cmpl	%esi, %eax
	je	.L107
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r10
	movslq	(%r10), %rax
	cmpl	%eax, %esi
	je	.L108
	movslq	%eax, %r11
	imulq	$12, %r11, %r11
	addq	%rbx, %r11
	movl	(%r11), %esi
	cmpl	%esi, %eax
	jne	.L128
.L109:
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	addl	%eax, 8(%r10)
	movl	%esi, (%r10)
	movslq	(%r8), %rdx
.L108:
	leaq	(%rdx,%rdx,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%esi, (%r8)
	addl	%eax, 8(%r8)
	movslq	(%r9), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r8
.L107:
	movl	8(%r8), %eax
	addl	8(%r9), %eax
	movl	%esi, (%r9)
	movl	%eax, 8(%r9)
	jmp	.L106
.L125:
	movslq	%eax, %r15
	imulq	$12, %r15, %r15
	addq	%rbx, %r15
	movl	(%r15), %edi
	cmpl	%edi, %eax
	jne	.L129
.L96:
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	movl	%edi, (%r14)
	addl	%eax, 8(%r14)
	movslq	(%r11), %rdx
	jmp	.L95
.L124:
	movslq	%edx, %r15
	imulq	$12, %r15, %r15
	addq	%rbx, %r15
	movl	(%r15), %edi
	cmpl	%edi, %edx
	jne	.L130
.L90:
	imulq	$12, %rdx, %rdx
	movl	8(%rbx,%rdx), %eax
	movl	%edi, (%r14)
	addl	%eax, 8(%r14)
	movslq	(%r11), %rax
	jmp	.L89
.L128:
	movq	%rbx, %rdi
	call	get_root
	movl	%eax, %esi
	movslq	(%r11), %rax
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	movl	%esi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r10), %rax
	jmp	.L109
.L127:
	movl	%edx, %esi
	movq	%rbx, %rdi
	call	get_root
	movl	%eax, %edx
	movslq	(%r14), %rax
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	movl	%edx, (%r14)
	addl	%eax, 8(%r14)
	movslq	(%r11), %rsi
	jmp	.L104
.L130:
	call	get_root.constprop.0
	movl	%eax, %edi
	movslq	(%r15), %rax
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	movl	%edi, (%r15)
	addl	%eax, 8(%r15)
	movslq	(%r14), %rdx
	jmp	.L90
.L129:
	call	get_root.constprop.0
	movl	%eax, %edi
	movslq	(%r15), %rax
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	movl	%edi, (%r15)
	addl	%eax, 8(%r15)
	movslq	(%r14), %rax
	jmp	.L96
.L126:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE60:
	.size	main, .-main
	.local	wufind.0
	.comm	wufind.0,1200000,32
	.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
	.type	get_root.constprop.0, @function
get_root.constprop.0:
.LFB61:
	.cfi_startproc
	movslq	%edi, %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	(%rax,%rax,2), %rax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	wufind.0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	0(%rbp,%rax,4), %rbx
	movl	(%rbx), %eax
	cmpl	%eax, %edi
	jne	.L8
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	0(%rbp,%rdx,4), %r12
	movl	(%r12), %edx
	cmpl	%edx, %eax
	je	.L3
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	0(%rbp,%rax,4), %r13
	movl	0(%r13), %ecx
	cmpl	%ecx, %edx
	jne	.L9
.L4:
	movl	8(%r13), %eax
	movl	%ecx, (%r12)
	movl	%ecx, %edx
	addl	%eax, 8(%r12)
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	0(%rbp,%rax,4), %r12
.L3:
	movl	8(%r12), %eax
	movl	%edx, (%rbx)
	addl	%eax, 8(%rbx)
	movl	%edx, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movslq	%ecx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	0(%rbp,%rax,4), %r14
	movl	(%r14), %edi
	cmpl	%edi, %ecx
	je	.L5
	call	get_root.constprop.0
	movl	%eax, %edi
	movslq	(%r14), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbp,%rax,4), %eax
	movl	%edi, (%r14)
	addl	%eax, 8(%r14)
	movslq	0(%r13), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	0(%rbp,%rax,4), %r14
.L5:
	movl	8(%r14), %eax
	movl	%edi, 0(%r13)
	movl	%edi, %ecx
	addl	%eax, 8(%r13)
	movslq	(%r12), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	0(%rbp,%rax,4), %r13
	jmp	.L4
	.cfi_endproc
.LFE61:
	.size	get_root.constprop.0, .-get_root.constprop.0
	.p2align 4
	.globl	get_str
	.type	get_str, @function
get_str:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	stdin(%rip), %rcx
	movl	%esi, %edx
	movq	$-1, %rsi
	call	__fgets_chk@PLT
	cmpq	$1, %rax
	sbbl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	get_str, .-get_str
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$50, %esi
	subq	$80, %rsp
	.cfi_def_cfa_offset 96
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	movq	%rax, %r8
	xorl	%eax, %eax
	testq	%r8, %r8
	je	.L12
	leaq	12(%rsp), %rdx
	leaq	.LC0(%rip), %rsi
	movq	%rbp, %rdi
	call	__isoc99_sscanf@PLT
	movl	12(%rsp), %eax
.L12:
	movq	72(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L18
	addq	$80, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	get_int, .-get_int
	.section	.rodata.str1.1
.LC1:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r13
	movl	$50, %esi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L22
	movq	%r13, %rcx
	movq	%r12, %rdx
	leaq	.LC1(%rip), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
	xorl	%eax, %eax
.L19:
	movq	56(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L24
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	movl	$-1, %eax
	jmp	.L19
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	get_int2, .-get_int2
	.section	.rodata.str1.1
.LC2:
	.string	"%d %d %d"
	.text
	.p2align 4
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r13
	movl	$50, %esi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdx, %rbx
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L28
	movq	%rbx, %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rdi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
	xorl	%eax, %eax
.L25:
	movq	56(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L30
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	movl	$-1, %eax
	jmp	.L25
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	get_int3, .-get_int3
	.p2align 4
	.globl	create_wufind
	.type	create_wufind, @function
create_wufind:
.LFB55:
	.cfi_startproc
	endbr64
	leaq	wufind.0(%rip), %r8
	testl	%edi, %edi
	jle	.L32
	movq	%r8, %rdx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%eax, (%rdx)
	addl	$1, %eax
	addq	$12, %rdx
	cmpl	%eax, %edi
	jne	.L33
.L32:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE55:
	.size	create_wufind, .-create_wufind
	.p2align 4
	.globl	get_root
	.type	get_root, @function
get_root:
.LFB56:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movslq	%esi, %rdx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rdx, %rax
	leaq	(%rdx,%rdx,2), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	(%rdi,%rdx,4), %rbp
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movl	0(%rbp), %edx
	cmpl	%eax, %edx
	jne	.L42
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r12
	movl	(%r12), %eax
	cmpl	%eax, %edx
	je	.L38
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r13
	movl	0(%r13), %edx
	cmpl	%edx, %eax
	jne	.L43
.L39:
	movl	8(%r13), %eax
	movl	%edx, (%r12)
	addl	%eax, 8(%r12)
	movslq	0(%rbp), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r12
	movl	%edx, %eax
.L38:
	movl	8(%r12), %edx
	movl	%eax, 0(%rbp)
	addl	%edx, 8(%rbp)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r14
	movl	(%r14), %esi
	cmpl	%esi, %edx
	je	.L40
	movq	%rdi, 8(%rsp)
	call	get_root
	movq	8(%rsp), %rdi
	movl	%eax, %esi
	movslq	(%r14), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rdi,%rax,4), %eax
	movl	%esi, (%r14)
	addl	%eax, 8(%r14)
	movslq	0(%r13), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r14
.L40:
	movl	8(%r14), %eax
	movl	%esi, 0(%r13)
	movl	%esi, %edx
	addl	%eax, 8(%r13)
	movslq	(%r12), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r13
	jmp	.L39
	.cfi_endproc
.LFE56:
	.size	get_root, .-get_root
	.p2align 4
	.globl	get_diff
	.type	get_diff, @function
get_diff:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movslq	%esi, %rax
	movl	%edx, %r8d
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r9
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movl	(%r9), %eax
	cmpl	%eax, %esi
	jne	.L55
.L45:
	movslq	%r8d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r10
	movl	(%r10), %eax
	cmpl	%eax, %r8d
	jne	.L49
	movl	8(%r10), %eax
	subl	8(%r9), %eax
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L55:
	.cfi_restore_state
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r10
	movl	(%r10), %edx
	cmpl	%edx, %eax
	je	.L46
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	(%r11), %eax
	cmpl	%eax, %edx
	jne	.L56
.L47:
	movl	8(%r11), %edx
	movl	%eax, (%r10)
	addl	%edx, 8(%r10)
	movslq	(%r9), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r10
	movl	%eax, %edx
.L46:
	movl	8(%r10), %eax
	movl	%edx, (%r9)
	addl	%eax, 8(%r9)
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L49:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r8
	movl	(%r8), %edx
	cmpl	%edx, %eax
	je	.L51
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	(%r11), %eax
	cmpl	%eax, %edx
	jne	.L57
.L52:
	movl	8(%r11), %edx
	movl	%eax, (%r8)
	addl	%edx, 8(%r8)
	movslq	(%r10), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r8
	movl	%eax, %edx
.L51:
	movl	8(%r8), %eax
	addl	8(%r10), %eax
	movl	%edx, (%r10)
	movl	%eax, 8(%r10)
	subl	8(%r9), %eax
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L57:
	.cfi_restore_state
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %rbx
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	je	.L53
	movq	%rdi, 8(%rsp)
	call	get_root
	movq	8(%rsp), %rdi
	movl	%eax, %esi
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rdi,%rax,4), %eax
	movl	%esi, (%rbx)
	addl	%eax, 8(%rbx)
	movslq	(%r11), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rbx
.L53:
	movl	8(%rbx), %eax
	movl	%esi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r8), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	%esi, %eax
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L56:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %rbx
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	je	.L48
	movq	%rdi, 8(%rsp)
	call	get_root
	movq	8(%rsp), %rdi
	movl	%eax, %esi
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rdi,%rax,4), %eax
	movl	%esi, (%rbx)
	addl	%eax, 8(%rbx)
	movslq	(%r11), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rbx
.L48:
	movl	8(%rbx), %eax
	movl	%esi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r10), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	%esi, %eax
	jmp	.L47
	.cfi_endproc
.LFE57:
	.size	get_diff, .-get_diff
	.p2align 4
	.globl	is_connect
	.type	is_connect, @function
is_connect:
.LFB58:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movslq	%esi, %rax
	movl	%edx, %r8d
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r10
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movl	(%r10), %r9d
	cmpl	%r9d, %esi
	jne	.L68
.L59:
	movslq	%r8d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r10
	movl	(%r10), %eax
	cmpl	%eax, %r8d
	jne	.L69
	cmpl	%r9d, %eax
	sete	%al
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	movzbl	%al, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L68:
	.cfi_restore_state
	movslq	%r9d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	(%r11), %eax
	cmpl	%eax, %r9d
	je	.L60
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r9
	movl	(%r9), %edx
	cmpl	%edx, %eax
	jne	.L70
.L61:
	movl	8(%r9), %eax
	movl	%edx, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r10), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	%edx, %eax
.L60:
	movl	8(%r11), %edx
	movl	%eax, %r9d
	addl	%edx, 8(%r10)
	movl	%eax, (%r10)
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L69:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r8
	movl	(%r8), %edx
	cmpl	%edx, %eax
	je	.L64
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	(%r11), %eax
	cmpl	%eax, %edx
	jne	.L71
.L65:
	movl	8(%r11), %edx
	movl	%eax, (%r8)
	addl	%edx, 8(%r8)
	movslq	(%r10), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %r8
	movl	%eax, %edx
.L64:
	movl	8(%r8), %eax
	addl	%eax, 8(%r10)
	movl	%edx, %eax
	cmpl	%r9d, %eax
	movl	%edx, (%r10)
	sete	%al
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	movzbl	%al, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L71:
	.cfi_restore_state
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rdx,4), %rbx
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	je	.L66
	movq	%rdi, 8(%rsp)
	call	get_root
	movq	8(%rsp), %rdi
	movl	%eax, %esi
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rdi,%rax,4), %eax
	movl	%esi, (%rbx)
	addl	%eax, 8(%rbx)
	movslq	(%r11), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rbx
.L66:
	movl	8(%rbx), %eax
	movl	%esi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r8), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r11
	movl	%esi, %eax
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L70:
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rbx
	movl	(%rbx), %esi
	cmpl	%esi, %edx
	je	.L62
	movq	%rdi, 8(%rsp)
	call	get_root
	movq	8(%rsp), %rdi
	movl	%eax, %esi
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rdi,%rax,4), %eax
	movl	%esi, (%rbx)
	addl	%eax, 8(%rbx)
	movslq	(%r9), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rbx
.L62:
	movl	8(%rbx), %eax
	movl	%esi, (%r9)
	movl	%esi, %edx
	addl	%eax, 8(%r9)
	movslq	(%r11), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %r9
	jmp	.L61
	.cfi_endproc
.LFE58:
	.size	is_connect, .-is_connect
	.p2align 4
	.globl	unite
	.type	unite, @function
unite:
.LFB59:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	movslq	%edx, %rdx
	movq	%rdi, %rax
	leaq	(%rsi,%rsi,2), %rsi
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rdi,%rsi,4), %r10
	leaq	(%rdi,%rdx,4), %rdi
	movslq	(%rdi), %r9
	movl	(%r10), %esi
	movl	8(%rdi), %r8d
	addl	8(%r10), %ecx
	movq	%r9, %rdx
	leaq	(%r9,%r9,2), %r9
	movslq	%esi, %rdi
	leaq	(%rax,%r9,4), %r9
	leaq	(%rdi,%rdi,2), %rdi
	movd	%edx, %xmm0
	movd	4(%r9), %xmm1
	leaq	(%rax,%rdi,4), %rdi
	movl	4(%rdi), %eax
	punpckldq	%xmm1, %xmm0
	cmpl	4(%r9), %eax
	jl	.L73
	je	.L76
.L74:
	movd	%esi, %xmm0
	movd	%eax, %xmm2
	subl	%r8d, %ecx
	punpckldq	%xmm2, %xmm0
	movl	%ecx, 8(%r9)
	movq	%xmm0, (%r9)
	ret
	.p2align 4,,10
	.p2align 3
.L73:
	subl	%ecx, %r8d
	movq	%xmm0, (%rdi)
	movl	%r8d, 8(%rdi)
	ret
	.p2align 4,,10
	.p2align 3
.L76:
	addl	$1, %eax
	movl	%eax, 4(%rdi)
	jmp	.L74
	.cfi_endproc
.LFE59:
	.size	unite, .-unite
	.section	.rodata.str1.1
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB60:
	.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
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	leaq	12(%rsp), %rdi
	call	get_int2
	movl	12(%rsp), %ecx
	leaq	wufind.0(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	.L82
	.p2align 4,,10
	.p2align 3
.L81:
	movl	%eax, (%rdx)
	addl	$1, %eax
	addq	$12, %rdx
	cmpl	%eax, %ecx
	jne	.L81
.L82:
	movl	16(%rsp), %eax
	xorl	%ebp, %ebp
	leaq	wufind.0(%rip), %rbx
	leaq	32(%rsp), %r12
	leaq	.LC2(%rip), %r13
	testl	%eax, %eax
	jle	.L80
	.p2align 4,,10
	.p2align 3
.L79:
	movq	stdin(%rip), %rdx
	movl	$50, %esi
	movq	%r12, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L84
	leaq	24(%rsp), %rcx
	leaq	20(%rsp), %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	leaq	28(%rsp), %r8
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
.L84:
	movl	20(%rsp), %eax
	movl	24(%rsp), %edi
	subl	$1, %eax
	leal	-1(%rdi), %esi
	movslq	%eax, %rdx
	movl	%eax, 20(%rsp)
	leaq	(%rdx,%rdx,2), %rdx
	movl	%esi, 24(%rsp)
	leaq	(%rbx,%rdx,4), %r9
	movl	(%r9), %r8d
	cmpl	%r8d, %eax
	je	.L85
	movslq	%r8d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r10
	movl	(%r10), %eax
	cmpl	%eax, %r8d
	je	.L86
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r8
	movl	(%r8), %edx
	cmpl	%edx, %eax
	je	.L87
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r11
	movl	(%r11), %edi
	movslq	%edi, %rax
	cmpl	%edi, %edx
	je	.L88
	movslq	%edi, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r14
	movslq	(%r14), %rdx
	cmpl	%edx, %edi
	jne	.L124
.L89:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%edi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r8), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r11
.L88:
	movl	8(%r11), %eax
	movl	%edi, (%r8)
	movl	%edi, %edx
	addl	%eax, 8(%r8)
	movslq	(%r10), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r8
.L87:
	movl	8(%r8), %eax
	movl	%edx, (%r10)
	addl	%eax, 8(%r10)
	movslq	(%r9), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r10
	movl	%edx, %eax
.L86:
	movl	8(%r10), %edx
	addl	%edx, 8(%r9)
	movl	%eax, %r8d
	movl	%eax, (%r9)
.L85:
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r9
	movl	(%r9), %eax
	cmpl	%eax, %esi
	je	.L91
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %rsi
	movl	(%rsi), %edx
	cmpl	%edx, %eax
	je	.L92
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r10
	movl	(%r10), %eax
	cmpl	%eax, %edx
	je	.L93
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r11
	movl	(%r11), %edi
	movslq	%edi, %rdx
	cmpl	%edi, %eax
	je	.L94
	movslq	%edi, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r14
	movslq	(%r14), %rax
	cmpl	%eax, %edi
	jne	.L125
.L95:
	leaq	(%rdx,%rdx,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%edi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r10), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r11
.L94:
	movl	8(%r11), %eax
	movl	%edi, (%r10)
	addl	%eax, 8(%r10)
	movslq	(%rsi), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r10
	movl	%edi, %eax
.L93:
	movl	8(%r10), %edx
	movl	%eax, (%rsi)
	addl	%edx, 8(%rsi)
	movslq	(%r9), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %rsi
	movl	%eax, %edx
.L92:
	movl	8(%rsi), %eax
	movl	%edx, (%r9)
	addl	%eax, 8(%r9)
	movl	%edx, %eax
.L91:
	movslq	24(%rsp), %rdx
	movl	20(%rsp), %esi
	movq	%rdx, %r10
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r9
	movslq	%esi, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r8d, %eax
	je	.L97
	movl	(%r9), %esi
	movslq	%edx, %rax
	movl	8(%r9), %r8d
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %rdi
	movslq	%esi, %rax
	movd	%esi, %xmm0
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r9
	movl	8(%rcx), %eax
	movl	4(%rdi), %ecx
	movd	4(%r9), %xmm1
	addl	28(%rsp), %eax
	punpckldq	%xmm1, %xmm0
	cmpl	4(%r9), %ecx
	jl	.L98
	jne	.L99
	addl	$1, %ecx
	movl	%ecx, 4(%rdi)
.L99:
	subl	%r8d, %eax
	movd	%edx, %xmm0
	movd	%ecx, %xmm2
	movl	%eax, 8(%r9)
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, (%r9)
.L100:
	addl	$1, %ebp
	cmpl	%ebp, 16(%rsp)
	jg	.L79
.L80:
	leaq	.LC3(%rip), %rdi
.L83:
	call	puts@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L126
	addq	$104, %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
.L97:
	.cfi_restore_state
	cmpl	%edx, %esi
	je	.L101
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r8
	movslq	(%r8), %rax
	cmpl	%edx, %eax
	je	.L102
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r11
	movslq	(%r11), %rsi
	movl	%esi, %edx
	cmpl	%esi, %eax
	je	.L103
	movslq	%esi, %r14
	imulq	$12, %r14, %r14
	addq	%rbx, %r14
	movl	(%r14), %edx
	cmpl	%edx, %esi
	jne	.L127
.L104:
	imulq	$12, %rsi, %rsi
	movl	8(%rbx,%rsi), %eax
	movl	%edx, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r8), %rax
.L103:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%edx, (%r8)
	addl	%eax, 8(%r8)
	movslq	(%rcx), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r8
.L102:
	movl	8(%r8), %eax
	addl	%eax, 8(%rcx)
	movl	%edx, (%rcx)
.L101:
	movl	(%r9), %eax
	cmpl	%r10d, %eax
	jne	.L105
	movl	8(%r9), %eax
.L106:
	subl	8(%rcx), %eax
	cmpl	%eax, 28(%rsp)
	je	.L100
	leaq	.LC4(%rip), %rdi
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L98:
	subl	%eax, %r8d
	movq	%xmm0, (%rdi)
	movl	%r8d, 8(%rdi)
	jmp	.L100
	.p2align 4,,10
	.p2align 3
.L105:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r8
	movl	(%r8), %esi
	movslq	%esi, %rdx
	cmpl	%esi, %eax
	je	.L107
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r10
	movslq	(%r10), %rax
	cmpl	%eax, %esi
	je	.L108
	movslq	%eax, %r11
	imulq	$12, %r11, %r11
	addq	%rbx, %r11
	movl	(%r11), %esi
	cmpl	%esi, %eax
	jne	.L128
.L109:
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	addl	%eax, 8(%r10)
	movl	%esi, (%r10)
	movslq	(%r8), %rdx
.L108:
	leaq	(%rdx,%rdx,2), %rax
	movl	8(%rbx,%rax,4), %eax
	movl	%esi, (%r8)
	addl	%eax, 8(%r8)
	movslq	(%r9), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %r8
.L107:
	movl	8(%r8), %eax
	addl	8(%r9), %eax
	movl	%esi, (%r9)
	movl	%eax, 8(%r9)
	jmp	.L106
.L125:
	movslq	%eax, %r15
	imulq	$12, %r15, %r15
	addq	%rbx, %r15
	movl	(%r15), %edi
	cmpl	%edi, %eax
	jne	.L129
.L96:
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	movl	%edi, (%r14)
	addl	%eax, 8(%r14)
	movslq	(%r11), %rdx
	jmp	.L95
.L124:
	movslq	%edx, %r15
	imulq	$12, %r15, %r15
	addq	%rbx, %r15
	movl	(%r15), %edi
	cmpl	%edi, %edx
	jne	.L130
.L90:
	imulq	$12, %rdx, %rdx
	movl	8(%rbx,%rdx), %eax
	movl	%edi, (%r14)
	addl	%eax, 8(%r14)
	movslq	(%r11), %rax
	jmp	.L89
.L128:
	movq	%rbx, %rdi
	call	get_root
	movl	%eax, %esi
	movslq	(%r11), %rax
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	movl	%esi, (%r11)
	addl	%eax, 8(%r11)
	movslq	(%r10), %rax
	jmp	.L109
.L127:
	movl	%edx, %esi
	movq	%rbx, %rdi
	call	get_root
	movl	%eax, %edx
	movslq	(%r14), %rax
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	movl	%edx, (%r14)
	addl	%eax, 8(%r14)
	movslq	(%r11), %rsi
	jmp	.L104
.L130:
	call	get_root.constprop.0
	movl	%eax, %edi
	movslq	(%r15), %rax
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	movl	%edi, (%r15)
	addl	%eax, 8(%r15)
	movslq	(%r14), %rdx
	jmp	.L90
.L129:
	call	get_root.constprop.0
	movl	%eax, %edi
	movslq	(%r15), %rax
	imulq	$12, %rax, %rax
	movl	8(%rbx,%rax), %eax
	movl	%edi, (%r15)
	addl	%eax, 8(%r15)
	movslq	(%r14), %rax
	jmp	.L96
.L126:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE60:
	.size	main, .-main
	.local	wufind.0
	.comm	wufind.0,1200000,32
	.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 <stdlib.h>
#include <stdint.h> // uint64_t

#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
#define BUF_SIZE 50
#define DIVISOR 1000000007

// size: specify sizeof(str)
int get_str(char *str, int size) {
    if(!fgets(str, size, stdin)) return -1;
    return 0;
}

int get_int(void) {
  int num;
#ifdef BUF_SIZE
  char line[BUF_SIZE];
  if(!fgets(line, BUF_SIZE, stdin)) return 0;
  sscanf(line, "%d", &num);
#else
#error
#endif
  return num;
}

int get_int2(int *a1, int *a2) {
#ifdef BUF_SIZE
  char line[BUF_SIZE];
  if(!fgets(line, BUF_SIZE, stdin)) return -1;
  sscanf(line, "%d %d", a1, a2);
#else
#error
#endif
  return 0;
}

int get_int3(int *a1, int *a2, int *a3) {
#ifdef BUF_SIZE
  char line[BUF_SIZE];
  if(!fgets(line, BUF_SIZE, stdin)) return -1;
  sscanf(line, "%d %d %d", a1, a2, a3);
#else
#error
#endif
  return 0;
}

struct wufind {
    int parent;
    int depth;
    int dist;
};

#define VERTEX_MAX 100000
struct wufind *create_wufind(int num) {
    static struct wufind wufind[VERTEX_MAX];
    int i;
    for(i = 0; i < num; i++) {
        wufind[i].parent = i;
    }
    return wufind;
}

int get_root(struct wufind *wu, int v) {
    int base = v;
    struct wufind *elem = &wu[v];
    if(base == elem->parent) {
        return base;
    } else {
        int root = get_root(wu, elem->parent);
        struct wufind *par = &wu[elem->parent];
        elem->dist += par->dist;
        // compression
        elem->parent = root;
        return root;
    }
} 

int get_diff(struct wufind *wufind, int v1, int v2) {
    get_root(wufind, v1);
    get_root(wufind, v2);
#ifdef DEBUG
    printf("get_diff: %d\n", wufind[v2].dist - wufind[v1].dist);
#endif
    return wufind[v2].dist - wufind[v1].dist;
}

int is_connect(struct wufind *wufind, int v1, int v2) {
    int root1 = get_root(wufind, v1);
    int root2 = get_root(wufind, v2);
#ifdef DEBUG
    printf("is_connect: v1: %d, v2: %d\n", root1, root2);
#endif
    return root1 == root2;
}

// assume that v1, v2 gets compresson done
void unite(struct wufind *wufind, int v1, int v2, int diff) {
    int root1 = wufind[v1].parent;
    int root2 = wufind[v2].parent;
    int w1 = wufind[v1].dist;
    int w2 = wufind[v2].dist;
    struct wufind *wr1 = &wufind[root1];
    struct wufind *wr2 = &wufind[root2];
    // 2->1
    int new_dist = w1 + diff - w2;
    if(wr1->depth >= wr2->depth) {
        if(wr1->depth == wr2->depth) wr1->depth++;
        // 2->1
        wr2->parent = root1;
        wr2->depth = wr1->depth;
        wr2->dist = new_dist;
    } else {
        // 1->2
        wr1->parent = root2;
        wr1->depth = wr2->depth;
        wr1->dist = -new_dist;
    }
    return;
}

#include <limits.h>
#define DIST_MAX 1000000000

int main(void) {
    int num, qs;
    get_int2(&num, &qs);
    struct wufind *wufind = create_wufind(num);

    int i;
    int flag = 1;
    for(i = 0; i < qs; i++) {
        int p1, p2, diff;
        get_int3(&p1, &p2, &diff);
        // 1-indexed -> 0-indexed
        p1--; p2--;
        if(!is_connect(wufind, p1, p2)) {
            unite(wufind, p1, p2, diff);
        } else {
            if(diff != get_diff(wufind, p1, p2)) {
                flag = 0;
                break;
            }
        }
    }
    // int mi = INT_MAX;
    // int ma = INT_MIN;
    // for(i = 1; i < num; i++) {
    //     int res = get_diff(wufind, 0, i);
    //     mi = min(mi, res);
    //     ma = max(ma, res);
    // }
    // if(ma-mi > DIST_MAX) flag = 0;
    printf("%s\n", flag ? "Yes" : "No");
    return 0;
}
3 3
1 2 1
2 3 1
1 3 2

Yes

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 <stdlib.h>
#include <stdint.h> // uint64_t

#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
#define BUF_SIZE 50
#define DIVISOR 1000000007

// size: specify sizeof(str)
int get_str(char *str, int size) {
    if(!fgets(str, size, stdin)) return -1;
    return 0;
}

int get_int(void) {
  int num;
#ifdef BUF_SIZE
  char line[BUF_SIZE];
  if(!fgets(line, BUF_SIZE, stdin)) return 0;
  sscanf(line, "%d", &num);
#else
#error
#endif
  return num;
}

int get_int2(int *a1, int *a2) {
#ifdef BUF_SIZE
  char line[BUF_SIZE];
  if(!fgets(line, BUF_SIZE, stdin)) return -1;
  sscanf(line, "%d %d", a1, a2);
#else
#error
#endif
  return 0;
}

int get_int3(int *a1, int *a2, int *a3) {
#ifdef BUF_SIZE
  char line[BUF_SIZE];
  if(!fgets(line, BUF_SIZE, stdin)) return -1;
  sscanf(line, "%d %d %d", a1, a2, a3);
#else
#error
#endif
  return 0;
}

struct wufind {
    int parent;
    int depth;
    int dist;
};

#define VERTEX_MAX 100000
struct wufind *create_wufind(int num) {
    static struct wufind wufind[VERTEX_MAX];
    int i;
    for(i = 0; i < num; i++) {
        wufind[i].parent = i;
    }
    return wufind;
}

int get_root(struct wufind *wu, int v) {
    int base = v;
    struct wufind *elem = &wu[v];
    if(base == elem->parent) {
        return base;
    } else {
        int root = get_root(wu, elem->parent);
        struct wufind *par = &wu[elem->parent];
        elem->dist += par->dist;
        // compression
        elem->parent = root;
        return root;
    }
} 

int get_diff(struct wufind *wufind, int v1, int v2) {
    get_root(wufind, v1);
    get_root(wufind, v2);
#ifdef DEBUG
    printf("get_diff: %d\n", wufind[v2].dist - wufind[v1].dist);
#endif
    return wufind[v2].dist - wufind[v1].dist;
}

int is_connect(struct wufind *wufind, int v1, int v2) {
    int root1 = get_root(wufind, v1);
    int root2 = get_root(wufind, v2);
#ifdef DEBUG
    printf("is_connect: v1: %d, v2: %d\n", root1, root2);
#endif
    return root1 == root2;
}

// assume that v1, v2 gets compresson done
void unite(struct wufind *wufind, int v1, int v2, int diff) {
    int root1 = wufind[v1].parent;
    int root2 = wufind[v2].parent;
    int w1 = wufind[v1].dist;
    int w2 = wufind[v2].dist;
    struct wufind *wr1 = &wufind[root1];
    struct wufind *wr2 = &wufind[root2];
    // 2->1
    int new_dist = w1 + diff - w2;
    if(wr1->depth >= wr2->depth) {
        if(wr1->depth == wr2->depth) wr1->depth++;
        // 2->1
        wr2->parent = root1;
        wr2->depth = wr1->depth;
        wr2->dist = new_dist;
    } else {
        // 1->2
        wr1->parent = root2;
        wr1->depth = wr2->depth;
        wr1->dist = -new_dist;
    }
    return;
}

#include <limits.h>
#define DIST_MAX 1000000000

int main(void) {
    int num, qs;
    get_int2(&num, &qs);
    struct wufind *wufind = create_wufind(num);

    int i;
    int flag = 1;
    for(i = 0; i < qs; i++) {
        int p1, p2, diff;
        get_int3(&p1, &p2, &diff);
        // 1-indexed -> 0-indexed
        p1--; p2--;
        if(!is_connect(wufind, p1, p2)) {
            unite(wufind, p1, p2, diff);
        } else {
            if(diff != get_diff(wufind, p1, p2)) {
                flag = 0;
                break;
            }
        }
    }
    // int mi = INT_MAX;
    // int ma = INT_MIN;
    // for(i = 1; i < num; i++) {
    //     int res = get_diff(wufind, 0, i);
    //     mi = min(mi, res);
    //     ma = max(ma, res);
    // }
    // if(ma-mi > DIST_MAX) flag = 0;
    printf("%s\n", flag ? "Yes" : "No");
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	get_str
	.type	get_str, @function
get_str:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movq	stdin(%rip), %rdx
	movl	-12(%rbp), %ecx
	movq	-8(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_str, .-get_str
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-64(%rbp), %rax
	movl	$50, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L5
	movl	$0, %eax
	jmp	.L7
.L5:
	leaq	-68(%rbp), %rdx
	leaq	-64(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	-68(%rbp), %eax
.L7:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int, .-get_int
	.section	.rodata
.LC1:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-64(%rbp), %rax
	movl	$50, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L10
	movl	$-1, %eax
	jmp	.L12
.L10:
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, %eax
.L12:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_int2, .-get_int2
	.section	.rodata
.LC2:
	.string	"%d %d %d"
	.text
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-64(%rbp), %rax
	movl	$50, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L15
	movl	$-1, %eax
	jmp	.L17
.L15:
	movq	-88(%rbp), %rsi
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rsi, %r8
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, %eax
.L17:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_int3, .-get_int3
	.globl	create_wufind
	.type	create_wufind, @function
create_wufind:
.LFB10:
	.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	.L20
.L21:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	wufind.0(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L21
	leaq	wufind.0(%rip), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	create_wufind, .-create_wufind
	.globl	get_root
	.type	get_root, @function
get_root:
.LFB11:
	.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	%rdi, -40(%rbp)
	movl	%esi, -44(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -24(%rbp)
	jne	.L24
	movl	-24(%rbp), %eax
	jmp	.L25
.L24:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	8(%rax), %edx
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	addl	%eax, %edx
	movq	-16(%rbp), %rax
	movl	%edx, 8(%rax)
	movq	-16(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get_root, .-get_root
	.globl	get_diff
	.type	get_diff, @function
get_diff:
.LFB12:
	.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
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movl	%edx, -16(%rbp)
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	-16(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	get_diff, .-get_diff
	.globl	is_connect
	.type	is_connect, @function
is_connect:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	%eax, -8(%rbp)
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	sete	%al
	movzbl	%al, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	is_connect, .-is_connect
	.globl	unite
	.type	unite, @function
unite:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movl	%esi, -60(%rbp)
	movl	%edx, -64(%rbp)
	movl	%ecx, -68(%rbp)
	movl	-60(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	-60(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movl	-28(%rbp), %edx
	movl	-68(%rbp), %eax
	addl	%edx, %eax
	subl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jl	.L31
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jne	.L32
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, 4(%rax)
.L32:
	movq	-8(%rbp), %rax
	movl	-36(%rbp), %edx
	movl	%edx, (%rax)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, 8(%rax)
	jmp	.L30
.L31:
	movq	-16(%rbp), %rax
	movl	-32(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, 4(%rax)
	movl	-20(%rbp), %eax
	negl	%eax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movl	%edx, 8(%rax)
	nop
.L30:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	unite, .-unite
	.section	.rodata
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.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	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-44(%rbp), %eax
	movl	%eax, %edi
	call	create_wufind
	movq	%rax, -16(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L36
.L40:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	get_int3
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	is_connect
	testl	%eax, %eax
	jne	.L37
	movl	-28(%rbp), %ecx
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %esi
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	unite
	jmp	.L38
.L37:
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	get_diff
	movl	-28(%rbp), %edx
	cmpl	%edx, %eax
	je	.L38
	movl	$0, -20(%rbp)
	jmp	.L39
.L38:
	addl	$1, -24(%rbp)
.L36:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L40
.L39:
	cmpl	$0, -20(%rbp)
	je	.L41
	leaq	.LC3(%rip), %rax
	jmp	.L42
.L41:
	leaq	.LC4(%rip), %rax
.L42:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.local	wufind.0
	.comm	wufind.0,1200000,32
	.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	get_str
	.type	get_str, @function
get_str:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movq	stdin(%rip), %rdx
	movl	-12(%rbp), %ecx
	movq	-8(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_str, .-get_str
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-64(%rbp), %rax
	movl	$50, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L5
	movl	$0, %eax
	jmp	.L7
.L5:
	leaq	-68(%rbp), %rdx
	leaq	-64(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	-68(%rbp), %eax
.L7:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int, .-get_int
	.section	.rodata
.LC1:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-64(%rbp), %rax
	movl	$50, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L10
	movl	$-1, %eax
	jmp	.L12
.L10:
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, %eax
.L12:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_int2, .-get_int2
	.section	.rodata
.LC2:
	.string	"%d %d %d"
	.text
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-64(%rbp), %rax
	movl	$50, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L15
	movl	$-1, %eax
	jmp	.L17
.L15:
	movq	-88(%rbp), %rsi
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rsi, %r8
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, %eax
.L17:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_int3, .-get_int3
	.globl	create_wufind
	.type	create_wufind, @function
create_wufind:
.LFB10:
	.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	.L20
.L21:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	wufind.0(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L21
	leaq	wufind.0(%rip), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	create_wufind, .-create_wufind
	.globl	get_root
	.type	get_root, @function
get_root:
.LFB11:
	.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	%rdi, -40(%rbp)
	movl	%esi, -44(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -24(%rbp)
	jne	.L24
	movl	-24(%rbp), %eax
	jmp	.L25
.L24:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	8(%rax), %edx
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	addl	%eax, %edx
	movq	-16(%rbp), %rax
	movl	%edx, 8(%rax)
	movq	-16(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get_root, .-get_root
	.globl	get_diff
	.type	get_diff, @function
get_diff:
.LFB12:
	.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
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movl	%edx, -16(%rbp)
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	-16(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	get_diff, .-get_diff
	.globl	is_connect
	.type	is_connect, @function
is_connect:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	%eax, -8(%rbp)
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	get_root
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	sete	%al
	movzbl	%al, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	is_connect, .-is_connect
	.globl	unite
	.type	unite, @function
unite:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movl	%esi, -60(%rbp)
	movl	%edx, -64(%rbp)
	movl	%ecx, -68(%rbp)
	movl	-60(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	-60(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	8(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movl	-28(%rbp), %edx
	movl	-68(%rbp), %eax
	addl	%edx, %eax
	subl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jl	.L31
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jne	.L32
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, 4(%rax)
.L32:
	movq	-8(%rbp), %rax
	movl	-36(%rbp), %edx
	movl	%edx, (%rax)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, 8(%rax)
	jmp	.L30
.L31:
	movq	-16(%rbp), %rax
	movl	-32(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, 4(%rax)
	movl	-20(%rbp), %eax
	negl	%eax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movl	%edx, 8(%rax)
	nop
.L30:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	unite, .-unite
	.section	.rodata
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.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	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-44(%rbp), %eax
	movl	%eax, %edi
	call	create_wufind
	movq	%rax, -16(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L36
.L40:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	get_int3
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	is_connect
	testl	%eax, %eax
	jne	.L37
	movl	-28(%rbp), %ecx
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %esi
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	unite
	jmp	.L38
.L37:
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	get_diff
	movl	-28(%rbp), %edx
	cmpl	%edx, %eax
	je	.L38
	movl	$0, -20(%rbp)
	jmp	.L39
.L38:
	addl	$1, -24(%rbp)
.L36:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L40
.L39:
	cmpl	$0, -20(%rbp)
	je	.L41
	leaq	.LC3(%rip), %rax
	jmp	.L42
.L41:
	leaq	.LC4(%rip), %rax
.L42:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.local	wufind.0
	.comm	wufind.0,1200000,32
	.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:
