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

```c
#include<stdio.h>
#include<string.h>
//012345-AXYZWB
int map[6][6]={{0,1,1,0,0,0},
			   {0,0,0,1,0,0},
			   {0,1,0,0,0,0},
			   {0,0,0,0,1,1},
			   {0,0,1,0,0,1},
			   {0,1,1,0,0,0}};
int road[6][2]={{1,2},{-1,3},{1,-1},{4,5},{5,2},{2,1}};
int main(){
	int i,j,ct,l;
	char s[105];
	//for(i=0;i<6;i++){for(j=0;j<2;j++)printf("%3d ",road[i][j]);printf("\n");}
	while(1){
		scanf("%s",s);
		if(strcmp(s,"#")==0)break;
		ct=0;
		l=strlen(s);
		for(i=0;i<l;i++){
			//printf("%d->",ct);
			ct=road[ct][s[i]-'0'];
			if(ct==-1)break;
		}
		//printf("%d\n",ct);
		printf("%s\n",(ct==5)?("Yes"):("No"));
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%s"
.LC3:
	.string	"#"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	road(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	1(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$35, (%rbx)
	je	.L17
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	testq	%rax, %rax
	je	.L5
	leal	-1(%rax), %esi
	movq	%rbx, %rcx
	xorl	%edx, %edx
	addq	%r13, %rsi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$1, %rcx
	cmpq	%rcx, %rsi
	je	.L18
.L6:
	movsbl	(%rcx), %eax
	subl	$48, %eax
	cltq
	leaq	(%rax,%rdx,2), %rax
	movslq	(%r15,%rax,4), %rdx
	cmpl	$-1, %edx
	jne	.L19
	movq	%rbp, %rdi
.L5:
	call	puts@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	$5, %edx
	movq	%r14, %rdi
	cmovne	%rbp, %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$136, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	road
	.data
	.align 32
	.type	road, @object
	.size	road, 48
road:
	.long	1
	.long	2
	.long	-1
	.long	3
	.long	1
	.long	-1
	.long	4
	.long	5
	.long	5
	.long	2
	.long	2
	.long	1
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 144
map:
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%s"
.LC3:
	.string	"#"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	road(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	1(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$35, (%rbx)
	je	.L17
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	testq	%rax, %rax
	je	.L5
	leal	-1(%rax), %esi
	movq	%rbx, %rcx
	xorl	%edx, %edx
	addq	%r13, %rsi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$1, %rcx
	cmpq	%rcx, %rsi
	je	.L18
.L6:
	movsbl	(%rcx), %eax
	subl	$48, %eax
	cltq
	leaq	(%rax,%rdx,2), %rax
	movslq	(%r15,%rax,4), %rdx
	cmpl	$-1, %edx
	jne	.L19
	movq	%rbp, %rdi
.L5:
	call	puts@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	$5, %edx
	movq	%r14, %rdi
	cmovne	%rbp, %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$136, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	road
	.data
	.align 32
	.type	road, @object
	.size	road, 48
road:
	.long	1
	.long	2
	.long	-1
	.long	3
	.long	1
	.long	-1
	.long	4
	.long	5
	.long	5
	.long	2
	.long	2
	.long	1
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 144
map:
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%s"
.LC3:
	.string	"#"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	road(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	1(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$35, (%rbx)
	je	.L17
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	testq	%rax, %rax
	je	.L5
	leal	-1(%rax), %esi
	movq	%rbx, %rcx
	xorl	%edx, %edx
	addq	%r13, %rsi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$1, %rcx
	cmpq	%rcx, %rsi
	je	.L18
.L6:
	movsbl	(%rcx), %eax
	subl	$48, %eax
	cltq
	leaq	(%rax,%rdx,2), %rax
	movslq	(%r15,%rax,4), %rdx
	cmpl	$-1, %edx
	jne	.L19
	movq	%rbp, %rdi
.L5:
	call	puts@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	$5, %edx
	movq	%r14, %rdi
	cmovne	%rbp, %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$136, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	road
	.data
	.align 32
	.type	road, @object
	.size	road, 48
road:
	.long	1
	.long	2
	.long	-1
	.long	3
	.long	1
	.long	-1
	.long	4
	.long	5
	.long	5
	.long	2
	.long	2
	.long	1
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 144
map:
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.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:
```
```c
#include<stdio.h>
#include<string.h>
//012345-AXYZWB
int map[6][6]={{0,1,1,0,0,0},
			   {0,0,0,1,0,0},
			   {0,1,0,0,0,0},
			   {0,0,0,0,1,1},
			   {0,0,1,0,0,1},
			   {0,1,1,0,0,0}};
int road[6][2]={{1,2},{-1,3},{1,-1},{4,5},{5,2},{2,1}};
int main(){
	int i,j,ct,l;
	char s[105];
	//for(i=0;i<6;i++){for(j=0;j<2;j++)printf("%3d ",road[i][j]);printf("\n");}
	while(1){
		scanf("%s",s);
		if(strcmp(s,"#")==0)break;
		ct=0;
		l=strlen(s);
		for(i=0;i<l;i++){
			//printf("%d->",ct);
			ct=road[ct][s[i]-'0'];
			if(ct==-1)break;
		}
		//printf("%d\n",ct);
		printf("%s\n",(ct==5)?("Yes"):("No"));
	}
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<string.h>
//012345-AXYZWB
int map[6][6]={{0,1,1,0,0,0},
			   {0,0,0,1,0,0},
			   {0,1,0,0,0,0},
			   {0,0,0,0,1,1},
			   {0,0,1,0,0,1},
			   {0,1,1,0,0,0}};
int road[6][2]={{1,2},{-1,3},{1,-1},{4,5},{5,2},{2,1}};
int main(){
	int i,j,ct,l;
	char s[105];
	//for(i=0;i<6;i++){for(j=0;j<2;j++)printf("%3d ",road[i][j]);printf("\n");}
	while(1){
		scanf("%s",s);
		if(strcmp(s,"#")==0)break;
		ct=0;
		l=strlen(s);
		for(i=0;i<l;i++){
			//printf("%d->",ct);
			ct=road[ct][s[i]-'0'];
			if(ct==-1)break;
		}
		//printf("%d\n",ct);
		printf("%s\n",(ct==5)?("Yes"):("No"));
	}
	return 0;
}```

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.
Optimized Assembly Code:

