// File: salleaffaire[P]MXFParser/./dictionary.hpp
// Function: Dictionary<16>::find[abi:cxx11](Key<16> const&)
std::string find(const Key<T> &x) {
      std::string rval = "NULL";
      bool found = true;
      // Find the root
      auto it = mRootNodes.find(x[0]);
      if (it != mRootNodes.end()) {
         DictionaryNode *current_node = it->second;
         for (int i=1;i<T;i++) {
            // Test if there is a pass-all vertex
            auto pa_it = current_node->mChildrenNodes.find(0xFFFF);
            // Test if there is a matching vertex
            auto it = current_node->mChildrenNodes.find(x[i]);

            // If there is a matching node - take it
            if (it != current_node->mChildrenNodes.end()) {              
               current_node = it->second;
            }
            // Else if there is a pass-all node - take it
            else if (pa_it != current_node->mChildrenNodes.end()) { 
               current_node = pa_it->second;
            }
            // No Match
            else {
               found = false;
               break;
            }
         }
         if (found) {
            rval = current_node->mValue;
         }
      }
      return rval;
   }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x98(%rbp)
movq %rdi, %rax
movq %rax, -0xa8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
movb $0x0, -0x19(%rbp)
leaq -0x1a(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x3390
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rdx
leaq 0x55fc(%rip), %rsi      # 0xc3e8
callq 0x61e0
jmp 0x6df3
leaq -0x1a(%rbp), %rdi
callq 0x3250
movq -0xa0(%rbp), %rax
movb $0x1, -0x2d(%rbp)
movq %rax, -0xb8(%rbp)
movq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x71c0
movb %al, -0xa9(%rbp)
jmp 0x6e21
movq -0xb8(%rbp), %rdi
movb -0xa9(%rbp), %al
movzbl %al, %eax
movw %ax, -0x3a(%rbp)
leaq -0x3a(%rbp), %rsi
callq 0x7190
movq %rax, -0xc0(%rbp)
jmp 0x6e47
movq -0xa0(%rbp), %rdi
movq -0xc0(%rbp), %rax
movq %rax, -0x38(%rbp)
callq 0x7210
movq %rax, -0x48(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x71e0
testb $0x1, %al
jne 0x6e78
jmp 0x6ff9
leaq -0x38(%rbp), %rdi
callq 0x7240
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
movl $0x1, -0x54(%rbp)
cmpl $0x10, -0x54(%rbp)
jge 0x6fdd
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
movw $0xffff, -0x62(%rbp)    # imm = 0xFFFF
leaq -0x62(%rbp), %rsi
callq 0x7190
movq %rax, -0xc8(%rbp)
jmp 0x6eba
movq -0xc8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rax
addq $0x20, %rax
movq %rax, -0xd8(%rbp)
movq -0x18(%rbp), %rdi
movzbl -0x54(%rbp), %esi
callq 0x71c0
movb %al, -0xc9(%rbp)
jmp 0x6ee9
movq -0xd8(%rbp), %rdi
movb -0xc9(%rbp), %al
movzbl %al, %eax
movw %ax, -0x72(%rbp)
leaq -0x72(%rbp), %rsi
callq 0x7190
movq %rax, -0xe0(%rbp)
jmp 0x6f0f
movq -0xe0(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
callq 0x7210
movq %rax, -0x80(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x71e0
testb $0x1, %al
jne 0x6f3e
jmp 0x6f88
leaq -0x70(%rbp), %rdi
callq 0x7240
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
jmp 0x6fcd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x1a(%rbp), %rdi
callq 0x3250
jmp 0x701f
movq -0x98(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x33c8
jmp 0x701f
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
callq 0x7210
movq %rax, -0x88(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x71e0
testb $0x1, %al
jne 0x6fb2
jmp 0x6fc5
leaq -0x60(%rbp), %rdi
callq 0x7240
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
jmp 0x6fcb
movb $0x0, -0x2d(%rbp)
jmp 0x6fdd
jmp 0x6fcd
jmp 0x6fcf
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x6e90
testb $0x1, -0x2d(%rbp)
je 0x6ff7
movq -0x98(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x3050
jmp 0x6ff5
jmp 0x6ff7
jmp 0x6ff9
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x700f
movq -0x98(%rbp), %rdi
callq 0x33c8
movq -0xa8(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x3380
nopl (%rax,%rax)