// File: /workspace/github_cpp_makefile_star2_O2/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
callq 0x71ec4
movq 0xd0(%r14), %rax
movq %rax, 0x8(%rbx)
cmpq 0xc8(%r14), %rax
je 0x71d86
leaq 0x1(%rax), %rcx
movq %rcx, 0xd0(%r14)
movzbl (%rax), %eax
leal -0x22(%rax), %ecx
cmpl $0x2c, %ecx
ja 0x71d38
leaq 0x39e5e(%rip), %rax     # 0xabb78
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0x6, (%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x72078
jmp 0x71eaf
testl %eax, %eax
je 0x71d86
cmpl $0x5b, %eax
je 0x71e62
cmpl $0x5d, %eax
je 0x71e7b
cmpl $0x66, %eax
je 0x71e6a
cmpl $0x6e, %eax
je 0x71e3a
cmpl $0x74, %eax
je 0x71e51
cmpl $0x7d, %eax
je 0x71e49
cmpl $0x7b, %eax
jne 0x71ea9
movl $0x1, (%rbx)
jmp 0x71eaf
andl $0x0, (%rbx)
jmp 0x71eaf
cmpb $0x1, 0x113(%r14)
jne 0x71ea9
movl $0xb, (%rbx)
jmp 0x71e93
cmpb $0x1, 0x110(%r14)
jne 0x71dc4
movl $0x5, (%rbx)
movq %r14, %rdi
callq 0x71f6e
jmp 0x71ea5
movl $0xf, (%rbx)
movq %r14, %rdi
callq 0x71fbc
jmp 0x71ea5
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x72078
testb %al, %al
je 0x71e83
movl $0x6, (%rbx)
jmp 0x71eaf
movl $0x5, (%rbx)
movq %r14, %rdi
callq 0x71f20
jmp 0x71ea5
movl $0xd, (%rbx)
jmp 0x71eaf
cmpb $0x1, 0x113(%r14)
jne 0x71ea9
movl $0xa, (%rbx)
leaq 0x3aaf9(%rip), %rsi     # 0xac927
pushq $0x2
jmp 0x71e9c
movl $0xe, (%rbx)
jmp 0x71eaf
movl $0x9, (%rbx)
leaq 0x3aae4(%rip), %rsi     # 0xac92b
jmp 0x71e5e
movl $0x2, (%rbx)
jmp 0x71eaf
movl $0x7, (%rbx)
leaq 0x3a5f5(%rip), %rsi     # 0xac453
pushq $0x3
jmp 0x71e9c
movl $0x3, (%rbx)
jmp 0x71eaf
movl $0x8, (%rbx)
leaq 0x3a5e1(%rip), %rsi     # 0xac458
pushq $0x4
jmp 0x71e9c
movl $0x4, (%rbx)
jmp 0x71eaf
movl $0xc, (%rbx)
cmpb $0x0, 0x113(%r14)
je 0x71ea9
leaq 0x3aa97(%rip), %rsi     # 0xac931
pushq $0x7
popq %rdx
movq %r14, %rdi
callq 0x72160
testb %al, %al
jne 0x71eaf
movl $0x10, (%rbx)
movq 0xd0(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq