// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH11_AssociativeContainers/examples/word_transform.cc
// Function: buildMap[abi:cxx11](std::basic_ifstream<char, std::char_traits<char>>&)
map<string, string> buildMap(ifstream& map_file)
{
	map<string, string> trans_map;   // holds the transformations
	string key;    // a word to transform
	string value;  // phrase to use instead
	// read the first word into key and the rest of the line into value
	while (map_file >> key && getline(map_file, value))
		if (value.size() > 1) // check that there is a transformation
			trans_map[key] = value.substr(1); // skip leading space
		else
			throw runtime_error("no rule for " + key);
	return trans_map;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movl $0x0, 0x8(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rcx, 0x28(%rdi)
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
leaq -0x88(%rbp), %r15
leaq -0x68(%rbp), %r12
leaq -0x48(%rbp), %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x21c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x24d2
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x2280
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x24d2
cmpq $0x2, -0x60(%rbp)
jb 0x2519
movl $0x1, %edx
movq %r13, %rdi
movq %r12, %rsi
movq $-0x1, %rcx
callq 0x2180
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2b48
movq %rax, %rdi
movq %r13, %rsi
callq 0x21b0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x242b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x242b
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x24eb
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x2507
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20e0
movq %rax, %r15
leaq 0x1ad7(%rip), %rsi      # 0x4004
leaq -0x48(%rbp), %rdi
leaq -0x88(%rbp), %rdx
callq 0x2bc7
movb $0x1, %r12b
leaq -0x48(%rbp), %rsi
movq %r15, %rdi
callq 0x2210
xorl %r12d, %r12d
movq 0x3a9a(%rip), %rsi      # 0x5ff0
movq 0x3a6b(%rip), %rdx      # 0x5fc8
movq %r15, %rdi
callq 0x2240
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2589
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x2589
movq %rax, %r14
movb $0x1, %r12b
testb %r12b, %r12b
je 0x25bb
movq %r15, %rdi
callq 0x2120
jmp 0x25bb
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x25bb
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x25bb
jmp 0x25b8
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x25d4
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x25f0
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2d1a
movq %r14, %rdi
callq 0x2250