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

```c
/*
 * main.c
 *
 *  Created on: 2019/12/29
 *      Author: family
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MAX(a,b) (a > b ? a : b)
#define MIN(a,b) (a > b ? b : a)
typedef long long int ll;

char T[100005] = {0};
char t[100005] = {0};

int main()
{
	int N = 0, K = 0;
	int R = 0, S = 0, P = 0;
	int i = 0, len = 0;
	scanf("%d %d", &N, &K);
	scanf("%d %d %d", &R, &S, &P);
	scanf("%s", T);
	len = strlen(T);

	for (i = 0; i < len; i++) {
		switch(T[i]) {
		case 'r': t[i] = 'p'; break;
		case 's': t[i] = 'r'; break;
		case 'p': t[i] = 's'; break;
		}

		if (i >= K) {
			//printf("x i=%d %c ", i, t[i]);
			if (t[i] == t[i-K]) {
				switch(t[i]) {
				case 'p': t[i] = 'r'; break;
				case 'r': t[i] = 's'; break;
				case 's': t[i] = 'p'; break;
				}
				//printf("xx i=%d %c ", i, t[i]);
				if ((i+K) < len) {
					switch(t[i]) {
					case 'r':
						if (T[i+K] == 's') {
							t[i] = 's';
						}
						break;
					case 's':
						if (T[i+K] == 'p') {
							t[i] = 'p';
						}
						break;
					case 'p':
						if (T[i+K] == 'r') {
							t[i] = 'r';
						}
						break;
					}
					//printf("xxx i=%d %c ", i, t[i]);
				}
			}
		}
		//printf("%c\n", t[i]);
	}
	int g = 0, c = 0, p = 0;
	for (i = 0; i < len; i++) {
		//printf("%c", t[i]);
		switch(t[i]) {
		case 'r':
			if (T[i] == 's') {
				g++;
			}
			break;
		case 's':
			if (T[i] == 'p') {
				c++;
			}
			break;
		case 'p':
			if (T[i] == 'r') {
				p++;
			}
			break;
		}
	}
	printf("%d\n", (g*R) + (c*S) + (p*P));
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	T
	.bss
	.align 32
	.type	T, @object
	.size	T, 100005
T:
	.zero	100005
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 100005
t:
	.zero	100005
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -12(%rbp)
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	T(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	T(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -12(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L2
.L16:
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L3
	cmpl	$115, %eax
	jg	.L4
	cmpl	$112, %eax
	je	.L5
	cmpl	$114, %eax
	jne	.L4
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$112, (%rax,%rdx)
	jmp	.L4
.L3:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$114, (%rax,%rdx)
	jmp	.L4
.L5:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$115, (%rax,%rdx)
	nop
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L6
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-44(%rbp), %ecx
	movl	-28(%rbp), %eax
	subl	%ecx, %eax
	cltq
	leaq	t(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	jne	.L6
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L7
	cmpl	$115, %eax
	jg	.L8
	cmpl	$112, %eax
	je	.L9
	cmpl	$114, %eax
	je	.L10
	jmp	.L8
.L9:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$114, (%rax,%rdx)
	jmp	.L8
.L10:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$115, (%rax,%rdx)
	jmp	.L8
.L7:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$112, (%rax,%rdx)
	nop
.L8:
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jle	.L6
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L11
	cmpl	$115, %eax
	jg	.L6
	cmpl	$112, %eax
	je	.L12
	cmpl	$114, %eax
	jne	.L6
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$115, %al
	jne	.L27
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$115, (%rax,%rdx)
	jmp	.L27
.L11:
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$112, %al
	jne	.L28
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$112, (%rax,%rdx)
	jmp	.L28
.L12:
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$114, %al
	jne	.L29
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$114, (%rax,%rdx)
	jmp	.L29
.L27:
	nop
	jmp	.L6
.L28:
	nop
	jmp	.L6
.L29:
	nop
.L6:
	addl	$1, -28(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L16
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L17
.L24:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L18
	cmpl	$115, %eax
	jg	.L19
	cmpl	$112, %eax
	je	.L20
	cmpl	$114, %eax
	jne	.L19
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$115, %al
	jne	.L30
	addl	$1, -24(%rbp)
	jmp	.L30
.L18:
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$112, %al
	jne	.L31
	addl	$1, -20(%rbp)
	jmp	.L31
.L20:
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$114, %al
	jne	.L32
	addl	$1, -16(%rbp)
	jmp	.L32
.L30:
	nop
	jmp	.L19
.L31:
	nop
	jmp	.L19
.L32:
	nop
.L19:
	addl	$1, -28(%rbp)
.L17:
	movl	-28(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L24
	movl	-40(%rbp), %eax
	imull	-24(%rbp), %eax
	movl	%eax, %edx
	movl	-36(%rbp), %eax
	imull	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-32(%rbp), %eax
	imull	-16(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	T(%rip), %rbx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	movl	$0, 4(%rsp)
	movl	$0, 8(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 16(%rsp)
	movl	$0, 20(%rsp)
	call	__isoc99_scanf@PLT
	leaq	20(%rsp), %rcx
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L34
	movl	8(%rsp), %r11d
	movq	%rax, %r8
	movl	%eax, %r10d
	testl	%r11d, %r11d
	jle	.L35
	cmpl	%eax, %r11d
	movl	%eax, %r9d
	leaq	t(%rip), %rax
	movq	%rbx, %rsi
	cmovle	%r11d, %r9d
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L51:
	cmpb	$112, %dl
	je	.L49
.L7:
	addl	$1, %ecx
	addq	$1, %rsi
	addq	$1, %rdi
	cmpl	%r9d, %ecx
	jge	.L50
.L9:
	movzbl	(%rsi), %edx
	cmpb	$114, %dl
	je	.L4
	cmpb	$115, %dl
	jne	.L51
	addl	$1, %ecx
	movb	$114, (%rdi)
	addq	$1, %rsi
	addq	$1, %rdi
	cmpl	%r9d, %ecx
	jl	.L9
.L50:
	cmpl	%ecx, %r8d
	jg	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	leaq	T(%rip), %rcx
	leal	-1(%r8), %eax
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	leaq	1(%rcx), %rdi
	leaq	t(%rip), %rsi
	xorl	%r8d, %r8d
	addq	%rax, %rdi
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L53:
	cmpb	$112, %al
	je	.L52
.L30:
	addq	$1, %rcx
	addq	$1, %rsi
	cmpq	%rdi, %rcx
	je	.L2
.L31:
	movzbl	(%rsi), %eax
	cmpb	$114, %al
	je	.L27
	cmpb	$115, %al
	jne	.L53
	xorl	%eax, %eax
	cmpb	$112, (%rcx)
	sete	%al
	addq	$1, %rcx
	addq	$1, %rsi
	addl	%eax, %r9d
	cmpq	%rdi, %rcx
	jne	.L31
.L2:
	imull	12(%rsp), %edx
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	imull	16(%rsp), %r9d
	imull	20(%rsp), %r8d
	addl	%r9d, %edx
	addl	%r8d, %edx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	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
.L4:
	.cfi_restore_state
	movb	$112, (%rdi)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L49:
	movb	$115, (%rdi)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L35:
	xorl	%ecx, %ecx
	leaq	t(%rip), %rax
.L3:
	movslq	%ecx, %r9
	leal	(%r11,%rcx), %edi
	subl	%r11d, %ecx
	movl	$112, %r12d
	movq	%r9, %rsi
	addq	%r9, %rax
	movslq	%ecx, %rcx
	movl	$115, %ebp
	movzbl	(%rbx,%rsi), %edx
	cmpb	$114, %dl
	je	.L10
	.p2align 4,,10
	.p2align 3
.L56:
	cmpb	$115, %dl
	je	.L11
	cmpb	$112, %dl
	je	.L55
	movq	%rax, %r11
	movzbl	(%rax), %edx
	subq	%r9, %r11
	cmpb	%dl, (%r11,%rcx)
	jne	.L19
	cmpb	$114, %dl
	je	.L20
	cmpb	$115, %dl
	je	.L21
	cmpb	$112, %dl
	je	.L32
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$1, %rsi
	addq	$1, %rax
	addl	$1, %edi
	cmpl	%esi, %r10d
	jle	.L26
	movzbl	(%rbx,%rsi), %edx
	cmpb	$114, %dl
	jne	.L56
.L10:
	movq	%rax, %rdx
	movb	$112, (%rax)
	subq	%r9, %rdx
	cmpb	(%rdx,%rcx), %r12b
	jne	.L19
.L32:
	movb	$114, (%rax)
	cmpl	%edi, %r10d
	jle	.L19
	movslq	%edi, %rdx
	cmpb	$115, (%rbx,%rdx)
	jne	.L19
	movb	$115, (%rax)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%eax, %eax
	cmpb	$115, (%rcx)
	sete	%al
	addl	%eax, %edx
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L52:
	xorl	%eax, %eax
	cmpb	$114, (%rcx)
	sete	%al
	addl	%eax, %r8d
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L55:
	movq	%rax, %rdx
	movb	$115, (%rax)
	subq	%r9, %rdx
	cmpb	(%rdx,%rcx), %bpl
	jne	.L19
.L21:
	movb	$112, (%rax)
	cmpl	%edi, %r10d
	jle	.L19
	movslq	%edi, %rdx
	cmpb	$114, (%rbx,%rdx)
	jne	.L19
	movb	$114, (%rax)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%rax, %rdx
	movb	$114, (%rax)
	subq	%r9, %rdx
	cmpb	$114, (%rdx,%rcx)
	jne	.L19
.L20:
	movb	$115, (%rax)
	cmpl	%edi, %r10d
	jle	.L19
	movslq	%edi, %rdx
	cmpb	$112, (%rbx,%rdx)
	jne	.L19
	movb	$112, (%rax)
	jmp	.L19
.L34:
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	jmp	.L2
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 100005
t:
	.zero	100005
	.globl	T
	.align 32
	.type	T, @object
	.size	T, 100005
T:
	.zero	100005
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	T(%rip), %rbx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	movl	$0, 4(%rsp)
	movl	$0, 8(%rsp)
	movl	$0, 12(%rsp)
	movl	$0, 16(%rsp)
	movl	$0, 20(%rsp)
	call	__isoc99_scanf@PLT
	leaq	20(%rsp), %rcx
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L34
	movl	8(%rsp), %r11d
	movq	%rax, %r8
	movl	%eax, %r10d
	testl	%r11d, %r11d
	jle	.L35
	cmpl	%eax, %r11d
	movl	%eax, %r9d
	leaq	t(%rip), %rax
	movq	%rbx, %rsi
	cmovle	%r11d, %r9d
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L51:
	cmpb	$112, %dl
	je	.L49
.L7:
	addl	$1, %ecx
	addq	$1, %rsi
	addq	$1, %rdi
	cmpl	%r9d, %ecx
	jge	.L50
.L9:
	movzbl	(%rsi), %edx
	cmpb	$114, %dl
	je	.L4
	cmpb	$115, %dl
	jne	.L51
	addl	$1, %ecx
	movb	$114, (%rdi)
	addq	$1, %rsi
	addq	$1, %rdi
	cmpl	%r9d, %ecx
	jl	.L9
.L50:
	cmpl	%ecx, %r8d
	jg	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	leaq	T(%rip), %rcx
	leal	-1(%r8), %eax
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	leaq	1(%rcx), %rdi
	leaq	t(%rip), %rsi
	xorl	%r8d, %r8d
	addq	%rax, %rdi
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L53:
	cmpb	$112, %al
	je	.L52
.L30:
	addq	$1, %rcx
	addq	$1, %rsi
	cmpq	%rdi, %rcx
	je	.L2
.L31:
	movzbl	(%rsi), %eax
	cmpb	$114, %al
	je	.L27
	cmpb	$115, %al
	jne	.L53
	xorl	%eax, %eax
	cmpb	$112, (%rcx)
	sete	%al
	addq	$1, %rcx
	addq	$1, %rsi
	addl	%eax, %r9d
	cmpq	%rdi, %rcx
	jne	.L31
.L2:
	imull	12(%rsp), %edx
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	imull	16(%rsp), %r9d
	imull	20(%rsp), %r8d
	addl	%r9d, %edx
	addl	%r8d, %edx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	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
.L4:
	.cfi_restore_state
	movb	$112, (%rdi)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L49:
	movb	$115, (%rdi)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L35:
	xorl	%ecx, %ecx
	leaq	t(%rip), %rax
.L3:
	movslq	%ecx, %r9
	leal	(%r11,%rcx), %edi
	subl	%r11d, %ecx
	movl	$112, %r12d
	movq	%r9, %rsi
	addq	%r9, %rax
	movslq	%ecx, %rcx
	movl	$115, %ebp
	movzbl	(%rbx,%rsi), %edx
	cmpb	$114, %dl
	je	.L10
	.p2align 4,,10
	.p2align 3
.L56:
	cmpb	$115, %dl
	je	.L11
	cmpb	$112, %dl
	je	.L55
	movq	%rax, %r11
	movzbl	(%rax), %edx
	subq	%r9, %r11
	cmpb	%dl, (%r11,%rcx)
	jne	.L19
	cmpb	$114, %dl
	je	.L20
	cmpb	$115, %dl
	je	.L21
	cmpb	$112, %dl
	je	.L32
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$1, %rsi
	addq	$1, %rax
	addl	$1, %edi
	cmpl	%esi, %r10d
	jle	.L26
	movzbl	(%rbx,%rsi), %edx
	cmpb	$114, %dl
	jne	.L56
.L10:
	movq	%rax, %rdx
	movb	$112, (%rax)
	subq	%r9, %rdx
	cmpb	(%rdx,%rcx), %r12b
	jne	.L19
.L32:
	movb	$114, (%rax)
	cmpl	%edi, %r10d
	jle	.L19
	movslq	%edi, %rdx
	cmpb	$115, (%rbx,%rdx)
	jne	.L19
	movb	$115, (%rax)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%eax, %eax
	cmpb	$115, (%rcx)
	sete	%al
	addl	%eax, %edx
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L52:
	xorl	%eax, %eax
	cmpb	$114, (%rcx)
	sete	%al
	addl	%eax, %r8d
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L55:
	movq	%rax, %rdx
	movb	$115, (%rax)
	subq	%r9, %rdx
	cmpb	(%rdx,%rcx), %bpl
	jne	.L19
.L21:
	movb	$112, (%rax)
	cmpl	%edi, %r10d
	jle	.L19
	movslq	%edi, %rdx
	cmpb	$114, (%rbx,%rdx)
	jne	.L19
	movb	$114, (%rax)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%rax, %rdx
	movb	$114, (%rax)
	subq	%r9, %rdx
	cmpb	$114, (%rdx,%rcx)
	jne	.L19
.L20:
	movb	$115, (%rax)
	cmpl	%edi, %r10d
	jle	.L19
	movslq	%edi, %rdx
	cmpb	$112, (%rbx,%rdx)
	jne	.L19
	movb	$112, (%rax)
	jmp	.L19
.L34:
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	jmp	.L2
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 100005
t:
	.zero	100005
	.globl	T
	.align 32
	.type	T, @object
	.size	T, 100005
T:
	.zero	100005
	.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:

/*
 * main.c
 *
 *  Created on: 2019/12/29
 *      Author: family
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MAX(a,b) (a > b ? a : b)
#define MIN(a,b) (a > b ? b : a)
typedef long long int ll;

char T[100005] = {0};
char t[100005] = {0};

int main()
{
	int N = 0, K = 0;
	int R = 0, S = 0, P = 0;
	int i = 0, len = 0;
	scanf("%d %d", &N, &K);
	scanf("%d %d %d", &R, &S, &P);
	scanf("%s", T);
	len = strlen(T);

	for (i = 0; i < len; i++) {
		switch(T[i]) {
		case 'r': t[i] = 'p'; break;
		case 's': t[i] = 'r'; break;
		case 'p': t[i] = 's'; break;
		}

		if (i >= K) {
			//printf("x i=%d %c ", i, t[i]);
			if (t[i] == t[i-K]) {
				switch(t[i]) {
				case 'p': t[i] = 'r'; break;
				case 'r': t[i] = 's'; break;
				case 's': t[i] = 'p'; break;
				}
				//printf("xx i=%d %c ", i, t[i]);
				if ((i+K) < len) {
					switch(t[i]) {
					case 'r':
						if (T[i+K] == 's') {
							t[i] = 's';
						}
						break;
					case 's':
						if (T[i+K] == 'p') {
							t[i] = 'p';
						}
						break;
					case 'p':
						if (T[i+K] == 'r') {
							t[i] = 'r';
						}
						break;
					}
					//printf("xxx i=%d %c ", i, t[i]);
				}
			}
		}
		//printf("%c\n", t[i]);
	}
	int g = 0, c = 0, p = 0;
	for (i = 0; i < len; i++) {
		//printf("%c", t[i]);
		switch(t[i]) {
		case 'r':
			if (T[i] == 's') {
				g++;
			}
			break;
		case 's':
			if (T[i] == 'p') {
				c++;
			}
			break;
		case 'p':
			if (T[i] == 'r') {
				p++;
			}
			break;
		}
	}
	printf("%d\n", (g*R) + (c*S) + (p*P));
    return 0;
}

30 6
325 234 123
rspsspspsrpspsppprpsprpssprpsr
 30 6
42 234 123
rspsspspsrpspsppprpsprpssprpsr
 30 6
30 234 123
rspsspspsrpspsppprpsprpssprpsr
 30 6
30 234 123
rspsspspsrpspsppprpsprpssprpss
 30 6
30 234 165
rspsspspsrpspsppprpsprpssprpss
 30 9
30 234 165
rspsspspsrpspsppprpsprpssprpss
 30 9
30 234 88
rspsspspsrpspsppprpsprpssprpss
 30 9
30 234 88
rrpsspspsrpspsppprpsprpssprpss
 30 9
30 234 21
rrpsspspsrpspsppprpsprpssprpss
 30 3
30 234 21
rrpsspspsrpspsppprpsprpssprpss

6328
 3498
 3378
 3255
 3465
 3135
 2904
 2962
 2694
 2502

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

```c
/*
 * main.c
 *
 *  Created on: 2019/12/29
 *      Author: family
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MAX(a,b) (a > b ? a : b)
#define MIN(a,b) (a > b ? b : a)
typedef long long int ll;

char T[100005] = {0};
char t[100005] = {0};

int main()
{
	int N = 0, K = 0;
	int R = 0, S = 0, P = 0;
	int i = 0, len = 0;
	scanf("%d %d", &N, &K);
	scanf("%d %d %d", &R, &S, &P);
	scanf("%s", T);
	len = strlen(T);

	for (i = 0; i < len; i++) {
		switch(T[i]) {
		case 'r': t[i] = 'p'; break;
		case 's': t[i] = 'r'; break;
		case 'p': t[i] = 's'; break;
		}

		if (i >= K) {
			//printf("x i=%d %c ", i, t[i]);
			if (t[i] == t[i-K]) {
				switch(t[i]) {
				case 'p': t[i] = 'r'; break;
				case 'r': t[i] = 's'; break;
				case 's': t[i] = 'p'; break;
				}
				//printf("xx i=%d %c ", i, t[i]);
				if ((i+K) < len) {
					switch(t[i]) {
					case 'r':
						if (T[i+K] == 's') {
							t[i] = 's';
						}
						break;
					case 's':
						if (T[i+K] == 'p') {
							t[i] = 'p';
						}
						break;
					case 'p':
						if (T[i+K] == 'r') {
							t[i] = 'r';
						}
						break;
					}
					//printf("xxx i=%d %c ", i, t[i]);
				}
			}
		}
		//printf("%c\n", t[i]);
	}
	int g = 0, c = 0, p = 0;
	for (i = 0; i < len; i++) {
		//printf("%c", t[i]);
		switch(t[i]) {
		case 'r':
			if (T[i] == 's') {
				g++;
			}
			break;
		case 's':
			if (T[i] == 'p') {
				c++;
			}
			break;
		case 'p':
			if (T[i] == 'r') {
				p++;
			}
			break;
		}
	}
	printf("%d\n", (g*R) + (c*S) + (p*P));
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	T
	.bss
	.align 32
	.type	T, @object
	.size	T, 100005
T:
	.zero	100005
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 100005
t:
	.zero	100005
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -12(%rbp)
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	T(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	T(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -12(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L2
.L16:
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L3
	cmpl	$115, %eax
	jg	.L4
	cmpl	$112, %eax
	je	.L5
	cmpl	$114, %eax
	jne	.L4
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$112, (%rax,%rdx)
	jmp	.L4
.L3:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$114, (%rax,%rdx)
	jmp	.L4
.L5:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$115, (%rax,%rdx)
	nop
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L6
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-44(%rbp), %ecx
	movl	-28(%rbp), %eax
	subl	%ecx, %eax
	cltq
	leaq	t(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	jne	.L6
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L7
	cmpl	$115, %eax
	jg	.L8
	cmpl	$112, %eax
	je	.L9
	cmpl	$114, %eax
	je	.L10
	jmp	.L8
.L9:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$114, (%rax,%rdx)
	jmp	.L8
.L10:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$115, (%rax,%rdx)
	jmp	.L8
.L7:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$112, (%rax,%rdx)
	nop
.L8:
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jle	.L6
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L11
	cmpl	$115, %eax
	jg	.L6
	cmpl	$112, %eax
	je	.L12
	cmpl	$114, %eax
	jne	.L6
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$115, %al
	jne	.L27
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$115, (%rax,%rdx)
	jmp	.L27
.L11:
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$112, %al
	jne	.L28
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$112, (%rax,%rdx)
	jmp	.L28
.L12:
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$114, %al
	jne	.L29
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$114, (%rax,%rdx)
	jmp	.L29
.L27:
	nop
	jmp	.L6
.L28:
	nop
	jmp	.L6
.L29:
	nop
.L6:
	addl	$1, -28(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L16
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L17
.L24:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L18
	cmpl	$115, %eax
	jg	.L19
	cmpl	$112, %eax
	je	.L20
	cmpl	$114, %eax
	jne	.L19
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$115, %al
	jne	.L30
	addl	$1, -24(%rbp)
	jmp	.L30
.L18:
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$112, %al
	jne	.L31
	addl	$1, -20(%rbp)
	jmp	.L31
.L20:
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$114, %al
	jne	.L32
	addl	$1, -16(%rbp)
	jmp	.L32
.L30:
	nop
	jmp	.L19
.L31:
	nop
	jmp	.L19
.L32:
	nop
.L19:
	addl	$1, -28(%rbp)
.L17:
	movl	-28(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L24
	movl	-40(%rbp), %eax
	imull	-24(%rbp), %eax
	movl	%eax, %edx
	movl	-36(%rbp), %eax
	imull	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-32(%rbp), %eax
	imull	-16(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	T
	.bss
	.align 32
	.type	T, @object
	.size	T, 100005
T:
	.zero	100005
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 100005
t:
	.zero	100005
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -12(%rbp)
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	T(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	T(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -12(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L2
.L16:
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L3
	cmpl	$115, %eax
	jg	.L4
	cmpl	$112, %eax
	je	.L5
	cmpl	$114, %eax
	jne	.L4
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$112, (%rax,%rdx)
	jmp	.L4
.L3:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$114, (%rax,%rdx)
	jmp	.L4
.L5:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$115, (%rax,%rdx)
	nop
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L6
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-44(%rbp), %ecx
	movl	-28(%rbp), %eax
	subl	%ecx, %eax
	cltq
	leaq	t(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	jne	.L6
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L7
	cmpl	$115, %eax
	jg	.L8
	cmpl	$112, %eax
	je	.L9
	cmpl	$114, %eax
	je	.L10
	jmp	.L8
.L9:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$114, (%rax,%rdx)
	jmp	.L8
.L10:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$115, (%rax,%rdx)
	jmp	.L8
.L7:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$112, (%rax,%rdx)
	nop
.L8:
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jle	.L6
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L11
	cmpl	$115, %eax
	jg	.L6
	cmpl	$112, %eax
	je	.L12
	cmpl	$114, %eax
	jne	.L6
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$115, %al
	jne	.L27
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$115, (%rax,%rdx)
	jmp	.L27
.L11:
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$112, %al
	jne	.L28
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$112, (%rax,%rdx)
	jmp	.L28
.L12:
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$114, %al
	jne	.L29
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$114, (%rax,%rdx)
	jmp	.L29
.L27:
	nop
	jmp	.L6
.L28:
	nop
	jmp	.L6
.L29:
	nop
.L6:
	addl	$1, -28(%rbp)
.L2:
	movl	-28(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L16
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L17
.L24:
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	cmpl	$115, %eax
	je	.L18
	cmpl	$115, %eax
	jg	.L19
	cmpl	$112, %eax
	je	.L20
	cmpl	$114, %eax
	jne	.L19
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$115, %al
	jne	.L30
	addl	$1, -24(%rbp)
	jmp	.L30
.L18:
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$112, %al
	jne	.L31
	addl	$1, -20(%rbp)
	jmp	.L31
.L20:
	movl	-28(%rbp), %eax
	cltq
	leaq	T(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$114, %al
	jne	.L32
	addl	$1, -16(%rbp)
	jmp	.L32
.L30:
	nop
	jmp	.L19
.L31:
	nop
	jmp	.L19
.L32:
	nop
.L19:
	addl	$1, -28(%rbp)
.L17:
	movl	-28(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jl	.L24
	movl	-40(%rbp), %eax
	imull	-24(%rbp), %eax
	movl	%eax, %edx
	movl	-36(%rbp), %eax
	imull	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-32(%rbp), %eax
	imull	-16(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
