// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/pkgs/RNBasics/json.cpp
// Function: Json::Reader::readArray(Json::Reader::Token&)
bool Reader::readArray(Token& tokenStart) {
  Value init(arrayValue);
  currentValue().swapPayload(init);
  currentValue().setOffsetStart(tokenStart.start_ - begin_);
  skipSpaces();
  if (*current_ == ']') // empty array
  {
    Token endArray;
    readToken(endArray);
    return true;
  }
  int index = 0;
  for (;;) {
    Value& value = currentValue()[index++];
    nodes_.push(&value);
    bool ok = readValue();
    nodes_.pop();
    if (!ok) // error already set
      return recoverFromError(tokenArrayEnd);

    Token token;
    // Accept Comment after last item in the array.
    ok = readToken(token);
    while (token.type_ == tokenComment && ok) {
      ok = readToken(token);
    }
    bool badTokenType =
        (token.type_ != tokenArraySeparator && token.type_ != tokenArrayEnd);
    if (!ok || badTokenType) {
      return addErrorAndRecover(
          "Missing ',' or ']' in array declaration", token, tokenArrayEnd);
    }
    if (token.type_ == tokenArrayEnd)
      break;
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x40(%rsp), %rdi
pushq $0x6
popq %rsi
callq 0x74836
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x6f4c6
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq 0x40(%rsp), %rsi
callq 0x6f810
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x6f4eb
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movq 0x8(%r14), %rcx
subq 0xc0(%rbx), %rcx
movq %rcx, 0x18(%rax)
movq %rbx, %rdi
callq 0x6f9a6
movq 0xd0(%rbx), %rax
cmpb $0x5d, (%rax)
jne 0x6f526
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6f860
movb $0x1, %bl
jmp 0x6f5ec
xorl %ebp, %ebp
movl $0x200, %r13d           # imm = 0x200
leaq 0x8(%rsp), %r14
leaq 0x28(%rsp), %r15
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x6f54d
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
addq %r13, %rax
movq -0x8(%rax), %rdi
movl %ebp, %esi
callq 0x70288
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7b1e0
movq %rbx, %rdi
callq 0x6ec1c
movl %eax, %r12d
movq %rbx, %rdi
callq 0x7b18a
testb %r12b, %r12b
je 0x6f607
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6f860
incl %ebp
movl 0x28(%rsp), %eax
cmpl $0xc, %eax
jne 0x6f5a7
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6f860
jmp 0x6f591
cmpl $0x4, %eax
je 0x6f51f
cmpl $0xa, %eax
je 0x6f538
leaq 0x3cb11(%rip), %rsi     # 0xac0cd
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x196d0
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
pushq $0x4
popq %rcx
movq %rbx, %rdi
callq 0x70252
leaq 0x8(%rsp), %rdi
callq 0x11270
xorl %ebx, %ebx
leaq 0x40(%rsp), %rdi
callq 0x74cb0
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x6ffac
jmp 0x6f5ea
jmp 0x6f631
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x11270
jmp 0x6f634
jmp 0x6f631
jmp 0x6f631
jmp 0x6f631
jmp 0x6f631
jmp 0x6f631
jmp 0x6f631
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x74cb0
movq %rbx, %rdi
callq 0x11a80