// File: AgathokakologicalBit[P]wit/src/annotation/../context.hpp
// Function: akbit::system::Context::find(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) const
std::vector<std::shared_ptr<DeclarationRecord>> find(std::string& name) const
    {
      std::vector<std::shared_ptr<DeclarationRecord>> results{};
      std::copy_if(this->declarations.begin(), this->declarations.end(),
                   std::back_inserter(results),
                   [&](auto& record) { return record->name == name; });
      if (!this->parent.lock()) return results;

      auto rest = this->parent.lock()->find(name);
      results.reserve(results.size() + rest.size());
      results.insert(results.end(), rest.begin(), rest.end());
      return results;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0xd0(%rbp)
movq %rdi, %rax
movq %rax, -0xe8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xe0(%rbp)
movb $0x0, -0x19(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
callq 0x2e610
movq -0xe0(%rbp), %rdi
addq $0x18, %rdi
movq %rdi, -0xd8(%rbp)
callq 0x2e6c0
movq -0xd8(%rbp), %rdi
movq %rax, -0x28(%rbp)
callq 0x2e6f0
movq -0xd0(%rbp), %rdi
movq %rax, -0x30(%rbp)
callq 0x2e720
movq %rax, -0xc8(%rbp)
jmp 0x2e20a
movq -0xc8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x50(%rbp), %rcx
callq 0x2e630
movq %rax, -0xf0(%rbp)
jmp 0x2e23b
movq -0xe0(%rbp), %rsi
movq -0xf0(%rbp), %rax
movq %rax, -0x58(%rbp)
addq $0x8, %rsi
leaq -0x68(%rbp), %rdi
callq 0xd9f0
leaq -0x68(%rbp), %rdi
callq 0x2e750
xorb $-0x1, %al
movb %al, -0xf1(%rbp)
leaq -0x68(%rbp), %rdi
callq 0xabf0
movb -0xf1(%rbp), %al
testb $0x1, %al
jne 0x2e280
jmp 0x2e2a1
movb $0x1, -0x19(%rbp)
movl $0x1, -0x6c(%rbp)
jmp 0x2e3fb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x2e41d
movq -0xe0(%rbp), %rsi
addq $0x8, %rsi
leaq -0x98(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0xd9f0
movq -0x100(%rbp), %rdi
callq 0xda20
movq %rax, %rsi
movq -0x18(%rbp), %rdx
leaq -0x88(%rbp), %rdi
callq 0x2e180
jmp 0x2e2e0
leaq -0x98(%rbp), %rdi
callq 0xabf0
movq -0xd0(%rbp), %rdi
callq 0x2dba0
movq %rax, -0x108(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x2dba0
movq -0x108(%rbp), %rsi
movq -0xd0(%rbp), %rdi
addq %rax, %rsi
callq 0x2e770
jmp 0x2e323
movq -0xd0(%rbp), %rdi
callq 0x2d570
movq %rax, -0xa8(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x2e920
leaq -0x88(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x2d9f0
movq -0x118(%rbp), %rdi
movq %rax, -0xb0(%rbp)
callq 0x2d570
movq -0xd0(%rbp), %rdi
movq %rax, -0xb8(%rbp)
movq -0xa0(%rbp), %rsi
movq -0xb0(%rbp), %rdx
movq -0xb8(%rbp), %rcx
callq 0x2e870
movq %rax, -0x110(%rbp)
jmp 0x2e3a0
movq -0x110(%rbp), %rax
movq %rax, -0xc0(%rbp)
movb $0x1, -0x19(%rbp)
movl $0x1, -0x6c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x2e5b0
jmp 0x2e3fb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x98(%rbp), %rdi
callq 0xabf0
jmp 0x2e41d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x2e5b0
jmp 0x2e41d
testb $0x1, -0x19(%rbp)
jne 0x2e40d
movq -0xd0(%rbp), %rdi
callq 0x2e5b0
movq -0xe8(%rbp), %rax
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0xd0(%rbp), %rdi
callq 0x2e5b0
movq -0x40(%rbp), %rdi
callq 0x4560
nopw %cs:(%rax,%rax)
nopl (%rax)