// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/core/fasta_reader_seqit.c
// Function: gt_fasta_reader_seqit_run
static int gt_fasta_reader_seqit_run(GtFastaReader *fasta_reader,
                                     GtFastaReaderProcDescription
                                     proc_description,
                                     GtFastaReaderProcSequencePart
                                     proc_sequence_part,
                                     GtFastaReaderProcSequenceLength
                                     proc_sequence_length,
                                     void *data, GtError *err)
{
  GtFastaReaderSeqIt *gt_fasta_reader_seqit =
    gt_fasta_reader_seqit_cast(fasta_reader);
  const GtUchar *sequence;
  GtUword len;
  char *desc;
  int rval, had_err = 0;
  gt_error_check(err);

  /* at least one function has to be defined */
  gt_assert(proc_description || proc_sequence_part || proc_sequence_length);

  while ((rval = gt_seq_iterator_next(gt_fasta_reader_seqit->seqit, &sequence,
                                     &len, &desc, err))) {
    if (rval < 0) {
      had_err = -1;
      break;
    }

    if (proc_description)
      had_err = proc_description(desc, strlen(desc), data, err);
    if (!had_err && proc_sequence_part)
      had_err = proc_sequence_part((char*) sequence, len, data, err);
    if (!had_err && proc_sequence_length)
      had_err = proc_sequence_length(len, data, err);

    gt_free(desc);
    if (had_err)
      break;
  }

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rsi
leaq 0x326cd5(%rip), %rdi    # 0x4074e0
callq 0xdfc6b
movq %rax, 0x18(%rsp)
testq %rbx, %rbx
je 0xe082a
movq %rbx, %rdi
callq 0x32150
testb %al, %al
jne 0xe092b
movq %r13, %rax
orq %r12, %rax
orq %r15, %rax
je 0xe0901
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %rbx, %r8
callq 0x32c70
testl %eax, %eax
je 0xe08e9
js 0xe08ed
testq %r13, %r13
je 0xe088c
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
callq 0x2fe60
movq %rbp, %rdi
movq %rax, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq *%r13
movl %eax, %ebp
jmp 0xe088e
xorl %ebp, %ebp
testq %r12, %r12
sete %al
testl %ebp, %ebp
setne %cl
orb %al, %cl
jne 0xe08b2
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq *%r12
movl %eax, %ebp
testq %r15, %r15
je 0xe08cb
testl %ebp, %ebp
jne 0xe08cb
movq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq *%r15
movl %eax, %ebp
movq 0x8(%rsp), %rdi
leaq 0x20c77f(%rip), %rsi    # 0x2ed056
pushq $0x44
popq %rdx
callq 0x30f00
testl %ebp, %ebp
je 0xe0839
jmp 0xe08f0
xorl %ebp, %ebp
jmp 0xe08f0
pushq $-0x1
popq %rbp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x32a6a8(%rip), %rax    # 0x40afb0
movq (%rax), %rdi
leaq 0x1fdede(%rip), %rsi    # 0x2de7f0
leaq 0x20c54b(%rip), %rdx    # 0x2ece64
leaq 0x20c754(%rip), %rcx    # 0x2ed074
leaq 0x20c72f(%rip), %r8     # 0x2ed056
pushq $0x34
jmp 0xe0953
movq 0x32a67e(%rip), %rax    # 0x40afb0
movq (%rax), %rdi
leaq 0x1fdeb4(%rip), %rsi    # 0x2de7f0
leaq 0x1fe080(%rip), %rdx    # 0x2de9c3
leaq 0x20c72a(%rip), %rcx    # 0x2ed074
leaq 0x20c705(%rip), %r8     # 0x2ed056
pushq $0x31
popq %r9
xorl %eax, %eax
callq 0x32960
callq 0x2e820