Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
AizuOnline A1240
Title Unreliable Message
*/
#include <stdio.h>
#include <string.h>
//Global data section
char message[7][26];
char via[7];
int N;
char msgr_member[]="JCEAPM";
//
void revJ(char * from,char * to)
{
        strncpy(to+1,from,strlen(from)-1);
        to[0]=from[strlen(from)-1];
}
void revC(char * from,char * to)
{
        strncpy(to,from+1,strlen(from)-1);
        to[strlen(from)-1]=from[0];
        to[strlen(from)]='\0';
}
void revE(char * from,char * to)
{
        int l;

        l=strlen(from);
        if(l % 2)
        {
                strncpy(to,from+l/2+1,l/2);
                strncpy(to+l/2+1,from,l/2);
                to[l/2]=from[l/2];
        }
        else
        {
                strncpy(to,from+l/2,l/2);
                strncpy(to+l/2,from,l/2);
        }
}
void revA(char * from,char * to)
{
        int i,l;
        l=strlen(from);
        for(i=0;i<l;i++)
                to[i]=from[l-1-i];
        to[l]='\0';
}
void revP(char * from,char * to)
{
        int i;
        char c;


        for(i=0;i<strlen(from);i++)
        {
                c=from[i];
                if(c=='0')
                        *to='9';
                else if(isdigit(c))
                        *to=c-1;
                else
                        *to=c;
                to++;
        }
        *to='\0';
}
void revM(char * from,char * to)
{
        int i;
        char c;
        //printf("M\n");

        for(i=0;i<strlen(from);i++)
        {
                c=from[i];
                if(c=='9')
                        *to='0';
                else if(isdigit(c))
                        *to=c+1;
                else
                        *to=c;
                to++;
        }
        *to='\0';
}

