// File: /workspace/github_cpp_makefile_star2_O2/RegulusImpact[P]sadboy/include/jsoncpp.cpp
// Function: Json::Reader::readValue()
bool Reader::readValue() {
  // readValue() may call itself only if it calls readObject() or ReadArray().
  // These methods execute nodes_.push() just before and nodes_.pop)() just after calling readValue(). 
  // parse() executes one nodes_.push(), so > instead of >=.
  if (nodes_.size() > stackLimit_g) throwRuntimeError("Exceeded stackLimit in readValue().");

  Token token;
  skipCommentTokens(token);
  bool successful = true;

  if (collectComments_ && !commentsBefore_.empty()) {
    currentValue().setComment(commentsBefore_, commentBefore);
    commentsBefore_.clear();
  }

  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();
  }

  return successful;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
callq 0x1254c
cmpq $0x3e9, %rax            # imm = 0x3E9
jae 0x5006
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x5040
cmpb $0x1, 0x10c(%rbx)
jne 0x4d45
cmpq $0x0, 0xf0(%rbx)
je 0x4d45
leaq 0xe8(%rbx), %rsi
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x4d28
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
xorl %edx, %edx
callq 0x507a
andq $0x0, 0xf0(%rbx)
movq 0xe8(%rbx), %rax
movb $0x0, (%rax)
movl -0x50(%rbp), %eax
decl %eax
cmpl $0x9, %eax
ja 0x4e0a
leaq 0x142ae(%rip), %rcx     # 0x19008
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10a(%rbx)
jne 0x4e0a
decq 0xd0(%rbx)
andw $0x0, -0x30(%rbp)
xorps %xmm0, %xmm0
andq $0x0, -0x18(%rbp)
movups %xmm0, -0x28(%rbp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x4d9f
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x58bc
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rdi
cmpq %rcx, %rax
jne 0x4dc9
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 0x4dfa
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 0x4fbb
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x4e27
movq 0x48(%rbx), %rdx
movl $0x200, %esi            # imm = 0x200
addq -0x8(%rdx), %rsi
movq -0x48(%rbp), %rdi
movq 0xc0(%rbx), %rdx
subq %rdx, %rdi
movq -0x8(%rsi), %rsi
movq %rdi, 0x18(%rsi)
cmpq %rcx, %rax
jne 0x4e4f
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movq -0x40(%rbp), %rcx
subq %rdx, %rcx
movq %rcx, 0x20(%rax)
leaq 0x1473d(%rip), %rsi     # 0x195a2
leaq -0x38(%rbp), %rdi
leaq -0x9(%rbp), %rdx
callq 0x4130
leaq -0x38(%rbp), %rsi
leaq -0x50(%rbp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x50ac
leaq -0x38(%rbp), %rdi
callq 0x4170
xorl %eax, %eax
jmp 0x4fff
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x57cc
jmp 0x4f28
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x5192
jmp 0x4ed2
andw $0x0, -0x30(%rbp)
xorps %xmm0, %xmm0
andq $0x0, -0x18(%rbp)
movups %xmm0, -0x28(%rbp)
jmp 0x4f43
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x552c
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x4ee9
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 0x4fc6
movw $0x5, -0x30(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rbp)
andq $0x0, -0x18(%rbp)
movb $0x1, -0x38(%rbp)
jmp 0x4f43
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x56f4
jmp 0x4fc6
movw $0x5, -0x30(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rbp)
andq $0x0, -0x18(%rbp)
movb $0x0, -0x38(%rbp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x4f5a
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x58bc
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x4f84
movq 0x48(%rbx), %rdx
movl $0x200, %esi            # imm = 0x200
addq -0x8(%rdx), %rsi
movq -0x48(%rbp), %rdi
movq 0xc0(%rbx), %rdx
subq %rdx, %rdi
movq -0x8(%rsi), %rsi
movq %rdi, 0x18(%rsi)
cmpq %rcx, %rax
jne 0x4fac
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movq -0x40(%rbp), %rcx
subq %rdx, %rcx
movq %rcx, 0x20(%rax)
leaq -0x38(%rbp), %rdi
callq 0xb32e
movb $0x1, %al
cmpb $0x1, 0x10c(%rbx)
jne 0x4fff
movq 0x30(%rbx), %rcx
movq 0xd0(%rbx), %rdx
movq %rdx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rcx
jne 0x4ff4
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movq %rcx, 0xe0(%rbx)
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
leaq 0x14571(%rip), %rsi     # 0x1957e
leaq -0x38(%rbp), %rdi
leaq -0x50(%rbp), %rdx
callq 0x4130
leaq -0x38(%rbp), %rdi
callq 0x5126
jmp 0x5027
jmp 0x5035
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x4170
jmp 0x5038
movq %rax, %rbx
movq %rbx, %rdi
callq 0x45a0