// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/core/tokenizer.c
// Function: gt_tokenizer_get_token
GtStr* gt_tokenizer_get_token(GtTokenizer *t)
{
  char c;
  bool has_eof = true;
  int rval = 0;
  gt_assert(t);

  /* if we have no current token, get it if possible */
  if (!t->token) {
    if (t->skip_comment_lines && gt_io_line_start(t->io)) {
      for (;;) {
        gt_assert(gt_io_line_start(t->io));
        if ((gt_io_get_char(t->io, (char*) &c) != -1)) {
          if ((char) c == '#') {
            /* skip line */
            while ((gt_io_get_char(t->io, &c) != -1) && c != '\n');
            has_eof = true;
          }
          else {
            gt_io_unget_char(t->io, c);
            has_eof = false;
            break;
          }
        }
        else {
          c = EOF;
          break;
        }
      }
    }
    /* skip blanks */
    while (((rval = gt_io_get_char(t->io, &c)) != -1) && c == ' ');
    if (rval == -1)
      has_eof = true;
    else
      has_eof = false;
    do {
      if (!has_eof) {
        if (!t->token)
          t->token = gt_str_new();
        if (c == '\n')
          break;
        gt_str_append_char(t->token, c);
      }
    } while (((rval = gt_io_get_char(t->io, &c)) != -1)
              && c != ' ' && c != '\n');
    if (rval == -1)
      has_eof = true;
    else
      has_eof = false;
    if (c == '\n' && !has_eof) {
      gt_assert(t->token);
      gt_str_append_char(t->token, c);
    }
  }
  /* return token */
  if (t->token)
    return gt_str_ref(t->token);
  return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x867a3
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
jne 0x86765
cmpb $0x1, 0x8(%rbx)
jne 0x866c2
movq (%rbx), %rdi
callq 0x845fd
testb %al, %al
je 0x866c2
leaq 0x7(%rsp), %r14
movq (%rbx), %rdi
callq 0x845fd
testb %al, %al
je 0x86779
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x8453a
cmpl $-0x1, %eax
je 0x866b0
movb 0x7(%rsp), %al
cmpb $0x23, %al
jne 0x866b7
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x8453a
movb 0x7(%rsp), %cl
cmpl $-0x1, %eax
je 0x8666d
cmpb $0xa, %cl
jne 0x86695
jmp 0x8666d
movb $-0x1, 0x7(%rsp)
jmp 0x866c2
movq (%rbx), %rdi
movsbl %al, %esi
callq 0x845b5
leaq 0x7(%rsp), %r14
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x8453a
movl %eax, %ebp
movb 0x7(%rsp), %al
cmpl $-0x1, %ebp
je 0x866e1
cmpb $0x20, %al
je 0x866c7
leaq 0x7(%rsp), %r15
movl %ebp, %r14d
cmpl $-0x1, %ebp
je 0x86713
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
jne 0x86707
callq 0x13d5c
movq %rax, %rdi
movq %rax, 0x10(%rbx)
movb 0x7(%rsp), %al
cmpb $0xa, %al
je 0x8673e
movsbl %al, %esi
callq 0x140b1
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x8453a
movl %eax, %r14d
movb 0x7(%rsp), %al
cmpl $-0x1, %r14d
je 0x86733
cmpb $0x20, %al
je 0x86733
cmpb $0xa, %al
jne 0x866e9
movq 0x10(%rbx), %rdi
cmpb $0xa, %al
setne %al
jmp 0x86740
xorl %eax, %eax
cmpl $-0x1, %r14d
sete %cl
orb %al, %cl
jne 0x86760
testq %rdi, %rdi
je 0x867d9
pushq $0xa
popq %rsi
callq 0x140b1
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x86775
callq 0x146aa
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x8676a
movq 0xa7838(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x438dc(%rip), %rsi     # 0xca066
leaq 0x5da9f(%rip), %rdx     # 0xe4230
leaq 0x5da81(%rip), %rcx     # 0xe4219
leaq 0x5da45(%rip), %r8      # 0xe41e4
pushq $0x39
jmp 0x867cb
movq 0xa780e(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x438b2(%rip), %rsi     # 0xca066
leaq 0x4d493(%rip), %rdx     # 0xd3c4e
leaq 0x5da57(%rip), %rcx     # 0xe4219
leaq 0x5da1b(%rip), %r8      # 0xe41e4
pushq $0x33
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
movq 0xa77d8(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x4387c(%rip), %rsi     # 0xca066
leaq 0x5da57(%rip), %rdx     # 0xe4248
leaq 0x5da21(%rip), %rcx     # 0xe4219
leaq 0x5d9e5(%rip), %r8      # 0xe41e4
pushq $0x61
jmp 0x867cb