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 <assert.h>
#define BUF_SIZE 30

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;
}

struct list {
    struct list *next;
    int v;
};
#define VERTEX_MAX 200000
struct list *create_graph(int size) {
    struct list *graph = malloc(sizeof(struct list)*size);
    int i;
    for(i = 0; i < size; i++) {
        graph[i].next = &graph[i];
    }
    return graph;
}

// be careful, multiply by 2 because execute insert() twice
struct list pool[VERTEX_MAX*2];
int idx = 0;

struct list *get_list(void) {
    assert(idx+1 < VERTEX_MAX*2);
    return &pool[idx++];
}

void insert(struct list *graph, int size, int src, int dst) {
    assert(src < size);
    assert(dst < size);
    struct list *head = &graph[src];
    struct list *elem = get_list();
    elem->v = dst;
    elem->next = head->next;
    head->next = elem;
}

int queue[VERTEX_MAX+1];
static int start = 0;
static int end = 0;

int is_empty(void) {
    return start == end;
}

void enqueue(int node) {
    queue[end++] = node;
}

int dequeue(void) {
    return queue[start++];
}

// 1-indexed
int bfs(struct list *graph, int *profit, int *ans, int size) {
    int node = 1;
    static char checked[VERTEX_MAX+1];
    enqueue(node);
    checked[node] = 1;
    ans[node] = profit[node];
    while(!is_empty()) {
        int v = dequeue();
        struct list *head = &graph[v];
        struct list *elem;
        for(elem = head->next; elem != head; elem = elem->next) {
            int nv = elem->v;
            if(!checked[nv]) {
                // calc ans
                ans[nv] = profit[nv] + ans[v];
                enqueue(nv);
                checked[nv] = 1;
            }
        }
    }
    return 0;
}

