// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_seqfilter.c
// Function: gt_seqfilter_runner
static int gt_seqfilter_runner(int argc, const char **argv, int parsed_args,
                               void *tool_arguments, GtError *err)
{
  SeqFilterArguments *arguments = tool_arguments;
  GtBioseqIterator *bsi;
  GtBioseq *bioseq;
  GtUint64 passed = 0, filtered = 0, num_of_sequences = 0, steps = 0;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(tool_arguments);

  bsi = gt_bioseq_iterator_new(argc - parsed_args, argv + parsed_args);

  while (!(had_err = gt_bioseq_iterator_next(bsi, &bioseq, err)) &&
         bioseq != NULL) {
    GtUword i;
    GtUint64 current_num = gt_bioseq_number_of_sequences(bioseq);
    for (i = 0;
         i < current_num &&
         (arguments->maxseqnum == GT_UNDEF_UWORD ||
          passed + 1 <= arguments->maxseqnum);
         i++) {
      char *seq;
      if ((arguments->step == 1 ||
           steps + 1 == arguments->step) &&
          (arguments->sample_prob == 1.0 ||
           gt_rand_0_to_1() <= arguments->sample_prob) &&
          (arguments->minlength == GT_UNDEF_UWORD ||
           gt_bioseq_get_sequence_length(bioseq, i) >= arguments->minlength) &&
          (arguments->maxlength == GT_UNDEF_UWORD ||
           gt_bioseq_get_sequence_length(bioseq, i) <= arguments->maxlength) &&
          (!arguments->nowildcards ||
           !gt_bioseq_seq_has_wildcards(bioseq, i))) {
        seq = gt_bioseq_get_sequence(bioseq, i);
        gt_fasta_show_entry(gt_bioseq_get_description(bioseq, i),
                            seq,
                            gt_bioseq_get_sequence_length(bioseq, i),
                            arguments->width, arguments->outfp);
        gt_free(seq);
        passed++;
      }
      else {
        filtered++;
      }
      steps = (steps + 1 == arguments->step) ? 0 : steps + 1;
    }
    filtered += current_num - i;
    num_of_sequences += current_num;
    gt_bioseq_delete(bioseq);
  }

  /* show statistics */
  if (!had_err) {
    gt_assert(passed + filtered == num_of_sequences);
    fprintf(stderr, "# " GT_LLU " out of " GT_LLU
            " sequences have been removed (%.3f%%)\n",
            filtered, num_of_sequences,
            ((double) filtered / num_of_sequences) * 100.0);
  }

  gt_bioseq_iterator_delete(bsi);

  return had_err;
}

// Assembly:
subq $0xa8, %rsp
movl %edi, 0xa4(%rsp)
movq %rsi, 0x98(%rsp)
movl %edx, 0x94(%rsp)
movq %rcx, 0x88(%rsp)
movq %r8, 0x80(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq $0x0, 0x60(%rsp)
movq $0x0, 0x58(%rsp)
movq $0x0, 0x50(%rsp)
movq $0x0, 0x48(%rsp)
movl $0x0, 0x44(%rsp)
cmpq $0x0, 0x80(%rsp)
je 0x6469c
movq 0x80(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x64664
jmp 0x6469c
movq 0x5d7935(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4b199e(%rip), %rsi    # 0x516013
leaq 0x4b1b43(%rip), %rdx    # 0x5161bf
leaq 0x4c51fd(%rip), %rcx    # 0x529880
leaq 0x4c500e(%rip), %r8     # 0x529698
movl $0x85, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x6469e
jmp 0x646a0
cmpq $0x0, 0x88(%rsp)
jne 0x646e3
movq 0x5d78ee(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4b1957(%rip), %rsi    # 0x516013
leaq 0x4bebb7(%rip), %rdx    # 0x52327a
leaq 0x4c51b6(%rip), %rcx    # 0x529880
leaq 0x4c4fc7(%rip), %r8     # 0x529698
movl $0x86, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x646e5
movl 0xa4(%rsp), %edi
subl 0x94(%rsp), %edi
movq 0x98(%rsp), %rsi
movslq 0x94(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x88690
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rdi
movq 0x80(%rsp), %rdx
leaq 0x68(%rsp), %rsi
callq 0x88790
movl %eax, %ecx
movl %ecx, 0x44(%rsp)
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x27(%rsp)
jne 0x64749
cmpq $0x0, 0x68(%rsp)
setne %al
movb %al, 0x27(%rsp)
movb 0x27(%rsp), %al
testb $0x1, %al
jne 0x64756
jmp 0x649a4
movq 0x68(%rsp), %rdi
callq 0x85910
movq %rax, 0x30(%rsp)
movq $0x0, 0x38(%rsp)
movq 0x38(%rsp), %rcx
xorl %eax, %eax
cmpq 0x30(%rsp), %rcx
movb %al, 0x26(%rsp)
jae 0x647b3
movq 0x78(%rsp), %rcx
movb $0x1, %al
cmpq $-0x1, 0x18(%rcx)
movb %al, 0x25(%rsp)
je 0x647ab
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq 0x78(%rsp), %rcx
cmpq 0x18(%rcx), %rax
setbe %al
movb %al, 0x25(%rsp)
movb 0x25(%rsp), %al
movb %al, 0x26(%rsp)
movb 0x26(%rsp), %al
testb $0x1, %al
jne 0x647c0
jmp 0x64972
movq 0x78(%rsp), %rax
cmpq $0x1, 0x28(%rax)
je 0x647e4
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq 0x78(%rsp), %rcx
cmpq 0x28(%rcx), %rax
jne 0x6491c
movq 0x78(%rsp), %rax
movsd 0x38(%rax), %xmm0
movsd 0x4b2a4a(%rip), %xmm1   # 0x517240
ucomisd %xmm1, %xmm0
jne 0x64800
jp 0x64800
jmp 0x6481c
callq 0xec560
movaps %xmm0, %xmm1
movq 0x78(%rsp), %rax
movsd 0x38(%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0x6491c
movq 0x78(%rsp), %rax
cmpq $-0x1, 0x20(%rax)
je 0x64846
movq 0x68(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x84e30
movq 0x78(%rsp), %rcx
cmpq 0x20(%rcx), %rax
jb 0x6491c
movq 0x78(%rsp), %rax
cmpq $-0x1, 0x10(%rax)
je 0x64870
movq 0x68(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x84e30
movq 0x78(%rsp), %rcx
cmpq 0x10(%rcx), %rax
ja 0x6491c
movq 0x78(%rsp), %rax
testb $0x1, 0x40(%rax)
je 0x64892
movq 0x68(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x85420
testb $0x1, %al
jne 0x6491c
movq 0x68(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x84cc0
movq %rax, 0x28(%rsp)
movq 0x68(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x84ea0
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x68(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x84e30
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rax, %rdx
movq 0x78(%rsp), %rax
movq 0x30(%rax), %rcx
movq 0x78(%rsp), %rax
movq (%rax), %r8
callq 0xdbd10
movq 0x28(%rsp), %rdi
leaq 0x4c4d96(%rip), %rsi    # 0x529698
movl $0xa3, %edx
callq 0xe88c0
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
jmp 0x6492a
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq 0x78(%rsp), %rcx
cmpq 0x28(%rcx), %rax
jne 0x64947
xorl %eax, %eax
movq %rax, 0x8(%rsp)
jmp 0x64955
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x38(%rsp)
jmp 0x6476e
movq 0x30(%rsp), %rax
subq 0x38(%rsp), %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x30(%rsp), %rax
addq 0x50(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x68(%rsp), %rdi
callq 0x84960
jmp 0x64714
cmpl $0x0, 0x44(%rsp)
jne 0x64a6d
jmp 0x649b1
movq 0x60(%rsp), %rax
addq 0x58(%rsp), %rax
cmpq 0x50(%rsp), %rax
je 0x649fa
movq 0x5d75d7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4b1640(%rip), %rsi    # 0x516013
leaq 0x4c4eba(%rip), %rdx    # 0x529894
leaq 0x4c4e9f(%rip), %rcx    # 0x529880
leaq 0x4c4cb0(%rip), %r8     # 0x529698
movl $0xb2, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x649fc
movq 0x5d759d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x58(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq %rdx, %xmm0
movaps 0x4b3f14(%rip), %xmm3   # 0x518930
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x4b3f18(%rip), %xmm2   # 0x518940
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq %rcx, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd 0x4b5ddd(%rip), %xmm1   # 0x51a838
mulsd %xmm1, %xmm0
leaq 0x4c4e54(%rip), %rsi    # 0x5298ba
movb $0x1, %al
callq 0x199f0
movq 0x70(%rsp), %rdi
callq 0x88750
movl 0x44(%rsp), %eax
addq $0xa8, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)