// File: /workspace/github_c_makefile_star2_O2/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, %r14
movq %rdi, %rsi
leaq 0x3a64eb(%rip), %rdi    # 0x432b70
callq 0x8c603
movq %rbx, 0x8(%rsp)
movq %rax, %r12
testq %rbx, %rbx
je 0x8c6a9
movq 0x8(%rsp), %rdi
callq 0x89eb7
testb %al, %al
jne 0x8cabd
movq %r14, %rax
orq 0x18(%rsp), %rax
orq 0x20(%rsp), %rax
je 0x8ca93
movq %r14, 0x28(%rsp)
callq 0xacb84
movq %rax, %r14
callq 0xacb84
movq %rax, %r15
movq 0x8(%r12), %rdi
callq 0x926fd
xorl %ebp, %ebp
testb %al, %al
jne 0x8c704
movq 0x8(%r12), %rdi
callq 0x9286d
leaq 0x27defe(%rip), %rsi    # 0x30a5f0
movq 0x8(%rsp), %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbp
movq %r12, 0x30(%rsp)
testq %r14, %r14
setne %al
testq %r15, %r15
setne %cl
andb %al, %cl
movb %cl, 0x5(%rsp)
leaq 0x6(%rsp), %r12
leaq 0x7(%rsp), %r13
movq %r15, %rbx
testl %ebp, %ebp
movq 0x30(%rsp), %r15
jne 0x8c964
movq 0x8(%r15), %rdi
callq 0x926fd
testb %al, %al
je 0x8c964
movq %r14, %rdi
callq 0xad357
movq %rbx, %rdi
callq 0xad357
movq 0x8(%r15), %rbp
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8c797
callq 0x89eb7
testb %al, %al
jne 0x8ca09
testq %rbp, %rbp
setne %al
testb %al, 0x5(%rsp)
je 0x8c985
movq %rbx, %r15
movq 0x8(%rsp), %rdi
callq 0x89eb7
testb %al, %al
je 0x8c7aa
jmp 0x8c9df
testq %rbp, %rbp
setne %al
testb %al, 0x5(%rsp)
je 0x8c985
movq %rbx, %r15
movq %rbp, %rdi
movq %r12, %rsi
callq 0x925fa
testl %eax, %eax
jne 0x8c9b2
cmpb $0x3e, 0x6(%rsp)
jne 0x8c7f6
movabsq $0x100002400, %rbx      # imm = 0x100002400
movq %rbp, %rdi
movq %r12, %rsi
callq 0x925fa
testl %eax, %eax
jne 0x8c81f
movb 0x6(%rsp), %al
cmpb $0xa, %al
je 0x8c81f
cmpb $0xd, %al
je 0x8c7ce
movsbl %al, %esi
movq %r14, %rdi
callq 0xaced9
jmp 0x8c7ce
movq %rbp, %rdi
callq 0x9286d
movq 0x8(%rsp), %rdi
leaq 0x27de3b(%rip), %rsi    # 0x30a645
movq %rax, %rdx
pushq $0x3e
popq %rcx
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbp
jmp 0x8c725
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8c836
callq 0x89eb7
testb %al, %al
jne 0x8ca5d
movq %r15, %rdi
callq 0xad289
testq %rax, %rax
jne 0x8ca33
movq %rbp, %rdi
movq %r13, %rsi
callq 0x925fa
testl %eax, %eax
jne 0x8c87b
movb 0x7(%rsp), %al
cmpb $0x3e, %al
je 0x8c87b
movzbl %al, %ecx
cmpl $0x20, %ecx
ja 0x8c86e
movl %ecx, %ecx
btq %rcx, %rbx
jb 0x8c847
movsbl %al, %esi
movq %r15, %rdi
callq 0xaced9
jmp 0x8c847
movq %r15, %rdi
callq 0xad289
testq %rax, %rax
je 0x8c8cd
cmpb $0x3e, 0x7(%rsp)
jne 0x8c89a
movq %rbp, %rdi
pushq $0x3e
popq %rsi
callq 0x92675
movq 0x28(%rsp), %rbp
testq %rbp, %rbp
je 0x8c8f3
movq %r14, %rdi
callq 0xad1fa
movq %rax, %rbx
movq %r14, %rdi
callq 0xad289
movq %rbx, %rdi
movq %rax, %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
callq *%rbp
movl %eax, %ebp
jmp 0x8c8f5
movq %rbp, %rdi
callq 0x9282c
movq 0x8(%rsp), %rdi
leaq 0x27ddc8(%rip), %rsi    # 0x30a6a9
movq %rax, %rdx
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbp
jmp 0x8c725
xorl %ebp, %ebp
cmpq $0x0, 0x18(%rsp)
sete %al
testl %ebp, %ebp
setne %cl
orb %al, %cl
jne 0x8c930
movq %r15, %rdi
callq 0xad1fa
movq %rax, %rbp
movq %r15, %rdi
callq 0xad289
movq %rbp, %rdi
movq %rax, %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
callq *0x18(%rsp)
movl %eax, %ebp
cmpq $0x0, 0x20(%rsp)
je 0x8c725
testl %ebp, %ebp
jne 0x8c725
movq %r15, %rdi
callq 0xad289
movq %rax, %rdi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq *0x20(%rsp)
movl %eax, %ebp
jmp 0x8c725
movq %r14, %rdi
callq 0xae103
movq %rbx, %rdi
callq 0xae103
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3ab5dc(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x25867d(%rip), %rsi    # 0x2e5013
leaq 0x27dc6f(%rip), %rdx    # 0x30a60c
leaq 0x293a23(%rip), %rcx    # 0x3203c7
leaq 0x27dbea(%rip), %r8     # 0x30a595
pushq $0x52
jmp 0x8ca85
movq 0x3ab5af(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x258650(%rip), %rsi    # 0x2e5013
leaq 0x2765cd(%rip), %rdx    # 0x302f97
leaq 0x27dc5c(%rip), %rcx    # 0x30a62d
leaq 0x27dbbd(%rip), %r8     # 0x30a595
pushq $0x29
jmp 0x8ca85
movq 0x3ab582(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x258623(%rip), %rsi    # 0x2e5013
leaq 0x2587c8(%rip), %rdx    # 0x2e51bf
leaq 0x27dc2f(%rip), %rcx    # 0x30a62d
leaq 0x27db90(%rip), %r8     # 0x30a595
pushq $0x26
jmp 0x8ca85
movq 0x3ab558(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2585f9(%rip), %rsi    # 0x2e5013
leaq 0x25879e(%rip), %rdx    # 0x2e51bf
leaq 0x29399f(%rip), %rcx    # 0x3203c7
leaq 0x27db66(%rip), %r8     # 0x30a595
pushq $0x51
jmp 0x8ca85
movq 0x3ab52e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2585cf(%rip), %rsi    # 0x2e5013
leaq 0x27dc45(%rip), %rdx    # 0x30a690
leaq 0x27dc29(%rip), %rcx    # 0x30a67b
leaq 0x27db3c(%rip), %r8     # 0x30a595
pushq $0x3d
jmp 0x8ca85
movq 0x3ab504(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2585a5(%rip), %rsi    # 0x2e5013
leaq 0x25874a(%rip), %rdx    # 0x2e51bf
leaq 0x27dbff(%rip), %rcx    # 0x30a67b
leaq 0x27db12(%rip), %r8     # 0x30a595
pushq $0x3b
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x3ab4ce(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x25856f(%rip), %rsi    # 0x2e5013
leaq 0x27db06(%rip), %rdx    # 0x30a5b1
leaq 0x27dacb(%rip), %rcx    # 0x30a57d
leaq 0x27dadc(%rip), %r8     # 0x30a595
pushq $0x68
jmp 0x8ca85
movq 0x3ab4a4(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x258545(%rip), %rsi    # 0x2e5013
leaq 0x2586ea(%rip), %rdx    # 0x2e51bf
leaq 0x27daa1(%rip), %rcx    # 0x30a57d
leaq 0x27dab2(%rip), %r8     # 0x30a595
pushq $0x65
jmp 0x8ca85