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>
#define M 1000000
int first[M], next[M], go[M], ans[M], visited[M], q[M];
int i, n, m, x, y, flag = 0, re, t, l = 0, r = 1;
int main(){
	scanf("%d %d",&n,&m);
	for(i = 1; i <= m; i++){
		scanf("%d %d",&x,&y);
		next[i] = first[x];
		first[x] = i;
		go[i] = y;
		next[i + m] = first[y];
		first[y] = i + m;
		go[i + m] = x;
	}
    q[1] = 1;
    visited[1] = 1;
    while(l < r){
    	l++;
    	re = q[l];
    	t = first[re];
    	while(t){
    		if(!visited[go[t]]){
    			visited[go[t]] = 1;
    			r++;
    			q[r] = go[t];
    			ans[go[t]] = re;
			}
    		t = next[t];
		}
	}
    for(i = 2; i <= n; i++)
      if(!visited[i])
        flag = 1;
	if(flag)
		puts("No");
	else{
    	puts("Yes");
        for (i = 2; i <= n; i++)
    	    printf("%d\n",ans[i]);
    }
} ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	first
	.bss
	.align 32
	.type	first, @object
	.size	first, 4000000
first:
	.zero	4000000
	.globl	next
	.align 32
	.type	next, @object
	.size	next, 4000000
next:
	.zero	4000000
	.globl	go
	.align 32
	.type	go, @object
	.size	go, 4000000
go:
	.zero	4000000
	.globl	ans
	.align 32
	.type	ans, @object
	.size	ans, 4000000
ans:
	.zero	4000000
	.globl	visited
	.align 32
	.type	visited, @object
	.size	visited, 4000000
visited:
	.zero	4000000
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 4000000
q:
	.zero	4000000
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.globl	re
	.align 4
	.type	re, @object
	.size	re, 4
re:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	r
	.data
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.long	1
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, i(%rip)
	jmp	.L2
.L3:
	leaq	y(%rip), %rax
	movq	%rax, %rdx
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	x(%rip), %eax
	movl	i(%rip), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	first(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	next(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	x(%rip), %edx
	movl	i(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	first(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %edx
	movl	y(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	go(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	y(%rip), %eax
	movl	i(%rip), %ecx
	movl	m(%rip), %edx
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	first(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	next(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %ecx
	movl	m(%rip), %edx
	movl	y(%rip), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	first(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	i(%rip), %edx
	movl	m(%rip), %eax
	addl	%eax, %edx
	movl	x(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	go(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L2:
	movl	i(%rip), %edx
	movl	m(%rip), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	$1, 4+q(%rip)
	movl	$1, 4+visited(%rip)
	jmp	.L4
.L8:
	movl	l(%rip), %eax
	addl	$1, %eax
	movl	%eax, l(%rip)
	movl	l(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, re(%rip)
	movl	re(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	first(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, t(%rip)
	jmp	.L5
.L7:
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	go(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	visited(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L6
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	go(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	visited(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	r(%rip), %eax
	addl	$1, %eax
	movl	%eax, r(%rip)
	movl	t(%rip), %eax
	movl	r(%rip), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	go(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	q(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	go(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	re(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ans(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L6:
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	next(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, t(%rip)
.L5:
	movl	t(%rip), %eax
	testl	%eax, %eax
	jne	.L7
.L4:
	movl	l(%rip), %edx
	movl	r(%rip), %eax
	cmpl	%eax, %edx
	jl	.L8
	movl	$2, i(%rip)
	jmp	.L9
.L11:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	visited(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$1, flag(%rip)
.L10:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L9:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L11
	movl	flag(%rip), %eax
	testl	%eax, %eax
	je	.L12
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L12:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$2, i(%rip)
	jmp	.L14
.L15:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ans(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L14:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L15
.L13:
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	next(%rip), %r15
	leaq	go(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	y(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	x(%rip), %r12
	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
	leaq	first(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	movl	$1, i(%rip)
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	i(%rip), %rcx
	movslq	x(%rip), %rdx
	movl	(%rbx,%rdx,4), %esi
	movq	%rdx, %rdi
	movl	%ecx, (%rbx,%rdx,4)
	movq	%rcx, %rax
	movslq	y(%rip), %rdx
	movl	%esi, (%r15,%rcx,4)
	movl	%edx, (%r14,%rcx,4)
	movl	m(%rip), %ecx
	movl	(%rbx,%rdx,4), %r9d
	leal	(%rax,%rcx), %r8d
	addl	$1, %eax
	movslq	%r8d, %rsi
	movl	%r8d, (%rbx,%rdx,4)
	movl	%r9d, (%r15,%rsi,4)
	movl	%edi, (%r14,%rsi,4)
	movl	%eax, i(%rip)
	cmpl	%eax, %ecx
	jge	.L2
.L5:
	movl	l(%rip), %eax
	movl	r(%rip), %esi
	movl	$1, 4+q(%rip)
	movl	$1, 4+visited(%rip)
	cmpl	%esi, %eax
	jge	.L6
	addl	$1, %eax
	xorl	%r10d, %r10d
	leaq	first(%rip), %rbx
	movslq	%eax, %rbp
	leaq	q(%rip), %r12
	leaq	next(%rip), %r9
	leaq	go(%rip), %r8
	leaq	visited(%rip), %rdi
	leaq	ans(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	(%r12,%rbp,4), %rax
	movl	%ebp, %r14d
	movq	%rax, %r11
	movslq	(%rbx,%rax,4), %rax
	testl	%eax, %eax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	(%r8,%rax,4), %rdx
	movl	(%rdi,%rdx,4), %r15d
	testl	%r15d, %r15d
	jne	.L8
	addl	$1, %esi
	movslq	(%r9,%rax,4), %rax
	movl	%r11d, 0(%r13,%rdx,4)
	movslq	%esi, %r10
	movl	$1, (%rdi,%rdx,4)
	movl	%edx, (%r12,%r10,4)
	movl	$1, %r10d
	testl	%eax, %eax
	jne	.L10
.L7:
	addq	$1, %rbp
	leal	-1(%rbp), %eax
	cmpl	%eax, %esi
	jg	.L11
.L46:
	movl	$0, t(%rip)
	movl	%r11d, re(%rip)
	movl	%r14d, l(%rip)
	testb	%r10b, %r10b
	je	.L6
	movl	%esi, r(%rip)
.L6:
	movl	$2, i(%rip)
	movl	n(%rip), %edi
	cmpl	$1, %edi
	jle	.L17
	leaq	8+visited(%rip), %rax
	leal	-2(%rdi), %edx
	leaq	4(%rax), %rcx
	leaq	(%rcx,%rdx,4), %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	cmove	%ecx, %edx
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L16
	addl	$1, %edi
	movl	%edi, i(%rip)
	testb	%dl, %dl
	je	.L17
	movl	$1, flag(%rip)
.L13:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L18:
	addq	$8, %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
.L8:
	.cfi_restore_state
	movslq	(%r9,%rax,4), %rax
	testl	%eax, %eax
	jne	.L10
	addq	$1, %rbp
	leal	-1(%rbp), %eax
	cmpl	%eax, %esi
	jg	.L11
	jmp	.L46
.L17:
	cmpl	$0, flag(%rip)
	jne	.L13
	leaq	.LC2(%rip), %rdi
	leaq	ans(%rip), %rbp
	call	puts@PLT
	cmpl	$1, n(%rip)
	movl	$2, %eax
	movl	$2, i(%rip)
	leaq	.LC3(%rip), %rbx
	jle	.L18
	.p2align 4,,10
	.p2align 3
.L19:
	cltq
	movq	%rbx, %rsi
	movl	$1, %edi
	movl	0(%rbp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	n(%rip), %eax
	movl	%eax, i(%rip)
	jle	.L19
	jmp	.L18
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	r
	.data
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.long	1
	.globl	l
	.bss
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	re
	.align 4
	.type	re, @object
	.size	re, 4
re:
	.zero	4
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 4000000
q:
	.zero	4000000
	.globl	visited
	.align 32
	.type	visited, @object
	.size	visited, 4000000
visited:
	.zero	4000000
	.globl	ans
	.align 32
	.type	ans, @object
	.size	ans, 4000000
ans:
	.zero	4000000
	.globl	go
	.align 32
	.type	go, @object
	.size	go, 4000000
go:
	.zero	4000000
	.globl	next
	.align 32
	.type	next, @object
	.size	next, 4000000
next:
	.zero	4000000
	.globl	first
	.align 32
	.type	first, @object
	.size	first, 4000000
first:
	.zero	4000000
	.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	"%d %d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	next(%rip), %r15
	leaq	go(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	y(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	x(%rip), %r12
	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
	leaq	first(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	movl	$1, i(%rip)
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	i(%rip), %rcx
	movslq	x(%rip), %rdx
	movl	(%rbx,%rdx,4), %esi
	movq	%rdx, %rdi
	movl	%ecx, (%rbx,%rdx,4)
	movq	%rcx, %rax
	movslq	y(%rip), %rdx
	movl	%esi, (%r15,%rcx,4)
	movl	%edx, (%r14,%rcx,4)
	movl	m(%rip), %ecx
	movl	(%rbx,%rdx,4), %r9d
	leal	(%rax,%rcx), %r8d
	addl	$1, %eax
	movslq	%r8d, %rsi
	movl	%r8d, (%rbx,%rdx,4)
	movl	%r9d, (%r15,%rsi,4)
	movl	%edi, (%r14,%rsi,4)
	movl	%eax, i(%rip)
	cmpl	%eax, %ecx
	jge	.L2
.L5:
	movl	l(%rip), %eax
	movl	r(%rip), %esi
	movl	$1, 4+q(%rip)
	movl	$1, 4+visited(%rip)
	cmpl	%esi, %eax
	jge	.L6
	addl	$1, %eax
	xorl	%r10d, %r10d
	leaq	first(%rip), %rbx
	movslq	%eax, %rbp
	leaq	q(%rip), %r12
	leaq	next(%rip), %r9
	leaq	go(%rip), %r8
	leaq	visited(%rip), %rdi
	leaq	ans(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	(%r12,%rbp,4), %rax
	movl	%ebp, %r14d
	movq	%rax, %r11
	movslq	(%rbx,%rax,4), %rax
	testl	%eax, %eax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	(%r8,%rax,4), %rdx
	movl	(%rdi,%rdx,4), %r15d
	testl	%r15d, %r15d
	jne	.L8
	addl	$1, %esi
	movslq	(%r9,%rax,4), %rax
	movl	%r11d, 0(%r13,%rdx,4)
	movslq	%esi, %r10
	movl	$1, (%rdi,%rdx,4)
	movl	%edx, (%r12,%r10,4)
	movl	$1, %r10d
	testl	%eax, %eax
	jne	.L10
.L7:
	addq	$1, %rbp
	leal	-1(%rbp), %eax
	cmpl	%eax, %esi
	jg	.L11
.L46:
	movl	$0, t(%rip)
	movl	%r11d, re(%rip)
	movl	%r14d, l(%rip)
	testb	%r10b, %r10b
	je	.L6
	movl	%esi, r(%rip)
.L6:
	movl	$2, i(%rip)
	movl	n(%rip), %edi
	cmpl	$1, %edi
	jle	.L17
	leaq	8+visited(%rip), %rax
	leal	-2(%rdi), %edx
	leaq	4(%rax), %rcx
	leaq	(%rcx,%rdx,4), %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	cmove	%ecx, %edx
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L16
	addl	$1, %edi
	movl	%edi, i(%rip)
	testb	%dl, %dl
	je	.L17
	movl	$1, flag(%rip)
.L13:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L18:
	addq	$8, %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
.L8:
	.cfi_restore_state
	movslq	(%r9,%rax,4), %rax
	testl	%eax, %eax
	jne	.L10
	addq	$1, %rbp
	leal	-1(%rbp), %eax
	cmpl	%eax, %esi
	jg	.L11
	jmp	.L46
.L17:
	cmpl	$0, flag(%rip)
	jne	.L13
	leaq	.LC2(%rip), %rdi
	leaq	ans(%rip), %rbp
	call	puts@PLT
	cmpl	$1, n(%rip)
	movl	$2, %eax
	movl	$2, i(%rip)
	leaq	.LC3(%rip), %rbx
	jle	.L18
	.p2align 4,,10
	.p2align 3
.L19:
	cltq
	movq	%rbx, %rsi
	movl	$1, %edi
	movl	0(%rbp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	n(%rip), %eax
	movl	%eax, i(%rip)
	jle	.L19
	jmp	.L18
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	r
	.data
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.long	1
	.globl	l
	.bss
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	re
	.align 4
	.type	re, @object
	.size	re, 4
re:
	.zero	4
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 4000000
q:
	.zero	4000000
	.globl	visited
	.align 32
	.type	visited, @object
	.size	visited, 4000000
visited:
	.zero	4000000
	.globl	ans
	.align 32
	.type	ans, @object
	.size	ans, 4000000
ans:
	.zero	4000000
	.globl	go
	.align 32
	.type	go, @object
	.size	go, 4000000
go:
	.zero	4000000
	.globl	next
	.align 32
	.type	next, @object
	.size	next, 4000000
next:
	.zero	4000000
	.globl	first
	.align 32
	.type	first, @object
	.size	first, 4000000
first:
	.zero	4000000
	.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>
#define M 1000000
int first[M], next[M], go[M], ans[M], visited[M], q[M];
int i, n, m, x, y, flag = 0, re, t, l = 0, r = 1;
int main(){
	scanf("%d %d",&n,&m);
	for(i = 1; i <= m; i++){
		scanf("%d %d",&x,&y);
		next[i] = first[x];
		first[x] = i;
		go[i] = y;
		next[i + m] = first[y];
		first[y] = i + m;
		go[i + m] = x;
	}
    q[1] = 1;
    visited[1] = 1;
    while(l < r){
    	l++;
    	re = q[l];
    	t = first[re];
    	while(t){
    		if(!visited[go[t]]){
    			visited[go[t]] = 1;
    			r++;
    			q[r] = go[t];
    			ans[go[t]] = re;
			}
    		t = next[t];
		}
	}
    for(i = 2; i <= n; i++)
      if(!visited[i])
        flag = 1;
	if(flag)
		puts("No");
	else{
    	puts("Yes");
        for (i = 2; i <= n; i++)
    	    printf("%d\n",ans[i]);
    }
} 
4 4
1 4
2 3
3 4
4 2
 6 9
3 4
6 1
2 4
5 3
4 6
1 5
6 2
4 5
5 3
 4 4
1 4
2 3
4 4
4 2
 6 9
3 4
6 1
2 4
5 3
4 6
1 5
6 4
4 5
5 3
 6 9
3 4
6 1
2 1
5 3
4 6
1 5
6 4
4 5
5 3
 6 5
3 4
6 1
2 1
5 3
4 6
1 5
6 4
4 5
3 3
 6 9
3 4
6 1
2 4
5 1
4 6
1 5
6 2
4 5
5 6
 6 9
3 4
6 1
2 1
5 1
4 6
1 5
6 4
4 5
4 3
 6 9
3 4
6 1
2 4
5 3
4 6
1 2
6 2
4 6
5 6
 6 9
3 4
6 1
2 4
5 3
4 6
2 2
6 2
4 6
5 6

Yes
4
4
1
 Yes
6
5
5
1
1
 Yes
4
2
1
 Yes
4
5
5
1
1
 Yes
1
5
5
1
1
 Yes
1
4
6
3
1
 Yes
6
4
5
1
1
 Yes
1
4
5
1
1
 Yes
1
4
2
6
1
 Yes
6
5
6
6
1

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>
#define M 1000000
int first[M], next[M], go[M], ans[M], visited[M], q[M];
int i, n, m, x, y, flag = 0, re, t, l = 0, r = 1;
int main(){
	scanf("%d %d",&n,&m);
	for(i = 1; i <= m; i++){
		scanf("%d %d",&x,&y);
		next[i] = first[x];
		first[x] = i;
		go[i] = y;
		next[i + m] = first[y];
		first[y] = i + m;
		go[i + m] = x;
	}
    q[1] = 1;
    visited[1] = 1;
    while(l < r){
    	l++;
    	re = q[l];
    	t = first[re];
    	while(t){
    		if(!visited[go[t]]){
    			visited[go[t]] = 1;
    			r++;
    			q[r] = go[t];
    			ans[go[t]] = re;
			}
    		t = next[t];
		}
	}
    for(i = 2; i <= n; i++)
      if(!visited[i])
        flag = 1;
	if(flag)
		puts("No");
	else{
    	puts("Yes");
        for (i = 2; i <= n; i++)
    	    printf("%d\n",ans[i]);
    }
} ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	first
	.bss
	.align 32
	.type	first, @object
	.size	first, 4000000
first:
	.zero	4000000
	.globl	next
	.align 32
	.type	next, @object
	.size	next, 4000000
next:
	.zero	4000000
	.globl	go
	.align 32
	.type	go, @object
	.size	go, 4000000
go:
	.zero	4000000
	.globl	ans
	.align 32
	.type	ans, @object
	.size	ans, 4000000
ans:
	.zero	4000000
	.globl	visited
	.align 32
	.type	visited, @object
	.size	visited, 4000000
visited:
	.zero	4000000
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 4000000
q:
	.zero	4000000
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.globl	re
	.align 4
	.type	re, @object
	.size	re, 4
re:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	r
	.data
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.long	1
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, i(%rip)
	jmp	.L2
.L3:
	leaq	y(%rip), %rax
	movq	%rax, %rdx
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	x(%rip), %eax
	movl	i(%rip), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	first(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	next(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	x(%rip), %edx
	movl	i(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	first(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %edx
	movl	y(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	go(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	y(%rip), %eax
	movl	i(%rip), %ecx
	movl	m(%rip), %edx
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	first(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	next(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %ecx
	movl	m(%rip), %edx
	movl	y(%rip), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	first(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	i(%rip), %edx
	movl	m(%rip), %eax
	addl	%eax, %edx
	movl	x(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	go(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L2:
	movl	i(%rip), %edx
	movl	m(%rip), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	$1, 4+q(%rip)
	movl	$1, 4+visited(%rip)
	jmp	.L4
.L8:
	movl	l(%rip), %eax
	addl	$1, %eax
	movl	%eax, l(%rip)
	movl	l(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, re(%rip)
	movl	re(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	first(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, t(%rip)
	jmp	.L5
.L7:
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	go(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	visited(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L6
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	go(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	visited(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	r(%rip), %eax
	addl	$1, %eax
	movl	%eax, r(%rip)
	movl	t(%rip), %eax
	movl	r(%rip), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	go(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	q(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	go(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	re(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ans(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L6:
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	next(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, t(%rip)
.L5:
	movl	t(%rip), %eax
	testl	%eax, %eax
	jne	.L7
.L4:
	movl	l(%rip), %edx
	movl	r(%rip), %eax
	cmpl	%eax, %edx
	jl	.L8
	movl	$2, i(%rip)
	jmp	.L9
.L11:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	visited(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$1, flag(%rip)
.L10:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L9:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L11
	movl	flag(%rip), %eax
	testl	%eax, %eax
	je	.L12
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L12:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$2, i(%rip)
	jmp	.L14
.L15:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ans(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L14:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L15
.L13:
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	first
	.bss
	.align 32
	.type	first, @object
	.size	first, 4000000
first:
	.zero	4000000
	.globl	next
	.align 32
	.type	next, @object
	.size	next, 4000000
next:
	.zero	4000000
	.globl	go
	.align 32
	.type	go, @object
	.size	go, 4000000
go:
	.zero	4000000
	.globl	ans
	.align 32
	.type	ans, @object
	.size	ans, 4000000
ans:
	.zero	4000000
	.globl	visited
	.align 32
	.type	visited, @object
	.size	visited, 4000000
visited:
	.zero	4000000
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 4000000
q:
	.zero	4000000
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.globl	re
	.align 4
	.type	re, @object
	.size	re, 4
re:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	r
	.data
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.long	1
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, i(%rip)
	jmp	.L2
.L3:
	leaq	y(%rip), %rax
	movq	%rax, %rdx
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	x(%rip), %eax
	movl	i(%rip), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	first(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	next(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	x(%rip), %edx
	movl	i(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	first(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %edx
	movl	y(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	go(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	y(%rip), %eax
	movl	i(%rip), %ecx
	movl	m(%rip), %edx
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	first(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	next(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %ecx
	movl	m(%rip), %edx
	movl	y(%rip), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	first(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	i(%rip), %edx
	movl	m(%rip), %eax
	addl	%eax, %edx
	movl	x(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	go(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L2:
	movl	i(%rip), %edx
	movl	m(%rip), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	$1, 4+q(%rip)
	movl	$1, 4+visited(%rip)
	jmp	.L4
.L8:
	movl	l(%rip), %eax
	addl	$1, %eax
	movl	%eax, l(%rip)
	movl	l(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, re(%rip)
	movl	re(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	first(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, t(%rip)
	jmp	.L5
.L7:
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	go(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	visited(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L6
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	go(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	visited(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	r(%rip), %eax
	addl	$1, %eax
	movl	%eax, r(%rip)
	movl	t(%rip), %eax
	movl	r(%rip), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	go(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	q(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	go(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	re(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ans(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L6:
	movl	t(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	next(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, t(%rip)
.L5:
	movl	t(%rip), %eax
	testl	%eax, %eax
	jne	.L7
.L4:
	movl	l(%rip), %edx
	movl	r(%rip), %eax
	cmpl	%eax, %edx
	jl	.L8
	movl	$2, i(%rip)
	jmp	.L9
.L11:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	visited(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$1, flag(%rip)
.L10:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L9:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L11
	movl	flag(%rip), %eax
	testl	%eax, %eax
	je	.L12
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L12:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$2, i(%rip)
	jmp	.L14
.L15:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ans(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L14:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L15
.L13:
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
