Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main(){
 char T[11],W[1001];
 char F[12]="END_OF_TEXT";
 int count=0,a;
 scanf("%s",T);
 for(a=0;T[a]!='\0';a++) T[a]=tolower(T[a]); 
 while(1){
   scanf("%s",W);
   if(strcmp(W,F)==0) break;
   for(a=0;W[a]!='\0';a++) W[a]=tolower(W[a]);
   if(strcmp(W,T)==0) count++;
  }
    printf("%d\n",count);
return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	movabsq	$6079655328688131653, %rax
	leaq	9(%rsp), %r15
	movl	$5527621, 28(%rsp)
	movq	%r15, %rsi
	movq	%rax, 20(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movsbq	9(%rsp), %rbx
	testb	%bl, %bl
	je	.L2
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movb	%dl, 9(%rsp)
	movsbq	10(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 10(%rsp)
	movsbq	11(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 11(%rsp)
	movsbq	12(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 12(%rsp)
	movsbq	13(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 13(%rsp)
	movsbq	14(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 14(%rsp)
	movsbq	15(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 15(%rsp)
	movsbq	16(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 16(%rsp)
	movsbq	17(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 17(%rsp)
	movsbq	18(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %eax
	movb	%al, 18(%rsp)
.L2:
	xorl	%r12d, %r12d
	leaq	32(%rsp), %rbp
	leaq	20(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	0(%r13), %rax
	cmpq	%rax, 0(%rbp)
	je	.L48
.L4:
	movsbq	32(%rsp), %rbx
	testb	%bl, %bl
	je	.L7
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rcx
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rcx,%rbx,4), %edx
	addq	$1, %rax
	movb	%dl, -1(%rax)
	movsbq	(%rax), %rbx
	testb	%bl, %bl
	jne	.L8
.L7:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L48:
	movl	8(%r13), %eax
	cmpl	%eax, 8(%rbp)
	jne	.L4
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$1064, %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
.L49:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	movabsq	$6079655328688131653, %rax
	leaq	9(%rsp), %r15
	movl	$5527621, 28(%rsp)
	movq	%r15, %rsi
	movq	%rax, 20(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movsbq	9(%rsp), %rbx
	testb	%bl, %bl
	je	.L2
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movb	%dl, 9(%rsp)
	movsbq	10(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 10(%rsp)
	movsbq	11(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 11(%rsp)
	movsbq	12(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 12(%rsp)
	movsbq	13(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 13(%rsp)
	movsbq	14(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 14(%rsp)
	movsbq	15(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 15(%rsp)
	movsbq	16(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 16(%rsp)
	movsbq	17(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 17(%rsp)
	movsbq	18(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %eax
	movb	%al, 18(%rsp)
.L2:
	xorl	%r12d, %r12d
	leaq	32(%rsp), %rbp
	leaq	20(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	0(%r13), %rax
	cmpq	%rax, 0(%rbp)
	je	.L48
.L4:
	movsbq	32(%rsp), %rbx
	testb	%bl, %bl
	je	.L7
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rcx
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rcx,%rbx,4), %edx
	addq	$1, %rax
	movb	%dl, -1(%rax)
	movsbq	(%rax), %rbx
	testb	%bl, %bl
	jne	.L8
.L7:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L48:
	movl	8(%r13), %eax
	cmpl	%eax, 8(%rbp)
	jne	.L4
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$1064, %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
.L49:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	movabsq	$6079655328688131653, %rax
	leaq	9(%rsp), %r15
	movl	$5527621, 28(%rsp)
	movq	%r15, %rsi
	movq	%rax, 20(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movsbq	9(%rsp), %rbx
	testb	%bl, %bl
	je	.L2
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movb	%dl, 9(%rsp)
	movsbq	10(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 10(%rsp)
	movsbq	11(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 11(%rsp)
	movsbq	12(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 12(%rsp)
	movsbq	13(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 13(%rsp)
	movsbq	14(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 14(%rsp)
	movsbq	15(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 15(%rsp)
	movsbq	16(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 16(%rsp)
	movsbq	17(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 17(%rsp)
	movsbq	18(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %eax
	movb	%al, 18(%rsp)
.L2:
	xorl	%r12d, %r12d
	leaq	32(%rsp), %rbp
	leaq	20(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	0(%r13), %rax
	cmpq	%rax, 0(%rbp)
	je	.L48
.L4:
	movsbq	32(%rsp), %rbx
	testb	%bl, %bl
	je	.L7
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rcx
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rcx,%rbx,4), %edx
	addq	$1, %rax
	movb	%dl, -1(%rax)
	movsbq	(%rax), %rbx
	testb	%bl, %bl
	jne	.L8
.L7:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L48:
	movl	8(%r13), %eax
	cmpl	%eax, 8(%rbp)
	jne	.L4
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$1064, %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
.L49:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.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:
```
```c
#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main(){
 char T[11],W[1001];
 char F[12]="END_OF_TEXT";
 int count=0,a;
 scanf("%s",T);
 for(a=0;T[a]!='\0';a++) T[a]=tolower(T[a]); 
 while(1){
   scanf("%s",W);
   if(strcmp(W,F)==0) break;
   for(a=0;W[a]!='\0';a++) W[a]=tolower(W[a]);
   if(strcmp(W,T)==0) count++;
  }
    printf("%d\n",count);
return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main(){
 char T[11],W[1001];
 char F[12]="END_OF_TEXT";
 int count=0,a;
 scanf("%s",T);
 for(a=0;T[a]!='\0';a++) T[a]=tolower(T[a]); 
 while(1){
   scanf("%s",W);
   if(strcmp(W,F)==0) break;
   for(a=0;W[a]!='\0';a++) W[a]=tolower(W[a]);
   if(strcmp(W,T)==0) count++;
  }
    printf("%d\n",count);
return 0;
}
```

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.
Optimized Assembly Code:

computer
Nurtures computer scientists and highly-skilled computer engineers
who will create and exploit "knowledge" for the enw era.
Provides an outstanding computer environment.
END_OF_TEXT
 comquter
Nurtures computer scientists and highly-skilled computer engineers
who will create and tiolpxe "knowledge" for the enw era.
Provides an outstanding computer environment.
END_OF_TEXT
 computer
Nurtures computer scientists and highly-skilled computes engineers
who will create and exploit "knowledge" for the enw era.
Provides an outstanding computer environment.
END_OF_TEXT
 comquter
Nurtures computer stsitneics and highly-skilked computer engineers
who wilk create and tiolpxe "knowledge" for the enw era.
Provides an sutotanding comquter environment.
END_OF_TEXT
 computer
Nurtures computer scientists and highly-skilled computer engineers
who will create and tiolpxe "knowledge" for the enw era.
Provides an outstanding computer environment.
END_OF_TEXT
 comquter
Nurtures computer scientists and highly-skilled computer engineers
who will create and tiolpxe "knowledge" for the enw era.
Provides an sutotanding computer environment.
END_OF_TEXT
 comquter
Nurtures computer scientists and highlx-skilled computer engineers
who will create and tiolpxe "knowledge" for the enw era.
Provides an sutotanding computer environment.
END_OF_TEXT
 comquter
Nurtures computer scientists and highlx-skilled computer engineers
who will create and tiolpxe "knowledge" for the enw era.
Provides an sutotanding ctmpuoer environment.
END_OF_TEXT
 comquter
serutruN computer scientists and highlx-skilled computer engineers
who will create and tiolpxe "knowledge" for the enw era.
Provides an sutotanding ctmpuoer environment.
END_OF_TEXT
 comquter
serutruN computer scientists aod highlx-skilled computer engineers
who will create and tiolpxe "knowledge" for the enw era.
Provides an sutotanding ctmpuoer environment.
END_OF_TEXT

3
 0
 2
 1
 3
 0
 0
 0
 0
 0

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main(){
 char T[11],W[1001];
 char F[12]="END_OF_TEXT";
 int count=0,a;
 scanf("%s",T);
 for(a=0;T[a]!='\0';a++) T[a]=tolower(T[a]); 
 while(1){
   scanf("%s",W);
   if(strcmp(W,F)==0) break;
   for(a=0;W[a]!='\0';a++) W[a]=tolower(W[a]);
   if(strcmp(W,T)==0) count++;
  }
    printf("%d\n",count);
return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	movabsq	$6079655328688131653, %rax
	leaq	9(%rsp), %r15
	movl	$5527621, 28(%rsp)
	movq	%r15, %rsi
	movq	%rax, 20(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movsbq	9(%rsp), %rbx
	testb	%bl, %bl
	je	.L2
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movb	%dl, 9(%rsp)
	movsbq	10(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 10(%rsp)
	movsbq	11(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 11(%rsp)
	movsbq	12(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 12(%rsp)
	movsbq	13(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 13(%rsp)
	movsbq	14(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 14(%rsp)
	movsbq	15(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 15(%rsp)
	movsbq	16(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 16(%rsp)
	movsbq	17(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 17(%rsp)
	movsbq	18(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %eax
	movb	%al, 18(%rsp)
.L2:
	xorl	%r12d, %r12d
	leaq	32(%rsp), %rbp
	leaq	20(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	0(%r13), %rax
	cmpq	%rax, 0(%rbp)
	je	.L48
.L4:
	movsbq	32(%rsp), %rbx
	testb	%bl, %bl
	je	.L7
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rcx
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rcx,%rbx,4), %edx
	addq	$1, %rax
	movb	%dl, -1(%rax)
	movsbq	(%rax), %rbx
	testb	%bl, %bl
	jne	.L8
.L7:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L48:
	movl	8(%r13), %eax
	cmpl	%eax, 8(%rbp)
	jne	.L4
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$1064, %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
.L49:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	movabsq	$6079655328688131653, %rax
	leaq	9(%rsp), %r15
	movl	$5527621, 28(%rsp)
	movq	%r15, %rsi
	movq	%rax, 20(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movsbq	9(%rsp), %rbx
	testb	%bl, %bl
	je	.L2
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movb	%dl, 9(%rsp)
	movsbq	10(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 10(%rsp)
	movsbq	11(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 11(%rsp)
	movsbq	12(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 12(%rsp)
	movsbq	13(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 13(%rsp)
	movsbq	14(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 14(%rsp)
	movsbq	15(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 15(%rsp)
	movsbq	16(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 16(%rsp)
	movsbq	17(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 17(%rsp)
	movsbq	18(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %eax
	movb	%al, 18(%rsp)
.L2:
	xorl	%r12d, %r12d
	leaq	32(%rsp), %rbp
	leaq	20(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	0(%r13), %rax
	cmpq	%rax, 0(%rbp)
	je	.L48
.L4:
	movsbq	32(%rsp), %rbx
	testb	%bl, %bl
	je	.L7
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rcx
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rcx,%rbx,4), %edx
	addq	$1, %rax
	movb	%dl, -1(%rax)
	movsbq	(%rax), %rbx
	testb	%bl, %bl
	jne	.L8
.L7:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L48:
	movl	8(%r13), %eax
	cmpl	%eax, 8(%rbp)
	jne	.L4
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$1064, %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
.L49:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.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:
```