// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_value.cpp
// Function: Json::Value::resolveReference(char const*, char const*)
Value& Value::resolveReference(char const* key, char const* end) {
  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>(end - 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, nullSingleton());
  it = value_.map_->insert(it, defaultValue);
  Value& value = (*it).second;
  return value;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdx, %r14
movq %rdi, %rbx
movzwl 0x8(%rdi), %r13d
testb %r13b, %r13b
je 0x1559d
movzbl %r13b, %eax
cmpl $0x7, %eax
je 0x15681
leaq -0x1f8(%rbp), %rbx
movq %rbx, %rdi
callq 0x8870
leaq 0x549e8(%rip), %rsi     # 0x69f5f
movl $0x40, %edx
movq %rbx, %rdi
callq 0x8730
leaq -0x1f0(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x8a00
leaq -0x50(%rbp), %rdi
callq 0x1288d
movzbl %r13b, %eax
movl %eax, -0x2c(%rbp)
movl $0xfffffe00, %r15d      # imm = 0xFFFFFE00
leaq -0x80(%rbp), %r12
andl 0x8(%r12), %r15d
leal 0x7(%r15), %eax
movw %ax, 0x8(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r12)
xorl %eax, %eax
movq %rax, 0x20(%r12)
movl $0x30, %edi
movq %rsi, -0x58(%rbp)
callq 0x8640
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 %r13d, %eax
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
orl $0x7, %eax
movw %ax, 0x8(%rbx)
addl -0x2c(%rbp), %r15d
movw %r15w, 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, %r13d           # imm = 0x100
orl %r15d, %r13d
movw %r13w, 0x8(%r12)
movq 0x10(%rbx), %rax
movq 0x10(%r12), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, 0x10(%r12)
movq 0x18(%rbx), %rax
movq 0x18(%r12), %rcx
movq %rcx, 0x18(%rbx)
movq %rax, 0x18(%r12)
movq 0x20(%rbx), %rax
movq 0x20(%r12), %rcx
movq %rcx, 0x20(%rbx)
movq %rax, 0x20(%r12)
movq %r12, %rdi
callq 0x13416
movq -0x58(%rbp), %rsi
subl %esi, %r14d
movq %rsi, -0x50(%rbp)
leal 0x2(,%r14,4), %eax
movl %eax, -0x48(%rbp)
movq (%rbx), %r14
movq 0x10(%r14), %r12
addq $0x8, %r14
testq %r12, %r12
je 0x156c7
leaq -0x50(%rbp), %r15
leaq 0x20(%r12), %rdi
movq %r15, %rsi
callq 0x12c3a
testb %al, %al
cmoveq %r12, %r14
movzbl %al, %eax
movq 0x10(%r12,%rax,8), %r12
testq %r12, %r12
jne 0x156a7
movq (%rbx), %rax
addq $0x8, %rax
cmpq %rax, %r14
je 0x156e4
leaq 0x20(%r14), %rdi
leaq -0x50(%rbp), %rsi
callq 0x12cde
testb %al, %al
jne 0x15740
callq 0x123c0
leaq 0x7a7c8(%rip), %rdx     # 0x8feb8
leaq -0x1f8(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x16ed6
movq (%rbx), %rdi
leaq -0x1f8(%rbp), %rdx
movq %r14, %rsi
callq 0x17894
movq %rax, %r14
leaq -0x1e8(%rbp), %rbx
movq %rbx, %rdi
callq 0x13416
movq -0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x15740
movl -0x1f0(%rbp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x15740
callq 0x87b0
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x15759
movl -0x48(%rbp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x15759
callq 0x87b0
addq $0x30, %r14
movq %r14, %rax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1578e
callq 0x85d0
jmp 0x1578e
jmp 0x1578b
movq %rax, %rbx
movq 0x7882b(%rip), %rsi     # 0x8dfc0
leaq -0x1f8(%rbp), %rdi
callq 0x8370
leaq -0x188(%rbp), %rdi
callq 0x8220
jmp 0x157e0
jmp 0x157c4
movq %rax, %rbx
leaq -0x1f8(%rbp), %rdi
callq 0x16f34
jmp 0x157c7
jmp 0x157c4
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x157e0
movl -0x48(%rbp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x157e0
callq 0x87b0
movq %rbx, %rdi
callq 0x8b40