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>

int main()
{
	int N, K, C;
	char S[200001];
	scanf("%d %d %d", &N, &K, &C);
	scanf("%s", S);
	
	int i, k, dp[200002] = {};
	for (i = N, k = N * 2 + 1, dp[N+1] = 0; i >= 1; i--) {
		if (S[i-1] == 'o' && i + C < k) {
			dp[i] = dp[i+1] + 1;
			k = i;
		} else dp[i] = dp[i+1];
	}
	if (dp[1] > K) return 0;

	for (i = 1; i <= N; i++) {
		if (dp[i] > dp[i+1]) {
			printf("%d\n", i);
			i += C;
		} else if (S[i-1] == 'o') {
			for (k = i; k <= N && dp[k+1] == dp[i]; k++);
			i = (k > i + C)? k: i + C;
		} 
	}
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.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
	leaq	-999424(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1000044(%rbp), %rcx
	leaq	-1000048(%rbp), %rdx
	leaq	-1000052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-200016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1000032(%rbp), %rax
	movl	$800008, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	-1000052(%rbp), %eax
	movl	%eax, -1000040(%rbp)
	movl	-1000052(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -1000036(%rbp)
	movl	-1000052(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$0, -1000032(%rbp,%rax,4)
	jmp	.L2
.L5:
	movl	-1000040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L3
	movl	-1000044(%rbp), %edx
	movl	-1000040(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -1000036(%rbp)
	jle	.L3
	movl	-1000040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1000040(%rbp), %eax
	cltq
	movl	%edx, -1000032(%rbp,%rax,4)
	movl	-1000040(%rbp), %eax
	movl	%eax, -1000036(%rbp)
	jmp	.L4
.L3:
	movl	-1000040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %edx
	movl	-1000040(%rbp), %eax
	cltq
	movl	%edx, -1000032(%rbp,%rax,4)
.L4:
	subl	$1, -1000040(%rbp)
.L2:
	cmpl	$0, -1000040(%rbp)
	jg	.L5
	movl	-1000028(%rbp), %edx
	movl	-1000048(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	$0, %eax
	jmp	.L15
.L6:
	movl	$1, -1000040(%rbp)
	jmp	.L8
.L14:
	movl	-1000040(%rbp), %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %edx
	movl	-1000040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	-1000040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-1000044(%rbp), %eax
	addl	%eax, -1000040(%rbp)
	jmp	.L10
.L9:
	movl	-1000040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L10
	movl	-1000040(%rbp), %eax
	movl	%eax, -1000036(%rbp)
	jmp	.L11
.L13:
	addl	$1, -1000036(%rbp)
.L11:
	movl	-1000052(%rbp), %eax
	cmpl	%eax, -1000036(%rbp)
	jg	.L12
	movl	-1000036(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %edx
	movl	-1000040(%rbp), %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L13
.L12:
	movl	-1000044(%rbp), %edx
	movl	-1000040(%rbp), %eax
	addl	%eax, %edx
	movl	-1000036(%rbp), %eax
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	movl	%eax, -1000040(%rbp)
.L10:
	addl	$1, -1000040(%rbp)
.L8:
	movl	-1000052(%rbp), %eax
	cmpl	%eax, -1000040(%rbp)
	jle	.L14
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.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"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-999424(%rsp), %r11
	.cfi_def_cfa 11, 999456
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$624, %rsp
	.cfi_def_cfa_offset 1000080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1000040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	leaq	800032(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	$800008, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	movslq	%edx, %rax
	movl	12(%rsp), %r8d
	leal	1(%rdx,%rdx), %r9d
	leaq	800031(%rsp), %rsi
	movl	20(%rsp,%rax,4), %ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%ecx, 0(%rbp,%rax,4)
	subq	$1, %rax
	testl	%eax, %eax
	jle	.L25
.L4:
	cmpb	$111, (%rsi,%rax)
	jne	.L3
	leal	(%r8,%rax), %edi
	cmpl	%edi, %r9d
	jle	.L3
	addl	$1, %ecx
	movl	%eax, %r9d
	movl	%ecx, 0(%rbp,%rax,4)
	subq	$1, %rax
	testl	%eax, %eax
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	movl	20(%rsp), %eax
	movl	$1, %ebx
	leaq	.LC2(%rip), %r12
	cmpl	%eax, 8(%rsp)
	jge	.L11
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	leal	-1(%rbx), %eax
	cltq
	cmpb	$111, 800032(%rsp,%rax)
	je	.L26
	movl	%esi, %ebx
.L7:
	cmpl	%ebx, %edx
	jl	.L14
.L11:
	leal	1(%rbx), %esi
	movslq	%ebx, %rdi
	movslq	%esi, %rax
	movl	16(%rsp,%rdi,4), %ecx
	cmpl	16(%rsp,%rax,4), %ecx
	jle	.L6
	movl	%ebx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %r8d
	movl	4(%rsp), %edx
	leal	1(%rbx,%r8), %ebx
	cmpl	%ebx, %edx
	jge	.L11
.L14:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
.L12:
	movq	1000040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$1000048, %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
.L26:
	.cfi_restore_state
	leaq	0(%rbp,%rdi,4), %rsi
	movl	%ebx, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%eax, %edi
	addl	$1, %eax
	cmpl	4(%rsi), %ecx
	jne	.L28
	addq	$4, %rsi
	cmpl	%edx, %eax
	jle	.L8
.L9:
	addl	%r8d, %ebx
	cmpl	%eax, %ebx
	cmovl	%eax, %ebx
	addl	$1, %ebx
	jmp	.L7
.L28:
	movl	%edi, %eax
	jmp	.L9
.L2:
	cmpl	$0, 8(%rsp)
	jns	.L14
	jmp	.L12
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-999424(%rsp), %r11
	.cfi_def_cfa 11, 999456
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$624, %rsp
	.cfi_def_cfa_offset 1000080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1000040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	leaq	800032(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	$800008, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	movslq	%edx, %rax
	movl	12(%rsp), %r8d
	leal	1(%rdx,%rdx), %r9d
	leaq	800031(%rsp), %rsi
	movl	20(%rsp,%rax,4), %ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%ecx, 0(%rbp,%rax,4)
	subq	$1, %rax
	testl	%eax, %eax
	jle	.L25
.L4:
	cmpb	$111, (%rsi,%rax)
	jne	.L3
	leal	(%r8,%rax), %edi
	cmpl	%edi, %r9d
	jle	.L3
	addl	$1, %ecx
	movl	%eax, %r9d
	movl	%ecx, 0(%rbp,%rax,4)
	subq	$1, %rax
	testl	%eax, %eax
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	movl	20(%rsp), %eax
	movl	$1, %ebx
	leaq	.LC2(%rip), %r12
	cmpl	%eax, 8(%rsp)
	jge	.L11
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	leal	-1(%rbx), %eax
	cltq
	cmpb	$111, 800032(%rsp,%rax)
	je	.L26
	movl	%esi, %ebx
.L7:
	cmpl	%ebx, %edx
	jl	.L14
.L11:
	leal	1(%rbx), %esi
	movslq	%ebx, %rdi
	movslq	%esi, %rax
	movl	16(%rsp,%rdi,4), %ecx
	cmpl	16(%rsp,%rax,4), %ecx
	jle	.L6
	movl	%ebx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %r8d
	movl	4(%rsp), %edx
	leal	1(%rbx,%r8), %ebx
	cmpl	%ebx, %edx
	jge	.L11
.L14:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
.L12:
	movq	1000040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$1000048, %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
.L26:
	.cfi_restore_state
	leaq	0(%rbp,%rdi,4), %rsi
	movl	%ebx, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%eax, %edi
	addl	$1, %eax
	cmpl	4(%rsi), %ecx
	jne	.L28
	addq	$4, %rsi
	cmpl	%edx, %eax
	jle	.L8
.L9:
	addl	%r8d, %ebx
	cmpl	%eax, %ebx
	cmovl	%eax, %ebx
	addl	$1, %ebx
	jmp	.L7
.L28:
	movl	%edi, %eax
	jmp	.L9
.L2:
	cmpl	$0, 8(%rsp)
	jns	.L14
	jmp	.L12
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main()
{
	int N, K, C;
	char S[200001];
	scanf("%d %d %d", &N, &K, &C);
	scanf("%s", S);
	
	int i, k, dp[200002] = {};
	for (i = N, k = N * 2 + 1, dp[N+1] = 0; i >= 1; i--) {
		if (S[i-1] == 'o' && i + C < k) {
			dp[i] = dp[i+1] + 1;
			k = i;
		} else dp[i] = dp[i+1];
	}
	if (dp[1] > K) return 0;

	for (i = 1; i <= N; i++) {
		if (dp[i] > dp[i+1]) {
			printf("%d\n", i);
			i += C;
		} else if (S[i-1] == 'o') {
			for (k = i; k <= N && dp[k+1] == dp[i]; k++);
			i = (k > i + C)? k: i + C;
		} 
	}
	fflush(stdout);
	return 0;
}
11 3 1
ooxxxoxxxoo
 11 3 1
ooxxxooxxox
 11 3 1
xoxxooxxxoo
 16 4 3
ooxxoxoxxyoxoxxo
 16 4 3
oxxoxoxxxoxoxxoo
 11 3 1
xxxxoooxxoo
 16 4 3
ooxxoxoxxyoxxxoo
 11 3 1
xoxwnoxxxoo
 11 3 1
ooxxxonwxox
 11 3 1
xoxvopxxyoo

6
 10
 2
 11
16
 1
6
 5
7
 11
 2
6
 6
10
 2
5

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>

int main()
{
	int N, K, C;
	char S[200001];
	scanf("%d %d %d", &N, &K, &C);
	scanf("%s", S);
	
	int i, k, dp[200002] = {};
	for (i = N, k = N * 2 + 1, dp[N+1] = 0; i >= 1; i--) {
		if (S[i-1] == 'o' && i + C < k) {
			dp[i] = dp[i+1] + 1;
			k = i;
		} else dp[i] = dp[i+1];
	}
	if (dp[1] > K) return 0;

	for (i = 1; i <= N; i++) {
		if (dp[i] > dp[i+1]) {
			printf("%d\n", i);
			i += C;
		} else if (S[i-1] == 'o') {
			for (k = i; k <= N && dp[k+1] == dp[i]; k++);
			i = (k > i + C)? k: i + C;
		} 
	}
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.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
	leaq	-999424(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1000044(%rbp), %rcx
	leaq	-1000048(%rbp), %rdx
	leaq	-1000052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-200016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1000032(%rbp), %rax
	movl	$800008, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	-1000052(%rbp), %eax
	movl	%eax, -1000040(%rbp)
	movl	-1000052(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -1000036(%rbp)
	movl	-1000052(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$0, -1000032(%rbp,%rax,4)
	jmp	.L2
.L5:
	movl	-1000040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L3
	movl	-1000044(%rbp), %edx
	movl	-1000040(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -1000036(%rbp)
	jle	.L3
	movl	-1000040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1000040(%rbp), %eax
	cltq
	movl	%edx, -1000032(%rbp,%rax,4)
	movl	-1000040(%rbp), %eax
	movl	%eax, -1000036(%rbp)
	jmp	.L4
.L3:
	movl	-1000040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %edx
	movl	-1000040(%rbp), %eax
	cltq
	movl	%edx, -1000032(%rbp,%rax,4)
.L4:
	subl	$1, -1000040(%rbp)
.L2:
	cmpl	$0, -1000040(%rbp)
	jg	.L5
	movl	-1000028(%rbp), %edx
	movl	-1000048(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	$0, %eax
	jmp	.L15
.L6:
	movl	$1, -1000040(%rbp)
	jmp	.L8
.L14:
	movl	-1000040(%rbp), %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %edx
	movl	-1000040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	-1000040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-1000044(%rbp), %eax
	addl	%eax, -1000040(%rbp)
	jmp	.L10
.L9:
	movl	-1000040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L10
	movl	-1000040(%rbp), %eax
	movl	%eax, -1000036(%rbp)
	jmp	.L11
.L13:
	addl	$1, -1000036(%rbp)
.L11:
	movl	-1000052(%rbp), %eax
	cmpl	%eax, -1000036(%rbp)
	jg	.L12
	movl	-1000036(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %edx
	movl	-1000040(%rbp), %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L13
.L12:
	movl	-1000044(%rbp), %edx
	movl	-1000040(%rbp), %eax
	addl	%eax, %edx
	movl	-1000036(%rbp), %eax
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	movl	%eax, -1000040(%rbp)
.L10:
	addl	$1, -1000040(%rbp)
.L8:
	movl	-1000052(%rbp), %eax
	cmpl	%eax, -1000040(%rbp)
	jle	.L14
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.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"
.LC1:
	.string	"%s"
.LC2:
	.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
	leaq	-999424(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1000044(%rbp), %rcx
	leaq	-1000048(%rbp), %rdx
	leaq	-1000052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-200016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1000032(%rbp), %rax
	movl	$800008, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	-1000052(%rbp), %eax
	movl	%eax, -1000040(%rbp)
	movl	-1000052(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -1000036(%rbp)
	movl	-1000052(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$0, -1000032(%rbp,%rax,4)
	jmp	.L2
.L5:
	movl	-1000040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L3
	movl	-1000044(%rbp), %edx
	movl	-1000040(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -1000036(%rbp)
	jle	.L3
	movl	-1000040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1000040(%rbp), %eax
	cltq
	movl	%edx, -1000032(%rbp,%rax,4)
	movl	-1000040(%rbp), %eax
	movl	%eax, -1000036(%rbp)
	jmp	.L4
.L3:
	movl	-1000040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %edx
	movl	-1000040(%rbp), %eax
	cltq
	movl	%edx, -1000032(%rbp,%rax,4)
.L4:
	subl	$1, -1000040(%rbp)
.L2:
	cmpl	$0, -1000040(%rbp)
	jg	.L5
	movl	-1000028(%rbp), %edx
	movl	-1000048(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	$0, %eax
	jmp	.L15
.L6:
	movl	$1, -1000040(%rbp)
	jmp	.L8
.L14:
	movl	-1000040(%rbp), %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %edx
	movl	-1000040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	-1000040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-1000044(%rbp), %eax
	addl	%eax, -1000040(%rbp)
	jmp	.L10
.L9:
	movl	-1000040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L10
	movl	-1000040(%rbp), %eax
	movl	%eax, -1000036(%rbp)
	jmp	.L11
.L13:
	addl	$1, -1000036(%rbp)
.L11:
	movl	-1000052(%rbp), %eax
	cmpl	%eax, -1000036(%rbp)
	jg	.L12
	movl	-1000036(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %edx
	movl	-1000040(%rbp), %eax
	cltq
	movl	-1000032(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L13
.L12:
	movl	-1000044(%rbp), %edx
	movl	-1000040(%rbp), %eax
	addl	%eax, %edx
	movl	-1000036(%rbp), %eax
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	movl	%eax, -1000040(%rbp)
.L10:
	addl	$1, -1000040(%rbp)
.L8:
	movl	-1000052(%rbp), %eax
	cmpl	%eax, -1000040(%rbp)
	jle	.L14
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.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:
