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>

int main(void) {
	int count[3] = {0};
	char S[8];
	int i;
	if (scanf("%7s", S) != 1) return 1;
	for (i = 0; S[i] != '\0'; i++) count[S[i] - 'a']++;
	puts(count[0] == 1 && count[1] == 1 && count[2] == 1 ? "Yes" : "No");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%7s"
.LC1:
	.string	"Yes"
.LC2:
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -28(%rbp)
	movl	$0, -20(%rbp)
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L8
.L2:
	movl	$0, -32(%rbp)
	jmp	.L4
.L5:
	movl	-32(%rbp), %eax
	cltq
	movzbl	-16(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-28(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -28(%rbp,%rax,4)
	addl	$1, -32(%rbp)
.L4:
	movl	-32(%rbp), %eax
	cltq
	movzbl	-16(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L5
	movl	-28(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-24(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-20(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	leaq	.LC1(%rip), %rax
	jmp	.L7
.L6:
	leaq	.LC2(%rip), %rax
.L7:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L8:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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"
.LC2:
	.string	"%7s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC2(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movl	$0, 12(%rsp)
	movq	$0, 4(%rsp)
	call	__isoc99_scanf@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	cmpl	$1, %r8d
	jne	.L1
	movsbl	16(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	movl	$1, 4(%rsp,%rax,4)
	movsbl	17(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	movsbl	18(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	movsbl	19(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	movsbl	20(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	movsbl	21(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	movsbl	22(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
.L3:
	cmpl	$1, 4(%rsp)
	leaq	.LC1(%rip), %rdi
	je	.L34
.L4:
	call	puts@PLT
	xorl	%eax, %eax
.L1:
	movq	24(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L35
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore_state
	cmpl	$1, 8(%rsp)
	jne	.L4
	cmpl	$1, 12(%rsp)
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
	jmp	.L4
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
.LC2:
	.string	"%7s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC2(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movl	$0, 12(%rsp)
	movq	$0, 4(%rsp)
	call	__isoc99_scanf@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	cmpl	$1, %r8d
	jne	.L1
	movsbl	16(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	movl	$1, 4(%rsp,%rax,4)
	movsbl	17(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	movsbl	18(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	movsbl	19(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	movsbl	20(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	movsbl	21(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	movsbl	22(%rsp), %eax
	testb	%al, %al
	je	.L3
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
.L3:
	cmpl	$1, 4(%rsp)
	leaq	.LC1(%rip), %rdi
	je	.L34
.L4:
	call	puts@PLT
	xorl	%eax, %eax
.L1:
	movq	24(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L35
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore_state
	cmpl	$1, 8(%rsp)
	jne	.L4
	cmpl	$1, 12(%rsp)
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
	jmp	.L4
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main(void) {
	int count[3] = {0};
	char S[8];
	int i;
	if (scanf("%7s", S) != 1) return 1;
	for (i = 0; S[i] != '\0'; i++) count[S[i] - 'a']++;
	puts(count[0] == 1 && count[1] == 1 && count[2] == 1 ? "Yes" : "No");
	return 0;
}

bba
 cab
 abb
 aab
 aac
 bbb
 baa
 caa
 bb`
 `bb

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

int main(void) {
	int count[3] = {0};
	char S[8];
	int i;
	if (scanf("%7s", S) != 1) return 1;
	for (i = 0; S[i] != '\0'; i++) count[S[i] - 'a']++;
	puts(count[0] == 1 && count[1] == 1 && count[2] == 1 ? "Yes" : "No");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%7s"
.LC1:
	.string	"Yes"
.LC2:
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -28(%rbp)
	movl	$0, -20(%rbp)
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L8
.L2:
	movl	$0, -32(%rbp)
	jmp	.L4
.L5:
	movl	-32(%rbp), %eax
	cltq
	movzbl	-16(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-28(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -28(%rbp,%rax,4)
	addl	$1, -32(%rbp)
.L4:
	movl	-32(%rbp), %eax
	cltq
	movzbl	-16(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L5
	movl	-28(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-24(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-20(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	leaq	.LC1(%rip), %rax
	jmp	.L7
.L6:
	leaq	.LC2(%rip), %rax
.L7:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L8:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"%7s"
.LC1:
	.string	"Yes"
.LC2:
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -28(%rbp)
	movl	$0, -20(%rbp)
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L8
.L2:
	movl	$0, -32(%rbp)
	jmp	.L4
.L5:
	movl	-32(%rbp), %eax
	cltq
	movzbl	-16(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-28(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -28(%rbp,%rax,4)
	addl	$1, -32(%rbp)
.L4:
	movl	-32(%rbp), %eax
	cltq
	movzbl	-16(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L5
	movl	-28(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-24(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-20(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	leaq	.LC1(%rip), %rax
	jmp	.L7
.L6:
	leaq	.LC2(%rip), %rax
.L7:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L8:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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:
