// File: /workspace/github_cpp_makefile_star2_O1/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 0x530f
movq %rdi, %rbx
leaq -0x50(%rbp), %rsi
callq 0x535a
cmpb $0x1, 0x10c(%rbx)
jne 0x4f4a
movq 0xf0(%rbx), %rdx
testq %rdx, %rdx
je 0x4f4a
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x4f23
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 0x109f6
movq $0x0, 0xf0(%rbx)
movq 0xe8(%rbx), %rax
movb $0x0, (%rax)
movl -0x50(%rbp), %eax
decl %eax
cmpl $0x9, %eax
ja 0x5050
leaq 0x190a9(%rip), %rcx     # 0x1e008
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10a(%rbx)
jne 0x5050
decq 0xd0(%rbx)
movzwl -0x30(%rbp), %eax
andl $0xfe00, %eax           # imm = 0xFE00
movw %ax, -0x30(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rbp)
movq $0x0, -0x18(%rbp)
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x4faf
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, -0x30(%rbp)
movq (%rcx), %rsi
movq -0x38(%rbp), %rdi
movq %rdi, (%rcx)
movq %rsi, -0x38(%rbp)
movl %edx, %esi
andl $0xfe00, %esi           # imm = 0xFE00
movw %si, 0x8(%rcx)
andl $0x100, %edx            # imm = 0x100
orl %eax, %edx
movw %dx, -0x30(%rbp)
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rdi
cmpq %rcx, %rax
jne 0x500f
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 0x5040
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 0x52c2
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x506d
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 0x5095
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 -0x28(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x194ef(%rip), %rsi     # 0x1e5a2
leaq 0x19516(%rip), %rdx     # 0x1e5d0
leaq -0x38(%rbp), %rdi
callq 0x173f0
leaq -0x38(%rbp), %rsi
leaq -0x50(%rbp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x53c6
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x50e3
callq 0x4320
xorl %eax, %eax
jmp 0x5306
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x5dbc
jmp 0x51e9
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x54bc
jmp 0x5184
movzwl -0x30(%rbp), %eax
andl $0xfe00, %eax           # imm = 0xFE00
movw %ax, -0x30(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rbp)
movq $0x0, -0x18(%rbp)
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x513c
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, -0x30(%rbp)
movq (%rcx), %rsi
movq -0x38(%rbp), %rdi
movq %rdi, (%rcx)
movq %rsi, -0x38(%rbp)
movl %edx, %esi
andl $0xfe00, %esi           # imm = 0xFE00
movw %si, 0x8(%rcx)
jmp 0x5262
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x59b4
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x519b
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 0x52cd
movzwl -0x30(%rbp), %eax
andl $0xfe00, %eax           # imm = 0xFE00
movl %eax, %ecx
orl $0x5, %ecx
movw %cx, -0x30(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rbp)
movq $0x0, -0x18(%rbp)
movb $0x1, -0x38(%rbp)
jmp 0x5213
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x5c82
jmp 0x52cd
movzwl -0x30(%rbp), %eax
andl $0xfe00, %eax           # imm = 0xFE00
movl %eax, %ecx
orl $0x5, %ecx
movw %cx, -0x30(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rbp)
movq $0x0, -0x18(%rbp)
movb $0x0, -0x38(%rbp)
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x522a
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, -0x30(%rbp)
movq (%rcx), %rsi
movq -0x38(%rbp), %r8
movq %r8, (%rcx)
movq %rsi, -0x38(%rbp)
andl $0xfe05, %edi           # imm = 0xFE05
movw %di, 0x8(%rcx)
andl $0x100, %edx            # imm = 0x100
orl %eax, %edx
movw %dx, -0x30(%rbp)
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x528b
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 0x52b3
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 0xdfe0
movb $0x1, %al
cmpb $0x1, 0x10c(%rbx)
jne 0x5306
movq 0x30(%rbx), %rcx
movq 0xd0(%rbx), %rdx
movq %rdx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rcx
jne 0x52fb
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 0x19260(%rip), %rsi     # 0x1e57e
leaq 0x1927c(%rip), %rdx     # 0x1e5a1
leaq -0x38(%rbp), %rdi
callq 0x173f0
leaq -0x38(%rbp), %rdi
callq 0x544e
jmp 0x533b
jmp 0x534e
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x5351
callq 0x4320
jmp 0x5351
movq %rax, %rbx
movq %rbx, %rdi
callq 0x45d0
nop