// File: /workspace/github_c_makefile_star2_O3/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 0x7818
movq (%r14), %rax
movq %rax, 0x8(%r14)
leaq 0x18(%rbx), %rax
movq %rax, 0x8(%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
movb %al, 0x18(%rbx)
movb %al, 0x28(%rbx)
movl $0x0, 0x2c(%rbx)
leaq 0x30(%rbx), %rdi
leaq 0x40(%rbx), %rcx
movq %rcx, 0x30(%rbx)
movq %rax, 0x38(%rbx)
movb %al, 0x40(%rbx)
leaq 0x18(%r14), %rsi
callq 0x3140
movl 0x38(%r14), %eax
movl %eax, 0x50(%rbx)
movq (%r14), %rax
movq 0x10(%r14), %r15
cmpq %r15, %rax
je 0x7912
leaq 0x1(%rax), %r12
movq %r12, (%r14)
movsbl (%rax), %ebp
movl %ebp, %edi
callq 0x3360
cmpl $0x5f, %ebp
je 0x791d
testl %eax, %eax
jne 0x791d
movl %ebp, %eax
addl $-0x30, %eax
cmpl $0xa, %eax
setae %cl
cmpb $0x2d, %bpl
setne %dl
testb %cl, %dl
jne 0x79a9
cmpl $0xa, %eax
jae 0x7a22
movl %eax, 0x2c(%rbx)
jmp 0x7a25
movl $0x0, (%rbx)
jmp 0x7a79
leaq 0x8(%rbx), %r15
movsbl %bpl, %esi
movq %r15, %rdi
callq 0x31b0
movq (%r14), %r12
cmpq 0x10(%r14), %r12
jae 0x7962
movsbl (%r12), %ebp
movl %ebp, %edi
callq 0x3210
cmpl $0x5f, %ebp
je 0x794b
testl %eax, %eax
je 0x7962
leaq 0x1(%r12), %rax
movq %rax, (%r14)
movsbl (%r12), %esi
movq %r15, %rdi
callq 0x31b0
jmp 0x792d
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x6342
movq %rsp, %r14
movq %r14, %rsi
callq 0x7aa0
movl %eax, (%rbx)
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x7a79
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x7a79
cmpb $0x24, %bpl
jne 0x7a6f
cmpq %r15, %r12
jae 0x7a67
movl 0x2c(%rbx), %ebp
movsbl (%r12), %edi
callq 0x30a0
testl %eax, %eax
je 0x7a67
shll $0x4, %ebp
movl %ebp, 0x2c(%rbx)
movsbl (%r12), %edx
leal -0x30(%rdx), %eax
cmpl $0x9, %eax
ja 0x79f6
leaq 0x1(%r12), %rax
movq %rax, (%r14)
movsbl (%r12), %ecx
addl $-0x30, %ecx
jmp 0x7a13
addb $-0x61, %dl
leaq 0x1(%r12), %rax
movq %rax, (%r14)
movsbl (%r12), %ecx
cmpb $0x5, %dl
ja 0x7a10
addl $-0x57, %ecx
jmp 0x7a13
addl $-0x37, %ecx
orl %ecx, %ebp
movl %ebp, 0x2c(%rbx)
movq %rax, %r12
cmpq %r15, %rax
jb 0x79bf
jmp 0x7a67
movl 0x2c(%rbx), %eax
cmpq %r15, %r12
jae 0x7a5c
movsbl (%r12), %ecx
addl $-0x30, %ecx
cmpl $0x9, %ecx
ja 0x7a5c
addl %eax, %eax
leal (%rax,%rax,4), %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, %rcx
jne 0x7a2a
cmpb $0x2d, %bpl
jne 0x7a67
negl %eax
movl %eax, 0x2c(%rbx)
movl $0x2, (%rbx)
jmp 0x7a79
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 0x7a8d
jmp 0x7a8d
movq %rax, %r14
movq %rbx, %rdi
callq 0x6014
movq %r14, %rdi
callq 0x33d0