// File: /workspace/github_cpp_makefile_star2_O3/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 0x8f0d1(%rip), %eax     # 0x1075bc
cmpl $0x3e8, %eax            # imm = 0x3E8
jge 0x78897
movq %rdi, %rbx
incl %eax
movl %eax, 0x8f0bb(%rip)     # 0x1075bc
leaq 0x30(%rsp), %rsi
callq 0x788ee
cmpb $0x1, 0x10c(%rbx)
jne 0x7856b
movq 0xf0(%rbx), %rdx
testq %rdx, %rdx
je 0x7856b
leaq 0xe8(%rbx), %r14
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7853e
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 0x440d6(%rip), %rcx     # 0xbc634
movq %r14, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x11910
movl 0x30(%rsp), %eax
decl %eax
cmpl $0x9, %eax
ja 0x78609
leaq 0x465ef(%rip), %rcx     # 0xbeb70
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10a(%rbx)
jne 0x78609
decq 0xd0(%rbx)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x785c4
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 0x78812
addq $-0x8, %rax
jmp 0x7881f
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
je 0x78796
addq $-0x8, %rax
jmp 0x787a3
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x79242
jmp 0x786f1
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x78a48
jmp 0x7869a
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x78669
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 0x78746
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x78eda
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x786b1
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 0x78850
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movb $0x1, 0x8(%rsp)
jmp 0x7870c
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7914a
jmp 0x78850
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movb $0x0, 0x8(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x78723
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 0x78765
addq $-0x8, %rax
jmp 0x78772
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)
jmp 0x78844
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 0x4694c(%rip), %rsi     # 0xbf11e
leaq 0x46973(%rip), %rdx     # 0xbf14c
leaq 0x8(%rsp), %rdi
callq 0x1a88c
leaq 0x8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x7894e
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7880e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
xorl %eax, %eax
jmp 0x7888f
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)
leaq 0x8(%rsp), %rdi
callq 0x80736
movb $0x1, %al
cmpb $0x1, 0x10c(%rbx)
jne 0x78889
movq 0x30(%rbx), %rcx
movq 0xd0(%rbx), %rdx
movq %rdx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rcx
jne 0x7887e
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movq %rcx, 0xe0(%rbx)
decl 0x8ed2d(%rip)           # 0x1075bc
addq $0x48, %rsp
popq %rbx
popq %r14
retq
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x46853(%rip), %rsi     # 0xbf0fa
leaq 0x4686f(%rip), %rdx     # 0xbf11d
leaq 0x8(%rsp), %rdi
callq 0x1a88c
leaq 0x8(%rsp), %rdi
callq 0x789e4
jmp 0x788c6
jmp 0x788e2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x788e5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x788e5
movq %rax, %rbx
movq %rbx, %rdi
callq 0x11a60
nop