// File: /workspace/github_c_makefile_star2_O1/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 0x7884
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 0x79c3
leaq 0x1(%rax), %rcx
movq %rcx, (%r14)
movsbl (%rax), %ebp
movl %ebp, %edi
callq 0x3370
cmpl $0x5f, %ebp
je 0x79ce
testl %eax, %eax
jne 0x79ce
movl %ebp, %eax
addl $-0x30, %eax
cmpl $0xa, %eax
setae %cl
cmpb $0x2d, %bpl
setne %dl
testb %cl, %dl
jne 0x7a5a
cmpl $0x9, %eax
ja 0x7979
movl %eax, 0x2c(%rbx)
movq (%r14), %rax
cmpq %r15, %rax
jae 0x79b1
movl 0x2c(%rbx), %ecx
movsbl (%rax), %edx
addl $-0x30, %edx
cmpl $0x9, %edx
ja 0x79b1
addl %ecx, %ecx
leal (%rcx,%rcx,4), %ecx
movl %ecx, 0x2c(%rbx)
leaq 0x1(%rax), %rdx
movq %rdx, (%r14)
movsbl (%rax), %eax
addl %eax, %ecx
addl $-0x30, %ecx
movl %ecx, 0x2c(%rbx)
movq %rdx, %rax
cmpq %r15, %rdx
jne 0x7984
cmpb $0x2d, %bpl
jne 0x7ac8
negl 0x2c(%rbx)
jmp 0x7ac8
movl $0x0, (%rbx)
jmp 0x7ada
leaq 0x8(%rbx), %r15
movsbl %bpl, %esi
movq %r15, %rdi
callq 0x31c0
movq (%r14), %r12
cmpq 0x10(%r14), %r12
jae 0x7a13
movsbl (%r12), %ebp
movl %ebp, %edi
callq 0x3220
cmpl $0x5f, %ebp
je 0x79fc
testl %eax, %eax
je 0x7a13
leaq 0x1(%r12), %rax
movq %rax, (%r14)
movsbl (%r12), %esi
movq %r15, %rdi
callq 0x31c0
jmp 0x79de
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x6368
movq %rsp, %r14
movq %r14, %rsi
callq 0x7b02
movl %eax, (%rbx)
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x7ada
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x7ada
cmpb $0x24, %bpl
jne 0x7ad0
movq (%r14), %r12
cmpq %r15, %r12
jae 0x7ac8
movl 0x2c(%rbx), %ebp
movsbl (%r12), %edi
callq 0x30a0
testl %eax, %eax
je 0x7ac8
shll $0x4, %ebp
movl %ebp, 0x2c(%rbx)
movsbl (%r12), %edx
leal -0x30(%rdx), %eax
cmpl $0x9, %eax
ja 0x7a9e
leaq 0x1(%r12), %rax
movq %rax, (%r14)
movsbl (%r12), %ecx
addl $-0x30, %ecx
jmp 0x7abb
addb $-0x61, %dl
leaq 0x1(%r12), %rax
movq %rax, (%r14)
movsbl (%r12), %ecx
cmpb $0x5, %dl
ja 0x7ab8
addl $-0x57, %ecx
jmp 0x7abb
addl $-0x37, %ecx
orl %ecx, %ebp
movl %ebp, 0x2c(%rbx)
movq %rax, %r12
cmpq %r15, %rax
jb 0x7a6b
movl $0x2, (%rbx)
jmp 0x7ada
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 0x7aee
jmp 0x7aee
movq %rax, %r14
movq %rbx, %rdi
callq 0x603a
movq %r14, %rdi
callq 0x33e0
nop