// File: /workspace/github_cpp_makefile_star2_O2/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), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0xa0(%rsp), %rdi
pushq $0x7
popq %rsi
callq 0x74836
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7154f
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x6f810
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x71577
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movq 0x8(%r14), %rcx
subq 0xc0(%rbx), %rcx
movq %rcx, 0x18(%rax)
leaq 0x70(%rsp), %r14
leaq 0x50(%rsp), %r12
leaq 0x8(%rsp), %r13
leaq 0x30(%rsp), %rbp
movq %rbx, %rdi
movq %r14, %rsi
callq 0x71cd6
movl 0x70(%rsp), %r15d
cmpl $0xf, %r15d
jne 0x715c1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x71cd6
jmp 0x715a9
cmpl $0x2, %r15d
jne 0x715d3
cmpq $0x0, 0x58(%rsp)
je 0x71783
movq %r12, %rdi
leaq 0x37f87(%rip), %rsi     # 0xa9564
callq 0x11b80
cmpl $0x6, %r15d
je 0x7160d
cmpl $0x5, %r15d
jne 0x7178a
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x7229e
testb %al, %al
jne 0x71688
jmp 0x717fd
cmpb $0x1, 0x10f(%rbx)
jne 0x7178a
andw $0xfe00, 0x10(%rsp)     # imm = 0xFE00
leaq 0x18(%rsp), %rax
andq $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x724e4
movl %eax, %r15d
testb %al, %al
je 0x7166c
movq %rbp, %rdi
movq %r13, %rsi
callq 0x7012a
movq %r12, %rdi
movq %rbp, %rsi
callq 0x11740
movq %rbp, %rdi
callq 0x11270
jmp 0x71677
movq %rbx, %rdi
pushq $0x2
popq %rsi
callq 0x7248e
movq %r13, %rdi
callq 0x74cb0
testb %r15b, %r15b
je 0x7188f
movq %rbx, %rdi
leaq 0x88(%rsp), %rsi
callq 0x71cd6
cmpl $0xe, 0x88(%rsp)
jne 0x717ba
cmpq $0x40000000, 0x58(%rsp) # imm = 0x40000000
jae 0x718bc
cmpb $0x1, 0x112(%rbx)
jne 0x716ec
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x716d8
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x8(%rax), %rdi
movq %r12, %rsi
callq 0x725de
testb %al, %al
jne 0x7180d
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x71706
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x8(%rax), %rdi
movq %r12, %rsi
callq 0x70276
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x7b1e0
movq %rbx, %rdi
callq 0x7102c
movl %eax, %r15d
movq %rbx, %rdi
callq 0x7b18a
testb %r15b, %r15b
je 0x717ed
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x71cd6
movl 0x30(%rsp), %eax
cmpl $0xf, %eax
ja 0x7185a
movl $0xa004, %ecx           # imm = 0xA004
btl %eax, %ecx
jae 0x7185a
movl 0x30(%rsp), %eax
cmpl $0xf, %eax
jne 0x7177a
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x71cd6
jmp 0x71764
cmpl $0x2, %eax
jne 0x7159e
movb $0x1, %bl
jmp 0x71891
leaq 0x3a91a(%rip), %rsi     # 0xac0ab
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x196d0
leaq 0x8(%rsp), %rsi
leaq 0x70(%rsp), %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
callq 0x725ba
jmp 0x71885
leaq 0x3a89c(%rip), %rsi     # 0xac05d
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x196d0
leaq 0x8(%rsp), %rsi
leaq 0x88(%rsp), %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
callq 0x725ba
jmp 0x71885
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x7248e
jmp 0x7188f
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x7248e
jmp 0x7188f
leaq 0x3aaa8(%rip), %rsi     # 0xac2bc
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x79f02
leaq 0x3aaa1(%rip), %rdx     # 0xac2cb
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x1970b
leaq 0x30(%rsp), %rdi
callq 0x11270
leaq 0x8(%rsp), %rsi
leaq 0x70(%rsp), %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
callq 0x725ba
jmp 0x71885
leaq 0x3a821(%rip), %rsi     # 0xac082
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x196d0
leaq 0x8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
callq 0x725ba
leaq 0x8(%rsp), %rdi
callq 0x11270
xorl %ebx, %ebx
leaq 0xa0(%rsp), %rdi
callq 0x74cb0
leaq 0x50(%rsp), %rdi
callq 0x11270
movl %ebx, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3a9e7(%rip), %rsi     # 0xac2aa
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x196d0
leaq 0x8(%rsp), %rdi
callq 0x6f0a2
jmp 0x718fc
jmp 0x71931
jmp 0x718fc
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
jmp 0x71904
jmp 0x71931
jmp 0x71931
jmp 0x71931
jmp 0x718fc
jmp 0x71931
jmp 0x718fc
jmp 0x71931
jmp 0x71912
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x11270
jmp 0x71934
jmp 0x71931
movq %rax, %rbx
jmp 0x71941
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x74cb0
jmp 0x71934
jmp 0x71931
jmp 0x71931
jmp 0x71931
jmp 0x71931
jmp 0x71931
jmp 0x71931
jmp 0x71931
jmp 0x71931
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x74cb0
leaq 0x50(%rsp), %rdi
callq 0x11270
movq %rbx, %rdi
callq 0x11a80
nop