// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/RNBasics/json.cpp
// Function: Json::OurReader::readObject(Json::OurReader::Token&)
bool OurReader::readObject(Token& tokenStart) {
  Token tokenName;
  std::string name;
  Value init(objectValue);
  currentValue().swapPayload(init);
  currentValue().setOffsetStart(tokenStart.start_ - begin_);
  while (readToken(tokenName)) {
    bool initialTokenOk = true;
    while (tokenName.type_ == tokenComment && initialTokenOk)
      initialTokenOk = readToken(tokenName);
    if (!initialTokenOk)
      break;
    if (tokenName.type_ == tokenObjectEnd && name.empty()) // empty object
      return true;
    name = "";
    if (tokenName.type_ == tokenString) {
      if (!decodeString(tokenName, name))
        return recoverFromError(tokenObjectEnd);
    } else if (tokenName.type_ == tokenNumber && features_.allowNumericKeys_) {
      Value numberName;
      if (!decodeNumber(tokenName, numberName))
        return recoverFromError(tokenObjectEnd);
      name = numberName.asString();
    } else {
      break;
    }

    Token colon;
    if (!readToken(colon) || colon.type_ != tokenMemberSeparator) {
      return addErrorAndRecover(
          "Missing ':' after object member name", colon, tokenObjectEnd);
    }
    if (name.length() >= (1U<<30)) throwRuntimeError("keylength >= 2^30");
    if (features_.rejectDupKeys_ && currentValue().isMember(name)) {
      std::string msg = "Duplicate key: '" + name + "'";
      return addErrorAndRecover(
          msg, tokenName, tokenObjectEnd);
    }
    Value& value = currentValue()[name];
    nodes_.push(&value);
    bool ok = readValue();
    nodes_.pop();
    if (!ok) // error already set
      return recoverFromError(tokenObjectEnd);

    Token comma;
    if (!readToken(comma) ||
        (comma.type_ != tokenObjectEnd && comma.type_ != tokenArraySeparator &&
         comma.type_ != tokenComment)) {
      return addErrorAndRecover(
          "Missing ',' or '}' in object declaration", comma, tokenObjectEnd);
    }
    bool finalizeTokenOk = true;
    while (comma.type_ == tokenComment && finalizeTokenOk)
      finalizeTokenOk = readToken(comma);
    if (comma.type_ == tokenObjectEnd)
      return true;
  }
  return addErrorAndRecover(
      "Missing '}' or object member name", tokenName, tokenObjectEnd);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
movzwl 0x78(%rsp), %r15d
andl $0xfe00, %r15d          # imm = 0xFE00
leal 0x7(%r15), %ecx
movw %cx, 0x78(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%rsp)
movq %rax, 0x90(%rsp)
movl $0x30, %edi
callq 0x115b0
movq %rax, %rcx
addq $0x8, %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq $0x0, 0x28(%rax)
movq %rax, 0x70(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7d147
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movzwl 0x8(%rax), %ecx
movzbl %cl, %edx
movl %ecx, %esi
andl $0xff00, %esi           # imm = 0xFF00
orl $0x7, %esi
movw %si, 0x8(%rax)
orl %edx, %r15d
movw %r15w, 0x78(%rsp)
movq (%rax), %rdx
movq 0x70(%rsp), %rdi
movq %rdi, (%rax)
movq %rdx, 0x70(%rsp)
andl $0xfe07, %esi           # imm = 0xFE07
movw %si, 0x8(%rax)
andl $0x100, %ecx            # imm = 0x100
orl %r15d, %ecx
movw %cx, 0x78(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7d1a9
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq 0x8(%r14), %rcx
subq 0xc0(%rbx), %rcx
movq -0x8(%rax), %rax
movq %rcx, 0x18(%rax)
leaq 0xb0(%rsp), %r14
leaq 0x50(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7dca0
movl 0xb0(%rsp), %r13d
cmpl $0xf, %r13d
jne 0x7d1ef
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7dca0
jmp 0x7d1d4
cmpl $0x2, %r13d
jne 0x7d201
cmpq $0x0, 0x58(%rsp)
je 0x7d4bf
movq 0x58(%rsp), %rdx
movq %r12, %rdi
xorl %esi, %esi
leaq 0x41425(%rip), %rcx     # 0xbe637
xorl %r8d, %r8d
callq 0x11920
movl $0x3, %eax
cmpl $0x6, %r13d
je 0x7d257
cmpl $0x5, %r13d
jne 0x7d595
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x7e4b0
testb %al, %al
jne 0x7d2fa
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7e708
jmp 0x7d58e
cmpb $0x1, 0x10f(%rbx)
jne 0x7d595
andw $0xfe00, 0x10(%rsp)     # imm = 0xFE00
leaq 0x18(%rsp), %rax
xorl %ecx, %ecx
movq %rcx, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %rcx, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x8(%rsp), %rdx
callq 0x7e7ba
movl %eax, %r13d
testb %al, %al
je 0x7d2d3
leaq 0x30(%rsp), %r15
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
callq 0x7b3a0
movq %r12, %rdi
movq %r15, %rsi
callq 0x11750
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7d2e2
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x7d2e2
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7e708
xorl %ebp, %ebp
leaq 0x8(%rsp), %rdi
callq 0x82500
movl $0x1, %eax
testb %r13b, %r13b
je 0x7d595
movq %rbx, %rdi
leaq 0x98(%rsp), %rsi
callq 0x7dca0
cmpl $0xe, 0x98(%rsp)
jne 0x7d3c2
cmpq $0x40000000, 0x58(%rsp) # imm = 0x40000000
jae 0x7d63d
cmpb $0x1, 0x112(%rbx)
jne 0x7d40e
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7d34e
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x8(%rax), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
callq 0x841d8
testq %rax, %rax
je 0x7d40e
leaq 0x30(%rsp), %r13
movq %r13, %rdi
leaq 0x44020(%rip), %rsi     # 0xc139c
movq %r12, %rdx
callq 0x89a0f
movq %r13, %rdi
leaq 0x4401d(%rip), %rsi     # 0xc13ab
callq 0x11b60
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x7d4d3
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x7d4d9
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
leaq 0x43d62(%rip), %rsi     # 0xc113d
leaq 0x43d7f(%rip), %rdx     # 0xc1161
callq 0x1ab58
movq %rbx, %rdi
movq %r13, %rsi
leaq 0x98(%rsp), %rdx
xorl %ecx, %ecx
callq 0x7cff8
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7e708
jmp 0x7d572
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7d428
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x8(%rax), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
callq 0x83ef4
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x8af44
movq %rbx, %rdi
callq 0x7c9e6
movl %eax, %r13d
movq %rbx, %rdi
callq 0x8aef8
testb %r13b, %r13b
je 0x7d4a8
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
callq 0x7dca0
movl 0x30(%rsp), %eax
cmpl $0xf, %eax
ja 0x7d52e
movl $0xa004, %ecx           # imm = 0xA004
btl %eax, %ecx
jae 0x7d52e
movl 0x30(%rsp), %eax
cmpl $0xf, %eax
jne 0x7d4ba
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
callq 0x7dca0
jmp 0x7d490
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7e708
jmp 0x7d58e
cmpl $0x2, %eax
jne 0x7d4cc
movb $0x1, %bpl
movl $0x1, %eax
jmp 0x7d595
xorl %eax, %eax
jmp 0x7d595
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7d50d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x115c0
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x7cff8
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7e708
jmp 0x7d572
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
leaq 0x43c1b(%rip), %rsi     # 0xc1162
leaq 0x43c3c(%rip), %rdx     # 0xc118a
callq 0x1ab58
movq %rbx, %rdi
movq %r13, %rsi
leaq 0x30(%rsp), %rdx
xorl %ecx, %ecx
callq 0x7cff8
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7e708
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7d58e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
movl $0x1, %eax
xorl %ebp, %ebp
testl %eax, %eax
je 0x7d1c9
cmpl $0x3, %eax
jne 0x7d5ff
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %r14
movq %r14, (%rdi)
leaq 0x43bd5(%rip), %rsi     # 0xc118b
leaq 0x43bef(%rip), %rdx     # 0xc11ac
callq 0x1ab58
leaq 0x8(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x7cff8
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7e708
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7d5fd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
xorl %ebp, %ebp
leaq 0x70(%rsp), %rdi
callq 0x82500
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x7d625
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x115c0
andb $0x1, %bpl
movl %ebp, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x43d39(%rip), %rsi     # 0xc138a
leaq 0x43d43(%rip), %rdx     # 0xc139b
callq 0x1ab58
leaq 0x8(%rsp), %rdi
callq 0x79c0a
jmp 0x7d6e6
jmp 0x7d6ae
jmp 0x7d6e6
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7d6e9
movq 0x40(%rsp), %rsi
jmp 0x7d6c5
jmp 0x7d6e6
jmp 0x7d6e6
jmp 0x7d6ae
jmp 0x7d6e6
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x7d6c0
jmp 0x7d6e9
movq %rax, %rbx
jmp 0x7d6f3
jmp 0x7d6ae
jmp 0x7d6cf
jmp 0x7d6e6
jmp 0x7d6e6
jmp 0x7d6e6
jmp 0x7d6e6
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7d6e9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x7d6e9
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x82500
jmp 0x7d6e9
jmp 0x7d6e6
jmp 0x7d6e6
jmp 0x7d6e6
jmp 0x7d6e6
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x82500
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x7d70f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x115c0
movq %rbx, %rdi
callq 0x11a70
nop