// File: silverneko[P]Lambda-calculus-interpreter/src/Dictionary.hpp
// Function: (anonymous namespace)::Trie<std::shared_ptr<Object>>::insert(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::shared_ptr<Object> const&, int) const
shared_ptr<Trie<T>> insert(const string& str, const T& t, int i = 0) const {
      shared_ptr<Trie<T>> newNode(new Trie<T>(*this));
      if(i == str.size()){
        newNode->endHere = true;
        newNode->cargo = t;
      }else{
        char c = str[i];
        auto branch = branches.find(c);
        if(branch != branches.end()){
          newNode->branches[c] = branch->second->insert(str, t, i+1);
        }else{
          shared_ptr<Trie<T>> empty(new Trie<T>());
          newNode->branches[c] = empty->insert(str, t, i+1);
        }
      }
      return newNode;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x98(%rbp)
movq %rdi, %rax
movq %rax, -0x90(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
movb $0x0, -0x25(%rbp)
movl $0x50, %edi
callq 0x3230
movq -0x88(%rbp), %rsi
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x80(%rbp)
callq 0x8700
jmp 0x83d1
movq -0x80(%rbp), %rsi
movq -0x98(%rbp), %rdi
callq 0x7a30
movslq -0x24(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x3170
movq %rax, %rcx
movq -0xa0(%rbp), %rax
cmpq %rcx, %rax
jne 0x8462
movq -0x98(%rbp), %rdi
callq 0x8350
movq -0x98(%rbp), %rdi
movb $0x1, 0x38(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0xa8(%rbp)
callq 0x8350
movq -0xa8(%rbp), %rsi
movq %rax, %rdi
addq $0x40, %rdi
callq 0x12920
jmp 0x8647
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
movl $0x50, %esi
callq 0x3240
jmp 0x8679
movq -0x18(%rbp), %rdi
movslq -0x24(%rbp), %rsi
callq 0x32a0
movq -0x88(%rbp), %rdi
movb (%rax), %al
movb %al, -0x35(%rbp)
leaq -0x35(%rbp), %rsi
callq 0x8750
movq %rax, -0xb0(%rbp)
jmp 0x848d
movq -0x88(%rbp), %rdi
movq -0xb0(%rbp), %rax
movq %rax, -0x40(%rbp)
callq 0x87b0
movq %rax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x8780
testb $0x1, %al
jne 0x84be
jmp 0x855a
leaq -0x40(%rbp), %rdi
callq 0x87e0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x8350
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %r8d
incl %r8d
leaq -0x58(%rbp), %rdi
callq 0x8370
jmp 0x84f0
movq -0x98(%rbp), %rdi
callq 0x8350
movq %rax, %rdi
leaq -0x35(%rbp), %rsi
callq 0x8810
movq %rax, -0xb8(%rbp)
jmp 0x8511
movq -0xb8(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x8840
leaq -0x58(%rbp), %rdi
callq 0x7970
jmp 0x8645
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x866d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x7970
jmp 0x866d
movl $0x50, %edi
callq 0x3230
movq %rax, -0xc0(%rbp)
jmp 0x856d
movq -0xc0(%rbp), %rdi
callq 0x7a00
jmp 0x857b
movq -0xc0(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x7a30
jmp 0x858d
leaq -0x68(%rbp), %rdi
callq 0x8350
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %r8d
incl %r8d
leaq -0x78(%rbp), %rdi
callq 0x8370
jmp 0x85b3
movq -0x98(%rbp), %rdi
callq 0x8350
movq %rax, %rdi
leaq -0x35(%rbp), %rsi
callq 0x8810
movq %rax, -0xc8(%rbp)
jmp 0x85d4
movq -0xc8(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x8840
leaq -0x78(%rbp), %rdi
callq 0x7970
leaq -0x68(%rbp), %rdi
callq 0x7970
jmp 0x8645
movq -0xc0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
movl $0x50, %esi
callq 0x3240
jmp 0x866d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x863a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x7970
leaq -0x68(%rbp), %rdi
callq 0x7970
jmp 0x866d
jmp 0x8647
movb $0x1, -0x25(%rbp)
testb $0x1, -0x25(%rbp)
jne 0x865d
movq -0x98(%rbp), %rdi
callq 0x7970
movq -0x90(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
movq -0x98(%rbp), %rdi
callq 0x7970
movq -0x30(%rbp), %rdi
callq 0x33c0
nopw %cs:(%rax,%rax)