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>

int main(void)
{
	char road[150];
	int str;
	int i;
	char aka;
	
	while (scanf("%s", road)){
		if (road[0] == '#'){
			break;
		}
		str = strlen(road);
		
		aka = 'A';
		for (i = 0; i < str; i++){
			switch (aka){
			  case 'A':
			  	if (road[i] == '0'){
					aka = 'X';
			  	}
				else {
					aka = 'Y';
				}
				break;
				
			  case 'X':
			  	if (road[i] == '0'){
					aka = 0;
			  	}
				else {
					aka = 'Z';
				}
				break;
				
			  case 'Y':
			  	if (road[i] == '0'){
					aka = 'X';
			  	}
				else {
					aka = 0;
				}
				break;
				
			  case 'Z':
			  	if (road[i] == '0'){
					aka = 'W';
			  	}
				else {
					aka = 'B';
				}
				break;
				
			  case 'W':
			  	if (road[i] == '0'){
					aka = 'B';
			  	}
				else {
					aka = 'Y';
				}
				break;
				
			  case 'B':
			  	if (road[i] == '0'){
					aka = 'Y';
			  	}
				else {
					aka = 'X';
				}
				break;
				
			  default:
			  	i = str;
				break;
			}
		}
		
		if (aka == 'B'){
			printf("Yes\n");
		}
		else {
			printf("No\n");
		}
	}
	
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%s"
	.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
	subq	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L29:
	movzbl	-160(%rbp), %eax
	cmpb	$35, %al
	je	.L32
	leaq	-160(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -164(%rbp)
	movb	$65, -169(%rbp)
	movl	$0, -168(%rbp)
	jmp	.L5
.L27:
	movsbl	-169(%rbp), %eax
	subl	$65, %eax
	cmpl	$25, %eax
	ja	.L6
	movl	%eax, %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L8(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L8(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L13-.L8
	.long	.L12-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L11-.L8
	.long	.L10-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.text
.L13:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L14
	movb	$88, -169(%rbp)
	jmp	.L16
.L14:
	movb	$89, -169(%rbp)
	jmp	.L16
.L10:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L17
	movb	$0, -169(%rbp)
	jmp	.L16
.L17:
	movb	$90, -169(%rbp)
	jmp	.L16
.L9:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L19
	movb	$88, -169(%rbp)
	jmp	.L16
.L19:
	movb	$0, -169(%rbp)
	jmp	.L16
.L7:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L21
	movb	$87, -169(%rbp)
	jmp	.L16
.L21:
	movb	$66, -169(%rbp)
	jmp	.L16
.L11:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L23
	movb	$66, -169(%rbp)
	jmp	.L16
.L23:
	movb	$89, -169(%rbp)
	jmp	.L16
.L12:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L25
	movb	$89, -169(%rbp)
	jmp	.L16
.L25:
	movb	$88, -169(%rbp)
	jmp	.L16
.L6:
	movl	-164(%rbp), %eax
	movl	%eax, -168(%rbp)
	nop
.L16:
	addl	$1, -168(%rbp)
.L5:
	movl	-168(%rbp), %eax
	cmpl	-164(%rbp), %eax
	jl	.L27
	cmpb	$66, -169(%rbp)
	jne	.L28
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L28:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jne	.L29
	jmp	.L4
.L32:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.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	"%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$160, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L3
	movzbl	(%rsp), %r14d
	cmpb	$35, %r14b
	je	.L3
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %rcx
	movl	%eax, %edi
	testq	%rax, %rax
	je	.L4
	cmpb	$48, %r14b
	je	.L30
	movl	$2, %edx
	movl	$1, %eax
	cmpl	$1, %ecx
	je	.L4
.L7:
	cltq
	cmpb	$48, (%rsp,%rax)
	je	.L31
.L4:
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L31:
	cmpl	%edx, %ecx
	jle	.L4
.L13:
	movslq	%edx, %rax
	cmpb	$48, (%rsp,%rax)
	je	.L4
	leal	1(%rdx), %esi
	cmpl	%esi, %edi
	jle	.L4
	movslq	%esi, %rsi
	leal	2(%rdx), %eax
	cmpb	$48, (%rsp,%rsi)
	je	.L32
	cmpl	%edi, %eax
	jge	.L11
.L14:
	movslq	%eax, %rsi
	leal	1(%rax), %edx
	cmpb	$48, (%rsp,%rsi)
	je	.L33
	cmpl	%edx, %edi
	jg	.L13
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L30:
	movl	$1, %edx
	cmpl	$1, %eax
	jne	.L13
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L33:
	cmpl	%edx, %ecx
	jle	.L4
	leal	2(%rax), %esi
	movl	%edx, %eax
	movl	%esi, %edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L32:
	cmpl	%edi, %eax
	jge	.L4
	movslq	%eax, %rsi
	leal	3(%rdx), %eax
	cmpb	$48, (%rsp,%rsi)
	je	.L34
	cmpl	%eax, %ecx
	jle	.L4
	addl	$4, %edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L34:
	cmpl	%eax, %edi
	jg	.L14
.L11:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$160, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$160, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L3
	movzbl	(%rsp), %r14d
	cmpb	$35, %r14b
	je	.L3
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %rcx
	movl	%eax, %edi
	testq	%rax, %rax
	je	.L4
	cmpb	$48, %r14b
	je	.L30
	movl	$2, %edx
	movl	$1, %eax
	cmpl	$1, %ecx
	je	.L4
.L7:
	cltq
	cmpb	$48, (%rsp,%rax)
	je	.L31
.L4:
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L31:
	cmpl	%edx, %ecx
	jle	.L4
.L13:
	movslq	%edx, %rax
	cmpb	$48, (%rsp,%rax)
	je	.L4
	leal	1(%rdx), %esi
	cmpl	%esi, %edi
	jle	.L4
	movslq	%esi, %rsi
	leal	2(%rdx), %eax
	cmpb	$48, (%rsp,%rsi)
	je	.L32
	cmpl	%edi, %eax
	jge	.L11
.L14:
	movslq	%eax, %rsi
	leal	1(%rax), %edx
	cmpb	$48, (%rsp,%rsi)
	je	.L33
	cmpl	%edx, %edi
	jg	.L13
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L30:
	movl	$1, %edx
	cmpl	$1, %eax
	jne	.L13
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L33:
	cmpl	%edx, %ecx
	jle	.L4
	leal	2(%rax), %esi
	movl	%edx, %eax
	movl	%esi, %edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L32:
	cmpl	%edi, %eax
	jge	.L4
	movslq	%eax, %rsi
	leal	3(%rdx), %eax
	cmpb	$48, (%rsp,%rsi)
	je	.L34
	cmpl	%eax, %ecx
	jle	.L4
	addl	$4, %edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L34:
	cmpl	%eax, %edi
	jg	.L14
.L11:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$160, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>

int main(void)
{
	char road[150];
	int str;
	int i;
	char aka;
	
	while (scanf("%s", road)){
		if (road[0] == '#'){
			break;
		}
		str = strlen(road);
		
		aka = 'A';
		for (i = 0; i < str; i++){
			switch (aka){
			  case 'A':
			  	if (road[i] == '0'){
					aka = 'X';
			  	}
				else {
					aka = 'Y';
				}
				break;
				
			  case 'X':
			  	if (road[i] == '0'){
					aka = 0;
			  	}
				else {
					aka = 'Z';
				}
				break;
				
			  case 'Y':
			  	if (road[i] == '0'){
					aka = 'X';
			  	}
				else {
					aka = 0;
				}
				break;
				
			  case 'Z':
			  	if (road[i] == '0'){
					aka = 'W';
			  	}
				else {
					aka = 'B';
				}
				break;
				
			  case 'W':
			  	if (road[i] == '0'){
					aka = 'B';
			  	}
				else {
					aka = 'Y';
				}
				break;
				
			  case 'B':
			  	if (road[i] == '0'){
					aka = 'Y';
			  	}
				else {
					aka = 'X';
				}
				break;
				
			  default:
			  	i = str;
				break;
			}
		}
		
		if (aka == 'B'){
			printf("Yes\n");
		}
		else {
			printf("No\n");
		}
	}
	
	return (0);
}
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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

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

int main(void)
{
	char road[150];
	int str;
	int i;
	char aka;
	
	while (scanf("%s", road)){
		if (road[0] == '#'){
			break;
		}
		str = strlen(road);
		
		aka = 'A';
		for (i = 0; i < str; i++){
			switch (aka){
			  case 'A':
			  	if (road[i] == '0'){
					aka = 'X';
			  	}
				else {
					aka = 'Y';
				}
				break;
				
			  case 'X':
			  	if (road[i] == '0'){
					aka = 0;
			  	}
				else {
					aka = 'Z';
				}
				break;
				
			  case 'Y':
			  	if (road[i] == '0'){
					aka = 'X';
			  	}
				else {
					aka = 0;
				}
				break;
				
			  case 'Z':
			  	if (road[i] == '0'){
					aka = 'W';
			  	}
				else {
					aka = 'B';
				}
				break;
				
			  case 'W':
			  	if (road[i] == '0'){
					aka = 'B';
			  	}
				else {
					aka = 'Y';
				}
				break;
				
			  case 'B':
			  	if (road[i] == '0'){
					aka = 'Y';
			  	}
				else {
					aka = 'X';
				}
				break;
				
			  default:
			  	i = str;
				break;
			}
		}
		
		if (aka == 'B'){
			printf("Yes\n");
		}
		else {
			printf("No\n");
		}
	}
	
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%s"
	.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
	subq	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L29:
	movzbl	-160(%rbp), %eax
	cmpb	$35, %al
	je	.L32
	leaq	-160(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -164(%rbp)
	movb	$65, -169(%rbp)
	movl	$0, -168(%rbp)
	jmp	.L5
.L27:
	movsbl	-169(%rbp), %eax
	subl	$65, %eax
	cmpl	$25, %eax
	ja	.L6
	movl	%eax, %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L8(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L8(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L13-.L8
	.long	.L12-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L11-.L8
	.long	.L10-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.text
.L13:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L14
	movb	$88, -169(%rbp)
	jmp	.L16
.L14:
	movb	$89, -169(%rbp)
	jmp	.L16
.L10:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L17
	movb	$0, -169(%rbp)
	jmp	.L16
.L17:
	movb	$90, -169(%rbp)
	jmp	.L16
.L9:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L19
	movb	$88, -169(%rbp)
	jmp	.L16
.L19:
	movb	$0, -169(%rbp)
	jmp	.L16
.L7:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L21
	movb	$87, -169(%rbp)
	jmp	.L16
.L21:
	movb	$66, -169(%rbp)
	jmp	.L16
.L11:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L23
	movb	$66, -169(%rbp)
	jmp	.L16
.L23:
	movb	$89, -169(%rbp)
	jmp	.L16
.L12:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L25
	movb	$89, -169(%rbp)
	jmp	.L16
.L25:
	movb	$88, -169(%rbp)
	jmp	.L16
.L6:
	movl	-164(%rbp), %eax
	movl	%eax, -168(%rbp)
	nop
.L16:
	addl	$1, -168(%rbp)
.L5:
	movl	-168(%rbp), %eax
	cmpl	-164(%rbp), %eax
	jl	.L27
	cmpb	$66, -169(%rbp)
	jne	.L28
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L28:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jne	.L29
	jmp	.L4
.L32:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.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
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%s"
	.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
	subq	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L29:
	movzbl	-160(%rbp), %eax
	cmpb	$35, %al
	je	.L32
	leaq	-160(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -164(%rbp)
	movb	$65, -169(%rbp)
	movl	$0, -168(%rbp)
	jmp	.L5
.L27:
	movsbl	-169(%rbp), %eax
	subl	$65, %eax
	cmpl	$25, %eax
	ja	.L6
	movl	%eax, %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L8(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L8(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L13-.L8
	.long	.L12-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L11-.L8
	.long	.L10-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.text
.L13:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L14
	movb	$88, -169(%rbp)
	jmp	.L16
.L14:
	movb	$89, -169(%rbp)
	jmp	.L16
.L10:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L17
	movb	$0, -169(%rbp)
	jmp	.L16
.L17:
	movb	$90, -169(%rbp)
	jmp	.L16
.L9:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L19
	movb	$88, -169(%rbp)
	jmp	.L16
.L19:
	movb	$0, -169(%rbp)
	jmp	.L16
.L7:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L21
	movb	$87, -169(%rbp)
	jmp	.L16
.L21:
	movb	$66, -169(%rbp)
	jmp	.L16
.L11:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L23
	movb	$66, -169(%rbp)
	jmp	.L16
.L23:
	movb	$89, -169(%rbp)
	jmp	.L16
.L12:
	movl	-168(%rbp), %eax
	cltq
	movzbl	-160(%rbp,%rax), %eax
	cmpb	$48, %al
	jne	.L25
	movb	$89, -169(%rbp)
	jmp	.L16
.L25:
	movb	$88, -169(%rbp)
	jmp	.L16
.L6:
	movl	-164(%rbp), %eax
	movl	%eax, -168(%rbp)
	nop
.L16:
	addl	$1, -168(%rbp)
.L5:
	movl	-168(%rbp), %eax
	cmpl	-164(%rbp), %eax
	jl	.L27
	cmpb	$66, -169(%rbp)
	jne	.L28
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L28:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jne	.L29
	jmp	.L4
.L32:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.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:
