// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x38(%rsp)
callq 0x15a090
movq %rax, %rdi
movq 0x60(%rsp), %rsi
callq 0x158eb0
movq %rax, 0x30(%rsp)
movl $0x0, 0x10(%rsp)
cmpq $0x0, 0x38(%rsp)
je 0x15a131
movq 0x38(%rsp), %rdi
callq 0x33160
testb $0x1, %al
jne 0x15a0f9
jmp 0x15a131
movq 0x4a1ec8(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x3a1493(%rip), %rsi    # 0x4fb59d
leaq 0x3a165f(%rip), %rdx    # 0x4fb770
leaq 0x3b0134(%rip), %rcx    # 0x50a24c
leaq 0x3b010f(%rip), %r8     # 0x50a22e
movl $0x31, %r9d
movb $0x0, %al
callq 0x33960
callq 0x2f830
jmp 0x15a133
jmp 0x15a135
cmpq $0x0, 0x58(%rsp)
jne 0x15a185
cmpq $0x0, 0x50(%rsp)
jne 0x15a185
cmpq $0x0, 0x48(%rsp)
jne 0x15a185
movq 0x4a1e74(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x3a143f(%rip), %rsi    # 0x4fb59d
leaq 0x3afec2(%rip), %rdx    # 0x50a027
leaq 0x3b00e0(%rip), %rcx    # 0x50a24c
leaq 0x3b00bb(%rip), %r8     # 0x50a22e
movl $0x34, %r9d
movb $0x0, %al
callq 0x33960
callq 0x2f830
jmp 0x15a187
jmp 0x15a189
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x38(%rsp), %r8
leaq 0x28(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x18(%rsp), %rcx
callq 0x33c70
movl %eax, 0x14(%rsp)
cmpl $0x0, %eax
je 0x15a288
cmpl $0x0, 0x14(%rsp)
jge 0x15a1cc
movl $0xffffffff, 0x10(%rsp) # imm = 0xFFFFFFFF
jmp 0x15a288
cmpq $0x0, 0x58(%rsp)
je 0x15a20d
movq 0x58(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq 0x18(%rsp), %rdi
callq 0x30e70
movq (%rsp), %rdi
movq %rax, %rsi
movq 0x8(%rsp), %rax
movq 0x40(%rsp), %rdx
movq 0x38(%rsp), %rcx
callq *%rax
movl %eax, 0x10(%rsp)
cmpl $0x0, 0x10(%rsp)
jne 0x15a23b
cmpq $0x0, 0x50(%rsp)
je 0x15a23b
movq 0x50(%rsp), %rax
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x38(%rsp), %rcx
callq *%rax
movl %eax, 0x10(%rsp)
cmpl $0x0, 0x10(%rsp)
jne 0x15a264
cmpq $0x0, 0x48(%rsp)
je 0x15a264
movq 0x48(%rsp), %rax
movq 0x20(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq *%rax
movl %eax, 0x10(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x3affbe(%rip), %rsi    # 0x50a22e
movl $0x44, %edx
callq 0x31f10
cmpl $0x0, 0x10(%rsp)
je 0x15a283
jmp 0x15a288
jmp 0x15a189
movl 0x10(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)