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

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

struct graph{
	int point;
	int num;
	int *node;
};

int main(void){
	int n,m;
	scanf("%d %d",&n,&m);
	
	struct graph *pointer[n];
	
	//構造体の作成
	for(int i=0;i<n;i++){
		pointer[i]=(struct graph*)malloc(sizeof(struct graph));
		pointer[i]->point=i+1;
		pointer[i]->node=(int*)malloc(m*sizeof(int));
		pointer[i]->num=0;
	}
	
	//入力
	int temp1,temp2;
	for(int i=0;i<m;i++){
		scanf("%d",&temp1);
		scanf("%d",&temp2);
		pointer[temp1-1]->node[pointer[temp1-1]->num]=temp2-1;
		pointer[temp1-1]->num+=1;
		pointer[temp2-1]->node[pointer[temp2-1]->num]=temp1-1;
		pointer[temp2-1]->num+=1;
	}
	
	int *list,*que;
	int head=0,tail=0;
	
	que=(int*)malloc(n*sizeof(int));	
	list=(int*)malloc(n*sizeof(int));
	
	for(int i=0;i<n;i++){
		list[i]=-1;
	}
	
	que[0]=0;
	list[0]=0;
	tail=1;
	
	do{
		for(int i=0;i<pointer[que[head%n]]->num;i++){
			if(list[pointer[que[head%n]]->node[i]]==-1){
				list[pointer[que[head%n]]->node[i]]=que[head%n];
				que[tail%n]=pointer[que[head%n]]->node[i];
				tail+=1;
			}
		}
		/*for(int i=head;i<tail;i++){
			printf("%d ",que[i]);
		}
		printf("\n");*/

		head+=1;
	}while(head!=tail);
	
	printf("Yes\n");
	for(int i=1;i<n;i++){
		printf("%d\n",list[i]+1);
	}
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %r12
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L5
.L6:
	movl	$16, %edi
	call	malloc@PLT
	movq	%rax, %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	-100(%rbp), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	movl	-112(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	-64(%rbp), %rdx
	movl	-100(%rbp), %ecx
	movslq	%ecx, %rcx
	movq	(%rdx,%rcx,8), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, 8(%rbx)
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	$0, 4(%rax)
	addl	$1, -100(%rbp)
.L5:
	movl	-116(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L6
	movl	$0, -96(%rbp)
	jmp	.L7
.L8:
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-104(%rbp), %ecx
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rsi
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	leal	-1(%rcx), %edx
	movl	%edx, (%rax)
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %ecx
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leal	1(%rcx), %edx
	movl	%edx, 4(%rax)
	movl	-108(%rbp), %ecx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rsi
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	leal	-1(%rcx), %edx
	movl	%edx, (%rax)
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %ecx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leal	1(%rcx), %edx
	movl	%edx, 4(%rax)
	addl	$1, -96(%rbp)
.L7:
	movl	-112(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L8
	movl	$0, -92(%rbp)
	movl	$0, -88(%rbp)
	movl	-116(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -56(%rbp)
	movl	-116(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L9
.L10:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	$-1, (%rax)
	addl	$1, -84(%rbp)
.L9:
	movl	-116(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L10
	movq	-56(%rbp), %rax
	movl	$0, (%rax)
	movq	-48(%rbp), %rax
	movl	$0, (%rax)
	movl	$1, -88(%rbp)
.L14:
	movl	$0, -80(%rbp)
	jmp	.L11
.L13:
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rdx
	movl	-80(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	jne	.L12
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-116(%rbp), %esi
	movl	-92(%rbp), %eax
	cltd
	idivl	%esi
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rdx
	movl	-80(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	movl	(%rcx), %eax
	movl	%eax, (%rdx)
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rdx
	movl	-80(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	(%rdx,%rax), %rcx
	movl	-116(%rbp), %esi
	movl	-88(%rbp), %eax
	cltd
	idivl	%esi
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	(%rcx), %eax
	movl	%eax, (%rdx)
	addl	$1, -88(%rbp)
.L12:
	addl	$1, -80(%rbp)
.L11:
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L13
	addl	$1, -92(%rbp)
	movl	-92(%rbp), %eax
	cmpl	-88(%rbp), %eax
	jne	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, -76(%rbp)
	jmp	.L15
.L16:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -76(%rbp)
.L15:
	movl	-116(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L16
	movl	$0, %eax
	movq	%r12, %rsp
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-68(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-72(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rdx
	leaq	15(,%rax,8), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L36
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L37
.L4:
	movq	%rsp, %r13
	testl	%edx, %edx
	jle	.L5
	movslq	-68(%rbp), %r12
	leal	1(%rdx), %r14d
	movl	$1, %r15d
	movl	%r12d, -84(%rbp)
	salq	$2, %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$16, %edi
	call	malloc@PLT
	movq	%r12, %rdi
	movq	%rax, -8(%r13,%r15,8)
	movq	%rax, %rbx
	movl	%r15d, (%rax)
	addq	$1, %r15
	call	malloc@PLT
	movl	$0, 4(%rbx)
	movq	%rax, 8(%rbx)
	cmpq	%r15, %r14
	jne	.L6
.L7:
	movl	-84(%rbp), %eax
	testl	%eax, %eax
	jle	.L11
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %r14
	leaq	.LC1(%rip), %rbx
	leaq	-60(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rax
	movq	0(%r13,%rax,8), %rsi
	movl	-60(%rbp), %eax
	movslq	4(%rsi), %r8
	movq	8(%rsi), %rdi
	subl	$1, %eax
	movq	%r8, %rcx
	movl	%eax, (%rdi,%r8,4)
	cltq
	addl	$1, %ecx
	movl	%ecx, 4(%rsi)
	movq	0(%r13,%rax,8), %rcx
	movslq	4(%rcx), %rdi
	movq	8(%rcx), %rsi
	movq	%rdi, %rax
	movl	%edx, (%rsi,%rdi,4)
	addl	$1, %eax
	movl	%eax, 4(%rcx)
	cmpl	%r15d, -68(%rbp)
	jg	.L8
.L11:
	movslq	-72(%rbp), %r15
	movq	%r15, %rbx
	salq	$2, %r15
	movq	%r15, %rdi
	call	malloc@PLT
	movq	%r15, %rdi
	movq	%rax, %r14
	call	malloc@PLT
	movq	%rax, %r12
	testl	%ebx, %ebx
	jle	.L10
	movq	%r15, %rdx
	movl	$255, %esi
	movq	%rax, %rdi
	call	memset@PLT
.L10:
	movl	$0, (%r14)
	xorl	%r8d, %r8d
	movl	$1, %edi
	xorl	%r9d, %r9d
	movl	$0, (%r12)
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%r9d, %eax
	cltd
	idivl	%ebx
	movslq	%r8d, %rax
	movq	0(%r13,%rax,8), %rax
	movslq	%edx, %rdx
	leaq	(%r14,%rdx,4), %r10
	movl	4(%rax), %edx
	testl	%edx, %edx
	jle	.L13
	xorl	%ecx, %ecx
.L33:
	movq	8(%rax), %r11
.L16:
	movslq	(%r11,%rcx,4), %rax
	movq	%rax, %rsi
	leaq	(%r12,%rax,4), %rax
	cmpl	$-1, (%rax)
	je	.L38
	addq	$1, %rcx
	cmpl	%ecx, %edx
	jg	.L16
.L13:
	addl	$1, %r9d
	cmpl	%edi, %r9d
	je	.L17
.L39:
	movl	%r9d, %eax
	cltd
	idivl	%ebx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %r8d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L38:
	movl	%r8d, (%rax)
	movl	%edi, %eax
	addq	$1, %rcx
	addl	$1, %edi
	cltd
	idivl	%ebx
	movslq	%edx, %rdx
	movl	%esi, (%r14,%rdx,4)
	movslq	(%r10), %rax
	movq	%rax, %r8
	movq	0(%r13,%rax,8), %rax
	movl	4(%rax), %edx
	cmpl	%ecx, %edx
	jg	.L33
	addl	$1, %r9d
	cmpl	%edi, %r9d
	jne	.L39
.L17:
	leaq	.LC2(%rip), %rdi
	movl	$1, %ebx
	leaq	.LC3(%rip), %r13
	call	puts@PLT
	cmpl	$1, -72(%rbp)
	jle	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	movl	(%r12,%rbx,4), %eax
	movq	%r13, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	leal	1(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, -72(%rbp)
	jg	.L18
.L19:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L40
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L37:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	movl	-68(%rbp), %eax
	movl	%eax, -84(%rbp)
	jmp	.L7
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-68(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-72(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rdx
	leaq	15(,%rax,8), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L36
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L37
.L4:
	movq	%rsp, %r13
	testl	%edx, %edx
	jle	.L5
	movslq	-68(%rbp), %r12
	leal	1(%rdx), %r14d
	movl	$1, %r15d
	movl	%r12d, -84(%rbp)
	salq	$2, %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$16, %edi
	call	malloc@PLT
	movq	%r12, %rdi
	movq	%rax, -8(%r13,%r15,8)
	movq	%rax, %rbx
	movl	%r15d, (%rax)
	addq	$1, %r15
	call	malloc@PLT
	movl	$0, 4(%rbx)
	movq	%rax, 8(%rbx)
	cmpq	%r15, %r14
	jne	.L6
.L7:
	movl	-84(%rbp), %eax
	testl	%eax, %eax
	jle	.L11
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %r14
	leaq	.LC1(%rip), %rbx
	leaq	-60(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rax
	movq	0(%r13,%rax,8), %rsi
	movl	-60(%rbp), %eax
	movslq	4(%rsi), %r8
	movq	8(%rsi), %rdi
	subl	$1, %eax
	movq	%r8, %rcx
	movl	%eax, (%rdi,%r8,4)
	cltq
	addl	$1, %ecx
	movl	%ecx, 4(%rsi)
	movq	0(%r13,%rax,8), %rcx
	movslq	4(%rcx), %rdi
	movq	8(%rcx), %rsi
	movq	%rdi, %rax
	movl	%edx, (%rsi,%rdi,4)
	addl	$1, %eax
	movl	%eax, 4(%rcx)
	cmpl	%r15d, -68(%rbp)
	jg	.L8
.L11:
	movslq	-72(%rbp), %r15
	movq	%r15, %rbx
	salq	$2, %r15
	movq	%r15, %rdi
	call	malloc@PLT
	movq	%r15, %rdi
	movq	%rax, %r14
	call	malloc@PLT
	movq	%rax, %r12
	testl	%ebx, %ebx
	jle	.L10
	movq	%r15, %rdx
	movl	$255, %esi
	movq	%rax, %rdi
	call	memset@PLT
.L10:
	movl	$0, (%r14)
	xorl	%r8d, %r8d
	movl	$1, %edi
	xorl	%r9d, %r9d
	movl	$0, (%r12)
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%r9d, %eax
	cltd
	idivl	%ebx
	movslq	%r8d, %rax
	movq	0(%r13,%rax,8), %rax
	movslq	%edx, %rdx
	leaq	(%r14,%rdx,4), %r10
	movl	4(%rax), %edx
	testl	%edx, %edx
	jle	.L13
	xorl	%ecx, %ecx
.L33:
	movq	8(%rax), %r11
.L16:
	movslq	(%r11,%rcx,4), %rax
	movq	%rax, %rsi
	leaq	(%r12,%rax,4), %rax
	cmpl	$-1, (%rax)
	je	.L38
	addq	$1, %rcx
	cmpl	%ecx, %edx
	jg	.L16
.L13:
	addl	$1, %r9d
	cmpl	%edi, %r9d
	je	.L17
.L39:
	movl	%r9d, %eax
	cltd
	idivl	%ebx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %r8d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L38:
	movl	%r8d, (%rax)
	movl	%edi, %eax
	addq	$1, %rcx
	addl	$1, %edi
	cltd
	idivl	%ebx
	movslq	%edx, %rdx
	movl	%esi, (%r14,%rdx,4)
	movslq	(%r10), %rax
	movq	%rax, %r8
	movq	0(%r13,%rax,8), %rax
	movl	4(%rax), %edx
	cmpl	%ecx, %edx
	jg	.L33
	addl	$1, %r9d
	cmpl	%edi, %r9d
	jne	.L39
.L17:
	leaq	.LC2(%rip), %rdi
	movl	$1, %ebx
	leaq	.LC3(%rip), %r13
	call	puts@PLT
	cmpl	$1, -72(%rbp)
	jle	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	movl	(%r12,%rbx,4), %eax
	movq	%r13, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	leal	1(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, -72(%rbp)
	jg	.L18
.L19:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L40
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L37:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	movl	-68(%rbp), %eax
	movl	%eax, -84(%rbp)
	jmp	.L7
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.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:

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

struct graph{
	int point;
	int num;
	int *node;
};

int main(void){
	int n,m;
	scanf("%d %d",&n,&m);
	
	struct graph *pointer[n];
	
	//構造体の作成
	for(int i=0;i<n;i++){
		pointer[i]=(struct graph*)malloc(sizeof(struct graph));
		pointer[i]->point=i+1;
		pointer[i]->node=(int*)malloc(m*sizeof(int));
		pointer[i]->num=0;
	}
	
	//入力
	int temp1,temp2;
	for(int i=0;i<m;i++){
		scanf("%d",&temp1);
		scanf("%d",&temp2);
		pointer[temp1-1]->node[pointer[temp1-1]->num]=temp2-1;
		pointer[temp1-1]->num+=1;
		pointer[temp2-1]->node[pointer[temp2-1]->num]=temp1-1;
		pointer[temp2-1]->num+=1;
	}
	
	int *list,*que;
	int head=0,tail=0;
	
	que=(int*)malloc(n*sizeof(int));	
	list=(int*)malloc(n*sizeof(int));
	
	for(int i=0;i<n;i++){
		list[i]=-1;
	}
	
	que[0]=0;
	list[0]=0;
	tail=1;
	
	do{
		for(int i=0;i<pointer[que[head%n]]->num;i++){
			if(list[pointer[que[head%n]]->node[i]]==-1){
				list[pointer[que[head%n]]->node[i]]=que[head%n];
				que[tail%n]=pointer[que[head%n]]->node[i];
				tail+=1;
			}
		}
		/*for(int i=head;i<tail;i++){
			printf("%d ",que[i]);
		}
		printf("\n");*/

		head+=1;
	}while(head!=tail);
	
	printf("Yes\n");
	for(int i=1;i<n;i++){
		printf("%d\n",list[i]+1);
	}
	
	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<string.h>
#include<stdlib.h>
#include<ctype.h>

struct graph{
	int point;
	int num;
	int *node;
};

int main(void){
	int n,m;
	scanf("%d %d",&n,&m);
	
	struct graph *pointer[n];
	
	//構造体の作成
	for(int i=0;i<n;i++){
		pointer[i]=(struct graph*)malloc(sizeof(struct graph));
		pointer[i]->point=i+1;
		pointer[i]->node=(int*)malloc(m*sizeof(int));
		pointer[i]->num=0;
	}
	
	//入力
	int temp1,temp2;
	for(int i=0;i<m;i++){
		scanf("%d",&temp1);
		scanf("%d",&temp2);
		pointer[temp1-1]->node[pointer[temp1-1]->num]=temp2-1;
		pointer[temp1-1]->num+=1;
		pointer[temp2-1]->node[pointer[temp2-1]->num]=temp1-1;
		pointer[temp2-1]->num+=1;
	}
	
	int *list,*que;
	int head=0,tail=0;
	
	que=(int*)malloc(n*sizeof(int));	
	list=(int*)malloc(n*sizeof(int));
	
	for(int i=0;i<n;i++){
		list[i]=-1;
	}
	
	que[0]=0;
	list[0]=0;
	tail=1;
	
	do{
		for(int i=0;i<pointer[que[head%n]]->num;i++){
			if(list[pointer[que[head%n]]->node[i]]==-1){
				list[pointer[que[head%n]]->node[i]]=que[head%n];
				que[tail%n]=pointer[que[head%n]]->node[i];
				tail+=1;
			}
		}
		/*for(int i=head;i<tail;i++){
			printf("%d ",que[i]);
		}
		printf("\n");*/

		head+=1;
	}while(head!=tail);
	
	printf("Yes\n");
	for(int i=1;i<n;i++){
		printf("%d\n",list[i]+1);
	}
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %r12
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L5
.L6:
	movl	$16, %edi
	call	malloc@PLT
	movq	%rax, %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	-100(%rbp), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	movl	-112(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	-64(%rbp), %rdx
	movl	-100(%rbp), %ecx
	movslq	%ecx, %rcx
	movq	(%rdx,%rcx,8), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, 8(%rbx)
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	$0, 4(%rax)
	addl	$1, -100(%rbp)
.L5:
	movl	-116(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L6
	movl	$0, -96(%rbp)
	jmp	.L7
.L8:
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-104(%rbp), %ecx
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rsi
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	leal	-1(%rcx), %edx
	movl	%edx, (%rax)
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %ecx
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leal	1(%rcx), %edx
	movl	%edx, 4(%rax)
	movl	-108(%rbp), %ecx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rsi
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	leal	-1(%rcx), %edx
	movl	%edx, (%rax)
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %ecx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leal	1(%rcx), %edx
	movl	%edx, 4(%rax)
	addl	$1, -96(%rbp)
.L7:
	movl	-112(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L8
	movl	$0, -92(%rbp)
	movl	$0, -88(%rbp)
	movl	-116(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -56(%rbp)
	movl	-116(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L9
.L10:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	$-1, (%rax)
	addl	$1, -84(%rbp)
.L9:
	movl	-116(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L10
	movq	-56(%rbp), %rax
	movl	$0, (%rax)
	movq	-48(%rbp), %rax
	movl	$0, (%rax)
	movl	$1, -88(%rbp)
.L14:
	movl	$0, -80(%rbp)
	jmp	.L11
.L13:
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rdx
	movl	-80(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	jne	.L12
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-116(%rbp), %esi
	movl	-92(%rbp), %eax
	cltd
	idivl	%esi
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rdx
	movl	-80(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	movl	(%rcx), %eax
	movl	%eax, (%rdx)
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rdx
	movl	-80(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	(%rdx,%rax), %rcx
	movl	-116(%rbp), %esi
	movl	-88(%rbp), %eax
	cltd
	idivl	%esi
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	(%rcx), %eax
	movl	%eax, (%rdx)
	addl	$1, -88(%rbp)
.L12:
	addl	$1, -80(%rbp)
.L11:
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L13
	addl	$1, -92(%rbp)
	movl	-92(%rbp), %eax
	cmpl	-88(%rbp), %eax
	jne	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, -76(%rbp)
	jmp	.L15
.L16:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -76(%rbp)
.L15:
	movl	-116(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L16
	movl	$0, %eax
	movq	%r12, %rsp
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %r12
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L5
.L6:
	movl	$16, %edi
	call	malloc@PLT
	movq	%rax, %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	-100(%rbp), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	movl	-112(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	-64(%rbp), %rdx
	movl	-100(%rbp), %ecx
	movslq	%ecx, %rcx
	movq	(%rdx,%rcx,8), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, 8(%rbx)
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	$0, 4(%rax)
	addl	$1, -100(%rbp)
.L5:
	movl	-116(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L6
	movl	$0, -96(%rbp)
	jmp	.L7
.L8:
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-104(%rbp), %ecx
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rsi
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	leal	-1(%rcx), %edx
	movl	%edx, (%rax)
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %ecx
	movl	-108(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leal	1(%rcx), %edx
	movl	%edx, 4(%rax)
	movl	-108(%rbp), %ecx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rsi
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	leal	-1(%rcx), %edx
	movl	%edx, (%rax)
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %ecx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leal	1(%rcx), %edx
	movl	%edx, 4(%rax)
	addl	$1, -96(%rbp)
.L7:
	movl	-112(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L8
	movl	$0, -92(%rbp)
	movl	$0, -88(%rbp)
	movl	-116(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -56(%rbp)
	movl	-116(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L9
.L10:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	$-1, (%rax)
	addl	$1, -84(%rbp)
.L9:
	movl	-116(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L10
	movq	-56(%rbp), %rax
	movl	$0, (%rax)
	movq	-48(%rbp), %rax
	movl	$0, (%rax)
	movl	$1, -88(%rbp)
.L14:
	movl	$0, -80(%rbp)
	jmp	.L11
.L13:
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rdx
	movl	-80(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	jne	.L12
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-116(%rbp), %esi
	movl	-92(%rbp), %eax
	cltd
	idivl	%esi
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rdx
	movl	-80(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	movl	(%rcx), %eax
	movl	%eax, (%rdx)
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	8(%rax), %rdx
	movl	-80(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	(%rdx,%rax), %rcx
	movl	-116(%rbp), %esi
	movl	-88(%rbp), %eax
	cltd
	idivl	%esi
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	(%rcx), %eax
	movl	%eax, (%rdx)
	addl	$1, -88(%rbp)
.L12:
	addl	$1, -80(%rbp)
.L11:
	movl	-116(%rbp), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L13
	addl	$1, -92(%rbp)
	movl	-92(%rbp), %eax
	cmpl	-88(%rbp), %eax
	jne	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, -76(%rbp)
	jmp	.L15
.L16:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -76(%rbp)
.L15:
	movl	-116(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L16
	movl	$0, %eax
	movq	%r12, %rsp
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
