// File: /workspace/github_cpp_makefile_star2_O3/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)
xorl %r15d, %r15d
movq %r15, -0x8(%rax)
movb $0x0, (%rax)
movq %r15, 0xa8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x98(%rsp)
movl $0x30, %edi
callq 0x115b0
leaq 0x8(%rax), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %r15, 0x28(%rax)
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x7baa2
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movzwl 0x8(%rcx), %edx
movq (%rcx), %rsi
movq %rax, (%rcx)
movq %rsi, 0x88(%rsp)
movl %edx, %eax
andl $0xfe00, %eax           # imm = 0xFE00
orl $0x7, %eax
movw %ax, 0x8(%rcx)
andl $0x1ff, %edx            # imm = 0x1FF
movw %dx, 0x90(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7baeb
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 0x7c498
movl 0x70(%rsp), %r15d
cmpl $0xf, %r15d
jne 0x7bb35
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7c498
jmp 0x7bb1d
cmpl $0x2, %r15d
jne 0x7bb4a
movq 0x58(%rsp), %rdx
testq %rdx, %rdx
jne 0x7bb4f
jmp 0x7bd12
movq 0x58(%rsp), %rdx
movq %r12, %rdi
xorl %esi, %esi
leaq 0x40ad9(%rip), %rcx     # 0xbc634
xorl %r8d, %r8d
callq 0x11910
cmpl $0x6, %r15d
je 0x7bb8a
cmpl $0x5, %r15d
jne 0x7bd19
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x7cc48
testb %al, %al
jne 0x7bc04
jmp 0x7bdba
cmpb $0x1, 0x10f(%rbx)
jne 0x7bd19
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
movq %r13, %rdx
callq 0x7cf52
testb %al, %al
je 0x7bdcc
movq %rbp, %rdi
movq %r13, %rsi
callq 0x79efc
movq %r12, %rdi
movq %rbp, %rsi
callq 0x11740
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7bbfc
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x115c0
movq %r13, %rdi
callq 0x80736
movq %rbx, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x7c498
cmpl $0xe, 0xb0(%rsp)
jne 0x7bd5f
movq 0x58(%rsp), %rdx
cmpq $0x40000000, %rdx       # imm = 0x40000000
jae 0x7bf30
cmpb $0x1, 0x112(%rbx)
jne 0x7bc71
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7bc57
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x8(%rax), %rdi
movq 0x50(%rsp), %rsi
addq %rsi, %rdx
callq 0x82296
testq %rax, %rax
jne 0x7bde8
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7bc8b
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 0x82012
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x88d68
movq %rbx, %rdi
callq 0x7b44e
movl %eax, %r15d
movq %rbx, %rdi
callq 0x88d1c
testb %r15b, %r15b
je 0x7bda8
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x7c498
movl 0x30(%rsp), %eax
cmpl $0xf, %eax
ja 0x7be37
movl $0xa004, %ecx           # imm = 0xA004
btl %eax, %ecx
jae 0x7be37
movl 0x30(%rsp), %eax
cmpl $0xf, %eax
jne 0x7bd09
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x7c498
jmp 0x7bcf3
cmpl $0x2, %eax
jne 0x7bb12
movb $0x1, %bl
jmp 0x7bef3
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x4346e(%rip), %rsi     # 0xbf19b
leaq 0x43488(%rip), %rdx     # 0xbf1bc
callq 0x1a88c
leaq 0x8(%rsp), %rsi
leaq 0x70(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x7b978
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7cea0
jmp 0x7bed5
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x433da(%rip), %rsi     # 0xbf14d
leaq 0x433f7(%rip), %rdx     # 0xbf171
callq 0x1a88c
leaq 0x8(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x7b978
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7cea0
jmp 0x7bed5
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7cea0
jmp 0x7bef1
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7cea0
jmp 0x7bef1
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7cea0
leaq 0x8(%rsp), %rdi
callq 0x80736
jmp 0x7bef1
leaq 0x435bd(%rip), %rsi     # 0xbf3ac
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x87814
leaq 0x435b6(%rip), %rsi     # 0xbf3bb
leaq 0x30(%rsp), %rdi
callq 0x11b50
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x7be7a
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x7be80
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x43327(%rip), %rsi     # 0xbf172
leaq 0x43348(%rip), %rdx     # 0xbf19a
callq 0x1a88c
leaq 0x8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x7b978
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7cea0
jmp 0x7bed5
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 0x7beb4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x115c0
leaq 0x8(%rsp), %rsi
leaq 0x70(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x7b978
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7cea0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7bef1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
xorl %ebx, %ebx
leaq 0x88(%rsp), %rdi
callq 0x80736
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x7bf1c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x115c0
movl %ebx, %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 0x43456(%rip), %rsi     # 0xbf39a
leaq 0x43460(%rip), %rdx     # 0xbf3ab
callq 0x1a88c
leaq 0x8(%rsp), %rdi
callq 0x789e4
jmp 0x7bfcd
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7bfd0
movq 0x40(%rsp), %rsi
jmp 0x7bfa0
jmp 0x7bfcd
jmp 0x7bfae
jmp 0x7bfcd
jmp 0x7bf89
jmp 0x7bfcd
jmp 0x7bf89
jmp 0x7bfcd
jmp 0x7bfcd
jmp 0x7bf89
jmp 0x7bf89
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7bfd0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x7bfd0
jmp 0x7bfcd
jmp 0x7bfae
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x80736
jmp 0x7bfd0
jmp 0x7bfcd
jmp 0x7bfcd
jmp 0x7bfcd
jmp 0x7bfcd
jmp 0x7bfcd
jmp 0x7bfcd
jmp 0x7bfcd
jmp 0x7bfcd
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x80736
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x7bff9
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x115c0
movq %rbx, %rdi
callq 0x11a60
nop