// File: /workspace/github_cpp_makefile_star2_O1/loverszhaokai[P]TypoCheck/src/typo.cc
// Function: search_typo_per_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int search_typo_per_file(const string &file)
{
	fstream fs;

	fs.open(file.c_str(), fstream::in);

	if (!fs.is_open()) {
		cout << "failed to read typos file[" << file << "]" << endl;
		return -1;
	}

	string line;
	size_t index;

	while (getline(fs, line)) {
		search_typo_per_line(line);
	}

	fs.close();
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rdi, %rbx
leaq -0x258(%rbp), %r14
movq %r14, %rdi
callq 0x2180
movq (%rbx), %rsi
movq %r14, %rdi
movl $0x8, %edx
callq 0x2120
leaq -0x1d8(%rbp), %rdi
callq 0x2070
testb %al, %al
je 0x2dc8
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq -0x258(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %edx
movq %r14, %rdi
leaq -0x48(%rbp), %rsi
callq 0x21f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2e38
cmpq $0x0, -0x40(%rbp)
leaq 0x3580(%rip), %r13      # 0x6138
je 0x2d08
xorl %eax, %eax
xorl %r15d, %r15d
leaq 0x356e(%rip), %r13      # 0x6138
movslq %r15d, %rbx
leal 0x1(%rbx), %r15d
movq %r13, %r14
movq -0x48(%rbp), %rcx
movsbq (%rcx,%rax), %rax
leaq 0x35bc(%rip), %rcx      # 0x61a0
cmpb $-0x1, (%rax,%rcx)
jne 0x2cbe
testb $0x1, %r12b
je 0x2ca2
leaq 0x28(%r14), %rdi
leaq 0x14b7(%rip), %rsi      # 0x40ba
callq 0x2080
testl %eax, %eax
je 0x2ca2
movl $0xb, %edx
movq 0x33bc(%rip), %rdi      # 0x5fd8
leaq 0x1475(%rip), %rsi      # 0x4098
callq 0x2170
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
movq 0x33a1(%rip), %rdi      # 0x5fd8
callq 0x2170
movq %rax, %r13
movl $0x16, %edx
movq %rax, %rdi
leaq 0x1456(%rip), %rsi      # 0x40a4
callq 0x2170
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
movq %r13, %rdi
callq 0x2170
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1444(%rip), %rsi      # 0x40b9
callq 0x2170
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
incq %rbx
incl %r15d
movq %rbx, %rax
leaq 0x3486(%rip), %r14      # 0x6138
cmpq %rbx, -0x40(%rbp)
ja 0x2bd4
jmp 0x2d01
addq $0x48, %r14
movq %r14, %r13
movq (%r13), %r13
cmpq %r14, %r13
je 0x2cd8
movb 0x10(%r13), %cl
cmpb %al, %cl
je 0x2cdd
jle 0x2cc5
xorl %r12d, %r12d
jmp 0x2ce0
movb $0x1, %r12b
addq $0x10, %r13
testb %r12b, %r12b
leaq 0x344a(%rip), %rax      # 0x6138
cmoveq %rax, %r13
movslq %r15d, %rax
cmpq %rax, -0x40(%rbp)
ja 0x2bca
jmp 0x2d08
leaq 0x3430(%rip), %r13      # 0x6138
testb $0x1, %r12b
leaq -0x258(%rbp), %r14
je 0x2b73
leaq 0x28(%r13), %rdi
leaq 0x1396(%rip), %rsi      # 0x40ba
callq 0x2080
testl %eax, %eax
je 0x2b73
movl $0xb, %edx
movq 0x329b(%rip), %rdi      # 0x5fd8
leaq 0x1354(%rip), %rsi      # 0x4098
callq 0x2170
movq 0x8(%r13), %rsi
movq 0x10(%r13), %rdx
movq 0x3280(%rip), %rdi      # 0x5fd8
callq 0x2170
movq %rax, %rbx
movl $0x16, %edx
movq %rax, %rdi
leaq 0x1335(%rip), %rsi      # 0x40a4
callq 0x2170
movq 0x28(%r13), %rsi
movq 0x30(%r13), %rdx
movq %rbx, %rdi
callq 0x2170
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1323(%rip), %rsi      # 0x40b9
callq 0x2170
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
jmp 0x2b73
movq 0x3209(%rip), %rdi      # 0x5fd8
leaq 0x12a2(%rip), %rsi      # 0x4078
movl $0x1a, %edx
callq 0x2170
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x31ea(%rip), %rdi      # 0x5fd8
callq 0x2170
movq %rax, %rbx
leaq 0x1296(%rip), %rsi      # 0x4093
movl $0x1, %edx
movq %rax, %rdi
callq 0x2170
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %rax, %rdi
callq 0x20d0
jmp 0x2e5f
leaq -0x258(%rbp), %rdi
callq 0x2040
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2e5d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2150
xorl %ebx, %ebx
leaq -0x258(%rbp), %rdi
callq 0x2060
movl %ebx, %eax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2e88
movq %rax, %rbx
jmp 0x2ea4
jmp 0x2e88
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2ea4
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x258(%rbp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x21d0