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>
 
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;
}
```

Assembly Code:

```assembly
	.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:
```

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	"%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
```assembly
	.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:
```
```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;
}
```
Given the following C 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;
}
```

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:

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 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;
}
```

Assembly Code:

```assembly
	.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:
```

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	"%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:
```