// File: /workspace/github_c_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %rbx
movq %r8, 0x10(%rsp)
movq %rcx, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq %rsi, %r12
movq %rdi, %rsi
leaq 0x3b56a7(%rip), %rdi    # 0x4b3b60
callq 0xfe469
movq %rbx, 0x8(%rsp)
movq %rax, %r13
testq %rbx, %rbx
je 0xfe4dd
movq 0x8(%rsp), %rdi
callq 0xfcc32
testb %al, %al
jne 0xfe80c
movq %r12, %rax
orq 0x18(%rsp), %rax
orq 0x20(%rsp), %rax
je 0xfe807
callq 0x11ac6c
movq %rax, %r14
callq 0x11ac6c
movq %rax, %r15
movq 0x8(%r13), %rdi
callq 0x103b36
testb %al, %al
je 0xfe767
movq %r13, 0x30(%rsp)
movq %r12, 0x28(%rsp)
testq %r14, %r14
setne %al
testq %r15, %r15
setne %cl
andb %al, %cl
movb %cl, 0x7(%rsp)
leaq 0x5(%rsp), %rbp
leaq 0x6(%rsp), %r12
movq 0x30(%rsp), %rbx
movq 0x8(%rbx), %rdi
callq 0x103b36
testb %al, %al
je 0xfe7ae
movq %r14, %rdi
callq 0x11b132
movq %r15, %rdi
callq 0x11b132
movq 0x8(%rbx), %r13
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xfe5a5
callq 0xfcc32
testb %al, %al
movabsq $0x100002400, %rbx      # imm = 0x100002400
jne 0xfe7fd
testq %r13, %r13
setne %al
testb %al, 0x7(%rsp)
je 0xfe7e9
movq 0x8(%rsp), %rdi
callq 0xfcc32
testb %al, %al
je 0xfe5bf
jmp 0xfe7f8
testq %r13, %r13
setne %al
testb %al, 0x7(%rsp)
movabsq $0x100002400, %rbx      # imm = 0x100002400
je 0xfe7e9
movq %r13, %rdi
movq %rbp, %rsi
callq 0x103ac6
testl %eax, %eax
jne 0xfe7ee
cmpb $0x3e, 0x5(%rsp)
jne 0xfe7b3
movq %r13, %rdi
movq %rbp, %rsi
callq 0x103ac6
testl %eax, %eax
sete %cl
movb 0x5(%rsp), %al
cmpb $0xa, %al
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xfe623
cmpb $0xd, %al
je 0xfe60c
movsbl %al, %esi
movq %r14, %rdi
callq 0x11af23
movq %r13, %rdi
movq %rbp, %rsi
callq 0x103ac6
testl %eax, %eax
jne 0xfe623
movb 0x5(%rsp), %al
cmpb $0xa, %al
jne 0xfe5fd
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xfe63a
callq 0xfcc32
testb %al, %al
jne 0xfe802
movq %r15, %rdi
callq 0x11b0ca
testq %rax, %rax
jne 0xfe7f3
movq %r13, %rdi
movq %r12, %rsi
callq 0x103ac6
testl %eax, %eax
sete %cl
movb 0x6(%rsp), %al
cmpb $0x3e, %al
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xfe69a
cmpb $0x20, %al
ja 0xfe678
movzbl %al, %ecx
btq %rcx, %rbx
jb 0xfe683
movsbl %al, %esi
movq %r15, %rdi
callq 0x11af23
movq %r13, %rdi
movq %r12, %rsi
callq 0x103ac6
testl %eax, %eax
jne 0xfe69a
movb 0x6(%rsp), %al
cmpb $0x3e, %al
jne 0xfe66b
movq %r15, %rdi
callq 0x11b0ca
testq %rax, %rax
je 0xfe7d8
cmpb $0x3e, 0x6(%rsp)
jne 0xfe6bf
movq %r13, %rdi
movl $0x3e, %esi
callq 0x103b10
movq 0x28(%rsp), %rbx
testq %rbx, %rbx
je 0xfe6f3
movq %r14, %rdi
callq 0x11b0a1
movq %rax, %r13
movq %r14, %rdi
callq 0x11b0ca
movq %r13, %rdi
movq %rax, %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
callq *%rbx
movl %eax, %r13d
jmp 0xfe6f6
xorl %r13d, %r13d
cmpq $0x0, 0x18(%rsp)
sete %al
testl %r13d, %r13d
setne %cl
orb %al, %cl
jne 0xfe733
movq %r15, %rdi
callq 0x11b0a1
movq %rax, %r13
movq %r15, %rdi
callq 0x11b0ca
movq %r13, %rdi
movq %rax, %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
callq *0x18(%rsp)
movl %eax, %r13d
cmpq $0x0, 0x20(%rsp)
je 0xfe75c
testl %r13d, %r13d
jne 0xfe75c
movq %r15, %rdi
callq 0x11b0ca
movq %rax, %rdi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq *0x20(%rsp)
movl %eax, %r13d
testl %r13d, %r13d
je 0xfe537
jmp 0xfe78c
movq 0x8(%r13), %rdi
callq 0x103bee
leaq 0x26bf19(%rip), %rsi    # 0x36a690
movq 0x8(%rsp), %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq %r14, %rdi
callq 0x11bdbf
movq %r15, %rdi
callq 0x11bdbf
movl %r13d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r13d, %r13d
jmp 0xfe78c
movq %r13, %rdi
callq 0x103bee
leaq 0x26bf23(%rip), %rsi    # 0x36a6e5
movq 0x8(%rsp), %rdi
movq %rax, %rdx
movl $0x3e, %ecx
xorl %eax, %eax
callq 0xfcb67
jmp 0xfe786
movq %r13, %rdi
callq 0x103bde
leaq 0x26bf62(%rip), %rsi    # 0x36a749
jmp 0xfe777
callq 0x2f8c5
callq 0x2f8fc
callq 0x2f96a
callq 0x2f857
callq 0x2f88e
callq 0x2f933
callq 0x2f820
callq 0x2f7e9