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>
#include <ctype.h>

int main()
{
    int i;

    int sum = 0;
    char W[11], T[1001];

    scanf("%s", W);
    for( i = 0; W[i]; ++i ) W[i] = tolower(W[i]);
    while( 1 ){
        scanf("%s", T);
        if( strcmp("END_OF_TEXT", T) == 0 ) break;
        for( i = 0; T[i]; ++i ) T[i] = tolower(T[i]);
        if( strcmp(W, T) == 0 ) ++sum;
    }

    printf("%d\n", sum);

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"END_OF_TEXT"
.LC2:
	.string	"%d\n"
	.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	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1040(%rbp)
	leaq	-1035(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1044(%rbp)
	jmp	.L2
.L3:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1035(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edx
	movl	-1044(%rbp), %eax
	cltq
	movb	%dl, -1035(%rbp,%rax)
	addl	$1, -1044(%rbp)
.L2:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1035(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
.L9:
	leaq	-1024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L13
	movl	$0, -1044(%rbp)
	jmp	.L6
.L7:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edx
	movl	-1044(%rbp), %eax
	cltq
	movb	%dl, -1024(%rbp,%rax)
	addl	$1, -1044(%rbp)
.L6:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L7
	leaq	-1024(%rbp), %rdx
	leaq	-1035(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L9
	addl	$1, -1040(%rbp)
	jmp	.L9
.L13:
	nop
	movl	-1040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"END_OF_TEXT"
.LC2:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1048, %rsp
	.cfi_def_cfa_offset 1104
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	xorl	%eax, %eax
	leaq	5(%rsp), %r15
	movq	%r15, %rsi
	call	__isoc99_scanf@PLT
	movsbq	5(%rsp), %rbx
	testb	%bl, %bl
	je	.L2
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movb	%dl, 5(%rsp)
	movsbq	6(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 6(%rsp)
	movsbq	7(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 7(%rsp)
	movsbq	8(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 8(%rsp)
	movsbq	9(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,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), %eax
	movb	%al, 14(%rsp)
.L2:
	xorl	%r12d, %r12d
	leaq	16(%rsp), %rbp
	movabsq	$6079655328688131653, %r14
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpq	%r14, 0(%rbp)
	je	.L48
.L4:
	movsbq	16(%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	%rbp, %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L48:
	cmpl	$5527621, 8(%rbp)
	jne	.L4
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1032(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$1048, %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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"END_OF_TEXT"
.LC2:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1048, %rsp
	.cfi_def_cfa_offset 1104
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	xorl	%eax, %eax
	leaq	5(%rsp), %r15
	movq	%r15, %rsi
	call	__isoc99_scanf@PLT
	movsbq	5(%rsp), %rbx
	testb	%bl, %bl
	je	.L2
	call	__ctype_tolower_loc@PLT
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movb	%dl, 5(%rsp)
	movsbq	6(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 6(%rsp)
	movsbq	7(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 7(%rsp)
	movsbq	8(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,4), %edx
	movb	%dl, 8(%rsp)
	movsbq	9(%rsp), %rdx
	testb	%dl, %dl
	je	.L2
	movl	(%rax,%rdx,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), %eax
	movb	%al, 14(%rsp)
.L2:
	xorl	%r12d, %r12d
	leaq	16(%rsp), %rbp
	movabsq	$6079655328688131653, %r14
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpq	%r14, 0(%rbp)
	je	.L48
.L4:
	movsbq	16(%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	%rbp, %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L48:
	cmpl	$5527621, 8(%rbp)
	jne	.L4
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1032(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$1048, %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:

#include <stdio.h>
#include <string.h>
#include <ctype.h>

int main()
{
    int i;

    int sum = 0;
    char W[11], T[1001];

    scanf("%s", W);
    for( i = 0; W[i]; ++i ) W[i] = tolower(W[i]);
    while( 1 ){
        scanf("%s", T);
        if( strcmp("END_OF_TEXT", T) == 0 ) break;
        for( i = 0; T[i]; ++i ) T[i] = tolower(T[i]);
        if( strcmp(W, T) == 0 ) ++sum;
    }

    printf("%d\n", sum);

    return 0;
}

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 unoptimized 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()
{
    int i;

    int sum = 0;
    char W[11], T[1001];

    scanf("%s", W);
    for( i = 0; W[i]; ++i ) W[i] = tolower(W[i]);
    while( 1 ){
        scanf("%s", T);
        if( strcmp("END_OF_TEXT", T) == 0 ) break;
        for( i = 0; T[i]; ++i ) T[i] = tolower(T[i]);
        if( strcmp(W, T) == 0 ) ++sum;
    }

    printf("%d\n", sum);

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"END_OF_TEXT"
.LC2:
	.string	"%d\n"
	.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	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1040(%rbp)
	leaq	-1035(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1044(%rbp)
	jmp	.L2
.L3:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1035(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edx
	movl	-1044(%rbp), %eax
	cltq
	movb	%dl, -1035(%rbp,%rax)
	addl	$1, -1044(%rbp)
.L2:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1035(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
.L9:
	leaq	-1024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L13
	movl	$0, -1044(%rbp)
	jmp	.L6
.L7:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edx
	movl	-1044(%rbp), %eax
	cltq
	movb	%dl, -1024(%rbp,%rax)
	addl	$1, -1044(%rbp)
.L6:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L7
	leaq	-1024(%rbp), %rdx
	leaq	-1035(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L9
	addl	$1, -1040(%rbp)
	jmp	.L9
.L13:
	nop
	movl	-1040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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.
val
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"END_OF_TEXT"
.LC2:
	.string	"%d\n"
	.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	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1040(%rbp)
	leaq	-1035(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1044(%rbp)
	jmp	.L2
.L3:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1035(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edx
	movl	-1044(%rbp), %eax
	cltq
	movb	%dl, -1035(%rbp,%rax)
	addl	$1, -1044(%rbp)
.L2:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1035(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
.L9:
	leaq	-1024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L13
	movl	$0, -1044(%rbp)
	jmp	.L6
.L7:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edx
	movl	-1044(%rbp), %eax
	cltq
	movb	%dl, -1024(%rbp,%rax)
	addl	$1, -1044(%rbp)
.L6:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L7
	leaq	-1024(%rbp), %rdx
	leaq	-1035(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L9
	addl	$1, -1040(%rbp)
	jmp	.L9
.L13:
	nop
	movl	-1040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
