// File: /workspace/github_cpp_makefile_star2_O1/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
cmpl $0x3e8, 0x8ff8d(%rip)   # imm = 0x3E8
jge 0x79abd
movq %rdi, %rbx
incl 0x8ff7e(%rip)           # 0x1095cc
leaq 0x30(%rsp), %rsi
callq 0x79b14
cmpb $0x1, 0x10c(%rbx)
jne 0x796b8
movq 0xf0(%rbx), %rdx
testq %rdx, %rdx
je 0x796b8
leaq 0xe8(%rbx), %r14
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7968b
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 0x44f8c(%rip), %rcx     # 0xbe637
movq %r14, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x11920
movl 0x30(%rsp), %eax
decl %eax
cmpl $0x9, %eax
ja 0x797c9
leaq 0x47492(%rip), %rcx     # 0xc0b60
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10a(%rbx)
jne 0x797c9
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 0x79725
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 0x79788
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 0x797b9
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 0x79a6a
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x797e6
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 0x7980f
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 0x478df(%rip), %rsi     # 0xc110e
leaq 0x47906(%rip), %rdx     # 0xc113c
leaq 0x8(%rsp), %rdi
callq 0x1ab58
leaq 0x8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x79b74
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7986b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
xorl %eax, %eax
jmp 0x79ab5
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7a58e
jmp 0x79986
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x79c6e
jmp 0x7991b
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 0x798d0
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 0x79a07
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7a190
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x79932
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 0x79a76
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 0x799b5
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x7a454
jmp 0x79a76
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 0x799cc
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 0x79a31
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 0x79a5a
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, 0x10c(%rbx)
jne 0x79aaf
movq 0x30(%rbx), %rcx
movq 0xd0(%rbx), %rdx
movq %rdx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rcx
jne 0x79aa4
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movq %rcx, 0xe0(%rbx)
decl 0x8fb17(%rip)           # 0x1095cc
addq $0x48, %rsp
popq %rbx
popq %r14
retq
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x4761d(%rip), %rsi     # 0xc10ea
leaq 0x47639(%rip), %rdx     # 0xc110d
leaq 0x8(%rsp), %rdi
callq 0x1ab58
leaq 0x8(%rsp), %rdi
callq 0x79c0a
jmp 0x79aec
jmp 0x79b08
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x79b0b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x79b0b
movq %rax, %rbx
movq %rbx, %rdi
callq 0x11a70
nop