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<stdlib.h>
#include<stdbool.h>
#include<string.h>
#include<math.h>
#define mprint(x) printf(FORMATCONVERSION(x),(x))
#define FORMATCONVERSION(x) _Generic((x),\
                                    int:"%d",unsigned int:"%u",\
                                    double:"%lf",long long int:"%lld",\
                                    unsigned long long int:"%llu",\
                                    char :"%c",char*:"%s")


int main(void){
    int n;
    scanf("%d",&n);
    char str[n][51];
    for(int i = 0;i < n;i++)scanf("%s",str[i]);
    unsigned char_buf[26][n];

    for(int i = 0;i < n;i++)for(int j = 0;j < 26;j++)char_buf[j][i] = 0;

    for(int index = 0;index < n;index++)
        for(int ch = 0;ch < 26;ch++)
            for(int buf_ptr = 0;buf_ptr < strlen(str[index]);buf_ptr++)
                if(str[index][buf_ptr] == 'a' + ch)char_buf[ch][index]++;

    unsigned min = 334;
    for(int ch = 0;ch < 26;ch++){
        for(int index = 0;index < n;index++)if(char_buf[ch][index] < min)min = char_buf[ch][index];
        for(int count = 0;count < min;count++)putchar('a' + ch);
        min = 334;
    }
    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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -200(%rbp)
	leaq	-132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movq	-160(%rbp), %r10
	movq	-152(%rbp), %r11
	imulq	$408, %r11, %rdx
	imulq	$0, %r10, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$408, %eax
	mulq	%r10
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-176(%rbp), %r8
	movq	-168(%rbp), %r9
	imulq	$408, %r9, %rdx
	imulq	$0, %r8, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$408, %eax
	mulq	%r8
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L5
.L6:
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	movq	-80(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -128(%rbp)
.L5:
	movl	-132(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jl	.L6
	movl	-132(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$832, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$832, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$832, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$832, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -124(%rbp)
	jmp	.L10
.L13:
	movl	$0, -120(%rbp)
	jmp	.L11
.L12:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rsi
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -120(%rbp)
.L11:
	cmpl	$25, -120(%rbp)
	jle	.L12
	addl	$1, -124(%rbp)
.L10:
	movl	-132(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jl	.L13
	movl	$0, -116(%rbp)
	jmp	.L14
.L20:
	movl	$0, -112(%rbp)
	jmp	.L15
.L19:
	movl	$0, -108(%rbp)
	jmp	.L16
.L18:
	movq	-80(%rbp), %rsi
	movl	-108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	-112(%rbp), %edx
	addl	$97, %edx
	cmpl	%edx, %eax
	jne	.L17
	movq	%rbx, %rax
	shrq	$2, %rax
	movq	-64(%rbp), %rdx
	movl	-116(%rbp), %ecx
	movslq	%ecx, %rsi
	movl	-112(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rax, %rcx
	addq	%rsi, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-64(%rbp), %rdx
	movl	-116(%rbp), %esi
	movslq	%esi, %rdi
	movl	-112(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rsi, %rax
	addq	%rdi, %rax
	movl	%ecx, (%rdx,%rax,4)
.L17:
	addl	$1, -108(%rbp)
.L16:
	movl	-108(%rbp), %eax
	movslq	%eax, %r12
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	movq	-80(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %r12
	jb	.L18
	addl	$1, -112(%rbp)
.L15:
	cmpl	$25, -112(%rbp)
	jle	.L19
	addl	$1, -116(%rbp)
.L14:
	movl	-132(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L20
	movl	$334, -104(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L21
.L27:
	movl	$0, -96(%rbp)
	jmp	.L22
.L24:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rsi
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -104(%rbp)
	jbe	.L23
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rsi
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -104(%rbp)
.L23:
	addl	$1, -96(%rbp)
.L22:
	movl	-132(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L24
	movl	$0, -92(%rbp)
	jmp	.L25
.L26:
	movl	-100(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -92(%rbp)
.L25:
	movl	-92(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	ja	.L26
	movl	$334, -104(%rbp)
	addl	$1, -100(%rbp)
.L21:
	cmpl	$25, -100(%rbp)
	jle	.L27
	movl	$0, %eax
	movq	-200(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rsi
	leaq	(%rax,%rax,2), %rdx
	movq	%rax, %r15
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	15(%rdx,%rcx), %rcx
	movq	%rcx, %rdx
	andq	$-4096, %rcx
	subq	%rcx, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L65:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L65
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L66
.L4:
	testl	%r15d, %r15d
	jle	.L5
	movq	%rsp, %rbx
	movq	%rsp, %r13
	leaq	.LC2(%rip), %r14
	xorl	%r12d, %r12d
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %r15d
	addq	$51, %r13
	cmpl	%r12d, %r15d
	jg	.L6
	movslq	%r15d, %rax
	movq	%rsp, %rsi
	leaq	(%rax,%rax,2), %rdx
	leaq	0(,%rax,4), %rcx
	leaq	(%rax,%rdx,4), %rax
	leaq	15(,%rax,8), %rdx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rsi
.L7:
	cmpq	%rsi, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L67
.L9:
	movq	%rsp, %r14
	movq	%rcx, %r12
	movq	%r14, -88(%rbp)
	shrq	$2, %r12
	testl	%r15d, %r15d
	jle	.L10
	xorl	%esi, %esi
.L12:
	xorl	%edx, %edx
	movslq	%esi, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	%edx, %rax
	addl	$1, %edx
	imulq	%r12, %rax
	addq	%rcx, %rax
	movl	$0, (%r14,%rax,4)
	cmpl	$26, %edx
	jne	.L11
	addl	$1, %esi
	cmpl	%esi, %r15d
	jne	.L12
	xorl	%r13d, %r13d
.L13:
	movq	%rbx, %rdi
	call	strlen@PLT
	movl	$97, %ecx
	movslq	%r13d, %r8
	movq	%rax, %rdi
	.p2align 4,,10
	.p2align 3
.L21:
	leal	-97(%rcx), %esi
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	.L60
	movslq	%esi, %rsi
	imulq	%r12, %rsi
	addq	%r8, %rsi
	.p2align 4,,10
	.p2align 3
.L17:
	movsbl	(%rbx,%rax), %edx
	cmpl	%ecx, %edx
	je	.L68
	addq	$1, %rax
	cmpq	%rax, %rdi
	ja	.L17
	addl	$1, %ecx
	cmpl	$123, %ecx
	jne	.L21
.L18:
	addl	$1, %r13d
	addq	$51, %rbx
	cmpl	%r13d, %r15d
	jne	.L13
.L20:
	leaq	0(,%r12,4), %rax
	xorl	%r14d, %r14d
	movq	%rax, -80(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L22:
	movl	$334, %ebx
	testl	%r13d, %r13d
	jle	.L26
	leal	-1(%r13), %eax
	cmpl	$2, %eax
	jbe	.L38
	movl	%r13d, %eax
	movq	-72(%rbp), %rbx
	movdqa	.LC0(%rip), %xmm1
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rdx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L24:
	movdqu	(%rax), %xmm0
	movdqa	%xmm1, %xmm2
	movdqu	(%rax), %xmm4
	addq	$16, %rax
	psubd	.LC3(%rip), %xmm0
	psubd	.LC3(%rip), %xmm2
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm4, %xmm0
	por	%xmm0, %xmm1
	cmpq	%rdx, %rax
	jne	.L24
	movdqa	%xmm1, %xmm2
	movdqa	%xmm1, %xmm3
	psubd	.LC3(%rip), %xmm3
	movl	%r13d, %eax
	psrldq	$8, %xmm2
	andl	$-4, %eax
	movdqa	%xmm2, %xmm0
	psubd	.LC3(%rip), %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	psubd	.LC3(%rip), %xmm3
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	psubd	.LC3(%rip), %xmm1
	pcmpgtd	%xmm3, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %ebx
	testb	$3, %r13b
	je	.L25
.L23:
	movslq	%r14d, %rcx
	movq	-88(%rbp), %rsi
	movslq	%eax, %rdx
	imulq	%r12, %rcx
	addq	%rcx, %rdx
	movl	(%rsi,%rdx,4), %edx
	cmpl	%edx, %ebx
	cmova	%edx, %ebx
	leal	1(%rax), %edx
	cmpl	%r13d, %edx
	jge	.L25
	movslq	%edx, %rdx
	addq	%rcx, %rdx
	movl	(%rsi,%rdx,4), %edx
	cmpl	%edx, %ebx
	cmova	%edx, %ebx
	addl	$2, %eax
	cmpl	%eax, %r13d
	jle	.L25
	cltq
	addq	%rcx, %rax
	movl	(%rsi,%rax,4), %eax
	cmpl	%eax, %ebx
	cmova	%eax, %ebx
.L25:
	testl	%ebx, %ebx
	je	.L30
.L26:
	leal	97(%r14), %r13d
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L29:
	movq	stdout(%rip), %rsi
	movl	%r13d, %edi
	addl	$1, %r15d
	call	putc@PLT
	cmpl	%ebx, %r15d
	jb	.L29
.L30:
	addl	$1, %r14d
	movq	-80(%rbp), %rdi
	addq	%rdi, -72(%rbp)
	cmpl	$26, %r14d
	je	.L69
	movl	-60(%rbp), %r13d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L68:
	addq	$1, %rax
	addl	$1, (%r14,%rsi,4)
	cmpq	%rdi, %rax
	jb	.L17
	addl	$1, %ecx
	cmpl	$123, %ecx
	jne	.L21
	jmp	.L18
.L60:
	addl	$1, %ecx
	cmpl	$123, %ecx
	je	.L18
	addl	$1, %ecx
	cmpl	$123, %ecx
	jne	.L21
	jmp	.L18
.L38:
	xorl	%eax, %eax
	movl	$334, %ebx
	jmp	.L23
.L69:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L70
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L67:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L9
.L66:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	leaq	0(,%rax,4), %rcx
	movq	%rsp, %rsi
	imulq	$104, %rax, %rax
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L32:
	cmpq	%rsi, %rsp
	je	.L33
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L32
.L33:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L34
	orq	$0, -8(%rsp,%rax)
.L34:
	movq	%rsp, -88(%rbp)
.L10:
	shrq	$2, %rcx
	movl	%r15d, %r13d
	movq	%rcx, %r12
	jmp	.L20
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	334
	.long	334
	.long	334
	.long	334
	.align 16
.LC3:
	.long	-2147483648
	.long	-2147483648
	.long	-2147483648
	.long	-2147483648
	.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
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rsi
	leaq	(%rax,%rax,2), %rdx
	movq	%rax, %r15
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	15(%rdx,%rcx), %rcx
	movq	%rcx, %rdx
	andq	$-4096, %rcx
	subq	%rcx, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L65:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L65
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L66
.L4:
	testl	%r15d, %r15d
	jle	.L5
	movq	%rsp, %rbx
	movq	%rsp, %r13
	leaq	.LC2(%rip), %r14
	xorl	%r12d, %r12d
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %r15d
	addq	$51, %r13
	cmpl	%r12d, %r15d
	jg	.L6
	movslq	%r15d, %rax
	movq	%rsp, %rsi
	leaq	(%rax,%rax,2), %rdx
	leaq	0(,%rax,4), %rcx
	leaq	(%rax,%rdx,4), %rax
	leaq	15(,%rax,8), %rdx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rsi
.L7:
	cmpq	%rsi, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L67
.L9:
	movq	%rsp, %r14
	movq	%rcx, %r12
	movq	%r14, -88(%rbp)
	shrq	$2, %r12
	testl	%r15d, %r15d
	jle	.L10
	xorl	%esi, %esi
.L12:
	xorl	%edx, %edx
	movslq	%esi, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	%edx, %rax
	addl	$1, %edx
	imulq	%r12, %rax
	addq	%rcx, %rax
	movl	$0, (%r14,%rax,4)
	cmpl	$26, %edx
	jne	.L11
	addl	$1, %esi
	cmpl	%esi, %r15d
	jne	.L12
	xorl	%r13d, %r13d
.L13:
	movq	%rbx, %rdi
	call	strlen@PLT
	movl	$97, %ecx
	movslq	%r13d, %r8
	movq	%rax, %rdi
	.p2align 4,,10
	.p2align 3
.L21:
	leal	-97(%rcx), %esi
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	.L60
	movslq	%esi, %rsi
	imulq	%r12, %rsi
	addq	%r8, %rsi
	.p2align 4,,10
	.p2align 3
.L17:
	movsbl	(%rbx,%rax), %edx
	cmpl	%ecx, %edx
	je	.L68
	addq	$1, %rax
	cmpq	%rax, %rdi
	ja	.L17
	addl	$1, %ecx
	cmpl	$123, %ecx
	jne	.L21
.L18:
	addl	$1, %r13d
	addq	$51, %rbx
	cmpl	%r13d, %r15d
	jne	.L13
.L20:
	leaq	0(,%r12,4), %rax
	xorl	%r14d, %r14d
	movq	%rax, -80(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L22:
	movl	$334, %ebx
	testl	%r13d, %r13d
	jle	.L26
	leal	-1(%r13), %eax
	cmpl	$2, %eax
	jbe	.L38
	movl	%r13d, %eax
	movq	-72(%rbp), %rbx
	movdqa	.LC0(%rip), %xmm1
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rdx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L24:
	movdqu	(%rax), %xmm0
	movdqa	%xmm1, %xmm2
	movdqu	(%rax), %xmm4
	addq	$16, %rax
	psubd	.LC3(%rip), %xmm0
	psubd	.LC3(%rip), %xmm2
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm4, %xmm0
	por	%xmm0, %xmm1
	cmpq	%rdx, %rax
	jne	.L24
	movdqa	%xmm1, %xmm2
	movdqa	%xmm1, %xmm3
	psubd	.LC3(%rip), %xmm3
	movl	%r13d, %eax
	psrldq	$8, %xmm2
	andl	$-4, %eax
	movdqa	%xmm2, %xmm0
	psubd	.LC3(%rip), %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	psubd	.LC3(%rip), %xmm3
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	psubd	.LC3(%rip), %xmm1
	pcmpgtd	%xmm3, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %ebx
	testb	$3, %r13b
	je	.L25
.L23:
	movslq	%r14d, %rcx
	movq	-88(%rbp), %rsi
	movslq	%eax, %rdx
	imulq	%r12, %rcx
	addq	%rcx, %rdx
	movl	(%rsi,%rdx,4), %edx
	cmpl	%edx, %ebx
	cmova	%edx, %ebx
	leal	1(%rax), %edx
	cmpl	%r13d, %edx
	jge	.L25
	movslq	%edx, %rdx
	addq	%rcx, %rdx
	movl	(%rsi,%rdx,4), %edx
	cmpl	%edx, %ebx
	cmova	%edx, %ebx
	addl	$2, %eax
	cmpl	%eax, %r13d
	jle	.L25
	cltq
	addq	%rcx, %rax
	movl	(%rsi,%rax,4), %eax
	cmpl	%eax, %ebx
	cmova	%eax, %ebx
.L25:
	testl	%ebx, %ebx
	je	.L30
.L26:
	leal	97(%r14), %r13d
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L29:
	movq	stdout(%rip), %rsi
	movl	%r13d, %edi
	addl	$1, %r15d
	call	putc@PLT
	cmpl	%ebx, %r15d
	jb	.L29
.L30:
	addl	$1, %r14d
	movq	-80(%rbp), %rdi
	addq	%rdi, -72(%rbp)
	cmpl	$26, %r14d
	je	.L69
	movl	-60(%rbp), %r13d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L68:
	addq	$1, %rax
	addl	$1, (%r14,%rsi,4)
	cmpq	%rdi, %rax
	jb	.L17
	addl	$1, %ecx
	cmpl	$123, %ecx
	jne	.L21
	jmp	.L18
.L60:
	addl	$1, %ecx
	cmpl	$123, %ecx
	je	.L18
	addl	$1, %ecx
	cmpl	$123, %ecx
	jne	.L21
	jmp	.L18
.L38:
	xorl	%eax, %eax
	movl	$334, %ebx
	jmp	.L23
.L69:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L70
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L67:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L9
.L66:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	leaq	0(,%rax,4), %rcx
	movq	%rsp, %rsi
	imulq	$104, %rax, %rax
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L32:
	cmpq	%rsi, %rsp
	je	.L33
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L32
.L33:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L34
	orq	$0, -8(%rsp,%rax)
.L34:
	movq	%rsp, -88(%rbp)
.L10:
	shrq	$2, %rcx
	movl	%r15d, %r13d
	movq	%rcx, %r12
	jmp	.L20
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	334
	.long	334
	.long	334
	.long	334
	.align 16
.LC3:
	.long	-2147483648
	.long	-2147483648
	.long	-2147483648
	.long	-2147483648
	.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<stdlib.h>
#include<stdbool.h>
#include<string.h>
#include<math.h>
#define mprint(x) printf(FORMATCONVERSION(x),(x))
#define FORMATCONVERSION(x) _Generic((x),\
                                    int:"%d",unsigned int:"%u",\
                                    double:"%lf",long long int:"%lld",\
                                    unsigned long long int:"%llu",\
                                    char :"%c",char*:"%s")


int main(void){
    int n;
    scanf("%d",&n);
    char str[n][51];
    for(int i = 0;i < n;i++)scanf("%s",str[i]);
    unsigned char_buf[26][n];

    for(int i = 0;i < n;i++)for(int j = 0;j < 26;j++)char_buf[j][i] = 0;

    for(int index = 0;index < n;index++)
        for(int ch = 0;ch < 26;ch++)
            for(int buf_ptr = 0;buf_ptr < strlen(str[index]);buf_ptr++)
                if(str[index][buf_ptr] == 'a' + ch)char_buf[ch][index]++;

    unsigned min = 334;
    for(int ch = 0;ch < 26;ch++){
        for(int index = 0;index < n;index++)if(char_buf[ch][index] < min)min = char_buf[ch][index];
        for(int count = 0;count < min;count++)putchar('a' + ch);
        min = 334;
    }
    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<stdlib.h>
#include<stdbool.h>
#include<string.h>
#include<math.h>
#define mprint(x) printf(FORMATCONVERSION(x),(x))
#define FORMATCONVERSION(x) _Generic((x),\
                                    int:"%d",unsigned int:"%u",\
                                    double:"%lf",long long int:"%lld",\
                                    unsigned long long int:"%llu",\
                                    char :"%c",char*:"%s")


int main(void){
    int n;
    scanf("%d",&n);
    char str[n][51];
    for(int i = 0;i < n;i++)scanf("%s",str[i]);
    unsigned char_buf[26][n];

    for(int i = 0;i < n;i++)for(int j = 0;j < 26;j++)char_buf[j][i] = 0;

    for(int index = 0;index < n;index++)
        for(int ch = 0;ch < 26;ch++)
            for(int buf_ptr = 0;buf_ptr < strlen(str[index]);buf_ptr++)
                if(str[index][buf_ptr] == 'a' + ch)char_buf[ch][index]++;

    unsigned min = 334;
    for(int ch = 0;ch < 26;ch++){
        for(int index = 0;index < n;index++)if(char_buf[ch][index] < min)min = char_buf[ch][index];
        for(int count = 0;count < min;count++)putchar('a' + ch);
        min = 334;
    }
    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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -200(%rbp)
	leaq	-132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movq	-160(%rbp), %r10
	movq	-152(%rbp), %r11
	imulq	$408, %r11, %rdx
	imulq	$0, %r10, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$408, %eax
	mulq	%r10
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-176(%rbp), %r8
	movq	-168(%rbp), %r9
	imulq	$408, %r9, %rdx
	imulq	$0, %r8, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$408, %eax
	mulq	%r8
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L5
.L6:
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	movq	-80(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -128(%rbp)
.L5:
	movl	-132(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jl	.L6
	movl	-132(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$832, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$832, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$832, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$832, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -124(%rbp)
	jmp	.L10
.L13:
	movl	$0, -120(%rbp)
	jmp	.L11
.L12:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rsi
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -120(%rbp)
.L11:
	cmpl	$25, -120(%rbp)
	jle	.L12
	addl	$1, -124(%rbp)
.L10:
	movl	-132(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jl	.L13
	movl	$0, -116(%rbp)
	jmp	.L14
.L20:
	movl	$0, -112(%rbp)
	jmp	.L15
.L19:
	movl	$0, -108(%rbp)
	jmp	.L16
.L18:
	movq	-80(%rbp), %rsi
	movl	-108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	-112(%rbp), %edx
	addl	$97, %edx
	cmpl	%edx, %eax
	jne	.L17
	movq	%rbx, %rax
	shrq	$2, %rax
	movq	-64(%rbp), %rdx
	movl	-116(%rbp), %ecx
	movslq	%ecx, %rsi
	movl	-112(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rax, %rcx
	addq	%rsi, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-64(%rbp), %rdx
	movl	-116(%rbp), %esi
	movslq	%esi, %rdi
	movl	-112(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rsi, %rax
	addq	%rdi, %rax
	movl	%ecx, (%rdx,%rax,4)
.L17:
	addl	$1, -108(%rbp)
.L16:
	movl	-108(%rbp), %eax
	movslq	%eax, %r12
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	movq	-80(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %r12
	jb	.L18
	addl	$1, -112(%rbp)
.L15:
	cmpl	$25, -112(%rbp)
	jle	.L19
	addl	$1, -116(%rbp)
.L14:
	movl	-132(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L20
	movl	$334, -104(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L21
.L27:
	movl	$0, -96(%rbp)
	jmp	.L22
.L24:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rsi
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -104(%rbp)
	jbe	.L23
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rsi
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -104(%rbp)
.L23:
	addl	$1, -96(%rbp)
.L22:
	movl	-132(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L24
	movl	$0, -92(%rbp)
	jmp	.L25
.L26:
	movl	-100(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -92(%rbp)
.L25:
	movl	-92(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	ja	.L26
	movl	$334, -104(%rbp)
	addl	$1, -100(%rbp)
.L21:
	cmpl	$25, -100(%rbp)
	jle	.L27
	movl	$0, %eax
	movq	-200(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -200(%rbp)
	leaq	-132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movq	-160(%rbp), %r10
	movq	-152(%rbp), %r11
	imulq	$408, %r11, %rdx
	imulq	$0, %r10, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$408, %eax
	mulq	%r10
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-176(%rbp), %r8
	movq	-168(%rbp), %r9
	imulq	$408, %r9, %rdx
	imulq	$0, %r8, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$408, %eax
	mulq	%r8
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L5
.L6:
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	movq	-80(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -128(%rbp)
.L5:
	movl	-132(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jl	.L6
	movl	-132(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$832, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$832, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$832, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$832, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -124(%rbp)
	jmp	.L10
.L13:
	movl	$0, -120(%rbp)
	jmp	.L11
.L12:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rsi
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -120(%rbp)
.L11:
	cmpl	$25, -120(%rbp)
	jle	.L12
	addl	$1, -124(%rbp)
.L10:
	movl	-132(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jl	.L13
	movl	$0, -116(%rbp)
	jmp	.L14
.L20:
	movl	$0, -112(%rbp)
	jmp	.L15
.L19:
	movl	$0, -108(%rbp)
	jmp	.L16
.L18:
	movq	-80(%rbp), %rsi
	movl	-108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	-112(%rbp), %edx
	addl	$97, %edx
	cmpl	%edx, %eax
	jne	.L17
	movq	%rbx, %rax
	shrq	$2, %rax
	movq	-64(%rbp), %rdx
	movl	-116(%rbp), %ecx
	movslq	%ecx, %rsi
	movl	-112(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rax, %rcx
	addq	%rsi, %rcx
	movl	(%rdx,%rcx,4), %edx
	leal	1(%rdx), %ecx
	movq	-64(%rbp), %rdx
	movl	-116(%rbp), %esi
	movslq	%esi, %rdi
	movl	-112(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rsi, %rax
	addq	%rdi, %rax
	movl	%ecx, (%rdx,%rax,4)
.L17:
	addl	$1, -108(%rbp)
.L16:
	movl	-108(%rbp), %eax
	movslq	%eax, %r12
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$4, %rdx
	addq	%rdx, %rax
	movq	-80(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %r12
	jb	.L18
	addl	$1, -112(%rbp)
.L15:
	cmpl	$25, -112(%rbp)
	jle	.L19
	addl	$1, -116(%rbp)
.L14:
	movl	-132(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L20
	movl	$334, -104(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L21
.L27:
	movl	$0, -96(%rbp)
	jmp	.L22
.L24:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rsi
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -104(%rbp)
	jbe	.L23
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rsi
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -104(%rbp)
.L23:
	addl	$1, -96(%rbp)
.L22:
	movl	-132(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L24
	movl	$0, -92(%rbp)
	jmp	.L25
.L26:
	movl	-100(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -92(%rbp)
.L25:
	movl	-92(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	ja	.L26
	movl	$334, -104(%rbp)
	addl	$1, -100(%rbp)
.L21:
	cmpl	$25, -100(%rbp)
	jle	.L27
	movl	$0, %eax
	movq	-200(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
