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>

int main(void){
        int ls[26], n;
        for(int i=0; i<26; i++) ls[i] = 2e9;
        scanf("%d", &n);

        for(int i=0; i<n; i++){
                char s[64];
                scanf("%s", s);
                int tmp[26], j=0;
                memset(tmp, 0, 104);
                while(s[j]!='\0') tmp[s[j++]-'a']++;

                for(int j=0; j<26; j++){
                        if(ls[j]>tmp[j]) ls[j] = tmp[j];
                }
        }

        for(int i=0; i<26; i++){
                while(ls[i]--) putchar('a'+i);
        }
        puts("");
        return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	""
	.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	$2000000000, -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
	movl	$0, -320(%rbp)
	jmp	.L4
.L10:
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -316(%rbp)
	leaq	-192(%rbp), %rax
	movl	$104, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L5
.L6:
	movl	-316(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -316(%rbp)
	cltq
	movzbl	-80(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-192(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -192(%rbp,%rax,4)
.L5:
	movl	-316(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L6
	movl	$0, -312(%rbp)
	jmp	.L7
.L9:
	movl	-312(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %edx
	movl	-312(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L8
	movl	-312(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %edx
	movl	-312(%rbp), %eax
	cltq
	movl	%edx, -304(%rbp,%rax,4)
.L8:
	addl	$1, -312(%rbp)
.L7:
	cmpl	$25, -312(%rbp)
	jle	.L9
	addl	$1, -320(%rbp)
.L4:
	movl	-328(%rbp), %eax
	cmpl	%eax, -320(%rbp)
	jl	.L10
	movl	$0, -308(%rbp)
	jmp	.L11
.L13:
	movl	-308(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L12:
	movl	-308(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %eax
	leal	-1(%rax), %ecx
	movl	-308(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, -304(%rbp,%rdx,4)
	testl	%eax, %eax
	jne	.L13
	addl	$1, -308(%rbp)
.L11:
	cmpl	$25, -308(%rbp)
	jle	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"%s"
.LC4:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC2(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$320, %rsp
	.cfi_def_cfa_offset 368
	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
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	xorl	%r14d, %r14d
	leaq	240(%rsp), %r13
	xorl	%ebp, %ebp
	leaq	.LC3(%rip), %r12
	leaq	128(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rax
	movl	$13, %ecx
	movq	%rbx, %rdi
	rep stosq
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 128(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L6
.L7:
	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, %r14d
	movl	%eax, 116(%rsp)
	cmpl	%r14d, 12(%rsp)
	jg	.L2
.L5:
	leaq	16(%rsp), %rbx
	leaq	120(%rsp), %r12
	movl	$97, %ebp
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	movq	stdout(%rip), %rsi
	movl	%ebp, %edi
	call	putc@PLT
.L3:
	movl	(%rbx), %eax
	leal	-1(%rax), %edx
	movl	%edx, (%rbx)
	testl	%eax, %eax
	jne	.L8
	addq	$4, %rbx
	addl	$1, %ebp
	cmpq	%r12, %rbx
	jne	.L3
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	movq	312(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$320, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	2000000000
	.long	2000000000
	.long	2000000000
	.long	2000000000
	.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	"%s"
.LC4:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC2(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$320, %rsp
	.cfi_def_cfa_offset 368
	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
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	xorl	%r14d, %r14d
	leaq	240(%rsp), %r13
	xorl	%ebp, %ebp
	leaq	.LC3(%rip), %r12
	leaq	128(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rax
	movl	$13, %ecx
	movq	%rbx, %rdi
	rep stosq
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 128(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L6
.L7:
	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, %r14d
	movl	%eax, 116(%rsp)
	cmpl	%r14d, 12(%rsp)
	jg	.L2
.L5:
	leaq	16(%rsp), %rbx
	leaq	120(%rsp), %r12
	movl	$97, %ebp
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	movq	stdout(%rip), %rsi
	movl	%ebp, %edi
	call	putc@PLT
.L3:
	movl	(%rbx), %eax
	leal	-1(%rax), %edx
	movl	%edx, (%rbx)
	testl	%eax, %eax
	jne	.L8
	addq	$4, %rbx
	addl	$1, %ebp
	cmpq	%r12, %rbx
	jne	.L3
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	movq	312(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$320, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	2000000000
	.long	2000000000
	.long	2000000000
	.long	2000000000
	.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>
#include<string.h>

int main(void){
        int ls[26], n;
        for(int i=0; i<26; i++) ls[i] = 2e9;
        scanf("%d", &n);

        for(int i=0; i<n; i++){
                char s[64];
                scanf("%s", s);
                int tmp[26], j=0;
                memset(tmp, 0, 104);
                while(s[j]!='\0') tmp[s[j++]-'a']++;

                for(int j=0; j<26; j++){
                        if(ls[j]>tmp[j]) ls[j] = tmp[j];
                }
        }

        for(int i=0; i<26; i++){
                while(ls[i]--) putchar('a'+i);
        }
        puts("");
        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>
#include<string.h>

int main(void){
        int ls[26], n;
        for(int i=0; i<26; i++) ls[i] = 2e9;
        scanf("%d", &n);

        for(int i=0; i<n; i++){
                char s[64];
                scanf("%s", s);
                int tmp[26], j=0;
                memset(tmp, 0, 104);
                while(s[j]!='\0') tmp[s[j++]-'a']++;

                for(int j=0; j<26; j++){
                        if(ls[j]>tmp[j]) ls[j] = tmp[j];
                }
        }

        for(int i=0; i<26; i++){
                while(ls[i]--) putchar('a'+i);
        }
        puts("");
        return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	""
	.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	$2000000000, -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
	movl	$0, -320(%rbp)
	jmp	.L4
.L10:
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -316(%rbp)
	leaq	-192(%rbp), %rax
	movl	$104, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L5
.L6:
	movl	-316(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -316(%rbp)
	cltq
	movzbl	-80(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-192(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -192(%rbp,%rax,4)
.L5:
	movl	-316(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L6
	movl	$0, -312(%rbp)
	jmp	.L7
.L9:
	movl	-312(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %edx
	movl	-312(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L8
	movl	-312(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %edx
	movl	-312(%rbp), %eax
	cltq
	movl	%edx, -304(%rbp,%rax,4)
.L8:
	addl	$1, -312(%rbp)
.L7:
	cmpl	$25, -312(%rbp)
	jle	.L9
	addl	$1, -320(%rbp)
.L4:
	movl	-328(%rbp), %eax
	cmpl	%eax, -320(%rbp)
	jl	.L10
	movl	$0, -308(%rbp)
	jmp	.L11
.L13:
	movl	-308(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L12:
	movl	-308(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %eax
	leal	-1(%rax), %ecx
	movl	-308(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, -304(%rbp,%rdx,4)
	testl	%eax, %eax
	jne	.L13
	addl	$1, -308(%rbp)
.L11:
	cmpl	$25, -308(%rbp)
	jle	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"%s"
.LC2:
	.string	""
	.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	$2000000000, -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
	movl	$0, -320(%rbp)
	jmp	.L4
.L10:
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -316(%rbp)
	leaq	-192(%rbp), %rax
	movl	$104, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L5
.L6:
	movl	-316(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -316(%rbp)
	cltq
	movzbl	-80(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-192(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -192(%rbp,%rax,4)
.L5:
	movl	-316(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L6
	movl	$0, -312(%rbp)
	jmp	.L7
.L9:
	movl	-312(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %edx
	movl	-312(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L8
	movl	-312(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %edx
	movl	-312(%rbp), %eax
	cltq
	movl	%edx, -304(%rbp,%rax,4)
.L8:
	addl	$1, -312(%rbp)
.L7:
	cmpl	$25, -312(%rbp)
	jle	.L9
	addl	$1, -320(%rbp)
.L4:
	movl	-328(%rbp), %eax
	cmpl	%eax, -320(%rbp)
	jl	.L10
	movl	$0, -308(%rbp)
	jmp	.L11
.L13:
	movl	-308(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L12:
	movl	-308(%rbp), %eax
	cltq
	movl	-304(%rbp,%rax,4), %eax
	leal	-1(%rax), %ecx
	movl	-308(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, -304(%rbp,%rdx,4)
	testl	%eax, %eax
	jne	.L13
	addl	$1, -308(%rbp)
.L11:
	cmpl	$25, -308(%rbp)
	jle	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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:
