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

```c
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

// 内部定数
#define D_SIZE_MAX		105										// 最大サイズ

// 内部変数
static FILE *szpFpI;											// 入力
static int siW, siH;											// 幅・高さ
static char sc2Mass[D_SIZE_MAX][D_SIZE_MAX];					// マス
static int si2OCnt[D_SIZE_MAX][D_SIZE_MAX];						// 操作回数

// 内部変数 - テスト用
#ifdef D_TEST
	static int siRes;
	static FILE *szpFpA;
	static int siTNo;
#endif

// １行出力
int
fOutLine(
	char *pcpLine				// <I> １行
)
{
	char lc1Buf[1024];

#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, pcpLine)) {
		siRes = -1;
	}
#else
	printf("%s", pcpLine);
#endif

	return 0;
}

// 最小値 - 取得
int
fGetMinI(
	int piVal1					// <I> 値１
	, int piVal2				// <I> 値２
)
{
	if (piVal1 < piVal2) {
		return piVal1;
	}
	else {
		return piVal2;
	}
}

// 操作回数 - 取得
int
fGetOCnt(
	int piRow					// <I> 行
	, int piCol					// <I> 列
	, int piARow				// <I> 加算行
	, int piACol				// <I> 加算列
)
{
	// 白 -> 黒
	if (sc2Mass[piRow + piARow][piCol + piACol] == '.') {
		if (sc2Mass[piRow][piCol] == '#') {
			return si2OCnt[piRow + piARow][piCol + piACol] + 1;
		}
	}

	return si2OCnt[piRow + piARow][piCol + piACol];
}

// 実行メイン
int
fMain(
)
{
	int i, j;
	char lc1Buf[1024];

	// データ - 初期化
	memset(si2OCnt, 0, sizeof(si2OCnt));

	// 幅・高さ - 取得
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d", &siH, &siW);

	// マス - 取得
	for (i = 0; i < siH; i++) {
		fgets(sc2Mass[i], sizeof(sc2Mass[0]), szpFpI);
	}

	// 操作回数 - 左上
	if (sc2Mass[0][0] == '#') {
		si2OCnt[0][0] = 1;
	}

	// 操作回数 - １行目
	for (i = 1; i < siW; i++) {
		si2OCnt[0][i] = fGetOCnt(0, i, 0, -1);
	}

	// 操作回数 - １列目
	for (i = 1; i < siH; i++) {
		si2OCnt[i][0] = fGetOCnt(i, 0, -1, 0);
	}

	// 操作回数 - ２行目２列目以降
	for (i = 1; i < siH; i++) {
		for (j = 1; j < siW; j++) {
			int liOCnt1 = fGetOCnt(i, j, -1, 0);
			int liOCnt2 = fGetOCnt(i, j, 0, -1);
			si2OCnt[i][j] = fGetMinI(liOCnt1, liOCnt2);
		}
	}

	return si2OCnt[siH - 1][siW - 1];
}

// １回実行
int
fOne(
)
{
	int liRet;
	char lc1Buf[1024];

	// 入力 - セット
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", siTNo);
	szpFpI = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", siTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#else
	szpFpI = stdin;
#endif

	// 実行メイン
	liRet = fMain();

	// 出力
	sprintf(lc1Buf, "%d\n", liRet);
	fOutLine(lc1Buf);

	// 残データ有無
#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, "")) {
		siRes = -1;
	}
#endif

	// テストファイルクローズ
#ifdef D_TEST
	fclose(szpFpI);
	fclose(szpFpA);
#endif

	// テスト結果
#ifdef D_TEST
	if (siRes == 0) {
		printf("OK %d\n", siTNo);
	}
	else {
		printf("NG %d\n", siTNo);
	}
#endif

	return 0;
}

// プログラム開始
int
main()
{

#ifdef D_TEST
	int i;
	for (i = D_TEST_SNO; i <= D_TEST_ENO; i++) {
		siTNo = i;
		fOne();
	}
#else
	fOne();
#endif

	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	szpFpI
	.comm	szpFpI,8,8
	.local	siW
	.comm	siW,4,4
	.local	siH
	.comm	siH,4,4
	.local	sc2Mass
	.comm	sc2Mass,11025,32
	.local	si2OCnt
	.comm	si2OCnt,44100,32
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%rdi, -1048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fOutLine, .-fOutLine
	.globl	fGetMinI
	.type	fGetMinI, @function
fGetMinI:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
	movl	-4(%rbp), %eax
	jmp	.L6
.L5:
	movl	-8(%rbp), %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fGetMinI, .-fGetMinI
	.globl	fGetOCnt
	.type	fGetOCnt, @function
fGetOCnt:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	-8(%rbp), %ecx
	movl	-16(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	sc2Mass(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L8
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	sc2Mass(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L8
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	-8(%rbp), %ecx
	movl	-16(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	jmp	.L9
.L8:
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	-8(%rbp), %ecx
	movl	-16(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
.L9:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fGetOCnt, .-fGetOCnt
	.section	.rodata
.LC1:
	.string	"%d%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$44100, %edx
	movl	$0, %esi
	leaq	si2OCnt(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movq	szpFpI(%rip), %rdx
	leaq	-1040(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1040(%rbp), %rax
	leaq	siW(%rip), %rdx
	movq	%rdx, %rcx
	leaq	siH(%rip), %rdx
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -1056(%rbp)
	jmp	.L11
.L12:
	movq	szpFpI(%rip), %rcx
	movl	-1056(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	sc2Mass(%rip), %rdx
	addq	%rdx, %rax
	movq	%rcx, %rdx
	movl	$105, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	addl	$1, -1056(%rbp)
.L11:
	movl	siH(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L12
	movzbl	sc2Mass(%rip), %eax
	cmpb	$35, %al
	jne	.L13
	movl	$1, si2OCnt(%rip)
.L13:
	movl	$1, -1056(%rbp)
	jmp	.L14
.L15:
	movl	-1056(%rbp), %eax
	movl	$-1, %ecx
	movl	$0, %edx
	movl	%eax, %esi
	movl	$0, %edi
	call	fGetOCnt
	movl	-1056(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	si2OCnt(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -1056(%rbp)
.L14:
	movl	siW(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L15
	movl	$1, -1056(%rbp)
	jmp	.L16
.L17:
	movl	-1056(%rbp), %eax
	movl	$0, %ecx
	movl	$-1, %edx
	movl	$0, %esi
	movl	%eax, %edi
	call	fGetOCnt
	movl	-1056(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$420, %rdx, %rdx
	leaq	si2OCnt(%rip), %rcx
	movl	%eax, (%rdx,%rcx)
	addl	$1, -1056(%rbp)
.L16:
	movl	siH(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L17
	movl	$1, -1056(%rbp)
	jmp	.L18
.L21:
	movl	$1, -1052(%rbp)
	jmp	.L19
.L20:
	movl	-1052(%rbp), %esi
	movl	-1056(%rbp), %eax
	movl	$0, %ecx
	movl	$-1, %edx
	movl	%eax, %edi
	call	fGetOCnt
	movl	%eax, -1048(%rbp)
	movl	-1052(%rbp), %esi
	movl	-1056(%rbp), %eax
	movl	$-1, %ecx
	movl	$0, %edx
	movl	%eax, %edi
	call	fGetOCnt
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	movl	-1048(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	fGetMinI
	movl	%eax, %ecx
	movl	-1052(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1056(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -1052(%rbp)
.L19:
	movl	siW(%rip), %eax
	cmpl	%eax, -1052(%rbp)
	jl	.L20
	addl	$1, -1056(%rbp)
.L18:
	movl	siH(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L21
	movl	siH(%rip), %eax
	leal	-1(%rax), %edx
	movl	siW(%rip), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fMain, .-fMain
	.section	.rodata
.LC2:
	.string	"%d\n"
	.text
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	fOutLine
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %eax
	call	fOne
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"%s"
	.text
	.p2align 4
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdi, %rdx
	leaq	.LC0(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	fOutLine, .-fOutLine
	.p2align 4
	.globl	fGetMinI
	.type	fGetMinI, @function
fGetMinI:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	fGetMinI, .-fGetMinI
	.p2align 4
	.globl	fGetOCnt
	.type	fGetOCnt, @function
fGetOCnt:
.LFB53:
	.cfi_startproc
	endbr64
	movslq	%edi, %rax
	addl	%esi, %ecx
	addl	%eax, %edx
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,2), %rdi
	leaq	(%rdx,%rdi,4), %rdi
	leaq	(%rdx,%rdi,8), %rdx
	leaq	si2OCnt(%rip), %rdi
	leaq	(%rdx,%rcx), %r8
	movl	(%rdi,%r8,4), %r8d
	leaq	sc2Mass(%rip), %rdi
	addq	%rdi, %rdx
	cmpb	$46, (%rdx,%rcx)
	jne	.L5
	leaq	(%rax,%rax,2), %rdx
	movslq	%esi, %rsi
	leaq	(%rax,%rdx,4), %rdx
	leaq	(%rax,%rdx,8), %rax
	addq	%rax, %rdi
	xorl	%eax, %eax
	cmpb	$35, (%rdi,%rsi)
	sete	%al
	addl	%eax, %r8d
.L5:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	fGetOCnt, .-fGetOCnt
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d"
	.text
	.p2align 4
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$44100, %edx
	xorl	%esi, %esi
	leaq	si2OCnt(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1048, %rsp
	.cfi_def_cfa_offset 1104
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	call	memset@PLT
	movq	szpFpI(%rip), %rdx
	movq	%rbp, %rdi
	movl	$1024, %esi
	call	fgets@PLT
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	siW(%rip), %rcx
	leaq	siH(%rip), %rdx
	leaq	.LC1(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	siH(%rip), %ebp
	testl	%ebp, %ebp
	jle	.L8
	leaq	sc2Mass(%rip), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	szpFpI(%rip), %rdx
	movq	%r12, %rdi
	movl	$105, %esi
	addl	$1, %ebx
	addq	$105, %r12
	call	fgets@PLT
	movl	siH(%rip), %ebp
	cmpl	%ebx, %ebp
	jg	.L9
.L8:
	cmpb	$35, sc2Mass(%rip)
	jne	.L10
	movl	$1, si2OCnt(%rip)
.L10:
	movl	siW(%rip), %r12d
	cmpl	$1, %r12d
	jle	.L16
	leaq	4+si2OCnt(%rip), %rax
	leal	-2(%r12), %esi
	movl	si2OCnt(%rip), %ecx
	leaq	4(%rax), %rdi
	leaq	1+sc2Mass(%rip), %rdx
	leaq	(%rdi,%rsi,4), %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	cmpb	$46, -1(%rdx)
	jne	.L14
	xorl	%edi, %edi
	cmpb	$35, (%rdx)
	sete	%dil
	addl	%edi, %ecx
.L14:
	movl	%ecx, (%rax)
	addq	$4, %rax
	addq	$1, %rdx
	cmpq	%rsi, %rax
	jne	.L15
.L16:
	cmpl	$1, %ebp
	jle	.L13
	leal	-2(%rbp), %edi
	leaq	420+si2OCnt(%rip), %rax
	movl	si2OCnt(%rip), %ecx
	imulq	$420, %rdi, %rsi
	leaq	420(%rax), %r8
	leaq	105+sc2Mass(%rip), %rdx
	addq	%r8, %rsi
	.p2align 4,,10
	.p2align 3
.L18:
	cmpb	$46, -105(%rdx)
	jne	.L17
	xorl	%r8d, %r8d
	cmpb	$35, (%rdx)
	sete	%r8b
	addl	%r8d, %ecx
.L17:
	movl	%ecx, (%rax)
	addq	$420, %rax
	addq	$105, %rdx
	cmpq	%rsi, %rax
	jne	.L18
	cmpl	$1, %r12d
	jle	.L13
	leal	103(%r12), %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	$-420, %r11
	leaq	4+si2OCnt(%rip), %rdx
	movq	$-105, %r10
	leaq	106+sc2Mass(%rip), %r13
	leaq	(%rdx,%rax,4), %rbx
	leaq	1(%rdi), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	leaq	(%rax,%rdx,8), %r15
	leaq	si2OCnt(%rip), %rax
	leaq	420(%rax), %r14
	.p2align 4,,10
	.p2align 3
.L20:
	leaq	(%r14,%r9), %rax
	leaq	0(%r13,%r8), %rcx
	.p2align 4,,10
	.p2align 3
.L25:
	leaq	(%rcx,%r10), %rsi
	leaq	(%rax,%r11), %rdx
	movzbl	-1(%rcx), %edi
	cmpb	$46, (%rsi,%r8)
	movl	4(%rdx,%r9), %edx
	je	.L37
	cmpb	$46, %dil
	je	.L38
.L22:
	movl	(%rax), %esi
.L24:
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	addq	$4, %rax
	addq	$1, %rcx
	movl	%edx, (%rax)
	cmpq	%rax, %rbx
	jne	.L25
	addq	$105, %r8
	addq	$420, %rbx
	subq	$105, %r10
	subq	$420, %r11
	addq	$420, %r9
	cmpq	%r15, %r8
	jne	.L20
.L13:
	leal	-1(%rbp), %eax
	leal	-1(%r12), %edx
	cltq
	movslq	%edx, %rdx
	leaq	si2OCnt(%rip), %rbx
	leaq	(%rax,%rax,2), %rcx
	leaq	(%rax,%rcx,4), %rcx
	leaq	(%rax,%rcx,8), %rax
	addq	%rdx, %rax
	movl	(%rbx,%rax,4), %eax
	movq	1032(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L39
	addq	$1048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	cmpb	$35, (%rcx)
	jne	.L22
	movl	(%rax), %edi
	leal	1(%rdi), %esi
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L37:
	cmpb	$35, (%rcx)
	jne	.L22
	addl	$1, %edx
	cmpb	$46, %dil
	jne	.L22
	movl	(%rax), %edi
	leal	1(%rdi), %esi
	jmp	.L24
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	fMain, .-fMain
	.section	.rodata.str1.1
.LC2:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	subq	$1040, %rsp
	.cfi_def_cfa_offset 1056
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	movq	stdin(%rip), %rax
	movq	%rsp, %r12
	movq	%rax, szpFpI(%rip)
	xorl	%eax, %eax
	call	fMain
	movl	$1024, %edx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%eax, %r8d
	leaq	.LC2(%rip), %rcx
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	1032(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$1040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L43:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	fOne, .-fOne
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB56:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	call	fOne
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE56:
	.size	main, .-main
	.local	si2OCnt
	.comm	si2OCnt,44100,32
	.local	sc2Mass
	.comm	sc2Mass,11025,32
	.local	siH
	.comm	siH,4,4
	.local	siW
	.comm	siW,4,4
	.local	szpFpI
	.comm	szpFpI,8,8
	.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	"%s"
	.text
	.p2align 4
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdi, %rdx
	leaq	.LC0(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	fOutLine, .-fOutLine
	.p2align 4
	.globl	fGetMinI
	.type	fGetMinI, @function
fGetMinI:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	fGetMinI, .-fGetMinI
	.p2align 4
	.globl	fGetOCnt
	.type	fGetOCnt, @function
fGetOCnt:
.LFB53:
	.cfi_startproc
	endbr64
	movslq	%edi, %rax
	addl	%esi, %ecx
	addl	%eax, %edx
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,2), %rdi
	leaq	(%rdx,%rdi,4), %rdi
	leaq	(%rdx,%rdi,8), %rdx
	leaq	si2OCnt(%rip), %rdi
	leaq	(%rdx,%rcx), %r8
	movl	(%rdi,%r8,4), %r8d
	leaq	sc2Mass(%rip), %rdi
	addq	%rdi, %rdx
	cmpb	$46, (%rdx,%rcx)
	jne	.L5
	leaq	(%rax,%rax,2), %rdx
	movslq	%esi, %rsi
	leaq	(%rax,%rdx,4), %rdx
	leaq	(%rax,%rdx,8), %rax
	addq	%rax, %rdi
	xorl	%eax, %eax
	cmpb	$35, (%rdi,%rsi)
	sete	%al
	addl	%eax, %r8d
.L5:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	fGetOCnt, .-fGetOCnt
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d"
	.text
	.p2align 4
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$44100, %edx
	xorl	%esi, %esi
	leaq	si2OCnt(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1048, %rsp
	.cfi_def_cfa_offset 1104
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	call	memset@PLT
	movq	szpFpI(%rip), %rdx
	movq	%rbp, %rdi
	movl	$1024, %esi
	call	fgets@PLT
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	siW(%rip), %rcx
	leaq	siH(%rip), %rdx
	leaq	.LC1(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	siH(%rip), %ebp
	testl	%ebp, %ebp
	jle	.L8
	leaq	sc2Mass(%rip), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	szpFpI(%rip), %rdx
	movq	%r12, %rdi
	movl	$105, %esi
	addl	$1, %ebx
	addq	$105, %r12
	call	fgets@PLT
	movl	siH(%rip), %ebp
	cmpl	%ebx, %ebp
	jg	.L9
.L8:
	cmpb	$35, sc2Mass(%rip)
	jne	.L10
	movl	$1, si2OCnt(%rip)
.L10:
	movl	siW(%rip), %r12d
	cmpl	$1, %r12d
	jle	.L16
	leaq	4+si2OCnt(%rip), %rax
	leal	-2(%r12), %esi
	movl	si2OCnt(%rip), %ecx
	leaq	4(%rax), %rdi
	leaq	1+sc2Mass(%rip), %rdx
	leaq	(%rdi,%rsi,4), %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	cmpb	$46, -1(%rdx)
	jne	.L14
	xorl	%edi, %edi
	cmpb	$35, (%rdx)
	sete	%dil
	addl	%edi, %ecx
.L14:
	movl	%ecx, (%rax)
	addq	$4, %rax
	addq	$1, %rdx
	cmpq	%rsi, %rax
	jne	.L15
.L16:
	cmpl	$1, %ebp
	jle	.L13
	leal	-2(%rbp), %edi
	leaq	420+si2OCnt(%rip), %rax
	movl	si2OCnt(%rip), %ecx
	imulq	$420, %rdi, %rsi
	leaq	420(%rax), %r8
	leaq	105+sc2Mass(%rip), %rdx
	addq	%r8, %rsi
	.p2align 4,,10
	.p2align 3
.L18:
	cmpb	$46, -105(%rdx)
	jne	.L17
	xorl	%r8d, %r8d
	cmpb	$35, (%rdx)
	sete	%r8b
	addl	%r8d, %ecx
.L17:
	movl	%ecx, (%rax)
	addq	$420, %rax
	addq	$105, %rdx
	cmpq	%rsi, %rax
	jne	.L18
	cmpl	$1, %r12d
	jle	.L13
	leal	103(%r12), %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	$-420, %r11
	leaq	4+si2OCnt(%rip), %rdx
	movq	$-105, %r10
	leaq	106+sc2Mass(%rip), %r13
	leaq	(%rdx,%rax,4), %rbx
	leaq	1(%rdi), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	leaq	(%rax,%rdx,8), %r15
	leaq	si2OCnt(%rip), %rax
	leaq	420(%rax), %r14
	.p2align 4,,10
	.p2align 3
.L20:
	leaq	(%r14,%r9), %rax
	leaq	0(%r13,%r8), %rcx
	.p2align 4,,10
	.p2align 3
.L25:
	leaq	(%rcx,%r10), %rsi
	leaq	(%rax,%r11), %rdx
	movzbl	-1(%rcx), %edi
	cmpb	$46, (%rsi,%r8)
	movl	4(%rdx,%r9), %edx
	je	.L37
	cmpb	$46, %dil
	je	.L38
.L22:
	movl	(%rax), %esi
.L24:
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	addq	$4, %rax
	addq	$1, %rcx
	movl	%edx, (%rax)
	cmpq	%rax, %rbx
	jne	.L25
	addq	$105, %r8
	addq	$420, %rbx
	subq	$105, %r10
	subq	$420, %r11
	addq	$420, %r9
	cmpq	%r15, %r8
	jne	.L20
.L13:
	leal	-1(%rbp), %eax
	leal	-1(%r12), %edx
	cltq
	movslq	%edx, %rdx
	leaq	si2OCnt(%rip), %rbx
	leaq	(%rax,%rax,2), %rcx
	leaq	(%rax,%rcx,4), %rcx
	leaq	(%rax,%rcx,8), %rax
	addq	%rdx, %rax
	movl	(%rbx,%rax,4), %eax
	movq	1032(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L39
	addq	$1048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	cmpb	$35, (%rcx)
	jne	.L22
	movl	(%rax), %edi
	leal	1(%rdi), %esi
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L37:
	cmpb	$35, (%rcx)
	jne	.L22
	addl	$1, %edx
	cmpb	$46, %dil
	jne	.L22
	movl	(%rax), %edi
	leal	1(%rdi), %esi
	jmp	.L24
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	fMain, .-fMain
	.section	.rodata.str1.1
.LC2:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	subq	$1040, %rsp
	.cfi_def_cfa_offset 1056
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	movq	stdin(%rip), %rax
	movq	%rsp, %r12
	movq	%rax, szpFpI(%rip)
	xorl	%eax, %eax
	call	fMain
	movl	$1024, %edx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%eax, %r8d
	leaq	.LC2(%rip), %rcx
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	1032(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$1040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L43:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	fOne, .-fOne
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB56:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	call	fOne
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE56:
	.size	main, .-main
	.local	si2OCnt
	.comm	si2OCnt,44100,32
	.local	sc2Mass
	.comm	sc2Mass,11025,32
	.local	siH
	.comm	siH,4,4
	.local	siW
	.comm	siW,4,4
	.local	szpFpI
	.comm	szpFpI,8,8
	.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 <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

// 内部定数
#define D_SIZE_MAX		105										// 最大サイズ

// 内部変数
static FILE *szpFpI;											// 入力
static int siW, siH;											// 幅・高さ
static char sc2Mass[D_SIZE_MAX][D_SIZE_MAX];					// マス
static int si2OCnt[D_SIZE_MAX][D_SIZE_MAX];						// 操作回数

// 内部変数 - テスト用
#ifdef D_TEST
	static int siRes;
	static FILE *szpFpA;
	static int siTNo;
#endif

// １行出力
int
fOutLine(
	char *pcpLine				// <I> １行
)
{
	char lc1Buf[1024];

#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, pcpLine)) {
		siRes = -1;
	}
#else
	printf("%s", pcpLine);
#endif

	return 0;
}

// 最小値 - 取得
int
fGetMinI(
	int piVal1					// <I> 値１
	, int piVal2				// <I> 値２
)
{
	if (piVal1 < piVal2) {
		return piVal1;
	}
	else {
		return piVal2;
	}
}

// 操作回数 - 取得
int
fGetOCnt(
	int piRow					// <I> 行
	, int piCol					// <I> 列
	, int piARow				// <I> 加算行
	, int piACol				// <I> 加算列
)
{
	// 白 -> 黒
	if (sc2Mass[piRow + piARow][piCol + piACol] == '.') {
		if (sc2Mass[piRow][piCol] == '#') {
			return si2OCnt[piRow + piARow][piCol + piACol] + 1;
		}
	}

	return si2OCnt[piRow + piARow][piCol + piACol];
}

// 実行メイン
int
fMain(
)
{
	int i, j;
	char lc1Buf[1024];

	// データ - 初期化
	memset(si2OCnt, 0, sizeof(si2OCnt));

	// 幅・高さ - 取得
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d", &siH, &siW);

	// マス - 取得
	for (i = 0; i < siH; i++) {
		fgets(sc2Mass[i], sizeof(sc2Mass[0]), szpFpI);
	}

	// 操作回数 - 左上
	if (sc2Mass[0][0] == '#') {
		si2OCnt[0][0] = 1;
	}

	// 操作回数 - １行目
	for (i = 1; i < siW; i++) {
		si2OCnt[0][i] = fGetOCnt(0, i, 0, -1);
	}

	// 操作回数 - １列目
	for (i = 1; i < siH; i++) {
		si2OCnt[i][0] = fGetOCnt(i, 0, -1, 0);
	}

	// 操作回数 - ２行目２列目以降
	for (i = 1; i < siH; i++) {
		for (j = 1; j < siW; j++) {
			int liOCnt1 = fGetOCnt(i, j, -1, 0);
			int liOCnt2 = fGetOCnt(i, j, 0, -1);
			si2OCnt[i][j] = fGetMinI(liOCnt1, liOCnt2);
		}
	}

	return si2OCnt[siH - 1][siW - 1];
}

// １回実行
int
fOne(
)
{
	int liRet;
	char lc1Buf[1024];

	// 入力 - セット
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", siTNo);
	szpFpI = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", siTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#else
	szpFpI = stdin;
#endif

	// 実行メイン
	liRet = fMain();

	// 出力
	sprintf(lc1Buf, "%d\n", liRet);
	fOutLine(lc1Buf);

	// 残データ有無
#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, "")) {
		siRes = -1;
	}
#endif

	// テストファイルクローズ
#ifdef D_TEST
	fclose(szpFpI);
	fclose(szpFpA);
#endif

	// テスト結果
#ifdef D_TEST
	if (siRes == 0) {
		printf("OK %d\n", siTNo);
	}
	else {
		printf("NG %d\n", siTNo);
	}
#endif

	return 0;
}

// プログラム開始
int
main()
{

#ifdef D_TEST
	int i;
	for (i = D_TEST_SNO; i <= D_TEST_ENO; i++) {
		siTNo = i;
		fOne();
	}
#else
	fOne();
#endif

	return 0;
}


2 2
.
#.
 4 4
##..
...
.
.
 1 7
#.#/
-..
0
,
 3 3
.##
.#-
.
 2 2
.
$.
 4 4
##..
...
-
.
 2 3
.##
.#-
.
 2 2
.
/#
 7 4
..##
...
.
.
 3 3
.##
.#.
##-

0
 1
 2
 0
 0
 1
 1
 0
 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 <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

// 内部定数
#define D_SIZE_MAX		105										// 最大サイズ

// 内部変数
static FILE *szpFpI;											// 入力
static int siW, siH;											// 幅・高さ
static char sc2Mass[D_SIZE_MAX][D_SIZE_MAX];					// マス
static int si2OCnt[D_SIZE_MAX][D_SIZE_MAX];						// 操作回数

// 内部変数 - テスト用
#ifdef D_TEST
	static int siRes;
	static FILE *szpFpA;
	static int siTNo;
#endif

// １行出力
int
fOutLine(
	char *pcpLine				// <I> １行
)
{
	char lc1Buf[1024];

#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, pcpLine)) {
		siRes = -1;
	}
#else
	printf("%s", pcpLine);
#endif

	return 0;
}

// 最小値 - 取得
int
fGetMinI(
	int piVal1					// <I> 値１
	, int piVal2				// <I> 値２
)
{
	if (piVal1 < piVal2) {
		return piVal1;
	}
	else {
		return piVal2;
	}
}

// 操作回数 - 取得
int
fGetOCnt(
	int piRow					// <I> 行
	, int piCol					// <I> 列
	, int piARow				// <I> 加算行
	, int piACol				// <I> 加算列
)
{
	// 白 -> 黒
	if (sc2Mass[piRow + piARow][piCol + piACol] == '.') {
		if (sc2Mass[piRow][piCol] == '#') {
			return si2OCnt[piRow + piARow][piCol + piACol] + 1;
		}
	}

	return si2OCnt[piRow + piARow][piCol + piACol];
}

// 実行メイン
int
fMain(
)
{
	int i, j;
	char lc1Buf[1024];

	// データ - 初期化
	memset(si2OCnt, 0, sizeof(si2OCnt));

	// 幅・高さ - 取得
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d", &siH, &siW);

	// マス - 取得
	for (i = 0; i < siH; i++) {
		fgets(sc2Mass[i], sizeof(sc2Mass[0]), szpFpI);
	}

	// 操作回数 - 左上
	if (sc2Mass[0][0] == '#') {
		si2OCnt[0][0] = 1;
	}

	// 操作回数 - １行目
	for (i = 1; i < siW; i++) {
		si2OCnt[0][i] = fGetOCnt(0, i, 0, -1);
	}

	// 操作回数 - １列目
	for (i = 1; i < siH; i++) {
		si2OCnt[i][0] = fGetOCnt(i, 0, -1, 0);
	}

	// 操作回数 - ２行目２列目以降
	for (i = 1; i < siH; i++) {
		for (j = 1; j < siW; j++) {
			int liOCnt1 = fGetOCnt(i, j, -1, 0);
			int liOCnt2 = fGetOCnt(i, j, 0, -1);
			si2OCnt[i][j] = fGetMinI(liOCnt1, liOCnt2);
		}
	}

	return si2OCnt[siH - 1][siW - 1];
}

// １回実行
int
fOne(
)
{
	int liRet;
	char lc1Buf[1024];

	// 入力 - セット
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", siTNo);
	szpFpI = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", siTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#else
	szpFpI = stdin;
#endif

	// 実行メイン
	liRet = fMain();

	// 出力
	sprintf(lc1Buf, "%d\n", liRet);
	fOutLine(lc1Buf);

	// 残データ有無
#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, "")) {
		siRes = -1;
	}
#endif

	// テストファイルクローズ
#ifdef D_TEST
	fclose(szpFpI);
	fclose(szpFpA);
#endif

	// テスト結果
#ifdef D_TEST
	if (siRes == 0) {
		printf("OK %d\n", siTNo);
	}
	else {
		printf("NG %d\n", siTNo);
	}
#endif

	return 0;
}

// プログラム開始
int
main()
{

#ifdef D_TEST
	int i;
	for (i = D_TEST_SNO; i <= D_TEST_ENO; i++) {
		siTNo = i;
		fOne();
	}
#else
	fOne();
#endif

	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	szpFpI
	.comm	szpFpI,8,8
	.local	siW
	.comm	siW,4,4
	.local	siH
	.comm	siH,4,4
	.local	sc2Mass
	.comm	sc2Mass,11025,32
	.local	si2OCnt
	.comm	si2OCnt,44100,32
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%rdi, -1048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fOutLine, .-fOutLine
	.globl	fGetMinI
	.type	fGetMinI, @function
fGetMinI:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
	movl	-4(%rbp), %eax
	jmp	.L6
.L5:
	movl	-8(%rbp), %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fGetMinI, .-fGetMinI
	.globl	fGetOCnt
	.type	fGetOCnt, @function
fGetOCnt:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	-8(%rbp), %ecx
	movl	-16(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	sc2Mass(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L8
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	sc2Mass(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L8
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	-8(%rbp), %ecx
	movl	-16(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	jmp	.L9
.L8:
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	-8(%rbp), %ecx
	movl	-16(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
.L9:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fGetOCnt, .-fGetOCnt
	.section	.rodata
.LC1:
	.string	"%d%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$44100, %edx
	movl	$0, %esi
	leaq	si2OCnt(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movq	szpFpI(%rip), %rdx
	leaq	-1040(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1040(%rbp), %rax
	leaq	siW(%rip), %rdx
	movq	%rdx, %rcx
	leaq	siH(%rip), %rdx
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -1056(%rbp)
	jmp	.L11
.L12:
	movq	szpFpI(%rip), %rcx
	movl	-1056(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	sc2Mass(%rip), %rdx
	addq	%rdx, %rax
	movq	%rcx, %rdx
	movl	$105, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	addl	$1, -1056(%rbp)
.L11:
	movl	siH(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L12
	movzbl	sc2Mass(%rip), %eax
	cmpb	$35, %al
	jne	.L13
	movl	$1, si2OCnt(%rip)
.L13:
	movl	$1, -1056(%rbp)
	jmp	.L14
.L15:
	movl	-1056(%rbp), %eax
	movl	$-1, %ecx
	movl	$0, %edx
	movl	%eax, %esi
	movl	$0, %edi
	call	fGetOCnt
	movl	-1056(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	si2OCnt(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -1056(%rbp)
.L14:
	movl	siW(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L15
	movl	$1, -1056(%rbp)
	jmp	.L16
.L17:
	movl	-1056(%rbp), %eax
	movl	$0, %ecx
	movl	$-1, %edx
	movl	$0, %esi
	movl	%eax, %edi
	call	fGetOCnt
	movl	-1056(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$420, %rdx, %rdx
	leaq	si2OCnt(%rip), %rcx
	movl	%eax, (%rdx,%rcx)
	addl	$1, -1056(%rbp)
.L16:
	movl	siH(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L17
	movl	$1, -1056(%rbp)
	jmp	.L18
.L21:
	movl	$1, -1052(%rbp)
	jmp	.L19
.L20:
	movl	-1052(%rbp), %esi
	movl	-1056(%rbp), %eax
	movl	$0, %ecx
	movl	$-1, %edx
	movl	%eax, %edi
	call	fGetOCnt
	movl	%eax, -1048(%rbp)
	movl	-1052(%rbp), %esi
	movl	-1056(%rbp), %eax
	movl	$-1, %ecx
	movl	$0, %edx
	movl	%eax, %edi
	call	fGetOCnt
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	movl	-1048(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	fGetMinI
	movl	%eax, %ecx
	movl	-1052(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1056(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -1052(%rbp)
.L19:
	movl	siW(%rip), %eax
	cmpl	%eax, -1052(%rbp)
	jl	.L20
	addl	$1, -1056(%rbp)
.L18:
	movl	siH(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L21
	movl	siH(%rip), %eax
	leal	-1(%rax), %edx
	movl	siW(%rip), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fMain, .-fMain
	.section	.rodata
.LC2:
	.string	"%d\n"
	.text
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	fOutLine
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %eax
	call	fOne
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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
	.local	szpFpI
	.comm	szpFpI,8,8
	.local	siW
	.comm	siW,4,4
	.local	siH
	.comm	siH,4,4
	.local	sc2Mass
	.comm	sc2Mass,11025,32
	.local	si2OCnt
	.comm	si2OCnt,44100,32
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%rdi, -1048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fOutLine, .-fOutLine
	.globl	fGetMinI
	.type	fGetMinI, @function
fGetMinI:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
	movl	-4(%rbp), %eax
	jmp	.L6
.L5:
	movl	-8(%rbp), %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fGetMinI, .-fGetMinI
	.globl	fGetOCnt
	.type	fGetOCnt, @function
fGetOCnt:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	-8(%rbp), %ecx
	movl	-16(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	sc2Mass(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L8
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	sc2Mass(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L8
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	-8(%rbp), %ecx
	movl	-16(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	jmp	.L9
.L8:
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	-8(%rbp), %ecx
	movl	-16(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
.L9:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fGetOCnt, .-fGetOCnt
	.section	.rodata
.LC1:
	.string	"%d%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$44100, %edx
	movl	$0, %esi
	leaq	si2OCnt(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movq	szpFpI(%rip), %rdx
	leaq	-1040(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1040(%rbp), %rax
	leaq	siW(%rip), %rdx
	movq	%rdx, %rcx
	leaq	siH(%rip), %rdx
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -1056(%rbp)
	jmp	.L11
.L12:
	movq	szpFpI(%rip), %rcx
	movl	-1056(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	sc2Mass(%rip), %rdx
	addq	%rdx, %rax
	movq	%rcx, %rdx
	movl	$105, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	addl	$1, -1056(%rbp)
.L11:
	movl	siH(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L12
	movzbl	sc2Mass(%rip), %eax
	cmpb	$35, %al
	jne	.L13
	movl	$1, si2OCnt(%rip)
.L13:
	movl	$1, -1056(%rbp)
	jmp	.L14
.L15:
	movl	-1056(%rbp), %eax
	movl	$-1, %ecx
	movl	$0, %edx
	movl	%eax, %esi
	movl	$0, %edi
	call	fGetOCnt
	movl	-1056(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	si2OCnt(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -1056(%rbp)
.L14:
	movl	siW(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L15
	movl	$1, -1056(%rbp)
	jmp	.L16
.L17:
	movl	-1056(%rbp), %eax
	movl	$0, %ecx
	movl	$-1, %edx
	movl	$0, %esi
	movl	%eax, %edi
	call	fGetOCnt
	movl	-1056(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$420, %rdx, %rdx
	leaq	si2OCnt(%rip), %rcx
	movl	%eax, (%rdx,%rcx)
	addl	$1, -1056(%rbp)
.L16:
	movl	siH(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L17
	movl	$1, -1056(%rbp)
	jmp	.L18
.L21:
	movl	$1, -1052(%rbp)
	jmp	.L19
.L20:
	movl	-1052(%rbp), %esi
	movl	-1056(%rbp), %eax
	movl	$0, %ecx
	movl	$-1, %edx
	movl	%eax, %edi
	call	fGetOCnt
	movl	%eax, -1048(%rbp)
	movl	-1052(%rbp), %esi
	movl	-1056(%rbp), %eax
	movl	$-1, %ecx
	movl	$0, %edx
	movl	%eax, %edi
	call	fGetOCnt
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	movl	-1048(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	fGetMinI
	movl	%eax, %ecx
	movl	-1052(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1056(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -1052(%rbp)
.L19:
	movl	siW(%rip), %eax
	cmpl	%eax, -1052(%rbp)
	jl	.L20
	addl	$1, -1056(%rbp)
.L18:
	movl	siH(%rip), %eax
	cmpl	%eax, -1056(%rbp)
	jl	.L21
	movl	siH(%rip), %eax
	leal	-1(%rax), %edx
	movl	siW(%rip), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si2OCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fMain, .-fMain
	.section	.rodata
.LC2:
	.string	"%d\n"
	.text
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	fOutLine
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %eax
	call	fOne
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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:
