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>

int main(int argc, char *argv[])
{
	int n,a,b,c,d,ans;
	scanf("%d %d %d %d %d",&n, &a, &b, &c, &d);
	char s[n];
	scanf("%s", &s);
	a--;
	b--;
	c--;
	d--;
	ans=0;
	
	s[a]='a';
	s[b]='b';
//	printf("%s\n", s);
	if(c>d){	//a go first
		while(1){
		if(s[c]=='a'){
			if(s[d]=='b'){
				ans=1;
				break;
			}else{
				if(s[b+1]=='.'){
					s[b]='.';
					b++;
					s[b]='b';
				}else{
					if(s[b+2]=='.'){
						s[b]='.';
						b+=2;
						s[b]='b';
					}else{
						ans=0;
						break;
					}
				}
			}
		}else{
			if(s[a+1]=='.'){
				s[a]='.';
				a++;
				s[a]='a';
			}else{
				if(s[a+2]=='.'){
					s[a]='.';
					a+=2;
					s[a]='a';
				}else{
					if(s[d]=='b'){
						ans=0;
						break;
					}else{
						if(s[b+1]=='.'){
							s[b]='.';
							b++;
							s[b]='b';
						}else{
							if(s[b+2]=='.'){
								s[b]='.';
								b+=2;
								s[b]='b';
							}else{
								ans=0;
								break;
							}
						}
					}
				}
			}
		}
//		printf("%s\n", s);
		}
	}else{
		while(1){
		if(s[d]=='b'){
			if(s[c]=='a'){
				ans=1;
				break;
			}else{
				if(s[a+1]=='.'){
					s[a]='.';
					a++;
					s[a]='a';
				}else{
					if(s[a+2]=='.'){
						s[a]='.';
						a+=2;
						s[a]='a';
					}else{
						ans=0;
						break;
					}
				}
			}
		}else{
			if(s[b+1]=='.'){
				s[b]='.';
				b++;
				s[b]='b';
			}else{
				if(s[b+2]=='.'){
					s[b]='.';
					b+=2;
					s[b]='b';
				}else{
					if(s[c]=='a'){
						ans=0;
						break;
					}else{
						if(s[a+1]=='.'){
							s[a]='.';
							a++;
							s[a]='a';
						}else{
							if(s[a+2]=='.'){
								s[a]='.';
								a+=2;
								s[a]='a';
							}else{
								ans=0;
								break;
							}
						}
					}
				}
			}
		}
//		printf("%s\n", s);
		}
	}
	if(ans==1)
		printf("Yes");
	else
		printf("No");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movl	%edi, -100(%rbp)
	movq	%rsi, -112(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-80(%rbp), %rdi
	leaq	-84(%rbp), %rsi
	leaq	-88(%rbp), %rcx
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	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	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-88(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-84(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -84(%rbp)
	movl	-80(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -80(%rbp)
	movl	$0, -76(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	movl	-84(%rbp), %edx
	movl	-80(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L5
.L17:
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$97, %al
	jne	.L6
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$98, %al
	jne	.L7
	movl	$1, -76(%rbp)
	jmp	.L18
.L7:
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L9
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L9:
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L11
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L11:
	movl	$0, -76(%rbp)
	jmp	.L18
.L6:
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L12
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L17
.L12:
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L13
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L17
.L13:
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$98, %al
	jne	.L14
	movl	$0, -76(%rbp)
	jmp	.L18
.L14:
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L15
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L15:
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L16
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L16:
	movl	$0, -76(%rbp)
	jmp	.L18
.L5:
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$98, %al
	jne	.L19
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$97, %al
	jne	.L20
	movl	$1, -76(%rbp)
	jmp	.L18
.L20:
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L21
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L21:
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L23
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L23:
	movl	$0, -76(%rbp)
	jmp	.L18
.L19:
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L24
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L5
.L24:
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L25
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L5
.L25:
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$97, %al
	jne	.L26
	movl	$0, -76(%rbp)
	jmp	.L18
.L26:
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L27
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L27:
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L28
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L28:
	movl	$0, -76(%rbp)
.L18:
	cmpl	$1, -76(%rbp)
	jne	.L29
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L30
.L29:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L30:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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 %d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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	%rbx
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rsi
	leaq	-28(%rbp), %r9
	subq	$40, %rsp
	.cfi_offset 3, -24
	leaq	-32(%rbp), %r8
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rax
	movq	%rsp, %rcx
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L102:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L102
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L103
.L4:
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsp, %rbx
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	-36(%rbp), %esi
	movl	-32(%rbp), %r8d
	movl	-28(%rbp), %edi
	subl	$1, %eax
	leal	-1(%rsi), %edx
	movslq	%eax, %r9
	leal	-1(%r8), %esi
	leal	-1(%rdi), %ecx
	movl	%eax, -40(%rbp)
	movb	$97, (%rsp,%r9)
	movslq	%edx, %r9
	movl	%edx, -36(%rbp)
	movl	%esi, -32(%rbp)
	movl	%ecx, -28(%rbp)
	movb	$98, (%rsp,%r9)
	cmpl	%edi, %r8d
	jle	.L104
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	$97, (%rbx,%rsi)
	je	.L105
.L7:
	leal	1(%rax), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L92
	leal	2(%rax), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L92
	cmpb	$98, (%rbx,%rcx)
	je	.L21
.L17:
	leal	1(%rdx), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L91
	leal	2(%rdx), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	jne	.L21
.L91:
	movslq	%edx, %rdx
	movl	$1, %r9d
	movb	$46, (%rbx,%rdx)
	movl	%edi, %edx
	movb	$98, (%rbx,%r8)
	cmpb	$97, (%rbx,%rsi)
	jne	.L7
.L105:
	cmpb	$98, (%rbx,%rcx)
	jne	.L17
	testb	%r10b, %r10b
	je	.L38
	movl	%eax, -40(%rbp)
.L38:
	testb	%r9b, %r9b
	je	.L26
.L94:
	movl	%edx, -36(%rbp)
.L26:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L40
.L104:
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$98, (%rbx,%rcx)
	je	.L106
.L22:
	leal	1(%rdx), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L93
	leal	2(%rdx), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L93
	cmpb	$97, (%rbx,%rsi)
	je	.L97
.L33:
	leal	1(%rax), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L36
	leal	2(%rax), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	jne	.L97
.L36:
	cltq
	movl	$1, %r9d
	movb	$46, (%rbx,%rax)
	movl	%edi, %eax
	movb	$97, (%rbx,%r8)
	cmpb	$98, (%rbx,%rcx)
	jne	.L22
.L106:
	cmpb	$97, (%rbx,%rsi)
	jne	.L33
	testb	%r9b, %r9b
	je	.L24
	movl	%eax, -40(%rbp)
.L24:
	testb	%r10b, %r10b
	jne	.L94
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L92:
	cltq
	movl	$1, %r10d
	movb	$46, (%rbx,%rax)
	movl	%edi, %eax
	movb	$97, (%rbx,%r8)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L93:
	movslq	%edx, %rdx
	movl	$1, %r10d
	movb	$46, (%rbx,%rdx)
	movl	%edi, %edx
	movb	$98, (%rbx,%r8)
	jmp	.L6
.L21:
	testb	%r10b, %r10b
	je	.L41
	movl	%eax, -40(%rbp)
.L41:
	testb	%r9b, %r9b
	je	.L14
.L95:
	movl	%edx, -36(%rbp)
.L14:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L40:
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L107
	movq	-8(%rbp), %rbx
	xorl	%eax, %eax
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L97:
	.cfi_restore_state
	testb	%r9b, %r9b
	je	.L37
	movl	%eax, -40(%rbp)
.L37:
	testb	%r10b, %r10b
	jne	.L95
	jmp	.L14
.L103:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L107:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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 %d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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	%rbx
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rsi
	leaq	-28(%rbp), %r9
	subq	$40, %rsp
	.cfi_offset 3, -24
	leaq	-32(%rbp), %r8
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rax
	movq	%rsp, %rcx
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L102:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L102
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L103
.L4:
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsp, %rbx
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	-36(%rbp), %esi
	movl	-32(%rbp), %r8d
	movl	-28(%rbp), %edi
	subl	$1, %eax
	leal	-1(%rsi), %edx
	movslq	%eax, %r9
	leal	-1(%r8), %esi
	leal	-1(%rdi), %ecx
	movl	%eax, -40(%rbp)
	movb	$97, (%rsp,%r9)
	movslq	%edx, %r9
	movl	%edx, -36(%rbp)
	movl	%esi, -32(%rbp)
	movl	%ecx, -28(%rbp)
	movb	$98, (%rsp,%r9)
	cmpl	%edi, %r8d
	jle	.L104
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	$97, (%rbx,%rsi)
	je	.L105
.L7:
	leal	1(%rax), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L92
	leal	2(%rax), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L92
	cmpb	$98, (%rbx,%rcx)
	je	.L21
.L17:
	leal	1(%rdx), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L91
	leal	2(%rdx), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	jne	.L21
.L91:
	movslq	%edx, %rdx
	movl	$1, %r9d
	movb	$46, (%rbx,%rdx)
	movl	%edi, %edx
	movb	$98, (%rbx,%r8)
	cmpb	$97, (%rbx,%rsi)
	jne	.L7
.L105:
	cmpb	$98, (%rbx,%rcx)
	jne	.L17
	testb	%r10b, %r10b
	je	.L38
	movl	%eax, -40(%rbp)
.L38:
	testb	%r9b, %r9b
	je	.L26
.L94:
	movl	%edx, -36(%rbp)
.L26:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L40
.L104:
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$98, (%rbx,%rcx)
	je	.L106
.L22:
	leal	1(%rdx), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L93
	leal	2(%rdx), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L93
	cmpb	$97, (%rbx,%rsi)
	je	.L97
.L33:
	leal	1(%rax), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	je	.L36
	leal	2(%rax), %edi
	movslq	%edi, %r8
	cmpb	$46, (%rbx,%r8)
	jne	.L97
.L36:
	cltq
	movl	$1, %r9d
	movb	$46, (%rbx,%rax)
	movl	%edi, %eax
	movb	$97, (%rbx,%r8)
	cmpb	$98, (%rbx,%rcx)
	jne	.L22
.L106:
	cmpb	$97, (%rbx,%rsi)
	jne	.L33
	testb	%r9b, %r9b
	je	.L24
	movl	%eax, -40(%rbp)
.L24:
	testb	%r10b, %r10b
	jne	.L94
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L92:
	cltq
	movl	$1, %r10d
	movb	$46, (%rbx,%rax)
	movl	%edi, %eax
	movb	$97, (%rbx,%r8)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L93:
	movslq	%edx, %rdx
	movl	$1, %r10d
	movb	$46, (%rbx,%rdx)
	movl	%edi, %edx
	movb	$98, (%rbx,%r8)
	jmp	.L6
.L21:
	testb	%r10b, %r10b
	je	.L41
	movl	%eax, -40(%rbp)
.L41:
	testb	%r9b, %r9b
	je	.L14
.L95:
	movl	%edx, -36(%rbp)
.L14:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L40:
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L107
	movq	-8(%rbp), %rbx
	xorl	%eax, %eax
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L97:
	.cfi_restore_state
	testb	%r9b, %r9b
	je	.L37
	movl	%eax, -40(%rbp)
.L37:
	testb	%r10b, %r10b
	jne	.L95
	jmp	.L14
.L103:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L107:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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 <stdlib.h>

int main(int argc, char *argv[])
{
	int n,a,b,c,d,ans;
	scanf("%d %d %d %d %d",&n, &a, &b, &c, &d);
	char s[n];
	scanf("%s", &s);
	a--;
	b--;
	c--;
	d--;
	ans=0;
	
	s[a]='a';
	s[b]='b';
//	printf("%s\n", s);
	if(c>d){	//a go first
		while(1){
		if(s[c]=='a'){
			if(s[d]=='b'){
				ans=1;
				break;
			}else{
				if(s[b+1]=='.'){
					s[b]='.';
					b++;
					s[b]='b';
				}else{
					if(s[b+2]=='.'){
						s[b]='.';
						b+=2;
						s[b]='b';
					}else{
						ans=0;
						break;
					}
				}
			}
		}else{
			if(s[a+1]=='.'){
				s[a]='.';
				a++;
				s[a]='a';
			}else{
				if(s[a+2]=='.'){
					s[a]='.';
					a+=2;
					s[a]='a';
				}else{
					if(s[d]=='b'){
						ans=0;
						break;
					}else{
						if(s[b+1]=='.'){
							s[b]='.';
							b++;
							s[b]='b';
						}else{
							if(s[b+2]=='.'){
								s[b]='.';
								b+=2;
								s[b]='b';
							}else{
								ans=0;
								break;
							}
						}
					}
				}
			}
		}
//		printf("%s\n", s);
		}
	}else{
		while(1){
		if(s[d]=='b'){
			if(s[c]=='a'){
				ans=1;
				break;
			}else{
				if(s[a+1]=='.'){
					s[a]='.';
					a++;
					s[a]='a';
				}else{
					if(s[a+2]=='.'){
						s[a]='.';
						a+=2;
						s[a]='a';
					}else{
						ans=0;
						break;
					}
				}
			}
		}else{
			if(s[b+1]=='.'){
				s[b]='.';
				b++;
				s[b]='b';
			}else{
				if(s[b+2]=='.'){
					s[b]='.';
					b+=2;
					s[b]='b';
				}else{
					if(s[c]=='a'){
						ans=0;
						break;
					}else{
						if(s[a+1]=='.'){
							s[a]='.';
							a++;
							s[a]='a';
						}else{
							if(s[a+2]=='.'){
								s[a]='.';
								a+=2;
								s[a]='a';
							}else{
								ans=0;
								break;
							}
						}
					}
				}
			}
		}
//		printf("%s\n", s);
		}
	}
	if(ans==1)
		printf("Yes");
	else
		printf("No");
	return 0;
}
9 1 3 7 6
.#..#..
 15 1 3 15 11
...#.#...#.#...
 4 1 3 7 6
.#..#..
 8 1 3 7 6
.#..#..
 15 0 3 15 13
...#.#...#.#...
 15 0 3 15 11
...#.#...#.#...
 1 1 3 7 6
.#..#..
 15 1 3 15 7
...#.#...#.#...
 8 1 4 7 6
.#..#..
 15 0 6 15 13
...#.#...#.#...

No Yes No No Yes Yes No No No Yes
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>

int main(int argc, char *argv[])
{
	int n,a,b,c,d,ans;
	scanf("%d %d %d %d %d",&n, &a, &b, &c, &d);
	char s[n];
	scanf("%s", &s);
	a--;
	b--;
	c--;
	d--;
	ans=0;
	
	s[a]='a';
	s[b]='b';
//	printf("%s\n", s);
	if(c>d){	//a go first
		while(1){
		if(s[c]=='a'){
			if(s[d]=='b'){
				ans=1;
				break;
			}else{
				if(s[b+1]=='.'){
					s[b]='.';
					b++;
					s[b]='b';
				}else{
					if(s[b+2]=='.'){
						s[b]='.';
						b+=2;
						s[b]='b';
					}else{
						ans=0;
						break;
					}
				}
			}
		}else{
			if(s[a+1]=='.'){
				s[a]='.';
				a++;
				s[a]='a';
			}else{
				if(s[a+2]=='.'){
					s[a]='.';
					a+=2;
					s[a]='a';
				}else{
					if(s[d]=='b'){
						ans=0;
						break;
					}else{
						if(s[b+1]=='.'){
							s[b]='.';
							b++;
							s[b]='b';
						}else{
							if(s[b+2]=='.'){
								s[b]='.';
								b+=2;
								s[b]='b';
							}else{
								ans=0;
								break;
							}
						}
					}
				}
			}
		}
//		printf("%s\n", s);
		}
	}else{
		while(1){
		if(s[d]=='b'){
			if(s[c]=='a'){
				ans=1;
				break;
			}else{
				if(s[a+1]=='.'){
					s[a]='.';
					a++;
					s[a]='a';
				}else{
					if(s[a+2]=='.'){
						s[a]='.';
						a+=2;
						s[a]='a';
					}else{
						ans=0;
						break;
					}
				}
			}
		}else{
			if(s[b+1]=='.'){
				s[b]='.';
				b++;
				s[b]='b';
			}else{
				if(s[b+2]=='.'){
					s[b]='.';
					b+=2;
					s[b]='b';
				}else{
					if(s[c]=='a'){
						ans=0;
						break;
					}else{
						if(s[a+1]=='.'){
							s[a]='.';
							a++;
							s[a]='a';
						}else{
							if(s[a+2]=='.'){
								s[a]='.';
								a+=2;
								s[a]='a';
							}else{
								ans=0;
								break;
							}
						}
					}
				}
			}
		}
//		printf("%s\n", s);
		}
	}
	if(ans==1)
		printf("Yes");
	else
		printf("No");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movl	%edi, -100(%rbp)
	movq	%rsi, -112(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-80(%rbp), %rdi
	leaq	-84(%rbp), %rsi
	leaq	-88(%rbp), %rcx
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	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	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-88(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-84(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -84(%rbp)
	movl	-80(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -80(%rbp)
	movl	$0, -76(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	movl	-84(%rbp), %edx
	movl	-80(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L5
.L17:
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$97, %al
	jne	.L6
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$98, %al
	jne	.L7
	movl	$1, -76(%rbp)
	jmp	.L18
.L7:
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L9
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L9:
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L11
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L11:
	movl	$0, -76(%rbp)
	jmp	.L18
.L6:
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L12
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L17
.L12:
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L13
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L17
.L13:
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$98, %al
	jne	.L14
	movl	$0, -76(%rbp)
	jmp	.L18
.L14:
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L15
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L15:
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L16
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L16:
	movl	$0, -76(%rbp)
	jmp	.L18
.L5:
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$98, %al
	jne	.L19
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$97, %al
	jne	.L20
	movl	$1, -76(%rbp)
	jmp	.L18
.L20:
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L21
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L21:
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L23
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L23:
	movl	$0, -76(%rbp)
	jmp	.L18
.L19:
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L24
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L5
.L24:
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L25
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L5
.L25:
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$97, %al
	jne	.L26
	movl	$0, -76(%rbp)
	jmp	.L18
.L26:
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L27
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L27:
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L28
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L28:
	movl	$0, -76(%rbp)
.L18:
	cmpl	$1, -76(%rbp)
	jne	.L29
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L30
.L29:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L30:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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 %d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movl	%edi, -100(%rbp)
	movq	%rsi, -112(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-80(%rbp), %rdi
	leaq	-84(%rbp), %rsi
	leaq	-88(%rbp), %rcx
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	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	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-88(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-84(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -84(%rbp)
	movl	-80(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -80(%rbp)
	movl	$0, -76(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	movl	-84(%rbp), %edx
	movl	-80(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L5
.L17:
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$97, %al
	jne	.L6
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$98, %al
	jne	.L7
	movl	$1, -76(%rbp)
	jmp	.L18
.L7:
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L9
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L9:
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L11
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L11:
	movl	$0, -76(%rbp)
	jmp	.L18
.L6:
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L12
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L17
.L12:
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L13
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L17
.L13:
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$98, %al
	jne	.L14
	movl	$0, -76(%rbp)
	jmp	.L18
.L14:
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L15
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L15:
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L16
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L17
.L16:
	movl	$0, -76(%rbp)
	jmp	.L18
.L5:
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$98, %al
	jne	.L19
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$97, %al
	jne	.L20
	movl	$1, -76(%rbp)
	jmp	.L18
.L20:
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L21
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L21:
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L23
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L23:
	movl	$0, -76(%rbp)
	jmp	.L18
.L19:
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L24
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L5
.L24:
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L25
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-88(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -88(%rbp)
	movl	-88(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$98, (%rdx,%rax)
	jmp	.L5
.L25:
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$97, %al
	jne	.L26
	movl	$0, -76(%rbp)
	jmp	.L18
.L26:
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L27
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L27:
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$46, %al
	jne	.L28
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$46, (%rdx,%rax)
	movl	-92(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -92(%rbp)
	movl	-92(%rbp), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$97, (%rdx,%rax)
	jmp	.L5
.L28:
	movl	$0, -76(%rbp)
.L18:
	cmpl	$1, -76(%rbp)
	jne	.L29
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L30
.L29:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L30:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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:
