// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/RNBasics/json.cpp
// Function: Json::Value::resolveReference(char const*)
Value& Value::resolveReference(const char* key) {
  JSON_ASSERT_MESSAGE(
      type_ == nullValue || type_ == objectValue,
      "in Json::Value::resolveReference(): requires objectValue");
  if (type_ == nullValue)
    *this = Value(objectValue);
  CZString actualKey(
      key, static_cast<unsigned>(strlen(key)), CZString::noDuplication); // NOTE!
  ObjectValues::iterator it = value_.map_->lower_bound(actualKey);
  if (it != value_.map_->end() && (*it).first == actualKey)
    return (*it).second;

  ObjectValues::value_type defaultValue(actualKey, nullRef);
  it = value_.map_->insert(it, defaultValue);
  Value& value = (*it).second;
  return value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rsi, %r14
movq %rdi, %rbx
movzwl 0x8(%rdi), %ebp
testb %bpl, %bpl
je 0x83ccf
movzbl %bpl, %eax
cmpl $0x7, %eax
je 0x83d8f
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x11800
leaq 0x3dc22(%rip), %rsi     # 0xc18cb
movl $0x38, %edx
movq %rbx, %rdi
callq 0x116d0
leaq 0x58(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x11990
leaq 0x8(%rsp), %rdi
callq 0x81bd3
movzbl %bpl, %eax
movl %eax, 0x4(%rsp)
movl $0xfffffe00, %r12d      # imm = 0xFFFFFE00
leaq 0x28(%rsp), %r15
andl 0x8(%r15), %r12d
leal 0x7(%r12), %eax
movw %ax, 0x8(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r15)
xorl %r13d, %r13d
movq %r13, 0x20(%r15)
movl $0x30, %edi
callq 0x115b0
leaq 0x8(%rax), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %r13, 0x28(%rax)
movq %rax, (%r15)
movl %ebp, %eax
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
orl $0x7, %eax
movw %ax, 0x8(%rbx)
addl 0x4(%rsp), %r12d
movw %r12w, 0x8(%r15)
movq (%rbx), %rcx
movq (%r15), %rdx
movq %rdx, (%rbx)
movq %rcx, (%r15)
andl $0xfe07, %eax           # imm = 0xFE07
movw %ax, 0x8(%rbx)
andl $0x100, %ebp            # imm = 0x100
orl %r12d, %ebp
movw %bp, 0x8(%r15)
movq 0x10(%rbx), %rax
movq 0x10(%r15), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, 0x10(%r15)
movups 0x18(%rbx), %xmm0
movups 0x18(%r15), %xmm1
movups %xmm1, 0x18(%rbx)
movups %xmm0, 0x18(%r15)
movq %r15, %rdi
callq 0x82500
movq %r14, %rdi
callq 0x11260
movq %r14, 0x8(%rsp)
shll $0x2, %eax
movl %eax, 0x10(%rsp)
movq (%rbx), %r12
movq 0x10(%r12), %r13
addq $0x8, %r12
movq %r12, %r14
testq %r13, %r13
je 0x83dde
leaq 0x8(%rsp), %r15
movq %r12, %r14
leaq 0x20(%r13), %rdi
movq %r15, %rsi
callq 0x81f3c
testb %al, %al
cmoveq %r13, %r14
movzbl %al, %eax
movq 0x10(%r13,%rax,8), %r13
testq %r13, %r13
jne 0x83dbf
cmpq %r12, %r14
je 0x83df5
leaq 0x20(%r14), %rdi
leaq 0x8(%rsp), %rsi
callq 0x81f86
testb %al, %al
jne 0x83e45
leaq 0x3d144(%rip), %rdx     # 0xc0f40
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x89d9e
movq (%rbx), %rdi
leaq 0x50(%rsp), %rdx
movq %r14, %rsi
callq 0x8c464
movq %rax, %r14
leaq 0x60(%rsp), %rbx
movq %rbx, %rdi
callq 0x82500
movq -0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x83e45
movl 0x58(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x83e45
callq 0x11720
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x83e60
movl 0x10(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x83e60
callq 0x11720
addq $0x30, %r14
movq %r14, %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x83e9e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x83e9e
jmp 0x83e9b
movq %rax, %rbx
movq 0x820fb(%rip), %rsi     # 0x105fa0
leaq 0x50(%rsp), %rdi
callq 0x112f0
leaq 0xc0(%rsp), %rdi
callq 0x111f0
jmp 0x83eeb
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x89de4
jmp 0x83ed0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x83eeb
movl 0x10(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x83eeb
callq 0x11720
movq %rbx, %rdi
callq 0x11a70
nop