// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/fasta_reader_rec.c
// Function: gt_fasta_reader_rec_run
static int gt_fasta_reader_rec_run(GtFastaReader *fasta_reader,
                                   GtFastaReaderProcDescription
                                   proc_description,
                                   GtFastaReaderProcSequencePart
                                   proc_sequence_part,
                                   GtFastaReaderProcSequenceLength
                                   proc_sequence_length, void *data,
                                   GtError *err)
{
  GtFastaReaderRec *fr = gt_fasta_reader_rec_cast(fasta_reader);
  GtStr *description, *sequence;
  int 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);

  /* init */
  description = gt_str_new();
  sequence    = gt_str_new();

  /* make sure file is not empty */
  if (!gt_io_has_char(fr->seqio)) {
    gt_error_set(err, "sequence file \"%s\" is empty",
                 gt_io_get_filename(fr->seqio));
    had_err = -1;
  }

  /* parse file */
  while (!had_err && gt_io_has_char(fr->seqio)) {
    /* reset */
    gt_str_reset(description);
    gt_str_reset(sequence);

    /* parse entry */
    had_err = parse_fasta_entry(description, sequence, fr->seqio, err);

    /* process entry */
    if (!had_err && proc_description) {
      had_err = proc_description(gt_str_get(description),
                                 gt_str_length(description), data, err);
    }
    if (!had_err && proc_sequence_part) {
      had_err = proc_sequence_part(gt_str_get(sequence),
                                   gt_str_length(sequence), data, err);
    }
    if (!had_err && proc_sequence_length)
      had_err = proc_sequence_length(gt_str_length(sequence), data, err);
  }

  /* free */
  gt_str_delete(description);
  gt_str_delete(sequence);

  return had_err;
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movq %r9, 0x58(%rsp)
callq 0xdc6e0
movq %rax, %rdi
movq 0x80(%rsp), %rsi
callq 0xdc660
movq %rax, 0x50(%rsp)
movl $0x0, 0x3c(%rsp)
cmpq $0x0, 0x58(%rsp)
je 0xdc78a
movq 0x58(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0xdc752
jmp 0xdc78a
movq 0x55f847(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4398b0(%rip), %rsi    # 0x516013
leaq 0x439a55(%rip), %rdx    # 0x5161bf
leaq 0x45f37c(%rip), %rcx    # 0x53baed
leaq 0x45f38d(%rip), %r8     # 0x53bb05
movl $0x65, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0xdc78c
jmp 0xdc78e
cmpq $0x0, 0x78(%rsp)
jne 0xdc7de
cmpq $0x0, 0x70(%rsp)
jne 0xdc7de
cmpq $0x0, 0x68(%rsp)
jne 0xdc7de
movq 0x55f7f3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x43985c(%rip), %rsi    # 0x516013
leaq 0x45f363(%rip), %rdx    # 0x53bb21
leaq 0x45f328(%rip), %rcx    # 0x53baed
leaq 0x45f339(%rip), %r8     # 0x53bb05
movl $0x68, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0xdc7e0
callq 0x11d4a0
movq %rax, 0x48(%rsp)
callq 0x11d4a0
movq %rax, 0x40(%rsp)
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0xe7270
testb $0x1, %al
jne 0xdc83c
movq 0x58(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0xe7440
movq 0x30(%rsp), %rdi
movq %rax, %rdx
leaq 0x45f333(%rip), %rsi    # 0x53bb60
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0xdc83e
xorl %eax, %eax
cmpl $0x0, 0x3c(%rsp)
movb %al, 0x2f(%rsp)
jne 0xdc85d
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0xe7270
movb %al, 0x2f(%rsp)
movb 0x2f(%rsp), %al
testb $0x1, %al
jne 0xdc86a
jmp 0xdc97b
movq 0x48(%rsp), %rdi
callq 0x11e110
movq 0x40(%rsp), %rdi
callq 0x11e110
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdx
movq 0x58(%rsp), %rcx
callq 0xdca60
movl %eax, 0x3c(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0xdc8ee
cmpq $0x0, 0x78(%rsp)
je 0xdc8ee
movq 0x78(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x48(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x18(%rsp)
movq 0x48(%rsp), %rdi
callq 0x11dfa0
movq 0x18(%rsp), %rdi
movq %rax, %rsi
movq 0x20(%rsp), %rax
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rcx
callq *%rax
movl %eax, 0x3c(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0xdc93d
cmpq $0x0, 0x70(%rsp)
je 0xdc93d
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rdi
callq 0x11dfa0
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x10(%rsp), %rax
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rcx
callq *%rax
movl %eax, 0x3c(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0xdc976
cmpq $0x0, 0x68(%rsp)
je 0xdc976
movq 0x68(%rsp), %rax
movq %rax, (%rsp)
movq 0x40(%rsp), %rdi
callq 0x11dfa0
movq %rax, %rdi
movq (%rsp), %rax
movq 0x60(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq *%rax
movl %eax, 0x3c(%rsp)
jmp 0xdc83e
movq 0x48(%rsp), %rdi
callq 0x11f560
movq 0x40(%rsp), %rdi
callq 0x11f560
movl 0x3c(%rsp), %eax
addq $0x88, %rsp
retq
nopl (%rax,%rax)