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

```c
#include<stdio.h>
#include<string.h>

int main()
{
    int ans=0,n,k,r,s,p,i;
    scanf("%d %d %d %d %d",&n,&k,&r,&s,&p);
    char t[n];
    int a[n];
    scanf("%s",t);
    for(i=0;i<n;i++)
    {
        a[i]=0;
    }
    for(i=0;i<k;i++)
    {
        a[i]=1;
        if(t[i]=='r')
        ans += p;
        else if(t[i]=='p')
        ans += s;
        else if(t[i]=='s')
        ans += r;
    }
    for(i=k;i<n;i++)
    {
        if(t[i]=='r')
        {
            if(t[i-k]!='r')
            {   
                ans += p;
                a[i]=1;
            }
            if(t[i-k]=='r' && a[i-k]!=1)
            {
                ans += p;
                a[i]=1;
            }
        }
        else if(t[i]=='p')
        {
            if(t[i-k]!='p')
            {
                ans += s;
                a[i]=1;
            }
            if(t[i-k]=='p' && a[i-k]!=1)
            {
                ans += s;
                a[i]=1;
            }
        }
        else if(t[i]=='s')
        {
            if(t[i-k]!='s')
            { 
                ans += r;
                a[i]=1;
            }
            if(t[i-k]=='s' && a[i-k]!=1)
            {
                ans += r;
                a[i]=1;
            }
        }
    }
    printf("%d",ans);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -96(%rbp)
	leaq	-100(%rbp), %rdi
	leaq	-104(%rbp), %rsi
	leaq	-108(%rbp), %rcx
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -80(%rbp)
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -92(%rbp)
	jmp	.L8
.L9:
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -92(%rbp)
.L8:
	movl	-116(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L9
	movl	$0, -92(%rbp)
	jmp	.L10
.L14:
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	jne	.L11
	movl	-100(%rbp), %eax
	addl	%eax, -96(%rbp)
	jmp	.L12
.L11:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	jne	.L13
	movl	-104(%rbp), %eax
	addl	%eax, -96(%rbp)
	jmp	.L12
.L13:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	jne	.L12
	movl	-108(%rbp), %eax
	addl	%eax, -96(%rbp)
.L12:
	addl	$1, -92(%rbp)
.L10:
	movl	-112(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L14
	movl	-112(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L15
.L22:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	jne	.L16
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	je	.L17
	movl	-100(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L17:
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	jne	.L18
	movl	-112(%rbp), %ecx
	movl	-92(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1, %eax
	je	.L18
	movl	-100(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	jmp	.L18
.L16:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	jne	.L19
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	je	.L20
	movl	-104(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L20:
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	jne	.L18
	movl	-112(%rbp), %ecx
	movl	-92(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1, %eax
	je	.L18
	movl	-104(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	jmp	.L18
.L19:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	jne	.L18
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	je	.L21
	movl	-108(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L21:
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	jne	.L18
	movl	-112(%rbp), %ecx
	movl	-92(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1, %eax
	je	.L18
	movl	-108(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L18:
	addl	$1, -92(%rbp)
.L15:
	movl	-116(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L22
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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 %d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-52(%rbp), %rcx
	leaq	-56(%rbp), %rdx
	pushq	%rbx
	leaq	-60(%rbp), %rsi
	leaq	-44(%rbp), %r9
	leaq	-48(%rbp), %r8
	subq	$40, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rcx
	movq	%rsp, %rsi
	leaq	15(%rcx), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L39:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L39
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L40
.L4:
	leaq	15(,%rcx,4), %rax
	movq	%rsp, %rcx
	movq	%rsp, %rbx
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L40:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L41
.L7:
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsp, %r12
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %r13d
	testl	%r13d, %r13d
	jle	.L11
	movslq	%r13d, %rdx
	xorl	%esi, %esi
	movq	%r12, %rdi
	salq	$2, %rdx
	call	memset@PLT
.L11:
	movl	-56(%rbp), %r8d
	xorl	%edx, %edx
	testl	%r8d, %r8d
	jle	.L10
	movl	-52(%rbp), %r9d
	movl	-48(%rbp), %r11d
	movslq	%r8d, %rsi
	xorl	%eax, %eax
	movl	-44(%rbp), %r10d
	xorl	%edx, %edx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L12:
	cmpb	$112, %cl
	je	.L42
	leal	(%rdx,%r9), %edi
	cmpb	$115, %cl
	cmove	%edi, %edx
.L13:
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L10
.L15:
	movzbl	(%rbx,%rax), %ecx
	movl	$1, (%r12,%rax,4)
	cmpb	$114, %cl
	jne	.L12
	addq	$1, %rax
	addl	%r10d, %edx
	cmpq	%rsi, %rax
	jne	.L15
.L10:
	cmpl	%r13d, %r8d
	jge	.L16
	movslq	%r8d, %rcx
	leal	-1(%r13), %edi
	movl	-52(%rbp), %r11d
	movl	-48(%rbp), %r10d
	subl	%r8d, %edi
	movl	-44(%rbp), %r9d
	leaq	(%r12,%rcx,4), %rsi
	xorl	%eax, %eax
	leaq	(%rbx,%rcx), %r8
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L17:
	cmpb	$112, %cl
	je	.L43
	cmpb	$115, %cl
	je	.L44
.L19:
	leaq	1(%rax), %rcx
	addq	$4, %rsi
	cmpq	%rdi, %rax
	je	.L16
.L28:
	movq	%rcx, %rax
.L23:
	movzbl	(%r8,%rax), %ecx
	cmpb	$114, %cl
	jne	.L17
	movslq	%eax, %rcx
	cmpb	$114, (%rbx,%rcx)
	je	.L18
.L24:
	movl	$1, (%rsi)
	addl	%r9d, %edx
	leaq	1(%rax), %rcx
	addq	$4, %rsi
	cmpq	%rdi, %rax
	jne	.L28
.L16:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L45
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	addl	%r11d, %edx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L43:
	movslq	%eax, %rcx
	cmpb	$112, (%rbx,%rcx)
	je	.L21
.L25:
	movl	$1, (%rsi)
	addl	%r10d, %edx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L44:
	movslq	%eax, %rcx
	cmpb	$115, (%rbx,%rcx)
	je	.L22
.L26:
	movl	$1, (%rsi)
	addl	%r11d, %edx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	$1, (%r12,%rcx,4)
	jne	.L24
	jmp	.L19
.L21:
	cmpl	$1, (%r12,%rcx,4)
	jne	.L25
	jmp	.L19
.L22:
	cmpl	$1, (%r12,%rcx,4)
	jne	.L26
	jmp	.L19
.L41:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-52(%rbp), %rcx
	leaq	-56(%rbp), %rdx
	pushq	%rbx
	leaq	-60(%rbp), %rsi
	leaq	-44(%rbp), %r9
	leaq	-48(%rbp), %r8
	subq	$40, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rcx
	movq	%rsp, %rsi
	leaq	15(%rcx), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L39:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L39
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L40
.L4:
	leaq	15(,%rcx,4), %rax
	movq	%rsp, %rcx
	movq	%rsp, %rbx
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L40:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L41
.L7:
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsp, %r12
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %r13d
	testl	%r13d, %r13d
	jle	.L11
	movslq	%r13d, %rdx
	xorl	%esi, %esi
	movq	%r12, %rdi
	salq	$2, %rdx
	call	memset@PLT
.L11:
	movl	-56(%rbp), %r8d
	xorl	%edx, %edx
	testl	%r8d, %r8d
	jle	.L10
	movl	-52(%rbp), %r9d
	movl	-48(%rbp), %r11d
	movslq	%r8d, %rsi
	xorl	%eax, %eax
	movl	-44(%rbp), %r10d
	xorl	%edx, %edx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L12:
	cmpb	$112, %cl
	je	.L42
	leal	(%rdx,%r9), %edi
	cmpb	$115, %cl
	cmove	%edi, %edx
.L13:
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L10
.L15:
	movzbl	(%rbx,%rax), %ecx
	movl	$1, (%r12,%rax,4)
	cmpb	$114, %cl
	jne	.L12
	addq	$1, %rax
	addl	%r10d, %edx
	cmpq	%rsi, %rax
	jne	.L15
.L10:
	cmpl	%r13d, %r8d
	jge	.L16
	movslq	%r8d, %rcx
	leal	-1(%r13), %edi
	movl	-52(%rbp), %r11d
	movl	-48(%rbp), %r10d
	subl	%r8d, %edi
	movl	-44(%rbp), %r9d
	leaq	(%r12,%rcx,4), %rsi
	xorl	%eax, %eax
	leaq	(%rbx,%rcx), %r8
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L17:
	cmpb	$112, %cl
	je	.L43
	cmpb	$115, %cl
	je	.L44
.L19:
	leaq	1(%rax), %rcx
	addq	$4, %rsi
	cmpq	%rdi, %rax
	je	.L16
.L28:
	movq	%rcx, %rax
.L23:
	movzbl	(%r8,%rax), %ecx
	cmpb	$114, %cl
	jne	.L17
	movslq	%eax, %rcx
	cmpb	$114, (%rbx,%rcx)
	je	.L18
.L24:
	movl	$1, (%rsi)
	addl	%r9d, %edx
	leaq	1(%rax), %rcx
	addq	$4, %rsi
	cmpq	%rdi, %rax
	jne	.L28
.L16:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L45
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	addl	%r11d, %edx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L43:
	movslq	%eax, %rcx
	cmpb	$112, (%rbx,%rcx)
	je	.L21
.L25:
	movl	$1, (%rsi)
	addl	%r10d, %edx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L44:
	movslq	%eax, %rcx
	cmpb	$115, (%rbx,%rcx)
	je	.L22
.L26:
	movl	$1, (%rsi)
	addl	%r11d, %edx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	$1, (%r12,%rcx,4)
	jne	.L24
	jmp	.L19
.L21:
	cmpl	$1, (%r12,%rcx,4)
	jne	.L25
	jmp	.L19
.L22:
	cmpl	$1, (%r12,%rcx,4)
	jne	.L26
	jmp	.L19
.L41:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

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

int main()
{
    int ans=0,n,k,r,s,p,i;
    scanf("%d %d %d %d %d",&n,&k,&r,&s,&p);
    char t[n];
    int a[n];
    scanf("%s",t);
    for(i=0;i<n;i++)
    {
        a[i]=0;
    }
    for(i=0;i<k;i++)
    {
        a[i]=1;
        if(t[i]=='r')
        ans += p;
        else if(t[i]=='p')
        ans += s;
        else if(t[i]=='s')
        ans += r;
    }
    for(i=k;i<n;i++)
    {
        if(t[i]=='r')
        {
            if(t[i-k]!='r')
            {   
                ans += p;
                a[i]=1;
            }
            if(t[i-k]=='r' && a[i-k]!=1)
            {
                ans += p;
                a[i]=1;
            }
        }
        else if(t[i]=='p')
        {
            if(t[i-k]!='p')
            {
                ans += s;
                a[i]=1;
            }
            if(t[i-k]=='p' && a[i-k]!=1)
            {
                ans += s;
                a[i]=1;
            }
        }
        else if(t[i]=='s')
        {
            if(t[i-k]!='s')
            { 
                ans += r;
                a[i]=1;
            }
            if(t[i-k]=='s' && a[i-k]!=1)
            {
                ans += r;
                a[i]=1;
            }
        }
    }
    printf("%d",ans);
    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
#include<stdio.h>
#include<string.h>

int main()
{
    int ans=0,n,k,r,s,p,i;
    scanf("%d %d %d %d %d",&n,&k,&r,&s,&p);
    char t[n];
    int a[n];
    scanf("%s",t);
    for(i=0;i<n;i++)
    {
        a[i]=0;
    }
    for(i=0;i<k;i++)
    {
        a[i]=1;
        if(t[i]=='r')
        ans += p;
        else if(t[i]=='p')
        ans += s;
        else if(t[i]=='s')
        ans += r;
    }
    for(i=k;i<n;i++)
    {
        if(t[i]=='r')
        {
            if(t[i-k]!='r')
            {   
                ans += p;
                a[i]=1;
            }
            if(t[i-k]=='r' && a[i-k]!=1)
            {
                ans += p;
                a[i]=1;
            }
        }
        else if(t[i]=='p')
        {
            if(t[i-k]!='p')
            {
                ans += s;
                a[i]=1;
            }
            if(t[i-k]=='p' && a[i-k]!=1)
            {
                ans += s;
                a[i]=1;
            }
        }
        else if(t[i]=='s')
        {
            if(t[i-k]!='s')
            { 
                ans += r;
                a[i]=1;
            }
            if(t[i-k]=='s' && a[i-k]!=1)
            {
                ans += r;
                a[i]=1;
            }
        }
    }
    printf("%d",ans);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -96(%rbp)
	leaq	-100(%rbp), %rdi
	leaq	-104(%rbp), %rsi
	leaq	-108(%rbp), %rcx
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -80(%rbp)
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -92(%rbp)
	jmp	.L8
.L9:
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -92(%rbp)
.L8:
	movl	-116(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L9
	movl	$0, -92(%rbp)
	jmp	.L10
.L14:
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	jne	.L11
	movl	-100(%rbp), %eax
	addl	%eax, -96(%rbp)
	jmp	.L12
.L11:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	jne	.L13
	movl	-104(%rbp), %eax
	addl	%eax, -96(%rbp)
	jmp	.L12
.L13:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	jne	.L12
	movl	-108(%rbp), %eax
	addl	%eax, -96(%rbp)
.L12:
	addl	$1, -92(%rbp)
.L10:
	movl	-112(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L14
	movl	-112(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L15
.L22:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	jne	.L16
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	je	.L17
	movl	-100(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L17:
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	jne	.L18
	movl	-112(%rbp), %ecx
	movl	-92(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1, %eax
	je	.L18
	movl	-100(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	jmp	.L18
.L16:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	jne	.L19
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	je	.L20
	movl	-104(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L20:
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	jne	.L18
	movl	-112(%rbp), %ecx
	movl	-92(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1, %eax
	je	.L18
	movl	-104(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	jmp	.L18
.L19:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	jne	.L18
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	je	.L21
	movl	-108(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L21:
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	jne	.L18
	movl	-112(%rbp), %ecx
	movl	-92(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1, %eax
	je	.L18
	movl	-108(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L18:
	addl	$1, -92(%rbp)
.L15:
	movl	-116(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L22
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -96(%rbp)
	leaq	-100(%rbp), %rdi
	leaq	-104(%rbp), %rsi
	leaq	-108(%rbp), %rcx
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -80(%rbp)
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -92(%rbp)
	jmp	.L8
.L9:
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -92(%rbp)
.L8:
	movl	-116(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L9
	movl	$0, -92(%rbp)
	jmp	.L10
.L14:
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	jne	.L11
	movl	-100(%rbp), %eax
	addl	%eax, -96(%rbp)
	jmp	.L12
.L11:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	jne	.L13
	movl	-104(%rbp), %eax
	addl	%eax, -96(%rbp)
	jmp	.L12
.L13:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	jne	.L12
	movl	-108(%rbp), %eax
	addl	%eax, -96(%rbp)
.L12:
	addl	$1, -92(%rbp)
.L10:
	movl	-112(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L14
	movl	-112(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L15
.L22:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	jne	.L16
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	je	.L17
	movl	-100(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L17:
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$114, %al
	jne	.L18
	movl	-112(%rbp), %ecx
	movl	-92(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1, %eax
	je	.L18
	movl	-100(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	jmp	.L18
.L16:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	jne	.L19
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	je	.L20
	movl	-104(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L20:
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$112, %al
	jne	.L18
	movl	-112(%rbp), %ecx
	movl	-92(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1, %eax
	je	.L18
	movl	-104(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	jmp	.L18
.L19:
	movq	-80(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	jne	.L18
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	je	.L21
	movl	-108(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L21:
	movl	-112(%rbp), %edx
	movl	-92(%rbp), %eax
	subl	%edx, %eax
	movq	-80(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$115, %al
	jne	.L18
	movl	-112(%rbp), %ecx
	movl	-92(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1, %eax
	je	.L18
	movl	-108(%rbp), %eax
	addl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L18:
	addl	$1, -92(%rbp)
.L15:
	movl	-116(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L22
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
