// File: /workspace/github_cpp_makefile_star2_O1/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
movzwl 0x30(%rsp), %ebp
andl $0xfe00, %ebp           # imm = 0xFE00
movl %ebp, %eax
orl $0x6, %eax
movw %ax, 0x30(%rsp)
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, 0x20(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %r15, 0x28(%rax)
movq %rax, 0x28(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7a20d
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movzwl 0x8(%rax), %ecx
movzbl %cl, %edx
movl %ecx, %esi
andl $0xff00, %esi           # imm = 0xFF00
orl $0x6, %esi
movw %si, 0x8(%rax)
orl %edx, %ebp
movw %bp, 0x30(%rsp)
movq (%rax), %rdx
movq 0x28(%rsp), %rdi
movq %rdi, (%rax)
movq %rdx, 0x28(%rsp)
andl $0xfe06, %esi           # imm = 0xFE06
movw %si, 0x8(%rax)
andl $0x100, %ecx            # imm = 0x100
orl %ebp, %ecx
movw %cx, 0x30(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7a26c
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 0xc8(%rbx), %rax
movq 0xd0(%rbx), %rcx
cmpq %rax, %rcx
je 0x7a2ba
movabsq $0x100002600, %rdx      # imm = 0x100002600
movzbl (%rcx), %esi
cmpq $0x20, %rsi
ja 0x7a2ba
btq %rsi, %rdx
jae 0x7a2ba
incq %rcx
movq %rcx, 0xd0(%rbx)
cmpq %rax, %rcx
jne 0x7a29c
movq 0xd0(%rbx), %rax
cmpb $0x5d, (%rax)
jne 0x7a2d8
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x7a768
jmp 0x7a3f1
xorl %r14d, %r14d
movl $0x200, %ebp            # imm = 0x200
leaq 0x8(%rsp), %r15
leaq 0x50(%rsp), %r12
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x7a2ff
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
addq %rbp, %rax
movq -0x8(%rax), %rdi
movl %r14d, %esi
callq 0x7b53a
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8af44
movq %rbx, %rdi
callq 0x7962e
movl %eax, %r13d
movq %rbx, %rdi
callq 0x8aef8
testb %r13b, %r13b
je 0x7a354
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7a768
movl 0x50(%rsp), %eax
cmpl $0xc, %eax
jne 0x7a369
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7a768
jmp 0x7a33e
movl $0x1, %r13d
movq %rbx, %rdi
movl $0x4, %esi
callq 0x7b0a6
jmp 0x7a3df
cmpl $0x4, %eax
je 0x7a378
cmpl $0xa, %eax
jne 0x7a380
xorl %r13d, %r13d
jmp 0x7a3df
movl $0x2, %r13d
jmp 0x7a3df
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
leaq 0x46e19(%rip), %rsi     # 0xc11ad
leaq 0x46e39(%rip), %rdx     # 0xc11d4
callq 0x1ab58
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x79b74
movq %rbx, %rdi
movl $0x4, %esi
callq 0x7b0a6
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7a3d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
movl $0x1, %r13d
incl %r14d
testl %r13d, %r13d
je 0x7a2ea
cmpl $0x2, %r13d
jne 0x7a3f5
movb $0x1, %bl
jmp 0x7a3f7
xorl %ebx, %ebx
leaq 0x28(%rsp), %rdi
callq 0x82500
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7a43f
jmp 0x7a43f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7a442
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x7a442
jmp 0x7a43f
jmp 0x7a43f
jmp 0x7a43f
jmp 0x7a43f
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x82500
movq %rbx, %rdi
callq 0x11a70