// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/pkgs/RNBasics/json.cpp
// Function: Json::Reader::readObject(Json::Reader::Token&)
bool Reader::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);
    }
    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 0x40(%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 0x6f153
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 0x6f17b
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 0x88(%rsp), %r14
leaq 0x8(%rsp), %r13
leaq 0x50(%rsp), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6f860
movl 0x88(%rsp), %ebp
cmpl $0xc, %ebp
jne 0x6f1c4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6f860
jmp 0x6f1ab
cmpl $0x2, %ebp
jne 0x6f1d5
cmpq $0x0, 0x38(%rsp)
je 0x6f342
leaq 0x30(%rsp), %rdi
leaq 0x3a383(%rip), %rsi     # 0xa9564
callq 0x11b80
cmpl $0x6, %ebp
je 0x6f211
cmpl $0x5, %ebp
jne 0x6f349
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x30(%rsp), %rdx
callq 0x6fdbc
testb %al, %al
jne 0x6f292
jmp 0x6f3b3
cmpb $0x1, 0x10b(%rbx)
jne 0x6f349
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 0x70002
movl %eax, %ebp
testb %al, %al
je 0x6f276
movq %r13, %rsi
leaq 0x68(%rsp), %r12
movq %r12, %rdi
callq 0x7012a
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x11740
movq %r12, %rdi
callq 0x11270
jmp 0x6f281
movq %rbx, %rdi
pushq $0x2
popq %rsi
callq 0x6ffac
movq %r13, %rdi
callq 0x74cb0
testb %bpl, %bpl
je 0x6f3f5
movq %rbx, %rdi
leaq 0x68(%rsp), %rsi
callq 0x6f860
cmpl $0xb, 0x68(%rsp)
jne 0x6f379
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x6f2c4
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x8(%rax), %rdi
leaq 0x30(%rsp), %rsi
callq 0x70276
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x7b1e0
movq %rbx, %rdi
callq 0x6ec1c
movl %eax, %ebp
movq %rbx, %rdi
callq 0x7b18a
testb %bpl, %bpl
je 0x6f3a6
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6f860
movl 0x50(%rsp), %eax
cmpl $0xc, %eax
ja 0x6f3c0
movl $0x1404, %ecx           # imm = 0x1404
btl %eax, %ecx
jae 0x6f3c0
movl 0x50(%rsp), %eax
cmpl $0xc, %eax
jne 0x6f339
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6f860
jmp 0x6f323
cmpl $0x2, %eax
jne 0x6f1a0
movb $0x1, %bl
jmp 0x6f3f7
leaq 0x3cd5b(%rip), %rsi     # 0xac0ab
leaq 0x8(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0x196d0
leaq 0x8(%rsp), %rsi
leaq 0x88(%rsp), %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
callq 0x70252
jmp 0x6f3eb
leaq 0x3ccdd(%rip), %rsi     # 0xac05d
leaq 0x8(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x196d0
leaq 0x8(%rsp), %rsi
leaq 0x68(%rsp), %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
callq 0x70252
jmp 0x6f3eb
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x6ffac
jmp 0x6f3f5
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x6ffac
jmp 0x6f3f5
leaq 0x3ccbb(%rip), %rsi     # 0xac082
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x196d0
leaq 0x8(%rsp), %rsi
leaq 0x50(%rsp), %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
callq 0x70252
leaq 0x8(%rsp), %rdi
callq 0x11270
xorl %ebx, %ebx
leaq 0xa0(%rsp), %rdi
callq 0x74cb0
leaq 0x30(%rsp), %rdi
callq 0x11270
movl %ebx, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6f42e
jmp 0x6f465
jmp 0x6f465
jmp 0x6f465
jmp 0x6f42e
jmp 0x6f465
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x11270
jmp 0x6f468
jmp 0x6f465
jmp 0x6f446
movq %rax, %rbx
jmp 0x6f475
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x74cb0
jmp 0x6f468
jmp 0x6f465
jmp 0x6f465
jmp 0x6f465
jmp 0x6f465
jmp 0x6f465
jmp 0x6f465
jmp 0x6f465
jmp 0x6f465
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x74cb0
leaq 0x30(%rsp), %rdi
callq 0x11270
movq %rbx, %rdi
callq 0x11a80
nop