// File: /workspace/github_c_makefile_star2_O3/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 0xa5fb4
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
jne 0xa5fa0
cmpb $0x1, 0x8(%rbx)
jne 0xa5eff
movq (%rbx), %rdi
callq 0xa463b
testb %al, %al
je 0xa5eff
movq (%rbx), %rdi
callq 0xa463b
testb %al, %al
je 0xa5ee8
leaq 0x7(%rsp), %r14
movq (%rbx), %rdi
movq %r14, %rsi
callq 0xa45da
cmpl $-0x1, %eax
je 0xa5eed
movb 0x7(%rsp), %al
cmpb $0x23, %al
jne 0xa5ef4
movq (%rbx), %rdi
movq %r14, %rsi
callq 0xa45da
cmpl $-0x1, %eax
je 0xa5edc
cmpb $0xa, 0x7(%rsp)
jne 0xa5ec5
movq (%rbx), %rdi
callq 0xa463b
testb %al, %al
jne 0xa5ead
callq 0x230c2
movb $-0x1, 0x7(%rsp)
jmp 0xa5eff
movq (%rbx), %rdi
movsbl %al, %esi
callq 0xa4624
leaq 0x7(%rsp), %r14
movq (%rbx), %rdi
movq %r14, %rsi
callq 0xa45da
movl %eax, %ebp
movb 0x7(%rsp), %al
cmpl $-0x1, %ebp
je 0xa5f1e
cmpb $0x20, %al
je 0xa5f04
leaq 0x7(%rsp), %r15
movl %ebp, %r14d
cmpl $-0x1, %ebp
je 0xa5f50
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
jne 0xa5f44
callq 0x3b728
movq %rax, %rdi
movq %rax, 0x10(%rbx)
movb 0x7(%rsp), %al
cmpb $0xa, %al
je 0xa5f7b
movsbl %al, %esi
callq 0x3b9df
movq (%rbx), %rdi
movq %r15, %rsi
callq 0xa45da
movl %eax, %r14d
movb 0x7(%rsp), %al
cmpl $-0x1, %r14d
je 0xa5f70
cmpb $0x20, %al
je 0xa5f70
cmpb $0xa, %al
jne 0xa5f26
movq 0x10(%rbx), %rdi
cmpb $0xa, %al
setne %al
jmp 0xa5f7d
xorl %eax, %eax
cmpl $-0x1, %r14d
sete %cl
orb %al, %cl
jne 0xa5f9b
testq %rdi, %rdi
je 0xa5fb9
movl $0xa, %esi
callq 0x3b9df
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xa5fb0
callq 0x3bcaf
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0xa5fa5
callq 0x23130
callq 0x230f9