// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/RNBasics/json.cpp
// Function: Json::Reader::readToken(Json::Reader::Token&)
bool Reader::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 '/':
    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':
  case '-':
    token.type_ = tokenNumber;
    readNumber();
    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 ',':
    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), %rax
movq 0xd0(%rdi), %rcx
cmpq %rax, %rcx
je 0x7a7ad
movabsq $0x100002600, %rdx      # imm = 0x100002600
movzbl (%rcx), %esi
cmpq $0x20, %rsi
ja 0x7a7ad
btq %rsi, %rdx
jae 0x7a7ad
incq %rcx
movq %rcx, 0xd0(%r14)
cmpq %rax, %rcx
jne 0x7a78f
movq 0xd0(%r14), %rcx
movq %rcx, 0x8(%rbx)
cmpq %rax, %rcx
je 0x7a7cc
leaq 0x1(%rcx), %rdx
movq %rdx, 0xd0(%r14)
movb (%rcx), %cl
jmp 0x7a7ce
xorl %ecx, %ecx
movzbl %cl, %ecx
cmpl $0x5a, %ecx
jg 0x7a805
leal -0x22(%rcx), %eax
cmpl $0x18, %eax
ja 0x7a8e6
leaq 0x4639f(%rip), %rcx     # 0xc0b88
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x6, (%rbx)
movq %r14, %rdi
callq 0x7ab52
jmp 0x7a965
cmpl $0x6d, %ecx
jle 0x7a86b
cmpl $0x7a, %ecx
jg 0x7a8cc
cmpl $0x6e, %ecx
je 0x7a926
cmpl $0x74, %ecx
jne 0x7a95f
movl $0x7, (%rbx)
movq 0xd0(%r14), %rcx
subq %rcx, %rax
cmpq $0x3, %rax
jl 0x7a95f
movl $0x2, %edx
leaq 0x46ce8(%rip), %rax     # 0xc1533
cmpq $-0x1, %rdx
je 0x7a992
movb (%rcx,%rdx), %sil
leaq -0x1(%rdx), %rdi
cmpb (%rdx,%rax), %sil
movq %rdi, %rdx
je 0x7a84b
jmp 0x7a95f
cmpl $0x5b, %ecx
je 0x7a982
cmpl $0x5d, %ecx
je 0x7a98a
cmpl $0x66, %ecx
jne 0x7a95f
movl $0x8, (%rbx)
movq 0xd0(%r14), %rcx
subq %rcx, %rax
cmpq $0x4, %rax
jl 0x7a95f
movl $0x3, %edx
leaq 0x46c8c(%rip), %rax     # 0xc1538
cmpq $-0x1, %rdx
je 0x7a998
movb (%rcx,%rdx), %sil
leaq -0x1(%rdx), %rdi
cmpb (%rdx,%rax), %sil
movq %rdi, %rdx
je 0x7a8ac
jmp 0x7a95f
cmpl $0x7d, %ecx
je 0x7a97a
cmpl $0x7b, %ecx
jne 0x7a95f
movl $0x1, (%rbx)
jmp 0x7a965
testl %ecx, %ecx
jne 0x7a95f
movl $0x0, (%rbx)
jmp 0x7a965
movl $0xc, (%rbx)
movq %r14, %rdi
callq 0x7aa56
jmp 0x7a910
movl $0x5, (%rbx)
movq %r14, %rdi
callq 0x7aa04
testb %al, %al
je 0x7a95f
jmp 0x7a965
movl $0xa, (%rbx)
jmp 0x7a965
movl $0xb, (%rbx)
jmp 0x7a965
movl $0x9, (%rbx)
movq 0xd0(%r14), %rcx
subq %rcx, %rax
cmpq $0x3, %rax
jl 0x7a95f
movl $0x2, %edx
leaq 0x470c6(%rip), %rax     # 0xc1a0e
cmpq $-0x1, %rdx
je 0x7a992
movb (%rcx,%rdx), %sil
leaq -0x1(%rdx), %rdi
cmpb (%rdx,%rax), %sil
movq %rdi, %rdx
je 0x7a948
movl $0xd, (%rbx)
movq 0xd0(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x2, (%rbx)
jmp 0x7a965
movl $0x3, (%rbx)
jmp 0x7a965
movl $0x4, (%rbx)
jmp 0x7a965
addq $0x3, %rcx
jmp 0x7a99c
addq $0x4, %rcx
movq %rcx, 0xd0(%r14)
jmp 0x7a965
nop