// File: /workspace/github_cpp_makefile_star2_O2/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::readArray(Json::Reader::Token&)
bool Reader::readArray(Token& token) {
  Value init(arrayValue);
  currentValue().swapPayload(init);
  currentValue().setOffsetStart(token.start_ - begin_);
  skipSpaces();
  if (current_ != end_ && *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 currentToken;
    // Accept Comment after last item in the array.
    ok = readToken(currentToken);
    while (currentToken.type_ == tokenComment && ok) {
      ok = readToken(currentToken);
    }
    bool badTokenType = (currentToken.type_ != tokenArraySeparator &&
                         currentToken.type_ != tokenArrayEnd);
    if (!ok || badTokenType) {
      return addErrorAndRecover("Missing ',' or ']' in array declaration",
                                currentToken, tokenArrayEnd);
    }
    if (currentToken.type_ == tokenArrayEnd)
      break;
  }
  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x90(%rbp), %rdi
pushq $0x6
popq %rsi
callq 0x116f6
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9d4f
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x90(%rbp), %rsi
callq 0x11dbc
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9d76
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq 0x8(%r14), %rsi
subq 0xc0(%rbx), %rsi
callq 0x141b8
movq %rbx, %rdi
callq 0xa1fc
movq 0xd0(%rbx), %rax
cmpq 0xc8(%rbx), %rax
je 0x9dba
cmpb $0x5d, (%rax)
jne 0x9dba
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0xa0b6
movb $0x1, %bl
jmp 0x9e7d
xorl %r14d, %r14d
leaq -0x50(%rbp), %r15
leaq -0x68(%rbp), %r12
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x9ddf
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x8(%rax), %rdi
movl %r14d, %esi
callq 0x1332c
movq %rax, -0x50(%rbp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf994
movq %rbx, %rdi
callq 0x9432
movl %eax, %r13d
movq %rbx, %rdi
callq 0xf934
testb %r13b, %r13b
je 0x9e9a
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa0b6
incl %r14d
movl -0x68(%rbp), %eax
cmpl $0xc, %eax
jne 0x9e39
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa0b6
jmp 0x9e24
cmpl $0x4, %eax
je 0x9db3
cmpl $0xa, %eax
je 0x9dc5
leaq 0x55522(%rip), %rsi     # 0x5f374
leaq -0x50(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x8260
leaq -0x50(%rbp), %rsi
leaq -0x68(%rbp), %rdx
pushq $0x4
popq %rcx
movq %rbx, %rdi
callq 0xaa4a
leaq -0x50(%rbp), %rdi
callq 0x82c0
xorl %ebx, %ebx
leaq -0x90(%rbp), %rdi
callq 0x11cce
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 0xa868
jmp 0x9e7b
jmp 0x9ec5
jmp 0x9ec5
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x82c0
jmp 0x9ec8
jmp 0x9ec5
jmp 0x9ec5
jmp 0x9ec5
jmp 0x9ec5
jmp 0x9ec5
jmp 0x9ec5
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x11cce
movq %rbx, %rdi
callq 0x8b30