// File: /workspace/github_cpp_makefile_star2_O3/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 %r14
pushq %rbx
subq $0x40, %rsp
movq 0x48(%rdi), %rax
movq %rax, %rcx
subq 0x28(%rdi), %rcx
shrq $0x3, %rcx
cmpq $0x1, %rax
adcq $-0x1, %rcx
shlq $0x6, %rcx
movq 0x30(%rdi), %rax
subq 0x38(%rdi), %rax
movq 0x20(%rdi), %rdx
sarq $0x3, %rax
subq 0x10(%rdi), %rdx
sarq $0x3, %rdx
addq %rax, %rdx
addq %rcx, %rdx
cmpq $0x3e9, %rdx            # imm = 0x3E9
jae 0x5234
movq %rdi, %rbx
leaq -0x50(%rbp), %rsi
callq 0x527e
cmpb $0x1, 0x10c(%rbx)
jne 0x4f3e
movq 0xf0(%rbx), %rdx
testq %rdx, %rdx
je 0x4f3e
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x4f17
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 0xfa8e
movq $0x0, 0xf0(%rbx)
movq 0xe8(%rbx), %rax
movb $0x0, (%rax)
movl -0x50(%rbp), %eax
decl %eax
cmpl $0x9, %eax
ja 0x4fce
leaq 0x170b5(%rip), %rcx     # 0x1c008
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10a(%rbx)
jne 0x4fce
decq 0xd0(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rbp)
movq $0x0, -0x18(%rbp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x4f92
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 %rdx, -0x38(%rbp)
movl %ecx, %edx
andl $0xfe00, %edx           # imm = 0xFE00
movw %dx, 0x8(%rax)
andl $0x1ff, %ecx            # imm = 0x1FF
movw %cx, -0x30(%rbp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
je 0x51b5
addq $-0x8, %rax
jmp 0x51c2
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
je 0x5145
addq $-0x8, %rax
jmp 0x5152
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x5bda
jmp 0x50a5
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x53e0
jmp 0x5052
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rbp)
movq $0x0, -0x18(%rbp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x502a
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 %rdx, -0x38(%rbp)
movl %ecx, %edx
andl $0xfe00, %edx           # imm = 0xFE00
jmp 0x50f5
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x586a
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x5069
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 0x51f2
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rbp)
movq $0x0, -0x18(%rbp)
movb $0x1, -0x38(%rbp)
jmp 0x50bd
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x5ae2
jmp 0x51f2
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rbp)
movq $0x0, -0x18(%rbp)
movb $0x0, -0x38(%rbp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x50d4
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 -0x38(%rbp), %rsi
movq %rsi, (%rax)
movq %rdx, -0x38(%rbp)
movl %ecx, %edx
andl $0xfe00, %edx           # imm = 0xFE00
orl $0x5, %edx
movw %dx, 0x8(%rax)
andl $0x1ff, %ecx            # imm = 0x1FF
movw %cx, -0x30(%rbp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
je 0x5113
addq $-0x8, %rax
jmp 0x5120
movq 0x48(%rbx), %rcx
movl $0x1f8, %eax            # imm = 0x1F8
addq -0x8(%rcx), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movq 0xc0(%rbx), %rdx
subq %rdx, %rcx
movq %rcx, 0x18(%rax)
movq -0x40(%rbp), %rcx
subq %rdx, %rcx
movq %rcx, 0x20(%rax)
jmp 0x51e7
movq 0x48(%rbx), %rcx
movl $0x1f8, %eax            # imm = 0x1F8
addq -0x8(%rcx), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movq 0xc0(%rbx), %rdx
subq %rdx, %rcx
movq %rcx, 0x18(%rax)
movq -0x40(%rbp), %rcx
subq %rdx, %rcx
movq %rcx, 0x20(%rax)
leaq -0x28(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x17421(%rip), %rsi     # 0x1c5a2
leaq 0x17448(%rip), %rdx     # 0x1c5d0
leaq -0x38(%rbp), %rdi
callq 0x161fa
leaq -0x38(%rbp), %rsi
leaq -0x50(%rbp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x52ea
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x51b1
callq 0x4320
xorl %eax, %eax
jmp 0x522b
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 -0x38(%rbp), %rdi
callq 0xd372
movb $0x1, %al
cmpb $0x1, 0x10c(%rbx)
jne 0x522b
movq 0x30(%rbx), %rcx
movq 0xd0(%rbx), %rdx
movq %rdx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rcx
jne 0x5220
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movq %rcx, 0xe0(%rbx)
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq -0x28(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x1733b(%rip), %rsi     # 0x1c57e
leaq 0x17357(%rip), %rdx     # 0x1c5a1
leaq -0x38(%rbp), %rdi
callq 0x161fa
leaq -0x38(%rbp), %rdi
callq 0x5372
jmp 0x5260
jmp 0x5273
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x5276
callq 0x4320
jmp 0x5276
movq %rax, %rbx
movq %rbx, %rdi
callq 0x45c0