0100
0101
10100
01000
0101011
0011
011110
#
 0100
1101
10100
11000
0001011
0011
011110
#
 0100
1101
10000
10000
0001011
0011
011110
#
 0100
0101
10100
10001
0011011
1011
011110
#
 0100
0100
10100
10001
0011011
1001
011110
#
 0100
1101
10100
10000
0001011
0011
011111
#
 0100
0101
10101
10011
0011011
1011
011110
#
 0100
0100
10110
10011
0011011
1101
011110
#
 0100
0100
10100
10011
0011011
1101
011111
#
 0100
1101
10110
11000
0101011
0011
011110
#

Yes
No
Yes
No
Yes
No
No
 Yes
No
Yes
No
No
No
No
 Yes
No
No
No
No
No
No
 Yes
No
Yes
No
No
Yes
No
 Yes
Yes
Yes
No
No
No
No
 Yes
No
Yes
No
No
No
Yes
 Yes
No
No
No
No
Yes
No
 Yes
Yes
No
No
No
No
No
 Yes
Yes
Yes
No
No
No
Yes
 Yes
No
No
No
Yes
No
No

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

```c
#include<stdio.h>
#include<string.h>
//012345-AXYZWB
int map[6][6]={{0,1,1,0,0,0},
			   {0,0,0,1,0,0},
			   {0,1,0,0,0,0},
			   {0,0,0,0,1,1},
			   {0,0,1,0,0,1},
			   {0,1,1,0,0,0}};
int road[6][2]={{1,2},{-1,3},{1,-1},{4,5},{5,2},{2,1}};
int main(){
	int i,j,ct,l;
	char s[105];
	//for(i=0;i<6;i++){for(j=0;j<2;j++)printf("%3d ",road[i][j]);printf("\n");}
	while(1){
		scanf("%s",s);
		if(strcmp(s,"#")==0)break;
		ct=0;
		l=strlen(s);
		for(i=0;i<l;i++){
			//printf("%d->",ct);
			ct=road[ct][s[i]-'0'];
			if(ct==-1)break;
		}
		//printf("%d\n",ct);
		printf("%s\n",(ct==5)?("Yes"):("No"));
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%s"
.LC3:
	.string	"#"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	road(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	1(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$35, (%rbx)
	je	.L17
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	testq	%rax, %rax
	je	.L5
	leal	-1(%rax), %esi
	movq	%rbx, %rcx
	xorl	%edx, %edx
	addq	%r13, %rsi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$1, %rcx
	cmpq	%rcx, %rsi
	je	.L18
.L6:
	movsbl	(%rcx), %eax
	subl	$48, %eax
	cltq
	leaq	(%rax,%rdx,2), %rax
	movslq	(%r15,%rax,4), %rdx
	cmpl	$-1, %edx
	jne	.L19
	movq	%rbp, %rdi
.L5:
	call	puts@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	$5, %edx
	movq	%r14, %rdi
	cmovne	%rbp, %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$136, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	road
	.data
	.align 32
	.type	road, @object
	.size	road, 48
road:
	.long	1
	.long	2
	.long	-1
	.long	3
	.long	1
	.long	-1
	.long	4
	.long	5
	.long	5
	.long	2
	.long	2
	.long	1
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 144
map:
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%s"
.LC3:
	.string	"#"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	road(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	1(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$35, (%rbx)
	je	.L17
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	testq	%rax, %rax
	je	.L5
	leal	-1(%rax), %esi
	movq	%rbx, %rcx
	xorl	%edx, %edx
	addq	%r13, %rsi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$1, %rcx
	cmpq	%rcx, %rsi
	je	.L18
.L6:
	movsbl	(%rcx), %eax
	subl	$48, %eax
	cltq
	leaq	(%rax,%rdx,2), %rax
	movslq	(%r15,%rax,4), %rdx
	cmpl	$-1, %edx
	jne	.L19
	movq	%rbp, %rdi
.L5:
	call	puts@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	$5, %edx
	movq	%r14, %rdi
	cmovne	%rbp, %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$136, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	road
	.data
	.align 32
	.type	road, @object
	.size	road, 48
road:
	.long	1
	.long	2
	.long	-1
	.long	3
	.long	1
	.long	-1
	.long	4
	.long	5
	.long	5
	.long	2
	.long	2
	.long	1
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 144
map:
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.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:
```