// File: /workspace/github_c_makefile_star2_O2/mrkite[P]regs/docmaker/file.cc
// Function: File::token()
Token File::token() {
  skipWhitespace();
  prev = p;

  Token t;
  t.filename = name;
  t.curLine = curLine;

  if (p == end) {
    t.type = END;
    return t;
  }
  char ch = *p++;
  if (isalpha(ch) || ch == '_') {
    t.asStr += ch;
    while (p < end && (isalnum(*p) || *p == '_')) {
      t.asStr += *p++;
    }
    t.type = checkKeywords(t.asStr);
    return t;
  }
  if (isdigit(ch) || ch == '-') {
    bool isNeg = ch == '-';
    if (isdigit(ch)) {
      t.asNum = ch - '0';
    }
    while (p < end && isdigit(*p)) {
      t.asNum *= 10;
      t.asNum += *p++ - '0';
    }
    if (isNeg) {
      t.asNum = -t.asNum;
    }
    t.type = NUMBER;
    return t;
  }
  if (ch == '$') {
    while (p < end && isxdigit(*p)) {
      t.asNum <<= 4;
      if (isdigit(*p)) {
        t.asNum |= *p++ - '0';
      } else if (*p >= 'a' && *p <= 'f') {
        t.asNum |= *p++ - 'a' + 10;
      } else {
        t.asNum |= *p++ - 'A' + 10;
      }
    }
    t.type = NUMBER;
    return t;
  }
  t.type = SYMBOL;
  t.asSym = ch;
  return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5490
movq (%r14), %rax
movq %rax, 0x8(%r14)
movq %rbx, %rdi
callq 0x587e
leaq 0x18(%r14), %rsi
leaq 0x30(%rbx), %rdi
callq 0x2130
movl 0x38(%r14), %eax
movl %eax, 0x50(%rbx)
movq (%r14), %rax
movq 0x10(%r14), %r15
cmpq %r15, %rax
je 0x5564
leaq 0x1(%rax), %r12
movq %r12, (%r14)
movsbl (%rax), %ebp
movl %ebp, %edi
callq 0x2340
cmpl $0x5f, %ebp
je 0x556c
testl %eax, %eax
jne 0x556c
movl %ebp, %eax
addl $-0x30, %eax
cmpl $0xa, %eax
setae %cl
cmpb $0x2d, %bpl
setne %dl
testb %cl, %dl
jne 0x55d6
cmpl $0xa, %eax
jae 0x564a
movl %eax, 0x2c(%rbx)
jmp 0x567a
andl $0x0, (%rbx)
jmp 0x569c
leaq 0x8(%rbx), %r15
movsbl %bpl, %esi
movq %r15, %rdi
callq 0x2190
movq (%r14), %r12
cmpq 0x10(%r14), %r12
jae 0x55b1
movsbl (%r12), %ebp
movl %ebp, %edi
callq 0x21f0
cmpl $0x5f, %ebp
je 0x559a
testl %eax, %eax
je 0x55b1
leaq 0x1(%r12), %rax
movq %rax, (%r14)
movsbl (%r12), %esi
movq %r15, %rdi
callq 0x2190
jmp 0x557c
movq %rsp, %rdi
movq %r15, %rsi
callq 0x22a0
movq %rsp, %r14
movq %r14, %rsi
callq 0x56c4
movl %eax, (%rbx)
movq %r14, %rdi
callq 0x2100
jmp 0x569c
cmpb $0x24, %bpl
jne 0x5692
movl 0x2c(%rbx), %ebp
cmpq %r15, %r12
jae 0x568a
movsbl (%r12), %edi
callq 0x2090
testl %eax, %eax
je 0x568a
shll $0x4, %ebp
movl %ebp, 0x2c(%rbx)
movsbl (%r12), %edx
leal -0x30(%rdx), %eax
cmpl $0x9, %eax
ja 0x5623
leaq 0x1(%r12), %rax
movq %rax, (%r14)
movsbl (%r12), %ecx
addl $-0x30, %ecx
jmp 0x5640
addb $-0x61, %dl
leaq 0x1(%r12), %rax
movq %rax, (%r14)
movsbl (%r12), %ecx
cmpb $0x5, %dl
ja 0x563d
addl $-0x57, %ecx
jmp 0x5640
addl $-0x37, %ecx
orl %ecx, %ebp
movl %ebp, 0x2c(%rbx)
movq %rax, %r12
jmp 0x55e3
movl 0x2c(%rbx), %eax
jmp 0x567a
movsbl (%r12), %ecx
addl $-0x30, %ecx
cmpl $0x9, %ecx
ja 0x567f
imull $0xa, %eax, %eax
movl %eax, 0x2c(%rbx)
leaq 0x1(%r12), %rcx
movq %rcx, (%r14)
movsbl (%r12), %edx
addl %edx, %eax
addl $-0x30, %eax
movl %eax, 0x2c(%rbx)
movq %rcx, %r12
cmpq %r15, %r12
jb 0x564f
cmpb $0x2d, %bpl
jne 0x568a
negl %eax
movl %eax, 0x2c(%rbx)
movl $0x2, (%rbx)
jmp 0x569c
movl $0x3, (%rbx)
movb %bpl, 0x28(%rbx)
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x56b0
jmp 0x56b0
movq %rax, %r14
movq %rbx, %rdi
callq 0x3d0a
movq %r14, %rdi
callq 0x23a0
nop