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

```c
#include<stdio.h>

#define BUFSIZE (int)1e5+1 //10^5+1
#define BUFASCII 128

/// 与えられた手に勝つ手を返す関数。
char win_rsp(char hand){
    if(hand == 'r') return 'p';
    if(hand == 's') return 'r';
    if(hand == 'p') return 's';
    return '0';
}

int main(void){
    int N, K, R, S, P;
    char T[BUFSIZE];
    char showed[BUFSIZE]; // 出した手をメモする配列
    int i;
    int point[BUFASCII]; // 点数をメモする配列
    long long int ans = 0;


    scanf("%d %d", &N, &K);
    scanf("%d %d %d", &R, &S, &P);
    scanf("%s", T);

    // 文字を添字として使用。

    /*　？何故配列の添え字に文字を使用できるのか？について知らない場合読んで
    文字は数字と対応している
    printf("%c\n", 97); とするとアルファベット'a'が出力される
    10進数で'r' == 114, 's' == 115, 'p' == 112　である。
    詳しくはASCIIコードとか調べて分からなかったら教授に聞くといいかも
    */

    point['r'] = R;
    point['s'] = S;
    point['p'] = P;

    for(i = 0; i < N; i++){
        showed[i] = win_rsp(T[i]); // とりあえず勝つ手を出したい

        if(showed[i] == '0'){ // なんかミスってたら
            printf("error!\n");
            return 0;
        }

        if(i < K){ // K回目未満のとき
            ans += point[showed[i]];
        }else{ // K回目以上のとき
            if(showed[i] == showed[i-K]){ // K回前も同じ手を出していたら
                showed[i] = '0'; // K回前と違う手を出す
            }else{ // K回前に違う手を出していたら
                ans += point[showed[i]];
            }
        }
    }

    printf("%lld\n", ans);
    
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	win_rsp
	.type	win_rsp, @function
win_rsp:
.LFB23:
	.cfi_startproc
	endbr64
	movl	$112, %eax
	cmpb	$114, %dil
	je	.L1
	movl	$114, %eax
	cmpb	$115, %dil
	je	.L1
	cmpb	$112, %dil
	movl	$48, %eax
	movl	$115, %edx
	cmove	%edx, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	win_rsp, .-win_rsp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%s"
.LC3:
	.string	"error!"
.LC4:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196648
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3464, %rsp
	.cfi_def_cfa_offset 200112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200056(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	leaq	32(%rsp), %rbx
	call	__isoc99_scanf@PLT
	leaq	28(%rsp), %rcx
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	leaq	.LC2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rdi
	movl	20(%rsp), %ebp
	movl	24(%rsp), %r12d
	movl	28(%rsp), %r11d
	testl	%edi, %edi
	jle	.L16
	movl	16(%rsp), %r9d
	leaq	100048(%rsp), %rdx
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	leal	(%r9,%rdx), %r10d
	.p2align 4,,10
	.p2align 3
.L14:
	movzbl	(%rbx,%rax), %ecx
	cmpb	$114, %cl
	je	.L17
	cmpb	$115, %cl
	je	.L18
	cmpb	$112, %cl
	je	.L19
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L10:
	movq	200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$200072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movslq	%r11d, %rcx
	movl	$112, %esi
.L9:
	movb	%sil, (%rdx)
	cmpl	%eax, %r9d
	jg	.L13
	movl	%edx, %r13d
	subl	%r10d, %r13d
	movslq	%r13d, %r13
	cmpb	%sil, 100048(%rsp,%r13)
	je	.L23
.L13:
	addq	%rcx, %r8
.L12:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rax, %rdi
	jne	.L14
.L8:
	movq	%r8, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%ebp, %rcx
	movl	$114, %esi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	movb	$48, (%rdx)
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%r12d, %rcx
	movl	$115, %esi
	jmp	.L9
.L16:
	xorl	%r8d, %r8d
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	win_rsp
	.type	win_rsp, @function
win_rsp:
.LFB23:
	.cfi_startproc
	endbr64
	movl	$112, %eax
	cmpb	$114, %dil
	je	.L1
	movl	$114, %eax
	cmpb	$115, %dil
	je	.L1
	cmpb	$112, %dil
	movl	$48, %eax
	movl	$115, %edx
	cmove	%edx, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	win_rsp, .-win_rsp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%s"
.LC3:
	.string	"error!"
.LC4:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196648
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3464, %rsp
	.cfi_def_cfa_offset 200112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200056(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	leaq	32(%rsp), %rbx
	call	__isoc99_scanf@PLT
	leaq	28(%rsp), %rcx
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	leaq	.LC2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rdi
	movl	20(%rsp), %ebp
	movl	24(%rsp), %r12d
	movl	28(%rsp), %r11d
	testl	%edi, %edi
	jle	.L16
	movl	16(%rsp), %r9d
	leaq	100048(%rsp), %rdx
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	leal	(%r9,%rdx), %r10d
	.p2align 4,,10
	.p2align 3
.L14:
	movzbl	(%rbx,%rax), %ecx
	cmpb	$114, %cl
	je	.L17
	cmpb	$115, %cl
	je	.L18
	cmpb	$112, %cl
	je	.L19
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L10:
	movq	200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$200072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movslq	%r11d, %rcx
	movl	$112, %esi
.L9:
	movb	%sil, (%rdx)
	cmpl	%eax, %r9d
	jg	.L13
	movl	%edx, %r13d
	subl	%r10d, %r13d
	movslq	%r13d, %r13
	cmpb	%sil, 100048(%rsp,%r13)
	je	.L23
.L13:
	addq	%rcx, %r8
.L12:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rax, %rdi
	jne	.L14
.L8:
	movq	%r8, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%ebp, %rcx
	movl	$114, %esi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	movb	$48, (%rdx)
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%r12d, %rcx
	movl	$115, %esi
	jmp	.L9
.L16:
	xorl	%r8d, %r8d
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	win_rsp
	.type	win_rsp, @function
win_rsp:
.LFB23:
	.cfi_startproc
	endbr64
	movl	$112, %eax
	cmpb	$114, %dil
	je	.L1
	movl	$114, %eax
	cmpb	$115, %dil
	je	.L1
	cmpb	$112, %dil
	movl	$48, %eax
	movl	$115, %edx
	cmove	%edx, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	win_rsp, .-win_rsp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%s"
.LC3:
	.string	"error!"
.LC4:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196648
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3464, %rsp
	.cfi_def_cfa_offset 200112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200056(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	leaq	32(%rsp), %rbx
	call	__isoc99_scanf@PLT
	leaq	28(%rsp), %rcx
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	leaq	.LC2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rdi
	movl	20(%rsp), %ebp
	movl	24(%rsp), %r12d
	movl	28(%rsp), %r11d
	testl	%edi, %edi
	jle	.L16
	movl	16(%rsp), %r9d
	leaq	100048(%rsp), %rdx
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	leal	(%r9,%rdx), %r10d
	.p2align 4,,10
	.p2align 3
.L14:
	movzbl	(%rbx,%rax), %ecx
	cmpb	$114, %cl
	je	.L17
	cmpb	$115, %cl
	je	.L18
	cmpb	$112, %cl
	je	.L19
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L10:
	movq	200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$200072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movslq	%r11d, %rcx
	movl	$112, %esi
.L9:
	movb	%sil, (%rdx)
	cmpl	%eax, %r9d
	jg	.L13
	movl	%edx, %r13d
	subl	%r10d, %r13d
	movslq	%r13d, %r13
	cmpb	%sil, 100048(%rsp,%r13)
	je	.L23
.L13:
	addq	%rcx, %r8
.L12:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rax, %rdi
	jne	.L14
.L8:
	movq	%r8, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%ebp, %rcx
	movl	$114, %esi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	movb	$48, (%rdx)
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%r12d, %rcx
	movl	$115, %esi
	jmp	.L9
.L16:
	xorl	%r8d, %r8d
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
```
```c
#include<stdio.h>

#define BUFSIZE (int)1e5+1 //10^5+1
#define BUFASCII 128

/// 与えられた手に勝つ手を返す関数。
char win_rsp(char hand){
    if(hand == 'r') return 'p';
    if(hand == 's') return 'r';
    if(hand == 'p') return 's';
    return '0';
}

int main(void){
    int N, K, R, S, P;
    char T[BUFSIZE];
    char showed[BUFSIZE]; // 出した手をメモする配列
    int i;
    int point[BUFASCII]; // 点数をメモする配列
    long long int ans = 0;


    scanf("%d %d", &N, &K);
    scanf("%d %d %d", &R, &S, &P);
    scanf("%s", T);

    // 文字を添字として使用。

    /*　？何故配列の添え字に文字を使用できるのか？について知らない場合読んで
    文字は数字と対応している
    printf("%c\n", 97); とするとアルファベット'a'が出力される
    10進数で'r' == 114, 's' == 115, 'p' == 112　である。
    詳しくはASCIIコードとか調べて分からなかったら教授に聞くといいかも
    */

    point['r'] = R;
    point['s'] = S;
    point['p'] = P;

    for(i = 0; i < N; i++){
        showed[i] = win_rsp(T[i]); // とりあえず勝つ手を出したい

        if(showed[i] == '0'){ // なんかミスってたら
            printf("error!\n");
            return 0;
        }

        if(i < K){ // K回目未満のとき
            ans += point[showed[i]];
        }else{ // K回目以上のとき
            if(showed[i] == showed[i-K]){ // K回前も同じ手を出していたら
                showed[i] = '0'; // K回前と違う手を出す
            }else{ // K回前に違う手を出していたら
                ans += point[showed[i]];
            }
        }
    }

    printf("%lld\n", ans);
    
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

#define BUFSIZE (int)1e5+1 //10^5+1
#define BUFASCII 128

/// 与えられた手に勝つ手を返す関数。
char win_rsp(char hand){
    if(hand == 'r') return 'p';
    if(hand == 's') return 'r';
    if(hand == 'p') return 's';
    return '0';
}

int main(void){
    int N, K, R, S, P;
    char T[BUFSIZE];
    char showed[BUFSIZE]; // 出した手をメモする配列
    int i;
    int point[BUFASCII]; // 点数をメモする配列
    long long int ans = 0;


    scanf("%d %d", &N, &K);
    scanf("%d %d %d", &R, &S, &P);
    scanf("%s", T);

    // 文字を添字として使用。

    /*　？何故配列の添え字に文字を使用できるのか？について知らない場合読んで
    文字は数字と対応している
    printf("%c\n", 97); とするとアルファベット'a'が出力される
    10進数で'r' == 114, 's' == 115, 'p' == 112　である。
    詳しくはASCIIコードとか調べて分からなかったら教授に聞くといいかも
    */

    point['r'] = R;
    point['s'] = S;
    point['p'] = P;

    for(i = 0; i < N; i++){
        showed[i] = win_rsp(T[i]); // とりあえず勝つ手を出したい

        if(showed[i] == '0'){ // なんかミスってたら
            printf("error!\n");
            return 0;
        }

        if(i < K){ // K回目未満のとき
            ans += point[showed[i]];
        }else{ // K回目以上のとき
            if(showed[i] == showed[i-K]){ // K回前も同じ手を出していたら
                showed[i] = '0'; // K回前と違う手を出す
            }else{ // K回前に違う手を出していたら
                ans += point[showed[i]];
            }
        }
    }

    printf("%lld\n", ans);
    
    return 0;
}```

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.
Optimized Assembly Code:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

