// File: /workspace/github_cpp_makefile_star2_O1/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 0x298d
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 0x29f8
cmpq $0x0, -0x60(%rbp)
je 0x279e
movq -0x68(%rbp), %rax
cmpb $0x23, (%rax)
je 0x2756
movl $0x2, %ecx
movq %rbx, %rdi
leaq 0x18e8(%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
cmpq $0x0, -0x40(%rbp)
leaq 0x3947(%rip), %r15      # 0x6138
je 0x291e
xorl %ebx, %ebx
leaq 0x3938(%rip), %r15      # 0x6138
movq %r15, %r14
addq $0x48, %r14
movq -0x48(%rbp), %rax
movq %r14, %r15
movq (%r15), %r15
cmpq %r14, %r15
je 0x2825
movb (%rax,%rbx), %cl
cmpb %cl, 0x10(%r15)
je 0x290d
jle 0x280e
movsbl (%rax,%rbx), %esi
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)
movq %r13, %rdi
leaq -0xa8(%rbp), %rdx
leaq -0x88(%rbp), %rcx
callq 0x326a
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x3342
movq %rax, %r15
leaq -0xe0(%rbp), %rdi
callq 0x31f8
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x28ad
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x28cf
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x28eb
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x290d
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x2150
addq $0x10, %r15
incq %rbx
cmpq %rbx, -0x40(%rbp)
ja 0x2800
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 0x2960
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 0x2756
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x2756
movq 0x3644(%rip), %rdi      # 0x5fd8
leaq 0x16dd(%rip), %rsi      # 0x4078
movl $0x1a, %edx
callq 0x2170
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x3625(%rip), %rdi      # 0x5fd8
callq 0x2170
movq %rax, %rbx
leaq 0x16d1(%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 0x2a1d
leaq -0x338(%rbp), %rdi
callq 0x2040
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2a1d
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 0x2a54
movq %rax, %r14
jmp 0x2b02
movq %rax, %r14
jmp 0x2ad0
jmp 0x2a54
movq %rax, %r14
jmp 0x2aae
movq %rax, %r14
jmp 0x2ae9
movq %rax, %r14
jmp 0x2a70
movq %rax, %r14
leaq -0x128(%rbp), %rdi
callq 0x3120
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x2a8c
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x2aae
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x2ad0
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2ae9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2b02
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x338(%rbp), %rdi
callq 0x2060
movq %r14, %rdi
callq 0x21d0