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 n, m;
char d[128][12345];

int eSumLeft[12345], wSumRight[12345];

int main(void) {
	int i, j;
	int score = 999999999;
	int answer = 0;
	if (scanf("%d%d", &n, &m) != 2) return 1;
	for (i = 0; i < m; i++) {
		if (scanf("%12344s", d[i] + 1) != 1) return 1;
	}
	for (i = 1; i <= n; i++) {
		for (j = 0; j < m; j++) {
			if (d[j][i] == 'E') eSumLeft[i]++;
			if (d[j][i] == 'W') wSumRight[i]++;
		}
	}
	for (i = 1; i <= n; i++) eSumLeft[i] += eSumLeft[i - 1];
	for (i = n - 1; i >= 0; i--) wSumRight[i] += wSumRight[i + 1];
	for (i = 1; i <= n + 1; i++) {
		int candidate = eSumLeft[i - 1] + wSumRight[i];
		if (candidate < score) {
			score = candidate;
			answer = i;
		}
	}
	printf("%d %d\n", answer - 1, answer);
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 1580160
d:
	.zero	1580160
	.globl	eSumLeft
	.align 32
	.type	eSumLeft, @object
	.size	eSumLeft, 49380
eSumLeft:
	.zero	49380
	.globl	wSumRight
	.align 32
	.type	wSumRight, @object
	.size	wSumRight, 49380
wSumRight:
	.zero	49380
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%12344s"
.LC2:
	.string	"%d %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	$32, %rsp
	movl	$999999999, -12(%rbp)
	movl	$0, -8(%rbp)
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$0, -20(%rbp)
	jmp	.L4
.L6:
	movl	-20(%rbp), %eax
	cltq
	imulq	$12345, %rax, %rax
	leaq	d(%rip), %rdx
	addq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L5
	movl	$1, %eax
	jmp	.L3
.L5:
	addl	$1, -20(%rbp)
.L4:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L6
	movl	$1, -20(%rbp)
	jmp	.L7
.L12:
	movl	$0, -16(%rbp)
	jmp	.L8
.L11:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$12345, %rax, %rax
	addq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$69, %al
	jne	.L9
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L9:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$12345, %rax, %rax
	addq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$87, %al
	jne	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L10:
	addl	$1, -16(%rbp)
.L8:
	movl	m(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	addl	$1, -20(%rbp)
.L7:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L12
	movl	$1, -20(%rbp)
	jmp	.L13
.L14:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L13:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L14
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L15
.L16:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	subl	$1, -20(%rbp)
.L15:
	cmpl	$0, -20(%rbp)
	jns	.L16
	movl	$1, -20(%rbp)
	jmp	.L17
.L19:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L18
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -8(%rbp)
.L18:
	addl	$1, -20(%rbp)
.L17:
	movl	n(%rip), %eax
	addl	$1, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L19
	movl	-8(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L3:
	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"
.LC1:
	.string	"%12344s"
.LC2:
	.string	"%d %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
	xorl	%eax, %eax
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L5
	cmpl	$0, m(%rip)
	jle	.L4
	leaq	1+d(%rip), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L34:
	movl	m(%rip), %eax
	addl	$1, %ebp
	addq	$12345, %rbx
	cmpl	%ebp, %eax
	jle	.L33
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L34
.L5:
	movl	$1, %eax
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L33:
	.cfi_restore_state
	movl	n(%rip), %r9d
	testl	%r9d, %r9d
	jle	.L7
	leal	-1(%r9), %r10d
	testl	%eax, %eax
	jle	.L8
	leal	-1(%rax), %ecx
	leaq	4+wSumRight(%rip), %rsi
	imulq	$12345, %rcx, %rcx
	leaq	12346+d(%rip), %rax
	leal	-1(%r9), %edx
	leaq	-12345(%rax), %r8
	leaq	4+eSumLeft(%rip), %rdi
	movq	%rdx, %r10
	addq	%rax, %rcx
	leaq	4(%rsi), %rax
	leaq	(%rax,%rdx,4), %r11
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r8, %rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$87, %dl
	jne	.L11
	addl	$1, (%rsi)
.L11:
	addq	$12345, %rax
	cmpq	%rcx, %rax
	je	.L35
.L12:
	movzbl	(%rax), %edx
	cmpb	$69, %dl
	jne	.L10
	addq	$12345, %rax
	addl	$1, (%rdi)
	cmpq	%rcx, %rax
	jne	.L12
.L35:
	addq	$4, %rsi
	addq	$1, %rcx
	addq	$4, %rdi
	addq	$1, %r8
	cmpq	%r11, %rsi
	jne	.L9
.L8:
	leaq	4+eSumLeft(%rip), %rax
	movl	%r10d, %ecx
	movl	eSumLeft(%rip), %edx
	leaq	4(%rax), %rsi
	leaq	(%rsi,%rcx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L13:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rcx, %rax
	jne	.L13
	movslq	%r9d, %rcx
	leaq	wSumRight(%rip), %rdi
	movl	%r10d, %r10d
	leaq	(%rdi,%rcx,4), %rax
	leaq	-4(%rdi), %rsi
	subq	%r10, %rcx
	movl	(%rax), %edx
	leaq	(%rsi,%rcx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L15:
	addl	-4(%rax), %edx
	subq	$4, %rax
	movl	%edx, (%rax)
	cmpq	%rax, %rcx
	jne	.L15
.L18:
	movl	%r9d, %esi
	movl	$1, %eax
	xorl	%r9d, %r9d
	movl	$999999999, %ecx
	addq	$2, %rsi
	leaq	-4+eSumLeft(%rip), %r8
	.p2align 4,,10
	.p2align 3
.L17:
	movl	(%r8,%rax,4), %edx
	addl	(%rdi,%rax,4), %edx
	cmpl	%ecx, %edx
	jge	.L16
	movl	%eax, %r9d
	movl	%edx, %ecx
.L16:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L17
.L19:
	leal	-1(%r9), %edx
	movl	%r9d, %ecx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	movl	n(%rip), %r9d
	leal	-1(%r9), %r10d
	testl	%r9d, %r9d
	jg	.L8
.L7:
	leaq	wSumRight(%rip), %rdi
	testl	%r9d, %r9d
	jns	.L18
	xorl	%r9d, %r9d
	jmp	.L19
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	wSumRight
	.bss
	.align 32
	.type	wSumRight, @object
	.size	wSumRight, 49380
wSumRight:
	.zero	49380
	.globl	eSumLeft
	.align 32
	.type	eSumLeft, @object
	.size	eSumLeft, 49380
eSumLeft:
	.zero	49380
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 1580160
d:
	.zero	1580160
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%12344s"
.LC2:
	.string	"%d %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
	xorl	%eax, %eax
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L5
	cmpl	$0, m(%rip)
	jle	.L4
	leaq	1+d(%rip), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L34:
	movl	m(%rip), %eax
	addl	$1, %ebp
	addq	$12345, %rbx
	cmpl	%ebp, %eax
	jle	.L33
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L34
.L5:
	movl	$1, %eax
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L33:
	.cfi_restore_state
	movl	n(%rip), %r9d
	testl	%r9d, %r9d
	jle	.L7
	leal	-1(%r9), %r10d
	testl	%eax, %eax
	jle	.L8
	leal	-1(%rax), %ecx
	leaq	4+wSumRight(%rip), %rsi
	imulq	$12345, %rcx, %rcx
	leaq	12346+d(%rip), %rax
	leal	-1(%r9), %edx
	leaq	-12345(%rax), %r8
	leaq	4+eSumLeft(%rip), %rdi
	movq	%rdx, %r10
	addq	%rax, %rcx
	leaq	4(%rsi), %rax
	leaq	(%rax,%rdx,4), %r11
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r8, %rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$87, %dl
	jne	.L11
	addl	$1, (%rsi)
.L11:
	addq	$12345, %rax
	cmpq	%rcx, %rax
	je	.L35
.L12:
	movzbl	(%rax), %edx
	cmpb	$69, %dl
	jne	.L10
	addq	$12345, %rax
	addl	$1, (%rdi)
	cmpq	%rcx, %rax
	jne	.L12
.L35:
	addq	$4, %rsi
	addq	$1, %rcx
	addq	$4, %rdi
	addq	$1, %r8
	cmpq	%r11, %rsi
	jne	.L9
.L8:
	leaq	4+eSumLeft(%rip), %rax
	movl	%r10d, %ecx
	movl	eSumLeft(%rip), %edx
	leaq	4(%rax), %rsi
	leaq	(%rsi,%rcx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L13:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rcx, %rax
	jne	.L13
	movslq	%r9d, %rcx
	leaq	wSumRight(%rip), %rdi
	movl	%r10d, %r10d
	leaq	(%rdi,%rcx,4), %rax
	leaq	-4(%rdi), %rsi
	subq	%r10, %rcx
	movl	(%rax), %edx
	leaq	(%rsi,%rcx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L15:
	addl	-4(%rax), %edx
	subq	$4, %rax
	movl	%edx, (%rax)
	cmpq	%rax, %rcx
	jne	.L15
.L18:
	movl	%r9d, %esi
	movl	$1, %eax
	xorl	%r9d, %r9d
	movl	$999999999, %ecx
	addq	$2, %rsi
	leaq	-4+eSumLeft(%rip), %r8
	.p2align 4,,10
	.p2align 3
.L17:
	movl	(%r8,%rax,4), %edx
	addl	(%rdi,%rax,4), %edx
	cmpl	%ecx, %edx
	jge	.L16
	movl	%eax, %r9d
	movl	%edx, %ecx
.L16:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L17
.L19:
	leal	-1(%r9), %edx
	movl	%r9d, %ecx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	movl	n(%rip), %r9d
	leal	-1(%r9), %r10d
	testl	%r9d, %r9d
	jg	.L8
.L7:
	leaq	wSumRight(%rip), %rdi
	testl	%r9d, %r9d
	jns	.L18
	xorl	%r9d, %r9d
	jmp	.L19
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	wSumRight
	.bss
	.align 32
	.type	wSumRight, @object
	.size	wSumRight, 49380
wSumRight:
	.zero	49380
	.globl	eSumLeft
	.align 32
	.type	eSumLeft, @object
	.size	eSumLeft, 49380
eSumLeft:
	.zero	49380
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 1580160
d:
	.zero	1580160
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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 n, m;
char d[128][12345];

int eSumLeft[12345], wSumRight[12345];

int main(void) {
	int i, j;
	int score = 999999999;
	int answer = 0;
	if (scanf("%d%d", &n, &m) != 2) return 1;
	for (i = 0; i < m; i++) {
		if (scanf("%12344s", d[i] + 1) != 1) return 1;
	}
	for (i = 1; i <= n; i++) {
		for (j = 0; j < m; j++) {
			if (d[j][i] == 'E') eSumLeft[i]++;
			if (d[j][i] == 'W') wSumRight[i]++;
		}
	}
	for (i = 1; i <= n; i++) eSumLeft[i] += eSumLeft[i - 1];
	for (i = n - 1; i >= 0; i--) wSumRight[i] += wSumRight[i + 1];
	for (i = 1; i <= n + 1; i++) {
		int candidate = eSumLeft[i - 1] + wSumRight[i];
		if (candidate < score) {
			score = candidate;
			answer = i;
		}
	}
	printf("%d %d\n", answer - 1, answer);
	return 0;
}


3 1
WE
 3 0
WE
 1 1
WE
 1 0
WE
 2 0
WE
 4 0
WE
 3 0
EW
 1 0
EW
 2 1
EW
 4 0
EW

1 2
 0 1
 1 2
 0 1
 0 1
 0 1
 0 1
 0 1
 0 1
 0 1

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 n, m;
char d[128][12345];

int eSumLeft[12345], wSumRight[12345];

int main(void) {
	int i, j;
	int score = 999999999;
	int answer = 0;
	if (scanf("%d%d", &n, &m) != 2) return 1;
	for (i = 0; i < m; i++) {
		if (scanf("%12344s", d[i] + 1) != 1) return 1;
	}
	for (i = 1; i <= n; i++) {
		for (j = 0; j < m; j++) {
			if (d[j][i] == 'E') eSumLeft[i]++;
			if (d[j][i] == 'W') wSumRight[i]++;
		}
	}
	for (i = 1; i <= n; i++) eSumLeft[i] += eSumLeft[i - 1];
	for (i = n - 1; i >= 0; i--) wSumRight[i] += wSumRight[i + 1];
	for (i = 1; i <= n + 1; i++) {
		int candidate = eSumLeft[i - 1] + wSumRight[i];
		if (candidate < score) {
			score = candidate;
			answer = i;
		}
	}
	printf("%d %d\n", answer - 1, answer);
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 1580160
d:
	.zero	1580160
	.globl	eSumLeft
	.align 32
	.type	eSumLeft, @object
	.size	eSumLeft, 49380
eSumLeft:
	.zero	49380
	.globl	wSumRight
	.align 32
	.type	wSumRight, @object
	.size	wSumRight, 49380
wSumRight:
	.zero	49380
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%12344s"
.LC2:
	.string	"%d %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	$32, %rsp
	movl	$999999999, -12(%rbp)
	movl	$0, -8(%rbp)
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$0, -20(%rbp)
	jmp	.L4
.L6:
	movl	-20(%rbp), %eax
	cltq
	imulq	$12345, %rax, %rax
	leaq	d(%rip), %rdx
	addq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L5
	movl	$1, %eax
	jmp	.L3
.L5:
	addl	$1, -20(%rbp)
.L4:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L6
	movl	$1, -20(%rbp)
	jmp	.L7
.L12:
	movl	$0, -16(%rbp)
	jmp	.L8
.L11:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$12345, %rax, %rax
	addq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$69, %al
	jne	.L9
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L9:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$12345, %rax, %rax
	addq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$87, %al
	jne	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L10:
	addl	$1, -16(%rbp)
.L8:
	movl	m(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	addl	$1, -20(%rbp)
.L7:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L12
	movl	$1, -20(%rbp)
	jmp	.L13
.L14:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L13:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L14
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L15
.L16:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	subl	$1, -20(%rbp)
.L15:
	cmpl	$0, -20(%rbp)
	jns	.L16
	movl	$1, -20(%rbp)
	jmp	.L17
.L19:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L18
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -8(%rbp)
.L18:
	addl	$1, -20(%rbp)
.L17:
	movl	n(%rip), %eax
	addl	$1, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L19
	movl	-8(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L3:
	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
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 1580160
d:
	.zero	1580160
	.globl	eSumLeft
	.align 32
	.type	eSumLeft, @object
	.size	eSumLeft, 49380
eSumLeft:
	.zero	49380
	.globl	wSumRight
	.align 32
	.type	wSumRight, @object
	.size	wSumRight, 49380
wSumRight:
	.zero	49380
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%12344s"
.LC2:
	.string	"%d %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	$32, %rsp
	movl	$999999999, -12(%rbp)
	movl	$0, -8(%rbp)
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$0, -20(%rbp)
	jmp	.L4
.L6:
	movl	-20(%rbp), %eax
	cltq
	imulq	$12345, %rax, %rax
	leaq	d(%rip), %rdx
	addq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L5
	movl	$1, %eax
	jmp	.L3
.L5:
	addl	$1, -20(%rbp)
.L4:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L6
	movl	$1, -20(%rbp)
	jmp	.L7
.L12:
	movl	$0, -16(%rbp)
	jmp	.L8
.L11:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$12345, %rax, %rax
	addq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$69, %al
	jne	.L9
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L9:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16(%rbp), %eax
	cltq
	imulq	$12345, %rax, %rax
	addq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$87, %al
	jne	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L10:
	addl	$1, -16(%rbp)
.L8:
	movl	m(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	addl	$1, -20(%rbp)
.L7:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L12
	movl	$1, -20(%rbp)
	jmp	.L13
.L14:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L13:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L14
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L15
.L16:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	subl	$1, -20(%rbp)
.L15:
	cmpl	$0, -20(%rbp)
	jns	.L16
	movl	$1, -20(%rbp)
	jmp	.L17
.L19:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	eSumLeft(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	wSumRight(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L18
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -8(%rbp)
.L18:
	addl	$1, -20(%rbp)
.L17:
	movl	n(%rip), %eax
	addl	$1, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L19
	movl	-8(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L3:
	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:
