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>
#define size 100001
int*pass[size];
int deep[size];
int pass_s[size];
int qu[size];
int N,M;
void set()
{
    int a,b;
    for(int j=0;j<N;j++){
       deep[j]=-1;
       pass_s[j]=0; 
    }
    deep[0]=0;
    for(int i=0;i<M;i++){
        scanf("%d %d",&a,&b);
        a--;b--;
        pass[a]=(int*)realloc(pass[a],sizeof(int)*(pass_s[a]+1));
        pass[a][pass_s[a]]=b;
        pass_s[a]++;
         pass[b]=(int*)realloc(pass[b],sizeof(int)*(pass_s[b]+1));
        pass[b][pass_s[b]]=a;
        pass_s[b]++;
    }
}
void sys()
{
    int point=0,tar=0,nm=0;
    while(1){
        for(int i=0;i<pass_s[tar];i++){
             if(deep[pass[tar][i]]!=-1)continue;
             deep[pass[tar][i]]=tar+1;//指向房间号的deep为当前房间号+1即为题设房间号//deep[pass[tar][i]]=deep[tar]+1;这是计算深度用的
            qu[nm]=pass[tar][i];
            nm++;
        }
        if(nm==point) break;
        tar=qu[point];
        point++;
    }

}
int main(){
    scanf("%d %d",&N,&M);
    set();
    sys();
    printf("Yes\n");
    for(int i=1;i<N;i++){
     printf("%d\n",deep[i]);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pass
	.bss
	.align 32
	.type	pass, @object
	.size	pass, 800008
pass:
	.zero	800008
	.globl	deep
	.align 32
	.type	deep, @object
	.size	deep, 400004
deep:
	.zero	400004
	.globl	pass_s
	.align 32
	.type	pass_s, @object
	.size	pass_s, 400004
pass_s:
	.zero	400004
	.globl	qu
	.align 32
	.type	qu, @object
	.size	qu, 400004
qu:
	.zero	400004
	.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
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	set
	.type	set, @function
set:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -32(%rbp)
	jmp	.L2
.L3:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L3
	movl	$0, deep(%rip)
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	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	-40(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	pass(%rip), %rax
	movq	(%rcx,%rax), %rax
	movl	-40(%rbp), %ebx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	realloc@PLT
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	pass(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$2, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pass_s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	pass(%rip), %rax
	movq	(%rcx,%rax), %rax
	movl	-36(%rbp), %ebx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	realloc@PLT
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	pass(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$2, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-40(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pass_s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -28(%rbp)
.L4:
	movl	M(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	nop
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	set, .-set
	.globl	sys
	.type	sys, @function
sys:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movl	$0, -8(%rbp)
.L14:
	movl	$0, -4(%rbp)
	jmp	.L8
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L16
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-12(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	qu(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
	jmp	.L10
.L16:
	nop
.L10:
	addl	$1, -4(%rbp)
.L8:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L11
	movl	-8(%rbp), %eax
	cmpl	-16(%rbp), %eax
	je	.L17
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	qu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	addl	$1, -16(%rbp)
	jmp	.L14
.L17:
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sys, .-sys
	.section	.rodata
.LC1:
	.string	"Yes"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	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	$0, %eax
	call	set
	movl	$0, %eax
	call	sys
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, -4(%rbp)
	jmp	.L19
.L20:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L19:
	movl	N(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L20
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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"
	.text
	.p2align 4
	.globl	set
	.type	set, @function
set:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movslq	N(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	.L2
	leaq	0(,%rdx,4), %r12
	movl	$255, %esi
	leaq	deep(%rip), %rdi
	movq	%r12, %rdx
	leaq	pass_s(%rip), %rbp
	call	memset@PLT
	movq	%r12, %rdx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
.L2:
	movl	$0, deep(%rip)
	movl	M(%rip), %eax
	testl	%eax, %eax
	jle	.L1
	xorl	%r12d, %r12d
	leaq	pass_s(%rip), %rbp
	leaq	4(%rsp), %r14
	movq	%rsp, %r13
	leaq	pass(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r14, %rdx
	movq	%r13, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	subl	$1, 4(%rsp)
	addl	$1, %r12d
	leal	-1(%rax), %ebx
	movl	%ebx, (%rsp)
	movslq	%ebx, %rbx
	movl	0(%rbp,%rbx,4), %eax
	movq	(%r15,%rbx,8), %rdi
	leal	1(%rax), %esi
	movslq	%esi, %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movl	4(%rsp), %esi
	movq	%rax, (%r15,%rbx,8)
	movslq	(%rsp), %rax
	movslq	0(%rbp,%rax,4), %rdx
	movq	(%r15,%rax,8), %rax
	movl	%esi, (%rax,%rdx,4)
	movslq	4(%rsp), %rbx
	movslq	(%rsp), %rax
	movq	(%r15,%rbx,8), %rdi
	addl	$1, 0(%rbp,%rax,4)
	movl	0(%rbp,%rbx,4), %eax
	leal	1(%rax), %esi
	movslq	%esi, %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movl	(%rsp), %esi
	movq	%rax, (%r15,%rbx,8)
	movslq	4(%rsp), %rax
	movslq	0(%rbp,%rax,4), %rdx
	movq	(%r15,%rax,8), %rax
	movl	%esi, (%rax,%rdx,4)
	movslq	4(%rsp), %rax
	addl	$1, 0(%rbp,%rax,4)
	cmpl	%r12d, M(%rip)
	jg	.L4
.L1:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	set, .-set
	.p2align 4
	.globl	sys
	.type	sys, @function
sys:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%r11d, %r11d
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	pass(%rip), %rbp
	leaq	pass_s(%rip), %rbx
	leaq	deep(%rip), %rdi
	leaq	qu(%rip), %r10
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	%r9d, %rdx
	movl	(%rbx,%rdx,4), %eax
	testl	%eax, %eax
	jle	.L11
	movq	0(%rbp,%rdx,8), %rdx
	leal	-1(%rax), %ecx
	addl	$1, %r9d
	leaq	4(%rdx), %rax
	leaq	(%rax,%rcx,4), %r8
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L18:
	addq	$4, %rax
.L13:
	movslq	(%rdx), %rcx
	cmpl	$-1, (%rdi,%rcx,4)
	jne	.L12
	movl	%r9d, (%rdi,%rcx,4)
	movl	(%rdx), %ecx
	movslq	%esi, %rdx
	addl	$1, %esi
	movl	%ecx, (%r10,%rdx,4)
.L12:
	movq	%rax, %rdx
	cmpq	%r8, %rax
	jne	.L18
.L11:
	cmpl	%r11d, %esi
	je	.L10
	movl	(%r10,%r11,4), %r9d
	addq	$1, %r11
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	sys, .-sys
	.section	.rodata.str1.1
.LC1:
	.string	"Yes"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	M(%rip), %rdx
	leaq	N(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	call	set
	xorl	%eax, %eax
	call	sys
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	cmpl	$1, N(%rip)
	jle	.L20
	movl	$1, %ebx
	leaq	deep(%rip), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L21:
	movl	(%r12,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, N(%rip)
	jg	.L21
.L20:
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	M
	.bss
	.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	qu
	.align 32
	.type	qu, @object
	.size	qu, 400004
qu:
	.zero	400004
	.globl	pass_s
	.align 32
	.type	pass_s, @object
	.size	pass_s, 400004
pass_s:
	.zero	400004
	.globl	deep
	.align 32
	.type	deep, @object
	.size	deep, 400004
deep:
	.zero	400004
	.globl	pass
	.align 32
	.type	pass, @object
	.size	pass, 800008
pass:
	.zero	800008
	.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"
	.text
	.p2align 4
	.globl	set
	.type	set, @function
set:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movslq	N(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	.L2
	leaq	0(,%rdx,4), %r12
	movl	$255, %esi
	leaq	deep(%rip), %rdi
	movq	%r12, %rdx
	leaq	pass_s(%rip), %rbp
	call	memset@PLT
	movq	%r12, %rdx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
.L2:
	movl	$0, deep(%rip)
	movl	M(%rip), %eax
	testl	%eax, %eax
	jle	.L1
	xorl	%r12d, %r12d
	leaq	pass_s(%rip), %rbp
	leaq	4(%rsp), %r14
	movq	%rsp, %r13
	leaq	pass(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r14, %rdx
	movq	%r13, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	subl	$1, 4(%rsp)
	addl	$1, %r12d
	leal	-1(%rax), %ebx
	movl	%ebx, (%rsp)
	movslq	%ebx, %rbx
	movl	0(%rbp,%rbx,4), %eax
	movq	(%r15,%rbx,8), %rdi
	leal	1(%rax), %esi
	movslq	%esi, %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movl	4(%rsp), %esi
	movq	%rax, (%r15,%rbx,8)
	movslq	(%rsp), %rax
	movslq	0(%rbp,%rax,4), %rdx
	movq	(%r15,%rax,8), %rax
	movl	%esi, (%rax,%rdx,4)
	movslq	4(%rsp), %rbx
	movslq	(%rsp), %rax
	movq	(%r15,%rbx,8), %rdi
	addl	$1, 0(%rbp,%rax,4)
	movl	0(%rbp,%rbx,4), %eax
	leal	1(%rax), %esi
	movslq	%esi, %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movl	(%rsp), %esi
	movq	%rax, (%r15,%rbx,8)
	movslq	4(%rsp), %rax
	movslq	0(%rbp,%rax,4), %rdx
	movq	(%r15,%rax,8), %rax
	movl	%esi, (%rax,%rdx,4)
	movslq	4(%rsp), %rax
	addl	$1, 0(%rbp,%rax,4)
	cmpl	%r12d, M(%rip)
	jg	.L4
.L1:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	set, .-set
	.p2align 4
	.globl	sys
	.type	sys, @function
sys:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%r11d, %r11d
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	pass(%rip), %rbp
	leaq	pass_s(%rip), %rbx
	leaq	deep(%rip), %rdi
	leaq	qu(%rip), %r10
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	%r9d, %rdx
	movl	(%rbx,%rdx,4), %eax
	testl	%eax, %eax
	jle	.L11
	movq	0(%rbp,%rdx,8), %rdx
	leal	-1(%rax), %ecx
	addl	$1, %r9d
	leaq	4(%rdx), %rax
	leaq	(%rax,%rcx,4), %r8
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L18:
	addq	$4, %rax
.L13:
	movslq	(%rdx), %rcx
	cmpl	$-1, (%rdi,%rcx,4)
	jne	.L12
	movl	%r9d, (%rdi,%rcx,4)
	movl	(%rdx), %ecx
	movslq	%esi, %rdx
	addl	$1, %esi
	movl	%ecx, (%r10,%rdx,4)
.L12:
	movq	%rax, %rdx
	cmpq	%r8, %rax
	jne	.L18
.L11:
	cmpl	%r11d, %esi
	je	.L10
	movl	(%r10,%r11,4), %r9d
	addq	$1, %r11
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	sys, .-sys
	.section	.rodata.str1.1
.LC1:
	.string	"Yes"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	M(%rip), %rdx
	leaq	N(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	call	set
	xorl	%eax, %eax
	call	sys
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	cmpl	$1, N(%rip)
	jle	.L20
	movl	$1, %ebx
	leaq	deep(%rip), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L21:
	movl	(%r12,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, N(%rip)
	jg	.L21
.L20:
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	M
	.bss
	.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	qu
	.align 32
	.type	qu, @object
	.size	qu, 400004
qu:
	.zero	400004
	.globl	pass_s
	.align 32
	.type	pass_s, @object
	.size	pass_s, 400004
pass_s:
	.zero	400004
	.globl	deep
	.align 32
	.type	deep, @object
	.size	deep, 400004
deep:
	.zero	400004
	.globl	pass
	.align 32
	.type	pass, @object
	.size	pass, 800008
pass:
	.zero	800008
	.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>
#define size 100001
int*pass[size];
int deep[size];
int pass_s[size];
int qu[size];
int N,M;
void set()
{
    int a,b;
    for(int j=0;j<N;j++){
       deep[j]=-1;
       pass_s[j]=0; 
    }
    deep[0]=0;
    for(int i=0;i<M;i++){
        scanf("%d %d",&a,&b);
        a--;b--;
        pass[a]=(int*)realloc(pass[a],sizeof(int)*(pass_s[a]+1));
        pass[a][pass_s[a]]=b;
        pass_s[a]++;
         pass[b]=(int*)realloc(pass[b],sizeof(int)*(pass_s[b]+1));
        pass[b][pass_s[b]]=a;
        pass_s[b]++;
    }
}
void sys()
{
    int point=0,tar=0,nm=0;
    while(1){
        for(int i=0;i<pass_s[tar];i++){
             if(deep[pass[tar][i]]!=-1)continue;
             deep[pass[tar][i]]=tar+1;//指向房间号的deep为当前房间号+1即为题设房间号//deep[pass[tar][i]]=deep[tar]+1;这是计算深度用的
            qu[nm]=pass[tar][i];
            nm++;
        }
        if(nm==point) break;
        tar=qu[point];
        point++;
    }

}
int main(){
    scanf("%d %d",&N,&M);
    set();
    sys();
    printf("Yes\n");
    for(int i=1;i<N;i++){
     printf("%d\n",deep[i]);
    }
    return 0;
}
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
6
1
1
 Yes
4
2
1
 Yes
4
5
6
1
1
 Yes
1
5
6
1
1
 Yes
1
4
6
3
1
 Yes
6
4
6
1
1
 Yes
1
4
6
1
1
 Yes
1
4
6
6
1
 Yes
6
4
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>
#include<stdlib.h>
#define size 100001
int*pass[size];
int deep[size];
int pass_s[size];
int qu[size];
int N,M;
void set()
{
    int a,b;
    for(int j=0;j<N;j++){
       deep[j]=-1;
       pass_s[j]=0; 
    }
    deep[0]=0;
    for(int i=0;i<M;i++){
        scanf("%d %d",&a,&b);
        a--;b--;
        pass[a]=(int*)realloc(pass[a],sizeof(int)*(pass_s[a]+1));
        pass[a][pass_s[a]]=b;
        pass_s[a]++;
         pass[b]=(int*)realloc(pass[b],sizeof(int)*(pass_s[b]+1));
        pass[b][pass_s[b]]=a;
        pass_s[b]++;
    }
}
void sys()
{
    int point=0,tar=0,nm=0;
    while(1){
        for(int i=0;i<pass_s[tar];i++){
             if(deep[pass[tar][i]]!=-1)continue;
             deep[pass[tar][i]]=tar+1;//指向房间号的deep为当前房间号+1即为题设房间号//deep[pass[tar][i]]=deep[tar]+1;这是计算深度用的
            qu[nm]=pass[tar][i];
            nm++;
        }
        if(nm==point) break;
        tar=qu[point];
        point++;
    }

}
int main(){
    scanf("%d %d",&N,&M);
    set();
    sys();
    printf("Yes\n");
    for(int i=1;i<N;i++){
     printf("%d\n",deep[i]);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pass
	.bss
	.align 32
	.type	pass, @object
	.size	pass, 800008
pass:
	.zero	800008
	.globl	deep
	.align 32
	.type	deep, @object
	.size	deep, 400004
deep:
	.zero	400004
	.globl	pass_s
	.align 32
	.type	pass_s, @object
	.size	pass_s, 400004
pass_s:
	.zero	400004
	.globl	qu
	.align 32
	.type	qu, @object
	.size	qu, 400004
qu:
	.zero	400004
	.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
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	set
	.type	set, @function
set:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -32(%rbp)
	jmp	.L2
.L3:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L3
	movl	$0, deep(%rip)
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	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	-40(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	pass(%rip), %rax
	movq	(%rcx,%rax), %rax
	movl	-40(%rbp), %ebx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	realloc@PLT
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	pass(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$2, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pass_s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	pass(%rip), %rax
	movq	(%rcx,%rax), %rax
	movl	-36(%rbp), %ebx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	realloc@PLT
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	pass(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$2, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-40(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pass_s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -28(%rbp)
.L4:
	movl	M(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	nop
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	set, .-set
	.globl	sys
	.type	sys, @function
sys:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movl	$0, -8(%rbp)
.L14:
	movl	$0, -4(%rbp)
	jmp	.L8
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L16
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-12(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	qu(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
	jmp	.L10
.L16:
	nop
.L10:
	addl	$1, -4(%rbp)
.L8:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L11
	movl	-8(%rbp), %eax
	cmpl	-16(%rbp), %eax
	je	.L17
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	qu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	addl	$1, -16(%rbp)
	jmp	.L14
.L17:
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sys, .-sys
	.section	.rodata
.LC1:
	.string	"Yes"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	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	$0, %eax
	call	set
	movl	$0, %eax
	call	sys
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, -4(%rbp)
	jmp	.L19
.L20:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L19:
	movl	N(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L20
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	pass
	.bss
	.align 32
	.type	pass, @object
	.size	pass, 800008
pass:
	.zero	800008
	.globl	deep
	.align 32
	.type	deep, @object
	.size	deep, 400004
deep:
	.zero	400004
	.globl	pass_s
	.align 32
	.type	pass_s, @object
	.size	pass_s, 400004
pass_s:
	.zero	400004
	.globl	qu
	.align 32
	.type	qu, @object
	.size	qu, 400004
qu:
	.zero	400004
	.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
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	set
	.type	set, @function
set:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -32(%rbp)
	jmp	.L2
.L3:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L3
	movl	$0, deep(%rip)
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	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	-40(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	pass(%rip), %rax
	movq	(%rcx,%rax), %rax
	movl	-40(%rbp), %ebx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	realloc@PLT
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	pass(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$2, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pass_s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	pass(%rip), %rax
	movq	(%rcx,%rax), %rax
	movl	-36(%rbp), %ebx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	realloc@PLT
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	pass(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$2, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-40(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pass_s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -28(%rbp)
.L4:
	movl	M(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	nop
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	set, .-set
	.globl	sys
	.type	sys, @function
sys:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movl	$0, -8(%rbp)
.L14:
	movl	$0, -4(%rbp)
	jmp	.L8
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L16
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-12(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	pass(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	qu(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -8(%rbp)
	jmp	.L10
.L16:
	nop
.L10:
	addl	$1, -4(%rbp)
.L8:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pass_s(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L11
	movl	-8(%rbp), %eax
	cmpl	-16(%rbp), %eax
	je	.L17
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	qu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	addl	$1, -16(%rbp)
	jmp	.L14
.L17:
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sys, .-sys
	.section	.rodata
.LC1:
	.string	"Yes"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	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	$0, %eax
	call	set
	movl	$0, %eax
	call	sys
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, -4(%rbp)
	jmp	.L19
.L20:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	deep(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L19:
	movl	N(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L20
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
