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 count[26];
char a;
 
int main(void){
    int i,j;
    while(1){
        i = scanf("%c",&a);
        if(a >= 'a' && a <= 'z')
            count[a - 'a']++;
        else if(a >= 'A' && a <= 'Z')
            count[a - 'A']++;
        if(i == EOF)
            break;
    }
    for(i = 0;i < 26;i++){
        printf("%c : %d\n",'a' + i,count[i]);
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	count
	.bss
	.align 32
	.type	count, @object
	.size	count, 104
count:
	.zero	104
	.globl	a
	.type	a, @object
	.size	a, 1
a:
	.zero	1
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"%c : %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	$16, %rsp
.L6:
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	%eax, -4(%rbp)
	movzbl	a(%rip), %eax
	cmpb	$96, %al
	jle	.L2
	movzbl	a(%rip), %eax
	cmpb	$122, %al
	jg	.L2
	movzbl	a(%rip), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	count(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L3
.L2:
	movzbl	a(%rip), %eax
	cmpb	$64, %al
	jle	.L3
	movzbl	a(%rip), %eax
	cmpb	$90, %al
	jg	.L3
	movzbl	a(%rip), %eax
	movsbl	%al, %eax
	subl	$65, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	count(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L3:
	cmpl	$-1, -4(%rbp)
	je	.L11
	jmp	.L6
.L11:
	nop
	movl	$0, -4(%rbp)
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	leal	97(%rdx), %ecx
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L7:
	cmpl	$25, -4(%rbp)
	jle	.L8
	movl	$0, %eax
	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	"%c"
.LC1:
	.string	"%c : %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	a(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	count(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	movsbq	%cl, %rcx
	addl	$1, (%rbx,%rcx,4)
.L3:
	cmpl	$-1, %eax
	je	.L10
.L4:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	a(%rip), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L11
	subl	$65, %edx
	cmpb	$25, %dl
	ja	.L3
	movsbq	%dl, %rdx
	addl	$1, (%rbx,%rdx,4)
	cmpl	$-1, %eax
	jne	.L4
.L10:
	leaq	count(%rip), %rbx
	movl	$97, %ebp
	leaq	.LC1(%rip), %r12
	leaq	104(%rbx), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx), %ecx
	movl	%ebp, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	addl	$1, %ebp
	call	__printf_chk@PLT
	cmpq	%r13, %rbx
	jne	.L5
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	a
	.bss
	.type	a, @object
	.size	a, 1
a:
	.zero	1
	.globl	count
	.align 32
	.type	count, @object
	.size	count, 104
count:
	.zero	104
	.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	"%c"
.LC1:
	.string	"%c : %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	a(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	count(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	movsbq	%cl, %rcx
	addl	$1, (%rbx,%rcx,4)
.L3:
	cmpl	$-1, %eax
	je	.L10
.L4:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	a(%rip), %edx
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	jbe	.L11
	subl	$65, %edx
	cmpb	$25, %dl
	ja	.L3
	movsbq	%dl, %rdx
	addl	$1, (%rbx,%rdx,4)
	cmpl	$-1, %eax
	jne	.L4
.L10:
	leaq	count(%rip), %rbx
	movl	$97, %ebp
	leaq	.LC1(%rip), %r12
	leaq	104(%rbx), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx), %ecx
	movl	%ebp, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	addl	$1, %ebp
	call	__printf_chk@PLT
	cmpq	%r13, %rbx
	jne	.L5
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	a
	.bss
	.type	a, @object
	.size	a, 1
a:
	.zero	1
	.globl	count
	.align 32
	.type	count, @object
	.size	count, 104
count:
	.zero	104
	.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 count[26];
char a;
 
int main(void){
    int i,j;
    while(1){
        i = scanf("%c",&a);
        if(a >= 'a' && a <= 'z')
            count[a - 'a']++;
        else if(a >= 'A' && a <= 'Z')
            count[a - 'A']++;
        if(i == EOF)
            break;
    }
    for(i = 0;i < 26;i++){
        printf("%c : %d\n",'a' + i,count[i]);
    }
    return 0;
}

This is ` pen.
 This si a pen.
 hTit si a pen.
 hTis ir a pen.
 hTis ri a pdn.
 hTis ri a odn.
 hTis ri a odo.
 hsiT rh a od.o
 Tsih is a od-o
 Tsih is ` od-o

a : 0
b : 0
c : 0
d : 0
e : 1
f : 0
g : 0
h : 1
i : 2
j : 0
k : 0
l : 0
m : 0
n : 1
o : 0
p : 1
q : 0
r : 0
s : 2
t : 1
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0
 a : 1
b : 0
c : 0
d : 0
e : 1
f : 0
g : 0
h : 1
i : 2
j : 0
k : 0
l : 0
m : 0
n : 1
o : 0
p : 1
q : 0
r : 0
s : 2
t : 1
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0
 a : 1
b : 0
c : 0
d : 0
e : 1
f : 0
g : 0
h : 1
i : 2
j : 0
k : 0
l : 0
m : 0
n : 1
o : 0
p : 1
q : 0
r : 0
s : 1
t : 2
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0
 a : 1
b : 0
c : 0
d : 0
e : 1
f : 0
g : 0
h : 1
i : 2
j : 0
k : 0
l : 0
m : 0
n : 1
o : 0
p : 1
q : 0
r : 1
s : 1
t : 1
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0
 a : 1
b : 0
c : 0
d : 1
e : 0
f : 0
g : 0
h : 1
i : 2
j : 0
k : 0
l : 0
m : 0
n : 1
o : 0
p : 1
q : 0
r : 1
s : 1
t : 1
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0
 a : 1
b : 0
c : 0
d : 1
e : 0
f : 0
g : 0
h : 1
i : 2
j : 0
k : 0
l : 0
m : 0
n : 1
o : 1
p : 0
q : 0
r : 1
s : 1
t : 1
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0
 a : 1
b : 0
c : 0
d : 1
e : 0
f : 0
g : 0
h : 1
i : 2
j : 0
k : 0
l : 0
m : 0
n : 0
o : 2
p : 0
q : 0
r : 1
s : 1
t : 1
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0
 a : 1
b : 0
c : 0
d : 1
e : 0
f : 0
g : 0
h : 2
i : 1
j : 0
k : 0
l : 0
m : 0
n : 0
o : 2
p : 0
q : 0
r : 1
s : 1
t : 1
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0
 a : 1
b : 0
c : 0
d : 1
e : 0
f : 0
g : 0
h : 1
i : 2
j : 0
k : 0
l : 0
m : 0
n : 0
o : 2
p : 0
q : 0
r : 0
s : 2
t : 1
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0
 a : 0
b : 0
c : 0
d : 1
e : 0
f : 0
g : 0
h : 1
i : 2
j : 0
k : 0
l : 0
m : 0
n : 0
o : 2
p : 0
q : 0
r : 0
s : 2
t : 1
u : 0
v : 0
w : 0
x : 0
y : 0
z : 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>
 
int count[26];
char a;
 
int main(void){
    int i,j;
    while(1){
        i = scanf("%c",&a);
        if(a >= 'a' && a <= 'z')
            count[a - 'a']++;
        else if(a >= 'A' && a <= 'Z')
            count[a - 'A']++;
        if(i == EOF)
            break;
    }
    for(i = 0;i < 26;i++){
        printf("%c : %d\n",'a' + i,count[i]);
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	count
	.bss
	.align 32
	.type	count, @object
	.size	count, 104
count:
	.zero	104
	.globl	a
	.type	a, @object
	.size	a, 1
a:
	.zero	1
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"%c : %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	$16, %rsp
.L6:
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	%eax, -4(%rbp)
	movzbl	a(%rip), %eax
	cmpb	$96, %al
	jle	.L2
	movzbl	a(%rip), %eax
	cmpb	$122, %al
	jg	.L2
	movzbl	a(%rip), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	count(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L3
.L2:
	movzbl	a(%rip), %eax
	cmpb	$64, %al
	jle	.L3
	movzbl	a(%rip), %eax
	cmpb	$90, %al
	jg	.L3
	movzbl	a(%rip), %eax
	movsbl	%al, %eax
	subl	$65, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	count(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L3:
	cmpl	$-1, -4(%rbp)
	je	.L11
	jmp	.L6
.L11:
	nop
	movl	$0, -4(%rbp)
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	leal	97(%rdx), %ecx
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L7:
	cmpl	$25, -4(%rbp)
	jle	.L8
	movl	$0, %eax
	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
	.globl	count
	.bss
	.align 32
	.type	count, @object
	.size	count, 104
count:
	.zero	104
	.globl	a
	.type	a, @object
	.size	a, 1
a:
	.zero	1
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"%c : %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	$16, %rsp
.L6:
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	%eax, -4(%rbp)
	movzbl	a(%rip), %eax
	cmpb	$96, %al
	jle	.L2
	movzbl	a(%rip), %eax
	cmpb	$122, %al
	jg	.L2
	movzbl	a(%rip), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	count(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L3
.L2:
	movzbl	a(%rip), %eax
	cmpb	$64, %al
	jle	.L3
	movzbl	a(%rip), %eax
	cmpb	$90, %al
	jg	.L3
	movzbl	a(%rip), %eax
	movsbl	%al, %eax
	subl	$65, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	count(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L3:
	cmpl	$-1, -4(%rbp)
	je	.L11
	jmp	.L6
.L11:
	nop
	movl	$0, -4(%rbp)
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	count(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	leal	97(%rdx), %ecx
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L7:
	cmpl	$25, -4(%rbp)
	jle	.L8
	movl	$0, %eax
	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:
