// File: /workspace/github_cpp_makefile_star2_O3/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 0x7b8e4
movq %rdi, %rbx
incl %eax
movl %eax, 0x108(%rdi)
leaq 0x30(%rsp), %rsi
callq 0x7b93a
cmpb $0x1, 0x118(%rbx)
jne 0x7b4dc
movq 0xf0(%rbx), %rdx
testq %rdx, %rdx
je 0x7b4dc
leaq 0xe8(%rbx), %r14
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7b4af
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq 0xe8(%rbx), %rsi
xorl %ecx, %ecx
callq 0x82a6e
movq 0xf0(%rbx), %rdx
leaq 0x41165(%rip), %rcx     # 0xbc634
movq %r14, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x11910
movl 0x30(%rsp), %eax
decl %eax
cmpl $0xc, %eax
ja 0x7b57a
leaq 0x43742(%rip), %rcx     # 0xbec34
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10e(%rbx)
jne 0x7b57a
decq 0xd0(%rbx)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7b535
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movzwl 0x8(%rax), %ecx
movq (%rax), %rdx
movq $0x0, (%rax)
movq %rdx, 0x8(%rsp)
movl %ecx, %edx
andl $0xfe00, %edx           # imm = 0xFE00
movw %dx, 0x8(%rax)
andl $0x1ff, %ecx            # imm = 0x1FF
movw %cx, 0x10(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
je 0x7b8ad
addq $-0x8, %rax
jmp 0x7b8ba
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
je 0x7b82e
addq $-0x8, %rax
jmp 0x7b83b
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7b5b9
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movzwl 0x8(%rax), %ecx
movq (%rax), %rdx
movabsq $0x7ff0000000000000, %rsi # imm = 0x7FF0000000000000
jmp 0x7b72b
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7c002
jmp 0x7b680
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7b60d
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movzwl 0x8(%rax), %ecx
movq (%rax), %rdx
movabsq $-0x10000000000000, %rsi # imm = 0xFFF0000000000000
jmp 0x7b72b
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7b64f
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movzwl 0x8(%rax), %ecx
movq (%rax), %rdx
movq $0x0, (%rax)
movq %rdx, 0x8(%rsp)
movl %ecx, %edx
andl $0xfe00, %edx           # imm = 0xFE00
jmp 0x7b790
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7ba2a
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x7b697
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 0x7b7e7
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movb $0x1, 0x8(%rsp)
jmp 0x7b756
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7c36a
jmp 0x7b6e9
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7c272
jmp 0x7b7e7
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7b716
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movzwl 0x8(%rax), %ecx
movq (%rax), %rdx
movabsq $0x7ff8000000000000, %rsi # imm = 0x7FF8000000000000
movq %rsi, (%rax)
movq %rdx, 0x8(%rsp)
movl %ecx, %edx
andl $0xfe00, %edx           # imm = 0xFE00
orl $0x3, %edx
jmp 0x7b790
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movb $0x0, 0x8(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7b76d
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movzwl 0x8(%rax), %ecx
movq (%rax), %rdx
movq 0x8(%rsp), %rsi
movq %rsi, (%rax)
movq %rdx, 0x8(%rsp)
movl %ecx, %edx
andl $0xfe00, %edx           # imm = 0xFE00
orl $0x5, %edx
movw %dx, 0x8(%rax)
andl $0x1ff, %ecx            # imm = 0x1FF
movw %cx, 0x10(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
je 0x7b7af
addq $-0x8, %rax
jmp 0x7b7bc
movq 0x48(%rbx), %rcx
movl $0x1f8, %eax            # imm = 0x1F8
addq -0x8(%rcx), %rax
movq (%rax), %rax
movdqu 0x38(%rsp), %xmm0
movq 0xc0(%rbx), %xmm1
pshufd $0x44, %xmm1, %xmm1     # xmm1 = xmm1[0,1,0,1]
psubq %xmm1, %xmm0
movdqu %xmm0, 0x18(%rax)
leaq 0x8(%rsp), %rdi
callq 0x80736
movb $0x1, %al
cmpb $0x1, 0x118(%rbx)
jne 0x7b820
movq 0x30(%rbx), %rcx
movq 0xd0(%rbx), %rdx
movq %rdx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rcx
jne 0x7b815
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
movq 0x48(%rbx), %rcx
movl $0x1f8, %eax            # imm = 0x1F8
addq -0x8(%rcx), %rax
movq (%rax), %rax
movdqu 0x38(%rsp), %xmm0
movq 0xc0(%rbx), %xmm1
pshufd $0x44, %xmm1, %xmm1     # xmm1 = xmm1[0,1,0,1]
psubq %xmm1, %xmm0
movdqu %xmm0, 0x18(%rax)
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x438b4(%rip), %rsi     # 0xbf11e
leaq 0x438db(%rip), %rdx     # 0xbf14c
leaq 0x8(%rsp), %rdi
callq 0x1a88c
leaq 0x8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x7b978
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7b8a6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
xorl %eax, %eax
jmp 0x7b826
movq 0x48(%rbx), %rcx
movl $0x1f8, %eax            # imm = 0x1F8
addq -0x8(%rcx), %rax
movq (%rax), %rax
movq 0xc0(%rbx), %rcx
movq 0xd0(%rbx), %rdx
movq %rcx, %rsi
notq %rsi
addq %rdx, %rsi
movq %rsi, 0x18(%rax)
subq %rcx, %rdx
movq %rdx, 0x20(%rax)
jmp 0x7b7db
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x43806(%rip), %rsi     # 0xbf0fa
leaq 0x43822(%rip), %rdx     # 0xbf11d
leaq 0x8(%rsp), %rdi
callq 0x1a88c
leaq 0x8(%rsp), %rdi
callq 0x789e4
jmp 0x7b913
jmp 0x7b92f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7b932
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x7b932
movq %rax, %rbx
movq %rbx, %rdi
callq 0x11a60