// File: /workspace/github_cpp_makefile_star2_O3/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 $0x1c8, %rsp            # imm = 0x1C8
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movzwl 0x8(%rdi), %r12d
testb %r12b, %r12b
je 0x15124
movzbl %r12b, %eax
cmpl $0x7, %eax
je 0x1519c
leaq -0x1e8(%rbp), %rbx
movq %rbx, %rdi
callq 0x8860
leaq 0x54e61(%rip), %rsi     # 0x69f5f
movl $0x40, %edx
movq %rbx, %rdi
callq 0x8720
leaq -0x1e0(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x89f0
leaq -0x48(%rbp), %rdi
callq 0x125d5
movl $0x30, %edi
callq 0x8640
leaq 0x8(%rax), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
xorl %ecx, %ecx
movq %rcx, 0x28(%rax)
movq (%r14), %rdx
movq %rax, (%r14)
leaq -0x70(%rbp), %rdi
movq %rdx, (%rdi)
movl %r12d, %eax
andl $0xfffffe00, %eax       # imm = 0xFFFFFE00
orl $0x7, %eax
movw %ax, 0x8(%r14)
andl $0x1ff, %r12d           # imm = 0x1FF
movw %r12w, 0x8(%rdi)
movq 0x10(%r14), %rax
movq %rcx, 0x10(%r14)
movq %rax, 0x10(%rdi)
movq 0x18(%r14), %rax
movq %rcx, 0x18(%r14)
movq %rax, 0x18(%rdi)
movq 0x20(%r14), %rax
movq %rcx, 0x20(%r14)
movq %rax, 0x20(%rdi)
callq 0x1315e
subl %ebx, %r15d
movq %rbx, -0x48(%rbp)
leal 0x2(,%r15,4), %eax
movl %eax, -0x40(%rbp)
movq (%r14), %rax
movq 0x10(%rax), %r13
leaq 0x8(%rax), %r15
testq %r13, %r13
je 0x151e4
leaq -0x48(%rbp), %r12
leaq 0x20(%r13), %rdi
movq %r12, %rsi
callq 0x12986
testb %al, %al
cmoveq %r13, %r15
movzbl %al, %eax
movq 0x10(%r13,%rax,8), %r13
testq %r13, %r13
jne 0x151c2
movq (%r14), %rax
addq $0x8, %rax
cmpq %rax, %r15
je 0x151fe
leaq 0x20(%r15), %rdi
leaq -0x48(%rbp), %rsi
callq 0x12a2a
testb %al, %al
jne 0x1525e
callq 0x1211c
leaq 0x7acae(%rip), %rdx     # 0x8feb8
leaq -0x1e8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x1689a
movq (%r14), %rdi
leaq -0x1e8(%rbp), %rdx
movq %r15, %rsi
callq 0x17260
movq %rax, %r15
leaq -0x1d8(%rbp), %rbx
movq %rbx, %rdi
callq 0x1315e
movq -0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x1525a
movl -0x1e0(%rbp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x1525a
callq 0x87a0
movq -0x48(%rbp), %rbx
testq %rbx, %rbx
je 0x15276
movl -0x40(%rbp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x15276
movq %rbx, %rdi
callq 0x87a0
addq $0x30, %r15
movq %r15, %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x152ab
callq 0x85d0
jmp 0x152ab
jmp 0x152a8
movq %rax, %r14
movq 0x78d16(%rip), %rsi     # 0x8dfc8
leaq -0x1e8(%rbp), %rdi
callq 0x8370
leaq -0x178(%rbp), %rdi
callq 0x8220
jmp 0x15303
jmp 0x152e8
movq %rax, %r14
leaq -0x1e8(%rbp), %rdi
callq 0x168f8
jmp 0x152e2
movq %rax, %r14
movq -0x48(%rbp), %rbx
jmp 0x152eb
movq %rax, %r14
testq %rbx, %rbx
je 0x15303
movl -0x40(%rbp), %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x15303
movq %rbx, %rdi
callq 0x87a0
movq %r14, %rdi
callq 0x8b30
nop