// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH12_DynamicMemory/exercises/ex12_27_30.cc
// Function: TextQuery::query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
QueryResult TextQuery::query(const string& sought) const
{
	static shared_ptr<set<line_no>> nodata(new set<line_no>);

	auto loc = wm.find(clean_str(sought));

	if (loc == wm.end())
		return QueryResult(sought, nodata, file);
	else
		return QueryResult(sought, loc->second, file);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movb 0x4581(%rip), %al       # 0x71a0
testb %al, %al
je 0x2dfc
leaq 0x10(%r14), %r12
leaq -0xc8(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x2b66
movq %r12, %rdi
movq %r13, %rsi
callq 0x3d84
movq %rax, %r12
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2c6a
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x21a0
leaq 0x18(%r14), %rax
cmpq %rax, %r12
je 0x2cb9
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rdi
callq 0x334e
movq 0x40(%r12), %rax
movq %rax, -0x48(%rbp)
movq 0x48(%r12), %rax
movq %rax, -0x40(%rbp)
testq %rax, %rax
je 0x2d0a
movq 0x4311(%rip), %rcx      # 0x6fc0
cmpb $0x0, (%rcx)
je 0x2d06
incl 0x8(%rax)
jmp 0x2d0a
leaq -0x98(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0x334e
movq 0x44af(%rip), %rax      # 0x7190
movq %rax, -0x68(%rbp)
movq 0x44ac(%rip), %rax      # 0x7198
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0x2d73
movq 0x42c4(%rip), %rcx      # 0x6fc0
cmpb $0x0, (%rcx)
je 0x2d6f
incl 0x8(%rax)
jmp 0x2d73
lock
incl 0x8(%rax)
movq (%r14), %rax
movq %rax, -0x38(%rbp)
movq 0x8(%r14), %rax
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2d33
movq 0x429b(%rip), %rcx      # 0x6fc0
cmpb $0x0, (%rcx)
je 0x2d2f
incl 0x8(%rax)
jmp 0x2d33
lock
incl 0x8(%rax)
leaq -0x88(%rbp), %rsi
leaq -0x48(%rbp), %rdx
leaq -0x38(%rbp), %rcx
movq %rbx, %rdi
callq 0x32c4
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x2d58
callq 0x2788
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2d66
callq 0x2788
movq -0x88(%rbp), %rdi
jmp 0x2dd6
lock
incl 0x8(%rax)
movq (%r14), %rax
movq %rax, -0x58(%rbp)
movq 0x8(%r14), %rax
movq %rax, -0x50(%rbp)
testq %rax, %rax
je 0x2d9c
movq 0x4232(%rip), %rcx      # 0x6fc0
cmpb $0x0, (%rcx)
je 0x2d98
incl 0x8(%rax)
jmp 0x2d9c
lock
incl 0x8(%rax)
leaq -0xa8(%rbp), %rsi
leaq -0x68(%rbp), %rdx
leaq -0x58(%rbp), %rcx
movq %rbx, %rdi
callq 0x32c4
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x2dc1
callq 0x2788
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x2dcf
callq 0x2788
movq -0xa8(%rbp), %rdi
cmpq %r13, %rdi
je 0x2de7
movq (%r13), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x439d(%rip), %rdi      # 0x71a0
callq 0x22a0
testl %eax, %eax
je 0x2c27
movl $0x30, %edi
callq 0x2190
movq %rax, %rcx
addq $0x8, %rcx
movl $0x0, 0x8(%rax)
xorl %edx, %edx
movq %rdx, 0x10(%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %rdx, 0x28(%rax)
movq %rax, 0x434f(%rip)      # 0x7190
leaq 0x4350(%rip), %rdi      # 0x7198
movq %rax, %rsi
callq 0x3b26
leaq 0xcb9(%rip), %rdi       # 0x3b10
leaq 0x4332(%rip), %rsi      # 0x7190
leaq 0x430b(%rip), %rdx      # 0x7170
callq 0x2170
leaq 0x432f(%rip), %rdi      # 0x71a0
callq 0x20f0
jmp 0x2c27
movq %rax, %rbx
leaq 0x431b(%rip), %rdi      # 0x71a0
callq 0x20e0
jmp 0x2f16
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x2ea0
callq 0x2788
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x2eae
callq 0x2788
movq -0xa8(%rbp), %rdi
cmpq %r13, %rdi
je 0x2f16
movq -0x98(%rbp), %rsi
jmp 0x2f0e
movq %rax, %rbx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x2ed4
callq 0x2788
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2ee2
callq 0x2788
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x2f16
movq -0x78(%rbp), %rsi
jmp 0x2f0e
movq %rax, %rbx
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f16
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x2280