// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_sequniq.c
// Function: gt_sequniq_runner
static int gt_sequniq_runner(int argc, const char **argv, int parsed_args,
                             void *tool_arguments, GtError *err)
{
  GtSequniqArguments *arguments = tool_arguments;
  GtUint64 duplicates = 0, num_of_sequences = 0;
  int i, had_err = 0;
  GtMD5Set *md5set;

  gt_error_check(err);
  gt_assert(arguments);
  md5set = gt_md5set_new(arguments->nofseqs);
  if (!arguments->seqit) {
    GtUword j;
    GtBioseq *bs;

    for (i = parsed_args; !had_err && i < argc; i++) {
      if (!(bs = gt_bioseq_new(argv[i], err)))
        had_err = -1;
      if (!had_err) {
        GtMD5SetStatus retval;
        for (j = 0; j < gt_bioseq_number_of_sequences(bs) && !had_err; j++) {
          char *seq = gt_bioseq_get_sequence(bs, j);
          retval = gt_md5set_add_sequence(md5set, seq,
                                          gt_bioseq_get_sequence_length(bs, j),
                                          arguments->rev, err);
          if (retval == GT_MD5SET_NOT_FOUND)
            gt_fasta_show_entry(gt_bioseq_get_description(bs, j), seq,
                                gt_bioseq_get_sequence_length(bs, j),
                                arguments->width, arguments->outfp);
          else if (retval != GT_MD5SET_ERROR)
            duplicates++;
          else
            had_err = -1;
          num_of_sequences++;
          gt_free(seq);
        }
        gt_bioseq_delete(bs);
      }
    }
  }
  else {
    GtSeqIterator *seqit;
    GtStrArray *files;
    off_t totalsize;
    const GtUchar *sequence;
    char *desc;
    GtUword len;

    files = gt_str_array_new();
    for (i = parsed_args; i < argc; i++)
      gt_str_array_add_cstr(files, argv[i]);
    totalsize = gt_files_estimate_total_size(files);
    seqit = gt_seq_iterator_sequence_buffer_new(files, err);
    if (!seqit)
      had_err = -1;
    if (!had_err) {
      if (arguments->verbose) {
        gt_progressbar_start(gt_seq_iterator_getcurrentcounter(seqit,
                                                          (GtUint64) totalsize),
                             (GtUint64) totalsize);
      }
      while (!had_err) {
        GtMD5SetStatus retval;
        if ((gt_seq_iterator_next(seqit, &sequence, &len, &desc, err)) != 1)
          break;

        retval = gt_md5set_add_sequence(md5set, (const char*) sequence, len,
                                        arguments->rev, err);
        if (retval == GT_MD5SET_NOT_FOUND)
          gt_fasta_show_entry(desc, (const char*) sequence, len,
                              arguments->width, arguments->outfp);
        else if (retval != GT_MD5SET_ERROR)
          duplicates++;
        else
          had_err = -1;
        num_of_sequences++;
      }
      if (arguments->verbose)
        gt_progressbar_stop();
      gt_seq_iterator_delete(seqit);
    }
    gt_str_array_delete(files);
  }

  /* show statistics */
  if (!had_err) {
    fprintf(stderr,
            "# "GT_WU" out of "GT_WU" sequences have been removed (%.3f%%)\n",
            (GtUword)duplicates, (GtUword)num_of_sequences,
            ((double) duplicates / (double)num_of_sequences) * 100.0);
  }

  gt_md5set_delete(md5set);
  return had_err;
}

