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 main()
{
    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;
}
```

Assembly Code:

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

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
.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
```assembly
	.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:
```
```c
#include <stdio.h>

int main()
{
    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;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main()
{
    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;
}
```

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:

3
cbaa
daacc
acacac

aac

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 main()
{
    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;
}
```

Assembly Code:

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

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