// File: /workspace/github_c_makefile_star2_O1/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, 0x18(%rsp)
movq %rcx, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdi, %rsi
leaq 0x3bb7f5(%rip), %rdi    # 0x4beb70
callq 0x103329
movq %rax, %r12
testq %rbx, %rbx
je 0x103398
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x1036e4
movq 0x20(%rsp), %rax
orq 0x28(%rsp), %rax
orq 0x30(%rsp), %rax
je 0x1036df
callq 0x1208f8
movq %rax, 0x10(%rsp)
callq 0x1208f8
movq %rax, %r15
movq 0x8(%r12), %rdi
callq 0x108bc9
movl %eax, %ebp
xorl %r13d, %r13d
testb %al, %al
jne 0x1033f6
movq 0x8(%r12), %rdi
callq 0x108c81
leaq 0x2704fd(%rip), %rsi    # 0x3738e0
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
testb %bpl, %bpl
je 0x10369d
cmpq $0x0, 0x10(%rsp)
setne 0xf(%rsp)
testq %r15, %r15
setne %bpl
movq 0x8(%r12), %rdi
callq 0x108bc9
testb %al, %al
je 0x10369d
andb %bpl, 0xf(%rsp)
movq 0x10(%rsp), %rdi
callq 0x120db4
movq %r15, %rdi
callq 0x120db4
movq 0x8(%r12), %rbp
testq %rbx, %rbx
je 0x103454
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x1036cb
testq %rbp, %rbp
setne %al
testb %al, 0xf(%rsp)
je 0x1036c6
testq %rbx, %rbx
je 0x103479
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x1036d0
movq %rbp, %rdi
leaq 0xd(%rsp), %rsi
callq 0x108b59
testl %eax, %eax
jne 0x1036c1
movb 0xd(%rsp), %r14b
movq %rbp, %rdi
cmpb $0x3e, %r14b
jne 0x1034ea
leaq 0xd(%rsp), %rsi
callq 0x108b59
testl %eax, %eax
sete %cl
movb 0xd(%rsp), %al
cmpb $0xa, %al
setne %dl
andb %cl, %dl
xorl %r13d, %r13d
cmpb $0x1, %dl
jne 0x10350e
cmpb $0xd, %al
je 0x1034cf
movsbl %al, %esi
movq 0x10(%rsp), %rdi
callq 0x120ba5
movq %rbp, %rdi
leaq 0xd(%rsp), %rsi
callq 0x108b59
testl %eax, %eax
jne 0x10350e
movb 0xd(%rsp), %al
cmpb $0xa, %al
jne 0x1034be
jmp 0x10350e
callq 0x108c81
movq %rbx, %rdi
leaq 0x27043c(%rip), %rsi    # 0x373935
movq %rax, %rdx
movl $0x3e, %ecx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
cmpb $0x3e, %r14b
jne 0x1035e4
testq %rbx, %rbx
je 0x10352d
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x1036da
movq %r15, %rdi
callq 0x120d4c
testq %rax, %rax
leaq 0xe(%rsp), %r14
movabsq $0x100002400, %r13      # imm = 0x100002400
jne 0x1036d5
movq %rbp, %rdi
movq %r14, %rsi
callq 0x108b59
testl %eax, %eax
sete %cl
movb 0xe(%rsp), %al
cmpb $0x3e, %al
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x10359c
cmpb $0x20, %al
ja 0x10357a
movzbl %al, %ecx
btq %rcx, %r13
jb 0x103585
movsbl %al, %esi
movq %r15, %rdi
callq 0x120ba5
movq %rbp, %rdi
movq %r14, %rsi
callq 0x108b59
testl %eax, %eax
jne 0x10359c
movb 0xe(%rsp), %al
cmpb $0x3e, %al
jne 0x10356d
movq %r15, %rdi
callq 0x120d4c
testq %rax, %rax
je 0x1035c2
xorl %r13d, %r13d
cmpb $0x3e, 0xe(%rsp)
jne 0x1035e4
movq %rbp, %rdi
movl $0x3e, %esi
callq 0x108ba3
jmp 0x1035e4
movq %rbp, %rdi
callq 0x108c71
movq %rbx, %rdi
leaq 0x2703c5(%rip), %rsi    # 0x373999
movq %rax, %rdx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
cmpq $0x0, 0x20(%rsp)
sete %al
testl %r13d, %r13d
setne %cl
orb %al, %cl
jne 0x103624
movq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x120d23
movq %rax, %r13
movq %r14, %rdi
callq 0x120d4c
movq %r13, %rdi
movq %rax, %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rcx
callq *0x20(%rsp)
movl %eax, %r13d
cmpq $0x0, 0x28(%rsp)
sete %al
testl %r13d, %r13d
setne %cl
orb %al, %cl
jne 0x10365f
movq %r15, %rdi
callq 0x120d23
movq %rax, %r13
movq %r15, %rdi
callq 0x120d4c
movq %r13, %rdi
movq %rax, %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rcx
callq *0x28(%rsp)
movl %eax, %r13d
cmpq $0x0, 0x30(%rsp)
je 0x103686
testl %r13d, %r13d
jne 0x103686
movq %r15, %rdi
callq 0x120d4c
movq %rax, %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq *0x30(%rsp)
movl %eax, %r13d
testl %r13d, %r13d
jne 0x10369d
movq 0x8(%r12), %rdi
callq 0x108bc9
testb %al, %al
jne 0x103428
movq 0x10(%rsp), %rdi
callq 0x121b03
movq %r15, %rdi
callq 0x121b03
movl %r13d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3024e
callq 0x301e0
callq 0x301a9
callq 0x30217
callq 0x302bc
callq 0x30285
callq 0x30172
callq 0x3013b