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(int argc, char const *argv[]){
	int n,i,o[27],j,p[27];
	char s[51];
	scanf("%d",&n);
	for(i=0;i<27;i++){
		o[i]=51;
	}
	for(i=0;i<n;i++){
		scanf("%s",s);
		for(j=0;j<27;j++){
			p[j]=0;
		}
		j=0;
		while(s[j]!='\0'){
			p[s[j]-'a']++;
			j++;
		}
		for(j=0;j<27;j++){
			o[j]=(p[j]<o[j])?p[j]:o[j];
		}
	}
	for(i=0;i<27;i++){
		for(j=0;j<o[i];j++){
			printf("%c",'a'+i);
		}
	}
	printf("\n");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.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	$320, %rsp
	movl	%edi, -308(%rbp)
	movq	%rsi, -320(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-300(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -296(%rbp)
	jmp	.L2
.L3:
	movl	-296(%rbp), %eax
	cltq
	movl	$51, -288(%rbp,%rax,4)
	addl	$1, -296(%rbp)
.L2:
	cmpl	$26, -296(%rbp)
	jle	.L3
	movl	$0, -296(%rbp)
	jmp	.L4
.L11:
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -292(%rbp)
	jmp	.L5
.L6:
	movl	-292(%rbp), %eax
	cltq
	movl	$0, -176(%rbp,%rax,4)
	addl	$1, -292(%rbp)
.L5:
	cmpl	$26, -292(%rbp)
	jle	.L6
	movl	$0, -292(%rbp)
	jmp	.L7
.L8:
	movl	-292(%rbp), %eax
	cltq
	movzbl	-64(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-176(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -176(%rbp,%rax,4)
	addl	$1, -292(%rbp)
.L7:
	movl	-292(%rbp), %eax
	cltq
	movzbl	-64(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L8
	movl	$0, -292(%rbp)
	jmp	.L9
.L10:
	movl	-292(%rbp), %eax
	cltq
	movl	-288(%rbp,%rax,4), %edx
	movl	-292(%rbp), %eax
	cltq
	movl	-176(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-292(%rbp), %eax
	cltq
	movl	%edx, -288(%rbp,%rax,4)
	addl	$1, -292(%rbp)
.L9:
	cmpl	$26, -292(%rbp)
	jle	.L10
	addl	$1, -296(%rbp)
.L4:
	movl	-300(%rbp), %eax
	cmpl	%eax, -296(%rbp)
	jl	.L11
	movl	$0, -296(%rbp)
	jmp	.L12
.L15:
	movl	$0, -292(%rbp)
	jmp	.L13
.L14:
	movl	-296(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -292(%rbp)
.L13:
	movl	-296(%rbp), %eax
	cltq
	movl	-288(%rbp,%rax,4), %eax
	cmpl	%eax, -292(%rbp)
	jl	.L14
	addl	$1, -296(%rbp)
.L12:
	cmpl	$26, -296(%rbp)
	jle	.L15
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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
.LC0:
	.string	"%d"
.LC3:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%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	$304, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	.LC2(%rip), %rax
	movdqa	.LC1(%rip), %xmm0
	movl	$51, 120(%rsp)
	movq	%rax, 112(%rsp)
	movl	12(%rsp), %eax
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	testl	%eax, %eax
	jle	.L5
	xorl	%ebx, %ebx
	leaq	240(%rsp), %r14
	xorl	%r12d, %r12d
	leaq	.LC3(%rip), %r13
	leaq	128(%rsp), %rbp
.L2:
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r12, %rax
	movl	$13, %ecx
	movq	%rbp, %rdi
	rep stosq
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	movl	$0, (%rdi)
	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	112(%rsp), %eax
	movdqa	128(%rsp), %xmm1
	movl	224(%rsp), %edx
	pcmpgtd	128(%rsp), %xmm0
	cmpl	%edx, %eax
	cmovle	%eax, %edx
	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	228(%rsp), %eax
	movd	%edx, %xmm0
	movl	116(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	232(%rsp), %edx
	movd	%eax, %xmm2
	movl	120(%rsp), %eax
	punpckldq	%xmm2, %xmm0
	cmpl	%edx, %eax
	movq	%xmm0, 112(%rsp)
	cmovg	%edx, %eax
	addl	$1, %ebx
	movl	%eax, 120(%rsp)
	cmpl	%ebx, 12(%rsp)
	jg	.L2
.L5:
	leaq	16(%rsp), %r13
	leaq	124(%rsp), %r14
	movl	$97, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movl	0(%r13), %r12d
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%ebp, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%r12d, %ebx
	jne	.L8
.L11:
	addq	$4, %r13
	addl	$1, %ebp
	cmpq	%r13, %r14
	jne	.L3
	movl	$10, %edi
	call	putchar@PLT
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$304, %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
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	51
	.long	51
	.long	51
	.long	51
	.set	.LC2,.LC1
	.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
.LC0:
	.string	"%d"
.LC3:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%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	$304, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	.LC2(%rip), %rax
	movdqa	.LC1(%rip), %xmm0
	movl	$51, 120(%rsp)
	movq	%rax, 112(%rsp)
	movl	12(%rsp), %eax
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	testl	%eax, %eax
	jle	.L5
	xorl	%ebx, %ebx
	leaq	240(%rsp), %r14
	xorl	%r12d, %r12d
	leaq	.LC3(%rip), %r13
	leaq	128(%rsp), %rbp
.L2:
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r12, %rax
	movl	$13, %ecx
	movq	%rbp, %rdi
	rep stosq
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	movl	$0, (%rdi)
	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	112(%rsp), %eax
	movdqa	128(%rsp), %xmm1
	movl	224(%rsp), %edx
	pcmpgtd	128(%rsp), %xmm0
	cmpl	%edx, %eax
	cmovle	%eax, %edx
	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	228(%rsp), %eax
	movd	%edx, %xmm0
	movl	116(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	232(%rsp), %edx
	movd	%eax, %xmm2
	movl	120(%rsp), %eax
	punpckldq	%xmm2, %xmm0
	cmpl	%edx, %eax
	movq	%xmm0, 112(%rsp)
	cmovg	%edx, %eax
	addl	$1, %ebx
	movl	%eax, 120(%rsp)
	cmpl	%ebx, 12(%rsp)
	jg	.L2
.L5:
	leaq	16(%rsp), %r13
	leaq	124(%rsp), %r14
	movl	$97, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movl	0(%r13), %r12d
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%ebp, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%r12d, %ebx
	jne	.L8
.L11:
	addq	$4, %r13
	addl	$1, %ebp
	cmpq	%r13, %r14
	jne	.L3
	movl	$10, %edi
	call	putchar@PLT
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$304, %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
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	51
	.long	51
	.long	51
	.long	51
	.set	.LC2,.LC1
	.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(int argc, char const *argv[]){
	int n,i,o[27],j,p[27];
	char s[51];
	scanf("%d",&n);
	for(i=0;i<27;i++){
		o[i]=51;
	}
	for(i=0;i<n;i++){
		scanf("%s",s);
		for(j=0;j<27;j++){
			p[j]=0;
		}
		j=0;
		while(s[j]!='\0'){
			p[s[j]-'a']++;
			j++;
		}
		for(j=0;j<27;j++){
			o[j]=(p[j]<o[j])?p[j]:o[j];
		}
	}
	for(i=0;i<27;i++){
		for(j=0;j<o[i];j++){
			printf("%c",'a'+i);
		}
	}
	printf("\n");
	return 0;
}
3
cbaa
daacc
acacac

aac

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(int argc, char const *argv[]){
	int n,i,o[27],j,p[27];
	char s[51];
	scanf("%d",&n);
	for(i=0;i<27;i++){
		o[i]=51;
	}
	for(i=0;i<n;i++){
		scanf("%s",s);
		for(j=0;j<27;j++){
			p[j]=0;
		}
		j=0;
		while(s[j]!='\0'){
			p[s[j]-'a']++;
			j++;
		}
		for(j=0;j<27;j++){
			o[j]=(p[j]<o[j])?p[j]:o[j];
		}
	}
	for(i=0;i<27;i++){
		for(j=0;j<o[i];j++){
			printf("%c",'a'+i);
		}
	}
	printf("\n");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.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	$320, %rsp
	movl	%edi, -308(%rbp)
	movq	%rsi, -320(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-300(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -296(%rbp)
	jmp	.L2
.L3:
	movl	-296(%rbp), %eax
	cltq
	movl	$51, -288(%rbp,%rax,4)
	addl	$1, -296(%rbp)
.L2:
	cmpl	$26, -296(%rbp)
	jle	.L3
	movl	$0, -296(%rbp)
	jmp	.L4
.L11:
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -292(%rbp)
	jmp	.L5
.L6:
	movl	-292(%rbp), %eax
	cltq
	movl	$0, -176(%rbp,%rax,4)
	addl	$1, -292(%rbp)
.L5:
	cmpl	$26, -292(%rbp)
	jle	.L6
	movl	$0, -292(%rbp)
	jmp	.L7
.L8:
	movl	-292(%rbp), %eax
	cltq
	movzbl	-64(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-176(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -176(%rbp,%rax,4)
	addl	$1, -292(%rbp)
.L7:
	movl	-292(%rbp), %eax
	cltq
	movzbl	-64(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L8
	movl	$0, -292(%rbp)
	jmp	.L9
.L10:
	movl	-292(%rbp), %eax
	cltq
	movl	-288(%rbp,%rax,4), %edx
	movl	-292(%rbp), %eax
	cltq
	movl	-176(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-292(%rbp), %eax
	cltq
	movl	%edx, -288(%rbp,%rax,4)
	addl	$1, -292(%rbp)
.L9:
	cmpl	$26, -292(%rbp)
	jle	.L10
	addl	$1, -296(%rbp)
.L4:
	movl	-300(%rbp), %eax
	cmpl	%eax, -296(%rbp)
	jl	.L11
	movl	$0, -296(%rbp)
	jmp	.L12
.L15:
	movl	$0, -292(%rbp)
	jmp	.L13
.L14:
	movl	-296(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -292(%rbp)
.L13:
	movl	-296(%rbp), %eax
	cltq
	movl	-288(%rbp,%rax,4), %eax
	cmpl	%eax, -292(%rbp)
	jl	.L14
	addl	$1, -296(%rbp)
.L12:
	cmpl	$26, -296(%rbp)
	jle	.L15
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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.
val
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.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	$320, %rsp
	movl	%edi, -308(%rbp)
	movq	%rsi, -320(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-300(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -296(%rbp)
	jmp	.L2
.L3:
	movl	-296(%rbp), %eax
	cltq
	movl	$51, -288(%rbp,%rax,4)
	addl	$1, -296(%rbp)
.L2:
	cmpl	$26, -296(%rbp)
	jle	.L3
	movl	$0, -296(%rbp)
	jmp	.L4
.L11:
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -292(%rbp)
	jmp	.L5
.L6:
	movl	-292(%rbp), %eax
	cltq
	movl	$0, -176(%rbp,%rax,4)
	addl	$1, -292(%rbp)
.L5:
	cmpl	$26, -292(%rbp)
	jle	.L6
	movl	$0, -292(%rbp)
	jmp	.L7
.L8:
	movl	-292(%rbp), %eax
	cltq
	movzbl	-64(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-176(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -176(%rbp,%rax,4)
	addl	$1, -292(%rbp)
.L7:
	movl	-292(%rbp), %eax
	cltq
	movzbl	-64(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L8
	movl	$0, -292(%rbp)
	jmp	.L9
.L10:
	movl	-292(%rbp), %eax
	cltq
	movl	-288(%rbp,%rax,4), %edx
	movl	-292(%rbp), %eax
	cltq
	movl	-176(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-292(%rbp), %eax
	cltq
	movl	%edx, -288(%rbp,%rax,4)
	addl	$1, -292(%rbp)
.L9:
	cmpl	$26, -292(%rbp)
	jle	.L10
	addl	$1, -296(%rbp)
.L4:
	movl	-300(%rbp), %eax
	cmpl	%eax, -296(%rbp)
	jl	.L11
	movl	$0, -296(%rbp)
	jmp	.L12
.L15:
	movl	$0, -292(%rbp)
	jmp	.L13
.L14:
	movl	-296(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -292(%rbp)
.L13:
	movl	-296(%rbp), %eax
	cltq
	movl	-288(%rbp,%rax,4), %eax
	cmpl	%eax, -292(%rbp)
	jl	.L14
	addl	$1, -296(%rbp)
.L12:
	cmpl	$26, -296(%rbp)
	jle	.L15
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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:
