// File: /workspace/github_cpp_makefile_star2_O3/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 -0x88(%rbp), %rdi
movl $0x6, %esi
callq 0x12ab8
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0xa113
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x88(%rbp), %rsi
callq 0x13288
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0xa13a
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 0x16076
movq 0xc8(%rbx), %rcx
movq 0xd0(%rbx), %rax
cmpq %rcx, %rax
je 0xa189
movabsq $0x100002600, %rdx      # imm = 0x100002600
movzbl (%rax), %esi
cmpq $0x20, %rsi
ja 0xa189
btq %rsi, %rdx
jae 0xa189
incq %rax
movq %rax, 0xd0(%rbx)
cmpq %rcx, %rax
jne 0xa16b
cmpq %rcx, %rax
je 0xa1a6
cmpb $0x5d, (%rax)
jne 0xa1a6
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0xa4f6
movb $0x1, %bl
jmp 0xa2a0
xorl %r14d, %r14d
leaq -0x48(%rbp), %r15
leaq -0x60(%rbp), %r12
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0xa1cb
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x8(%rax), %rdi
movl %r14d, %esi
callq 0x14bea
movq %rax, -0x48(%rbp)
movq 0x30(%rbx), %rcx
movq 0x40(%rbx), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0xa1f6
movq %rax, (%rcx)
addq $0x8, 0x30(%rbx)
jmp 0xa201
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10e00
movq %rbx, %rdi
callq 0x96f2
movl %eax, %r13d
movq %rbx, %rdi
callq 0x10dae
testb %r13b, %r13b
je 0xa2bd
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa4f6
incl %r14d
movl -0x60(%rbp), %eax
cmpl $0xc, %eax
jne 0xa240
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa4f6
jmp 0xa22b
cmpl $0x4, %eax
je 0xa19f
cmpl $0xa, %eax
je 0xa1b1
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x5f113(%rip), %rsi     # 0x69374
leaq 0x5f133(%rip), %rdx     # 0x6939b
leaq -0x48(%rbp), %rdi
callq 0x1100a
leaq -0x48(%rbp), %rsi
leaq -0x60(%rbp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x9c00
movq %rbx, %rdi
movl $0x4, %esi
callq 0xae3c
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0xa29e
callq 0x85d0
xorl %ebx, %ebx
leaq -0x88(%rbp), %rdi
callq 0x1315e
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl $0x4, %esi
callq 0xae3c
jmp 0xa29e
jmp 0xa2ef
jmp 0xa2ef
jmp 0xa2ef
jmp 0xa2ef
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0xa2f2
callq 0x85d0
jmp 0xa2f2
jmp 0xa2ef
jmp 0xa2ef
jmp 0xa2ef
jmp 0xa2ef
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x1315e
movq %rbx, %rdi
callq 0x8b30