// Assembly:
subq $0xd8, %rsp
movl %edi, 0xd4(%rsp)
movq %rsi, 0xc8(%rsp)
movl %edx, 0xc4(%rsp)
movq %rcx, 0xb8(%rsp)
movq %r8, 0xb0(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq $0x0, 0xa0(%rsp)
movq $0x0, 0x98(%rsp)
movl $0x0, 0x90(%rsp)
cmpq $0x0, 0xb0(%rsp)
je 0x688c6
movq 0xb0(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x6888e
jmp 0x688c6
movq 0x5d370b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4ad774(%rip), %rsi    # 0x516013
leaq 0x4ad919(%rip), %rdx    # 0x5161bf
leaq 0x4c1cf4(%rip), %rcx    # 0x52a5a1
leaq 0x4c1bca(%rip), %r8     # 0x52a47e
movl $0x72, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x688c8
jmp 0x688ca
cmpq $0x0, 0xa8(%rsp)
jne 0x6890d
movq 0x5d36c4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4ad72d(%rip), %rsi    # 0x516013
leaq 0x512272(%rip), %rdx    # 0x57ab5f
leaq 0x4c1cad(%rip), %rcx    # 0x52a5a1
leaq 0x4c1b83(%rip), %r8     # 0x52a47e
movl $0x73, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x6890f
movq 0xa8(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1ad5b0
movq %rax, 0x88(%rsp)
movq 0xa8(%rsp), %rax
testb $0x1, (%rax)
jne 0x68b7a
movl 0xc4(%rsp), %eax
movl %eax, 0x94(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x90(%rsp)
movb %al, 0x33(%rsp)
jne 0x6896c
movl 0x94(%rsp), %eax
cmpl 0xd4(%rsp), %eax
setl %al
movb %al, 0x33(%rsp)
movb 0x33(%rsp), %al
testb $0x1, %al
jne 0x68979
jmp 0x68b75
movq 0xc8(%rsp), %rax
movslq 0x94(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0xb0(%rsp), %rsi
callq 0x84600
movq %rax, 0x78(%rsp)
cmpq $0x0, %rax
jne 0x689b0
movl $0xffffffff, 0x90(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x90(%rsp)
jne 0x68b5d
movq $0x0, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x78(%rsp), %rdi
callq 0x85910
movq 0x28(%rsp), %rcx
movq %rax, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, 0x32(%rsp)
jae 0x68a05
cmpl $0x0, 0x90(%rsp)
setne %al
xorb $-0x1, %al
movb %al, 0x32(%rsp)
movb 0x32(%rsp), %al
testb $0x1, %al
jne 0x68a12
jmp 0x68b53
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x84cc0
movq %rax, 0x68(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x84e30
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq %rax, %rdx
movq 0xa8(%rsp), %rax
movb 0x2(%rax), %al
movq 0xb0(%rsp), %r8
andb $0x1, %al
movzbl %al, %ecx
callq 0x1ad9c0
movl %eax, 0x74(%rsp)
cmpl $0x0, 0x74(%rsp)
jne 0x68ae6
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x84ea0
movq %rax, 0x8(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x84e30
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0xa8(%rsp), %rax
movq 0x20(%rax), %r8
callq 0xdbd10
jmp 0x68b10
cmpl $-0x1, 0x74(%rsp)
je 0x68b03
movq 0xa0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xa0(%rsp)
jmp 0x68b0e
movl $0xffffffff, 0x90(%rsp) # imm = 0xFFFFFFFF
jmp 0x68b10
movq 0x98(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x98(%rsp)
movq 0x68(%rsp), %rdi
leaq 0x4c194e(%rip), %rsi    # 0x52a47e
movl $0x8c, %edx
callq 0xe88c0
movq 0x80(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x80(%rsp)
jmp 0x689ca
movq 0x78(%rsp), %rdi
callq 0x84960
jmp 0x68b5f
movl 0x94(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x94(%rsp)
jmp 0x68947
jmp 0x68d59
callq 0x11f5c0
movq %rax, 0x58(%rsp)
movl 0xc4(%rsp), %eax
movl %eax, 0x94(%rsp)
movl 0x94(%rsp), %eax
cmpl 0xd4(%rsp), %eax
jge 0x68bd3
movq 0x58(%rsp), %rdi
movq 0xc8(%rsp), %rax
movslq 0x94(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x11f720
movl 0x94(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x94(%rsp)
jmp 0x68b92
movq 0x58(%rsp), %rdi
callq 0xdf4c0
movq %rax, 0x50(%rsp)
movq 0x58(%rsp), %rdi
movq 0xb0(%rsp), %rsi
callq 0x113240
movq %rax, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
jne 0x68c0c
movl $0xffffffff, 0x90(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x90(%rsp)
jne 0x68d4f
movq 0xa8(%rsp), %rax
testb $0x1, 0x1(%rax)
je 0x68c44
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x111b70
movq %rax, %rdi
movq 0x50(%rsp), %rsi
callq 0xf9830
jmp 0x68c46
cmpl $0x0, 0x90(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x68c5c
jmp 0x68d32
movq 0x60(%rsp), %rdi
movq 0xb0(%rsp), %r8
leaq 0x48(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0x40(%rsp), %rcx
callq 0x111ab0
cmpl $0x1, %eax
je 0x68c87
jmp 0x68d32
movq 0x88(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0xa8(%rsp), %rax
movb 0x2(%rax), %al
movq 0xb0(%rsp), %r8
andb $0x1, %al
movzbl %al, %ecx
callq 0x1ad9c0
movl %eax, 0x34(%rsp)
cmpl $0x0, 0x34(%rsp)
jne 0x68cef
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0xa8(%rsp), %rax
movq 0x20(%rax), %r8
callq 0xdbd10
jmp 0x68d19
cmpl $-0x1, 0x34(%rsp)
je 0x68d0c
movq 0xa0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xa0(%rsp)
jmp 0x68d17
movl $0xffffffff, 0x90(%rsp) # imm = 0xFFFFFFFF
jmp 0x68d19
movq 0x98(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x98(%rsp)
jmp 0x68c46
movq 0xa8(%rsp), %rax
testb $0x1, 0x1(%rax)
je 0x68d45
callq 0xfa220
movq 0x60(%rsp), %rdi
callq 0x111c10
movq 0x58(%rsp), %rdi
callq 0x11fd20
cmpl $0x0, 0x90(%rsp)
jne 0x68dda
movq 0x5d3236(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0xa0(%rsp), %rdx
movq 0x98(%rsp), %rcx
movq %rdx, %xmm0
movaps 0x4afba7(%rip), %xmm3   # 0x518930
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x4afbab(%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 0x4b1a70(%rip), %xmm1   # 0x51a838
mulsd %xmm1, %xmm0
leaq 0x4c17e0(%rip), %rsi    # 0x52a5b3
movb $0x1, %al
callq 0x199f0
movq 0x88(%rsp), %rdi
callq 0x1ad960
movl 0x90(%rsp), %eax
addq $0xd8, %rsp
retq
nopw %cs:(%rax,%rax)