#define BUFSIZE (int)1e5+1 //10^5+1
#define BUFASCII 128

/// 与えられた手に勝つ手を返す関数。
char win_rsp(char hand){
    if(hand == 'r') return 'p';
    if(hand == 's') return 'r';
    if(hand == 'p') return 's';
    return '0';
}

int main(void){
    int N, K, R, S, P;
    char T[BUFSIZE];
    char showed[BUFSIZE]; // 出した手をメモする配列
    int i;
    int point[BUFASCII]; // 点数をメモする配列
    long long int ans = 0;


    scanf("%d %d", &N, &K);
    scanf("%d %d %d", &R, &S, &P);
    scanf("%s", T);

    // 文字を添字として使用。

    /*　？何故配列の添え字に文字を使用できるのか？について知らない場合読んで
    文字は数字と対応している
    printf("%c\n", 97); とするとアルファベット'a'が出力される
    10進数で'r' == 114, 's' == 115, 'p' == 112　である。
    詳しくはASCIIコードとか調べて分からなかったら教授に聞くといいかも
    */

    point['r'] = R;
    point['s'] = S;
    point['p'] = P;

    for(i = 0; i < N; i++){
        showed[i] = win_rsp(T[i]); // とりあえず勝つ手を出したい

        if(showed[i] == '0'){ // なんかミスってたら
            printf("error!\n");
            return 0;
        }

        if(i < K){ // K回目未満のとき
            ans += point[showed[i]];
        }else{ // K回目以上のとき
            if(showed[i] == showed[i-K]){ // K回前も同じ手を出していたら
                showed[i] = '0'; // K回前と違う手を出す
            }else{ // K回前に違う手を出していたら
                ans += point[showed[i]];
            }
        }
    }

    printf("%lld\n", ans);
    
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	win_rsp
	.type	win_rsp, @function
win_rsp:
.LFB23:
	.cfi_startproc
	endbr64
	movl	$112, %eax
	cmpb	$114, %dil
	je	.L1
	movl	$114, %eax
	cmpb	$115, %dil
	je	.L1
	cmpb	$112, %dil
	movl	$48, %eax
	movl	$115, %edx
	cmove	%edx, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	win_rsp, .-win_rsp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%s"
.LC3:
	.string	"error!"
.LC4:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196648
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3464, %rsp
	.cfi_def_cfa_offset 200112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200056(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	leaq	32(%rsp), %rbx
	call	__isoc99_scanf@PLT
	leaq	28(%rsp), %rcx
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	leaq	.LC2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rdi
	movl	20(%rsp), %ebp
	movl	24(%rsp), %r12d
	movl	28(%rsp), %r11d
	testl	%edi, %edi
	jle	.L16
	movl	16(%rsp), %r9d
	leaq	100048(%rsp), %rdx
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	leal	(%r9,%rdx), %r10d
	.p2align 4,,10
	.p2align 3
.L14:
	movzbl	(%rbx,%rax), %ecx
	cmpb	$114, %cl
	je	.L17
	cmpb	$115, %cl
	je	.L18
	cmpb	$112, %cl
	je	.L19
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L10:
	movq	200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$200072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movslq	%r11d, %rcx
	movl	$112, %esi
.L9:
	movb	%sil, (%rdx)
	cmpl	%eax, %r9d
	jg	.L13
	movl	%edx, %r13d
	subl	%r10d, %r13d
	movslq	%r13d, %r13
	cmpb	%sil, 100048(%rsp,%r13)
	je	.L23
.L13:
	addq	%rcx, %r8
.L12:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rax, %rdi
	jne	.L14
.L8:
	movq	%r8, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%ebp, %rcx
	movl	$114, %esi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	movb	$48, (%rdx)
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%r12d, %rcx
	movl	$115, %esi
	jmp	.L9
.L16:
	xorl	%r8d, %r8d
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	win_rsp
	.type	win_rsp, @function
win_rsp:
.LFB23:
	.cfi_startproc
	endbr64
	movl	$112, %eax
	cmpb	$114, %dil
	je	.L1
	movl	$114, %eax
	cmpb	$115, %dil
	je	.L1
	cmpb	$112, %dil
	movl	$48, %eax
	movl	$115, %edx
	cmove	%edx, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	win_rsp, .-win_rsp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%s"
.LC3:
	.string	"error!"
.LC4:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196648
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3464, %rsp
	.cfi_def_cfa_offset 200112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200056(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	leaq	32(%rsp), %rbx
	call	__isoc99_scanf@PLT
	leaq	28(%rsp), %rcx
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	leaq	.LC2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rdi
	movl	20(%rsp), %ebp
	movl	24(%rsp), %r12d
	movl	28(%rsp), %r11d
	testl	%edi, %edi
	jle	.L16
	movl	16(%rsp), %r9d
	leaq	100048(%rsp), %rdx
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	leal	(%r9,%rdx), %r10d
	.p2align 4,,10
	.p2align 3
.L14:
	movzbl	(%rbx,%rax), %ecx
	cmpb	$114, %cl
	je	.L17
	cmpb	$115, %cl
	je	.L18
	cmpb	$112, %cl
	je	.L19
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L10:
	movq	200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$200072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movslq	%r11d, %rcx
	movl	$112, %esi
.L9:
	movb	%sil, (%rdx)
	cmpl	%eax, %r9d
	jg	.L13
	movl	%edx, %r13d
	subl	%r10d, %r13d
	movslq	%r13d, %r13
	cmpb	%sil, 100048(%rsp,%r13)
	je	.L23
.L13:
	addq	%rcx, %r8
.L12:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rax, %rdi
	jne	.L14
.L8:
	movq	%r8, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%ebp, %rcx
	movl	$114, %esi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	movb	$48, (%rdx)
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%r12d, %rcx
	movl	$115, %esi
	jmp	.L9
.L16:
	xorl	%r8d, %r8d
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
```