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() {
	char s[103], p[102];
	int l, i, b = 0, j, k;
	fgets(s, 121, stdin);
	l = strlen(s) - 1;
	fgets(p, l, stdin);
	k = strlen(p) - 1;
	if (k == 1) {
		if (strchr(s, p[0]) != NULL) b++;
	}else{
		for(i = 0; i < l - 1; ++i) {
				if (strstr(s, p) != NULL) ++b;
			s[102] = s[0];
			for (j = 0; j < l - 1; ++j) {
				s[j] = s[j + 1];
			}
		s[l - 1] = s[102];
		}
	}
	if (b != 0) puts("Yes");
	else puts("No");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
	.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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -240(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$121, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subl	$1, %eax
	movl	%eax, -232(%rbp)
	movq	stdin(%rip), %rdx
	movl	-232(%rbp), %ecx
	leaq	-224(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subl	$1, %eax
	movl	%eax, -228(%rbp)
	cmpl	$1, -228(%rbp)
	jne	.L2
	movzbl	-224(%rbp), %eax
	movsbl	%al, %edx
	leaq	-112(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	strchr@PLT
	testq	%rax, %rax
	je	.L3
	addl	$1, -240(%rbp)
	jmp	.L3
.L2:
	movl	$0, -244(%rbp)
	jmp	.L4
.L8:
	leaq	-224(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	je	.L5
	addl	$1, -240(%rbp)
.L5:
	movzbl	-112(%rbp), %eax
	movb	%al, -10(%rbp)
	movl	$0, -236(%rbp)
	jmp	.L6
.L7:
	movl	-236(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-236(%rbp), %eax
	cltq
	movb	%dl, -112(%rbp,%rax)
	addl	$1, -236(%rbp)
.L6:
	movl	-232(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -236(%rbp)
	jl	.L7
	movl	-232(%rbp), %eax
	subl	$1, %eax
	movzbl	-10(%rbp), %edx
	cltq
	movb	%dl, -112(%rbp,%rax)
	addl	$1, -244(%rbp)
.L4:
	movl	-232(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -244(%rbp)
	jl	.L8
.L3:
	cmpl	$0, -240(%rbp)
	je	.L9
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"Yes"
.LC1:
	.string	"No"
	.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
	movl	$121, %edx
	movl	$103, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	stdin(%rip), %rcx
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	144(%rsp), %r15
	leaq	32(%rsp), %r12
	movq	%r15, %rdi
	call	__fgets_chk@PLT
	movq	%r15, %rdi
	call	strlen@PLT
	movq	stdin(%rip), %rcx
	movq	%r12, %rdi
	movl	$102, %esi
	leal	-1(%rax), %edx
	movq	%rax, %rbx
	movl	%eax, %r13d
	call	__fgets_chk@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	cmpq	$2, %rax
	je	.L2
	leal	-2(%rbx), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L4
	leaq	145(%rsp), %rax
	subl	$3, %r13d
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	movq	%rax, 16(%rsp)
	movslq	12(%rsp), %rax
	addq	$1, %r13
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r15, %rdi
	call	strstr@PLT
	movq	16(%rsp), %rsi
	movq	%r13, %rdx
	movq	%r15, %rdi
	movzbl	144(%rsp), %ebx
	cmpq	$1, %rax
	sbbl	$-1, %ebp
	addl	$1, %r14d
	movb	%bl, 246(%rsp)
	call	memmove@PLT
	movq	24(%rsp), %rax
	movb	%bl, 144(%rsp,%rax)
	cmpl	%r14d, 12(%rsp)
	jne	.L3
	testl	%ebp, %ebp
	je	.L4
.L7:
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
.L5:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$264, %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
.L2:
	.cfi_restore_state
	movsbl	32(%rsp), %esi
	movq	%r15, %rdi
	call	strchr@PLT
	testq	%rax, %rax
	jne	.L7
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L18:
	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	"Yes"
.LC1:
	.string	"No"
	.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
	movl	$121, %edx
	movl	$103, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	stdin(%rip), %rcx
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	144(%rsp), %r15
	leaq	32(%rsp), %r12
	movq	%r15, %rdi
	call	__fgets_chk@PLT
	movq	%r15, %rdi
	call	strlen@PLT
	movq	stdin(%rip), %rcx
	movq	%r12, %rdi
	movl	$102, %esi
	leal	-1(%rax), %edx
	movq	%rax, %rbx
	movl	%eax, %r13d
	call	__fgets_chk@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	cmpq	$2, %rax
	je	.L2
	leal	-2(%rbx), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L4
	leaq	145(%rsp), %rax
	subl	$3, %r13d
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	movq	%rax, 16(%rsp)
	movslq	12(%rsp), %rax
	addq	$1, %r13
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r15, %rdi
	call	strstr@PLT
	movq	16(%rsp), %rsi
	movq	%r13, %rdx
	movq	%r15, %rdi
	movzbl	144(%rsp), %ebx
	cmpq	$1, %rax
	sbbl	$-1, %ebp
	addl	$1, %r14d
	movb	%bl, 246(%rsp)
	call	memmove@PLT
	movq	24(%rsp), %rax
	movb	%bl, 144(%rsp,%rax)
	cmpl	%r14d, 12(%rsp)
	jne	.L3
	testl	%ebp, %ebp
	je	.L4
.L7:
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
.L5:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$264, %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
.L2:
	.cfi_restore_state
	movsbl	32(%rsp), %esi
	movq	%r15, %rdi
	call	strchr@PLT
	testq	%rax, %rax
	jne	.L7
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L18:
	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() {
	char s[103], p[102];
	int l, i, b = 0, j, k;
	fgets(s, 121, stdin);
	l = strlen(s) - 1;
	fgets(p, l, stdin);
	k = strlen(p) - 1;
	if (k == 1) {
		if (strchr(s, p[0]) != NULL) b++;
	}else{
		for(i = 0; i < l - 1; ++i) {
				if (strstr(s, p) != NULL) ++b;
			s[102] = s[0];
			for (j = 0; j < l - 1; ++j) {
				s[j] = s[j + 1];
			}
		s[l - 1] = s[102];
		}
	}
	if (b != 0) puts("Yes");
	else puts("No");
	return 0;
}

vanceknowledgetoad
edvanca
 vanceknowledgetoad
bdvanced
 vanceknowledgetoad
edvamca
 vanceknowledgetoad
cdvanced
 daotegdelwonkecnav
edvamca
 vanceknowmedgetoad
cdvanced
 daotegdelwonkecnav
advamce
 vbnceknowmedgetoad
cdvanced
 daovegdelwonkecnat
advamce
 vbnceknowledgetoad
cdvanced

No
 No
 No
 No
 No
 No
 No
 No
 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() {
	char s[103], p[102];
	int l, i, b = 0, j, k;
	fgets(s, 121, stdin);
	l = strlen(s) - 1;
	fgets(p, l, stdin);
	k = strlen(p) - 1;
	if (k == 1) {
		if (strchr(s, p[0]) != NULL) b++;
	}else{
		for(i = 0; i < l - 1; ++i) {
				if (strstr(s, p) != NULL) ++b;
			s[102] = s[0];
			for (j = 0; j < l - 1; ++j) {
				s[j] = s[j + 1];
			}
		s[l - 1] = s[102];
		}
	}
	if (b != 0) puts("Yes");
	else puts("No");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
	.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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -240(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$121, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subl	$1, %eax
	movl	%eax, -232(%rbp)
	movq	stdin(%rip), %rdx
	movl	-232(%rbp), %ecx
	leaq	-224(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subl	$1, %eax
	movl	%eax, -228(%rbp)
	cmpl	$1, -228(%rbp)
	jne	.L2
	movzbl	-224(%rbp), %eax
	movsbl	%al, %edx
	leaq	-112(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	strchr@PLT
	testq	%rax, %rax
	je	.L3
	addl	$1, -240(%rbp)
	jmp	.L3
.L2:
	movl	$0, -244(%rbp)
	jmp	.L4
.L8:
	leaq	-224(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	je	.L5
	addl	$1, -240(%rbp)
.L5:
	movzbl	-112(%rbp), %eax
	movb	%al, -10(%rbp)
	movl	$0, -236(%rbp)
	jmp	.L6
.L7:
	movl	-236(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-236(%rbp), %eax
	cltq
	movb	%dl, -112(%rbp,%rax)
	addl	$1, -236(%rbp)
.L6:
	movl	-232(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -236(%rbp)
	jl	.L7
	movl	-232(%rbp), %eax
	subl	$1, %eax
	movzbl	-10(%rbp), %edx
	cltq
	movb	%dl, -112(%rbp,%rax)
	addl	$1, -244(%rbp)
.L4:
	movl	-232(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -244(%rbp)
	jl	.L8
.L3:
	cmpl	$0, -240(%rbp)
	je	.L9
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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"
	.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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -240(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$121, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subl	$1, %eax
	movl	%eax, -232(%rbp)
	movq	stdin(%rip), %rdx
	movl	-232(%rbp), %ecx
	leaq	-224(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subl	$1, %eax
	movl	%eax, -228(%rbp)
	cmpl	$1, -228(%rbp)
	jne	.L2
	movzbl	-224(%rbp), %eax
	movsbl	%al, %edx
	leaq	-112(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	strchr@PLT
	testq	%rax, %rax
	je	.L3
	addl	$1, -240(%rbp)
	jmp	.L3
.L2:
	movl	$0, -244(%rbp)
	jmp	.L4
.L8:
	leaq	-224(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	je	.L5
	addl	$1, -240(%rbp)
.L5:
	movzbl	-112(%rbp), %eax
	movb	%al, -10(%rbp)
	movl	$0, -236(%rbp)
	jmp	.L6
.L7:
	movl	-236(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-236(%rbp), %eax
	cltq
	movb	%dl, -112(%rbp,%rax)
	addl	$1, -236(%rbp)
.L6:
	movl	-232(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -236(%rbp)
	jl	.L7
	movl	-232(%rbp), %eax
	subl	$1, %eax
	movzbl	-10(%rbp), %edx
	cltq
	movb	%dl, -112(%rbp,%rax)
	addl	$1, -244(%rbp)
.L4:
	movl	-232(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -244(%rbp)
	jl	.L8
.L3:
	cmpl	$0, -240(%rbp)
	je	.L9
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
