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

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

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

	string line;
	size_t index;

	while (getline(fs, line)) {
		if (line.size() != 0 && line[0] == '#')
			continue;
		index = line.find("||");
		insert_typo(line.substr(0, index), line.substr(index + 2));
	}

	fs.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movq %rdi, %rbx
leaq -0x338(%rbp), %r14
movq %r14, %rdi
callq 0x2180
movq (%rbx), %rsi
movq %r14, %rdi
movl $0x8, %edx
callq 0x2120
leaq -0x2b8(%rbp), %rdi
callq 0x2070
testb %al, %al
je 0x2995
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x68(%rbp), %rbx
xorl %r12d, %r12d
leaq -0x128(%rbp), %r13
movq -0x338(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x21f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2a00
cmpq $0x0, -0x60(%rbp)
je 0x27a2
movq -0x68(%rbp), %rax
cmpb $0x23, (%rax)
je 0x275a
movl $0x2, %ecx
movq %rbx, %rdi
leaq 0x18e4(%rip), %rsi      # 0x4095
xorl %edx, %edx
callq 0x21c0
movq %rax, %r14
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x2160
addq $0x2, %r14
leaq -0xc8(%rbp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq $-0x1, %rcx
callq 0x2160
movq -0x40(%rbp), %rax
leaq 0x3944(%rip), %r15      # 0x6138
testq %rax, %rax
je 0x2926
xorl %ebx, %ebx
leaq 0x3932(%rip), %r15      # 0x6138
movq %r15, %r14
addq $0x48, %r14
movq -0x48(%rbp), %rcx
movb (%rcx,%rbx), %cl
movq %r14, %r15
movq (%r15), %r15
cmpq %r14, %r15
je 0x282b
cmpb %cl, 0x10(%r15)
je 0x2916
jle 0x2817
leaq -0x98(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq %r12, -0xa0(%rbp)
movb %r12b, -0x98(%rbp)
leaq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
movq %r12, -0x80(%rbp)
movb %r12b, -0x78(%rbp)
movsbl %cl, %esi
movq %r13, %rdi
leaq -0xa8(%rbp), %rdx
leaq -0x88(%rbp), %rcx
callq 0x327e
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x334e
movq %rax, %r15
leaq -0xe0(%rbp), %rdi
callq 0x320c
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x28b2
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x28d4
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x28f0
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x2912
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x40(%rbp), %rax
addq $0x10, %r15
incq %rbx
cmpq %rbx, %rax
ja 0x2806
leaq 0x8(%r15), %rdi
leaq -0x48(%rbp), %rsi
callq 0x20c0
addq $0x28, %r15
movq %r15, %rdi
leaq -0xc8(%rbp), %rsi
callq 0x20c0
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x2968
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
leaq -0x338(%rbp), %r14
leaq -0x68(%rbp), %rbx
je 0x275a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x275a
movq 0x363c(%rip), %rdi      # 0x5fd8
leaq 0x16d5(%rip), %rsi      # 0x4078
movl $0x1a, %edx
callq 0x2170
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x361d(%rip), %rdi      # 0x5fd8
callq 0x2170
movq %rax, %rbx
leaq 0x16c9(%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
movq %rax, %rdi
callq 0x20d0
jmp 0x2a25
leaq -0x338(%rbp), %rdi
callq 0x2040
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2a25
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x338(%rbp), %rdi
callq 0x2060
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2a5c
movq %rax, %r14
jmp 0x2b0a
movq %rax, %r14
jmp 0x2ad8
jmp 0x2a5c
movq %rax, %r14
jmp 0x2ab6
movq %rax, %r14
jmp 0x2af1
movq %rax, %r14
jmp 0x2a78
movq %rax, %r14
leaq -0x128(%rbp), %rdi
callq 0x3138
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x2a94
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x2ab6
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x2ad8
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2af1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2b0a
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x338(%rbp), %rdi
callq 0x2060
movq %r14, %rdi
callq 0x21d0