// File: /workspace/github_cpp_makefile_star2_O2/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 $0x50, %rsp
movq %rdi, %rbx
callq 0xfa36
cmpq $0x3e9, %rax            # imm = 0x3E9
jae 0x9860
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x98ae
cmpb $0x1, 0x10c(%rbx)
jne 0x94ab
cmpq $0x0, 0xf0(%rbx)
je 0x94ab
leaq 0xe8(%rbx), %rsi
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x948e
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
xorl %edx, %edx
callq 0x14146
andq $0x0, 0xf0(%rbx)
movq 0xe8(%rbx), %rax
movb $0x0, (%rax)
movl -0x30(%rbp), %eax
decl %eax
cmpl $0x9, %eax
ja 0x9570
leaq 0x55b44(%rip), %rcx     # 0x5f004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10a(%rbx)
jne 0x9570
decq 0xd0(%rbx)
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
callq 0x116f6
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x94ff
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x58(%rbp), %rsi
callq 0x11dbc
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9523
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 0x141b8
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9554
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 0x141c2
jmp 0x980f
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9587
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x28(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x141b8
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x95b2
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x20(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x141c2
leaq 0x55c89(%rip), %rsi     # 0x5f256
leaq -0x58(%rbp), %rdi
leaq -0x11(%rbp), %rdx
callq 0x8260
leaq -0x58(%rbp), %rsi
leaq -0x30(%rbp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x98e8
leaq -0x58(%rbp), %rdi
callq 0x82c0
xorl %r14d, %r14d
jmp 0x9854
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x9fb6
jmp 0x9782
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x9984
jmp 0x96b5
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
callq 0x116f6
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9641
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x58(%rbp), %rsi
callq 0x11dbc
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9665
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x28(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x141b8
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9690
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x20(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x141c2
jmp 0x980f
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x9d12
movl %eax, %r14d
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x96cf
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 0x141c2
jmp 0x981b
leaq -0x58(%rbp), %rdi
pushq $0x1
popq %rsi
callq 0x11ac6
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x970e
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x58(%rbp), %rsi
callq 0x11dbc
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9732
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x28(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x141b8
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x975d
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x20(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x141c2
jmp 0x980f
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x9edc
movl %eax, %r14d
jmp 0x981b
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
callq 0x11ac6
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x97ac
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x58(%rbp), %rsi
callq 0x11dbc
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x97d0
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x28(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x141b8
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x97fb
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq -0x20(%rbp), %rsi
subq 0xc0(%rbx), %rsi
callq 0x141c2
leaq -0x58(%rbp), %rdi
callq 0x11cce
movb $0x1, %r14b
cmpb $0x1, 0x10c(%rbx)
jne 0x9854
movq 0x30(%rbx), %rax
movq 0xd0(%rbx), %rcx
movq %rcx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rax
jne 0x9849
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 $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x559cb(%rip), %rsi     # 0x5f232
leaq -0x58(%rbp), %rdi
leaq -0x30(%rbp), %rdx
callq 0x8260
leaq -0x58(%rbp), %rdi
callq 0x111da
jmp 0x9895
jmp 0x98a3
jmp 0x9887
jmp 0x9887
jmp 0x9887
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x11cce
jmp 0x98a6
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x82c0
jmp 0x98a6
movq %rax, %rbx
movq %rbx, %rdi
callq 0x8b30