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

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX_N 100000
#define MAX_M 100000

typedef struct EDGE {
	int to;
	struct EDGE *next;
} edge;

int buff_size;
edge buff[MAX_M + MAX_M];
edge *adj[MAX_N];

void init(int n, int m) {
	int i;
	for(i = 0; i < n; ++i) {
		adj[i] = NULL;
	}
	for(i = 0; i < m; ++i) {
		buff[i].next = NULL;
	}
	buff_size = 0;
}

edge *new_edge() {
	return buff + buff_size++;
}

void add_edge(int u, int v) {
	edge *e = new_edge();
	e->to = v;
	e->next = adj[u];
	adj[u] = e;
}

int head, tail;
int queue[MAX_N];

void enqueue(int data) {
	queue[tail++] = data;
}

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

int empty() {
	return head == tail;
}

void clear() {
	head = tail = 0;
}

int next_label;
int label[MAX_N];

void bfs(int v) {
	edge *e;

	clear();
	enqueue(v);

	label[v] = next_label;
	while(!empty()) {
		const int v = dequeue();
		for(e = adj[v]; e != NULL; e = e->next) {
			if(label[e->to] == -1) {
				label[e->to] = next_label;
				enqueue(e->to);
			}
		}
	}
	++next_label;
}

int main() {
	int n, m, q;
	int u, v;
	int s, t;
	int i;

	scanf("%d %d", &n, &m);
	init(n, m);

	for(i = 0; i < m; ++i) {
		scanf("%d %d", &u, &v);
		add_edge(u, v);
		add_edge(v, u);
	}

	memset(label, -1, sizeof(label));
	for(i = 0; i < n; ++i) {
		if(label[i] == -1) bfs(i);
	}

	scanf("%d", &q);
	while(q--) {
		scanf("%d %d", &s, &t);
		puts(label[s] == label[t] ? "yes" : "no");
	}

	return EXIT_SUCCESS;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	buff_size
	.bss
	.align 4
	.type	buff_size, @object
	.size	buff_size, 4
buff_size:
	.zero	4
	.globl	buff
	.align 32
	.type	buff, @object
	.size	buff, 3200000
buff:
	.zero	3200000
	.globl	adj
	.align 32
	.type	adj, @object
	.size	adj, 800000
adj:
	.zero	800000
	.text
	.globl	init
	.type	init, @function
init:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	adj(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+buff(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L5
	movl	$0, buff_size(%rip)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.globl	new_edge
	.type	new_edge, @function
new_edge:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	buff_size(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, buff_size(%rip)
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	buff(%rip), %rax
	addq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	new_edge, .-new_edge
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, %eax
	call	new_edge
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	adj(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	adj(%rip), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add_edge, .-add_edge
	.globl	head
	.bss
	.align 4
	.type	head, @object
	.size	head, 4
head:
	.zero	4
	.globl	tail
	.align 4
	.type	tail, @object
	.size	tail, 4
tail:
	.zero	4
	.globl	queue
	.align 32
	.type	queue, @object
	.size	queue, 400000
queue:
	.zero	400000
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB9:
	.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	tail(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, tail(%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
.LFE9:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	head(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, head(%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
.LFE10:
	.size	dequeue, .-dequeue
	.globl	empty
	.type	empty, @function
empty:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	head(%rip), %edx
	movl	tail(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	empty, .-empty
	.globl	clear
	.type	clear, @function
clear:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, tail(%rip)
	movl	tail(%rip), %eax
	movl	%eax, head(%rip)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	clear, .-clear
	.globl	next_label
	.bss
	.align 4
	.type	next_label, @object
	.size	next_label, 4
next_label:
	.zero	4
	.globl	label
	.align 32
	.type	label, @object
	.size	label, 400000
label:
	.zero	400000
	.text
	.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	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	$0, %eax
	call	clear
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	enqueue
	movl	next_label(%rip), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	label(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	jmp	.L16
.L20:
	movl	$0, %eax
	call	dequeue
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	adj(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	label(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L18
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movl	next_label(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	label(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	call	enqueue
.L18:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L17:
	cmpq	$0, -8(%rbp)
	jne	.L19
.L16:
	movl	$0, %eax
	call	empty
	testl	%eax, %eax
	je	.L20
	movl	next_label(%rip), %eax
	addl	$1, %eax
	movl	%eax, next_label(%rip)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	bfs, .-bfs
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"yes"
.LC3:
	.string	"no"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	init
	movl	$0, -12(%rbp)
	jmp	.L22
.L23:
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add_edge
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add_edge
	addl	$1, -12(%rbp)
.L22:
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L23
	movl	$400000, %edx
	movl	$-1, %esi
	leaq	label(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L24
.L26:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	label(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L25
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	bfs
.L25:
	addl	$1, -12(%rbp)
.L24:
	movl	-40(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L26
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L27
.L30:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	label(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	label(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L28
	leaq	.LC2(%rip), %rax
	jmp	.L29
.L28:
	leaq	.LC3(%rip), %rax
.L29:
	movq	%rax, %rdi
	call	puts@PLT
.L27:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L30
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%esi, %ebx
	testl	%edi, %edi
	jle	.L2
	movslq	%edi, %rdi
	xorl	%esi, %esi
	leaq	0(,%rdi,8), %rdx
	leaq	adj(%rip), %rdi
	call	memset@PLT
.L2:
	testl	%ebx, %ebx
	jle	.L3
	leaq	8+buff(%rip), %rax
	leal	-1(%rbx), %edx
	salq	$4, %rdx
	leaq	16(%rax), %rcx
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	$0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L4
.L3:
	movl	$0, buff_size(%rip)
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	init, .-init
	.p2align 4
	.globl	new_edge
	.type	new_edge, @function
new_edge:
.LFB52:
	.cfi_startproc
	endbr64
	movslq	buff_size(%rip), %rax
	leal	1(%rax), %edx
	salq	$4, %rax
	movl	%edx, buff_size(%rip)
	leaq	buff(%rip), %rdx
	addq	%rdx, %rax
	ret
	.cfi_endproc
.LFE52:
	.size	new_edge, .-new_edge
	.p2align 4
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB53:
	.cfi_startproc
	endbr64
	movslq	buff_size(%rip), %rax
	movslq	%edi, %rdi
	leal	1(%rax), %edx
	salq	$4, %rax
	movl	%edx, buff_size(%rip)
	leaq	buff(%rip), %rdx
	addq	%rdx, %rax
	leaq	adj(%rip), %rdx
	movq	(%rdx,%rdi,8), %rcx
	movl	%esi, (%rax)
	movq	%rax, (%rdx,%rdi,8)
	movq	%rcx, 8(%rax)
	ret
	.cfi_endproc
.LFE53:
	.size	add_edge, .-add_edge
	.p2align 4
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB54:
	.cfi_startproc
	endbr64
	movslq	tail(%rip), %rax
	leal	1(%rax), %edx
	movl	%edx, tail(%rip)
	leaq	queue(%rip), %rdx
	movl	%edi, (%rdx,%rax,4)
	ret
	.cfi_endproc
.LFE54:
	.size	enqueue, .-enqueue
	.p2align 4
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB55:
	.cfi_startproc
	endbr64
	movslq	head(%rip), %rax
	leal	1(%rax), %edx
	movl	%edx, head(%rip)
	leaq	queue(%rip), %rdx
	movl	(%rdx,%rax,4), %eax
	ret
	.cfi_endproc
.LFE55:
	.size	dequeue, .-dequeue
	.p2align 4
	.globl	empty
	.type	empty, @function
empty:
.LFB56:
	.cfi_startproc
	endbr64
	movl	tail(%rip), %eax
	cmpl	%eax, head(%rip)
	sete	%al
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE56:
	.size	empty, .-empty
	.p2align 4
	.globl	clear
	.type	clear, @function
clear:
.LFB57:
	.cfi_startproc
	endbr64
	movl	$0, tail(%rip)
	movl	$0, head(%rip)
	ret
	.cfi_endproc
.LFE57:
	.size	clear, .-clear
	.p2align 4
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB58:
	.cfi_startproc
	endbr64
	movl	next_label(%rip), %r10d
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movl	%edi, queue(%rip)
	leaq	label(%rip), %rsi
	movslq	%edi, %rdi
	leaq	adj(%rip), %rbx
	movl	%r10d, (%rsi,%rdi,4)
	leaq	queue(%rip), %r9
	xorl	%edi, %edi
	movl	$1, tail(%rip)
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	(%r9,%r8,4), %rax
	leal	1(%r8), %r11d
	movq	(%rbx,%rax,8), %rax
	testq	%rax, %rax
	je	.L15
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	(%rax), %rdx
	cmpl	$-1, (%rsi,%rdx,4)
	je	.L33
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L18
.L15:
	addq	$1, %r8
	cmpl	%r8d, %ecx
	jne	.L19
.L34:
	movl	%r11d, head(%rip)
	testb	%dil, %dil
	je	.L20
	movl	%ecx, tail(%rip)
.L20:
	addl	$1, %r10d
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movl	%r10d, next_label(%rip)
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	movl	%r10d, (%rsi,%rdx,4)
	movl	(%rax), %edi
	leal	1(%rcx), %edx
	movq	8(%rax), %rax
	movl	%edi, (%r9,%rcx,4)
	movslq	%edx, %rcx
	movl	$1, %edi
	testq	%rax, %rax
	jne	.L18
	addq	$1, %r8
	cmpl	%r8d, %ecx
	jne	.L19
	jmp	.L34
	.cfi_endproc
.LFE58:
	.size	bfs, .-bfs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"yes"
.LC3:
	.string	"no"
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rdx
	movl	16(%rsp), %ebx
	testl	%edx, %edx
	jle	.L39
	leaq	adj(%rip), %r13
	salq	$3, %rdx
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	memset@PLT
.L39:
	testl	%ebx, %ebx
	jle	.L68
	leaq	8+buff(%rip), %rax
	leal	-1(%rbx), %edx
	salq	$4, %rdx
	leaq	16(%rax), %rcx
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L40:
	movq	$0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L40
	xorl	%r14d, %r14d
	leaq	28(%rsp), %r12
	movl	$0, buff_size(%rip)
	leaq	adj(%rip), %r13
	leaq	24(%rsp), %rbx
	leaq	buff(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L42:
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	buff_size(%rip), %rdx
	movslq	28(%rsp), %rax
	addl	$1, %r14d
	movslq	24(%rsp), %r8
	movq	%rdx, %rcx
	salq	$4, %rdx
	leaq	(%r15,%rdx), %rsi
	addl	$2, %ecx
	movq	0(%r13,%r8,8), %r9
	leaq	16(%r15,%rdx), %rdx
	movq	%rsi, 0(%r13,%r8,8)
	movl	%ecx, buff_size(%rip)
	movq	0(%r13,%rax,8), %rcx
	movl	%eax, (%rsi)
	movq	%r9, 8(%rsi)
	movq	%rdx, 0(%r13,%rax,8)
	movl	%r8d, (%rdx)
	movq	%rcx, 8(%rdx)
	cmpl	%r14d, 16(%rsp)
	jg	.L42
.L51:
	leaq	label(%rip), %r12
	movl	$400000, %edx
	movl	$-1, %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	call	memset@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L48
	.p2align 4,,10
	.p2align 3
.L43:
	cmpl	$-1, (%r12,%rbx,4)
	movl	%ebx, %edi
	je	.L69
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L43
.L48:
	leaq	20(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %rbx
	leaq	.LC3(%rip), %r14
	leaq	.LC2(%rip), %r15
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	je	.L45
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%r13, %rdx
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	36(%rsp), %rax
	movslq	32(%rsp), %rdx
	movq	%r15, %rdi
	movl	(%r12,%rax,4), %eax
	cmpl	%eax, (%r12,%rdx,4)
	je	.L67
	movq	%r14, %rdi
.L67:
	call	puts@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L44
.L45:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L70
	addq	$56, %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
.L69:
	.cfi_restore_state
	call	bfs
	movl	12(%rsp), %eax
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L43
	jmp	.L48
.L68:
	movl	$0, buff_size(%rip)
	jmp	.L51
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE59:
	.size	main, .-main
	.globl	label
	.bss
	.align 32
	.type	label, @object
	.size	label, 400000
label:
	.zero	400000
	.globl	next_label
	.align 4
	.type	next_label, @object
	.size	next_label, 4
next_label:
	.zero	4
	.globl	queue
	.align 32
	.type	queue, @object
	.size	queue, 400000
queue:
	.zero	400000
	.globl	tail
	.align 4
	.type	tail, @object
	.size	tail, 4
tail:
	.zero	4
	.globl	head
	.align 4
	.type	head, @object
	.size	head, 4
head:
	.zero	4
	.globl	adj
	.align 32
	.type	adj, @object
	.size	adj, 800000
adj:
	.zero	800000
	.globl	buff
	.align 32
	.type	buff, @object
	.size	buff, 3200000
buff:
	.zero	3200000
	.globl	buff_size
	.align 4
	.type	buff_size, @object
	.size	buff_size, 4
buff_size:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%esi, %ebx
	testl	%edi, %edi
	jle	.L2
	movslq	%edi, %rdi
	xorl	%esi, %esi
	leaq	0(,%rdi,8), %rdx
	leaq	adj(%rip), %rdi
	call	memset@PLT
.L2:
	testl	%ebx, %ebx
	jle	.L3
	leaq	8+buff(%rip), %rax
	leal	-1(%rbx), %edx
	salq	$4, %rdx
	leaq	16(%rax), %rcx
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	$0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L4
.L3:
	movl	$0, buff_size(%rip)
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	init, .-init
	.p2align 4
	.globl	new_edge
	.type	new_edge, @function
new_edge:
.LFB52:
	.cfi_startproc
	endbr64
	movslq	buff_size(%rip), %rax
	leal	1(%rax), %edx
	salq	$4, %rax
	movl	%edx, buff_size(%rip)
	leaq	buff(%rip), %rdx
	addq	%rdx, %rax
	ret
	.cfi_endproc
.LFE52:
	.size	new_edge, .-new_edge
	.p2align 4
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB53:
	.cfi_startproc
	endbr64
	movslq	buff_size(%rip), %rax
	movslq	%edi, %rdi
	leal	1(%rax), %edx
	salq	$4, %rax
	movl	%edx, buff_size(%rip)
	leaq	buff(%rip), %rdx
	addq	%rdx, %rax
	leaq	adj(%rip), %rdx
	movq	(%rdx,%rdi,8), %rcx
	movl	%esi, (%rax)
	movq	%rax, (%rdx,%rdi,8)
	movq	%rcx, 8(%rax)
	ret
	.cfi_endproc
.LFE53:
	.size	add_edge, .-add_edge
	.p2align 4
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB54:
	.cfi_startproc
	endbr64
	movslq	tail(%rip), %rax
	leal	1(%rax), %edx
	movl	%edx, tail(%rip)
	leaq	queue(%rip), %rdx
	movl	%edi, (%rdx,%rax,4)
	ret
	.cfi_endproc
.LFE54:
	.size	enqueue, .-enqueue
	.p2align 4
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB55:
	.cfi_startproc
	endbr64
	movslq	head(%rip), %rax
	leal	1(%rax), %edx
	movl	%edx, head(%rip)
	leaq	queue(%rip), %rdx
	movl	(%rdx,%rax,4), %eax
	ret
	.cfi_endproc
.LFE55:
	.size	dequeue, .-dequeue
	.p2align 4
	.globl	empty
	.type	empty, @function
empty:
.LFB56:
	.cfi_startproc
	endbr64
	movl	tail(%rip), %eax
	cmpl	%eax, head(%rip)
	sete	%al
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE56:
	.size	empty, .-empty
	.p2align 4
	.globl	clear
	.type	clear, @function
clear:
.LFB57:
	.cfi_startproc
	endbr64
	movl	$0, tail(%rip)
	movl	$0, head(%rip)
	ret
	.cfi_endproc
.LFE57:
	.size	clear, .-clear
	.p2align 4
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB58:
	.cfi_startproc
	endbr64
	movl	next_label(%rip), %r10d
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movl	%edi, queue(%rip)
	leaq	label(%rip), %rsi
	movslq	%edi, %rdi
	leaq	adj(%rip), %rbx
	movl	%r10d, (%rsi,%rdi,4)
	leaq	queue(%rip), %r9
	xorl	%edi, %edi
	movl	$1, tail(%rip)
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	(%r9,%r8,4), %rax
	leal	1(%r8), %r11d
	movq	(%rbx,%rax,8), %rax
	testq	%rax, %rax
	je	.L15
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	(%rax), %rdx
	cmpl	$-1, (%rsi,%rdx,4)
	je	.L33
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L18
.L15:
	addq	$1, %r8
	cmpl	%r8d, %ecx
	jne	.L19
.L34:
	movl	%r11d, head(%rip)
	testb	%dil, %dil
	je	.L20
	movl	%ecx, tail(%rip)
.L20:
	addl	$1, %r10d
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movl	%r10d, next_label(%rip)
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	movl	%r10d, (%rsi,%rdx,4)
	movl	(%rax), %edi
	leal	1(%rcx), %edx
	movq	8(%rax), %rax
	movl	%edi, (%r9,%rcx,4)
	movslq	%edx, %rcx
	movl	$1, %edi
	testq	%rax, %rax
	jne	.L18
	addq	$1, %r8
	cmpl	%r8d, %ecx
	jne	.L19
	jmp	.L34
	.cfi_endproc
.LFE58:
	.size	bfs, .-bfs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"yes"
.LC3:
	.string	"no"
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rdx
	movl	16(%rsp), %ebx
	testl	%edx, %edx
	jle	.L39
	leaq	adj(%rip), %r13
	salq	$3, %rdx
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	memset@PLT
.L39:
	testl	%ebx, %ebx
	jle	.L68
	leaq	8+buff(%rip), %rax
	leal	-1(%rbx), %edx
	salq	$4, %rdx
	leaq	16(%rax), %rcx
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L40:
	movq	$0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L40
	xorl	%r14d, %r14d
	leaq	28(%rsp), %r12
	movl	$0, buff_size(%rip)
	leaq	adj(%rip), %r13
	leaq	24(%rsp), %rbx
	leaq	buff(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L42:
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	buff_size(%rip), %rdx
	movslq	28(%rsp), %rax
	addl	$1, %r14d
	movslq	24(%rsp), %r8
	movq	%rdx, %rcx
	salq	$4, %rdx
	leaq	(%r15,%rdx), %rsi
	addl	$2, %ecx
	movq	0(%r13,%r8,8), %r9
	leaq	16(%r15,%rdx), %rdx
	movq	%rsi, 0(%r13,%r8,8)
	movl	%ecx, buff_size(%rip)
	movq	0(%r13,%rax,8), %rcx
	movl	%eax, (%rsi)
	movq	%r9, 8(%rsi)
	movq	%rdx, 0(%r13,%rax,8)
	movl	%r8d, (%rdx)
	movq	%rcx, 8(%rdx)
	cmpl	%r14d, 16(%rsp)
	jg	.L42
.L51:
	leaq	label(%rip), %r12
	movl	$400000, %edx
	movl	$-1, %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	call	memset@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L48
	.p2align 4,,10
	.p2align 3
.L43:
	cmpl	$-1, (%r12,%rbx,4)
	movl	%ebx, %edi
	je	.L69
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L43
.L48:
	leaq	20(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %rbx
	leaq	.LC3(%rip), %r14
	leaq	.LC2(%rip), %r15
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	je	.L45
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%r13, %rdx
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	36(%rsp), %rax
	movslq	32(%rsp), %rdx
	movq	%r15, %rdi
	movl	(%r12,%rax,4), %eax
	cmpl	%eax, (%r12,%rdx,4)
	je	.L67
	movq	%r14, %rdi
.L67:
	call	puts@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L44
.L45:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L70
	addq	$56, %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
.L69:
	.cfi_restore_state
	call	bfs
	movl	12(%rsp), %eax
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L43
	jmp	.L48
.L68:
	movl	$0, buff_size(%rip)
	jmp	.L51
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE59:
	.size	main, .-main
	.globl	label
	.bss
	.align 32
	.type	label, @object
	.size	label, 400000
label:
	.zero	400000
	.globl	next_label
	.align 4
	.type	next_label, @object
	.size	next_label, 4
next_label:
	.zero	4
	.globl	queue
	.align 32
	.type	queue, @object
	.size	queue, 400000
queue:
	.zero	400000
	.globl	tail
	.align 4
	.type	tail, @object
	.size	tail, 4
tail:
	.zero	4
	.globl	head
	.align 4
	.type	head, @object
	.size	head, 4
head:
	.zero	4
	.globl	adj
	.align 32
	.type	adj, @object
	.size	adj, 800000
adj:
	.zero	800000
	.globl	buff
	.align 32
	.type	buff, @object
	.size	buff, 3200000
buff:
	.zero	3200000
	.globl	buff_size
	.align 4
	.type	buff_size, @object
	.size	buff_size, 4
buff_size:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX_N 100000
#define MAX_M 100000

typedef struct EDGE {
	int to;
	struct EDGE *next;
} edge;

int buff_size;
edge buff[MAX_M + MAX_M];
edge *adj[MAX_N];

void init(int n, int m) {
	int i;
	for(i = 0; i < n; ++i) {
		adj[i] = NULL;
	}
	for(i = 0; i < m; ++i) {
		buff[i].next = NULL;
	}
	buff_size = 0;
}

edge *new_edge() {
	return buff + buff_size++;
}

void add_edge(int u, int v) {
	edge *e = new_edge();
	e->to = v;
	e->next = adj[u];
	adj[u] = e;
}

int head, tail;
int queue[MAX_N];

void enqueue(int data) {
	queue[tail++] = data;
}

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

int empty() {
	return head == tail;
}

void clear() {
	head = tail = 0;
}

int next_label;
int label[MAX_N];

void bfs(int v) {
	edge *e;

	clear();
	enqueue(v);

	label[v] = next_label;
	while(!empty()) {
		const int v = dequeue();
		for(e = adj[v]; e != NULL; e = e->next) {
			if(label[e->to] == -1) {
				label[e->to] = next_label;
				enqueue(e->to);
			}
		}
	}
	++next_label;
}

int main() {
	int n, m, q;
	int u, v;
	int s, t;
	int i;

	scanf("%d %d", &n, &m);
	init(n, m);

	for(i = 0; i < m; ++i) {
		scanf("%d %d", &u, &v);
		add_edge(u, v);
		add_edge(v, u);
	}

	memset(label, -1, sizeof(label));
	for(i = 0; i < n; ++i) {
		if(label[i] == -1) bfs(i);
	}

	scanf("%d", &q);
	while(q--) {
		scanf("%d %d", &s, &t);
		puts(label[s] == label[t] ? "yes" : "no");
	}

	return EXIT_SUCCESS;
}
10 9
0 1
0 2
3 4
5 7
5 6
3 7
6 8
7 8
8 9
3
0 1
5 9
1 3
 16 9
0 2
0 2
3 4
5 7
5 6
3 7
6 13
7 8
8 9
3
0 1
5 9
1 3
 16 9
0 2
0 2
3 4
2 7
5 6
3 7
6 13
7 8
8 9
3
0 1
5 9
1 3
 16 9
0 2
0 2
3 4
2 7
5 6
3 7
6 13
7 8
8 9
3
0 0
5 9
1 3
 10 9
0 1
0 2
3 4
5 7
5 6
3 7
0 8
7 8
8 9
3
0 1
5 9
1 3
 16 9
0 2
0 2
3 4
2 7
5 6
3 7
0 13
7 8
8 9
3
1 0
5 2
2 3
 16 9
0 2
0 2
3 4
2 7
5 6
3 7
0 13
7 8
8 9
3
1 0
4 2
2 3
 10 9
0 1
0 2
3 4
5 7
5 6
3 7
0 8
7 8
8 5
3
0 1
5 9
1 3
 16 9
0 2
0 2
0 4
2 7
5 6
3 11
6 13
3 8
8 9
1
0 1
5 9
1 3
 16 9
0 2
1 2
0 4
4 7
5 6
3 11
6 7
3 8
8 9
1
0 1
5 9
1 3

yes
yes
no
 no
yes
no
 no
no
no
 yes
no
no
 yes
yes
yes
 no
no
yes
 no
yes
yes
 yes
no
yes
 no
 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 <stdlib.h>
#include <string.h>

#define MAX_N 100000
#define MAX_M 100000

typedef struct EDGE {
	int to;
	struct EDGE *next;
} edge;

int buff_size;
edge buff[MAX_M + MAX_M];
edge *adj[MAX_N];

void init(int n, int m) {
	int i;
	for(i = 0; i < n; ++i) {
		adj[i] = NULL;
	}
	for(i = 0; i < m; ++i) {
		buff[i].next = NULL;
	}
	buff_size = 0;
}

edge *new_edge() {
	return buff + buff_size++;
}

void add_edge(int u, int v) {
	edge *e = new_edge();
	e->to = v;
	e->next = adj[u];
	adj[u] = e;
}

int head, tail;
int queue[MAX_N];

void enqueue(int data) {
	queue[tail++] = data;
}

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

int empty() {
	return head == tail;
}

void clear() {
	head = tail = 0;
}

int next_label;
int label[MAX_N];

void bfs(int v) {
	edge *e;

	clear();
	enqueue(v);

	label[v] = next_label;
	while(!empty()) {
		const int v = dequeue();
		for(e = adj[v]; e != NULL; e = e->next) {
			if(label[e->to] == -1) {
				label[e->to] = next_label;
				enqueue(e->to);
			}
		}
	}
	++next_label;
}

int main() {
	int n, m, q;
	int u, v;
	int s, t;
	int i;

	scanf("%d %d", &n, &m);
	init(n, m);

	for(i = 0; i < m; ++i) {
		scanf("%d %d", &u, &v);
		add_edge(u, v);
		add_edge(v, u);
	}

	memset(label, -1, sizeof(label));
	for(i = 0; i < n; ++i) {
		if(label[i] == -1) bfs(i);
	}

	scanf("%d", &q);
	while(q--) {
		scanf("%d %d", &s, &t);
		puts(label[s] == label[t] ? "yes" : "no");
	}

	return EXIT_SUCCESS;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	buff_size
	.bss
	.align 4
	.type	buff_size, @object
	.size	buff_size, 4
buff_size:
	.zero	4
	.globl	buff
	.align 32
	.type	buff, @object
	.size	buff, 3200000
buff:
	.zero	3200000
	.globl	adj
	.align 32
	.type	adj, @object
	.size	adj, 800000
adj:
	.zero	800000
	.text
	.globl	init
	.type	init, @function
init:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	adj(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+buff(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L5
	movl	$0, buff_size(%rip)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.globl	new_edge
	.type	new_edge, @function
new_edge:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	buff_size(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, buff_size(%rip)
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	buff(%rip), %rax
	addq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	new_edge, .-new_edge
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, %eax
	call	new_edge
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	adj(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	adj(%rip), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add_edge, .-add_edge
	.globl	head
	.bss
	.align 4
	.type	head, @object
	.size	head, 4
head:
	.zero	4
	.globl	tail
	.align 4
	.type	tail, @object
	.size	tail, 4
tail:
	.zero	4
	.globl	queue
	.align 32
	.type	queue, @object
	.size	queue, 400000
queue:
	.zero	400000
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB9:
	.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	tail(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, tail(%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
.LFE9:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	head(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, head(%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
.LFE10:
	.size	dequeue, .-dequeue
	.globl	empty
	.type	empty, @function
empty:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	head(%rip), %edx
	movl	tail(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	empty, .-empty
	.globl	clear
	.type	clear, @function
clear:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, tail(%rip)
	movl	tail(%rip), %eax
	movl	%eax, head(%rip)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	clear, .-clear
	.globl	next_label
	.bss
	.align 4
	.type	next_label, @object
	.size	next_label, 4
next_label:
	.zero	4
	.globl	label
	.align 32
	.type	label, @object
	.size	label, 400000
label:
	.zero	400000
	.text
	.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	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	$0, %eax
	call	clear
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	enqueue
	movl	next_label(%rip), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	label(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	jmp	.L16
.L20:
	movl	$0, %eax
	call	dequeue
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	adj(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	label(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L18
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movl	next_label(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	label(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	call	enqueue
.L18:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L17:
	cmpq	$0, -8(%rbp)
	jne	.L19
.L16:
	movl	$0, %eax
	call	empty
	testl	%eax, %eax
	je	.L20
	movl	next_label(%rip), %eax
	addl	$1, %eax
	movl	%eax, next_label(%rip)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	bfs, .-bfs
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"yes"
.LC3:
	.string	"no"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	init
	movl	$0, -12(%rbp)
	jmp	.L22
.L23:
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add_edge
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add_edge
	addl	$1, -12(%rbp)
.L22:
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L23
	movl	$400000, %edx
	movl	$-1, %esi
	leaq	label(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L24
.L26:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	label(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L25
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	bfs
.L25:
	addl	$1, -12(%rbp)
.L24:
	movl	-40(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L26
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L27
.L30:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	label(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	label(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L28
	leaq	.LC2(%rip), %rax
	jmp	.L29
.L28:
	leaq	.LC3(%rip), %rax
.L29:
	movq	%rax, %rdi
	call	puts@PLT
.L27:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L30
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	buff_size
	.bss
	.align 4
	.type	buff_size, @object
	.size	buff_size, 4
buff_size:
	.zero	4
	.globl	buff
	.align 32
	.type	buff, @object
	.size	buff, 3200000
buff:
	.zero	3200000
	.globl	adj
	.align 32
	.type	adj, @object
	.size	adj, 800000
adj:
	.zero	800000
	.text
	.globl	init
	.type	init, @function
init:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	adj(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+buff(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L5
	movl	$0, buff_size(%rip)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.globl	new_edge
	.type	new_edge, @function
new_edge:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	buff_size(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, buff_size(%rip)
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	buff(%rip), %rax
	addq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	new_edge, .-new_edge
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, %eax
	call	new_edge
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, (%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	adj(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	adj(%rip), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add_edge, .-add_edge
	.globl	head
	.bss
	.align 4
	.type	head, @object
	.size	head, 4
head:
	.zero	4
	.globl	tail
	.align 4
	.type	tail, @object
	.size	tail, 4
tail:
	.zero	4
	.globl	queue
	.align 32
	.type	queue, @object
	.size	queue, 400000
queue:
	.zero	400000
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB9:
	.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	tail(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, tail(%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
.LFE9:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	head(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, head(%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
.LFE10:
	.size	dequeue, .-dequeue
	.globl	empty
	.type	empty, @function
empty:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	head(%rip), %edx
	movl	tail(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	empty, .-empty
	.globl	clear
	.type	clear, @function
clear:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, tail(%rip)
	movl	tail(%rip), %eax
	movl	%eax, head(%rip)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	clear, .-clear
	.globl	next_label
	.bss
	.align 4
	.type	next_label, @object
	.size	next_label, 4
next_label:
	.zero	4
	.globl	label
	.align 32
	.type	label, @object
	.size	label, 400000
label:
	.zero	400000
	.text
	.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	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	$0, %eax
	call	clear
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	enqueue
	movl	next_label(%rip), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	label(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	jmp	.L16
.L20:
	movl	$0, %eax
	call	dequeue
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	adj(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	label(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L18
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movl	next_label(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	label(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	call	enqueue
.L18:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L17:
	cmpq	$0, -8(%rbp)
	jne	.L19
.L16:
	movl	$0, %eax
	call	empty
	testl	%eax, %eax
	je	.L20
	movl	next_label(%rip), %eax
	addl	$1, %eax
	movl	%eax, next_label(%rip)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	bfs, .-bfs
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"yes"
.LC3:
	.string	"no"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	init
	movl	$0, -12(%rbp)
	jmp	.L22
.L23:
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add_edge
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add_edge
	addl	$1, -12(%rbp)
.L22:
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L23
	movl	$400000, %edx
	movl	$-1, %esi
	leaq	label(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L24
.L26:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	label(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L25
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	bfs
.L25:
	addl	$1, -12(%rbp)
.L24:
	movl	-40(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L26
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L27
.L30:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	label(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	label(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L28
	leaq	.LC2(%rip), %rax
	jmp	.L29
.L28:
	leaq	.LC3(%rip), %rax
.L29:
	movq	%rax, %rdi
	call	puts@PLT
.L27:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L30
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
