// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/llex.c
// Function: llex
static int llex (LexState *ls, SemInfo *seminfo) {
  luaZ_resetbuffer(ls->buff);
  for (;;) {
    switch (ls->current) {
      case '\n':
      case '\r': {
        inclinenumber(ls);
        continue;
      }
      case '-': {
        next(ls);
        if (ls->current != '-') return '-';
        /* else is a comment */
        next(ls);
        if (ls->current == '[') {
          int sep = skip_sep(ls);
          luaZ_resetbuffer(ls->buff);  /* `skip_sep' may dirty the buffer */
          if (sep >= 0) {
            read_long_string(ls, NULL, sep);  /* long comment */
            luaZ_resetbuffer(ls->buff);
            continue;
          }
        }
        /* else short comment */
        while (!currIsNewline(ls) && ls->current != EOZ)
          next(ls);
        continue;
      }
      case '[': {
        int sep = skip_sep(ls);
        if (sep >= 0) {
          read_long_string(ls, seminfo, sep);
          return TK_STRING;
        }
        else if (sep == -1) return '[';
        else luaX_lexerror(ls, "invalid long string delimiter", TK_STRING);
      }
      case '=': {
        next(ls);
        if (ls->current != '=') return '=';
        else { next(ls); return TK_EQ; }
      }
      case '<': {
        next(ls);
        if (ls->current != '=') return '<';
        else { next(ls); return TK_LE; }
      }
      case '>': {
        next(ls);
        if (ls->current != '=') return '>';
        else { next(ls); return TK_GE; }
      }
      case '~': {
        next(ls);
        if (ls->current != '=') return '~';
        else { next(ls); return TK_NE; }
      }
      case '"':
      case '\'': {
        read_string(ls, ls->current, seminfo);
        return TK_STRING;
      }
      case '.': {
        save_and_next(ls);
        if (check_next(ls, ".")) {
          if (check_next(ls, "."))
            return TK_DOTS;   /* ... */
          else return TK_CONCAT;   /* .. */
        }
        else if (!isdigit(ls->current)) return '.';
        else {
          read_numeral(ls, seminfo);
          return TK_NUMBER;
        }
      }
      case EOZ: {
        return TK_EOS;
      }
      default: {
        if (isspace(ls->current)) {
          lua_assert(!currIsNewline(ls));
          next(ls);
          continue;
        }
        else if (isdigit(ls->current)) {
          read_numeral(ls, seminfo);
          return TK_NUMBER;
        }
        else if (isalpha(ls->current) || ls->current == '_') {
          /* identifier or reserved word */
          TString *ts;
          do {
            save_and_next(ls);
          } while (isalnum(ls->current) || ls->current == '_');
          ts = luaX_newstring(ls, luaZ_buffer(ls->buff),
                                  luaZ_bufflen(ls->buff));
          if (ts->tsv.reserved > 0)  /* reserved word? */
            return ts->tsv.reserved - 1 + FIRST_RESERVED;
          else {
            seminfo->ts = ts;
            return TK_NAME;
          }
        }
        else {
          int c = ls->current;
          next(ls);
          return c;  /* single-char tokens (+ - / ...) */
        }
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x48(%rdi), %rax
movq $0x0, 0x8(%rax)
movl $0x4801, %ebp           # imm = 0x4801
movslq (%rbx), %r15
cmpq $0x21, %r15
jg 0x6180c
cmpl $0xa, %r15d
je 0x61802
cmpl $0xd, %r15d
jne 0x6182d
movq %rbx, %rdi
callq 0x61f5a
jmp 0x617ed
cmpl $0x2d, %r15d
jg 0x618e7
jne 0x6190c
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x6183c
callq 0x6008d
jmp 0x6184b
cmpl $-0x1, %r15d
jne 0x61934
jmp 0x61c3a
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x2d, %eax
jne 0x61c7e
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61867
callq 0x6008d
jmp 0x61876
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x5b, %eax
jne 0x618d4
movq %rbx, %rdi
callq 0x61fdd
movq 0x48(%rbx), %rcx
movq $0x0, 0x8(%rcx)
testl %eax, %eax
js 0x618d4
movq %rbx, %rdi
xorl %esi, %esi
movl %eax, %edx
callq 0x62062
movq 0x48(%rbx), %rax
movq $0x0, 0x8(%rax)
jmp 0x617ed
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x618c3
callq 0x6008d
jmp 0x618d2
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl (%rbx), %eax
incl %eax
cmpl $0xe, %eax
ja 0x618b2
btl %eax, %ebp
jae 0x618b2
jmp 0x617ed
cmpl $0x3d, %r15d
jg 0x6191a
cmpl $0x2e, %r15d
je 0x61a1c
cmpl $0x3c, %r15d
je 0x619bc
cmpl $0x3d, %r15d
jne 0x61934
jmp 0x619ec
cmpl $0x22, %r15d
je 0x61975
cmpl $0x27, %r15d
jne 0x61934
jmp 0x61975
cmpl $0x3e, %r15d
je 0x61a04
cmpl $0x5b, %r15d
je 0x6199a
cmpl $0x7e, %r15d
je 0x619d4
callq 0xb6e0
movq %rax, %r12
movq (%rax), %rax
movzwl (%rax,%r15,2), %eax
btl $0xd, %eax
jae 0x61c89
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x6195f
callq 0x6008d
jmp 0x6196e
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
jmp 0x617ed
movq %rbx, %rdi
movl %r15d, %esi
callq 0x622b6
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61a41
callq 0x6008d
movl %eax, %esi
jmp 0x61a50
movq %rbx, %rdi
callq 0x61fdd
testl %eax, %eax
js 0x61e4a
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x62062
jmp 0x61c73
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61d25
callq 0x6008d
jmp 0x61d34
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61d5d
callq 0x6008d
jmp 0x61d6c
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61d95
callq 0x6008d
jmp 0x61da4
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61dcd
callq 0x6008d
jmp 0x61ddc
movq %rbx, %rdi
movl $0x2e, %esi
callq 0x622b6
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61e05
callq 0x6008d
jmp 0x61e14
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %esi
movl %esi, (%rbx)
cmpl %r15d, %esi
jne 0x61a77
movq %rbx, %rdi
callq 0x622b6
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61c45
callq 0x6008d
jmp 0x61c54
leaq 0x8b91a(%rip), %rbp     # 0xed398
cmpl $0x5b, %esi
jle 0x61a9c
cmpl $0x5c, %esi
jne 0x61ab7
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61aed
callq 0x6008d
movl %eax, %r12d
jmp 0x61afd
cmpl $-0x1, %esi
je 0x61f3d
cmpl $0xa, %esi
je 0x61f29
cmpl $0xd, %esi
je 0x61f29
movq %rbx, %rdi
callq 0x622b6
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61ad0
callq 0x6008d
jmp 0x61adf
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl (%rbx), %esi
cmpl %r15d, %esi
jne 0x61a7e
jmp 0x61a57
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %r12d
movl %r12d, (%rbx)
cmpl $0x61, %r12d
jg 0x61b1a
cmpl $0xc, %r12d
jg 0x61b35
cmpl $-0x1, %r12d
je 0x61ae1
cmpl $0xa, %r12d
je 0x61b4c
jmp 0x61b7c
leal -0x6e(%r12), %eax
cmpl $0x8, %eax
ja 0x61b66
movslq (%rbp,%rax,4), %rax
addq %rbp, %rax
jmpq *%rax
movl $0xa, %esi
jmp 0x61ab7
cmpl $0xd, %r12d
je 0x61b4c
movl $0x7, %esi
cmpl $0x61, %r12d
je 0x61ab7
jmp 0x61b7c
movq %rbx, %rdi
movl $0xa, %esi
callq 0x622b6
movq %rbx, %rdi
callq 0x61f5a
jmp 0x61ae1
cmpl $0x66, %r12d
je 0x61bba
cmpl $0x62, %r12d
jne 0x61b7c
movl $0x8, %esi
jmp 0x61ab7
callq 0xb6e0
movq %rax, %r13
movq (%rax), %rax
movslq %r12d, %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0x61bc4
movq %rbx, %rdi
movl %r12d, %esi
jmp 0x61aba
movl $0x9, %esi
jmp 0x61ab7
movl $0xd, %esi
jmp 0x61ab7
movl $0xb, %esi
jmp 0x61ab7
movl $0xc, %esi
jmp 0x61ab7
movq %r14, (%rsp)
xorl %r12d, %r12d
movl $0x3, %ebp
movl (%rbx), %r14d
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61be4
callq 0x6008d
jmp 0x61bf3
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
leal (%r12,%r12,4), %ecx
leal (%r14,%rcx,2), %r12d
addl $-0x30, %r12d
movl %eax, (%rbx)
decl %ebp
je 0x61c12
movq (%r13), %rcx
cltq
testb $0x8, 0x1(%rcx,%rax,2)
jne 0x61bd0
cmpl $0x100, %r12d           # imm = 0x100
jge 0x61f51
movq %rbx, %rdi
movl %r12d, %esi
callq 0x622b6
movq (%rsp), %r14
leaq 0x8b763(%rip), %rbp     # 0xed398
jmp 0x61ae1
movl $0x11f, %r15d           # imm = 0x11F
jmp 0x61f17
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movq 0x48(%rbx), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
incq %rsi
addq $-0x2, %rdx
movq %rbx, %rdi
callq 0x62525
movq %rax, (%r14)
movl $0x11e, %r15d           # imm = 0x11E
jmp 0x61f17
movl $0x2d, %r15d
jmp 0x61f17
btl $0xb, %eax
jb 0x61e81
cmpl $0x5f, %r15d
je 0x61cb8
andl $0x400, %eax            # imm = 0x400
jne 0x61cb8
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61efb
callq 0x6008d
jmp 0x61f0a
movl (%rbx), %esi
movq %rbx, %rdi
callq 0x622b6
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61cd3
callq 0x6008d
jmp 0x61ce2
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x5f, %eax
je 0x61cb8
movq (%r12), %rcx
cltq
movzwl (%rcx,%rax,2), %eax
andl $0x8, %eax
jne 0x61cb8
movq 0x48(%rbx), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x62525
movzbl 0xa(%rax), %r15d
testl %r15d, %r15d
je 0x61f0e
orl $0x100, %r15d           # imm = 0x100
jmp 0x61f17
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x3c, %r15d
cmpl $0x3d, %eax
jne 0x61f17
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61e97
callq 0x6008d
jmp 0x61ea6
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x7e, %r15d
cmpl $0x3d, %eax
jne 0x61f17
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61eb0
callq 0x6008d
jmp 0x61ebf
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x3d, %r15d
cmpl $0x3d, %eax
jne 0x61f17
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61ec9
callq 0x6008d
jmp 0x61ed8
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x3e, %r15d
cmpl $0x3d, %eax
jne 0x61f17
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0x61ee2
callq 0x6008d
jmp 0x61ef1
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
leaq 0x88641(%rip), %rsi     # 0xea45e
movq %rbx, %rdi
callq 0x62338
testl %eax, %eax
je 0x61e65
leaq 0x8862e(%rip), %rsi     # 0xea45e
movq %rbx, %rdi
callq 0x62338
cmpl $0x1, %eax
movl $0x117, %r15d           # imm = 0x117
sbbl $0x0, %r15d
jmp 0x61f17
movl $0x5b, %r15d
cmpl $-0x1, %eax
je 0x61f17
leaq 0x8c13d(%rip), %rsi     # 0xedf9d
jmp 0x61f30
callq 0xb6e0
movq (%rax), %rax
movslq (%rbx), %rcx
movl $0x2e, %r15d
testb $0x8, 0x1(%rax,%rcx,2)
je 0x61f17
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6238b
movl $0x11c, %r15d           # imm = 0x11C
jmp 0x61f17
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x11a, %r15d           # imm = 0x11A
jmp 0x61f17
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x11b, %r15d           # imm = 0x11B
jmp 0x61f17
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x118, %r15d           # imm = 0x118
jmp 0x61f17
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x119, %r15d           # imm = 0x119
jmp 0x61f17
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
jmp 0x61f17
movq %rax, (%r14)
movl $0x11d, %r15d           # imm = 0x11D
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8c10a(%rip), %rsi     # 0xee03a
movq %rbx, %rdi
movl $0x11e, %edx            # imm = 0x11E
callq 0x62217
leaq 0x8c0f6(%rip), %rsi     # 0xee03a
movq %rbx, %rdi
movl $0x11f, %edx            # imm = 0x11F
callq 0x62217
leaq 0x8c0f4(%rip), %rsi     # 0xee04c
jmp 0x61f30