// File: /workspace/github_cpp_makefile_star2_O3/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), %r15
movq %r15, %rdi
callq 0x2180
movq (%rbx), %rsi
movq %r15, %rdi
movl $0x8, %edx
callq 0x2120
leaq -0x1d8(%rbp), %rdi
callq 0x2070
testb %al, %al
je 0x2de5
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq -0x258(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %edx
movq %r15, %rdi
leaq -0x48(%rbp), %rsi
callq 0x21f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2e55
movq -0x40(%rbp), %rax
leaq 0x3579(%rip), %r14      # 0x6138
testq %rax, %rax
je 0x2d36
xorl %edx, %edx
movq -0x48(%rbp), %rcx
xorl %r15d, %r15d
leaq 0x3560(%rip), %r14      # 0x6138
movsbq (%rcx,%rdx), %rdx
leaq 0x35bc(%rip), %rsi      # 0x61a0
cmpb $-0x1, (%rdx,%rsi)
jne 0x2cde
movslq %r15d, %r12
incq %r12
testb $0x1, %bl
je 0x2ca7
leaq 0x28(%r14), %rdi
leaq 0x14b2(%rip), %rsi      # 0x40ba
callq 0x2080
testl %eax, %eax
je 0x2ca7
movl $0xb, %edx
movq 0x33b7(%rip), %rdi      # 0x5fd8
leaq 0x1470(%rip), %rsi      # 0x4098
callq 0x2170
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
movq 0x339c(%rip), %rdi      # 0x5fd8
callq 0x2170
movq %rax, %r13
movl $0x16, %edx
movq %rax, %rdi
leaq 0x1451(%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 0x143f(%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
movq -0x40(%rbp), %rax
cmpq %r12, %rax
jbe 0x2d1f
movq -0x48(%rbp), %rcx
movsbq (%rcx,%r12), %rdx
incl %r15d
incq %r12
leaq 0x34da(%rip), %rsi      # 0x61a0
cmpb $-0x1, (%rdx,%rsi)
leaq 0x3467(%rip), %r14      # 0x6138
je 0x2bf4
leaq 0x345a(%rip), %r14      # 0x6138
addq $0x48, %r14
movq %r14, %rsi
movq (%rsi), %rsi
cmpq %r14, %rsi
je 0x2cf8
movb 0x10(%rsi), %dil
cmpb %dl, %dil
je 0x2d03
jle 0x2ce5
xorl %ebx, %ebx
leaq 0x3437(%rip), %r14      # 0x6138
jmp 0x2d0c
addq $0x10, %rsi
movb $0x1, %bl
movq %rsi, %r14
incl %r15d
movslq %r15d, %rdx
cmpq %rdx, %rax
ja 0x2bd8
testb %bl, %bl
jmp 0x2d29
leaq 0x3412(%rip), %r14      # 0x6138
testb $0x1, %bl
leaq -0x258(%rbp), %r15
je 0x2b7b
leaq 0x28(%r14), %rdi
leaq 0x1379(%rip), %rsi      # 0x40ba
callq 0x2080
testl %eax, %eax
je 0x2b7b
movl $0xb, %edx
movq 0x327e(%rip), %rdi      # 0x5fd8
leaq 0x1337(%rip), %rsi      # 0x4098
callq 0x2170
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
movq 0x3263(%rip), %rdi      # 0x5fd8
callq 0x2170
movq %rax, %r13
movl $0x16, %edx
movq %rax, %rdi
leaq 0x1318(%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 0x1306(%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 0x2b7b
movq 0x31ec(%rip), %rdi      # 0x5fd8
leaq 0x1285(%rip), %rsi      # 0x4078
movl $0x1a, %edx
callq 0x2170
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x31cd(%rip), %rdi      # 0x5fd8
callq 0x2170
movq %rax, %rbx
leaq 0x1279(%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 0x2e7c
leaq -0x258(%rbp), %rdi
callq 0x2040
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2e7a
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 0x2ea5
movq %rax, %rbx
jmp 0x2ec1
jmp 0x2ea5
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2ec1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x258(%rbp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x21d0