// File: /workspace/github_cpp_makefile_star2_O1/ruankotovich[P]TextCorrection-Trie/src/trie.hpp
// Function: trie::Trie_t::searchSimilarKeyword(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
std::priority_queue<TrieResponse_t, std::vector<TrieResponse_t>, TrieResponseComparator_t> searchSimilarKeyword(std::string& keyword)
    {
      std::priority_queue<TrieResponse_t, std::vector<TrieResponse_t>, TrieResponseComparator_t> ocurrencesQueue;

      std::transform(keyword.begin(), keyword.end(), keyword.begin(), ::tolower);

      std::set<ActiveNode_t> lastActiveNodes = this->m_activeNodeSet;

      wchar_t chart[keyword.size()];
      push_string_to_wchar(chart, keyword);

      for (unsigned int i = 0; i < wcslen(chart); i++) {
        lastActiveNodes = buildNewSet(lastActiveNodes, m_characterMap[chart[i]]);
      }

      for (auto node : lastActiveNodes) {

        if (node.node->isEndOfWord()) {
          for (auto& _target : *node.node->getValues()) {
            ocurrencesQueue.emplace(_target, node.editDistance);
          }
        }
      }

      return ocurrencesQueue;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movq %rsi, -0x30(%rbp)
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x8(%rdx), %r15
testq %r15, %r15
je 0x3739
movq (%r14), %r12
xorl %r13d, %r13d
movsbl (%r12,%r13), %edi
callq 0x21e0
movb %al, (%r12,%r13)
incq %r13
cmpq %r13, %r15
jne 0x3723
movq %r14, %r15
movq -0x30(%rbp), %r14
leaq 0x78(%r14), %rsi
leaq -0xb0(%rbp), %rdi
callq 0x620a
movq %rsp, -0x78(%rbp)
movq %r15, %rdx
movq 0x8(%r15), %rax
movq %rsp, %r12
leaq 0xf(,%rax,4), %r13
andq $-0x10, %r13
movq %r12, %r15
subq %r13, %r15
movq %r15, %rsp
negq %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x4020
cmpl $0x0, (%r12,%r13)
je 0x3846
movq -0x30(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x80(%rbp)
movl $0x1, %r12d
leaq -0xb0(%rbp), %r14
xorl %r13d, %r13d
movl (%r15,%r13,4), %eax
movl %eax, -0x34(%rbp)
movq -0x80(%rbp), %rdi
leaq -0x34(%rbp), %rsi
callq 0x4a1a
movq -0x30(%rbp), %rsi
movl (%rax), %ecx
leaq -0x70(%rbp), %rdi
movq %r14, %rdx
callq 0x5e2e
movq %r14, %rdi
callq 0x682a
movq -0x60(%rbp), %rax
testq %rax, %rax
je 0x3826
movl -0x68(%rbp), %ecx
movl %ecx, -0xa8(%rbp)
movq %rax, -0xa0(%rbp)
movups -0x58(%rbp), %xmm0
movups %xmm0, -0x98(%rbp)
leaq -0xa8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x48(%rbp), %rax
movq %rax, -0x88(%rbp)
xorl %ecx, %ecx
movq %rcx, -0x60(%rbp)
leaq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq %rax, -0x50(%rbp)
movq %rcx, -0x48(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x47b2
movl %r12d, %r13d
movq %r15, %rdi
callq 0x2120
incl %r12d
cmpq %r13, %rax
ja 0x37a8
leaq -0xa8(%rbp), %rax
movq 0x10(%rax), %r14
cmpq %rax, %r14
je 0x38b4
leaq -0x68(%rbp), %r15
movups 0x20(%r14), %xmm0
movaps %xmm0, -0x70(%rbp)
movq -0x70(%rbp), %rax
cmpb $0x1, 0x34(%rax)
jne 0x389d
movq 0x38(%rax), %rax
movq (%rax), %r12
movq 0x8(%rax), %r13
cmpq %r13, %r12
je 0x389d
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x6858
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
callq 0x6884
addq $0x20, %r12
jmp 0x3878
movq %r14, %rdi
callq 0x21b0
movq %rax, %r14
leaq -0xa8(%rbp), %rax
cmpq %rax, %r14
jne 0x385a
movq -0x78(%rbp), %rsp
leaq -0xb0(%rbp), %rdi
callq 0x47b2
movq %rbx, %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x38ec
jmp 0x38dd
movq %rax, %r14
leaq -0xb0(%rbp), %rdi
callq 0x47b2
movq %rbx, %rdi
callq 0x6d62
movq %r14, %rdi
callq 0x2270