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>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
#define mi(x,y) ((x)<(y)?(x):(y))
int main() {
	int n, alp[26], alpc[26] = { 0 };
	char c[51] = { '\0' };
	rep(i, 26)alp[i] = 51;
	scanf("%d", &n);
	rep(i, n) {
		scanf("%s", c);
		rep(j, strlen(c))alpc[c[j] - 97]++;
		rep(j, 26) {alp[j] = mi(alp[j], alpc[j]); alpc[j] = 0;}
	}
	rep(i, 26)rep(j, alp[i])printf("%c", i + 97);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%s"
	.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
	movl	$13, %ecx
	pxor	%xmm0, %xmm0
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	xorl	%ebp, %ebp
	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	128(%rsp), %rdi
	movaps	%xmm0, 240(%rsp)
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 256(%rsp)
	leaq	240(%rsp), %r13
	movaps	%xmm0, 272(%rsp)
	movdqa	.LC0(%rip), %xmm0
	movb	$0, 290(%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	rep stosq
	xorl	%eax, %eax
	movaps	%xmm0, 48(%rsp)
	leaq	.LC2(%rip), %rdi
	movw	%ax, 288(%rsp)
	movq	.LC1(%rip), %rax
	movaps	%xmm0, 64(%rsp)
	movq	%rax, 112(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	0(%r13,%rbx), %eax
	addq	$1, %rbx
	subl	$97, %eax
	cltq
	addl	$1, 128(%rsp,%rax,4)
.L4:
	movq	%r13, %rdi
	call	strlen@PLT
	cmpl	%ebx, %eax
	jg	.L5
	movdqa	16(%rsp), %xmm0
	pxor	%xmm2, %xmm2
	movdqa	128(%rsp), %xmm1
	pcmpgtd	128(%rsp), %xmm0
	movaps	%xmm2, 128(%rsp)
	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
	movaps	%xmm2, 144(%rsp)
	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
	movaps	%xmm2, 160(%rsp)
	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
	movaps	%xmm2, 176(%rsp)
	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
	movaps	%xmm2, 192(%rsp)
	pand	%xmm0, %xmm1
	pandn	80(%rsp), %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, 80(%rsp)
	movdqa	96(%rsp), %xmm0
	pcmpgtd	208(%rsp), %xmm0
	movdqa	208(%rsp), %xmm1
	movl	224(%rsp), %eax
	movaps	%xmm2, 208(%rsp)
	movl	112(%rsp), %edx
	pand	%xmm0, %xmm1
	cmpl	%edx, %eax
	pandn	96(%rsp), %xmm0
	cmovle	%eax, %edx
	movl	116(%rsp), %eax
	por	%xmm1, %xmm0
	movaps	%xmm0, 96(%rsp)
	movd	%edx, %xmm0
	movl	228(%rsp), %edx
	movq	$0, 224(%rsp)
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	addl	$1, %ebp
	movd	%eax, %xmm3
	punpckldq	%xmm3, %xmm0
	movq	%xmm0, 112(%rsp)
	cmpl	%ebp, 12(%rsp)
	jg	.L2
.L6:
	leaq	16(%rsp), %r13
	leaq	120(%rsp), %r14
	movl	$97, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movl	0(%r13), %r12d
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%ebp, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%r12d, %ebx
	jne	.L7
.L10:
	addq	$4, %r13
	addl	$1, %ebp
	cmpq	%r13, %r14
	jne	.L3
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	51
	.long	51
	.long	51
	.long	51
	.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"
	.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
	movl	$13, %ecx
	pxor	%xmm0, %xmm0
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	xorl	%ebp, %ebp
	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	128(%rsp), %rdi
	movaps	%xmm0, 240(%rsp)
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 256(%rsp)
	leaq	240(%rsp), %r13
	movaps	%xmm0, 272(%rsp)
	movdqa	.LC0(%rip), %xmm0
	movb	$0, 290(%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	rep stosq
	xorl	%eax, %eax
	movaps	%xmm0, 48(%rsp)
	leaq	.LC2(%rip), %rdi
	movw	%ax, 288(%rsp)
	movq	.LC1(%rip), %rax
	movaps	%xmm0, 64(%rsp)
	movq	%rax, 112(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	0(%r13,%rbx), %eax
	addq	$1, %rbx
	subl	$97, %eax
	cltq
	addl	$1, 128(%rsp,%rax,4)
.L4:
	movq	%r13, %rdi
	call	strlen@PLT
	cmpl	%ebx, %eax
	jg	.L5
	movdqa	16(%rsp), %xmm0
	pxor	%xmm2, %xmm2
	movdqa	128(%rsp), %xmm1
	pcmpgtd	128(%rsp), %xmm0
	movaps	%xmm2, 128(%rsp)
	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
	movaps	%xmm2, 144(%rsp)
	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
	movaps	%xmm2, 160(%rsp)
	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
	movaps	%xmm2, 176(%rsp)
	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
	movaps	%xmm2, 192(%rsp)
	pand	%xmm0, %xmm1
	pandn	80(%rsp), %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, 80(%rsp)
	movdqa	96(%rsp), %xmm0
	pcmpgtd	208(%rsp), %xmm0
	movdqa	208(%rsp), %xmm1
	movl	224(%rsp), %eax
	movaps	%xmm2, 208(%rsp)
	movl	112(%rsp), %edx
	pand	%xmm0, %xmm1
	cmpl	%edx, %eax
	pandn	96(%rsp), %xmm0
	cmovle	%eax, %edx
	movl	116(%rsp), %eax
	por	%xmm1, %xmm0
	movaps	%xmm0, 96(%rsp)
	movd	%edx, %xmm0
	movl	228(%rsp), %edx
	movq	$0, 224(%rsp)
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	addl	$1, %ebp
	movd	%eax, %xmm3
	punpckldq	%xmm3, %xmm0
	movq	%xmm0, 112(%rsp)
	cmpl	%ebp, 12(%rsp)
	jg	.L2
.L6:
	leaq	16(%rsp), %r13
	leaq	120(%rsp), %r14
	movl	$97, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movl	0(%r13), %r12d
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%ebp, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%r12d, %ebx
	jne	.L7
.L10:
	addq	$4, %r13
	addl	$1, %ebp
	cmpq	%r13, %r14
	jne	.L3
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	51
	.long	51
	.long	51
	.long	51
	.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"
	.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
	movl	$13, %ecx
	pxor	%xmm0, %xmm0
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	xorl	%ebp, %ebp
	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	128(%rsp), %rdi
	movaps	%xmm0, 240(%rsp)
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 256(%rsp)
	leaq	240(%rsp), %r13
	movaps	%xmm0, 272(%rsp)
	movdqa	.LC0(%rip), %xmm0
	movb	$0, 290(%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	rep stosq
	xorl	%eax, %eax
	movaps	%xmm0, 48(%rsp)
	leaq	.LC2(%rip), %rdi
	movw	%ax, 288(%rsp)
	movq	.LC1(%rip), %rax
	movaps	%xmm0, 64(%rsp)
	movq	%rax, 112(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	0(%r13,%rbx), %eax
	addq	$1, %rbx
	subl	$97, %eax
	cltq
	addl	$1, 128(%rsp,%rax,4)
.L4:
	movq	%r13, %rdi
	call	strlen@PLT
	cmpl	%ebx, %eax
	jg	.L5
	movdqa	16(%rsp), %xmm0
	pxor	%xmm2, %xmm2
	movdqa	128(%rsp), %xmm1
	pcmpgtd	128(%rsp), %xmm0
	movaps	%xmm2, 128(%rsp)
	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
	movaps	%xmm2, 144(%rsp)
	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
	movaps	%xmm2, 160(%rsp)
	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
	movaps	%xmm2, 176(%rsp)
	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
	movaps	%xmm2, 192(%rsp)
	pand	%xmm0, %xmm1
	pandn	80(%rsp), %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, 80(%rsp)
	movdqa	96(%rsp), %xmm0
	pcmpgtd	208(%rsp), %xmm0
	movdqa	208(%rsp), %xmm1
	movl	224(%rsp), %eax
	movaps	%xmm2, 208(%rsp)
	movl	112(%rsp), %edx
	pand	%xmm0, %xmm1
	cmpl	%edx, %eax
	pandn	96(%rsp), %xmm0
	cmovle	%eax, %edx
	movl	116(%rsp), %eax
	por	%xmm1, %xmm0
	movaps	%xmm0, 96(%rsp)
	movd	%edx, %xmm0
	movl	228(%rsp), %edx
	movq	$0, 224(%rsp)
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	addl	$1, %ebp
	movd	%eax, %xmm3
	punpckldq	%xmm3, %xmm0
	movq	%xmm0, 112(%rsp)
	cmpl	%ebp, 12(%rsp)
	jg	.L2
.L6:
	leaq	16(%rsp), %r13
	leaq	120(%rsp), %r14
	movl	$97, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movl	0(%r13), %r12d
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%ebp, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%r12d, %ebx
	jne	.L7
.L10:
	addq	$4, %r13
	addl	$1, %ebp
	cmpq	%r13, %r14
	jne	.L3
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	51
	.long	51
	.long	51
	.long	51
	.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>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
#define mi(x,y) ((x)<(y)?(x):(y))
int main() {
	int n, alp[26], alpc[26] = { 0 };
	char c[51] = { '\0' };
	rep(i, 26)alp[i] = 51;
	scanf("%d", &n);
	rep(i, n) {
		scanf("%s", c);
		rep(j, strlen(c))alpc[c[j] - 97]++;
		rep(j, 26) {alp[j] = mi(alp[j], alpc[j]); alpc[j] = 0;}
	}
	rep(i, 26)rep(j, alp[i])printf("%c", i + 97);
	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>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
#define mi(x,y) ((x)<(y)?(x):(y))
int main() {
	int n, alp[26], alpc[26] = { 0 };
	char c[51] = { '\0' };
	rep(i, 26)alp[i] = 51;
	scanf("%d", &n);
	rep(i, n) {
		scanf("%s", c);
		rep(j, strlen(c))alpc[c[j] - 97]++;
		rep(j, 26) {alp[j] = mi(alp[j], alpc[j]); alpc[j] = 0;}
	}
	rep(i, 26)rep(j, alp[i])printf("%c", i + 97);
	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>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
#define mi(x,y) ((x)<(y)?(x):(y))
int main() {
	int n, alp[26], alpc[26] = { 0 };
	char c[51] = { '\0' };
	rep(i, 26)alp[i] = 51;
	scanf("%d", &n);
	rep(i, n) {
		scanf("%s", c);
		rep(j, strlen(c))alpc[c[j] - 97]++;
		rep(j, 26) {alp[j] = mi(alp[j], alpc[j]); alpc[j] = 0;}
	}
	rep(i, 26)rep(j, alp[i])printf("%c", i + 97);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%s"
	.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
	movl	$13, %ecx
	pxor	%xmm0, %xmm0
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	xorl	%ebp, %ebp
	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	128(%rsp), %rdi
	movaps	%xmm0, 240(%rsp)
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 256(%rsp)
	leaq	240(%rsp), %r13
	movaps	%xmm0, 272(%rsp)
	movdqa	.LC0(%rip), %xmm0
	movb	$0, 290(%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	rep stosq
	xorl	%eax, %eax
	movaps	%xmm0, 48(%rsp)
	leaq	.LC2(%rip), %rdi
	movw	%ax, 288(%rsp)
	movq	.LC1(%rip), %rax
	movaps	%xmm0, 64(%rsp)
	movq	%rax, 112(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	0(%r13,%rbx), %eax
	addq	$1, %rbx
	subl	$97, %eax
	cltq
	addl	$1, 128(%rsp,%rax,4)
.L4:
	movq	%r13, %rdi
	call	strlen@PLT
	cmpl	%ebx, %eax
	jg	.L5
	movdqa	16(%rsp), %xmm0
	pxor	%xmm2, %xmm2
	movdqa	128(%rsp), %xmm1
	pcmpgtd	128(%rsp), %xmm0
	movaps	%xmm2, 128(%rsp)
	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
	movaps	%xmm2, 144(%rsp)
	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
	movaps	%xmm2, 160(%rsp)
	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
	movaps	%xmm2, 176(%rsp)
	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
	movaps	%xmm2, 192(%rsp)
	pand	%xmm0, %xmm1
	pandn	80(%rsp), %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, 80(%rsp)
	movdqa	96(%rsp), %xmm0
	pcmpgtd	208(%rsp), %xmm0
	movdqa	208(%rsp), %xmm1
	movl	224(%rsp), %eax
	movaps	%xmm2, 208(%rsp)
	movl	112(%rsp), %edx
	pand	%xmm0, %xmm1
	cmpl	%edx, %eax
	pandn	96(%rsp), %xmm0
	cmovle	%eax, %edx
	movl	116(%rsp), %eax
	por	%xmm1, %xmm0
	movaps	%xmm0, 96(%rsp)
	movd	%edx, %xmm0
	movl	228(%rsp), %edx
	movq	$0, 224(%rsp)
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	addl	$1, %ebp
	movd	%eax, %xmm3
	punpckldq	%xmm3, %xmm0
	movq	%xmm0, 112(%rsp)
	cmpl	%ebp, 12(%rsp)
	jg	.L2
.L6:
	leaq	16(%rsp), %r13
	leaq	120(%rsp), %r14
	movl	$97, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movl	0(%r13), %r12d
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%ebp, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%r12d, %ebx
	jne	.L7
.L10:
	addq	$4, %r13
	addl	$1, %ebp
	cmpq	%r13, %r14
	jne	.L3
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	51
	.long	51
	.long	51
	.long	51
	.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"
	.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
	movl	$13, %ecx
	pxor	%xmm0, %xmm0
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	xorl	%ebp, %ebp
	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	128(%rsp), %rdi
	movaps	%xmm0, 240(%rsp)
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 256(%rsp)
	leaq	240(%rsp), %r13
	movaps	%xmm0, 272(%rsp)
	movdqa	.LC0(%rip), %xmm0
	movb	$0, 290(%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	rep stosq
	xorl	%eax, %eax
	movaps	%xmm0, 48(%rsp)
	leaq	.LC2(%rip), %rdi
	movw	%ax, 288(%rsp)
	movq	.LC1(%rip), %rax
	movaps	%xmm0, 64(%rsp)
	movq	%rax, 112(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movsbl	0(%r13,%rbx), %eax
	addq	$1, %rbx
	subl	$97, %eax
	cltq
	addl	$1, 128(%rsp,%rax,4)
.L4:
	movq	%r13, %rdi
	call	strlen@PLT
	cmpl	%ebx, %eax
	jg	.L5
	movdqa	16(%rsp), %xmm0
	pxor	%xmm2, %xmm2
	movdqa	128(%rsp), %xmm1
	pcmpgtd	128(%rsp), %xmm0
	movaps	%xmm2, 128(%rsp)
	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
	movaps	%xmm2, 144(%rsp)
	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
	movaps	%xmm2, 160(%rsp)
	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
	movaps	%xmm2, 176(%rsp)
	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
	movaps	%xmm2, 192(%rsp)
	pand	%xmm0, %xmm1
	pandn	80(%rsp), %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, 80(%rsp)
	movdqa	96(%rsp), %xmm0
	pcmpgtd	208(%rsp), %xmm0
	movdqa	208(%rsp), %xmm1
	movl	224(%rsp), %eax
	movaps	%xmm2, 208(%rsp)
	movl	112(%rsp), %edx
	pand	%xmm0, %xmm1
	cmpl	%edx, %eax
	pandn	96(%rsp), %xmm0
	cmovle	%eax, %edx
	movl	116(%rsp), %eax
	por	%xmm1, %xmm0
	movaps	%xmm0, 96(%rsp)
	movd	%edx, %xmm0
	movl	228(%rsp), %edx
	movq	$0, 224(%rsp)
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	addl	$1, %ebp
	movd	%eax, %xmm3
	punpckldq	%xmm3, %xmm0
	movq	%xmm0, 112(%rsp)
	cmpl	%ebp, 12(%rsp)
	jg	.L2
.L6:
	leaq	16(%rsp), %r13
	leaq	120(%rsp), %r14
	movl	$97, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movl	0(%r13), %r12d
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%ebp, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%r12d, %ebx
	jne	.L7
.L10:
	addq	$4, %r13
	addl	$1, %ebp
	cmpq	%r13, %r14
	jne	.L3
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	51
	.long	51
	.long	51
	.long	51
	.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:
```