reverse_convert(int msgr,char * from,char  * to)
{
        //printf("msgr=%c from=%s\n",msgr,from);

        if(msgr=='J')
                revJ(from,to);

        else if(msgr=='C')
                revC(from,to);
        else if(msgr=='E')
                revE(from,to);
        else if(msgr=='A')
                revA(from,to);
        else if(msgr=='P')
                revP(from,to);
        else if(msgr=='M')
                revM(from,to);

}
main()
{
        int i,j,msgr,len;

        scanf("%d",&N);
        for(i=0;i<N;i++)
        {
                scanf("%s",via);
                memset(&message[0][0],'\0',26*7);
                scanf("%s",&message[0][0]); 


                len=strlen(via);
                for(j=0;j<len;j++)
                {
                        msgr = via[len-j-1];
                        reverse_convert(msgr,&message[j][0],&message[j+1][0]);
                }
                printf("%s\n",&message[j][0]);
        }
return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	message
	.bss
	.align 32
	.type	message, @object
	.size	message, 182
message:
	.zero	182
	.globl	via
	.type	via, @object
	.size	via, 7
via:
	.zero	7
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	msgr_member
	.data
	.type	msgr_member, @object
	.size	msgr_member, 7
msgr_member:
	.string	"JCEAPM"
	.text
	.globl	revJ
	.type	revJ, @function
revJ:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncpy@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movb	%dl, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	revJ, .-revJ
	.globl	revC
	.type	revC, @function
revC:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	-16(%rbp), %rdx
	addq	%rdx, %rax
	movb	$0, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	revC, .-revC
	.globl	revE
	.type	revE, @function
revE:
.LFB2:
	.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L4
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	cltq
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rax, %rcx
	movq	-32(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	cltq
	leaq	1(%rax), %rcx
	movq	-32(%rbp), %rax
	addq	%rax, %rcx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncpy@PLT
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movzbl	(%rcx), %eax
	movb	%al, (%rdx)
	jmp	.L6
.L4:
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	addq	%rax, %rcx
	movq	-32(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movslq	%eax, %rcx
	movq	-32(%rbp), %rax
	addq	%rax, %rcx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncpy@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	revE, .-revE
	.globl	revA
	.type	revA, @function
revA:
.LFB3:
	.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	subl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -8(%rbp)
.L8:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L9
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	revA, .-revA
	.globl	revP
	.type	revP, @function
revP:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L11
.L15:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -21(%rbp)
	cmpb	$48, -21(%rbp)
	jne	.L12
	movq	-48(%rbp), %rax
	movb	$57, (%rax)
	jmp	.L13
.L12:
	movsbl	-21(%rbp), %eax
	subl	$48, %eax
	cmpl	$9, %eax
	ja	.L14
	movzbl	-21(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	movq	-48(%rbp), %rax
	movb	%dl, (%rax)
	jmp	.L13
.L14:
	movq	-48(%rbp), %rax
	movzbl	-21(%rbp), %edx
	movb	%dl, (%rax)
.L13:
	addq	$1, -48(%rbp)
	addl	$1, -20(%rbp)
.L11:
	movl	-20(%rbp), %eax
	movslq	%eax, %rbx
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L15
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	revP, .-revP
	.globl	revM
	.type	revM, @function
revM:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L17
.L21:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -21(%rbp)
	cmpb	$57, -21(%rbp)
	jne	.L18
	movq	-48(%rbp), %rax
	movb	$48, (%rax)
	jmp	.L19
.L18:
	movsbl	-21(%rbp), %eax
	subl	$48, %eax
	cmpl	$9, %eax
	ja	.L20
	movzbl	-21(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	movq	-48(%rbp), %rax
	movb	%dl, (%rax)
	jmp	.L19
.L20:
	movq	-48(%rbp), %rax
	movzbl	-21(%rbp), %edx
	movb	%dl, (%rax)
.L19:
	addq	$1, -48(%rbp)
	addl	$1, -20(%rbp)
.L17:
	movl	-20(%rbp), %eax
	movslq	%eax, %rbx
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L21
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	revM, .-revM
	.globl	reverse_convert
	.type	reverse_convert, @function
reverse_convert:
.LFB6:
	.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
	movl	%edi, -4(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	cmpl	$74, -4(%rbp)
	jne	.L23
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revJ
	jmp	.L24
.L23:
	cmpl	$67, -4(%rbp)
	jne	.L25
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revC
	jmp	.L24
.L25:
	cmpl	$69, -4(%rbp)
	jne	.L26
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revE
	jmp	.L24
.L26:
	cmpl	$65, -4(%rbp)
	jne	.L27
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revA
	jmp	.L24
.L27:
	cmpl	$80, -4(%rbp)
	jne	.L28
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revP
	jmp	.L24
.L28:
	cmpl	$77, -4(%rbp)
	jne	.L24
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revM
.L24:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reverse_convert, .-reverse_convert
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L30
.L33:
	leaq	via(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$182, %edx
	movl	$0, %esi
	leaq	message(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	leaq	message(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	via(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L31
.L32:
	movl	-8(%rbp), %eax
	subl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	via(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	message(%rip), %rdx
	leaq	(%rax,%rdx), %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	message(%rip), %rdx
	leaq	(%rax,%rdx), %rcx
	movl	-4(%rbp), %eax
	movq	%rsi, %rdx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	reverse_convert
	addl	$1, -12(%rbp)
.L31:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L32
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	message(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -16(%rbp)
.L30:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L33
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	revJ
	.type	revJ, @function
revJ:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	leaq	1(%rbp), %rdi
	movq	%rbx, %rsi
	leaq	-1(%rax), %rdx
	call	strncpy@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movzbl	-1(%rbx,%rax), %eax
	movb	%al, 0(%rbp)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	revJ, .-revJ
	.p2align 4
	.globl	revC
	.type	revC, @function
revC:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	leaq	1(%rbp), %rsi
	movq	%rbx, %rdi
	leaq	-1(%rax), %rdx
	call	strncpy@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movzbl	0(%rbp), %edx
	movq	%rbp, %rdi
	movb	%dl, -1(%rbx,%rax)
	call	strlen@PLT
	movb	$0, (%rbx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE36:
	.size	revC, .-revC
	.p2align 4
	.globl	revE
	.type	revE, @function
revE:
.LFB37:
	.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
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	strlen@PLT
	movl	%eax, %r12d
	shrl	$31, %r12d
	addl	%eax, %r12d
	sarl	%r12d
	movslq	%r12d, %r12
	leaq	0(%rbp,%r12), %r15
	leaq	0(%r13,%r12), %r14
	testb	$1, %al
	je	.L7
	leaq	1(%r12), %rbx
	movq	%r12, %rdx
	movq	%r13, %rdi
	leaq	0(%rbp,%rbx), %rsi
	call	strncpy@PLT
	leaq	0(%r13,%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	strncpy@PLT
	movzbl	(%r15), %eax
	movb	%al, (%r14)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L7:
	.cfi_restore_state
	movq	%r12, %rdx
	movq	%r15, %rsi
	movq	%r13, %rdi
	call	strncpy@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	movq	%r12, %rdx
	movq	%rbp, %rsi
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%r14, %rdi
	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
	jmp	strncpy@PLT
	.cfi_endproc
.LFE37:
	.size	revE, .-revE
	.p2align 4
	.globl	revA
	.type	revA, @function
revA:
.LFB38:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	testl	%eax, %eax
	jle	.L18
	leal	-1(%rax), %esi
	cltq
	movq	%rbp, %rcx
	movslq	%esi, %rdx
	leaq	-2(%rbx,%rax), %r8
	movl	%esi, %esi
	addq	%rbx, %rdx
	subq	%rsi, %r8
	.p2align 4,,10
	.p2align 3
.L13:
	movzbl	(%rdx), %edi
	subq	$1, %rdx
	addq	$1, %rcx
	movb	%dil, -1(%rcx)
	cmpq	%r8, %rdx
	jne	.L13
	movb	$0, 0(%rbp,%rax)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	cltq
	movb	$0, 0(%rbp,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE38:
	.size	revA, .-revA
	.p2align 4
	.globl	revP
	.type	revP, @function
revP:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %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
	xorl	%ebx, %ebx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L26:
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$10, %edx
	sbbb	$0, %al
.L21:
	movb	%al, 0(%rbp)
	addq	$1, %rbx
	addq	$1, %rbp
.L20:
	movq	%r12, %rdi
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L25
	movzbl	(%r12,%rbx), %eax
	cmpb	$48, %al
	jne	.L26
	movl	$57, %eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L25:
	popq	%rbx
	.cfi_def_cfa_offset 24
	movb	$0, 0(%rbp)
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	revP, .-revP
	.p2align 4
	.globl	revM
	.type	revM, @function
revM:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %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
	xorl	%ebx, %ebx
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L34:
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$10, %edx
	adcb	$0, %al
.L29:
	movb	%al, 0(%rbp)
	addq	$1, %rbx
	addq	$1, %rbp
.L28:
	movq	%r12, %rdi
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L33
	movzbl	(%r12,%rbx), %eax
	cmpb	$57, %al
	jne	.L34
	movl	$48, %eax
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L33:
	popq	%rbx
	.cfi_def_cfa_offset 24
	movb	$0, 0(%rbp)
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	revM, .-revM
	.p2align 4
	.globl	reverse_convert
	.type	reverse_convert, @function
reverse_convert:
.LFB41:
	.cfi_startproc
	endbr64
	subl	$65, %edi
	cmpl	$15, %edi
	ja	.L57
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdx, %rbp
	leaq	.L38(%rip), %rdx
	movslq	(%rdx,%rdi,4), %rax
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L38:
	.long	.L43-.L38
	.long	.L36-.L38
	.long	.L42-.L38
	.long	.L36-.L38
	.long	.L41-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L40-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L51-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L52-.L38
	.text
	.p2align 4,,10
	.p2align 3
.L60:
	movb	$0, 0(%rbp)
.L36:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L57:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	movq	%rsi, %rdi
	call	strlen@PLT
	leaq	1(%rbp), %rdi
	movq	%r12, %rsi
	leaq	-1(%rax), %rdx
	call	strncpy@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movzbl	-1(%r12,%rax), %eax
	movb	%al, 0(%rbp)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	movq	%rsi, %rdi
	call	strlen@PLT
	testl	%eax, %eax
	jle	.L61
	leal	-1(%rax), %esi
	cltq
	movq	%rbp, %rcx
	movslq	%esi, %rdx
	leaq	-2(%r12,%rax), %rdi
	movl	%esi, %esi
	addq	%r12, %rdx
	subq	%rsi, %rdi
	.p2align 4,,10
	.p2align 3
.L45:
	movzbl	(%rdx), %esi
	subq	$1, %rdx
	addq	$1, %rcx
	movb	%sil, -1(%rcx)
	cmpq	%rdx, %rdi
	jne	.L45
.L46:
	movb	$0, 0(%rbp,%rax)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movq	%rsi, %rdi
	call	strlen@PLT
	leaq	1(%r12), %rsi
	movq	%rbp, %rdi
	leaq	-1(%rax), %rdx
	call	strncpy@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movzbl	(%r12), %edx
	movq	%r12, %rdi
	movb	%dl, -1(%rbp,%rax)
	call	strlen@PLT
	movb	$0, 0(%rbp,%rax)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	movq	%rbp, %rsi
	movq	%r12, %rdi
	call	revE
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L62:
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$10, %edx
	adcb	$0, %al
.L49:
	movb	%al, 0(%rbp)
	addq	$1, %rbx
	addq	$1, %rbp
.L39:
	movq	%r12, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jnb	.L60
	movzbl	(%r12,%rbx), %eax
	cmpb	$57, %al
	jne	.L62
	movl	$48, %eax
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L52:
	xorl	%ebx, %ebx
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L63:
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$10, %edx
	sbbb	$0, %al
.L47:
	movb	%al, 0(%rbp)
	addq	$1, %rbx
	addq	$1, %rbp
.L37:
	movq	%r12, %rdi
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L60
	movzbl	(%r12,%rbx), %eax
	cmpb	$48, %al
	jne	.L63
	movl	$57, %eax
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L61:
	cltq
	jmp	.L46
	.cfi_endproc
.LFE41:
	.size	reverse_convert, .-reverse_convert
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	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
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	call	__isoc99_scanf@PLT
	movl	N(%rip), %ecx
	movl	$0, 20(%rsp)
	testl	%ecx, %ecx
	jle	.L95
	leaq	.L69(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L65:
	leaq	via(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movl	$22, %ecx
	xorl	%edx, %edx
	leaq	message(%rip), %rdi
	leaq	message(%rip), %rsi
	rep stosq
	movl	$0, (%rdi)
	leaq	.LC1(%rip), %rdi
	movw	%dx, 180+message(%rip)
	call	__isoc99_scanf@PLT
	leaq	via(%rip), %rdi
	call	strlen@PLT
	leaq	message(%rip), %rdi
	movq	%rax, 24(%rsp)
	testq	%rax, %rax
	je	.L66
	movslq	%eax, %r12
	leaq	via(%rip), %rbx
	subl	$1, %eax
	leaq	-2+via(%rip), %rcx
	leaq	-1(%rbx,%r12), %rbp
	movq	%rdi, %rbx
	addq	%rcx, %r12
	subq	%rax, %r12
	movq	%r12, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L82:
	movzbl	0(%rbp), %eax
	movq	%rbx, %r14
	addq	$26, %rbx
	movq	%rbx, %r15
	subl	$65, %eax
	cmpb	$15, %al
	ja	.L67
	movzbl	%al, %eax
	movslq	0(%r13,%rax,4), %rax
	addq	%r13, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L69:
	.long	.L74-.L69
	.long	.L67-.L69
	.long	.L73-.L69
	.long	.L67-.L69
	.long	.L72-.L69
	.long	.L67-.L69
	.long	.L67-.L69
	.long	.L67-.L69
	.long	.L67-.L69
	.long	.L71-.L69
	.long	.L67-.L69
	.long	.L67-.L69
	.long	.L86-.L69
	.long	.L67-.L69
	.long	.L67-.L69
	.long	.L87-.L69
	.section	.text.startup
	.p2align 4,,10
	.p2align 3
.L97:
	movb	$0, (%r15)
.L67:
	subq	$1, %rbp
	cmpq	8(%rsp), %rbp
	jne	.L82
.L98:
	movq	24(%rsp), %rcx
	leaq	message(%rip), %rbx
	leaq	(%rcx,%rcx,2), %rax
	leaq	(%rcx,%rax,4), %rax
	leaq	(%rbx,%rax,2), %rdi
.L66:
	call	puts@PLT
	addl	$1, 20(%rsp)
	movl	20(%rsp), %eax
	cmpl	%eax, N(%rip)
	jg	.L65
.L95:
	addq	$40, %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
.L71:
	.cfi_restore_state
	movq	%r14, %rdi
	subq	$1, %rbp
	call	strlen@PLT
	leaq	27(%r14), %rdi
	movl	$25, %ecx
	movq	%r14, %rsi
	leaq	-1(%rax), %rdx
	call	__strncpy_chk@PLT
	movq	%r14, %rdi
	call	strlen@PLT
	movzbl	-1(%r14,%rax), %eax
	movb	%al, 26(%r14)
	cmpq	8(%rsp), %rbp
	jne	.L82
	jmp	.L98
	.p2align 4,,10
	.p2align 3
.L72:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	subq	$1, %rbp
	call	revE
	cmpq	8(%rsp), %rbp
	jne	.L82
	jmp	.L98
	.p2align 4,,10
	.p2align 3
.L73:
	movq	%r14, %rdi
	subq	$1, %rbp
	call	strlen@PLT
	leaq	1(%r14), %rsi
	movl	$26, %ecx
	movq	%rbx, %rdi
	leaq	-1(%rax), %rdx
	call	__strncpy_chk@PLT
	movq	%r14, %rdi
	call	strlen@PLT
	movzbl	(%r14), %edx
	movq	%r14, %rdi
	movb	%dl, -1(%rbx,%rax)
	call	strlen@PLT
	movb	$0, (%rbx,%rax)
	cmpq	8(%rsp), %rbp
	jne	.L82
	jmp	.L98
	.p2align 4,,10
	.p2align 3
.L74:
	movq	%r14, %rdi
	call	strlen@PLT
	testl	%eax, %eax
	je	.L99
	leal	-1(%rax), %ecx
	cltq
	movslq	%ecx, %rdx
	leaq	-2(%r14,%rax), %rdi
	movl	%ecx, %ecx
	subq	%rcx, %rdi
	addq	%r14, %rdx
	movq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L76:
	movzbl	(%rdx), %esi
	subq	$1, %rdx
	addq	$1, %rcx
	movb	%sil, -1(%rcx)
	cmpq	%rdx, %rdi
	jne	.L76
	movb	$0, (%rbx,%rax)
.L102:
	subq	$1, %rbp
	cmpq	8(%rsp), %rbp
	jne	.L82
	jmp	.L98
	.p2align 4,,10
	.p2align 3
.L87:
	xorl	%r12d, %r12d
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L100:
	movsbl	%al, %esi
	subl	$48, %esi
	cmpl	$10, %esi
	sbbb	$0, %al
.L78:
	movb	%al, (%r15)
	addq	$1, %r12
	addq	$1, %r15
.L68:
	movq	%r14, %rdi
	call	strlen@PLT
	cmpq	%rax, %r12
	jnb	.L97
	movzbl	(%r14,%r12), %eax
	cmpb	$48, %al
	jne	.L100
	movl	$57, %eax
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L86:
	xorl	%r12d, %r12d
	jmp	.L70
	.p2align 4,,10
	.p2align 3
.L101:
	movsbl	%al, %esi
	subl	$48, %esi
	cmpl	$10, %esi
	adcb	$0, %al
.L80:
	movb	%al, (%r15)
	addq	$1, %r12
	addq	$1, %r15
.L70:
	movq	%r14, %rdi
	call	strlen@PLT
	cmpq	%rax, %r12
	jnb	.L97
	movzbl	(%r14,%r12), %eax
	cmpb	$57, %al
	jne	.L101
	movl	$48, %eax
	jmp	.L80
	.p2align 4,,10
	.p2align 3
.L99:
	xorl	%eax, %eax
	movb	$0, (%rbx,%rax)
	jmp	.L102
	.cfi_endproc
.LFE42:
	.size	main, .-main
	.globl	msgr_member
	.data
	.type	msgr_member, @object
	.size	msgr_member, 7
msgr_member:
	.string	"JCEAPM"
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	via
	.type	via, @object
	.size	via, 7
via:
	.zero	7
	.globl	message
	.align 32
	.type	message, @object
	.size	message, 182
message:
	.zero	182
	.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	revJ
	.type	revJ, @function
revJ:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	leaq	1(%rbp), %rdi
	movq	%rbx, %rsi
	leaq	-1(%rax), %rdx
	call	strncpy@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movzbl	-1(%rbx,%rax), %eax
	movb	%al, 0(%rbp)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	revJ, .-revJ
	.p2align 4
	.globl	revC
	.type	revC, @function
revC:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	leaq	1(%rbp), %rsi
	movq	%rbx, %rdi
	leaq	-1(%rax), %rdx
	call	strncpy@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movzbl	0(%rbp), %edx
	movq	%rbp, %rdi
	movb	%dl, -1(%rbx,%rax)
	call	strlen@PLT
	movb	$0, (%rbx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE36:
	.size	revC, .-revC
	.p2align 4
	.globl	revE
	.type	revE, @function
revE:
.LFB37:
	.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
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	strlen@PLT
	movl	%eax, %r12d
	shrl	$31, %r12d
	addl	%eax, %r12d
	sarl	%r12d
	movslq	%r12d, %r12
	leaq	0(%rbp,%r12), %r15
	leaq	0(%r13,%r12), %r14
	testb	$1, %al
	je	.L7
	leaq	1(%r12), %rbx
	movq	%r12, %rdx
	movq	%r13, %rdi
	leaq	0(%rbp,%rbx), %rsi
	call	strncpy@PLT
	leaq	0(%r13,%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	strncpy@PLT
	movzbl	(%r15), %eax
	movb	%al, (%r14)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L7:
	.cfi_restore_state
	movq	%r12, %rdx
	movq	%r15, %rsi
	movq	%r13, %rdi
	call	strncpy@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	movq	%r12, %rdx
	movq	%rbp, %rsi
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%r14, %rdi
	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
	jmp	strncpy@PLT
	.cfi_endproc
.LFE37:
	.size	revE, .-revE
	.p2align 4
	.globl	revA
	.type	revA, @function
revA:
.LFB38:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	testl	%eax, %eax
	jle	.L18
	leal	-1(%rax), %esi
	cltq
	movq	%rbp, %rcx
	movslq	%esi, %rdx
	leaq	-2(%rbx,%rax), %r8
	movl	%esi, %esi
	addq	%rbx, %rdx
	subq	%rsi, %r8
	.p2align 4,,10
	.p2align 3
.L13:
	movzbl	(%rdx), %edi
	subq	$1, %rdx
	addq	$1, %rcx
	movb	%dil, -1(%rcx)
	cmpq	%r8, %rdx
	jne	.L13
	movb	$0, 0(%rbp,%rax)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	cltq
	movb	$0, 0(%rbp,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE38:
	.size	revA, .-revA
	.p2align 4
	.globl	revP
	.type	revP, @function
revP:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %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
	xorl	%ebx, %ebx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L26:
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$10, %edx
	sbbb	$0, %al
.L21:
	movb	%al, 0(%rbp)
	addq	$1, %rbx
	addq	$1, %rbp
.L20:
	movq	%r12, %rdi
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L25
	movzbl	(%r12,%rbx), %eax
	cmpb	$48, %al
	jne	.L26
	movl	$57, %eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L25:
	popq	%rbx
	.cfi_def_cfa_offset 24
	movb	$0, 0(%rbp)
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	revP, .-revP
	.p2align 4
	.globl	revM
	.type	revM, @function
revM:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %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
	xorl	%ebx, %ebx
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L34:
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$10, %edx
	adcb	$0, %al
.L29:
	movb	%al, 0(%rbp)
	addq	$1, %rbx
	addq	$1, %rbp
.L28:
	movq	%r12, %rdi
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L33
	movzbl	(%r12,%rbx), %eax
	cmpb	$57, %al
	jne	.L34
	movl	$48, %eax
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L33:
	popq	%rbx
	.cfi_def_cfa_offset 24
	movb	$0, 0(%rbp)
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	revM, .-revM
	.p2align 4
	.globl	reverse_convert
	.type	reverse_convert, @function
reverse_convert:
.LFB41:
	.cfi_startproc
	endbr64
	subl	$65, %edi
	cmpl	$15, %edi
	ja	.L57
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdx, %rbp
	leaq	.L38(%rip), %rdx
	movslq	(%rdx,%rdi,4), %rax
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L38:
	.long	.L43-.L38
	.long	.L36-.L38
	.long	.L42-.L38
	.long	.L36-.L38
	.long	.L41-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L40-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L51-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L52-.L38
	.text
	.p2align 4,,10
	.p2align 3
.L60:
	movb	$0, 0(%rbp)
.L36:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L57:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	movq	%rsi, %rdi
	call	strlen@PLT
	leaq	1(%rbp), %rdi
	movq	%r12, %rsi
	leaq	-1(%rax), %rdx
	call	strncpy@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movzbl	-1(%r12,%rax), %eax
	movb	%al, 0(%rbp)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	movq	%rsi, %rdi
	call	strlen@PLT
	testl	%eax, %eax
	jle	.L61
	leal	-1(%rax), %esi
	cltq
	movq	%rbp, %rcx
	movslq	%esi, %rdx
	leaq	-2(%r12,%rax), %rdi
	movl	%esi, %esi
	addq	%r12, %rdx
	subq	%rsi, %rdi
	.p2align 4,,10
	.p2align 3
.L45:
	movzbl	(%rdx), %esi
	subq	$1, %rdx
	addq	$1, %rcx
	movb	%sil, -1(%rcx)
	cmpq	%rdx, %rdi
	jne	.L45
.L46:
	movb	$0, 0(%rbp,%rax)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movq	%rsi, %rdi
	call	strlen@PLT
	leaq	1(%r12), %rsi
	movq	%rbp, %rdi
	leaq	-1(%rax), %rdx
	call	strncpy@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movzbl	(%r12), %edx
	movq	%r12, %rdi
	movb	%dl, -1(%rbp,%rax)
	call	strlen@PLT
	movb	$0, 0(%rbp,%rax)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	movq	%rbp, %rsi
	movq	%r12, %rdi
	call	revE
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L62:
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$10, %edx
	adcb	$0, %al
.L49:
	movb	%al, 0(%rbp)
	addq	$1, %rbx
	addq	$1, %rbp
.L39:
	movq	%r12, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jnb	.L60
	movzbl	(%r12,%rbx), %eax
	cmpb	$57, %al
	jne	.L62
	movl	$48, %eax
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L52:
	xorl	%ebx, %ebx
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L63:
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$10, %edx
	sbbb	$0, %al
.L47:
	movb	%al, 0(%rbp)
	addq	$1, %rbx
	addq	$1, %rbp
.L37:
	movq	%r12, %rdi
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L60
	movzbl	(%r12,%rbx), %eax
	cmpb	$48, %al
	jne	.L63
	movl	$57, %eax
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L61:
	cltq
	jmp	.L46
	.cfi_endproc
.LFE41:
	.size	reverse_convert, .-reverse_convert
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	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
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	call	__isoc99_scanf@PLT
	movl	N(%rip), %ecx
	movl	$0, 20(%rsp)
	testl	%ecx, %ecx
	jle	.L95
	leaq	.L69(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L65:
	leaq	via(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movl	$22, %ecx
	xorl	%edx, %edx
	leaq	message(%rip), %rdi
	leaq	message(%rip), %rsi
	rep stosq
	movl	$0, (%rdi)
	leaq	.LC1(%rip), %rdi
	movw	%dx, 180+message(%rip)
	call	__isoc99_scanf@PLT
	leaq	via(%rip), %rdi
	call	strlen@PLT
	leaq	message(%rip), %rdi
	movq	%rax, 24(%rsp)
	testq	%rax, %rax
	je	.L66
	movslq	%eax, %r12
	leaq	via(%rip), %rbx
	subl	$1, %eax
	leaq	-2+via(%rip), %rcx
	leaq	-1(%rbx,%r12), %rbp
	movq	%rdi, %rbx
	addq	%rcx, %r12
	subq	%rax, %r12
	movq	%r12, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L82:
	movzbl	0(%rbp), %eax
	movq	%rbx, %r14
	addq	$26, %rbx
	movq	%rbx, %r15
	subl	$65, %eax
	cmpb	$15, %al
	ja	.L67
	movzbl	%al, %eax
	movslq	0(%r13,%rax,4), %rax
	addq	%r13, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L69:
	.long	.L74-.L69
	.long	.L67-.L69
	.long	.L73-.L69
	.long	.L67-.L69
	.long	.L72-.L69
	.long	.L67-.L69
	.long	.L67-.L69
	.long	.L67-.L69
	.long	.L67-.L69
	.long	.L71-.L69
	.long	.L67-.L69
	.long	.L67-.L69
	.long	.L86-.L69
	.long	.L67-.L69
	.long	.L67-.L69
	.long	.L87-.L69
	.section	.text.startup
	.p2align 4,,10
	.p2align 3
.L97:
	movb	$0, (%r15)
.L67:
	subq	$1, %rbp
	cmpq	8(%rsp), %rbp
	jne	.L82
.L98:
	movq	24(%rsp), %rcx
	leaq	message(%rip), %rbx
	leaq	(%rcx,%rcx,2), %rax
	leaq	(%rcx,%rax,4), %rax
	leaq	(%rbx,%rax,2), %rdi
.L66:
	call	puts@PLT
	addl	$1, 20(%rsp)
	movl	20(%rsp), %eax
	cmpl	%eax, N(%rip)
	jg	.L65
.L95:
	addq	$40, %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
.L71:
	.cfi_restore_state
	movq	%r14, %rdi
	subq	$1, %rbp
	call	strlen@PLT
	leaq	27(%r14), %rdi
	movl	$25, %ecx
	movq	%r14, %rsi
	leaq	-1(%rax), %rdx
	call	__strncpy_chk@PLT
	movq	%r14, %rdi
	call	strlen@PLT
	movzbl	-1(%r14,%rax), %eax
	movb	%al, 26(%r14)
	cmpq	8(%rsp), %rbp
	jne	.L82
	jmp	.L98
	.p2align 4,,10
	.p2align 3
.L72:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	subq	$1, %rbp
	call	revE
	cmpq	8(%rsp), %rbp
	jne	.L82
	jmp	.L98
	.p2align 4,,10
	.p2align 3
.L73:
	movq	%r14, %rdi
	subq	$1, %rbp
	call	strlen@PLT
	leaq	1(%r14), %rsi
	movl	$26, %ecx
	movq	%rbx, %rdi
	leaq	-1(%rax), %rdx
	call	__strncpy_chk@PLT
	movq	%r14, %rdi
	call	strlen@PLT
	movzbl	(%r14), %edx
	movq	%r14, %rdi
	movb	%dl, -1(%rbx,%rax)
	call	strlen@PLT
	movb	$0, (%rbx,%rax)
	cmpq	8(%rsp), %rbp
	jne	.L82
	jmp	.L98
	.p2align 4,,10
	.p2align 3
.L74:
	movq	%r14, %rdi
	call	strlen@PLT
	testl	%eax, %eax
	je	.L99
	leal	-1(%rax), %ecx
	cltq
	movslq	%ecx, %rdx
	leaq	-2(%r14,%rax), %rdi
	movl	%ecx, %ecx
	subq	%rcx, %rdi
	addq	%r14, %rdx
	movq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L76:
	movzbl	(%rdx), %esi
	subq	$1, %rdx
	addq	$1, %rcx
	movb	%sil, -1(%rcx)
	cmpq	%rdx, %rdi
	jne	.L76
	movb	$0, (%rbx,%rax)
.L102:
	subq	$1, %rbp
	cmpq	8(%rsp), %rbp
	jne	.L82
	jmp	.L98
	.p2align 4,,10
	.p2align 3
.L87:
	xorl	%r12d, %r12d
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L100:
	movsbl	%al, %esi
	subl	$48, %esi
	cmpl	$10, %esi
	sbbb	$0, %al
.L78:
	movb	%al, (%r15)
	addq	$1, %r12
	addq	$1, %r15
.L68:
	movq	%r14, %rdi
	call	strlen@PLT
	cmpq	%rax, %r12
	jnb	.L97
	movzbl	(%r14,%r12), %eax
	cmpb	$48, %al
	jne	.L100
	movl	$57, %eax
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L86:
	xorl	%r12d, %r12d
	jmp	.L70
	.p2align 4,,10
	.p2align 3
.L101:
	movsbl	%al, %esi
	subl	$48, %esi
	cmpl	$10, %esi
	adcb	$0, %al
.L80:
	movb	%al, (%r15)
	addq	$1, %r12
	addq	$1, %r15
.L70:
	movq	%r14, %rdi
	call	strlen@PLT
	cmpq	%rax, %r12
	jnb	.L97
	movzbl	(%r14,%r12), %eax
	cmpb	$57, %al
	jne	.L101
	movl	$48, %eax
	jmp	.L80
	.p2align 4,,10
	.p2align 3
.L99:
	xorl	%eax, %eax
	movb	$0, (%rbx,%rax)
	jmp	.L102
	.cfi_endproc
.LFE42:
	.size	main, .-main
	.globl	msgr_member
	.data
	.type	msgr_member, @object
	.size	msgr_member, 7
msgr_member:
	.string	"JCEAPM"
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	via
	.type	via, @object
	.size	via, 7
via:
	.zero	7
	.globl	message
	.align 32
	.type	message, @object
	.size	message, 182
message:
	.zero	182
	.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:

/*
AizuOnline A1240
Title Unreliable Message
*/
#include <stdio.h>
#include <string.h>
//Global data section
char message[7][26];
char via[7];
int N;
char msgr_member[]="JCEAPM";
//
void revJ(char * from,char * to)
{
        strncpy(to+1,from,strlen(from)-1);
        to[0]=from[strlen(from)-1];
}
void revC(char * from,char * to)
{
        strncpy(to,from+1,strlen(from)-1);
        to[strlen(from)-1]=from[0];
        to[strlen(from)]='\0';
}
void revE(char * from,char * to)
{
        int l;

        l=strlen(from);
        if(l % 2)
        {
                strncpy(to,from+l/2+1,l/2);
                strncpy(to+l/2+1,from,l/2);
                to[l/2]=from[l/2];
        }
        else
        {
                strncpy(to,from+l/2,l/2);
                strncpy(to+l/2,from,l/2);
        }
}
void revA(char * from,char * to)
{
        int i,l;
        l=strlen(from);
        for(i=0;i<l;i++)
                to[i]=from[l-1-i];
        to[l]='\0';
}
void revP(char * from,char * to)
{
        int i;
        char c;


        for(i=0;i<strlen(from);i++)
        {
                c=from[i];
                if(c=='0')
                        *to='9';
                else if(isdigit(c))
                        *to=c-1;
                else
                        *to=c;
                to++;
        }
        *to='\0';
}
void revM(char * from,char * to)
{
        int i;
        char c;
        //printf("M\n");

        for(i=0;i<strlen(from);i++)
        {
                c=from[i];
                if(c=='9')
                        *to='0';
                else if(isdigit(c))
                        *to=c+1;
                else
                        *to=c;
                to++;
        }
        *to='\0';
}

reverse_convert(int msgr,char * from,char  * to)
{
        //printf("msgr=%c from=%s\n",msgr,from);

        if(msgr=='J')
                revJ(from,to);

        else if(msgr=='C')
                revC(from,to);
        else if(msgr=='E')
                revE(from,to);
        else if(msgr=='A')
                revA(from,to);
        else if(msgr=='P')
                revP(from,to);
        else if(msgr=='M')
                revM(from,to);

}
main()
{
        int i,j,msgr,len;

        scanf("%d",&N);
        for(i=0;i<N;i++)
        {
                scanf("%s",via);
                memset(&message[0][0],'\0',26*7);
                scanf("%s",&message[0][0]); 


                len=strlen(via);
                for(j=0;j<len;j++)
                {
                        msgr = via[len-j-1];
                        reverse_convert(msgr,&message[j][0],&message[j+1][0]);
                }
                printf("%s\n",&message[j][0]);
        }
return(0);
}
5
AJMP
aB33d
E
86AE
AM
6
JPEM
WaEaETC302Q
CP
rTurnAGundam1isdefferentf
 5
AJMP
aB33d
E
86AE
AM
6
EPJM
WaEaETC302Q
CP
rTurnAGundam1isdefferentf
 5
AJMP
aB33d
E
86AE
AM
0
EPJM
WaEaETC302Q
CP
rTurnAGundam1isdefferentf
 5
AJMP
aB33d
E
86AE
AM
0
MPJE
WaEaETC302Q
CP
rTurnAGundam1isdefferentf
 5
AJMP
aB33d
E
86AE
AM
0
MPJE
WaEaETC302Q
CP
rTurnAGumdam1isdefferentf
 5
AJMP
aB33d
E
86AE
AM
1
MPJE
WaEaETC302Q
CP
rTurnAGumdam1isdefferentf
 5
AJMP
aB23d
E
EA68
AM
6
JPEM
WaEaETC302Q
CP
rTurnAGundam1isdefferentf
 5
AJMP
aB33d
E
EA68
AM
6
JPEM
WaEaETC302Q
CP
rTurnAGundam1isdefferentf
 5
AJMP
aB33d
E
86AE
AM
1
EPJM
WaEaETC302Q
CP
rTurnAGundam1isdefferentf
 5
AJMP
aB33d
E
86AE
AM
-1
MPJE
WaEaETC302Q
CP
rTurnAGumdam1isdefferentf

33Bad
AE86
7
EC302QTWaEa
TurnAGundam0isdefferentfr
 33Bad
AE86
7
TC302EQWaEa
TurnAGundam0isdefferentfr
 33Bad
AE86
1
TC302EQWaEa
TurnAGundam0isdefferentfr
 33Bad
AE86
1
EC302QTWaEa
TurnAGundam0isdefferentfr
 33Bad
AE86
1
EC302QTWaEa
TurnAGumdam0isdefferentfr
 33Bad
AE86
2
EC302QTWaEa
TurnAGumdam0isdefferentfr
 32Bad
68EA
7
EC302QTWaEa
TurnAGundam0isdefferentfr
 33Bad
68EA
7
EC302QTWaEa
TurnAGundam0isdefferentfr
 33Bad
AE86
2
TC302EQWaEa
TurnAGundam0isdefferentfr
 33Bad
AE86
2-
EC302QTWaEa
TurnAGumdam0isdefferentfr

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
AizuOnline A1240
Title Unreliable Message
*/
#include <stdio.h>
#include <string.h>
//Global data section
char message[7][26];
char via[7];
int N;
char msgr_member[]="JCEAPM";
//
void revJ(char * from,char * to)
{
        strncpy(to+1,from,strlen(from)-1);
        to[0]=from[strlen(from)-1];
}
void revC(char * from,char * to)
{
        strncpy(to,from+1,strlen(from)-1);
        to[strlen(from)-1]=from[0];
        to[strlen(from)]='\0';
}
void revE(char * from,char * to)
{
        int l;

        l=strlen(from);
        if(l % 2)
        {
                strncpy(to,from+l/2+1,l/2);
                strncpy(to+l/2+1,from,l/2);
                to[l/2]=from[l/2];
        }
        else
        {
                strncpy(to,from+l/2,l/2);
                strncpy(to+l/2,from,l/2);
        }
}
void revA(char * from,char * to)
{
        int i,l;
        l=strlen(from);
        for(i=0;i<l;i++)
                to[i]=from[l-1-i];
        to[l]='\0';
}
void revP(char * from,char * to)
{
        int i;
        char c;


        for(i=0;i<strlen(from);i++)
        {
                c=from[i];
                if(c=='0')
                        *to='9';
                else if(isdigit(c))
                        *to=c-1;
                else
                        *to=c;
                to++;
        }
        *to='\0';
}
void revM(char * from,char * to)
{
        int i;
        char c;
        //printf("M\n");

        for(i=0;i<strlen(from);i++)
        {
                c=from[i];
                if(c=='9')
                        *to='0';
                else if(isdigit(c))
                        *to=c+1;
                else
                        *to=c;
                to++;
        }
        *to='\0';
}

reverse_convert(int msgr,char * from,char  * to)
{
        //printf("msgr=%c from=%s\n",msgr,from);

        if(msgr=='J')
                revJ(from,to);

        else if(msgr=='C')
                revC(from,to);
        else if(msgr=='E')
                revE(from,to);
        else if(msgr=='A')
                revA(from,to);
        else if(msgr=='P')
                revP(from,to);
        else if(msgr=='M')
                revM(from,to);

}
main()
{
        int i,j,msgr,len;

        scanf("%d",&N);
        for(i=0;i<N;i++)
        {
                scanf("%s",via);
                memset(&message[0][0],'\0',26*7);
                scanf("%s",&message[0][0]); 


                len=strlen(via);
                for(j=0;j<len;j++)
                {
                        msgr = via[len-j-1];
                        reverse_convert(msgr,&message[j][0],&message[j+1][0]);
                }
                printf("%s\n",&message[j][0]);
        }
return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	message
	.bss
	.align 32
	.type	message, @object
	.size	message, 182
message:
	.zero	182
	.globl	via
	.type	via, @object
	.size	via, 7
via:
	.zero	7
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	msgr_member
	.data
	.type	msgr_member, @object
	.size	msgr_member, 7
msgr_member:
	.string	"JCEAPM"
	.text
	.globl	revJ
	.type	revJ, @function
revJ:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncpy@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movb	%dl, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	revJ, .-revJ
	.globl	revC
	.type	revC, @function
revC:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	-16(%rbp), %rdx
	addq	%rdx, %rax
	movb	$0, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	revC, .-revC
	.globl	revE
	.type	revE, @function
revE:
.LFB2:
	.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L4
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	cltq
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rax, %rcx
	movq	-32(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	cltq
	leaq	1(%rax), %rcx
	movq	-32(%rbp), %rax
	addq	%rax, %rcx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncpy@PLT
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movzbl	(%rcx), %eax
	movb	%al, (%rdx)
	jmp	.L6
.L4:
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	addq	%rax, %rcx
	movq	-32(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movslq	%eax, %rcx
	movq	-32(%rbp), %rax
	addq	%rax, %rcx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncpy@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	revE, .-revE
	.globl	revA
	.type	revA, @function
revA:
.LFB3:
	.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	subl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -8(%rbp)
.L8:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L9
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	revA, .-revA
	.globl	revP
	.type	revP, @function
revP:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L11
.L15:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -21(%rbp)
	cmpb	$48, -21(%rbp)
	jne	.L12
	movq	-48(%rbp), %rax
	movb	$57, (%rax)
	jmp	.L13
.L12:
	movsbl	-21(%rbp), %eax
	subl	$48, %eax
	cmpl	$9, %eax
	ja	.L14
	movzbl	-21(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	movq	-48(%rbp), %rax
	movb	%dl, (%rax)
	jmp	.L13
.L14:
	movq	-48(%rbp), %rax
	movzbl	-21(%rbp), %edx
	movb	%dl, (%rax)
.L13:
	addq	$1, -48(%rbp)
	addl	$1, -20(%rbp)
.L11:
	movl	-20(%rbp), %eax
	movslq	%eax, %rbx
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L15
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	revP, .-revP
	.globl	revM
	.type	revM, @function
revM:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L17
.L21:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -21(%rbp)
	cmpb	$57, -21(%rbp)
	jne	.L18
	movq	-48(%rbp), %rax
	movb	$48, (%rax)
	jmp	.L19
.L18:
	movsbl	-21(%rbp), %eax
	subl	$48, %eax
	cmpl	$9, %eax
	ja	.L20
	movzbl	-21(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	movq	-48(%rbp), %rax
	movb	%dl, (%rax)
	jmp	.L19
.L20:
	movq	-48(%rbp), %rax
	movzbl	-21(%rbp), %edx
	movb	%dl, (%rax)
.L19:
	addq	$1, -48(%rbp)
	addl	$1, -20(%rbp)
.L17:
	movl	-20(%rbp), %eax
	movslq	%eax, %rbx
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L21
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	revM, .-revM
	.globl	reverse_convert
	.type	reverse_convert, @function
reverse_convert:
.LFB6:
	.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
	movl	%edi, -4(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	cmpl	$74, -4(%rbp)
	jne	.L23
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revJ
	jmp	.L24
.L23:
	cmpl	$67, -4(%rbp)
	jne	.L25
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revC
	jmp	.L24
.L25:
	cmpl	$69, -4(%rbp)
	jne	.L26
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revE
	jmp	.L24
.L26:
	cmpl	$65, -4(%rbp)
	jne	.L27
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revA
	jmp	.L24
.L27:
	cmpl	$80, -4(%rbp)
	jne	.L28
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revP
	jmp	.L24
.L28:
	cmpl	$77, -4(%rbp)
	jne	.L24
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revM
.L24:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reverse_convert, .-reverse_convert
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L30
.L33:
	leaq	via(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$182, %edx
	movl	$0, %esi
	leaq	message(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	leaq	message(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	via(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L31
.L32:
	movl	-8(%rbp), %eax
	subl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	via(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	message(%rip), %rdx
	leaq	(%rax,%rdx), %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	message(%rip), %rdx
	leaq	(%rax,%rdx), %rcx
	movl	-4(%rbp), %eax
	movq	%rsi, %rdx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	reverse_convert
	addl	$1, -12(%rbp)
.L31:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L32
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	message(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -16(%rbp)
.L30:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L33
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	message
	.bss
	.align 32
	.type	message, @object
	.size	message, 182
message:
	.zero	182
	.globl	via
	.type	via, @object
	.size	via, 7
via:
	.zero	7
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	msgr_member
	.data
	.type	msgr_member, @object
	.size	msgr_member, 7
msgr_member:
	.string	"JCEAPM"
	.text
	.globl	revJ
	.type	revJ, @function
revJ:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncpy@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movb	%dl, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	revJ, .-revJ
	.globl	revC
	.type	revC, @function
revC:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	-16(%rbp), %rdx
	addq	%rdx, %rax
	movb	$0, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	revC, .-revC
	.globl	revE
	.type	revE, @function
revE:
.LFB2:
	.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L4
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	cltq
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rax, %rcx
	movq	-32(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	cltq
	leaq	1(%rax), %rcx
	movq	-32(%rbp), %rax
	addq	%rax, %rcx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncpy@PLT
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movzbl	(%rcx), %eax
	movb	%al, (%rdx)
	jmp	.L6
.L4:
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	addq	%rax, %rcx
	movq	-32(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movslq	%eax, %rcx
	movq	-32(%rbp), %rax
	addq	%rax, %rcx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncpy@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	revE, .-revE
	.globl	revA
	.type	revA, @function
revA:
.LFB3:
	.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	subl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-8(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -8(%rbp)
.L8:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L9
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	revA, .-revA
	.globl	revP
	.type	revP, @function
revP:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L11
.L15:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -21(%rbp)
	cmpb	$48, -21(%rbp)
	jne	.L12
	movq	-48(%rbp), %rax
	movb	$57, (%rax)
	jmp	.L13
.L12:
	movsbl	-21(%rbp), %eax
	subl	$48, %eax
	cmpl	$9, %eax
	ja	.L14
	movzbl	-21(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	movq	-48(%rbp), %rax
	movb	%dl, (%rax)
	jmp	.L13
.L14:
	movq	-48(%rbp), %rax
	movzbl	-21(%rbp), %edx
	movb	%dl, (%rax)
.L13:
	addq	$1, -48(%rbp)
	addl	$1, -20(%rbp)
.L11:
	movl	-20(%rbp), %eax
	movslq	%eax, %rbx
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L15
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	revP, .-revP
	.globl	revM
	.type	revM, @function
revM:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L17
.L21:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -21(%rbp)
	cmpb	$57, -21(%rbp)
	jne	.L18
	movq	-48(%rbp), %rax
	movb	$48, (%rax)
	jmp	.L19
.L18:
	movsbl	-21(%rbp), %eax
	subl	$48, %eax
	cmpl	$9, %eax
	ja	.L20
	movzbl	-21(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	movq	-48(%rbp), %rax
	movb	%dl, (%rax)
	jmp	.L19
.L20:
	movq	-48(%rbp), %rax
	movzbl	-21(%rbp), %edx
	movb	%dl, (%rax)
.L19:
	addq	$1, -48(%rbp)
	addl	$1, -20(%rbp)
.L17:
	movl	-20(%rbp), %eax
	movslq	%eax, %rbx
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L21
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	revM, .-revM
	.globl	reverse_convert
	.type	reverse_convert, @function
reverse_convert:
.LFB6:
	.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
	movl	%edi, -4(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	cmpl	$74, -4(%rbp)
	jne	.L23
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revJ
	jmp	.L24
.L23:
	cmpl	$67, -4(%rbp)
	jne	.L25
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revC
	jmp	.L24
.L25:
	cmpl	$69, -4(%rbp)
	jne	.L26
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revE
	jmp	.L24
.L26:
	cmpl	$65, -4(%rbp)
	jne	.L27
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revA
	jmp	.L24
.L27:
	cmpl	$80, -4(%rbp)
	jne	.L28
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revP
	jmp	.L24
.L28:
	cmpl	$77, -4(%rbp)
	jne	.L24
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	revM
.L24:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reverse_convert, .-reverse_convert
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L30
.L33:
	leaq	via(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$182, %edx
	movl	$0, %esi
	leaq	message(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	leaq	message(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	via(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L31
.L32:
	movl	-8(%rbp), %eax
	subl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	via(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	message(%rip), %rdx
	leaq	(%rax,%rdx), %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	message(%rip), %rdx
	leaq	(%rax,%rdx), %rcx
	movl	-4(%rbp), %eax
	movq	%rsi, %rdx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	reverse_convert
	addl	$1, -12(%rbp)
.L31:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L32
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	message(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -16(%rbp)
.L30:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L33
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
