// File: /workspace/github_cpp_makefile_star2_O3/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 0x9b67
movq %rdi, %rbx
leaq -0x50(%rbp), %rsi
callq 0x9bc6
cmpb $0x1, 0x10c(%rbx)
jne 0x97a0
cmpq $0x0, 0xf0(%rbx)
je 0x97a0
leaq 0xe8(%rbx), %rsi
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9780
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
xorl %edx, %edx
callq 0x15ff6
movq $0x0, 0xf0(%rbx)
movq 0xe8(%rbx), %rax
movb $0x0, (%rax)
movl -0x50(%rbp), %eax
decl %eax
cmpl $0x9, %eax
ja 0x9865
leaq 0x5f84f(%rip), %rcx     # 0x69004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x10a(%rbx)
jne 0x9865
decq 0xd0(%rbx)
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x12ab8
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x97f4
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x13288
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9818
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 0x16076
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9849
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 0x16080
jmp 0x9b16
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x987c
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 0x16076
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x98a7
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 0x16080
leaq -0x28(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x5f98c(%rip), %rsi     # 0x69256
leaq 0x5f9b3(%rip), %rdx     # 0x69284
leaq -0x38(%rbp), %rdi
callq 0x1100a
leaq -0x38(%rbp), %rsi
leaq -0x50(%rbp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x9c00
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x98fa
callq 0x85d0
xorl %r14d, %r14d
jmp 0x9b5b
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0xa3e0
jmp 0x9a89
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x9caa
jmp 0x99ba
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x12ab8
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9946
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x13288
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x996a
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 0x16076
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9995
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 0x16080
jmp 0x9b16
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0xa0d4
movl %eax, %r14d
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x99d4
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 0x16080
jmp 0x9b22
leaq -0x38(%rbp), %rdi
movl $0x1, %esi
callq 0x12f06
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9a15
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x13288
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9a39
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 0x16076
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9a64
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 0x16080
jmp 0x9b16
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0xa306
movl %eax, %r14d
jmp 0x9b22
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x12f06
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9ab3
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x13288
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9ad7
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 0x16076
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9b02
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 0x16080
leaq -0x38(%rbp), %rdi
callq 0x1315e
movb $0x1, %r14b
cmpb $0x1, 0x10c(%rbx)
jne 0x9b5b
movq 0x30(%rbx), %rax
movq 0xd0(%rbx), %rcx
movq %rcx, 0xd8(%rbx)
cmpq 0x38(%rbx), %rax
jne 0x9b50
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 0x5f6bc(%rip), %rsi     # 0x69232
leaq 0x5f6d8(%rip), %rdx     # 0x69255
leaq -0x38(%rbp), %rdi
callq 0x1100a
leaq -0x38(%rbp), %rdi
callq 0x124b2
jmp 0x9ba7
jmp 0x9bba
jmp 0x9b99
jmp 0x9b99
jmp 0x9b99
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x1315e
jmp 0x9bbd
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x9bbd
callq 0x85d0
jmp 0x9bbd
movq %rax, %rbx
movq %rbx, %rdi
callq 0x8b30
nop