// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/pkgs/RNBasics/json.cpp
// Function: Json::Reader::readValue()
bool Reader::readValue() {
  // This is a non-reentrant way to support a stackLimit. Terrible!
  // But this deprecated class has a security problem: Bad input can
  // cause a seg-fault. This seems like a fair, binary-compatible way
  // to prevent the problem.
  if (stackDepth_g >= stackLimit_g) throwRuntimeError("Exceeded stackLimit in readValue().");
  ++stackDepth_g;

  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 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_g;
  return successful;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl 0x8b9b3(%rip), %eax     # 0xfa5dc
cmpl $0x3e8, %eax            # imm = 0x3E8
jge 0x6ef8d
movq %rdi, %rbx
incl %eax
movl %eax, 0x8b99d(%rip)     # 0xfa5dc
leaq 0x30(%rsp), %rsi
callq 0x6efcc
cmpb $0x1, 0x10c(%rbx)
jne 0x6ec97
cmpq $0x0, 0xf0(%rbx)
je 0x6ec97
leaq 0xe8(%rbx), %r14
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x6ec7a
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 0x3a8d5(%rip), %rsi     # 0xa9564
movq %r14, %rdi
callq 0x11b80
movl 0x30(%rsp), %eax
decl %eax
cmpl $0x9, %eax
ja 0x6ed67
leaq 0x3cdd3(%rip), %rcx     # 0xaba80
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10a(%rbx)
jne 0x6ed67
decq 0xd0(%rbx)
andw $0x0, 0x10(%rsp)
xorps %xmm0, %xmm0
andq $0x0, 0x28(%rsp)
movups %xmm0, 0x18(%rsp)
andq $0x0, 0x8(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x6ecfb
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0x6f810
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rdi
cmpq %rcx, %rax
jne 0x6ed26
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 0x6ed57
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 0x6ef3a
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x6ed84
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 0x6edad
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 0x3d26a(%rip), %rsi     # 0xac02e
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x196d0
leaq 0x8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x6f02c
leaq 0x8(%rsp), %rdi
callq 0x11270
xorl %eax, %eax
jmp 0x6ef85
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x6f71c
jmp 0x6eea0
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x6f104
jmp 0x6ee45
andw $0x0, 0x10(%rsp)
xorps %xmm0, %xmm0
andq $0x0, 0x28(%rsp)
movups %xmm0, 0x18(%rsp)
andq $0x0, 0x8(%rsp)
jmp 0x6eebf
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x6f48e
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x6ee5c
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 0x6ef46
movw $0x5, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
andq $0x0, 0x28(%rsp)
movb $0x1, 0x8(%rsp)
jmp 0x6eebf
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x6f646
jmp 0x6ef46
movw $0x5, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
andq $0x0, 0x28(%rsp)
movb $0x0, 0x8(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x6eed6
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0x6f810
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x6ef01
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 0x6ef2a
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 0x8(%rsp), %rdi
callq 0x74cb0
movb $0x1, %al
cmpb $0x1, 0x10c(%rbx)
jne 0x6ef7f
movq 0x30(%rbx), %rcx
movq 0xd0(%rbx), %rdx
movq %rdx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rcx
jne 0x6ef74
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movq %rcx, 0xe0(%rbx)
decl 0x8b657(%rip)           # 0xfa5dc
addq $0x48, %rsp
popq %rbx
popq %r14
retq
leaq 0x3d076(%rip), %rsi     # 0xac00a
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x196d0
leaq 0x8(%rsp), %rdi
callq 0x6f0a2
jmp 0x6efb1
jmp 0x6efc0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x11270
jmp 0x6efc3
movq %rax, %rbx
movq %rbx, %rdi
callq 0x11a80
nop