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[101], *point;
	int i, flag = 0;
	scanf("%s", S);
	if ((point = strchr(S, 'C')) == NULL) {
		printf("No\n");
		return 0;
	} else {
		for (i = point - S; i < strlen(S); i++) {
			if (S[i] == 'F') {
				flag = 1;
				break;
			}
		}
	}	
	if (flag == 1) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.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
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -140(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movl	$67, %esi
	movq	%rax, %rdi
	call	strchr@PLT
	movq	%rax, -136(%rbp)
	cmpq	$0, -136(%rbp)
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L10
.L2:
	leaq	-128(%rbp), %rdx
	movq	-136(%rbp), %rax
	subq	%rdx, %rax
	movl	%eax, -144(%rbp)
	jmp	.L4
.L7:
	movl	-144(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	$70, %al
	jne	.L5
	movl	$1, -140(%rbp)
	jmp	.L6
.L5:
	addl	$1, -144(%rbp)
.L4:
	movl	-144(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L7
.L6:
	cmpl	$1, -140(%rbp)
	jne	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
.L10:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	movq	-8(%rbp), %rbx
	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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$120, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movl	$67, %esi
	movq	%rbp, %rdi
	call	strchr@PLT
	testq	%rax, %rax
	je	.L7
	movq	%rax, %rbx
	movq	%rbp, %rdi
	call	strlen@PLT
	subq	%rbp, %rbx
	leaq	-1(%rsp), %rcx
	movslq	%ebx, %rdx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rdx
	cmpb	$70, (%rcx,%rdx)
	je	.L5
.L4:
	cmpq	%rdx, %rax
	ja	.L6
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L3:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L12:
	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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$120, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movl	$67, %esi
	movq	%rbp, %rdi
	call	strchr@PLT
	testq	%rax, %rax
	je	.L7
	movq	%rax, %rbx
	movq	%rbp, %rdi
	call	strlen@PLT
	subq	%rbp, %rbx
	leaq	-1(%rsp), %rcx
	movslq	%ebx, %rdx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rdx
	cmpb	$70, (%rcx,%rdx)
	je	.L5
.L4:
	cmpq	%rdx, %rax
	ja	.L6
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L3:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L12:
	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[101], *point;
	int i, flag = 0;
	scanf("%s", S);
	if ((point = strchr(S, 'C')) == NULL) {
		printf("No\n");
		return 0;
	} else {
		for (i = point - S; i < strlen(S); i++) {
			if (S[i] == 'F') {
				flag = 1;
				break;
			}
		}
	}	
	if (flag == 1) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	return 0;
}

FC
 CODDFESTIVAL
 FCE
 IESTFVALCODE
 DF
 DODDFESTIVAL
 FCD
 EDOCLAVFTSEI
 EF
 LAVITSEFDDOD

No
 Yes
 No
 No
 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() {
	char S[101], *point;
	int i, flag = 0;
	scanf("%s", S);
	if ((point = strchr(S, 'C')) == NULL) {
		printf("No\n");
		return 0;
	} else {
		for (i = point - S; i < strlen(S); i++) {
			if (S[i] == 'F') {
				flag = 1;
				break;
			}
		}
	}	
	if (flag == 1) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.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
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -140(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movl	$67, %esi
	movq	%rax, %rdi
	call	strchr@PLT
	movq	%rax, -136(%rbp)
	cmpq	$0, -136(%rbp)
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L10
.L2:
	leaq	-128(%rbp), %rdx
	movq	-136(%rbp), %rax
	subq	%rdx, %rax
	movl	%eax, -144(%rbp)
	jmp	.L4
.L7:
	movl	-144(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	$70, %al
	jne	.L5
	movl	$1, -140(%rbp)
	jmp	.L6
.L5:
	addl	$1, -144(%rbp)
.L4:
	movl	-144(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L7
.L6:
	cmpl	$1, -140(%rbp)
	jne	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
.L10:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	movq	-8(%rbp), %rbx
	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	"%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.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
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -140(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movl	$67, %esi
	movq	%rax, %rdi
	call	strchr@PLT
	movq	%rax, -136(%rbp)
	cmpq	$0, -136(%rbp)
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L10
.L2:
	leaq	-128(%rbp), %rdx
	movq	-136(%rbp), %rax
	subq	%rdx, %rax
	movl	%eax, -144(%rbp)
	jmp	.L4
.L7:
	movl	-144(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	$70, %al
	jne	.L5
	movl	$1, -140(%rbp)
	jmp	.L6
.L5:
	addl	$1, -144(%rbp)
.L4:
	movl	-144(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L7
.L6:
	cmpl	$1, -140(%rbp)
	jne	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
.L10:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	movq	-8(%rbp), %rbx
	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:
