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<string.h>

void strpart(char *a,char *b,char *c,int n)
{
	int i,j,l=strlen(a);
	for(i=0;i<n;i++){b[i] = a[i];}
	b[i]='\0';
	for(j=0;j<=l;j++){c[j] = a[i++];}
}

void strreverse(char *a)
{
	int i,l=strlen(a);
	char b[731];
	for(i=0;i<l;i++)b[i]=a[l-i-1];
	b[i]='\0';
	strcpy(a,b);
}

void strlink(char *a,char *b,char *c)
{
	strcpy(a,b);
	strcpy(&a[strlen(b)],c);
}

int main(void)
{
	int i,j,k,p;
	int l,m;
	char a[73],b[73],c[73],d[576][73];
	
	scanf("%d ",&m);
	
	for(i=0;i<m;i++)
	{
		scanf("%s ",a);
		l = strlen(a);
		p = 0;
		strcpy(d[p++],a);
		strreverse(a);
		strcpy(d[p++],a);
		if(strcmp(d[0],d[1])==0)p--;
		
		for(j=1;j<l;j++)
		{
			strpart(a,b,c,j);
			
			strlink(d[p++],c,b);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strreverse(b);
			
			strlink(d[p++],b,c);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strlink(d[p++],c,b);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strreverse(c);
			
			strlink(d[p++],b,c);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strreverse(b);
			
			strlink(d[p++],b,c);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strlink(d[p++],c,b);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
		}		
		printf("%d\n",p);
	}
	return 0;
}
		```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	strpart
	.type	strpart, @function
strpart:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -44(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jl	.L3
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movl	$0, -8(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -12(%rbp)
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movq	-40(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strpart, .-strpart
	.globl	strreverse
	.type	strreverse, @function
strreverse:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$784, %rsp
	movq	%rdi, -776(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-776(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -756(%rbp)
	movl	$0, -760(%rbp)
	jmp	.L7
.L8:
	movl	-756(%rbp), %eax
	subl	-760(%rbp), %eax
	cltq
	leaq	-1(%rax), %rdx
	movq	-776(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-760(%rbp), %eax
	cltq
	movb	%dl, -752(%rbp,%rax)
	addl	$1, -760(%rbp)
.L7:
	movl	-760(%rbp), %eax
	cmpl	-756(%rbp), %eax
	jl	.L8
	movl	-760(%rbp), %eax
	cltq
	movb	$0, -752(%rbp,%rax)
	leaq	-752(%rbp), %rdx
	movq	-776(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	strreverse, .-strreverse
	.globl	strlink
	.type	strlink, @function
strlink:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	-8(%rbp), %rdx
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	strlink, .-strlink
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	"%s "
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1376, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-42328(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -42324(%rbp)
	jmp	.L12
.L34:
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -42308(%rbp)
	movl	$0, -42312(%rbp)
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	leaq	-42304(%rbp), %rax
	leaq	73(%rax), %rdx
	leaq	-42304(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L13
	subl	$1, -42312(%rbp)
.L13:
	movl	$1, -42320(%rbp)
	jmp	.L14
.L33:
	movl	-42320(%rbp), %ecx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rsi
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strpart
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-176(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L15
.L17:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L16
	subl	$1, -42312(%rbp)
.L16:
	addl	$1, -42316(%rbp)
.L15:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L17
	leaq	-176(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L18
.L20:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L19
	subl	$1, -42312(%rbp)
.L19:
	addl	$1, -42316(%rbp)
.L18:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L20
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-176(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L21
.L23:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L22
	subl	$1, -42312(%rbp)
.L22:
	addl	$1, -42316(%rbp)
.L21:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L23
	leaq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L24
.L26:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L25
	subl	$1, -42312(%rbp)
.L25:
	addl	$1, -42316(%rbp)
.L24:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L26
	leaq	-176(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L27
.L29:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L28
	subl	$1, -42312(%rbp)
.L28:
	addl	$1, -42316(%rbp)
.L27:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L29
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-176(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L30
.L32:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L31
	subl	$1, -42312(%rbp)
.L31:
	addl	$1, -42316(%rbp)
.L30:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L32
	addl	$1, -42320(%rbp)
.L14:
	movl	-42320(%rbp), %eax
	cmpl	-42308(%rbp), %eax
	jl	.L33
	movl	-42312(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -42324(%rbp)
.L12:
	movl	-42328(%rbp), %eax
	cmpl	%eax, -42324(%rbp)
	jl	.L34
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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
	.p2align 4
	.globl	strpart
	.type	strpart, @function
strpart:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%ecx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	strlen@PLT
	movq	%rax, %rdx
	testl	%ebx, %ebx
	jle	.L23
	leaq	1(%rbp), %rdi
	movq	%r12, %rcx
	leal	-1(%rbx), %eax
	movl	%ebx, %esi
	subq	%rdi, %rcx
	cmpq	$14, %rcx
	jbe	.L3
	cmpl	$6, %eax
	jbe	.L3
	cmpl	$14, %eax
	jbe	.L24
	movl	%ebx, %ecx
	xorl	%eax, %eax
	shrl	$4, %ecx
	salq	$4, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqu	0(%rbp,%rax), %xmm0
	movups	%xmm0, (%r12,%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L5
	movl	%ebx, %ecx
	andl	$-16, %ecx
	movl	%ecx, %eax
	cmpl	%ecx, %ebx
	je	.L10
	movl	%ebx, %esi
	subl	%ecx, %esi
	leal	-1(%rsi), %edi
	cmpl	$6, %edi
	jbe	.L7
.L4:
	movq	0(%rbp,%rcx), %rdi
	movq	%rdi, (%r12,%rcx)
	movl	%esi, %ecx
	andl	$-8, %ecx
	addl	%ecx, %eax
	cmpl	%ecx, %esi
	je	.L10
.L7:
	movslq	%eax, %rcx
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	leal	1(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	leal	2(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	leal	3(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	leal	4(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	leal	5(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	movslq	%ecx, %rcx
	addl	$6, %eax
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	cmpl	%eax, %ebx
	jle	.L10
	cltq
	movzbl	0(%rbp,%rax), %ecx
	movb	%cl, (%r12,%rax)
.L10:
	movslq	%ebx, %rax
	addq	%rax, %r12
.L2:
	movb	$0, (%r12)
	testl	%edx, %edx
	js	.L1
	movslq	%ebx, %rcx
	movq	%r13, %rax
	leaq	1(%rbp,%rcx), %rsi
	subq	%rsi, %rax
	cmpq	$14, %rax
	jbe	.L12
	cmpl	$6, %edx
	jbe	.L12
	leal	1(%rdx), %edi
	cmpl	$14, %edx
	jbe	.L13
	movl	%edi, %esi
	addq	%rbp, %rcx
	xorl	%eax, %eax
	shrl	$4, %esi
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L14:
	movdqu	(%rcx,%rax), %xmm1
	movups	%xmm1, 0(%r13,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L14
	movl	%edi, %eax
	andl	$-16, %eax
	movl	%eax, %esi
	addl	%eax, %ebx
	cmpl	%eax, %edi
	je	.L1
	movl	%edx, %r8d
	subl	%eax, %r8d
	leal	1(%r8), %edi
	cmpl	$6, %r8d
	jbe	.L18
.L22:
	movq	(%rcx,%rax), %rcx
	movq	%rcx, 0(%r13,%rax)
	movl	%edi, %eax
	andl	$-8, %eax
	addl	%eax, %ebx
	addl	%eax, %esi
	cmpl	%eax, %edi
	je	.L1
.L18:
	movslq	%ebx, %rax
	leal	1(%rbx), %ecx
	movzbl	0(%rbp,%rax), %edi
	movslq	%esi, %rax
	movb	%dil, 0(%r13,%rax)
	leal	1(%rsi), %eax
	cmpl	%eax, %edx
	jl	.L1
	movslq	%ecx, %rcx
	cltq
	leal	2(%rbx), %edi
	movzbl	0(%rbp,%rcx), %ecx
	movb	%cl, 0(%r13,%rax)
	leal	2(%rsi), %eax
	cmpl	%eax, %edx
	jl	.L1
	movslq	%edi, %rdi
	cltq
	leal	3(%rbx), %ecx
	movzbl	0(%rbp,%rdi), %edi
	movb	%dil, 0(%r13,%rax)
	leal	3(%rsi), %eax
	cmpl	%eax, %edx
	jl	.L1
	movslq	%ecx, %rcx
	cltq
	leal	4(%rbx), %edi
	movzbl	0(%rbp,%rcx), %ecx
	movb	%cl, 0(%r13,%rax)
	leal	4(%rsi), %eax
	cmpl	%eax, %edx
	jl	.L1
	movslq	%edi, %rdi
	cltq
	leal	5(%rbx), %ecx
	movzbl	0(%rbp,%rdi), %edi
	movb	%dil, 0(%r13,%rax)
	leal	5(%rsi), %eax
	cmpl	%eax, %edx
	jl	.L1
	movslq	%ecx, %rcx
	cltq
	addl	$6, %esi
	addl	$6, %ebx
	movzbl	0(%rbp,%rcx), %ecx
	movb	%cl, 0(%r13,%rax)
	cmpl	%esi, %edx
	jl	.L1
	movslq	%ebx, %rbx
	movslq	%esi, %rsi
	movzbl	0(%rbp,%rbx), %eax
	movb	%al, 0(%r13,%rsi)
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%edx, %edx
	xorl	%eax, %eax
	addq	%rbp, %rcx
	.p2align 4,,10
	.p2align 3
.L20:
	movzbl	(%rcx,%rax), %esi
	movb	%sil, 0(%r13,%rax)
	movq	%rax, %rsi
	addq	$1, %rax
	cmpq	%rsi, %rdx
	jne	.L20
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movl	%ebx, %esi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movzbl	0(%rbp,%rax), %ecx
	movb	%cl, (%r12,%rax)
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L9
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	xorl	%ebx, %ebx
	jmp	.L2
.L13:
	xorl	%eax, %eax
	xorl	%esi, %esi
	addq	%rbp, %rcx
	jmp	.L22
.L24:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L4
	.cfi_endproc
.LFE51:
	.size	strpart, .-strpart
	.p2align 4
	.globl	strreverse
	.type	strreverse, @function
strreverse:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	subq	$752, %rsp
	.cfi_def_cfa_offset 768
	movq	%fs:40, %rax
	movq	%rax, 744(%rsp)
	xorl	%eax, %eax
	call	strlen@PLT
	testl	%eax, %eax
	jle	.L47
	movslq	%eax, %rsi
	movslq	%eax, %rdi
	movq	%rsp, %r8
	subl	$1, %eax
	leaq	-1(%rbp,%rsi), %rdx
	leaq	-2(%rbp,%rsi), %rsi
	movq	%r8, %rcx
	subq	%rax, %rsi
	.p2align 4,,10
	.p2align 3
.L45:
	movzbl	(%rdx), %eax
	subq	$1, %rdx
	addq	$1, %rcx
	movb	%al, -1(%rcx)
	cmpq	%rsi, %rdx
	jne	.L45
.L44:
	movb	$0, (%rsp,%rdi)
	movq	%r8, %rsi
	movq	%rbp, %rdi
	call	strcpy@PLT
	movq	744(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$752, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L47:
	.cfi_restore_state
	xorl	%edi, %edi
	movq	%rsp, %r8
	jmp	.L44
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	strreverse, .-strreverse
	.p2align 4
	.globl	strlink
	.type	strlink, @function
strlink:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
	call	strcpy@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%r12, %rsi
	leaq	(%rbx,%rax), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	strcpy@PLT
	.cfi_endproc
.LFE53:
	.size	strlink, .-strlink
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d "
.LC1:
	.string	"%s "
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-40960(%rsp), %r11
	.cfi_def_cfa 11, 41016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2216, %rsp
	.cfi_def_cfa_offset 43232
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 43160(%rsp)
	xorl	%eax, %eax
	leaq	124(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	124(%rsp), %eax
	testl	%eax, %eax
	jle	.L54
	leaq	42176(%rsp), %rax
	movl	$0, 100(%rsp)
	leaq	128(%rsp), %rbp
	movq	%rax, 56(%rsp)
	leaq	42416(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	201(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	42256(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L118:
	movq	56(%rsp), %r15
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%r15, %rsi
	call	__isoc99_scanf@PLT
	movq	%r15, %rdi
	call	strlen@PLT
	movl	$42048, %ecx
	movq	%rbp, %rdi
	movq	%r15, %rsi
	movq	%rax, %rbx
	leaq	1(%rax), %rdx
	movq	%rax, 80(%rsp)
	call	__memcpy_chk@PLT
	movq	%rbx, %rcx
	movslq	%ebx, %rdi
	testq	%rbx, %rbx
	je	.L120
	movslq	%ebx, %rax
	subl	$1, %ecx
	leaq	-1(%r15,%rax), %rdx
	movq	24(%rsp), %rax
	leaq	42417(%rsp,%rcx), %rsi
	.p2align 4,,10
	.p2align 3
.L56:
	movzbl	(%rdx), %ecx
	addq	$1, %rax
	subq	$1, %rdx
	movb	%cl, -1(%rax)
	cmpq	%rax, %rsi
	jne	.L56
.L55:
	movq	56(%rsp), %rbx
	movq	24(%rsp), %rsi
	movl	$73, %edx
	movb	$0, 42416(%rsp,%rdi)
	movq	%rbx, %rdi
	call	__stpcpy_chk@PLT
	movq	%rbx, %rsi
	movl	$41975, %ecx
	subq	%rbx, %rax
	movq	104(%rsp), %rbx
	leaq	1(%rax), %rdx
	movq	%rax, 88(%rsp)
	movq	%rbx, %rdi
	call	__memcpy_chk@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movl	$1, %ebx
	call	strcmp@PLT
	cmpl	$1, %eax
	sbbl	$-1, %ebx
	cmpq	$1, 80(%rsp)
	jbe	.L58
	leaq	42336(%rsp), %rax
	movl	%ebx, %r13d
	movq	$1, 32(%rsp)
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L117:
	movq	32(%rsp), %rax
	movq	8(%rsp), %rdi
	movq	56(%rsp), %rsi
	movl	%eax, %edx
	cmpl	$8, %eax
	jb	.L59
	movl	%eax, %ecx
	shrl	$3, %ecx
	rep movsq
.L59:
	xorl	%eax, %eax
	testb	$4, %dl
	je	.L60
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	movl	$4, %eax
.L60:
	testb	$2, %dl
	je	.L61
	movzwl	(%rsi,%rax), %ecx
	movw	%cx, (%rdi,%rax)
	addq	$2, %rax
.L61:
	andl	$1, %edx
	je	.L62
	movzbl	(%rsi,%rax), %edx
	movb	%dl, (%rdi,%rax)
.L62:
	movq	8(%rsp), %rax
	movq	32(%rsp), %rbx
	movq	56(%rsp), %rsi
	movq	16(%rsp), %rdi
	movb	$0, (%rax,%rbx)
	movq	88(%rsp), %rax
	testl	%eax, %eax
	leaq	1(%rax), %rcx
	movl	$1, %eax
	cmovs	%rax, %rcx
	addq	%rbx, %rsi
	movl	%ecx, %edx
	cmpl	$8, %ecx
	jb	.L63
	shrl	$3, %ecx
	rep movsq
.L63:
	xorl	%eax, %eax
	testb	$4, %dl
	je	.L64
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	movl	$4, %eax
.L64:
	testb	$2, %dl
	je	.L65
	movzwl	(%rsi,%rax), %ecx
	movw	%cx, (%rdi,%rax)
	addq	$2, %rax
.L65:
	andl	$1, %edx
	je	.L66
	movzbl	(%rsi,%rax), %edx
	movb	%dl, (%rdi,%rax)
.L66:
	leal	1(%r13), %eax
	movslq	%r13d, %r12
	movq	16(%rsp), %r15
	movl	%eax, 40(%rsp)
	leaq	(%r12,%r12,8), %rax
	leaq	(%r12,%rax,8), %rbx
	movq	%r15, %rsi
	addq	%rbp, %rbx
	movq	%rbx, %rdi
	call	strcpy@PLT
	movq	%r15, %rdi
	call	strlen@PLT
	movq	8(%rsp), %rsi
	movq	%rax, %r14
	leaq	(%rbx,%rax), %rdi
	xorl	%ebx, %ebx
	call	strcpy@PLT
	movl	%ebx, %r15d
	movq	%r14, 48(%rsp)
	movl	40(%rsp), %ebx
	movq	%rbp, 64(%rsp)
	movq	%rbp, %r14
	jmp	.L70
	.p2align 4,,10
	.p2align 3
.L172:
	leal	-1(%rbx), %r13d
	addq	$73, %r14
	cmpl	%r13d, %r15d
	jge	.L171
.L68:
	movslq	%r13d, %r12
.L70:
	leaq	(%r12,%r12,8), %rax
	movq	%r14, %rdi
	addl	$1, %r15d
	leaq	(%r12,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L172
	leal	-1(%r13), %eax
	addq	$73, %r14
	cmpl	%r15d, %eax
	jle	.L166
	movl	%r13d, %ebx
	movl	%eax, %r13d
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L171:
	movslq	%ebx, %r12
	movq	48(%rsp), %r14
	movq	%r12, %r13
.L69:
	movq	8(%rsp), %rbx
	movq	%rbx, %rdi
	call	strlen@PLT
	movslq	%eax, %rdi
	testq	%rax, %rax
	je	.L122
	movslq	%eax, %rdx
	subl	$1, %eax
	leaq	-1(%rbx,%rdx), %rcx
	movq	24(%rsp), %rdx
	leaq	42417(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L72:
	movzbl	(%rcx), %eax
	addq	$1, %rdx
	subq	$1, %rcx
	movb	%al, -1(%rdx)
	cmpq	%rdx, %rsi
	jne	.L72
.L71:
	movq	8(%rsp), %rbx
	movq	24(%rsp), %rsi
	movl	$73, %edx
	movb	$0, 42416(%rsp,%rdi)
	movq	%rbx, %rdi
	call	__stpcpy_chk@PLT
	leaq	(%r12,%r12,8), %rdx
	leal	1(%r13), %edi
	movq	%rbx, %rsi
	subq	%rbx, %rax
	leaq	(%r12,%rdx,8), %rcx
	movl	%edi, 96(%rsp)
	addq	%rbp, %rcx
	movq	%rax, 40(%rsp)
	movq	%rax, %rbx
	leaq	1(%rax), %rax
	movq	%rcx, %rdi
	movq	%rax, %rdx
	movq	%rax, 48(%rsp)
	call	memcpy@PLT
	leaq	1(%r14), %rcx
	leaq	(%rax,%rbx), %rax
	cmpl	$8, %ecx
	jnb	.L73
	testb	$4, %cl
	jne	.L173
	testl	%ecx, %ecx
	je	.L74
	movq	16(%rsp), %rdi
	movzbl	(%rdi), %edx
	movb	%dl, (%rax)
	testb	$2, %cl
	jne	.L174
.L74:
	movq	%r14, 72(%rsp)
	movl	96(%rsp), %ebx
	xorl	%r15d, %r15d
	movq	%rbp, %r14
	jmp	.L80
	.p2align 4,,10
	.p2align 3
.L176:
	leal	-1(%rbx), %r13d
	addq	$73, %r14
	cmpl	%r13d, %r15d
	jge	.L175
.L78:
	movslq	%r13d, %r12
.L80:
	leaq	(%r12,%r12,8), %rax
	movq	%r14, %rdi
	addl	$1, %r15d
	leaq	(%r12,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L176
	leal	-1(%r13), %eax
	addq	$73, %r14
	cmpl	%r15d, %eax
	jle	.L167
	movl	%r13d, %ebx
	movl	%eax, %r13d
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L73:
	movq	16(%rsp), %rbx
	leaq	8(%rax), %rdi
	andq	$-8, %rdi
	movq	(%rbx), %rdx
	movq	%rdx, (%rax)
	movl	%ecx, %edx
	movq	-8(%rbx,%rdx), %rsi
	movq	%rsi, -8(%rax,%rdx)
	subq	%rdi, %rax
	subq	%rax, %rbx
	addl	%eax, %ecx
	movq	%rbx, %rsi
	shrl	$3, %ecx
	rep movsq
	jmp	.L74
	.p2align 4,,10
	.p2align 3
.L175:
	movslq	%ebx, %r12
	movq	72(%rsp), %r14
	movq	%r12, %r13
.L79:
	leal	1(%r13), %eax
	movl	%eax, %r9d
	leaq	(%r12,%r12,8), %rax
	leaq	(%r12,%rax,8), %rax
	addq	%rbp, %rax
	cmpl	$8, %r14d
	jnb	.L81
	testb	$4, %r14b
	jne	.L177
	testl	%r14d, %r14d
	je	.L82
	movq	16(%rsp), %rdi
	movzbl	(%rdi), %edx
	movb	%dl, (%rax)
	testb	$2, %r14b
	jne	.L178
.L82:
	movq	48(%rsp), %rdi
	addq	%r14, %rax
	cmpl	$8, %edi
	jnb	.L85
	testb	$4, %dil
	jne	.L179
	testl	%edi, %edi
	je	.L86
	movq	8(%rsp), %rdx
	andl	$2, %edi
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
	jne	.L180
.L86:
	movq	%r14, 48(%rsp)
	xorl	%r15d, %r15d
	movq	%rbp, %r14
	movl	%r9d, %ebx
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L182:
	leal	-1(%rbx), %r13d
	addq	$73, %r14
	cmpl	%r13d, %r15d
	jge	.L181
.L90:
	movslq	%r13d, %r12
.L92:
	leaq	(%r12,%r12,8), %rax
	movq	%r14, %rdi
	addl	$1, %r15d
	leaq	(%r12,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L182
	leal	-1(%r13), %eax
	addq	$73, %r14
	cmpl	%r15d, %eax
	jle	.L168
	movl	%r13d, %ebx
	movl	%eax, %r13d
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L85:
	movq	8(%rsp), %rbx
	leaq	8(%rax), %rdi
	andq	$-8, %rdi
	movq	(%rbx), %rdx
	movq	%rdx, (%rax)
	movq	48(%rsp), %r10
	movl	%r10d, %edx
	movq	-8(%rbx,%rdx), %rcx
	movq	%rcx, -8(%rax,%rdx)
	subq	%rdi, %rax
	movl	%r10d, %ecx
	subq	%rax, %rbx
	addl	%eax, %ecx
	movq	%rbx, %rsi
	shrl	$3, %ecx
	rep movsq
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L81:
	movq	16(%rsp), %rbx
	leaq	8(%rax), %rdi
	andq	$-8, %rdi
	movq	(%rbx), %rdx
	movq	%rdx, (%rax)
	movl	%r14d, %edx
	movq	-8(%rbx,%rdx), %rcx
	movq	%rcx, -8(%rax,%rdx)
	movq	%rax, %rdx
	subq	%rdi, %rdx
	leal	(%r14,%rdx), %ecx
	subq	%rdx, %rbx
	movl	%ecx, %edx
	movq	%rbx, %rsi
	shrl	$3, %edx
	movl	%edx, %ecx
	rep movsq
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L168:
	movq	48(%rsp), %r14
	movslq	%r14d, %rdi
	testq	%r14, %r14
	je	.L123
.L192:
	movq	16(%rsp), %rdx
	movslq	%r14d, %rax
	leal	-1(%r14), %ecx
	leaq	42417(%rsp,%rcx), %rsi
	leaq	-1(%rdx,%rax), %rdx
	movq	24(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L94:
	movzbl	(%rdx), %ecx
	addq	$1, %rax
	subq	$1, %rdx
	movb	%cl, -1(%rax)
	cmpq	%rax, %rsi
	jne	.L94
.L93:
	movq	24(%rsp), %rsi
	movb	$0, 42416(%rsp,%rdi)
	movl	$73, %edx
	leal	1(%r13), %r14d
	movq	16(%rsp), %rdi
	call	__stpcpy_chk@PLT
	movq	40(%rsp), %rdi
	movq	%rax, 48(%rsp)
	leaq	(%r12,%r12,8), %rax
	leaq	(%r12,%rax,8), %rax
	addq	%rbp, %rax
	cmpl	$8, %edi
	jnb	.L95
	testb	$4, %dil
	jne	.L183
	testl	%edi, %edi
	je	.L96
	movq	8(%rsp), %rdx
	andl	$2, %edi
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
	jne	.L184
.L96:
	movq	48(%rsp), %rdx
	movq	16(%rsp), %rsi
	movq	%rbp, %rbx
	xorl	%r15d, %r15d
	movq	40(%rsp), %rdi
	subq	%rsi, %rdx
	addq	%rax, %rdi
	addq	$1, %rdx
	call	memcpy@PLT
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L185:
	leal	-1(%r14), %r13d
	addq	$73, %rbx
	cmpl	%r13d, %r15d
	jge	.L101
.L100:
	movslq	%r13d, %r12
.L102:
	leaq	(%r12,%r12,8), %rax
	movq	%rbx, %rdi
	addl	$1, %r15d
	leaq	(%r12,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L185
	leal	-1(%r13), %eax
	addq	$73, %rbx
	movl	%r13d, %r14d
	cmpl	%r15d, %eax
	jle	.L101
	movl	%eax, %r13d
	jmp	.L100
	.p2align 4,,10
	.p2align 3
.L101:
	movq	40(%rsp), %rbx
	movslq	%ebx, %rdi
	testq	%rbx, %rbx
	je	.L125
	movq	8(%rsp), %rdx
	movslq	%ebx, %rax
	leal	-1(%rbx), %ecx
	leaq	42417(%rsp,%rcx), %rsi
	leaq	-1(%rdx,%rax), %rdx
	movq	24(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L104:
	movzbl	(%rdx), %ecx
	addq	$1, %rax
	subq	$1, %rdx
	movb	%cl, -1(%rax)
	cmpq	%rsi, %rax
	jne	.L104
.L103:
	movq	8(%rsp), %r15
	movq	24(%rsp), %rsi
	leal	1(%r14), %r13d
	xorl	%r12d, %r12d
	movb	$0, 42416(%rsp,%rdi)
	movl	$73, %edx
	movq	%r15, %rdi
	call	__stpcpy_chk@PLT
	movslq	%r14d, %rcx
	movq	%r15, %rsi
	leaq	(%rcx,%rcx,8), %rdx
	subq	%r15, %rax
	movq	%rcx, 40(%rsp)
	leaq	(%rcx,%rdx,8), %rdi
	leaq	1(%rax), %r15
	movq	%rax, %rbx
	addq	%rbp, %rdi
	movq	%r15, %rdx
	call	memcpy@PLT
	movq	48(%rsp), %rdx
	movq	16(%rsp), %rsi
	movq	%rax, %rdi
	subq	%rsi, %rdx
	addq	%rbx, %rdi
	movq	%rbp, %rbx
	addq	$1, %rdx
	call	memcpy@PLT
	movq	40(%rsp), %rcx
	jmp	.L108
	.p2align 4,,10
	.p2align 3
.L186:
	leal	-1(%r13), %r14d
	addq	$73, %rbx
	cmpl	%r12d, %r14d
	jle	.L107
.L106:
	movslq	%r14d, %rcx
.L108:
	leaq	(%rcx,%rcx,8), %rax
	movq	%rbx, %rdi
	addl	$1, %r12d
	leaq	(%rcx,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L186
	leal	-1(%r14), %eax
	addq	$73, %rbx
	movl	%r14d, %r13d
	cmpl	%r12d, %eax
	jle	.L107
	movl	%eax, %r14d
	jmp	.L106
	.p2align 4,,10
	.p2align 3
.L107:
	movslq	%r13d, %r12
	movq	48(%rsp), %rbx
	movq	16(%rsp), %rsi
	leal	1(%r13), %r14d
	leaq	(%r12,%r12,8), %rax
	leaq	(%r12,%rax,8), %rcx
	subq	%rsi, %rbx
	addq	%rbp, %rcx
	leaq	1(%rbx), %rdx
	movq	%rcx, %rdi
	call	memcpy@PLT
	addq	%rax, %rbx
	cmpl	$8, %r15d
	jnb	.L109
	testb	$4, %r15b
	jne	.L187
	testl	%r15d, %r15d
	je	.L110
	movq	8(%rsp), %rax
	movzbl	(%rax), %eax
	movb	%al, (%rbx)
	testb	$2, %r15b
	jne	.L188
.L110:
	movq	64(%rsp), %r15
	xorl	%ebx, %ebx
	jmp	.L116
	.p2align 4,,10
	.p2align 3
.L190:
	leal	-1(%r14), %r13d
	addq	$73, %r15
	cmpl	%r13d, %ebx
	jge	.L189
.L114:
	movslq	%r13d, %r12
.L116:
	leaq	(%r12,%r12,8), %rax
	movq	%r15, %rdi
	addl	$1, %ebx
	leaq	(%r12,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L190
	leal	-1(%r13), %eax
	addq	$73, %r15
	cmpl	%ebx, %eax
	jle	.L115
	movl	%r13d, %r14d
	movl	%eax, %r13d
	jmp	.L114
	.p2align 4,,10
	.p2align 3
.L189:
	movl	%r14d, %r13d
.L115:
	addq	$1, 32(%rsp)
	movq	32(%rsp), %rax
	cmpq	%rax, 80(%rsp)
	jne	.L117
	movl	%r13d, %ebx
.L58:
	movl	%ebx, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addl	$1, 100(%rsp)
	movl	100(%rsp), %eax
	cmpl	%eax, 124(%rsp)
	jg	.L118
.L54:
	movq	43160(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L191
	addq	$43176, %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
	.p2align 4,,10
	.p2align 3
.L95:
	.cfi_restore_state
	movq	8(%rsp), %rbx
	leaq	8(%rax), %rdi
	andq	$-8, %rdi
	movq	(%rbx), %rdx
	movq	%rdx, (%rax)
	movq	40(%rsp), %r11
	movl	%r11d, %edx
	movq	-8(%rbx,%rdx), %rcx
	movq	%rcx, -8(%rax,%rdx)
	movq	%rax, %rdx
	movl	%r11d, %ecx
	subq	%rdi, %rdx
	addl	%edx, %ecx
	subq	%rdx, %rbx
	movl	%ecx, %edx
	movq	%rbx, %rsi
	shrl	$3, %edx
	movl	%edx, %ecx
	rep movsq
	jmp	.L96
	.p2align 4,,10
	.p2align 3
.L109:
	movq	8(%rsp), %rcx
	leaq	8(%rbx), %rdi
	andq	$-8, %rdi
	movq	(%rcx), %rax
	movq	%rax, (%rbx)
	movl	%r15d, %eax
	movq	-8(%rcx,%rax), %rdx
	movq	%rdx, -8(%rbx,%rax)
	subq	%rdi, %rbx
	subq	%rbx, %rcx
	movq	%rcx, %rsi
	leal	(%r15,%rbx), %ecx
	shrl	$3, %ecx
	rep movsq
	jmp	.L110
	.p2align 4,,10
	.p2align 3
.L166:
	movq	48(%rsp), %r14
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L167:
	movq	72(%rsp), %r14
	jmp	.L79
	.p2align 4,,10
	.p2align 3
.L181:
	movq	48(%rsp), %r14
	movslq	%ebx, %r12
	movq	%r12, %r13
	movslq	%r14d, %rdi
	testq	%r14, %r14
	jne	.L192
.L123:
	xorl	%edi, %edi
	jmp	.L93
	.p2align 4,,10
	.p2align 3
.L122:
	xorl	%edi, %edi
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L125:
	xorl	%edi, %edi
	jmp	.L103
.L179:
	movq	8(%rsp), %rdi
	movl	(%rdi), %edx
	movl	%edx, (%rax)
	movl	48(%rsp), %r15d
	movl	-4(%rdi,%r15), %edx
	movl	%edx, -4(%rax,%r15)
	jmp	.L86
.L183:
	movq	8(%rsp), %rdi
	movl	(%rdi), %edx
	movl	%edx, (%rax)
	movl	40(%rsp), %edx
	movl	-4(%rdi,%rdx), %ecx
	movl	%ecx, -4(%rax,%rdx)
	jmp	.L96
.L187:
	movq	8(%rsp), %rdi
	movl	%r15d, %r15d
	movl	(%rdi), %eax
	movl	%eax, (%rbx)
	movl	-4(%rdi,%r15), %eax
	movl	%eax, -4(%rbx,%r15)
	jmp	.L110
.L173:
	movq	16(%rsp), %rdi
	movl	%ecx, %ecx
	movl	(%rdi), %edx
	movl	%edx, (%rax)
	movl	-4(%rdi,%rcx), %edx
	movl	%edx, -4(%rax,%rcx)
	jmp	.L74
.L177:
	movq	16(%rsp), %rdi
	movl	(%rdi), %edx
	movl	%edx, (%rax)
	movl	%r14d, %edx
	movl	-4(%rdi,%rdx), %ecx
	movl	%ecx, -4(%rax,%rdx)
	jmp	.L82
.L178:
	movq	16(%rsp), %rdi
	movl	%r14d, %edx
	movzwl	-2(%rdi,%rdx), %ecx
	movw	%cx, -2(%rax,%rdx)
	jmp	.L82
.L180:
	movl	48(%rsp), %r15d
	movq	8(%rsp), %rdi
	movzwl	-2(%rdi,%r15), %edx
	movw	%dx, -2(%rax,%r15)
	jmp	.L86
.L174:
	movq	16(%rsp), %rdi
	movl	%ecx, %ecx
	movzwl	-2(%rdi,%rcx), %edx
	movw	%dx, -2(%rax,%rcx)
	jmp	.L74
.L188:
	movq	8(%rsp), %rax
	movl	%r15d, %r15d
	movzwl	-2(%rax,%r15), %eax
	movw	%ax, -2(%rbx,%r15)
	jmp	.L110
.L184:
	movl	40(%rsp), %edx
	movq	8(%rsp), %rdi
	movzwl	-2(%rdi,%rdx), %ecx
	movw	%cx, -2(%rax,%rdx)
	jmp	.L96
.L120:
	xorl	%edi, %edi
	jmp	.L55
.L191:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	strpart
	.type	strpart, @function
strpart:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%ecx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	strlen@PLT
	movq	%rax, %rdx
	testl	%ebx, %ebx
	jle	.L23
	leaq	1(%rbp), %rdi
	movq	%r12, %rcx
	leal	-1(%rbx), %eax
	movl	%ebx, %esi
	subq	%rdi, %rcx
	cmpq	$14, %rcx
	jbe	.L3
	cmpl	$6, %eax
	jbe	.L3
	cmpl	$14, %eax
	jbe	.L24
	movl	%ebx, %ecx
	xorl	%eax, %eax
	shrl	$4, %ecx
	salq	$4, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqu	0(%rbp,%rax), %xmm0
	movups	%xmm0, (%r12,%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L5
	movl	%ebx, %ecx
	andl	$-16, %ecx
	movl	%ecx, %eax
	cmpl	%ecx, %ebx
	je	.L10
	movl	%ebx, %esi
	subl	%ecx, %esi
	leal	-1(%rsi), %edi
	cmpl	$6, %edi
	jbe	.L7
.L4:
	movq	0(%rbp,%rcx), %rdi
	movq	%rdi, (%r12,%rcx)
	movl	%esi, %ecx
	andl	$-8, %ecx
	addl	%ecx, %eax
	cmpl	%ecx, %esi
	je	.L10
.L7:
	movslq	%eax, %rcx
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	leal	1(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	leal	2(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	leal	3(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	leal	4(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	leal	5(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L10
	movslq	%ecx, %rcx
	addl	$6, %eax
	movzbl	0(%rbp,%rcx), %esi
	movb	%sil, (%r12,%rcx)
	cmpl	%eax, %ebx
	jle	.L10
	cltq
	movzbl	0(%rbp,%rax), %ecx
	movb	%cl, (%r12,%rax)
.L10:
	movslq	%ebx, %rax
	addq	%rax, %r12
.L2:
	movb	$0, (%r12)
	testl	%edx, %edx
	js	.L1
	movslq	%ebx, %rcx
	movq	%r13, %rax
	leaq	1(%rbp,%rcx), %rsi
	subq	%rsi, %rax
	cmpq	$14, %rax
	jbe	.L12
	cmpl	$6, %edx
	jbe	.L12
	leal	1(%rdx), %edi
	cmpl	$14, %edx
	jbe	.L13
	movl	%edi, %esi
	addq	%rbp, %rcx
	xorl	%eax, %eax
	shrl	$4, %esi
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L14:
	movdqu	(%rcx,%rax), %xmm1
	movups	%xmm1, 0(%r13,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L14
	movl	%edi, %eax
	andl	$-16, %eax
	movl	%eax, %esi
	addl	%eax, %ebx
	cmpl	%eax, %edi
	je	.L1
	movl	%edx, %r8d
	subl	%eax, %r8d
	leal	1(%r8), %edi
	cmpl	$6, %r8d
	jbe	.L18
.L22:
	movq	(%rcx,%rax), %rcx
	movq	%rcx, 0(%r13,%rax)
	movl	%edi, %eax
	andl	$-8, %eax
	addl	%eax, %ebx
	addl	%eax, %esi
	cmpl	%eax, %edi
	je	.L1
.L18:
	movslq	%ebx, %rax
	leal	1(%rbx), %ecx
	movzbl	0(%rbp,%rax), %edi
	movslq	%esi, %rax
	movb	%dil, 0(%r13,%rax)
	leal	1(%rsi), %eax
	cmpl	%eax, %edx
	jl	.L1
	movslq	%ecx, %rcx
	cltq
	leal	2(%rbx), %edi
	movzbl	0(%rbp,%rcx), %ecx
	movb	%cl, 0(%r13,%rax)
	leal	2(%rsi), %eax
	cmpl	%eax, %edx
	jl	.L1
	movslq	%edi, %rdi
	cltq
	leal	3(%rbx), %ecx
	movzbl	0(%rbp,%rdi), %edi
	movb	%dil, 0(%r13,%rax)
	leal	3(%rsi), %eax
	cmpl	%eax, %edx
	jl	.L1
	movslq	%ecx, %rcx
	cltq
	leal	4(%rbx), %edi
	movzbl	0(%rbp,%rcx), %ecx
	movb	%cl, 0(%r13,%rax)
	leal	4(%rsi), %eax
	cmpl	%eax, %edx
	jl	.L1
	movslq	%edi, %rdi
	cltq
	leal	5(%rbx), %ecx
	movzbl	0(%rbp,%rdi), %edi
	movb	%dil, 0(%r13,%rax)
	leal	5(%rsi), %eax
	cmpl	%eax, %edx
	jl	.L1
	movslq	%ecx, %rcx
	cltq
	addl	$6, %esi
	addl	$6, %ebx
	movzbl	0(%rbp,%rcx), %ecx
	movb	%cl, 0(%r13,%rax)
	cmpl	%esi, %edx
	jl	.L1
	movslq	%ebx, %rbx
	movslq	%esi, %rsi
	movzbl	0(%rbp,%rbx), %eax
	movb	%al, 0(%r13,%rsi)
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%edx, %edx
	xorl	%eax, %eax
	addq	%rbp, %rcx
	.p2align 4,,10
	.p2align 3
.L20:
	movzbl	(%rcx,%rax), %esi
	movb	%sil, 0(%r13,%rax)
	movq	%rax, %rsi
	addq	$1, %rax
	cmpq	%rsi, %rdx
	jne	.L20
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movl	%ebx, %esi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movzbl	0(%rbp,%rax), %ecx
	movb	%cl, (%r12,%rax)
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L9
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	xorl	%ebx, %ebx
	jmp	.L2
.L13:
	xorl	%eax, %eax
	xorl	%esi, %esi
	addq	%rbp, %rcx
	jmp	.L22
.L24:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L4
	.cfi_endproc
.LFE51:
	.size	strpart, .-strpart
	.p2align 4
	.globl	strreverse
	.type	strreverse, @function
strreverse:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	subq	$752, %rsp
	.cfi_def_cfa_offset 768
	movq	%fs:40, %rax
	movq	%rax, 744(%rsp)
	xorl	%eax, %eax
	call	strlen@PLT
	testl	%eax, %eax
	jle	.L47
	movslq	%eax, %rsi
	movslq	%eax, %rdi
	movq	%rsp, %r8
	subl	$1, %eax
	leaq	-1(%rbp,%rsi), %rdx
	leaq	-2(%rbp,%rsi), %rsi
	movq	%r8, %rcx
	subq	%rax, %rsi
	.p2align 4,,10
	.p2align 3
.L45:
	movzbl	(%rdx), %eax
	subq	$1, %rdx
	addq	$1, %rcx
	movb	%al, -1(%rcx)
	cmpq	%rsi, %rdx
	jne	.L45
.L44:
	movb	$0, (%rsp,%rdi)
	movq	%r8, %rsi
	movq	%rbp, %rdi
	call	strcpy@PLT
	movq	744(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$752, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L47:
	.cfi_restore_state
	xorl	%edi, %edi
	movq	%rsp, %r8
	jmp	.L44
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	strreverse, .-strreverse
	.p2align 4
	.globl	strlink
	.type	strlink, @function
strlink:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
	call	strcpy@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%r12, %rsi
	leaq	(%rbx,%rax), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	strcpy@PLT
	.cfi_endproc
.LFE53:
	.size	strlink, .-strlink
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d "
.LC1:
	.string	"%s "
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-40960(%rsp), %r11
	.cfi_def_cfa 11, 41016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2216, %rsp
	.cfi_def_cfa_offset 43232
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 43160(%rsp)
	xorl	%eax, %eax
	leaq	124(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	124(%rsp), %eax
	testl	%eax, %eax
	jle	.L54
	leaq	42176(%rsp), %rax
	movl	$0, 100(%rsp)
	leaq	128(%rsp), %rbp
	movq	%rax, 56(%rsp)
	leaq	42416(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	201(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	42256(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L118:
	movq	56(%rsp), %r15
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%r15, %rsi
	call	__isoc99_scanf@PLT
	movq	%r15, %rdi
	call	strlen@PLT
	movl	$42048, %ecx
	movq	%rbp, %rdi
	movq	%r15, %rsi
	movq	%rax, %rbx
	leaq	1(%rax), %rdx
	movq	%rax, 80(%rsp)
	call	__memcpy_chk@PLT
	movq	%rbx, %rcx
	movslq	%ebx, %rdi
	testq	%rbx, %rbx
	je	.L120
	movslq	%ebx, %rax
	subl	$1, %ecx
	leaq	-1(%r15,%rax), %rdx
	movq	24(%rsp), %rax
	leaq	42417(%rsp,%rcx), %rsi
	.p2align 4,,10
	.p2align 3
.L56:
	movzbl	(%rdx), %ecx
	addq	$1, %rax
	subq	$1, %rdx
	movb	%cl, -1(%rax)
	cmpq	%rax, %rsi
	jne	.L56
.L55:
	movq	56(%rsp), %rbx
	movq	24(%rsp), %rsi
	movl	$73, %edx
	movb	$0, 42416(%rsp,%rdi)
	movq	%rbx, %rdi
	call	__stpcpy_chk@PLT
	movq	%rbx, %rsi
	movl	$41975, %ecx
	subq	%rbx, %rax
	movq	104(%rsp), %rbx
	leaq	1(%rax), %rdx
	movq	%rax, 88(%rsp)
	movq	%rbx, %rdi
	call	__memcpy_chk@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movl	$1, %ebx
	call	strcmp@PLT
	cmpl	$1, %eax
	sbbl	$-1, %ebx
	cmpq	$1, 80(%rsp)
	jbe	.L58
	leaq	42336(%rsp), %rax
	movl	%ebx, %r13d
	movq	$1, 32(%rsp)
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L117:
	movq	32(%rsp), %rax
	movq	8(%rsp), %rdi
	movq	56(%rsp), %rsi
	movl	%eax, %edx
	cmpl	$8, %eax
	jb	.L59
	movl	%eax, %ecx
	shrl	$3, %ecx
	rep movsq
.L59:
	xorl	%eax, %eax
	testb	$4, %dl
	je	.L60
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	movl	$4, %eax
.L60:
	testb	$2, %dl
	je	.L61
	movzwl	(%rsi,%rax), %ecx
	movw	%cx, (%rdi,%rax)
	addq	$2, %rax
.L61:
	andl	$1, %edx
	je	.L62
	movzbl	(%rsi,%rax), %edx
	movb	%dl, (%rdi,%rax)
.L62:
	movq	8(%rsp), %rax
	movq	32(%rsp), %rbx
	movq	56(%rsp), %rsi
	movq	16(%rsp), %rdi
	movb	$0, (%rax,%rbx)
	movq	88(%rsp), %rax
	testl	%eax, %eax
	leaq	1(%rax), %rcx
	movl	$1, %eax
	cmovs	%rax, %rcx
	addq	%rbx, %rsi
	movl	%ecx, %edx
	cmpl	$8, %ecx
	jb	.L63
	shrl	$3, %ecx
	rep movsq
.L63:
	xorl	%eax, %eax
	testb	$4, %dl
	je	.L64
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	movl	$4, %eax
.L64:
	testb	$2, %dl
	je	.L65
	movzwl	(%rsi,%rax), %ecx
	movw	%cx, (%rdi,%rax)
	addq	$2, %rax
.L65:
	andl	$1, %edx
	je	.L66
	movzbl	(%rsi,%rax), %edx
	movb	%dl, (%rdi,%rax)
.L66:
	leal	1(%r13), %eax
	movslq	%r13d, %r12
	movq	16(%rsp), %r15
	movl	%eax, 40(%rsp)
	leaq	(%r12,%r12,8), %rax
	leaq	(%r12,%rax,8), %rbx
	movq	%r15, %rsi
	addq	%rbp, %rbx
	movq	%rbx, %rdi
	call	strcpy@PLT
	movq	%r15, %rdi
	call	strlen@PLT
	movq	8(%rsp), %rsi
	movq	%rax, %r14
	leaq	(%rbx,%rax), %rdi
	xorl	%ebx, %ebx
	call	strcpy@PLT
	movl	%ebx, %r15d
	movq	%r14, 48(%rsp)
	movl	40(%rsp), %ebx
	movq	%rbp, 64(%rsp)
	movq	%rbp, %r14
	jmp	.L70
	.p2align 4,,10
	.p2align 3
.L172:
	leal	-1(%rbx), %r13d
	addq	$73, %r14
	cmpl	%r13d, %r15d
	jge	.L171
.L68:
	movslq	%r13d, %r12
.L70:
	leaq	(%r12,%r12,8), %rax
	movq	%r14, %rdi
	addl	$1, %r15d
	leaq	(%r12,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L172
	leal	-1(%r13), %eax
	addq	$73, %r14
	cmpl	%r15d, %eax
	jle	.L166
	movl	%r13d, %ebx
	movl	%eax, %r13d
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L171:
	movslq	%ebx, %r12
	movq	48(%rsp), %r14
	movq	%r12, %r13
.L69:
	movq	8(%rsp), %rbx
	movq	%rbx, %rdi
	call	strlen@PLT
	movslq	%eax, %rdi
	testq	%rax, %rax
	je	.L122
	movslq	%eax, %rdx
	subl	$1, %eax
	leaq	-1(%rbx,%rdx), %rcx
	movq	24(%rsp), %rdx
	leaq	42417(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L72:
	movzbl	(%rcx), %eax
	addq	$1, %rdx
	subq	$1, %rcx
	movb	%al, -1(%rdx)
	cmpq	%rdx, %rsi
	jne	.L72
.L71:
	movq	8(%rsp), %rbx
	movq	24(%rsp), %rsi
	movl	$73, %edx
	movb	$0, 42416(%rsp,%rdi)
	movq	%rbx, %rdi
	call	__stpcpy_chk@PLT
	leaq	(%r12,%r12,8), %rdx
	leal	1(%r13), %edi
	movq	%rbx, %rsi
	subq	%rbx, %rax
	leaq	(%r12,%rdx,8), %rcx
	movl	%edi, 96(%rsp)
	addq	%rbp, %rcx
	movq	%rax, 40(%rsp)
	movq	%rax, %rbx
	leaq	1(%rax), %rax
	movq	%rcx, %rdi
	movq	%rax, %rdx
	movq	%rax, 48(%rsp)
	call	memcpy@PLT
	leaq	1(%r14), %rcx
	leaq	(%rax,%rbx), %rax
	cmpl	$8, %ecx
	jnb	.L73
	testb	$4, %cl
	jne	.L173
	testl	%ecx, %ecx
	je	.L74
	movq	16(%rsp), %rdi
	movzbl	(%rdi), %edx
	movb	%dl, (%rax)
	testb	$2, %cl
	jne	.L174
.L74:
	movq	%r14, 72(%rsp)
	movl	96(%rsp), %ebx
	xorl	%r15d, %r15d
	movq	%rbp, %r14
	jmp	.L80
	.p2align 4,,10
	.p2align 3
.L176:
	leal	-1(%rbx), %r13d
	addq	$73, %r14
	cmpl	%r13d, %r15d
	jge	.L175
.L78:
	movslq	%r13d, %r12
.L80:
	leaq	(%r12,%r12,8), %rax
	movq	%r14, %rdi
	addl	$1, %r15d
	leaq	(%r12,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L176
	leal	-1(%r13), %eax
	addq	$73, %r14
	cmpl	%r15d, %eax
	jle	.L167
	movl	%r13d, %ebx
	movl	%eax, %r13d
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L73:
	movq	16(%rsp), %rbx
	leaq	8(%rax), %rdi
	andq	$-8, %rdi
	movq	(%rbx), %rdx
	movq	%rdx, (%rax)
	movl	%ecx, %edx
	movq	-8(%rbx,%rdx), %rsi
	movq	%rsi, -8(%rax,%rdx)
	subq	%rdi, %rax
	subq	%rax, %rbx
	addl	%eax, %ecx
	movq	%rbx, %rsi
	shrl	$3, %ecx
	rep movsq
	jmp	.L74
	.p2align 4,,10
	.p2align 3
.L175:
	movslq	%ebx, %r12
	movq	72(%rsp), %r14
	movq	%r12, %r13
.L79:
	leal	1(%r13), %eax
	movl	%eax, %r9d
	leaq	(%r12,%r12,8), %rax
	leaq	(%r12,%rax,8), %rax
	addq	%rbp, %rax
	cmpl	$8, %r14d
	jnb	.L81
	testb	$4, %r14b
	jne	.L177
	testl	%r14d, %r14d
	je	.L82
	movq	16(%rsp), %rdi
	movzbl	(%rdi), %edx
	movb	%dl, (%rax)
	testb	$2, %r14b
	jne	.L178
.L82:
	movq	48(%rsp), %rdi
	addq	%r14, %rax
	cmpl	$8, %edi
	jnb	.L85
	testb	$4, %dil
	jne	.L179
	testl	%edi, %edi
	je	.L86
	movq	8(%rsp), %rdx
	andl	$2, %edi
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
	jne	.L180
.L86:
	movq	%r14, 48(%rsp)
	xorl	%r15d, %r15d
	movq	%rbp, %r14
	movl	%r9d, %ebx
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L182:
	leal	-1(%rbx), %r13d
	addq	$73, %r14
	cmpl	%r13d, %r15d
	jge	.L181
.L90:
	movslq	%r13d, %r12
.L92:
	leaq	(%r12,%r12,8), %rax
	movq	%r14, %rdi
	addl	$1, %r15d
	leaq	(%r12,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L182
	leal	-1(%r13), %eax
	addq	$73, %r14
	cmpl	%r15d, %eax
	jle	.L168
	movl	%r13d, %ebx
	movl	%eax, %r13d
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L85:
	movq	8(%rsp), %rbx
	leaq	8(%rax), %rdi
	andq	$-8, %rdi
	movq	(%rbx), %rdx
	movq	%rdx, (%rax)
	movq	48(%rsp), %r10
	movl	%r10d, %edx
	movq	-8(%rbx,%rdx), %rcx
	movq	%rcx, -8(%rax,%rdx)
	subq	%rdi, %rax
	movl	%r10d, %ecx
	subq	%rax, %rbx
	addl	%eax, %ecx
	movq	%rbx, %rsi
	shrl	$3, %ecx
	rep movsq
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L81:
	movq	16(%rsp), %rbx
	leaq	8(%rax), %rdi
	andq	$-8, %rdi
	movq	(%rbx), %rdx
	movq	%rdx, (%rax)
	movl	%r14d, %edx
	movq	-8(%rbx,%rdx), %rcx
	movq	%rcx, -8(%rax,%rdx)
	movq	%rax, %rdx
	subq	%rdi, %rdx
	leal	(%r14,%rdx), %ecx
	subq	%rdx, %rbx
	movl	%ecx, %edx
	movq	%rbx, %rsi
	shrl	$3, %edx
	movl	%edx, %ecx
	rep movsq
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L168:
	movq	48(%rsp), %r14
	movslq	%r14d, %rdi
	testq	%r14, %r14
	je	.L123
.L192:
	movq	16(%rsp), %rdx
	movslq	%r14d, %rax
	leal	-1(%r14), %ecx
	leaq	42417(%rsp,%rcx), %rsi
	leaq	-1(%rdx,%rax), %rdx
	movq	24(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L94:
	movzbl	(%rdx), %ecx
	addq	$1, %rax
	subq	$1, %rdx
	movb	%cl, -1(%rax)
	cmpq	%rax, %rsi
	jne	.L94
.L93:
	movq	24(%rsp), %rsi
	movb	$0, 42416(%rsp,%rdi)
	movl	$73, %edx
	leal	1(%r13), %r14d
	movq	16(%rsp), %rdi
	call	__stpcpy_chk@PLT
	movq	40(%rsp), %rdi
	movq	%rax, 48(%rsp)
	leaq	(%r12,%r12,8), %rax
	leaq	(%r12,%rax,8), %rax
	addq	%rbp, %rax
	cmpl	$8, %edi
	jnb	.L95
	testb	$4, %dil
	jne	.L183
	testl	%edi, %edi
	je	.L96
	movq	8(%rsp), %rdx
	andl	$2, %edi
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
	jne	.L184
.L96:
	movq	48(%rsp), %rdx
	movq	16(%rsp), %rsi
	movq	%rbp, %rbx
	xorl	%r15d, %r15d
	movq	40(%rsp), %rdi
	subq	%rsi, %rdx
	addq	%rax, %rdi
	addq	$1, %rdx
	call	memcpy@PLT
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L185:
	leal	-1(%r14), %r13d
	addq	$73, %rbx
	cmpl	%r13d, %r15d
	jge	.L101
.L100:
	movslq	%r13d, %r12
.L102:
	leaq	(%r12,%r12,8), %rax
	movq	%rbx, %rdi
	addl	$1, %r15d
	leaq	(%r12,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L185
	leal	-1(%r13), %eax
	addq	$73, %rbx
	movl	%r13d, %r14d
	cmpl	%r15d, %eax
	jle	.L101
	movl	%eax, %r13d
	jmp	.L100
	.p2align 4,,10
	.p2align 3
.L101:
	movq	40(%rsp), %rbx
	movslq	%ebx, %rdi
	testq	%rbx, %rbx
	je	.L125
	movq	8(%rsp), %rdx
	movslq	%ebx, %rax
	leal	-1(%rbx), %ecx
	leaq	42417(%rsp,%rcx), %rsi
	leaq	-1(%rdx,%rax), %rdx
	movq	24(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L104:
	movzbl	(%rdx), %ecx
	addq	$1, %rax
	subq	$1, %rdx
	movb	%cl, -1(%rax)
	cmpq	%rsi, %rax
	jne	.L104
.L103:
	movq	8(%rsp), %r15
	movq	24(%rsp), %rsi
	leal	1(%r14), %r13d
	xorl	%r12d, %r12d
	movb	$0, 42416(%rsp,%rdi)
	movl	$73, %edx
	movq	%r15, %rdi
	call	__stpcpy_chk@PLT
	movslq	%r14d, %rcx
	movq	%r15, %rsi
	leaq	(%rcx,%rcx,8), %rdx
	subq	%r15, %rax
	movq	%rcx, 40(%rsp)
	leaq	(%rcx,%rdx,8), %rdi
	leaq	1(%rax), %r15
	movq	%rax, %rbx
	addq	%rbp, %rdi
	movq	%r15, %rdx
	call	memcpy@PLT
	movq	48(%rsp), %rdx
	movq	16(%rsp), %rsi
	movq	%rax, %rdi
	subq	%rsi, %rdx
	addq	%rbx, %rdi
	movq	%rbp, %rbx
	addq	$1, %rdx
	call	memcpy@PLT
	movq	40(%rsp), %rcx
	jmp	.L108
	.p2align 4,,10
	.p2align 3
.L186:
	leal	-1(%r13), %r14d
	addq	$73, %rbx
	cmpl	%r12d, %r14d
	jle	.L107
.L106:
	movslq	%r14d, %rcx
.L108:
	leaq	(%rcx,%rcx,8), %rax
	movq	%rbx, %rdi
	addl	$1, %r12d
	leaq	(%rcx,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L186
	leal	-1(%r14), %eax
	addq	$73, %rbx
	movl	%r14d, %r13d
	cmpl	%r12d, %eax
	jle	.L107
	movl	%eax, %r14d
	jmp	.L106
	.p2align 4,,10
	.p2align 3
.L107:
	movslq	%r13d, %r12
	movq	48(%rsp), %rbx
	movq	16(%rsp), %rsi
	leal	1(%r13), %r14d
	leaq	(%r12,%r12,8), %rax
	leaq	(%r12,%rax,8), %rcx
	subq	%rsi, %rbx
	addq	%rbp, %rcx
	leaq	1(%rbx), %rdx
	movq	%rcx, %rdi
	call	memcpy@PLT
	addq	%rax, %rbx
	cmpl	$8, %r15d
	jnb	.L109
	testb	$4, %r15b
	jne	.L187
	testl	%r15d, %r15d
	je	.L110
	movq	8(%rsp), %rax
	movzbl	(%rax), %eax
	movb	%al, (%rbx)
	testb	$2, %r15b
	jne	.L188
.L110:
	movq	64(%rsp), %r15
	xorl	%ebx, %ebx
	jmp	.L116
	.p2align 4,,10
	.p2align 3
.L190:
	leal	-1(%r14), %r13d
	addq	$73, %r15
	cmpl	%r13d, %ebx
	jge	.L189
.L114:
	movslq	%r13d, %r12
.L116:
	leaq	(%r12,%r12,8), %rax
	movq	%r15, %rdi
	addl	$1, %ebx
	leaq	(%r12,%rax,8), %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L190
	leal	-1(%r13), %eax
	addq	$73, %r15
	cmpl	%ebx, %eax
	jle	.L115
	movl	%r13d, %r14d
	movl	%eax, %r13d
	jmp	.L114
	.p2align 4,,10
	.p2align 3
.L189:
	movl	%r14d, %r13d
.L115:
	addq	$1, 32(%rsp)
	movq	32(%rsp), %rax
	cmpq	%rax, 80(%rsp)
	jne	.L117
	movl	%r13d, %ebx
.L58:
	movl	%ebx, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addl	$1, 100(%rsp)
	movl	100(%rsp), %eax
	cmpl	%eax, 124(%rsp)
	jg	.L118
.L54:
	movq	43160(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L191
	addq	$43176, %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
	.p2align 4,,10
	.p2align 3
.L95:
	.cfi_restore_state
	movq	8(%rsp), %rbx
	leaq	8(%rax), %rdi
	andq	$-8, %rdi
	movq	(%rbx), %rdx
	movq	%rdx, (%rax)
	movq	40(%rsp), %r11
	movl	%r11d, %edx
	movq	-8(%rbx,%rdx), %rcx
	movq	%rcx, -8(%rax,%rdx)
	movq	%rax, %rdx
	movl	%r11d, %ecx
	subq	%rdi, %rdx
	addl	%edx, %ecx
	subq	%rdx, %rbx
	movl	%ecx, %edx
	movq	%rbx, %rsi
	shrl	$3, %edx
	movl	%edx, %ecx
	rep movsq
	jmp	.L96
	.p2align 4,,10
	.p2align 3
.L109:
	movq	8(%rsp), %rcx
	leaq	8(%rbx), %rdi
	andq	$-8, %rdi
	movq	(%rcx), %rax
	movq	%rax, (%rbx)
	movl	%r15d, %eax
	movq	-8(%rcx,%rax), %rdx
	movq	%rdx, -8(%rbx,%rax)
	subq	%rdi, %rbx
	subq	%rbx, %rcx
	movq	%rcx, %rsi
	leal	(%r15,%rbx), %ecx
	shrl	$3, %ecx
	rep movsq
	jmp	.L110
	.p2align 4,,10
	.p2align 3
.L166:
	movq	48(%rsp), %r14
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L167:
	movq	72(%rsp), %r14
	jmp	.L79
	.p2align 4,,10
	.p2align 3
.L181:
	movq	48(%rsp), %r14
	movslq	%ebx, %r12
	movq	%r12, %r13
	movslq	%r14d, %rdi
	testq	%r14, %r14
	jne	.L192
.L123:
	xorl	%edi, %edi
	jmp	.L93
	.p2align 4,,10
	.p2align 3
.L122:
	xorl	%edi, %edi
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L125:
	xorl	%edi, %edi
	jmp	.L103
.L179:
	movq	8(%rsp), %rdi
	movl	(%rdi), %edx
	movl	%edx, (%rax)
	movl	48(%rsp), %r15d
	movl	-4(%rdi,%r15), %edx
	movl	%edx, -4(%rax,%r15)
	jmp	.L86
.L183:
	movq	8(%rsp), %rdi
	movl	(%rdi), %edx
	movl	%edx, (%rax)
	movl	40(%rsp), %edx
	movl	-4(%rdi,%rdx), %ecx
	movl	%ecx, -4(%rax,%rdx)
	jmp	.L96
.L187:
	movq	8(%rsp), %rdi
	movl	%r15d, %r15d
	movl	(%rdi), %eax
	movl	%eax, (%rbx)
	movl	-4(%rdi,%r15), %eax
	movl	%eax, -4(%rbx,%r15)
	jmp	.L110
.L173:
	movq	16(%rsp), %rdi
	movl	%ecx, %ecx
	movl	(%rdi), %edx
	movl	%edx, (%rax)
	movl	-4(%rdi,%rcx), %edx
	movl	%edx, -4(%rax,%rcx)
	jmp	.L74
.L177:
	movq	16(%rsp), %rdi
	movl	(%rdi), %edx
	movl	%edx, (%rax)
	movl	%r14d, %edx
	movl	-4(%rdi,%rdx), %ecx
	movl	%ecx, -4(%rax,%rdx)
	jmp	.L82
.L178:
	movq	16(%rsp), %rdi
	movl	%r14d, %edx
	movzwl	-2(%rdi,%rdx), %ecx
	movw	%cx, -2(%rax,%rdx)
	jmp	.L82
.L180:
	movl	48(%rsp), %r15d
	movq	8(%rsp), %rdi
	movzwl	-2(%rdi,%r15), %edx
	movw	%dx, -2(%rax,%r15)
	jmp	.L86
.L174:
	movq	16(%rsp), %rdi
	movl	%ecx, %ecx
	movzwl	-2(%rdi,%rcx), %edx
	movw	%dx, -2(%rax,%rcx)
	jmp	.L74
.L188:
	movq	8(%rsp), %rax
	movl	%r15d, %r15d
	movzwl	-2(%rax,%r15), %eax
	movw	%ax, -2(%rbx,%r15)
	jmp	.L110
.L184:
	movl	40(%rsp), %edx
	movq	8(%rsp), %rdi
	movzwl	-2(%rdi,%rdx), %ecx
	movw	%cx, -2(%rax,%rdx)
	jmp	.L96
.L120:
	xorl	%edi, %edi
	jmp	.L55
.L191:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.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:

#include<stdio.h>
#include<stdlib.h>
#include<string.h>

void strpart(char *a,char *b,char *c,int n)
{
	int i,j,l=strlen(a);
	for(i=0;i<n;i++){b[i] = a[i];}
	b[i]='\0';
	for(j=0;j<=l;j++){c[j] = a[i++];}
}

void strreverse(char *a)
{
	int i,l=strlen(a);
	char b[731];
	for(i=0;i<l;i++)b[i]=a[l-i-1];
	b[i]='\0';
	strcpy(a,b);
}

void strlink(char *a,char *b,char *c)
{
	strcpy(a,b);
	strcpy(&a[strlen(b)],c);
}

int main(void)
{
	int i,j,k,p;
	int l,m;
	char a[73],b[73],c[73],d[576][73];
	
	scanf("%d ",&m);
	
	for(i=0;i<m;i++)
	{
		scanf("%s ",a);
		l = strlen(a);
		p = 0;
		strcpy(d[p++],a);
		strreverse(a);
		strcpy(d[p++],a);
		if(strcmp(d[0],d[1])==0)p--;
		
		for(j=1;j<l;j++)
		{
			strpart(a,b,c,j);
			
			strlink(d[p++],c,b);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strreverse(b);
			
			strlink(d[p++],b,c);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strlink(d[p++],c,b);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strreverse(c);
			
			strlink(d[p++],b,c);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strreverse(b);
			
			strlink(d[p++],b,c);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strlink(d[p++],c,b);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
		}		
		printf("%d\n",p);
	}
	return 0;
}
		
4
aa
abba
bbcd
abcde
 4
ab
abba
bbcd
edcba
 4
b`
abba
bcbe
bbced
 4
`b
abba
bebe
becbd
 4
`b
aabb
bebe
becbd
 4
`c
aabb
bebe
becce
 4
e`
a`bb
bbee
eddeb
 4
e`
a`ba
bbee
eddeb
 4
_f
a`ba
ebbe
eddea
 4
_e
a`ba
ebbf
eddea

1
6
8
18
 2
6
8
18
 2
6
8
14
 2
6
4
18
 2
4
4
18
 2
4
4
13
 2
8
4
13
 2
12
4
13
 2
12
6
13
 2
12
12
13

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<string.h>

void strpart(char *a,char *b,char *c,int n)
{
	int i,j,l=strlen(a);
	for(i=0;i<n;i++){b[i] = a[i];}
	b[i]='\0';
	for(j=0;j<=l;j++){c[j] = a[i++];}
}

void strreverse(char *a)
{
	int i,l=strlen(a);
	char b[731];
	for(i=0;i<l;i++)b[i]=a[l-i-1];
	b[i]='\0';
	strcpy(a,b);
}

void strlink(char *a,char *b,char *c)
{
	strcpy(a,b);
	strcpy(&a[strlen(b)],c);
}

int main(void)
{
	int i,j,k,p;
	int l,m;
	char a[73],b[73],c[73],d[576][73];
	
	scanf("%d ",&m);
	
	for(i=0;i<m;i++)
	{
		scanf("%s ",a);
		l = strlen(a);
		p = 0;
		strcpy(d[p++],a);
		strreverse(a);
		strcpy(d[p++],a);
		if(strcmp(d[0],d[1])==0)p--;
		
		for(j=1;j<l;j++)
		{
			strpart(a,b,c,j);
			
			strlink(d[p++],c,b);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strreverse(b);
			
			strlink(d[p++],b,c);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strlink(d[p++],c,b);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strreverse(c);
			
			strlink(d[p++],b,c);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strreverse(b);
			
			strlink(d[p++],b,c);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
			
			strlink(d[p++],c,b);
			for(k=0;k<p-1;k++)if(strcmp(d[k],d[p-1])==0)p--;
		}		
		printf("%d\n",p);
	}
	return 0;
}
		```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	strpart
	.type	strpart, @function
