// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.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 0x9b63
movq %rdi, %rbx
leaq -0x50(%rbp), %rsi
callq 0x9bc2
cmpb $0x1, 0x10c(%rbx)
jne 0x979c
cmpq $0x0, 0xf0(%rbx)
je 0x979c
leaq 0xe8(%rbx), %rsi
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x977c
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
xorl %edx, %edx
callq 0x165aa
movq $0x0, 0xf0(%rbx)
movq 0xe8(%rbx), %rax
movb $0x0, (%rax)
movl -0x50(%rbp), %eax
decl %eax
cmpl $0x9, %eax
ja 0x9861
leaq 0x5f853(%rip), %rcx     # 0x69004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10a(%rbx)
jne 0x9861
decq 0xd0(%rbx)
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x12d6c
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x97f0
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x13540
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9814
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq 0xc0(%rbx), %rsi
notq %rsi
addq 0xd0(%rbx), %rsi
callq 0x1662c
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9845
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq 0xd0(%rbx), %rsi
subq 0xc0(%rbx), %rsi
callq 0x16636
jmp 0x9b12
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9878
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x48(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x1662c
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x98a3
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x40(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x16636
leaq -0x28(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x5f990(%rip), %rsi     # 0x69256
leaq 0x5f9b7(%rip), %rdx     # 0x69284
leaq -0x38(%rbp), %rdi
callq 0x1126a
leaq -0x38(%rbp), %rsi
leaq -0x50(%rbp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x9bfc
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x98f6
callq 0x85d0
xorl %r14d, %r14d
jmp 0x9b57
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0xa422
jmp 0x9a85
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x9ca6
jmp 0x99b6
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x12d6c
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9942
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x13540
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9966
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x48(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x1662c
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9991
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x40(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x16636
jmp 0x9b12
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0xa0f4
movl %eax, %r14d
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x99d0
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq 0xd0(%rbx), %rsi
subq 0xc0(%rbx), %rsi
callq 0x16636
jmp 0x9b1e
leaq -0x38(%rbp), %rdi
movl $0x1, %esi
callq 0x131be
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9a11
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x13540
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9a35
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x48(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x1662c
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9a60
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x40(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x16636
jmp 0x9b12
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0xa348
movl %eax, %r14d
jmp 0x9b1e
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x131be
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9aaf
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x13540
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9ad3
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x48(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x1662c
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9afe
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x40(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x16636
leaq -0x38(%rbp), %rdi
callq 0x13416
movb $0x1, %r14b
cmpb $0x1, 0x10c(%rbx)
jne 0x9b57
movq 0x30(%rbx), %rax
movq 0xd0(%rbx), %rcx
movq %rcx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rax
jne 0x9b4c
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movq %rax, 0xe0(%rbx)
movl %r14d, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq -0x28(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x5f6c0(%rip), %rsi     # 0x69232
leaq 0x5f6dc(%rip), %rdx     # 0x69255
leaq -0x38(%rbp), %rdi
callq 0x1126a
leaq -0x38(%rbp), %rdi
callq 0x1276a
jmp 0x9ba3
jmp 0x9bb6
jmp 0x9b95
jmp 0x9b95
jmp 0x9b95
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x13416
jmp 0x9bb9
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x9bb9
callq 0x85d0
jmp 0x9bb9
movq %rax, %rbx
movq %rbx, %rdi
callq 0x8b40
nop