// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/pkgs/RNBasics/json.cpp
// Function: Json::OurReader::readValue()
bool OurReader::readValue() {
  if (stackDepth_ >= features_.stackLimit_) throwRuntimeError("Exceeded stackLimit in readValue().");
  ++stackDepth_;
  Token token;
  skipCommentTokens(token);
  bool successful = true;

  if (collectComments_ && !commentsBefore_.empty()) {
    currentValue().setComment(commentsBefore_, commentBefore);
    commentsBefore_ = "";
  }

  switch (token.type_) {
  case tokenObjectBegin:
    successful = readObject(token);
    currentValue().setOffsetLimit(current_ - begin_);
    break;
  case tokenArrayBegin:
    successful = readArray(token);
    currentValue().setOffsetLimit(current_ - begin_);
    break;
  case tokenNumber:
    successful = decodeNumber(token);
    break;
  case tokenString:
    successful = decodeString(token);
    break;
  case tokenTrue:
    {
    Value v(true);
    currentValue().swapPayload(v);
    currentValue().setOffsetStart(token.start_ - begin_);
    currentValue().setOffsetLimit(token.end_ - begin_);
    }
    break;
  case tokenFalse:
    {
    Value v(false);
    currentValue().swapPayload(v);
    currentValue().setOffsetStart(token.start_ - begin_);
    currentValue().setOffsetLimit(token.end_ - begin_);
    }
    break;
  case tokenNull:
    {
    Value v;
    currentValue().swapPayload(v);
    currentValue().setOffsetStart(token.start_ - begin_);
    currentValue().setOffsetLimit(token.end_ - begin_);
    }
    break;
  case tokenNaN:
    {
    Value v(std::numeric_limits<double>::quiet_NaN());
    currentValue().swapPayload(v);
    currentValue().setOffsetStart(token.start_ - begin_);
    currentValue().setOffsetLimit(token.end_ - begin_);
    }
    break;
  case tokenPosInf:
    {
    Value v(std::numeric_limits<double>::infinity());
    currentValue().swapPayload(v);
    currentValue().setOffsetStart(token.start_ - begin_);
    currentValue().setOffsetLimit(token.end_ - begin_);
    }
    break;
  case tokenNegInf:
    {
    Value v(-std::numeric_limits<double>::infinity());
    currentValue().swapPayload(v);
    currentValue().setOffsetStart(token.start_ - begin_);
    currentValue().setOffsetLimit(token.end_ - begin_);
    }
    break;
  case tokenArraySeparator:
  case tokenObjectEnd:
  case tokenArrayEnd:
    if (features_.allowDroppedNullPlaceholders_) {
      // "Un-read" the current token and mark the current value as a null
      // token.
      current_--;
      Value v;
      currentValue().swapPayload(v);
      currentValue().setOffsetStart(current_ - begin_ - 1);
      currentValue().setOffsetLimit(current_ - begin_);
      break;
    } // else, fall through ...
  default:
    currentValue().setOffsetStart(token.start_ - begin_);
    currentValue().setOffsetLimit(token.end_ - begin_);
    return addError("Syntax error: value, object or array expected.", token);
  }

  if (collectComments_) {
    lastValueEnd_ = current_;
    lastValue_ = &currentValue();
  }

  --stackDepth_;
  return successful;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl 0x108(%rdi), %eax
cmpl 0x114(%rdi), %eax
jge 0x713f8
movq %rdi, %rbx
incl %eax
movl %eax, 0x108(%rdi)
leaq 0x30(%rsp), %rsi
callq 0x71430
cmpb $0x1, 0x118(%rbx)
jne 0x710a8
cmpq $0x0, 0xf0(%rbx)
je 0x710a8
leaq 0xe8(%rbx), %r14
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7108b
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x6f00a
leaq 0x384c4(%rip), %rsi     # 0xa9564
movq %r14, %rdi
callq 0x11b80
movl 0x30(%rsp), %eax
decl %eax
cmpl $0xc, %eax
ja 0x71175
leaq 0x3aa86(%rip), %rcx     # 0xabb44
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10e(%rbx)
jne 0x71175
decq 0xd0(%rbx)
andw $0x0, 0x8(%rsp)
xorps %xmm0, %xmm0
andq $0x0, 0x20(%rsp)
movups %xmm0, 0x10(%rsp)
andq $0x0, (%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7110b
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq %rsp, %rsi
callq 0x6f810
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rdi
cmpq %rcx, %rax
jne 0x71134
movq 0x48(%rbx), %rdx
movl $0x200, %edi            # imm = 0x200
addq -0x8(%rdx), %rdi
movq 0xc0(%rbx), %rdx
movq 0xd0(%rbx), %rsi
movq %rdx, %r8
notq %r8
addq %rsi, %r8
movq -0x8(%rdi), %rdi
movq %r8, 0x18(%rdi)
cmpq %rcx, %rax
jne 0x71165
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
subq %rdx, %rsi
movq %rsi, 0x20(%rax)
jmp 0x713a7
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x71192
movq 0x48(%rbx), %rdx
movl $0x200, %esi            # imm = 0x200
addq -0x8(%rdx), %rsi
movq 0x38(%rsp), %rdi
movq 0xc0(%rbx), %rdx
subq %rdx, %rdi
movq -0x8(%rsi), %rsi
movq %rdi, 0x18(%rsi)
cmpq %rcx, %rax
jne 0x711bb
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movq 0x40(%rsp), %rcx
subq %rdx, %rcx
movq %rcx, 0x20(%rax)
leaq 0x3ae5c(%rip), %rsi     # 0xac02e
movq %rsp, %rdi
leaq 0x2f(%rsp), %rdx
callq 0x196d0
movq %rsp, %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x7146e
movq %rsp, %rdi
callq 0x11270
xorl %eax, %eax
jmp 0x713f0
movw $0x3, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
movabsq $0x7ff0000000000000, %rax # imm = 0x7FF0000000000000
jmp 0x7130f
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x71954
jmp 0x71282
movw $0x3, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
movabsq $-0x10000000000000, %rax # imm = 0xFFF0000000000000
jmp 0x7130f
andw $0x0, 0x8(%rsp)
xorps %xmm0, %xmm0
andq $0x0, 0x20(%rsp)
movups %xmm0, 0x10(%rsp)
andq $0x0, (%rsp)
jmp 0x7132e
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x71500
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x71299
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movq 0xd0(%rbx), %rdx
subq 0xc0(%rbx), %rdx
movq %rdx, 0x20(%rcx)
jmp 0x713b1
movw $0x5, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
movb $0x1, (%rsp)
jmp 0x7132e
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x71be2
jmp 0x712eb
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x71b0c
jmp 0x713b1
movw $0x3, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
movabsq $0x7ff8000000000000, %rax # imm = 0x7FF8000000000000
movq %rax, (%rsp)
jmp 0x7132e
movw $0x5, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
movb $0x0, (%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x71345
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq %rsp, %rsi
callq 0x6f810
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x7136e
movq 0x48(%rbx), %rdx
movl $0x200, %esi            # imm = 0x200
addq -0x8(%rdx), %rsi
movq 0x38(%rsp), %rdi
movq 0xc0(%rbx), %rdx
subq %rdx, %rdi
movq -0x8(%rsi), %rsi
movq %rdi, 0x18(%rsi)
cmpq %rcx, %rax
jne 0x71397
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movq 0x40(%rsp), %rcx
subq %rdx, %rcx
movq %rcx, 0x20(%rax)
movq %rsp, %rdi
callq 0x74cb0
movb $0x1, %al
cmpb $0x1, 0x118(%rbx)
jne 0x713ea
movq 0x30(%rbx), %rcx
movq 0xd0(%rbx), %rdx
movq %rdx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rcx
jne 0x713df
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movq %rcx, 0xe0(%rbx)
decl 0x108(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r14
retq
leaq 0x3ac0b(%rip), %rsi     # 0xac00a
movq %rsp, %rdi
leaq 0x30(%rsp), %rdx
callq 0x196d0
movq %rsp, %rdi
callq 0x6f0a2
jmp 0x71418
jmp 0x71425
movq %rax, %rbx
movq %rsp, %rdi
callq 0x11270
jmp 0x71428
movq %rax, %rbx
movq %rbx, %rdi
callq 0x11a80