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>

#define N 100000

int main() {
	static char t[N + 1];
	int n, k, r, s, p, x, i, j, ans;

	scanf("%d%d%d%d%d%s", &n, &k, &r, &s, &p, t);
	ans = 0;
	for (x = 0; x < k; x++)
		for (i = x; i < n; ) {
			j = i + k;
			while (j < n && t[j] == t[i])
				j += k;
			ans += ((j - i) / k + 1) / 2 * (t[i] == 's' ? r : t[i] == 'p' ? s : p);
			i = j;
		}
	printf("%d\n", ans);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d%s"
.LC1:
	.string	"%d\n"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %r8
	leaq	-32(%rbp), %rdi
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	subq	$8, %rsp
	leaq	t.0(%rip), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	$0, -12(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L2
.L12:
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L3
.L11:
	movl	-40(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -16(%rbp)
	jmp	.L4
.L6:
	movl	-40(%rbp), %eax
	addl	%eax, -16(%rbp)
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jge	.L5
	movl	-16(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	je	.L6
.L5:
	movl	-16(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	-40(%rbp), %esi
	cltd
	idivl	%esi
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$115, %al
	je	.L7
	movl	-20(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$112, %al
	jne	.L8
	movl	-32(%rbp), %eax
	jmp	.L10
.L8:
	movl	-28(%rbp), %eax
	jmp	.L10
.L7:
	movl	-36(%rbp), %eax
.L10:
	imull	%ecx, %eax
	addl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
.L3:
	movl	-44(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L11
	addl	$1, -24(%rbp)
.L2:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L12
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.local	t.0
	.comm	t.0,100001,32
	.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%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	t.0(%rip), %rbx
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	leaq	12(%rsp), %rcx
	leaq	4(%rsp), %rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 88
	pushq	%rbx
	.cfi_def_cfa_offset 96
	leaq	36(%rsp), %r9
	leaq	32(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	popq	%rax
	.cfi_def_cfa_offset 88
	popq	%rdx
	.cfi_def_cfa_offset 80
	testl	%r12d, %r12d
	jle	.L27
	movl	4(%rsp), %ecx
	movl	12(%rsp), %r10d
	movl	20(%rsp), %edi
	movl	16(%rsp), %r9d
	testl	%ecx, %ecx
	jle	.L27
	cmpl	%ecx, %r12d
	movl	%ecx, %r11d
	cmovle	%r12d, %r11d
	xorl	%r8d, %r8d
	xorl	%r13d, %r13d
	cmpl	$1, %r12d
	jne	.L49
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%r13d, %ebp
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%ebp, %rax
	leal	1(%rbp), %edx
	movzbl	(%rbx,%rax), %esi
	cmpl	%ecx, %edx
	jge	.L12
	addq	%rbx, %rax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L51:
	addl	$1, %edx
	addq	$1, %rax
	cmpl	%edx, %ecx
	je	.L50
.L14:
	cmpb	%sil, 1(%rax)
	je	.L51
	movl	%edx, %eax
	subl	%ebp, %eax
	leal	1(%rax), %ebp
	movl	%ebp, %eax
	shrl	$31, %eax
	addl	%ebp, %eax
	movl	%edx, %ebp
	movl	%r10d, %edx
	sarl	%eax
	cmpb	$115, %sil
	je	.L17
.L15:
	cmpb	$112, %sil
	movl	%r9d, %edx
	cmovne	%edi, %edx
.L17:
	imull	%edx, %eax
	addl	%eax, %r8d
	cmpl	%ebp, %ecx
	jg	.L18
	addl	$1, %r13d
	cmpl	%r13d, %r11d
	jg	.L19
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L50:
	.cfi_restore_state
	movl	%ecx, %eax
	subl	%ebp, %eax
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, %eax
	cmpb	$115, %sil
	je	.L53
	movl	%ecx, %ebp
	jmp	.L15
.L53:
	imull	%r10d, %edx
	addl	$1, %r13d
	addl	%edx, %r8d
	cmpl	%r13d, %r11d
	jg	.L19
	jmp	.L2
.L12:
	cmpb	$115, %sil
	je	.L54
	movl	%edx, %ebp
	movl	$1, %eax
	jmp	.L15
.L27:
	xorl	%r8d, %r8d
	jmp	.L2
.L54:
	addl	$1, %r13d
	addl	%r10d, %r8d
	cmpl	%r13d, %r11d
	jg	.L19
	jmp	.L2
.L49:
	xorl	%r14d, %r14d
	movslq	%r12d, %r13
.L11:
	movl	%r14d, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%edx, %rax
	leal	(%r12,%rdx), %esi
	movzbl	(%rbx,%rax), %ebp
	movslq	%esi, %rax
	addq	%rbx, %rax
	cmpl	%ecx, %esi
	jl	.L7
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L8:
	addl	%r12d, %esi
	addq	%r13, %rax
	cmpl	%ecx, %esi
	jge	.L56
.L7:
	cmpb	%bpl, (%rax)
	je	.L8
	movl	%esi, %eax
	subl	%edx, %eax
	cltd
	idivl	%r12d
	leal	1(%rax), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	movl	%esi, %edx
	sarl	%eax
	cmpb	$115, %bpl
	je	.L28
.L24:
	cmpb	$112, %bpl
	movl	%r9d, %ebp
	cmovne	%edi, %ebp
.L9:
	imull	%ebp, %eax
	addl	%eax, %r8d
	cmpl	%esi, %ecx
	jg	.L10
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L56:
	movl	%esi, %eax
	subl	%edx, %eax
	cltd
	idivl	%r12d
	leal	1(%rax), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	movl	%esi, %edx
	sarl	%eax
.L6:
	cmpb	$115, %bpl
	jne	.L24
	imull	%r10d, %eax
	addl	%eax, %r8d
.L23:
	addl	$1, %r14d
	cmpl	%r11d, %r14d
	jl	.L11
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L28:
	movl	%r10d, %ebp
	jmp	.L9
.L55:
	movl	%esi, %edx
	movl	$1, %eax
	jmp	.L6
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.local	t.0
	.comm	t.0,100001,32
	.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%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	t.0(%rip), %rbx
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	leaq	12(%rsp), %rcx
	leaq	4(%rsp), %rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 88
	pushq	%rbx
	.cfi_def_cfa_offset 96
	leaq	36(%rsp), %r9
	leaq	32(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	popq	%rax
	.cfi_def_cfa_offset 88
	popq	%rdx
	.cfi_def_cfa_offset 80
	testl	%r12d, %r12d
	jle	.L27
	movl	4(%rsp), %ecx
	movl	12(%rsp), %r10d
	movl	20(%rsp), %edi
	movl	16(%rsp), %r9d
	testl	%ecx, %ecx
	jle	.L27
	cmpl	%ecx, %r12d
	movl	%ecx, %r11d
	cmovle	%r12d, %r11d
	xorl	%r8d, %r8d
	xorl	%r13d, %r13d
	cmpl	$1, %r12d
	jne	.L49
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%r13d, %ebp
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%ebp, %rax
	leal	1(%rbp), %edx
	movzbl	(%rbx,%rax), %esi
	cmpl	%ecx, %edx
	jge	.L12
	addq	%rbx, %rax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L51:
	addl	$1, %edx
	addq	$1, %rax
	cmpl	%edx, %ecx
	je	.L50
.L14:
	cmpb	%sil, 1(%rax)
	je	.L51
	movl	%edx, %eax
	subl	%ebp, %eax
	leal	1(%rax), %ebp
	movl	%ebp, %eax
	shrl	$31, %eax
	addl	%ebp, %eax
	movl	%edx, %ebp
	movl	%r10d, %edx
	sarl	%eax
	cmpb	$115, %sil
	je	.L17
.L15:
	cmpb	$112, %sil
	movl	%r9d, %edx
	cmovne	%edi, %edx
.L17:
	imull	%edx, %eax
	addl	%eax, %r8d
	cmpl	%ebp, %ecx
	jg	.L18
	addl	$1, %r13d
	cmpl	%r13d, %r11d
	jg	.L19
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L50:
	.cfi_restore_state
	movl	%ecx, %eax
	subl	%ebp, %eax
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, %eax
	cmpb	$115, %sil
	je	.L53
	movl	%ecx, %ebp
	jmp	.L15
.L53:
	imull	%r10d, %edx
	addl	$1, %r13d
	addl	%edx, %r8d
	cmpl	%r13d, %r11d
	jg	.L19
	jmp	.L2
.L12:
	cmpb	$115, %sil
	je	.L54
	movl	%edx, %ebp
	movl	$1, %eax
	jmp	.L15
.L27:
	xorl	%r8d, %r8d
	jmp	.L2
.L54:
	addl	$1, %r13d
	addl	%r10d, %r8d
	cmpl	%r13d, %r11d
	jg	.L19
	jmp	.L2
.L49:
	xorl	%r14d, %r14d
	movslq	%r12d, %r13
.L11:
	movl	%r14d, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%edx, %rax
	leal	(%r12,%rdx), %esi
	movzbl	(%rbx,%rax), %ebp
	movslq	%esi, %rax
	addq	%rbx, %rax
	cmpl	%ecx, %esi
	jl	.L7
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L8:
	addl	%r12d, %esi
	addq	%r13, %rax
	cmpl	%ecx, %esi
	jge	.L56
.L7:
	cmpb	%bpl, (%rax)
	je	.L8
	movl	%esi, %eax
	subl	%edx, %eax
	cltd
	idivl	%r12d
	leal	1(%rax), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	movl	%esi, %edx
	sarl	%eax
	cmpb	$115, %bpl
	je	.L28
.L24:
	cmpb	$112, %bpl
	movl	%r9d, %ebp
	cmovne	%edi, %ebp
.L9:
	imull	%ebp, %eax
	addl	%eax, %r8d
	cmpl	%esi, %ecx
	jg	.L10
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L56:
	movl	%esi, %eax
	subl	%edx, %eax
	cltd
	idivl	%r12d
	leal	1(%rax), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	movl	%esi, %edx
	sarl	%eax
.L6:
	cmpb	$115, %bpl
	jne	.L24
	imull	%r10d, %eax
	addl	%eax, %r8d
.L23:
	addl	$1, %r14d
	cmpl	%r11d, %r14d
	jl	.L11
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L28:
	movl	%r10d, %ebp
	jmp	.L9
.L55:
	movl	%esi, %edx
	movl	$1, %eax
	jmp	.L6
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.local	t.0
	.comm	t.0,100001,32
	.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>

#define N 100000

int main() {
	static char t[N + 1];
	int n, k, r, s, p, x, i, j, ans;

	scanf("%d%d%d%d%d%s", &n, &k, &r, &s, &p, t);
	ans = 0;
	for (x = 0; x < k; x++)
		for (i = x; i < n; ) {
			j = i + k;
			while (j < n && t[j] == t[i])
				j += k;
			ans += ((j - i) / k + 1) / 2 * (t[i] == 's' ? r : t[i] == 'p' ? s : p);
			i = j;
		}
	printf("%d\n", 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>

#define N 100000

int main() {
	static char t[N + 1];
	int n, k, r, s, p, x, i, j, ans;

	scanf("%d%d%d%d%d%s", &n, &k, &r, &s, &p, t);
	ans = 0;
	for (x = 0; x < k; x++)
		for (i = x; i < n; ) {
			j = i + k;
			while (j < n && t[j] == t[i])
				j += k;
			ans += ((j - i) / k + 1) / 2 * (t[i] == 's' ? r : t[i] == 'p' ? s : p);
			i = j;
		}
	printf("%d\n", ans);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d%s"
.LC1:
	.string	"%d\n"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %r8
	leaq	-32(%rbp), %rdi
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	subq	$8, %rsp
	leaq	t.0(%rip), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	$0, -12(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L2
.L12:
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L3
.L11:
	movl	-40(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -16(%rbp)
	jmp	.L4
.L6:
	movl	-40(%rbp), %eax
	addl	%eax, -16(%rbp)
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jge	.L5
	movl	-16(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	je	.L6
.L5:
	movl	-16(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	-40(%rbp), %esi
	cltd
	idivl	%esi
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$115, %al
	je	.L7
	movl	-20(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$112, %al
	jne	.L8
	movl	-32(%rbp), %eax
	jmp	.L10
.L8:
	movl	-28(%rbp), %eax
	jmp	.L10
.L7:
	movl	-36(%rbp), %eax
.L10:
	imull	%ecx, %eax
	addl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
.L3:
	movl	-44(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L11
	addl	$1, -24(%rbp)
.L2:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L12
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.local	t.0
	.comm	t.0,100001,32
	.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%s"
.LC1:
	.string	"%d\n"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %r8
	leaq	-32(%rbp), %rdi
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	subq	$8, %rsp
	leaq	t.0(%rip), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	$0, -12(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L2
.L12:
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L3
.L11:
	movl	-40(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -16(%rbp)
	jmp	.L4
.L6:
	movl	-40(%rbp), %eax
	addl	%eax, -16(%rbp)
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jge	.L5
	movl	-16(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	je	.L6
.L5:
	movl	-16(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	-40(%rbp), %esi
	cltd
	idivl	%esi
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$115, %al
	je	.L7
	movl	-20(%rbp), %eax
	cltq
	leaq	t.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$112, %al
	jne	.L8
	movl	-32(%rbp), %eax
	jmp	.L10
.L8:
	movl	-28(%rbp), %eax
	jmp	.L10
.L7:
	movl	-36(%rbp), %eax
.L10:
	imull	%ecx, %eax
	addl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
.L3:
	movl	-44(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L11
	addl	$1, -24(%rbp)
.L2:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L12
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.local	t.0
	.comm	t.0,100001,32
	.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:
