// File: /workspace/github_cpp_makefile_star2_O1/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 -0x70(%rbp), %rdi
movl $0x6, %esi
callq 0x12d6c
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0xa130
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x70(%rbp), %rsi
callq 0x13540
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0xa154
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 0x1662c
movq 0xc8(%rbx), %rax
movq 0xd0(%rbx), %rcx
cmpq %rax, %rcx
je 0xa1a3
movabsq $0x100002600, %rdx      # imm = 0x100002600
movzbl (%rcx), %esi
cmpq $0x20, %rsi
ja 0xa1a3
btq %rsi, %rdx
jae 0xa1a3
incq %rcx
movq %rcx, 0xd0(%rbx)
cmpq %rax, %rcx
jne 0xa185
movq 0xd0(%rbx), %rcx
cmpq %rax, %rcx
je 0xa1c5
cmpb $0x5d, (%rcx)
jne 0xa1c5
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0xa538
jmp 0xa2ef
xorl %r14d, %r14d
leaq -0x48(%rbp), %r15
leaq -0x88(%rbp), %r12
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0xa1ed
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x8(%rax), %rdi
movl %r14d, %esi
callq 0x15018
movq %rax, -0x48(%rbp)
movq 0x30(%rbx), %rcx
movq 0x40(%rbx), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0xa218
movq %rax, (%rcx)
addq $0x8, 0x30(%rbx)
jmp 0xa223
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11060
movq %rbx, %rdi
callq 0x96ee
movl %eax, %r13d
movq %rbx, %rdi
callq 0x1100e
testb %r13b, %r13b
je 0xa25e
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa538
movl -0x88(%rbp), %eax
cmpl $0xc, %eax
jne 0xa273
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa538
jmp 0xa246
movl $0x1, %r13d
movq %rbx, %rdi
movl $0x4, %esi
callq 0xaedc
jmp 0xa2dd
cmpl $0x4, %eax
je 0xa282
cmpl $0xa, %eax
jne 0xa28a
xorl %r13d, %r13d
jmp 0xa2dd
movl $0x2, %r13d
jmp 0xa2dd
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %r15, %rdi
leaq 0x5f0d8(%rip), %rsi     # 0x69374
leaq 0x5f0f8(%rip), %rdx     # 0x6939b
callq 0x1126a
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x9bfc
movq %rbx, %rdi
movl $0x4, %esi
callq 0xaedc
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xa2d7
callq 0x85d0
movl $0x1, %r13d
incl %r14d
testl %r13d, %r13d
je 0xa1d3
cmpl $0x2, %r13d
jne 0xa2f3
movb $0x1, %bl
jmp 0xa2f5
xorl %ebx, %ebx
leaq -0x70(%rbp), %rdi
callq 0x13416
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa334
jmp 0xa334
jmp 0xa334
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xa337
callq 0x85d0
jmp 0xa337
jmp 0xa334
jmp 0xa334
jmp 0xa334
jmp 0xa334
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x13416
movq %rbx, %rdi
callq 0x8b40