int main(void) {
    int vs, queries;
    get_int2(&vs, &queries);

    struct list* graph = create_graph(vs+1);
    int i;
    for(i = 0; i < vs-1; i++) {
        int v1, v2;
        get_int2(&v1, &v2);
        insert(graph, vs+1,v1, v2);
        insert(graph, vs+1,v2, v1);
    }

    // vertex is 1-indexed.
    int map[VERTEX_MAX+1] = {0};
    for(i = 0; i < queries; i++) {
        int v, point;
        get_int2(&v, &point);
        map[v] += point;
    }
    int sum[VERTEX_MAX+1] = {0};
    if(bfs(graph, map, sum, vs) == -1) return 0;

    // presentation
    for(i = 1; i <= vs; i++) {
        int end = (i == vs);
        printf("%d%c", sum[i], end ? '\n' : ' ');
    }

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -56(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-48(%rbp), %rax
	movl	$30, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L2
	movl	$-1, %eax
	jmp	.L4
.L2:
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rax
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, %eax
.L4:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_int2, .-get_int2
	.globl	create_graph
	.type	create_graph, @function
create_graph:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L7
.L8:
	movl	-12(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rcx
	movl	-12(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movq	-8(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	addl	$1, -12(%rbp)
.L7:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L8
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_graph, .-create_graph
	.globl	pool
	.bss
	.align 32
	.type	pool, @object
	.size	pool, 6400000
pool:
	.zero	6400000
	.globl	idx
	.align 4
	.type	idx, @object
	.size	idx, 4
idx:
	.zero	4
	.section	.rodata
.LC1:
	.string	"/tmp/tmptcixv39x/temp.c"
.LC2:
	.string	"idx+1 < VERTEX_MAX*2"
	.text
	.globl	get_list
	.type	get_list, @function
get_list:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	idx(%rip), %eax
	cmpl	$399998, %eax
	jle	.L11
	leaq	__PRETTY_FUNCTION__.2(%rip), %rax
	movq	%rax, %rcx
	movl	$38, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L11:
	movl	idx(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, idx(%rip)
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	pool(%rip), %rax
	addq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_list, .-get_list
	.section	.rodata
.LC3:
	.string	"src < size"
.LC4:
	.string	"dst < size"
	.text
	.globl	insert
	.type	insert, @function
insert:
.LFB9:
	.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, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L14
	leaq	__PRETTY_FUNCTION__.1(%rip), %rax
	movq	%rax, %rcx
	movl	$43, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L14:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L15
	leaq	__PRETTY_FUNCTION__.1(%rip), %rax
	movq	%rax, %rcx
	movl	$44, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L15:
	movl	-32(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	call	get_list
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-36(%rbp), %edx
	movl	%edx, 8(%rax)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	insert, .-insert
	.globl	queue
	.bss
	.align 32
	.type	queue, @object
	.size	queue, 800004
queue:
	.zero	800004
	.local	start
	.comm	start,4,4
	.local	end
	.comm	end,4,4
	.text
	.globl	is_empty
	.type	is_empty, @function
is_empty:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	start(%rip), %edx
	movl	end(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	is_empty, .-is_empty
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	end(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, end(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	queue(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	start(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, start(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	queue(%rip), %rax
	movl	(%rdx,%rax), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	dequeue, .-dequeue
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movl	%ecx, -60(%rbp)
	movl	$1, -28(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	enqueue
	movl	-28(%rbp), %eax
	cltq
	leaq	checked.0(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	jmp	.L22
.L26:
	call	dequeue
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L23
.L25:
	movq	-16(%rbp), %rax
	movl	8(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	checked.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L24
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	enqueue
	movl	-20(%rbp), %eax
	cltq
	leaq	checked.0(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L24:
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
.L23:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jne	.L25
.L22:
	call	is_empty
	testl	%eax, %eax
	je	.L26
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	bfs, .-bfs
	.section	.rodata
.LC5:
	.string	"%d%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2624, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600060(%rbp), %rdx
	leaq	-1600064(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-1600064(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	create_graph
	movq	%rax, -1600040(%rbp)
	movl	$0, -1600048(%rbp)
	jmp	.L29
.L30:
	leaq	-1600052(%rbp), %rdx
	leaq	-1600056(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-1600052(%rbp), %ecx
	movl	-1600056(%rbp), %edx
	movl	-1600064(%rbp), %eax
	leal	1(%rax), %esi
	movq	-1600040(%rbp), %rax
	movq	%rax, %rdi
	call	insert
	movl	-1600056(%rbp), %ecx
	movl	-1600052(%rbp), %edx
	movl	-1600064(%rbp), %eax
	leal	1(%rax), %esi
	movq	-1600040(%rbp), %rax
	movq	%rax, %rdi
	call	insert
	addl	$1, -1600048(%rbp)
.L29:
	movl	-1600064(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1600048(%rbp)
	jl	.L30
	leaq	-1600032(%rbp), %rax
	movl	$800004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1600048(%rbp)
	jmp	.L31
.L32:
	leaq	-1600052(%rbp), %rdx
	leaq	-1600056(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-1600056(%rbp), %eax
	cltq
	movl	-1600032(%rbp,%rax,4), %ecx
	movl	-1600052(%rbp), %edx
	movl	-1600056(%rbp), %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -1600032(%rbp,%rax,4)
	addl	$1, -1600048(%rbp)
.L31:
	movl	-1600060(%rbp), %eax
	cmpl	%eax, -1600048(%rbp)
	jl	.L32
	leaq	-800016(%rbp), %rax
	movl	$800004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	-1600064(%rbp), %ecx
	leaq	-800016(%rbp), %rdx
	leaq	-1600032(%rbp), %rsi
	movq	-1600040(%rbp), %rax
	movq	%rax, %rdi
	call	bfs
	cmpl	$-1, %eax
	jne	.L33
	movl	$0, %eax
	jmp	.L39
.L33:
	movl	$1, -1600048(%rbp)
	jmp	.L35
.L38:
	movl	-1600064(%rbp), %eax
	cmpl	%eax, -1600048(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -1600044(%rbp)
	cmpl	$0, -1600044(%rbp)
	je	.L36
	movl	$10, %edx
	jmp	.L37
.L36:
	movl	$32, %edx
.L37:
	movl	-1600048(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1600048(%rbp)
.L35:
	movl	-1600064(%rbp), %eax
	cmpl	%eax, -1600048(%rbp)
	jle	.L38
	movl	$0, %eax
.L39:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 9
__PRETTY_FUNCTION__.2:
	.string	"get_list"
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 7
__PRETTY_FUNCTION__.1:
	.string	"insert"
	.local	checked.0
	.comm	checked.0,200001,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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/tmp/tmptcixv39x/temp.c"
.LC1:
	.string	"idx+1 < VERTEX_MAX*2"
	.text
	.p2align 4
	.type	get_list.part.0, @function
get_list.part.0:
.LFB60:
	.cfi_startproc
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	leaq	__PRETTY_FUNCTION__.2(%rip), %rcx
	movl	$38, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	__assert_fail@PLT
	.cfi_endproc
.LFE60:
	.size	get_list.part.0, .-get_list.part.0
	.section	.rodata.str1.1
.LC2:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r13
	movl	$30, %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	$48, %rsp
	.cfi_def_cfa_offset 80
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L7
	movq	%r13, %rcx
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
	xorl	%eax, %eax
.L4:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L9
	addq	$48, %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
.L7:
	.cfi_restore_state
	movl	$-1, %eax
	jmp	.L4
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	get_int2, .-get_int2
	.p2align 4
	.globl	create_graph
	.type	create_graph, @function
create_graph:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movslq	%edi, %rdi
	movq	%rdi, %rbx
	salq	$4, %rdi
	call	malloc@PLT
	movq	%rax, %r8
	testl	%ebx, %ebx
	jle	.L10
	leal	-1(%rbx), %eax
	cmpl	$10, %eax
	jbe	.L15
	pxor	%xmm5, %xmm5
	movl	%ebx, %edx
	movq	%r8, %xmm7
	movq	%r8, %rax
	movdqa	.LC5(%rip), %xmm3
	movdqa	%xmm5, %xmm6
	shrl	$2, %edx
	movdqa	.LC3(%rip), %xmm4
	salq	$6, %rdx
	punpcklqdq	%xmm7, %xmm7
	movdqa	.LC4(%rip), %xmm8
	pcmpgtd	%xmm3, %xmm6
	addq	%r8, %rdx
	.p2align 4,,10
	.p2align 3
.L13:
	movdqa	%xmm4, %xmm0
	movdqa	%xmm5, %xmm2
	movdqa	%xmm6, %xmm9
	addq	$64, %rax
	movdqa	%xmm0, %xmm1
	paddd	%xmm8, %xmm4
	punpckldq	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm0
	pcmpgtd	%xmm1, %xmm2
	pmuludq	%xmm1, %xmm9
	pmuludq	%xmm3, %xmm1
	pmuludq	%xmm3, %xmm2
	paddq	%xmm9, %xmm2
	movdqa	%xmm6, %xmm9
	psllq	$32, %xmm2
	pmuludq	%xmm0, %xmm9
	paddq	%xmm2, %xmm1
	movdqa	%xmm5, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pmuludq	%xmm3, %xmm0
	paddq	%xmm7, %xmm1
	movq	%xmm1, -64(%rax)
	movhps	%xmm1, -48(%rax)
	pmuludq	%xmm3, %xmm2
	paddq	%xmm9, %xmm2
	psllq	$32, %xmm2
	paddq	%xmm2, %xmm0
	paddq	%xmm7, %xmm0
	movq	%xmm0, -32(%rax)
	movhps	%xmm0, -16(%rax)
	cmpq	%rax, %rdx
	jne	.L13
	movl	%ebx, %edx
	andl	$-4, %edx
	testb	$3, %bl
	je	.L10
.L12:
	movslq	%edx, %rax
	salq	$4, %rax
	leaq	(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	1(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	16(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	2(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	32(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	3(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	48(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	4(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	64(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	5(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	80(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	6(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	96(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	7(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	112(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	8(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	128(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	9(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	144(%r8,%rax), %rcx
	addl	$10, %edx
	movq	%rcx, (%rcx)
	cmpl	%edx, %ebx
	jle	.L10
	leaq	160(%r8,%rax), %rax
	movq	%rax, (%rax)
.L10:
	movq	%r8, %rax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L12
	.cfi_endproc
.LFE52:
	.size	create_graph, .-create_graph
	.p2align 4
	.globl	get_list
	.type	get_list, @function
get_list:
.LFB53:
	.cfi_startproc
	endbr64
	movslq	idx(%rip), %rax
	cmpl	$399998, %eax
	jg	.L23
	leal	1(%rax), %edx
	salq	$4, %rax
	movl	%edx, idx(%rip)
	leaq	pool(%rip), %rdx
	addq	%rdx, %rax
	ret
.L23:
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	get_list.part.0
	.cfi_endproc
.LFE53:
	.size	get_list, .-get_list
	.section	.rodata.str1.1
.LC6:
	.string	"src < size"
.LC7:
	.string	"dst < size"
	.text
	.p2align 4
	.globl	insert
	.type	insert, @function
insert:
.LFB54:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	cmpl	%esi, %edx
	jge	.L29
	cmpl	%ecx, %esi
	jle	.L30
	movslq	%edx, %rdx
	movslq	idx(%rip), %rax
	salq	$4, %rdx
	addq	%rdx, %rdi
	cmpl	$399998, %eax
	jg	.L31
	leal	1(%rax), %edx
	salq	$4, %rax
	movl	%edx, idx(%rip)
	leaq	pool(%rip), %rdx
	addq	%rdx, %rax
	movl	%ecx, 8(%rax)
	movq	(%rdi), %rdx
	movq	%rdx, (%rax)
	movq	%rax, (%rdi)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	leaq	__PRETTY_FUNCTION__.1(%rip), %rcx
	movl	$43, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC6(%rip), %rdi
	call	__assert_fail@PLT
.L31:
	call	get_list.part.0
.L30:
	leaq	__PRETTY_FUNCTION__.1(%rip), %rcx
	movl	$44, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC7(%rip), %rdi
	call	__assert_fail@PLT
	.cfi_endproc
.LFE54:
	.size	insert, .-insert
	.p2align 4
	.globl	is_empty
	.type	is_empty, @function
is_empty:
.LFB55:
	.cfi_startproc
	endbr64
	movl	end(%rip), %eax
	cmpl	%eax, start(%rip)
	sete	%al
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE55:
	.size	is_empty, .-is_empty
	.p2align 4
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB56:
	.cfi_startproc
	endbr64
	movslq	end(%rip), %rax
	leal	1(%rax), %edx
	movl	%edx, end(%rip)
	leaq	queue(%rip), %rdx
	movl	%edi, (%rdx,%rax,4)
	ret
	.cfi_endproc
.LFE56:
	.size	enqueue, .-enqueue
	.p2align 4
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB57:
	.cfi_startproc
	endbr64
	movslq	start(%rip), %rax
	leal	1(%rax), %edx
	movl	%edx, start(%rip)
	leaq	queue(%rip), %rdx
	movl	(%rdx,%rax,4), %eax
	ret
	.cfi_endproc
.LFE57:
	.size	dequeue, .-dequeue
	.p2align 4
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB58:
	.cfi_startproc
	endbr64
	movslq	end(%rip), %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	start(%rip), %r13d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leal	1(%rax), %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	queue(%rip), %rbp
	movl	$1, 0(%rbp,%rax,4)
	movl	4(%rsi), %eax
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%ecx, end(%rip)
	movb	$1, 1+checked.0(%rip)
	movl	%eax, 4(%rdx)
	cmpl	%r13d, %ecx
	je	.L37
	movslq	%r13d, %rax
	movq	%rdi, %r12
	movq	%rsi, %rbx
	movq	%rdx, %r10
	leaq	0(%rbp,%rax,4), %r14
	xorl	%edi, %edi
	leaq	checked.0(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L42:
	movslq	(%r14), %rdx
	addl	$1, %r13d
	movq	%rdx, %r8
	salq	$4, %r8
	addq	%r12, %r8
	movq	(%r8), %rax
	cmpq	%rax, %r8
	je	.L38
	leaq	(%r10,%rdx,4), %r11
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	8(%rax), %rdx
	cmpb	$0, (%r9,%rdx)
	jne	.L39
	movl	(%r11), %edi
	movq	(%rax), %rax
	movb	$1, (%r9,%rdx)
	addl	(%rbx,%rdx,4), %edi
	movl	%edi, (%r10,%rdx,4)
	leal	1(%rcx), %edi
	movslq	%ecx, %rcx
	movl	%edx, 0(%rbp,%rcx,4)
	movl	%edi, %ecx
	movl	$1, %edi
	cmpq	%rax, %r8
	jne	.L41
.L38:
	addq	$4, %r14
	cmpl	%r13d, %ecx
	jne	.L42
.L50:
	movl	%ecx, start(%rip)
	testb	%dil, %dil
	je	.L37
	movl	%ecx, end(%rip)
.L37:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
.L39:
	.cfi_restore_state
	movq	(%rax), %rax
	cmpq	%rax, %r8
	jne	.L41
	addq	$4, %r14
	cmpl	%r13d, %ecx
	jne	.L42
	jmp	.L50
	.cfi_endproc
.LFE58:
	.size	bfs, .-bfs
	.section	.rodata.str1.1
.LC8:
	.string	"%d%c"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB59:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597496
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2664, %rsp
	.cfi_def_cfa_offset 1600160
	movq	%fs:40, %rax
	movq	%rax, 1600088(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	movq	%rsp, %rdi
	call	get_int2
	movl	(%rsp), %ebx
	leal	1(%rbx), %r12d
	movslq	%r12d, %rdi
	salq	$4, %rdi
	call	malloc@PLT
	movq	%rax, %rbp
	testl	%r12d, %r12d
	jle	.L52
	cmpl	$10, %ebx
	jbe	.L72
	movdqa	.LC5(%rip), %xmm3
	pxor	%xmm5, %xmm5
	movl	%r12d, %edx
	movq	%rax, %xmm7
	movdqa	%xmm5, %xmm6
	shrl	$2, %edx
	punpcklqdq	%xmm7, %xmm7
	movdqa	.LC3(%rip), %xmm4
	pcmpgtd	%xmm3, %xmm6
	salq	$6, %rdx
	movdqa	.LC4(%rip), %xmm8
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L54:
	movdqa	%xmm4, %xmm0
	movdqa	%xmm5, %xmm2
	movdqa	%xmm6, %xmm9
	addq	$64, %rax
	movdqa	%xmm0, %xmm1
	paddd	%xmm8, %xmm4
	punpckldq	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm0
	pcmpgtd	%xmm1, %xmm2
	pmuludq	%xmm1, %xmm9
	pmuludq	%xmm3, %xmm1
	pmuludq	%xmm3, %xmm2
	paddq	%xmm9, %xmm2
	movdqa	%xmm6, %xmm9
	psllq	$32, %xmm2
	pmuludq	%xmm0, %xmm9
	paddq	%xmm2, %xmm1
	movdqa	%xmm5, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pmuludq	%xmm3, %xmm0
	paddq	%xmm7, %xmm1
	movq	%xmm1, -64(%rax)
	movhps	%xmm1, -48(%rax)
	pmuludq	%xmm3, %xmm2
	paddq	%xmm9, %xmm2
	psllq	$32, %xmm2
	paddq	%xmm2, %xmm0
	paddq	%xmm7, %xmm0
	movq	%xmm0, -32(%rax)
	movhps	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L54
	movl	%r12d, %eax
	andl	$-4, %eax
	andl	$3, %r12d
	je	.L52
.L53:
	movslq	%eax, %rdx
	leal	1(%rax), %esi
	salq	$4, %rdx
	leaq	0(%rbp,%rdx), %rcx
	movq	%rcx, (%rcx)
	cmpl	%eax, %ebx
	jle	.L52
	leaq	16(%rbp,%rdx), %rcx
	leal	2(%rax), %edi
	movq	%rcx, (%rcx)
	cmpl	%esi, %ebx
	jle	.L52
	leaq	32(%rbp,%rdx), %rcx
	leal	3(%rax), %esi
	movq	%rcx, (%rcx)
	cmpl	%edi, %ebx
	jle	.L52
	leaq	48(%rbp,%rdx), %rcx
	leal	4(%rax), %edi
	movq	%rcx, (%rcx)
	cmpl	%esi, %ebx
	jle	.L52
	leaq	64(%rbp,%rdx), %rcx
	leal	5(%rax), %esi
	movq	%rcx, (%rcx)
	cmpl	%edi, %ebx
	jle	.L52
	leaq	80(%rbp,%rdx), %rcx
	leal	6(%rax), %edi
	movq	%rcx, (%rcx)
	cmpl	%esi, %ebx
	jle	.L52
	leaq	96(%rbp,%rdx), %rcx
	leal	7(%rax), %esi
	movq	%rcx, (%rcx)
	cmpl	%edi, %ebx
	jle	.L52
	leaq	112(%rbp,%rdx), %rcx
	leal	8(%rax), %edi
	movq	%rcx, (%rcx)
	cmpl	%esi, %ebx
	jle	.L52
	leaq	128(%rbp,%rdx), %rcx
	addl	$9, %eax
	movq	%rcx, (%rcx)
	cmpl	%edi, %ebx
	jle	.L52
	leaq	144(%rbp,%rdx), %rcx
	movq	%rcx, (%rcx)
	cmpl	%eax, %ebx
	jle	.L52
	leaq	160(%rbp,%rdx), %rax
	movq	%rax, (%rax)
.L52:
	cmpl	$1, %ebx
	jle	.L56
	xorl	%r13d, %r13d
	leaq	12(%rsp), %r15
	leaq	1600048(%rsp), %rbx
	leaq	8(%rsp), %r14
	leaq	pool(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L62:
	movq	stdin(%rip), %rdx
	movl	$30, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L57
	movq	%r15, %rcx
	movq	%r14, %rdx
	leaq	.LC2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
.L57:
	movl	(%rsp), %ecx
	movl	8(%rsp), %edi
	movslq	12(%rsp), %rdx
	leal	1(%rcx), %eax
	cmpl	%eax, %edi
	jge	.L86
	cmpl	%eax, %edx
	jge	.L87
	movslq	%edi, %r9
	movl	idx(%rip), %r8d
	salq	$4, %r9
	addq	%rbp, %r9
	cmpl	$399998, %r8d
	jg	.L61
	movslq	%r8d, %rsi
	movq	(%r9), %r11
	leal	1(%r8), %eax
	salq	$4, %rsi
	movl	%eax, idx(%rip)
	leaq	(%r12,%rsi), %r10
	movl	%edx, 8(%r10)
	salq	$4, %rdx
	movq	%r11, (%r10)
	addq	%rbp, %rdx
	movq	%r10, (%r9)
	cmpl	$399999, %eax
	je	.L61
	cltq
	addl	$2, %r8d
	addl	$1, %r13d
	subl	$1, %ecx
	salq	$4, %rax
	movl	%r8d, idx(%rip)
	addq	%r12, %rax
	movl	%edi, 8(%rax)
	movq	(%rdx), %rdi
	movq	%rdi, (%rax)
	leaq	16(%r12,%rsi), %rax
	movq	%rax, (%rdx)
	cmpl	%r13d, %ecx
	jg	.L62
.L56:
	leaq	16(%rsp), %r14
	movl	$800004, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	memset@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L63
	xorl	%r12d, %r12d
	leaq	1600048(%rsp), %rbx
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L66:
	movq	stdin(%rip), %rdx
	movl	$30, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L64
	leaq	8(%rsp), %rdx
	leaq	12(%rsp), %rcx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_sscanf@PLT
	movslq	8(%rsp), %rax
	movl	12(%rsp), %edx
	addl	%edx, 16(%rsp,%rax,4)
	cmpl	4(%rsp), %r12d
	jl	.L66
.L63:
	leaq	800032(%rsp), %r12
	xorl	%esi, %esi
	movl	$800004, %edx
	movq	%r12, %rdi
	call	memset@PLT
	movl	(%rsp), %ecx
	movq	%r12, %rdx
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	bfs
	cmpl	$-1, %eax
	je	.L67
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L67
	movl	$1, %ebx
	leaq	.LC8(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L70:
	movl	(%r12,%rbx,4), %edx
	movl	$32, %ecx
	cmpl	%ebx, %eax
	jne	.L85
	movl	$10, %ecx
.L85:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	cmpl	%ebx, %eax
	jge	.L70
.L67:
	movq	1600088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L88
	addq	$1600104, %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
.L72:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L53
.L64:
	movslq	8(%rsp), %rax
	movl	12(%rsp), %edx
	addl	$1, %r12d
	addl	%edx, 16(%rsp,%rax,4)
	cmpl	%r12d, 4(%rsp)
	jg	.L66
	jmp	.L63
.L61:
	leaq	__PRETTY_FUNCTION__.2(%rip), %rcx
	movl	$38, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	call	__assert_fail@PLT
.L87:
	leaq	__PRETTY_FUNCTION__.1(%rip), %rcx
	movl	$44, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC7(%rip), %rdi
	call	__assert_fail@PLT
.L86:
	leaq	__PRETTY_FUNCTION__.1(%rip), %rcx
	movl	$43, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC6(%rip), %rdi
	call	__assert_fail@PLT
.L88:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE59:
	.size	main, .-main
	.local	checked.0
	.comm	checked.0,200001,32
	.section	.rodata
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 7
__PRETTY_FUNCTION__.1:
	.string	"insert"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 9
__PRETTY_FUNCTION__.2:
	.string	"get_list"
	.local	end
	.comm	end,4,4
	.local	start
	.comm	start,4,4
	.globl	queue
	.bss
	.align 32
	.type	queue, @object
	.size	queue, 800004
queue:
	.zero	800004
	.globl	idx
	.align 4
	.type	idx, @object
	.size	idx, 4
idx:
	.zero	4
	.globl	pool
	.align 32
	.type	pool, @object
	.size	pool, 6400000
pool:
	.zero	6400000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC4:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC5:
	.long	16
	.long	16
	.long	16
	.long	16
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/tmp/tmptcixv39x/temp.c"
.LC1:
	.string	"idx+1 < VERTEX_MAX*2"
	.text
	.p2align 4
	.type	get_list.part.0, @function
get_list.part.0:
.LFB60:
	.cfi_startproc
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	leaq	__PRETTY_FUNCTION__.2(%rip), %rcx
	movl	$38, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	__assert_fail@PLT
	.cfi_endproc
.LFE60:
	.size	get_list.part.0, .-get_list.part.0
	.section	.rodata.str1.1
.LC2:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r13
	movl	$30, %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	$48, %rsp
	.cfi_def_cfa_offset 80
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L7
	movq	%r13, %rcx
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
	xorl	%eax, %eax
.L4:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L9
	addq	$48, %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
.L7:
	.cfi_restore_state
	movl	$-1, %eax
	jmp	.L4
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	get_int2, .-get_int2
	.p2align 4
	.globl	create_graph
	.type	create_graph, @function
create_graph:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movslq	%edi, %rdi
	movq	%rdi, %rbx
	salq	$4, %rdi
	call	malloc@PLT
	movq	%rax, %r8
	testl	%ebx, %ebx
	jle	.L10
	leal	-1(%rbx), %eax
	cmpl	$10, %eax
	jbe	.L15
	pxor	%xmm5, %xmm5
	movl	%ebx, %edx
	movq	%r8, %xmm7
	movq	%r8, %rax
	movdqa	.LC5(%rip), %xmm3
	movdqa	%xmm5, %xmm6
	shrl	$2, %edx
	movdqa	.LC3(%rip), %xmm4
	salq	$6, %rdx
	punpcklqdq	%xmm7, %xmm7
	movdqa	.LC4(%rip), %xmm8
	pcmpgtd	%xmm3, %xmm6
	addq	%r8, %rdx
	.p2align 4,,10
	.p2align 3
.L13:
	movdqa	%xmm4, %xmm0
	movdqa	%xmm5, %xmm2
	movdqa	%xmm6, %xmm9
	addq	$64, %rax
	movdqa	%xmm0, %xmm1
	paddd	%xmm8, %xmm4
	punpckldq	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm0
	pcmpgtd	%xmm1, %xmm2
	pmuludq	%xmm1, %xmm9
	pmuludq	%xmm3, %xmm1
	pmuludq	%xmm3, %xmm2
	paddq	%xmm9, %xmm2
	movdqa	%xmm6, %xmm9
	psllq	$32, %xmm2
	pmuludq	%xmm0, %xmm9
	paddq	%xmm2, %xmm1
	movdqa	%xmm5, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pmuludq	%xmm3, %xmm0
	paddq	%xmm7, %xmm1
	movq	%xmm1, -64(%rax)
	movhps	%xmm1, -48(%rax)
	pmuludq	%xmm3, %xmm2
	paddq	%xmm9, %xmm2
	psllq	$32, %xmm2
	paddq	%xmm2, %xmm0
	paddq	%xmm7, %xmm0
	movq	%xmm0, -32(%rax)
	movhps	%xmm0, -16(%rax)
	cmpq	%rax, %rdx
	jne	.L13
	movl	%ebx, %edx
	andl	$-4, %edx
	testb	$3, %bl
	je	.L10
.L12:
	movslq	%edx, %rax
	salq	$4, %rax
	leaq	(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	1(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	16(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	2(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	32(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	3(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	48(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	4(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	64(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	5(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	80(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	6(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	96(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	7(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	112(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	8(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	128(%r8,%rax), %rcx
	movq	%rcx, (%rcx)
	leal	9(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	leaq	144(%r8,%rax), %rcx
	addl	$10, %edx
	movq	%rcx, (%rcx)
	cmpl	%edx, %ebx
	jle	.L10
	leaq	160(%r8,%rax), %rax
	movq	%rax, (%rax)
.L10:
	movq	%r8, %rax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L12
	.cfi_endproc
.LFE52:
	.size	create_graph, .-create_graph
	.p2align 4
	.globl	get_list
	.type	get_list, @function
get_list:
.LFB53:
	.cfi_startproc
	endbr64
	movslq	idx(%rip), %rax
	cmpl	$399998, %eax
	jg	.L23
	leal	1(%rax), %edx
	salq	$4, %rax
	movl	%edx, idx(%rip)
	leaq	pool(%rip), %rdx
	addq	%rdx, %rax
	ret
.L23:
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	get_list.part.0
	.cfi_endproc
.LFE53:
	.size	get_list, .-get_list
	.section	.rodata.str1.1
.LC6:
	.string	"src < size"
.LC7:
	.string	"dst < size"
	.text
	.p2align 4
	.globl	insert
	.type	insert, @function
insert:
.LFB54:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	cmpl	%esi, %edx
	jge	.L29
	cmpl	%ecx, %esi
	jle	.L30
	movslq	%edx, %rdx
	movslq	idx(%rip), %rax
	salq	$4, %rdx
	addq	%rdx, %rdi
	cmpl	$399998, %eax
	jg	.L31
	leal	1(%rax), %edx
	salq	$4, %rax
	movl	%edx, idx(%rip)
	leaq	pool(%rip), %rdx
	addq	%rdx, %rax
	movl	%ecx, 8(%rax)
	movq	(%rdi), %rdx
	movq	%rdx, (%rax)
	movq	%rax, (%rdi)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	leaq	__PRETTY_FUNCTION__.1(%rip), %rcx
	movl	$43, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC6(%rip), %rdi
	call	__assert_fail@PLT
.L31:
	call	get_list.part.0
.L30:
	leaq	__PRETTY_FUNCTION__.1(%rip), %rcx
	movl	$44, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC7(%rip), %rdi
	call	__assert_fail@PLT
	.cfi_endproc
.LFE54:
	.size	insert, .-insert
	.p2align 4
	.globl	is_empty
	.type	is_empty, @function
is_empty:
.LFB55:
	.cfi_startproc
	endbr64
	movl	end(%rip), %eax
	cmpl	%eax, start(%rip)
	sete	%al
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE55:
	.size	is_empty, .-is_empty
	.p2align 4
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB56:
	.cfi_startproc
	endbr64
	movslq	end(%rip), %rax
	leal	1(%rax), %edx
	movl	%edx, end(%rip)
	leaq	queue(%rip), %rdx
	movl	%edi, (%rdx,%rax,4)
	ret
	.cfi_endproc
.LFE56:
	.size	enqueue, .-enqueue
	.p2align 4
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB57:
	.cfi_startproc
	endbr64
	movslq	start(%rip), %rax
	leal	1(%rax), %edx
	movl	%edx, start(%rip)
	leaq	queue(%rip), %rdx
	movl	(%rdx,%rax,4), %eax
	ret
	.cfi_endproc
.LFE57:
	.size	dequeue, .-dequeue
	.p2align 4
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB58:
	.cfi_startproc
	endbr64
	movslq	end(%rip), %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	start(%rip), %r13d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leal	1(%rax), %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	queue(%rip), %rbp
	movl	$1, 0(%rbp,%rax,4)
	movl	4(%rsi), %eax
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%ecx, end(%rip)
	movb	$1, 1+checked.0(%rip)
	movl	%eax, 4(%rdx)
	cmpl	%r13d, %ecx
	je	.L37
	movslq	%r13d, %rax
	movq	%rdi, %r12
	movq	%rsi, %rbx
	movq	%rdx, %r10
	leaq	0(%rbp,%rax,4), %r14
	xorl	%edi, %edi
	leaq	checked.0(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L42:
	movslq	(%r14), %rdx
	addl	$1, %r13d
	movq	%rdx, %r8
	salq	$4, %r8
	addq	%r12, %r8
	movq	(%r8), %rax
	cmpq	%rax, %r8
	je	.L38
	leaq	(%r10,%rdx,4), %r11
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	8(%rax), %rdx
	cmpb	$0, (%r9,%rdx)
	jne	.L39
	movl	(%r11), %edi
	movq	(%rax), %rax
	movb	$1, (%r9,%rdx)
	addl	(%rbx,%rdx,4), %edi
	movl	%edi, (%r10,%rdx,4)
	leal	1(%rcx), %edi
	movslq	%ecx, %rcx
	movl	%edx, 0(%rbp,%rcx,4)
	movl	%edi, %ecx
	movl	$1, %edi
	cmpq	%rax, %r8
	jne	.L41
.L38:
	addq	$4, %r14
	cmpl	%r13d, %ecx
	jne	.L42
.L50:
	movl	%ecx, start(%rip)
	testb	%dil, %dil
	je	.L37
	movl	%ecx, end(%rip)
.L37:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
.L39:
	.cfi_restore_state
	movq	(%rax), %rax
	cmpq	%rax, %r8
	jne	.L41
	addq	$4, %r14
	cmpl	%r13d, %ecx
	jne	.L42
	jmp	.L50
	.cfi_endproc
.LFE58:
	.size	bfs, .-bfs
	.section	.rodata.str1.1
.LC8:
	.string	"%d%c"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB59:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597496
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2664, %rsp
	.cfi_def_cfa_offset 1600160
	movq	%fs:40, %rax
	movq	%rax, 1600088(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	movq	%rsp, %rdi
	call	get_int2
	movl	(%rsp), %ebx
	leal	1(%rbx), %r12d
	movslq	%r12d, %rdi
	salq	$4, %rdi
	call	malloc@PLT
	movq	%rax, %rbp
	testl	%r12d, %r12d
	jle	.L52
	cmpl	$10, %ebx
	jbe	.L72
	movdqa	.LC5(%rip), %xmm3
	pxor	%xmm5, %xmm5
	movl	%r12d, %edx
	movq	%rax, %xmm7
	movdqa	%xmm5, %xmm6
	shrl	$2, %edx
	punpcklqdq	%xmm7, %xmm7
	movdqa	.LC3(%rip), %xmm4
	pcmpgtd	%xmm3, %xmm6
	salq	$6, %rdx
	movdqa	.LC4(%rip), %xmm8
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L54:
	movdqa	%xmm4, %xmm0
	movdqa	%xmm5, %xmm2
	movdqa	%xmm6, %xmm9
	addq	$64, %rax
	movdqa	%xmm0, %xmm1
	paddd	%xmm8, %xmm4
	punpckldq	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm0
	pcmpgtd	%xmm1, %xmm2
	pmuludq	%xmm1, %xmm9
	pmuludq	%xmm3, %xmm1
	pmuludq	%xmm3, %xmm2
	paddq	%xmm9, %xmm2
	movdqa	%xmm6, %xmm9
	psllq	$32, %xmm2
	pmuludq	%xmm0, %xmm9
	paddq	%xmm2, %xmm1
	movdqa	%xmm5, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pmuludq	%xmm3, %xmm0
	paddq	%xmm7, %xmm1
	movq	%xmm1, -64(%rax)
	movhps	%xmm1, -48(%rax)
	pmuludq	%xmm3, %xmm2
	paddq	%xmm9, %xmm2
	psllq	$32, %xmm2
	paddq	%xmm2, %xmm0
	paddq	%xmm7, %xmm0
	movq	%xmm0, -32(%rax)
	movhps	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L54
	movl	%r12d, %eax
	andl	$-4, %eax
	andl	$3, %r12d
	je	.L52
.L53:
	movslq	%eax, %rdx
	leal	1(%rax), %esi
	salq	$4, %rdx
	leaq	0(%rbp,%rdx), %rcx
	movq	%rcx, (%rcx)
	cmpl	%eax, %ebx
	jle	.L52
	leaq	16(%rbp,%rdx), %rcx
	leal	2(%rax), %edi
	movq	%rcx, (%rcx)
	cmpl	%esi, %ebx
	jle	.L52
	leaq	32(%rbp,%rdx), %rcx
	leal	3(%rax), %esi
	movq	%rcx, (%rcx)
	cmpl	%edi, %ebx
	jle	.L52
	leaq	48(%rbp,%rdx), %rcx
	leal	4(%rax), %edi
	movq	%rcx, (%rcx)
	cmpl	%esi, %ebx
	jle	.L52
	leaq	64(%rbp,%rdx), %rcx
	leal	5(%rax), %esi
	movq	%rcx, (%rcx)
	cmpl	%edi, %ebx
	jle	.L52
	leaq	80(%rbp,%rdx), %rcx
	leal	6(%rax), %edi
	movq	%rcx, (%rcx)
	cmpl	%esi, %ebx
	jle	.L52
	leaq	96(%rbp,%rdx), %rcx
	leal	7(%rax), %esi
	movq	%rcx, (%rcx)
	cmpl	%edi, %ebx
	jle	.L52
	leaq	112(%rbp,%rdx), %rcx
	leal	8(%rax), %edi
	movq	%rcx, (%rcx)
	cmpl	%esi, %ebx
	jle	.L52
	leaq	128(%rbp,%rdx), %rcx
	addl	$9, %eax
	movq	%rcx, (%rcx)
	cmpl	%edi, %ebx
	jle	.L52
	leaq	144(%rbp,%rdx), %rcx
	movq	%rcx, (%rcx)
	cmpl	%eax, %ebx
	jle	.L52
	leaq	160(%rbp,%rdx), %rax
	movq	%rax, (%rax)
.L52:
	cmpl	$1, %ebx
	jle	.L56
	xorl	%r13d, %r13d
	leaq	12(%rsp), %r15
	leaq	1600048(%rsp), %rbx
	leaq	8(%rsp), %r14
	leaq	pool(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L62:
	movq	stdin(%rip), %rdx
	movl	$30, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L57
	movq	%r15, %rcx
	movq	%r14, %rdx
	leaq	.LC2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
.L57:
	movl	(%rsp), %ecx
	movl	8(%rsp), %edi
	movslq	12(%rsp), %rdx
	leal	1(%rcx), %eax
	cmpl	%eax, %edi
	jge	.L86
	cmpl	%eax, %edx
	jge	.L87
	movslq	%edi, %r9
	movl	idx(%rip), %r8d
	salq	$4, %r9
	addq	%rbp, %r9
	cmpl	$399998, %r8d
	jg	.L61
	movslq	%r8d, %rsi
	movq	(%r9), %r11
	leal	1(%r8), %eax
	salq	$4, %rsi
	movl	%eax, idx(%rip)
	leaq	(%r12,%rsi), %r10
	movl	%edx, 8(%r10)
	salq	$4, %rdx
	movq	%r11, (%r10)
	addq	%rbp, %rdx
	movq	%r10, (%r9)
	cmpl	$399999, %eax
	je	.L61
	cltq
	addl	$2, %r8d
	addl	$1, %r13d
	subl	$1, %ecx
	salq	$4, %rax
	movl	%r8d, idx(%rip)
	addq	%r12, %rax
	movl	%edi, 8(%rax)
	movq	(%rdx), %rdi
	movq	%rdi, (%rax)
	leaq	16(%r12,%rsi), %rax
	movq	%rax, (%rdx)
	cmpl	%r13d, %ecx
	jg	.L62
.L56:
	leaq	16(%rsp), %r14
	movl	$800004, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	memset@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L63
	xorl	%r12d, %r12d
	leaq	1600048(%rsp), %rbx
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L66:
	movq	stdin(%rip), %rdx
	movl	$30, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L64
	leaq	8(%rsp), %rdx
	leaq	12(%rsp), %rcx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_sscanf@PLT
	movslq	8(%rsp), %rax
	movl	12(%rsp), %edx
	addl	%edx, 16(%rsp,%rax,4)
	cmpl	4(%rsp), %r12d
	jl	.L66
.L63:
	leaq	800032(%rsp), %r12
	xorl	%esi, %esi
	movl	$800004, %edx
	movq	%r12, %rdi
	call	memset@PLT
	movl	(%rsp), %ecx
	movq	%r12, %rdx
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	bfs
	cmpl	$-1, %eax
	je	.L67
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L67
	movl	$1, %ebx
	leaq	.LC8(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L70:
	movl	(%r12,%rbx,4), %edx
	movl	$32, %ecx
	cmpl	%ebx, %eax
	jne	.L85
	movl	$10, %ecx
.L85:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	cmpl	%ebx, %eax
	jge	.L70
.L67:
	movq	1600088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L88
	addq	$1600104, %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
.L72:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L53
.L64:
	movslq	8(%rsp), %rax
	movl	12(%rsp), %edx
	addl	$1, %r12d
	addl	%edx, 16(%rsp,%rax,4)
	cmpl	%r12d, 4(%rsp)
	jg	.L66
	jmp	.L63
.L61:
	leaq	__PRETTY_FUNCTION__.2(%rip), %rcx
	movl	$38, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	call	__assert_fail@PLT
.L87:
	leaq	__PRETTY_FUNCTION__.1(%rip), %rcx
	movl	$44, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC7(%rip), %rdi
	call	__assert_fail@PLT
.L86:
	leaq	__PRETTY_FUNCTION__.1(%rip), %rcx
	movl	$43, %edx
	leaq	.LC0(%rip), %rsi
	leaq	.LC6(%rip), %rdi
	call	__assert_fail@PLT
.L88:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE59:
	.size	main, .-main
	.local	checked.0
	.comm	checked.0,200001,32
	.section	.rodata
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 7
__PRETTY_FUNCTION__.1:
	.string	"insert"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 9
__PRETTY_FUNCTION__.2:
	.string	"get_list"
	.local	end
	.comm	end,4,4
	.local	start
	.comm	start,4,4
	.globl	queue
	.bss
	.align 32
	.type	queue, @object
	.size	queue, 800004
queue:
	.zero	800004
	.globl	idx
	.align 4
	.type	idx, @object
	.size	idx, 4
idx:
	.zero	4
	.globl	pool
	.align 32
	.type	pool, @object
	.size	pool, 6400000
pool:
	.zero	6400000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC4:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC5:
	.long	16
	.long	16
	.long	16
	.long	16
	.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 <assert.h>
#define BUF_SIZE 30

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;
}

struct list {
    struct list *next;
    int v;
};
#define VERTEX_MAX 200000
struct list *create_graph(int size) {
    struct list *graph = malloc(sizeof(struct list)*size);
    int i;
    for(i = 0; i < size; i++) {
        graph[i].next = &graph[i];
    }
    return graph;
}

// be careful, multiply by 2 because execute insert() twice
struct list pool[VERTEX_MAX*2];
int idx = 0;

struct list *get_list(void) {
    assert(idx+1 < VERTEX_MAX*2);
    return &pool[idx++];
}

void insert(struct list *graph, int size, int src, int dst) {
    assert(src < size);
    assert(dst < size);
    struct list *head = &graph[src];
    struct list *elem = get_list();
    elem->v = dst;
    elem->next = head->next;
    head->next = elem;
}

int queue[VERTEX_MAX+1];
static int start = 0;
static int end = 0;

int is_empty(void) {
    return start == end;
}

void enqueue(int node) {
    queue[end++] = node;
}

int dequeue(void) {
    return queue[start++];
}

// 1-indexed
int bfs(struct list *graph, int *profit, int *ans, int size) {
    int node = 1;
    static char checked[VERTEX_MAX+1];
    enqueue(node);
    checked[node] = 1;
    ans[node] = profit[node];
    while(!is_empty()) {
        int v = dequeue();
        struct list *head = &graph[v];
        struct list *elem;
        for(elem = head->next; elem != head; elem = elem->next) {
            int nv = elem->v;
            if(!checked[nv]) {
                // calc ans
                ans[nv] = profit[nv] + ans[v];
                enqueue(nv);
                checked[nv] = 1;
            }
        }
    }
    return 0;
}

int main(void) {
    int vs, queries;
    get_int2(&vs, &queries);

    struct list* graph = create_graph(vs+1);
    int i;
    for(i = 0; i < vs-1; i++) {
        int v1, v2;
        get_int2(&v1, &v2);
        insert(graph, vs+1,v1, v2);
        insert(graph, vs+1,v2, v1);
    }

    // vertex is 1-indexed.
    int map[VERTEX_MAX+1] = {0};
    for(i = 0; i < queries; i++) {
        int v, point;
        get_int2(&v, &point);
        map[v] += point;
    }
    int sum[VERTEX_MAX+1] = {0};
    if(bfs(graph, map, sum, vs) == -1) return 0;

    // presentation
    for(i = 1; i <= vs; i++) {
        int end = (i == vs);
        printf("%d%c", sum[i], end ? '\n' : ' ');
    }

    return 0;
}
4 3
1 2
2 3
1 4
2 10
1 100
3 1
 4 3
1 2
2 3
1 4
2 10
1 000
3 1
 4 3
1 2
2 3
2 4
2 19
1 100
3 1
 2 3
1 2
2 3
1 4
2 10
1 100
3 1
 4 3
1 2
2 3
2 4
4 10
1 100
3 1
 4 3
1 2
2 3
2 4
2 19
1 100
2 1
 2 3
1 2
2 1
1 4
2 10
2 100
3 1
 4 3
1 2
2 3
2 4
2 10
2 100
3 1
 4 3
1 2
2 3
2 4
2 19
1 100
2 0
 2 3
1 2
2 1
1 4
2 18
2 100
3 1

100 110 111 100
 0 10 11 0
 100 119 120 119
 4 17
 100 100 101 110
 100 120 120 120
 4 15
 0 110 111 110
 100 119 119 119
 4 23

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 <assert.h>
#define BUF_SIZE 30

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;
}

struct list {
    struct list *next;
    int v;
};
#define VERTEX_MAX 200000
struct list *create_graph(int size) {
    struct list *graph = malloc(sizeof(struct list)*size);
    int i;
    for(i = 0; i < size; i++) {
        graph[i].next = &graph[i];
    }
    return graph;
}

// be careful, multiply by 2 because execute insert() twice
struct list pool[VERTEX_MAX*2];
int idx = 0;

struct list *get_list(void) {
    assert(idx+1 < VERTEX_MAX*2);
    return &pool[idx++];
}

void insert(struct list *graph, int size, int src, int dst) {
    assert(src < size);
    assert(dst < size);
    struct list *head = &graph[src];
    struct list *elem = get_list();
    elem->v = dst;
    elem->next = head->next;
    head->next = elem;
}

int queue[VERTEX_MAX+1];
static int start = 0;
static int end = 0;

int is_empty(void) {
    return start == end;
}

void enqueue(int node) {
    queue[end++] = node;
}

int dequeue(void) {
    return queue[start++];
}

// 1-indexed
int bfs(struct list *graph, int *profit, int *ans, int size) {
    int node = 1;
    static char checked[VERTEX_MAX+1];
    enqueue(node);
    checked[node] = 1;
    ans[node] = profit[node];
    while(!is_empty()) {
        int v = dequeue();
        struct list *head = &graph[v];
        struct list *elem;
        for(elem = head->next; elem != head; elem = elem->next) {
            int nv = elem->v;
            if(!checked[nv]) {
                // calc ans
                ans[nv] = profit[nv] + ans[v];
                enqueue(nv);
                checked[nv] = 1;
            }
        }
    }
    return 0;
}

int main(void) {
    int vs, queries;
    get_int2(&vs, &queries);

    struct list* graph = create_graph(vs+1);
    int i;
    for(i = 0; i < vs-1; i++) {
        int v1, v2;
        get_int2(&v1, &v2);
        insert(graph, vs+1,v1, v2);
        insert(graph, vs+1,v2, v1);
    }

    // vertex is 1-indexed.
    int map[VERTEX_MAX+1] = {0};
    for(i = 0; i < queries; i++) {
        int v, point;
        get_int2(&v, &point);
        map[v] += point;
    }
    int sum[VERTEX_MAX+1] = {0};
    if(bfs(graph, map, sum, vs) == -1) return 0;

    // presentation
    for(i = 1; i <= vs; i++) {
        int end = (i == vs);
        printf("%d%c", sum[i], end ? '\n' : ' ');
    }

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -56(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-48(%rbp), %rax
	movl	$30, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L2
	movl	$-1, %eax
	jmp	.L4
.L2:
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rax
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, %eax
.L4:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_int2, .-get_int2
	.globl	create_graph
	.type	create_graph, @function
create_graph:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L7
.L8:
	movl	-12(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rcx
	movl	-12(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movq	-8(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	addl	$1, -12(%rbp)
.L7:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L8
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_graph, .-create_graph
	.globl	pool
	.bss
	.align 32
	.type	pool, @object
	.size	pool, 6400000
pool:
	.zero	6400000
	.globl	idx
	.align 4
	.type	idx, @object
	.size	idx, 4
idx:
	.zero	4
	.section	.rodata
.LC1:
	.string	"/tmp/tmptcixv39x/temp.c"
.LC2:
	.string	"idx+1 < VERTEX_MAX*2"
	.text
	.globl	get_list
	.type	get_list, @function
get_list:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	idx(%rip), %eax
	cmpl	$399998, %eax
	jle	.L11
	leaq	__PRETTY_FUNCTION__.2(%rip), %rax
	movq	%rax, %rcx
	movl	$38, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L11:
	movl	idx(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, idx(%rip)
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	pool(%rip), %rax
	addq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_list, .-get_list
	.section	.rodata
.LC3:
	.string	"src < size"
.LC4:
	.string	"dst < size"
	.text
	.globl	insert
	.type	insert, @function
insert:
.LFB9:
	.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, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L14
	leaq	__PRETTY_FUNCTION__.1(%rip), %rax
	movq	%rax, %rcx
	movl	$43, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L14:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L15
	leaq	__PRETTY_FUNCTION__.1(%rip), %rax
	movq	%rax, %rcx
	movl	$44, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L15:
	movl	-32(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	call	get_list
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-36(%rbp), %edx
	movl	%edx, 8(%rax)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	insert, .-insert
	.globl	queue
	.bss
	.align 32
	.type	queue, @object
	.size	queue, 800004
queue:
	.zero	800004
	.local	start
	.comm	start,4,4
	.local	end
	.comm	end,4,4
	.text
	.globl	is_empty
	.type	is_empty, @function
is_empty:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	start(%rip), %edx
	movl	end(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	is_empty, .-is_empty
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	end(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, end(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	queue(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	start(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, start(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	queue(%rip), %rax
	movl	(%rdx,%rax), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	dequeue, .-dequeue
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movl	%ecx, -60(%rbp)
	movl	$1, -28(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	enqueue
	movl	-28(%rbp), %eax
	cltq
	leaq	checked.0(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	jmp	.L22
.L26:
	call	dequeue
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L23
.L25:
	movq	-16(%rbp), %rax
	movl	8(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	checked.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L24
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	enqueue
	movl	-20(%rbp), %eax
	cltq
	leaq	checked.0(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L24:
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
.L23:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jne	.L25
.L22:
	call	is_empty
	testl	%eax, %eax
	je	.L26
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	bfs, .-bfs
	.section	.rodata
.LC5:
	.string	"%d%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2624, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600060(%rbp), %rdx
	leaq	-1600064(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-1600064(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	create_graph
	movq	%rax, -1600040(%rbp)
	movl	$0, -1600048(%rbp)
	jmp	.L29
.L30:
	leaq	-1600052(%rbp), %rdx
	leaq	-1600056(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-1600052(%rbp), %ecx
	movl	-1600056(%rbp), %edx
	movl	-1600064(%rbp), %eax
	leal	1(%rax), %esi
	movq	-1600040(%rbp), %rax
	movq	%rax, %rdi
	call	insert
	movl	-1600056(%rbp), %ecx
	movl	-1600052(%rbp), %edx
	movl	-1600064(%rbp), %eax
	leal	1(%rax), %esi
	movq	-1600040(%rbp), %rax
	movq	%rax, %rdi
	call	insert
	addl	$1, -1600048(%rbp)
.L29:
	movl	-1600064(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1600048(%rbp)
	jl	.L30
	leaq	-1600032(%rbp), %rax
	movl	$800004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1600048(%rbp)
	jmp	.L31
.L32:
	leaq	-1600052(%rbp), %rdx
	leaq	-1600056(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-1600056(%rbp), %eax
	cltq
	movl	-1600032(%rbp,%rax,4), %ecx
	movl	-1600052(%rbp), %edx
	movl	-1600056(%rbp), %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -1600032(%rbp,%rax,4)
	addl	$1, -1600048(%rbp)
.L31:
	movl	-1600060(%rbp), %eax
	cmpl	%eax, -1600048(%rbp)
	jl	.L32
	leaq	-800016(%rbp), %rax
	movl	$800004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	-1600064(%rbp), %ecx
	leaq	-800016(%rbp), %rdx
	leaq	-1600032(%rbp), %rsi
	movq	-1600040(%rbp), %rax
	movq	%rax, %rdi
	call	bfs
	cmpl	$-1, %eax
	jne	.L33
	movl	$0, %eax
	jmp	.L39
.L33:
	movl	$1, -1600048(%rbp)
	jmp	.L35
.L38:
	movl	-1600064(%rbp), %eax
	cmpl	%eax, -1600048(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -1600044(%rbp)
	cmpl	$0, -1600044(%rbp)
	je	.L36
	movl	$10, %edx
	jmp	.L37
.L36:
	movl	$32, %edx
.L37:
	movl	-1600048(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1600048(%rbp)
.L35:
	movl	-1600064(%rbp), %eax
	cmpl	%eax, -1600048(%rbp)
	jle	.L38
	movl	$0, %eax
.L39:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 9
__PRETTY_FUNCTION__.2:
	.string	"get_list"
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 7
__PRETTY_FUNCTION__.1:
	.string	"insert"
	.local	checked.0
	.comm	checked.0,200001,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
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -56(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-48(%rbp), %rax
	movl	$30, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L2
	movl	$-1, %eax
	jmp	.L4
.L2:
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rax
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, %eax
.L4:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_int2, .-get_int2
	.globl	create_graph
	.type	create_graph, @function
create_graph:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L7
.L8:
	movl	-12(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rcx
	movl	-12(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movq	-8(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	addl	$1, -12(%rbp)
.L7:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L8
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_graph, .-create_graph
	.globl	pool
	.bss
	.align 32
	.type	pool, @object
	.size	pool, 6400000
pool:
	.zero	6400000
	.globl	idx
	.align 4
	.type	idx, @object
	.size	idx, 4
idx:
	.zero	4
	.section	.rodata
.LC1:
	.string	"/tmp/tmptcixv39x/temp.c"
.LC2:
	.string	"idx+1 < VERTEX_MAX*2"
	.text
	.globl	get_list
	.type	get_list, @function
get_list:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	idx(%rip), %eax
	cmpl	$399998, %eax
	jle	.L11
	leaq	__PRETTY_FUNCTION__.2(%rip), %rax
	movq	%rax, %rcx
	movl	$38, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L11:
	movl	idx(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, idx(%rip)
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	pool(%rip), %rax
	addq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_list, .-get_list
	.section	.rodata
.LC3:
	.string	"src < size"
.LC4:
	.string	"dst < size"
	.text
	.globl	insert
	.type	insert, @function
insert:
.LFB9:
	.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, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L14
	leaq	__PRETTY_FUNCTION__.1(%rip), %rax
	movq	%rax, %rcx
	movl	$43, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L14:
	movl	-36(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L15
	leaq	__PRETTY_FUNCTION__.1(%rip), %rax
	movq	%rax, %rcx
	movl	$44, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L15:
	movl	-32(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	call	get_list
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-36(%rbp), %edx
	movl	%edx, 8(%rax)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	insert, .-insert
	.globl	queue
	.bss
	.align 32
	.type	queue, @object
	.size	queue, 800004
queue:
	.zero	800004
	.local	start
	.comm	start,4,4
	.local	end
	.comm	end,4,4
	.text
	.globl	is_empty
	.type	is_empty, @function
is_empty:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	start(%rip), %edx
	movl	end(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	is_empty, .-is_empty
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	end(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, end(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	queue(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	start(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, start(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	queue(%rip), %rax
	movl	(%rdx,%rax), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	dequeue, .-dequeue
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movl	%ecx, -60(%rbp)
	movl	$1, -28(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	enqueue
	movl	-28(%rbp), %eax
	cltq
	leaq	checked.0(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	jmp	.L22
.L26:
	call	dequeue
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L23
.L25:
	movq	-16(%rbp), %rax
	movl	8(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	checked.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L24
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	enqueue
	movl	-20(%rbp), %eax
	cltq
	leaq	checked.0(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L24:
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
.L23:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jne	.L25
.L22:
	call	is_empty
	testl	%eax, %eax
	je	.L26
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	bfs, .-bfs
	.section	.rodata
.LC5:
	.string	"%d%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2624, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600060(%rbp), %rdx
	leaq	-1600064(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-1600064(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	create_graph
	movq	%rax, -1600040(%rbp)
	movl	$0, -1600048(%rbp)
	jmp	.L29
.L30:
	leaq	-1600052(%rbp), %rdx
	leaq	-1600056(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-1600052(%rbp), %ecx
	movl	-1600056(%rbp), %edx
	movl	-1600064(%rbp), %eax
	leal	1(%rax), %esi
	movq	-1600040(%rbp), %rax
	movq	%rax, %rdi
	call	insert
	movl	-1600056(%rbp), %ecx
	movl	-1600052(%rbp), %edx
	movl	-1600064(%rbp), %eax
	leal	1(%rax), %esi
	movq	-1600040(%rbp), %rax
	movq	%rax, %rdi
	call	insert
	addl	$1, -1600048(%rbp)
.L29:
	movl	-1600064(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1600048(%rbp)
	jl	.L30
	leaq	-1600032(%rbp), %rax
	movl	$800004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1600048(%rbp)
	jmp	.L31
.L32:
	leaq	-1600052(%rbp), %rdx
	leaq	-1600056(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	-1600056(%rbp), %eax
	cltq
	movl	-1600032(%rbp,%rax,4), %ecx
	movl	-1600052(%rbp), %edx
	movl	-1600056(%rbp), %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -1600032(%rbp,%rax,4)
	addl	$1, -1600048(%rbp)
.L31:
	movl	-1600060(%rbp), %eax
	cmpl	%eax, -1600048(%rbp)
	jl	.L32
	leaq	-800016(%rbp), %rax
	movl	$800004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	-1600064(%rbp), %ecx
	leaq	-800016(%rbp), %rdx
	leaq	-1600032(%rbp), %rsi
	movq	-1600040(%rbp), %rax
	movq	%rax, %rdi
	call	bfs
	cmpl	$-1, %eax
	jne	.L33
	movl	$0, %eax
	jmp	.L39
.L33:
	movl	$1, -1600048(%rbp)
	jmp	.L35
.L38:
	movl	-1600064(%rbp), %eax
	cmpl	%eax, -1600048(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -1600044(%rbp)
	cmpl	$0, -1600044(%rbp)
	je	.L36
	movl	$10, %edx
	jmp	.L37
.L36:
	movl	$32, %edx
.L37:
	movl	-1600048(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1600048(%rbp)
.L35:
	movl	-1600064(%rbp), %eax
	cmpl	%eax, -1600048(%rbp)
	jle	.L38
	movl	$0, %eax
.L39:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 9
__PRETTY_FUNCTION__.2:
	.string	"get_list"
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 7
__PRETTY_FUNCTION__.1:
	.string	"insert"
	.local	checked.0
	.comm	checked.0,200001,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:
