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

Assembly Code:

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

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

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

Assembly Code:

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

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