// File: /workspace/github_cpp_makefile_star2_O3/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
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rsp)
xorl %r15d, %r15d
movq %r15, 0x48(%rsp)
movl $0x30, %edi
callq 0x115b0
leaq 0x8(%rax), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %r15, 0x28(%rax)
movq 0x30(%rbx), %rcx
cmpq 0x38(%rbx), %rcx
jne 0x78f39
movq 0x48(%rbx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq -0x8(%rdx), %rcx
movq -0x8(%rcx), %rcx
movzwl 0x8(%rcx), %edx
movq (%rcx), %rsi
movq %rax, (%rcx)
movq %rsi, 0x28(%rsp)
movl %edx, %eax
andl $0xfe00, %eax           # imm = 0xFE00
orl $0x6, %eax
movw %ax, 0x8(%rcx)
andl $0x1ff, %edx            # imm = 0x1FF
movw %dx, 0x30(%rsp)
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, %rdx
cmpq %rcx, %rax
jne 0x78f82
movq 0x48(%rbx), %rsi
movl $0x200, %edx            # imm = 0x200
addq -0x8(%rsi), %rdx
movq -0x8(%rdx), %rdx
movq 0x8(%r14), %rsi
subq 0xc0(%rbx), %rsi
movq %rsi, 0x18(%rdx)
movq 0xc8(%rbx), %rsi
movq 0xd0(%rbx), %rdx
cmpq %rsi, %rdx
je 0x78fd1
movabsq $0x100002600, %rdi      # imm = 0x100002600
movzbl (%rdx), %r8d
cmpq $0x20, %r8
ja 0x78fd4
btq %r8, %rdi
jae 0x78fd4
incq %rdx
movq %rdx, 0xd0(%rbx)
cmpq %rsi, %rdx
jne 0x78fb2
movb (%rdx), %r8b
cmpb $0x5d, %r8b
jne 0x78fee
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x793c0
movb $0x1, %bl
jmp 0x790e0
xorl %ebp, %ebp
movl $0x200, %r13d           # imm = 0x200
leaq 0x8(%rsp), %r14
leaq 0x50(%rsp), %r15
cmpq %rcx, %rax
jne 0x79010
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
addq %r13, %rax
movq -0x8(%rax), %rdi
movl %ebp, %esi
callq 0x7a096
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x88d68
movq %rbx, %rdi
callq 0x784de
movl %eax, %r12d
movq %rbx, %rdi
callq 0x88d1c
testb %r12b, %r12b
je 0x790fb
movq %rbx, %rdi
movq %r15, %rsi
callq 0x793c0
incl %ebp
movl 0x50(%rsp), %eax
cmpl $0xc, %eax
jne 0x7906a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x793c0
jmp 0x79054
cmpl $0x4, %eax
je 0x78fe7
cmpl $0xa, %eax
jne 0x79085
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
jmp 0x79000
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x46128(%rip), %rsi     # 0xbf1bd
leaq 0x46148(%rip), %rdx     # 0xbf1e4
leaq 0x8(%rsp), %rdi
callq 0x1a88c
leaq 0x8(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x7894e
movq %rbx, %rdi
movl $0x4, %esi
callq 0x79cb2
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x790de
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
xorl %ebx, %ebx
leaq 0x28(%rsp), %rdi
callq 0x80736
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 0x79cb2
jmp 0x790de
jmp 0x79134
jmp 0x79134
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x79137
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x79137
jmp 0x79134
jmp 0x79134
jmp 0x79134
jmp 0x79134
jmp 0x79134
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x80736
movq %rbx, %rdi
callq 0x11a60
nop