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>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define lld long long int

int main(){
    int n;
    scanf("%d", &n);
    char s[51];
    int a[26] = {0}, b[26] = {0};
    scanf("%s", s);
    int x = 0;
    while(s[x] != '\0'){
        a[s[x] - 'a']++;
        x++;
    }
    rep(i, 1, n){
        scanf("%s", s);
        x = 0;
        rep(i, 0, 26){
            b[i] = 0;
        }
        while(s[x] != '\0'){
            b[s[x] - 'a']++;
            x++;
        }
        rep(i, 0, 26){
            if(a[i] > b[i]){
                a[i] = b[i];
            }
        }
    }
    rep(i, 0, 26){
        rep(j, 0, a[i]){
            printf("%c", 'a'+i);
        }
    }

    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$312, %rsp
	.cfi_def_cfa_offset 368
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	leaq	128(%rsp), %rbp
	leaq	240(%rsp), %r13
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movl	$13, %ecx
	movq	%rbx, %rdi
	rep stosq
	movl	$13, %ecx
	movq	%rbp, %rdi
	movq	%r13, %rsi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 16(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L5
.L6:
	xorl	%r14d, %r14d
	cmpl	$1, 12(%rsp)
	movl	$1, %r15d
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rax
	movl	$13, %ecx
	movq	%rbp, %rdi
	rep stosq
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 128(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L9
.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
.L4:
	leaq	120(%rsp), %r14
	movl	$97, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx), %r13d
	xorl	%ebp, %ebp
	testl	%r13d, %r13d
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r12d, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%r13d, %ebp
	jne	.L11
.L14:
	addq	$4, %rbx
	addl	$1, %r12d
	cmpq	%rbx, %r14
	jne	.L7
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$312, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %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
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$312, %rsp
	.cfi_def_cfa_offset 368
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	leaq	128(%rsp), %rbp
	leaq	240(%rsp), %r13
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movl	$13, %ecx
	movq	%rbx, %rdi
	rep stosq
	movl	$13, %ecx
	movq	%rbp, %rdi
	movq	%r13, %rsi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 16(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L5
.L6:
	xorl	%r14d, %r14d
	cmpl	$1, 12(%rsp)
	movl	$1, %r15d
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rax
	movl	$13, %ecx
	movq	%rbp, %rdi
	rep stosq
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 128(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L9
.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
.L4:
	leaq	120(%rsp), %r14
	movl	$97, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx), %r13d
	xorl	%ebp, %ebp
	testl	%r13d, %r13d
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r12d, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%r13d, %ebp
	jne	.L11
.L14:
	addq	$4, %rbx
	addl	$1, %r12d
	cmpq	%rbx, %r14
	jne	.L7
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$312, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %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
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$312, %rsp
	.cfi_def_cfa_offset 368
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	leaq	128(%rsp), %rbp
	leaq	240(%rsp), %r13
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movl	$13, %ecx
	movq	%rbx, %rdi
	rep stosq
	movl	$13, %ecx
	movq	%rbp, %rdi
	movq	%r13, %rsi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 16(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L5
.L6:
	xorl	%r14d, %r14d
	cmpl	$1, 12(%rsp)
	movl	$1, %r15d
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rax
	movl	$13, %ecx
	movq	%rbp, %rdi
	rep stosq
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 128(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L9
.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
.L4:
	leaq	120(%rsp), %r14
	movl	$97, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx), %r13d
	xorl	%ebp, %ebp
	testl	%r13d, %r13d
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r12d, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%r13d, %ebp
	jne	.L11
.L14:
	addq	$4, %rbx
	addl	$1, %r12d
	cmpq	%rbx, %r14
	jne	.L7
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$312, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %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
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```
```c
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define lld long long int

int main(){
    int n;
    scanf("%d", &n);
    char s[51];
    int a[26] = {0}, b[26] = {0};
    scanf("%s", s);
    int x = 0;
    while(s[x] != '\0'){
        a[s[x] - 'a']++;
        x++;
    }
    rep(i, 1, n){
        scanf("%s", s);
        x = 0;
        rep(i, 0, 26){
            b[i] = 0;
        }
        while(s[x] != '\0'){
            b[s[x] - 'a']++;
            x++;
        }
        rep(i, 0, 26){
            if(a[i] > b[i]){
                a[i] = b[i];
            }
        }
    }
    rep(i, 0, 26){
        rep(j, 0, a[i]){
            printf("%c", 'a'+i);
        }
    }

    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>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define lld long long int

int main(){
    int n;
    scanf("%d", &n);
    char s[51];
    int a[26] = {0}, b[26] = {0};
    scanf("%s", s);
    int x = 0;
    while(s[x] != '\0'){
        a[s[x] - 'a']++;
        x++;
    }
    rep(i, 1, n){
        scanf("%s", s);
        x = 0;
        rep(i, 0, 26){
            b[i] = 0;
        }
        while(s[x] != '\0'){
            b[s[x] - 'a']++;
            x++;
        }
        rep(i, 0, 26){
            if(a[i] > b[i]){
                a[i] = b[i];
            }
        }
    }
    rep(i, 0, 26){
        rep(j, 0, a[i]){
            printf("%c", 'a'+i);
        }
    }

    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>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define lld long long int

int main(){
    int n;
    scanf("%d", &n);
    char s[51];
    int a[26] = {0}, b[26] = {0};
    scanf("%s", s);
    int x = 0;
    while(s[x] != '\0'){
        a[s[x] - 'a']++;
        x++;
    }
    rep(i, 1, n){
        scanf("%s", s);
        x = 0;
        rep(i, 0, 26){
            b[i] = 0;
        }
        while(s[x] != '\0'){
            b[s[x] - 'a']++;
            x++;
        }
        rep(i, 0, 26){
            if(a[i] > b[i]){
                a[i] = b[i];
            }
        }
    }
    rep(i, 0, 26){
        rep(j, 0, a[i]){
            printf("%c", 'a'+i);
        }
    }

    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$312, %rsp
	.cfi_def_cfa_offset 368
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	leaq	128(%rsp), %rbp
	leaq	240(%rsp), %r13
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movl	$13, %ecx
	movq	%rbx, %rdi
	rep stosq
	movl	$13, %ecx
	movq	%rbp, %rdi
	movq	%r13, %rsi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 16(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L5
.L6:
	xorl	%r14d, %r14d
	cmpl	$1, 12(%rsp)
	movl	$1, %r15d
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rax
	movl	$13, %ecx
	movq	%rbp, %rdi
	rep stosq
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 128(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L9
.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
.L4:
	leaq	120(%rsp), %r14
	movl	$97, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx), %r13d
	xorl	%ebp, %ebp
	testl	%r13d, %r13d
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r12d, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%r13d, %ebp
	jne	.L11
.L14:
	addq	$4, %rbx
	addl	$1, %r12d
	cmpq	%rbx, %r14
	jne	.L7
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$312, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %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
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$312, %rsp
	.cfi_def_cfa_offset 368
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	leaq	128(%rsp), %rbp
	leaq	240(%rsp), %r13
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movl	$13, %ecx
	movq	%rbx, %rdi
	rep stosq
	movl	$13, %ecx
	movq	%rbp, %rdi
	movq	%r13, %rsi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 16(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L5
.L6:
	xorl	%r14d, %r14d
	cmpl	$1, 12(%rsp)
	movl	$1, %r15d
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rax
	movl	$13, %ecx
	movq	%rbp, %rdi
	rep stosq
	movsbl	240(%rsp), %eax
	leaq	241(%rsp), %rdx
	testb	%al, %al
	je	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	subl	$97, %eax
	addq	$1, %rdx
	cltq
	addl	$1, 128(%rsp,%rax,4)
	movsbl	-1(%rdx), %eax
	testb	%al, %al
	jne	.L9
.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
.L4:
	leaq	120(%rsp), %r14
	movl	$97, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx), %r13d
	xorl	%ebp, %ebp
	testl	%r13d, %r13d
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r12d, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%r13d, %ebp
	jne	.L11
.L14:
	addq	$4, %rbx
	addl	$1, %r12d
	cmpq	%rbx, %r14
	jne	.L7
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$312, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %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
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```