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 n;
	int count[26];
	int i;
	for (i = 0; i < 26; i++) count[i] = 9999;
	if (scanf("%d", &n) != 1) return 1;
	for (i = 0; i < n; i++) {
		int localCount[26] = {0};
		char S[64];
		int j;
		if (scanf("%63s", S) != 1) return 1;
		for (j = 0; S[j] != '\0'; j++) {
			int idx = S[j] - 'a';
			if (0 <= idx && idx < 26) localCount[idx]++;
		}
		for (j = 0; j < 26; j++) {
			if (localCount[j] < count[j]) count[j] = localCount[j];
		}
	}
	for (i = 0; i < 26; i++) {
		int c = 'a' + i;
		int j;
		for (j = 0; j < count[i]; j++) putchar(c);
	}
	putchar('\n');
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%63s"
	.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	$336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -324(%rbp)
	jmp	.L2
.L3:
	movl	-324(%rbp), %eax
	cltq
	movl	$9999, -304(%rbp,%rax,4)
	addl	$1, -324(%rbp)
.L2:
	cmpl	$25, -324(%rbp)
	jle	.L3
	leaq	-328(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L4
	movl	$1, %eax
	jmp	.L19
.L4:
	movl	$0, -324(%rbp)
	jmp	.L6
.L14:
	leaq	-192(%rbp), %rdx
	movl	$0, %eax
	movl	$13, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L7
	movl	$1, %eax
	jmp	.L19
.L7:
	movl	$0, -320(%rbp)
	jmp	.L8
.L10:
	movl	-320(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movl	%eax, -308(%rbp)
	cmpl	$0, -308(%rbp)
	js	.L9
	cmpl	$25, -308(%rbp)
	jg	.L9
	movl	-308(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-308(%rbp), %eax
	cltq
	movl	%edx, -192(%rbp,%rax,4)
.L9:
	addl	$1, -320(%rbp)
.L8:
	movl	-320(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L10
	movl	$0, -320(%rbp)
	jmp	.L11
.L13:
	movl	-320(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %edx
	movl	-320(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-320(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %edx
	movl	-320(%rbp), %eax
	cltq
	movl	%edx, -304(%rbp,%rax,4)
.L12:
	addl	$1, -320(%rbp)
.L11:
	cmpl	$25, -320(%rbp)
	jle	.L13
	addl	$1, -324(%rbp)
.L6:
	movl	-328(%rbp), %eax
	cmpl	%eax, -324(%rbp)
	jl	.L14
	movl	$0, -324(%rbp)
	jmp	.L15
.L18:
	movl	-324(%rbp), %eax
	addl	$97, %eax
	movl	%eax, -312(%rbp)
	movl	$0, -316(%rbp)
	jmp	.L16
.L17:
	movl	-312(%rbp), %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -316(%rbp)
.L16:
	movl	-324(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %eax
	cmpl	%eax, -316(%rbp)
	jl	.L17
	addl	$1, -324(%rbp)
.L15:
	cmpl	$25, -324(%rbp)
	jle	.L18
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
.L19:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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
.LC2:
	.string	"%d"
.LC3:
	.string	"%63s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC2(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$328, %rsp
	.cfi_def_cfa_offset 384
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 312(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movq	%rax, 112(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L1
	cmpl	$0, 12(%rsp)
	jle	.L7
	movl	%eax, %r12d
	xorl	%r15d, %r15d
	leaq	128(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	240(%rsp), %r14
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rax
	movl	$13, %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	rep stosq
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L1
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	subl	$97, %eax
	cmpl	$25, %eax
	ja	.L8
	cltq
	addq	$1, %rdx
	addl	$1, 128(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L11
.L10:
	movdqa	16(%rsp), %xmm0
	movl	224(%rsp), %edx
	movdqa	128(%rsp), %xmm1
	movl	112(%rsp), %eax
	pcmpgtd	128(%rsp), %xmm0
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	pand	%xmm0, %xmm1
	pandn	16(%rsp), %xmm0
	por	%xmm1, %xmm0
	movdqa	144(%rsp), %xmm1
	movaps	%xmm0, 16(%rsp)
	movdqa	32(%rsp), %xmm0
	pcmpgtd	144(%rsp), %xmm0
	pand	%xmm0, %xmm1
	pandn	32(%rsp), %xmm0
	por	%xmm1, %xmm0
	movdqa	160(%rsp), %xmm1
	movaps	%xmm0, 32(%rsp)
	movdqa	48(%rsp), %xmm0
	pcmpgtd	160(%rsp), %xmm0
	pand	%xmm0, %xmm1
	pandn	48(%rsp), %xmm0
	por	%xmm1, %xmm0
	movdqa	176(%rsp), %xmm1
	movaps	%xmm0, 48(%rsp)
	movdqa	64(%rsp), %xmm0
	pcmpgtd	176(%rsp), %xmm0
	pand	%xmm0, %xmm1
	pandn	64(%rsp), %xmm0
	por	%xmm1, %xmm0
	movdqa	192(%rsp), %xmm1
	movaps	%xmm0, 64(%rsp)
	movdqa	80(%rsp), %xmm0
	pcmpgtd	192(%rsp), %xmm0
	pand	%xmm0, %xmm1
	pandn	80(%rsp), %xmm0
	por	%xmm1, %xmm0
	movdqa	208(%rsp), %xmm1
	movaps	%xmm0, 80(%rsp)
	movdqa	96(%rsp), %xmm0
	pcmpgtd	208(%rsp), %xmm0
	pand	%xmm0, %xmm1
	pandn	96(%rsp), %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, 96(%rsp)
	movl	%eax, 112(%rsp)
	movl	116(%rsp), %eax
	movl	228(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	addl	$1, %r15d
	movl	%eax, 116(%rsp)
	cmpl	%r15d, 12(%rsp)
	jg	.L3
.L7:
	leaq	16(%rsp), %r13
	leaq	120(%rsp), %r14
	movl	$97, %ebp
	.p2align 4,,10
	.p2align 3
.L4:
	movl	0(%r13), %r12d
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	movq	stdout(%rip), %rsi
	movl	%ebp, %edi
	addl	$1, %ebx
	call	putc@PLT
	cmpl	%r12d, %ebx
	jne	.L12
.L14:
	addq	$4, %r13
	addl	$1, %ebp
	cmpq	%r14, %r13
	jne	.L4
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	xorl	%r12d, %r12d
	call	putc@PLT
.L1:
	movq	312(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$328, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r12d, %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
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movsbl	(%rdx), %eax
	addq	$1, %rdx
	testb	%al, %al
	jne	.L11
	jmp	.L10
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	9999
	.long	9999
	.long	9999
	.long	9999
	.set	.LC1,.LC0
	.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
.LC2:
	.string	"%d"
.LC3:
	.string	"%63s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC2(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$328, %rsp
	.cfi_def_cfa_offset 384
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 312(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movq	%rax, 112(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L1
	cmpl	$0, 12(%rsp)
	jle	.L7
	movl	%eax, %r12d
	xorl	%r15d, %r15d
	leaq	128(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	240(%rsp), %r14
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rax
	movl	$13, %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	rep stosq
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L1
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	subl	$97, %eax
	cmpl	$25, %eax
	ja	.L8
	cltq
	addq	$1, %rdx
	addl	$1, 128(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L11
.L10:
	movdqa	16(%rsp), %xmm0
	movl	224(%rsp), %edx
	movdqa	128(%rsp), %xmm1
	movl	112(%rsp), %eax
	pcmpgtd	128(%rsp), %xmm0
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	pand	%xmm0, %xmm1
	pandn	16(%rsp), %xmm0
	por	%xmm1, %xmm0
	movdqa	144(%rsp), %xmm1
	movaps	%xmm0, 16(%rsp)
	movdqa	32(%rsp), %xmm0
	pcmpgtd	144(%rsp), %xmm0
	pand	%xmm0, %xmm1
	pandn	32(%rsp), %xmm0
	por	%xmm1, %xmm0
	movdqa	160(%rsp), %xmm1
	movaps	%xmm0, 32(%rsp)
	movdqa	48(%rsp), %xmm0
	pcmpgtd	160(%rsp), %xmm0
	pand	%xmm0, %xmm1
	pandn	48(%rsp), %xmm0
	por	%xmm1, %xmm0
	movdqa	176(%rsp), %xmm1
	movaps	%xmm0, 48(%rsp)
	movdqa	64(%rsp), %xmm0
	pcmpgtd	176(%rsp), %xmm0
	pand	%xmm0, %xmm1
	pandn	64(%rsp), %xmm0
	por	%xmm1, %xmm0
	movdqa	192(%rsp), %xmm1
	movaps	%xmm0, 64(%rsp)
	movdqa	80(%rsp), %xmm0
	pcmpgtd	192(%rsp), %xmm0
	pand	%xmm0, %xmm1
	pandn	80(%rsp), %xmm0
	por	%xmm1, %xmm0
	movdqa	208(%rsp), %xmm1
	movaps	%xmm0, 80(%rsp)
	movdqa	96(%rsp), %xmm0
	pcmpgtd	208(%rsp), %xmm0
	pand	%xmm0, %xmm1
	pandn	96(%rsp), %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, 96(%rsp)
	movl	%eax, 112(%rsp)
	movl	116(%rsp), %eax
	movl	228(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	addl	$1, %r15d
	movl	%eax, 116(%rsp)
	cmpl	%r15d, 12(%rsp)
	jg	.L3
.L7:
	leaq	16(%rsp), %r13
	leaq	120(%rsp), %r14
	movl	$97, %ebp
	.p2align 4,,10
	.p2align 3
.L4:
	movl	0(%r13), %r12d
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	movq	stdout(%rip), %rsi
	movl	%ebp, %edi
	addl	$1, %ebx
	call	putc@PLT
	cmpl	%r12d, %ebx
	jne	.L12
.L14:
	addq	$4, %r13
	addl	$1, %ebp
	cmpq	%r14, %r13
	jne	.L4
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	xorl	%r12d, %r12d
	call	putc@PLT
.L1:
	movq	312(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$328, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r12d, %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
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movsbl	(%rdx), %eax
	addq	$1, %rdx
	testb	%al, %al
	jne	.L11
	jmp	.L10
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	9999
	.long	9999
	.long	9999
	.long	9999
	.set	.LC1,.LC0
	.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 n;
	int count[26];
	int i;
	for (i = 0; i < 26; i++) count[i] = 9999;
	if (scanf("%d", &n) != 1) return 1;
	for (i = 0; i < n; i++) {
		int localCount[26] = {0};
		char S[64];
		int j;
		if (scanf("%63s", S) != 1) return 1;
		for (j = 0; S[j] != '\0'; j++) {
			int idx = S[j] - 'a';
			if (0 <= idx && idx < 26) localCount[idx]++;
		}
		for (j = 0; j < 26; j++) {
			if (localCount[j] < count[j]) count[j] = localCount[j];
		}
	}
	for (i = 0; i < 26; i++) {
		int c = 'a' + i;
		int j;
		for (j = 0; j < count[i]; j++) putchar(c);
	}
	putchar('\n');
	return 0;
}

3
caaa
daacc
acacac
 3
caaa
d`acc
acacac
 3
aaca
bdb`c
acacac
 3
a
aa
a
 3
caca
cca`d
acacac
 3
acba
da`cb
acacbc
 3
_a_b
c_bcb
abcada
 3
aad_
bdb_c
ababcd
 3
ba`c
bcb`c
abdbcb
 3
bcac
cc`be
acacbc

aac
 ac
 c
 a
 acc
 abc
 b
 d
 bc
 bcc

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 n;
	int count[26];
	int i;
	for (i = 0; i < 26; i++) count[i] = 9999;
	if (scanf("%d", &n) != 1) return 1;
	for (i = 0; i < n; i++) {
		int localCount[26] = {0};
		char S[64];
		int j;
		if (scanf("%63s", S) != 1) return 1;
		for (j = 0; S[j] != '\0'; j++) {
			int idx = S[j] - 'a';
			if (0 <= idx && idx < 26) localCount[idx]++;
		}
		for (j = 0; j < 26; j++) {
			if (localCount[j] < count[j]) count[j] = localCount[j];
		}
	}
	for (i = 0; i < 26; i++) {
		int c = 'a' + i;
		int j;
		for (j = 0; j < count[i]; j++) putchar(c);
	}
	putchar('\n');
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%63s"
	.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	$336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -324(%rbp)
	jmp	.L2
.L3:
	movl	-324(%rbp), %eax
	cltq
	movl	$9999, -304(%rbp,%rax,4)
	addl	$1, -324(%rbp)
.L2:
	cmpl	$25, -324(%rbp)
	jle	.L3
	leaq	-328(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L4
	movl	$1, %eax
	jmp	.L19
.L4:
	movl	$0, -324(%rbp)
	jmp	.L6
.L14:
	leaq	-192(%rbp), %rdx
	movl	$0, %eax
	movl	$13, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L7
	movl	$1, %eax
	jmp	.L19
.L7:
	movl	$0, -320(%rbp)
	jmp	.L8
.L10:
	movl	-320(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movl	%eax, -308(%rbp)
	cmpl	$0, -308(%rbp)
	js	.L9
	cmpl	$25, -308(%rbp)
	jg	.L9
	movl	-308(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-308(%rbp), %eax
	cltq
	movl	%edx, -192(%rbp,%rax,4)
.L9:
	addl	$1, -320(%rbp)
.L8:
	movl	-320(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L10
	movl	$0, -320(%rbp)
	jmp	.L11
.L13:
	movl	-320(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %edx
	movl	-320(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-320(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %edx
	movl	-320(%rbp), %eax
	cltq
	movl	%edx, -304(%rbp,%rax,4)
.L12:
	addl	$1, -320(%rbp)
.L11:
	cmpl	$25, -320(%rbp)
	jle	.L13
	addl	$1, -324(%rbp)
.L6:
	movl	-328(%rbp), %eax
	cmpl	%eax, -324(%rbp)
	jl	.L14
	movl	$0, -324(%rbp)
	jmp	.L15
.L18:
	movl	-324(%rbp), %eax
	addl	$97, %eax
	movl	%eax, -312(%rbp)
	movl	$0, -316(%rbp)
	jmp	.L16
.L17:
	movl	-312(%rbp), %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -316(%rbp)
.L16:
	movl	-324(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %eax
	cmpl	%eax, -316(%rbp)
	jl	.L17
	addl	$1, -324(%rbp)
.L15:
	cmpl	$25, -324(%rbp)
	jle	.L18
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
.L19:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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	"%d"
.LC1:
	.string	"%63s"
	.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	$336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -324(%rbp)
	jmp	.L2
.L3:
	movl	-324(%rbp), %eax
	cltq
	movl	$9999, -304(%rbp,%rax,4)
	addl	$1, -324(%rbp)
.L2:
	cmpl	$25, -324(%rbp)
	jle	.L3
	leaq	-328(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L4
	movl	$1, %eax
	jmp	.L19
.L4:
	movl	$0, -324(%rbp)
	jmp	.L6
.L14:
	leaq	-192(%rbp), %rdx
	movl	$0, %eax
	movl	$13, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L7
	movl	$1, %eax
	jmp	.L19
.L7:
	movl	$0, -320(%rbp)
	jmp	.L8
.L10:
	movl	-320(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movl	%eax, -308(%rbp)
	cmpl	$0, -308(%rbp)
	js	.L9
	cmpl	$25, -308(%rbp)
	jg	.L9
	movl	-308(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-308(%rbp), %eax
	cltq
	movl	%edx, -192(%rbp,%rax,4)
.L9:
	addl	$1, -320(%rbp)
.L8:
	movl	-320(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L10
	movl	$0, -320(%rbp)
	jmp	.L11
.L13:
	movl	-320(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %edx
	movl	-320(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-320(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %edx
	movl	-320(%rbp), %eax
	cltq
	movl	%edx, -304(%rbp,%rax,4)
.L12:
	addl	$1, -320(%rbp)
.L11:
	cmpl	$25, -320(%rbp)
	jle	.L13
	addl	$1, -324(%rbp)
.L6:
	movl	-328(%rbp), %eax
	cmpl	%eax, -324(%rbp)
	jl	.L14
	movl	$0, -324(%rbp)
	jmp	.L15
.L18:
	movl	-324(%rbp), %eax
	addl	$97, %eax
	movl	%eax, -312(%rbp)
	movl	$0, -316(%rbp)
	jmp	.L16
.L17:
	movl	-312(%rbp), %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -316(%rbp)
.L16:
	movl	-324(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %eax
	cmpl	%eax, -316(%rbp)
	jl	.L17
	addl	$1, -324(%rbp)
.L15:
	cmpl	$25, -324(%rbp)
	jle	.L18
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
.L19:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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:
