// File: /workspace/github_cpp_makefile_star2_O1/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 0x7cf63
movq %rdi, %rbx
incl 0x108(%rdi)
leaq 0x30(%rsp), %rsi
callq 0x7cfba
cmpb $0x1, 0x118(%rbx)
jne 0x7ca72
movq 0xf0(%rbx), %rdx
testq %rdx, %rdx
je 0x7ca72
leaq 0xe8(%rbx), %r14
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7ca45
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 0x84a66
movq 0xf0(%rbx), %rdx
leaq 0x41bd2(%rip), %rcx     # 0xbe637
movq %r14, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x11920
movl 0x30(%rsp), %eax
decl %eax
cmpl $0xc, %eax
ja 0x7cb83
leaq 0x4419c(%rip), %rcx     # 0xc0c24
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10e(%rbx)
jne 0x7cb83
decq 0xd0(%rbx)
movzwl 0x10(%rsp), %eax
andl $0xfe00, %eax           # imm = 0xFE00
movw %ax, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x28(%rsp)
movq %rcx, 0x8(%rsp)
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x7cadf
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movzwl 0x8(%rcx), %edx
movzbl %dl, %esi
movl %edx, %edi
andl $0xff00, %edi           # imm = 0xFF00
movw %di, 0x8(%rcx)
orl %esi, %eax
movw %ax, 0x10(%rsp)
movq (%rcx), %rsi
movq $0x0, (%rcx)
movq %rsi, 0x8(%rsp)
movl %edx, %esi
andl $0xfe00, %esi           # imm = 0xFE00
movw %si, 0x8(%rcx)
andl $0x100, %edx            # imm = 0x100
orl %eax, %edx
movw %dx, 0x10(%rsp)
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rdi
cmpq %rcx, %rax
jne 0x7cb42
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 0x7cb73
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 0x7cf10
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x7cba0
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 0x7cbc9
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 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x44525(%rip), %rsi     # 0xc110e
leaq 0x4454c(%rip), %rdx     # 0xc113c
leaq 0x8(%rsp), %rdi
callq 0x1ab58
leaq 0x8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x7cff8
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7cc25
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
xorl %eax, %eax
jmp 0x7cf5b
movzwl 0x10(%rsp), %eax
andl $0xfe00, %eax           # imm = 0xFE00
movl %eax, %ecx
orl $0x3, %ecx
movw %cx, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
jmp 0x7cddc
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7d718
jmp 0x7cd2b
movzwl 0x10(%rsp), %eax
andl $0xfe00, %eax           # imm = 0xFE00
movl %eax, %ecx
orl $0x3, %ecx
movw %cx, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movabsq $-0x10000000000000, %rcx # imm = 0xFFF0000000000000
jmp 0x7cddc
movzwl 0x10(%rsp), %eax
andl $0xfe00, %eax           # imm = 0xFE00
movw %ax, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x28(%rsp)
movq %rcx, 0x8(%rsp)
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x7cce0
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movzwl 0x8(%rcx), %edx
movzbl %dl, %esi
movl %edx, %edi
andl $0xff00, %edi           # imm = 0xFF00
movw %di, 0x8(%rcx)
orl %esi, %eax
movw %ax, 0x10(%rsp)
movq (%rcx), %rsi
movq $0x0, (%rcx)
movq %rsi, 0x8(%rsp)
movl %edx, %esi
andl $0xfe00, %esi           # imm = 0xFE00
movw %si, 0x8(%rcx)
jmp 0x7cead
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7d0aa
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x7cd42
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 0x7cf1c
movzwl 0x10(%rsp), %eax
andl $0xfe00, %eax           # imm = 0xFE00
movl %eax, %ecx
orl $0x5, %ecx
movw %cx, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movb $0x1, 0x8(%rsp)
jmp 0x7ce5b
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7db16
jmp 0x7cda8
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7d9dc
jmp 0x7cf1c
movzwl 0x10(%rsp), %eax
andl $0xfe00, %eax           # imm = 0xFE00
movl %eax, %ecx
orl $0x3, %ecx
movw %cx, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movabsq $0x7ff8000000000000, %rcx # imm = 0x7FF8000000000000
movq %rcx, 0x8(%rsp)
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x7cdf8
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movzwl 0x8(%rcx), %edx
movzbl %dl, %esi
movl %edx, %edi
andl $0xff00, %edi           # imm = 0xFF00
orl $0x3, %edi
movw %di, 0x8(%rcx)
orl %esi, %eax
movw %ax, 0x10(%rsp)
movq (%rcx), %rsi
movq 0x8(%rsp), %r8
movq %r8, (%rcx)
movq %rsi, 0x8(%rsp)
andl $0xfe03, %edi           # imm = 0xFE03
jmp 0x7cea9
movzwl 0x10(%rsp), %eax
andl $0xfe00, %eax           # imm = 0xFE00
movl %eax, %ecx
orl $0x5, %ecx
movw %cx, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movb $0x0, 0x8(%rsp)
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x7ce72
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movzwl 0x8(%rcx), %edx
movzbl %dl, %esi
movl %edx, %edi
andl $0xff00, %edi           # imm = 0xFF00
orl $0x5, %edi
movw %di, 0x8(%rcx)
orl %esi, %eax
movw %ax, 0x10(%rsp)
movq (%rcx), %rsi
movq 0x8(%rsp), %r8
movq %r8, (%rcx)
movq %rsi, 0x8(%rsp)
andl $0xfe05, %edi           # imm = 0xFE05
movw %di, 0x8(%rcx)
andl $0x100, %edx            # imm = 0x100
orl %eax, %edx
movw %dx, 0x10(%rsp)
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x7ced7
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 0x7cf00
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 0x82500
movb $0x1, %al
cmpb $0x1, 0x118(%rbx)
jne 0x7cf55
movq 0x30(%rbx), %rcx
movq 0xd0(%rbx), %rdx
movq %rdx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rcx
jne 0x7cf4a
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 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x44177(%rip), %rsi     # 0xc10ea
leaq 0x44193(%rip), %rdx     # 0xc110d
leaq 0x8(%rsp), %rdi
callq 0x1ab58
leaq 0x8(%rsp), %rdi
callq 0x79c0a
jmp 0x7cf92
jmp 0x7cfae
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7cfb1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x7cfb1
movq %rax, %rbx
movq %rbx, %rdi
callq 0x11a70
nop