// File: /workspace/github_cpp_makefile_star2_O3/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 0x45a3(%rip), %al       # 0x71a0
testb %al, %al
je 0x2dda
leaq 0x10(%r14), %r12
leaq -0xc8(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x2b2a
movq %r12, %rdi
movq %r13, %rsi
callq 0x3d2e
movq %rax, %r12
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2c48
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x21a0
leaq 0x18(%r14), %rax
cmpq %rax, %r12
je 0x2c97
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rdi
callq 0x332c
movq 0x40(%r12), %rax
movq %rax, -0x48(%rbp)
movq 0x48(%r12), %rax
movq %rax, -0x40(%rbp)
testq %rax, %rax
je 0x2ce8
movq 0x4333(%rip), %rcx      # 0x6fc0
cmpb $0x0, (%rcx)
je 0x2ce4
incl 0x8(%rax)
jmp 0x2ce8
leaq -0x98(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0x332c
movq 0x44d1(%rip), %rax      # 0x7190
movq %rax, -0x68(%rbp)
movq 0x44ce(%rip), %rax      # 0x7198
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0x2d51
movq 0x42e6(%rip), %rcx      # 0x6fc0
cmpb $0x0, (%rcx)
je 0x2d4d
incl 0x8(%rax)
jmp 0x2d51
lock
incl 0x8(%rax)
movq (%r14), %rax
movq %rax, -0x38(%rbp)
movq 0x8(%r14), %rax
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2d11
movq 0x42bd(%rip), %rcx      # 0x6fc0
cmpb $0x0, (%rcx)
je 0x2d0d
incl 0x8(%rax)
jmp 0x2d11
lock
incl 0x8(%rax)
leaq -0x88(%rbp), %rsi
leaq -0x48(%rbp), %rdx
leaq -0x38(%rbp), %rcx
movq %rbx, %rdi
callq 0x32a2
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x2d36
callq 0x2748
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2d44
callq 0x2748
movq -0x88(%rbp), %rdi
jmp 0x2db4
lock
incl 0x8(%rax)
movq (%r14), %rax
movq %rax, -0x58(%rbp)
movq 0x8(%r14), %rax
movq %rax, -0x50(%rbp)
testq %rax, %rax
je 0x2d7a
movq 0x4254(%rip), %rcx      # 0x6fc0
cmpb $0x0, (%rcx)
je 0x2d76
incl 0x8(%rax)
jmp 0x2d7a
lock
incl 0x8(%rax)
leaq -0xa8(%rbp), %rsi
leaq -0x68(%rbp), %rdx
leaq -0x58(%rbp), %rcx
movq %rbx, %rdi
callq 0x32a2
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x2d9f
callq 0x2748
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x2dad
callq 0x2748
movq -0xa8(%rbp), %rdi
cmpq %r13, %rdi
je 0x2dc5
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 0x43bf(%rip), %rdi      # 0x71a0
callq 0x22a0
testl %eax, %eax
je 0x2c05
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, 0x4371(%rip)      # 0x7190
leaq 0x4372(%rip), %rdi      # 0x7198
movq %rax, %rsi
callq 0x3ad4
leaq 0xc89(%rip), %rdi       # 0x3abe
leaq 0x4354(%rip), %rsi      # 0x7190
leaq 0x432d(%rip), %rdx      # 0x7170
callq 0x2170
leaq 0x4351(%rip), %rdi      # 0x71a0
callq 0x20f0
jmp 0x2c05
movq %rax, %rbx
leaq 0x433d(%rip), %rdi      # 0x71a0
callq 0x20e0
jmp 0x2ef4
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x2e7e
callq 0x2748
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x2e8c
callq 0x2748
movq -0xa8(%rbp), %rdi
cmpq %r13, %rdi
je 0x2ef4
movq -0x98(%rbp), %rsi
jmp 0x2eec
movq %rax, %rbx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x2eb2
callq 0x2748
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2ec0
callq 0x2748
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x2ef4
movq -0x78(%rbp), %rsi
jmp 0x2eec
movq %rax, %rbx
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ef4
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x2280