// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNBasics/json.cpp
// Function: Json::OurReader::readToken(Json::OurReader::Token&)
bool OurReader::readToken(Token& token) {
  skipSpaces();
  token.start_ = current_;
  Char c = getNextChar();
  bool ok = true;
  switch (c) {
  case '{':
    token.type_ = tokenObjectBegin;
    break;
  case '}':
    token.type_ = tokenObjectEnd;
    break;
  case '[':
    token.type_ = tokenArrayBegin;
    break;
  case ']':
    token.type_ = tokenArrayEnd;
    break;
  case '"':
    token.type_ = tokenString;
    ok = readString();
    break;
  case '\'':
    if (features_.allowSingleQuotes_) {
    token.type_ = tokenString;
    ok = readStringSingleQuote();
    break;
    } // else continue
  case '/':
    token.type_ = tokenComment;
    ok = readComment();
    break;
  case '0':
  case '1':
  case '2':
  case '3':
  case '4':
  case '5':
  case '6':
  case '7':
  case '8':
  case '9':
    token.type_ = tokenNumber;
    readNumber(false);
    break;
  case '-':
    if (readNumber(true)) {
      token.type_ = tokenNumber;
    } else {
      token.type_ = tokenNegInf;
      ok = features_.allowSpecialFloats_ && match("nfinity", 7);
    }
    break;
  case 't':
    token.type_ = tokenTrue;
    ok = match("rue", 3);
    break;
  case 'f':
    token.type_ = tokenFalse;
    ok = match("alse", 4);
    break;
  case 'n':
    token.type_ = tokenNull;
    ok = match("ull", 3);
    break;
  case 'N':
    if (features_.allowSpecialFloats_) {
      token.type_ = tokenNaN;
      ok = match("aN", 2);
    } else {
      ok = false;
    }
    break;
  case 'I':
    if (features_.allowSpecialFloats_) {
      token.type_ = tokenPosInf;
      ok = match("nfinity", 7);
    } else {
      ok = false;
    }
    break;
  case ',':
    token.type_ = tokenArraySeparator;
    break;
  case ':':
    token.type_ = tokenMemberSeparator;
    break;
  case 0:
    token.type_ = tokenEndOfStream;
    break;
  default:
    ok = false;
    break;
  }
  if (!ok)
    token.type_ = tokenError;
  token.end_ = current_;
  return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0xc8(%rdi), %rcx
movq 0xd0(%rdi), %rax
cmpq %rcx, %rax
je 0x7c4dd
movabsq $0x100002600, %rdx      # imm = 0x100002600
movzbl (%rax), %esi
cmpq $0x20, %rsi
ja 0x7c4dd
btq %rsi, %rdx
jae 0x7c4dd
incq %rax
movq %rax, 0xd0(%r14)
cmpq %rcx, %rax
jne 0x7c4bf
movq %rax, 0x8(%rbx)
cmpq %rcx, %rax
je 0x7c610
leaq 0x1(%rax), %rdx
movq %rdx, 0xd0(%r14)
movzbl (%rax), %esi
cmpl $0x5a, %esi
jg 0x7c52e
leal -0x22(%rsi), %edi
cmpl $0x2c, %edi
ja 0x7c608
leaq 0x42758(%rip), %rsi     # 0xbec68
movslq (%rsi,%rdi,4), %rdi
addq %rsi, %rdi
jmpq *%rdi
movl $0x6, (%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x7c9f0
jmp 0x7c7c6
cmpl $0x6d, %esi
jle 0x7c58f
cmpl $0x7a, %esi
jg 0x7c5eb
cmpl $0x6e, %esi
je 0x7c71e
cmpl $0x74, %esi
jne 0x7c7c0
movl $0x7, (%rbx)
subq %rdx, %rcx
cmpq $0x3, %rcx
jl 0x7c7c0
movl $0x3, %edx
leaq 0x42fd6(%rip), %rcx     # 0xbf543
movl $0x3, %esi
subq $0x1, %rsi
jb 0x7c770
movb (%rax,%rdx), %dil
cmpb -0x1(%rdx,%rcx), %dil
movq %rsi, %rdx
je 0x7c572
jmp 0x7c7c0
cmpl $0x5b, %esi
je 0x7c768
cmpl $0x5d, %esi
je 0x7c760
cmpl $0x66, %esi
jne 0x7c7c0
movl $0x8, (%rbx)
subq %rdx, %rcx
cmpq $0x4, %rcx
jl 0x7c7c0
movl $0x4, %edx
leaq 0x42f7f(%rip), %rcx     # 0xbf548
movl $0x4, %esi
subq $0x1, %rsi
jb 0x7c7db
movb (%rax,%rdx), %dil
cmpb -0x1(%rdx,%rcx), %dil
movq %rsi, %rdx
je 0x7c5ce
jmp 0x7c7c0
cmpl $0x7d, %esi
je 0x7c758
cmpl $0x7b, %esi
jne 0x7c7c0
movl $0x1, (%rbx)
jmp 0x7c7c6
testl %esi, %esi
jne 0x7c7c0
movl $0x0, (%rbx)
jmp 0x7c7c6
cmpb $0x1, 0x113(%r14)
jne 0x7c7c0
movl $0xb, (%rbx)
subq %rdx, %rcx
cmpq $0x7, %rcx
jl 0x7c7c0
movl $0x7, %edx
leaq 0x433d9(%rip), %rcx     # 0xbfa21
movl $0x7, %esi
subq $0x1, %rsi
jb 0x7c7e1
movb (%rax,%rdx), %dil
cmpb -0x1(%rdx,%rcx), %dil
movq %rsi, %rdx
je 0x7c64d
jmp 0x7c7c0
movl $0xe, (%rbx)
jmp 0x7c7c6
cmpb $0x1, 0x113(%r14)
jne 0x7c7c0
movl $0xa, (%rbx)
subq %rdx, %rcx
cmpq $0x2, %rcx
jl 0x7c7c0
cmpb $0x4e, 0x2(%rax)
jne 0x7c7c0
cmpb $0x61, (%rdx)
jne 0x7c7c0
addq $0x3, %rax
jmp 0x7c7eb
cmpb $0x1, 0x110(%r14)
jne 0x7c6cc
movl $0x5, (%rbx)
movq %r14, %rdi
callq 0x7c8a4
jmp 0x7c6ea
movl $0xf, (%rbx)
movq %r14, %rdi
callq 0x7c8f6
jmp 0x7c6ea
movl $0x5, (%rbx)
movq %r14, %rdi
callq 0x7c852
testb %al, %al
je 0x7c7c0
jmp 0x7c7c6
movl $0xd, (%rbx)
jmp 0x7c7c6
movq %r14, %rdi
movl $0x1, %esi
callq 0x7c9f0
testb %al, %al
je 0x7c776
movl $0x6, (%rbx)
jmp 0x7c7c6
movl $0x9, (%rbx)
subq %rdx, %rcx
cmpq $0x3, %rcx
jl 0x7c7c0
movl $0x3, %edx
leaq 0x432de(%rip), %rcx     # 0xbfa1b
movl $0x3, %esi
subq $0x1, %rsi
jb 0x7c770
movb (%rax,%rdx), %dil
cmpb -0x1(%rdx,%rcx), %dil
movq %rsi, %rdx
je 0x7c742
jmp 0x7c7c0
movl $0x2, (%rbx)
jmp 0x7c7c6
movl $0x4, (%rbx)
jmp 0x7c7c6
movl $0x3, (%rbx)
jmp 0x7c7c6
addq $0x4, %rax
jmp 0x7c7eb
movl $0xc, (%rbx)
cmpb $0x1, 0x113(%r14)
jne 0x7c7c0
movq 0xc8(%r14), %rcx
movq 0xd0(%r14), %rax
subq %rax, %rcx
cmpq $0x7, %rcx
jl 0x7c7c0
movl $0x6, %edx
leaq 0x43278(%rip), %rcx     # 0xbfa21
cmpq $-0x1, %rdx
je 0x7c7e7
movb (%rax,%rdx), %sil
leaq -0x1(%rdx), %rdi
cmpb (%rdx,%rcx), %sil
movq %rdi, %rdx
je 0x7c7a9
movl $0x10, (%rbx)
movq 0xd0(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
addq $0x5, %rax
jmp 0x7c7eb
addq $0x8, %rax
jmp 0x7c7eb
addq $0x7, %rax
movq %rax, 0xd0(%r14)
jmp 0x7c7c6