// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/RNBasics/json.cpp
// Function: Json::Value::resolveReference(char const*, char const*)
Value& Value::resolveReference(char const* key, char const* cend)
{
  JSON_ASSERT_MESSAGE(
      type_ == nullValue || type_ == objectValue,
      "in Json::Value::resolveReference(key, end): requires objectValue");
  if (type_ == nullValue)
    *this = Value(objectValue);
  CZString actualKey(
      key, static_cast<unsigned>(cend-key), CZString::duplicateOnCopy);
  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 %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movzwl 0x8(%rdi), %ebp
testb %bpl, %bpl
je 0x83f5e
movzbl %bpl, %eax
cmpl $0x7, %eax
je 0x8402b
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x11800
leaq 0x3d9cc(%rip), %rsi     # 0xc1904
movl $0x40, %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, %r13d      # imm = 0xFFFFFE00
leaq 0x28(%rsp), %r12
andl 0x8(%r12), %r13d
leal 0x7(%r13), %eax
movw %ax, 0x8(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r12)
xorl %eax, %eax
movq %rax, 0x20(%r12)
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)
xorl %ecx, %ecx
movq %rcx, 0x28(%rax)
movq %rax, (%r12)
movl %ebp, %eax
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
orl $0x7, %eax
movw %ax, 0x8(%rbx)
addl 0x4(%rsp), %r13d
movw %r13w, 0x8(%r12)
movq (%rbx), %rcx
movq (%r12), %rdx
movq %rdx, (%rbx)
movq %rcx, (%r12)
andl $0xfe07, %eax           # imm = 0xFE07
movw %ax, 0x8(%rbx)
andl $0x100, %ebp            # imm = 0x100
orl %r13d, %ebp
movw %bp, 0x8(%r12)
movq 0x10(%rbx), %rax
movq 0x10(%r12), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, 0x10(%r12)
movups 0x18(%rbx), %xmm0
movups 0x18(%r12), %xmm1
movups %xmm1, 0x18(%rbx)
movups %xmm0, 0x18(%r12)
movq %r12, %rdi
callq 0x82500
subl %r15d, %r14d
movq %r15, 0x8(%rsp)
leal 0x2(,%r14,4), %eax
movl %eax, 0x10(%rsp)
movq (%rbx), %r12
movq 0x10(%r12), %r13
addq $0x8, %r12
movq %r12, %r14
testq %r13, %r13
je 0x8407a
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 0x8405b
cmpq %r12, %r14
je 0x84091
leaq 0x20(%r14), %rdi
leaq 0x8(%rsp), %rsi
callq 0x81f86
testb %al, %al
jne 0x840e1
leaq 0x3cea8(%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 0x840e1
movl 0x58(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x840e1
callq 0x11720
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x840fc
movl 0x10(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x840fc
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 0x8413a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x8413a
jmp 0x84137
movq %rax, %rbx
movq 0x81e5f(%rip), %rsi     # 0x105fa0
leaq 0x50(%rsp), %rdi
callq 0x112f0
leaq 0xc0(%rsp), %rdi
callq 0x111f0
jmp 0x84187
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x89de4
jmp 0x8416c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x84187
movl 0x10(%rsp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x84187
callq 0x11720
movq %rbx, %rdi
callq 0x11a70
nop