strpart:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -44(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jl	.L3
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movl	$0, -8(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -12(%rbp)
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movq	-40(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strpart, .-strpart
	.globl	strreverse
	.type	strreverse, @function
strreverse:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$784, %rsp
	movq	%rdi, -776(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-776(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -756(%rbp)
	movl	$0, -760(%rbp)
	jmp	.L7
.L8:
	movl	-756(%rbp), %eax
	subl	-760(%rbp), %eax
	cltq
	leaq	-1(%rax), %rdx
	movq	-776(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-760(%rbp), %eax
	cltq
	movb	%dl, -752(%rbp,%rax)
	addl	$1, -760(%rbp)
.L7:
	movl	-760(%rbp), %eax
	cmpl	-756(%rbp), %eax
	jl	.L8
	movl	-760(%rbp), %eax
	cltq
	movb	$0, -752(%rbp,%rax)
	leaq	-752(%rbp), %rdx
	movq	-776(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	strreverse, .-strreverse
	.globl	strlink
	.type	strlink, @function
strlink:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	-8(%rbp), %rdx
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	strlink, .-strlink
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	"%s "
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1376, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-42328(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -42324(%rbp)
	jmp	.L12
.L34:
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -42308(%rbp)
	movl	$0, -42312(%rbp)
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	leaq	-42304(%rbp), %rax
	leaq	73(%rax), %rdx
	leaq	-42304(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L13
	subl	$1, -42312(%rbp)
.L13:
	movl	$1, -42320(%rbp)
	jmp	.L14
.L33:
	movl	-42320(%rbp), %ecx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rsi
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strpart
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-176(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L15
.L17:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L16
	subl	$1, -42312(%rbp)
.L16:
	addl	$1, -42316(%rbp)
.L15:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L17
	leaq	-176(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L18
.L20:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L19
	subl	$1, -42312(%rbp)
.L19:
	addl	$1, -42316(%rbp)
.L18:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L20
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-176(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L21
.L23:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L22
	subl	$1, -42312(%rbp)
.L22:
	addl	$1, -42316(%rbp)
.L21:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L23
	leaq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L24
.L26:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L25
	subl	$1, -42312(%rbp)
.L25:
	addl	$1, -42316(%rbp)
.L24:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L26
	leaq	-176(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L27
.L29:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L28
	subl	$1, -42312(%rbp)
.L28:
	addl	$1, -42316(%rbp)
.L27:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L29
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-176(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L30
.L32:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L31
	subl	$1, -42312(%rbp)
.L31:
	addl	$1, -42316(%rbp)
.L30:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L32
	addl	$1, -42320(%rbp)
.L14:
	movl	-42320(%rbp), %eax
	cmpl	-42308(%rbp), %eax
	jl	.L33
	movl	-42312(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -42324(%rbp)
.L12:
	movl	-42328(%rbp), %eax
	cmpl	%eax, -42324(%rbp)
	jl	.L34
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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
	.globl	strpart
	.type	strpart, @function
strpart:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -44(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jl	.L3
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movl	$0, -8(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -12(%rbp)
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movq	-40(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strpart, .-strpart
	.globl	strreverse
	.type	strreverse, @function
strreverse:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$784, %rsp
	movq	%rdi, -776(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-776(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -756(%rbp)
	movl	$0, -760(%rbp)
	jmp	.L7
.L8:
	movl	-756(%rbp), %eax
	subl	-760(%rbp), %eax
	cltq
	leaq	-1(%rax), %rdx
	movq	-776(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-760(%rbp), %eax
	cltq
	movb	%dl, -752(%rbp,%rax)
	addl	$1, -760(%rbp)
.L7:
	movl	-760(%rbp), %eax
	cmpl	-756(%rbp), %eax
	jl	.L8
	movl	-760(%rbp), %eax
	cltq
	movb	$0, -752(%rbp,%rax)
	leaq	-752(%rbp), %rdx
	movq	-776(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	strreverse, .-strreverse
	.globl	strlink
	.type	strlink, @function
strlink:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	-8(%rbp), %rdx
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	strlink, .-strlink
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	"%s "
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1376, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-42328(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -42324(%rbp)
	jmp	.L12
.L34:
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -42308(%rbp)
	movl	$0, -42312(%rbp)
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	leaq	-42304(%rbp), %rax
	leaq	73(%rax), %rdx
	leaq	-42304(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L13
	subl	$1, -42312(%rbp)
.L13:
	movl	$1, -42320(%rbp)
	jmp	.L14
.L33:
	movl	-42320(%rbp), %ecx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rsi
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	strpart
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-176(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L15
.L17:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L16
	subl	$1, -42312(%rbp)
.L16:
	addl	$1, -42316(%rbp)
.L15:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L17
	leaq	-176(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L18
.L20:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L19
	subl	$1, -42312(%rbp)
.L19:
	addl	$1, -42316(%rbp)
.L18:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L20
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-176(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L21
.L23:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L22
	subl	$1, -42312(%rbp)
.L22:
	addl	$1, -42316(%rbp)
.L21:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L23
	leaq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L24
.L26:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L25
	subl	$1, -42312(%rbp)
.L25:
	addl	$1, -42316(%rbp)
.L24:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L26
	leaq	-176(%rbp), %rax
	movq	%rax, %rdi
	call	strreverse
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-96(%rbp), %rdx
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L27
.L29:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L28
	subl	$1, -42312(%rbp)
.L28:
	addl	$1, -42316(%rbp)
.L27:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L29
	movl	-42312(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -42312(%rbp)
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-176(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strlink
	movl	$0, -42316(%rbp)
	jmp	.L30
.L32:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	leaq	-42304(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-42304(%rbp), %rsi
	movl	-42316(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L31
	subl	$1, -42312(%rbp)
.L31:
	addl	$1, -42316(%rbp)
.L30:
	movl	-42312(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -42316(%rbp)
	jl	.L32
	addl	$1, -42320(%rbp)
.L14:
	movl	-42320(%rbp), %eax
	cmpl	-42308(%rbp), %eax
	jl	.L33
	movl	-42312(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -42324(%rbp)
.L12:
	movl	-42328(%rbp), %eax
	cmpl	%eax, -42324(%rbp)
	jl	.L34
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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:
