// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_fingerprint.c
// Function: gt_fingerprint_runner
static int gt_fingerprint_runner(int argc, const char **argv, int parsed_args,
                                 void *tool_arguments, GtError *err)
{
  FingerprintArguments *arguments = tool_arguments;
  bool extract_found = true;
  GtBioseq *bs;
  GtStringDistri *sd;
  GtUword i, j;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(arguments);
  sd = gt_string_distri_new();

  if (gt_str_length(arguments->extract))
    extract_found = false;

  /* process sequence files */
  for (i = parsed_args; !had_err && i < argc; i++) {
    if (!(bs = gt_bioseq_new(argv[i], err)))
      had_err = -1;
    if (!had_err) {
      for (j = 0; j < gt_bioseq_number_of_sequences(bs); j++) {
        if (gt_str_length(arguments->checklist) || arguments->show_duplicates)
          gt_string_distri_add(sd, gt_bioseq_get_md5_fingerprint(bs, j));
        else if (gt_str_length(arguments->extract)) {
          if (!strcmp(gt_bioseq_get_md5_fingerprint(bs, j),
                      gt_str_get(arguments->extract))) {
            char *seq = gt_bioseq_get_sequence(bs, j);
            gt_fasta_show_entry(gt_bioseq_get_description(bs, j),
                                seq,
                                gt_bioseq_get_sequence_length(bs, j),
                                arguments->width, arguments->outfp);
            gt_free(seq);
            extract_found = true;
          }
        }
        else if (!arguments->detect_collisions)
          gt_xputs(gt_bioseq_get_md5_fingerprint(bs, j));
      }
    }
    gt_bioseq_delete(bs);
  }

  if (!had_err && !extract_found) {
    gt_error_set(err, "could not find sequence with fingerprint '%s' in given "
                      "sequence file(s)", gt_str_get(arguments->extract));
    had_err = -1;
  }

  if (!had_err) {
    if (gt_str_length(arguments->checklist))
      had_err = compare_fingerprints(sd, gt_str_get(arguments->checklist), err);
    else if (arguments->show_duplicates)
      had_err = show_duplicates(sd, err);
    else if (arguments->detect_collisions)
      had_err = detect_collisions(argc - parsed_args, argv + parsed_args, err);
  }

  gt_string_distri_delete(sd);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r8, %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, 0x38(%rsp)
movl %edi, %r14d
testq %r8, %r8
je 0x2acaa
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2b48a
movq %rbx, 0x10(%rsp)
testq %r15, %r15
je 0x2b42e
callq 0xae898
movq %rax, %r13
movq 0x10(%r15), %rdi
callq 0xad289
testq %rax, %rax
sete %r12b
movslq %ebp, %rax
movslq %r14d, %rcx
movq %rcx, 0x18(%rsp)
xorl %ebx, %ebx
movq %rax, 0x48(%rsp)
movq %rax, %rcx
movq %r13, 0x20(%rsp)
movq 0x10(%rsp), %r14
testl %ebx, %ebx
jne 0x2ae50
cmpq 0x18(%rsp), %rcx
jae 0x2ae50
movq 0x38(%rsp), %rax
movq %rcx, 0x30(%rsp)
movq (%rax,%rcx,8), %rdi
movq %r14, %rsi
callq 0x5a868
movq %rax, %rbp
xorl %ebx, %ebx
testq %rax, %rax
sete %al
je 0x2ae37
movb %al, 0x28(%rsp)
xorl %r14d, %r14d
movq %rbp, %rdi
callq 0x5ba79
cmpq %rax, %r14
jae 0x2ae2e
movq 0x8(%r15), %rdi
callq 0xad289
testq %rax, %rax
jne 0x2ad55
cmpb $0x1, (%r15)
jne 0x2ad70
movq %rbp, %rdi
movq %r14, %rsi
callq 0x5b9bf
movq %r13, %rdi
movq %rax, %rsi
callq 0xae8eb
incq %r14
jmp 0x2ad30
movq 0x10(%r15), %rdi
callq 0xad289
testq %rax, %rax
je 0x2ae0b
movq %rbp, %rdi
movq %r14, %rsi
callq 0x5b9bf
movq %rax, %r13
movq 0x10(%r15), %rdi
callq 0xad1fa
movq %r13, %rdi
movq 0x20(%rsp), %r13
movq %rax, %rsi
callq 0x179e0
testl %eax, %eax
jne 0x2ad6b
movq %rbp, %rdi
movq %r14, %rsi
callq 0x5b1f9
movq %rax, %r13
movq %rbp, %rdi
movq %r14, %rsi
callq 0x5b338
movq %rax, %r12
movq %rbp, %rdi
movq %r14, %rsi
callq 0x5b2f1
movq 0x18(%r15), %rcx
movq 0x28(%r15), %r8
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x8c0bc
movq %r13, %rdi
movq 0x20(%rsp), %r13
leaq 0x2c1f77(%rip), %rsi    # 0x2ecd70
movl $0x148, %edx            # imm = 0x148
callq 0x936f9
movb $0x1, %r12b
jmp 0x2ad6b
cmpb $0x0, 0x1(%r15)
jne 0x2ad6b
movq %rbp, %rdi
movq %r14, %rsi
callq 0x5b9bf
movq %rax, %rdi
callq 0xb30e8
jmp 0x2ad6b
movq 0x10(%rsp), %r14
movb 0x28(%rsp), %al
movb %al, %bl
negl %ebx
movq %rbp, %rdi
callq 0x5af87
movq 0x30(%rsp), %rcx
incq %rcx
jmp 0x2acef
pushq $-0x1
popq %rax
movl %eax, 0xc(%rsp)
testl %ebx, %ebx
jne 0x2b096
testb $0x1, %r12b
je 0x2af56
movq 0x8(%r15), %rdi
callq 0xad289
testq %rax, %rax
je 0x2afd5
movq 0x8(%r15), %rdi
callq 0xad1fa
movq %r14, %rdi
movq %rax, %r14
testq %rdi, %rdi
je 0x2ae9c
callq 0x89eb7
testb %al, %al
jne 0x2b4f0
testq %r13, %r13
je 0x2b4c2
testq %r14, %r14
je 0x2b4c2
cmpb $0x2d, (%r14)
jne 0x2aebf
cmpb $0x0, 0x1(%r14)
je 0x2b103
leaq 0x2cff67(%rip), %rsi    # 0x2fae2d
leaq 0x2c1ea3(%rip), %rdx    # 0x2ecd70
movq %r14, %rdi
movl $0x97, %ecx
callq 0x8a3a7
movq %rax, %r14
movl $0x0, 0x20(%rsp)
xorl %ebp, %ebp
callq 0xacb84
movq %rax, %r15
leaq 0x2c2159(%rip), %r12    # 0x2ed04f
movq %r15, %rdi
movq %r14, %rsi
callq 0xad4de
cmpl $-0x1, %eax
je 0x2af78
movq %r15, %rdi
callq 0xad1fa
movq %r13, %rdi
movq %rax, %rsi
callq 0xaea3a
movq %r13, %rbx
movq %rax, %r13
movq %r15, %rdi
callq 0xad1fa
testq %r13, %r13
je 0x2af39
movq %rbx, %rdi
movq %rax, %rsi
callq 0xae9b2
jmp 0x2af49
movq %r12, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movb $0x1, %bpl
movq %rbx, %r13
movq %r15, %rdi
callq 0xad357
jmp 0x2aef6
movq 0x10(%r15), %rdi
callq 0xad1fa
leaq 0x2c207c(%rip), %rsi    # 0x2ecfe2
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x89dbb
jmp 0x2b096
movb %bpl, 0x50(%rsp)
movq %r15, %rdi
callq 0xae103
cmpb $0x0, 0x20(%rsp)
jne 0x2af94
movq %r14, %rdi
callq 0x8a5e5
leaq 0x647(%rip), %rsi       # 0x2b5e2
leaq 0x50(%rsp), %r14
movq %r13, %rdi
movq %r14, %rdx
callq 0xaeb2d
movl $0x0, 0xc(%rsp)
cmpb $0x1, (%r14)
jne 0x2b096
leaq 0x2c20a1(%rip), %rsi    # 0x2ed065
movq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x89dbb
jmp 0x2b08f
cmpb $0x1, (%r15)
jne 0x2b0b1
testq %r14, %r14
je 0x2aff4
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2b54f
testq %r13, %r13
je 0x2b51e
xorpd %xmm0, %xmm0
leaq 0x50(%rsp), %r14
movapd %xmm0, (%r14)
leaq 0x634(%rip), %rsi       # 0x2b646
movq %r13, %rdi
movq %r14, %rdx
callq 0xaeb2d
movq (%r14), %rdx
testq %rdx, %rdx
je 0x2b3c0
movq 0x58(%rsp), %rcx
movq %rdx, %xmm1
movq 0x2bc8a5(%rip), %xmm2   # 0x2e78e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x2bc8a9(%rip), %xmm3   # 0x2e78f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rcx, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
mulsd 0x2be764(%rip), %xmm0   # 0x2e97e0
leaq 0x2c2073(%rip), %rsi    # 0x2ed0f6
movq 0x10(%rsp), %rdi
movb $0x1, %al
callq 0x89dbb
pushq $-0x1
popq %rax
movl %eax, 0xc(%rsp)
movq %r13, %rdi
callq 0xaeccb
movl 0xc(%rsp), %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x0, 0xc(%rsp)
cmpb $0x1, 0x1(%r15)
jne 0x2b096
testq %r14, %r14
je 0x2b0d5
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2b580
callq 0xae154
movq %rax, 0x40(%rsp)
movq 0x48(%rsp), %rbx
cmpq %rbx, 0x18(%rsp)
je 0x2b118
movq 0x38(%rsp), %rax
movq (%rax,%rbx,8), %rsi
movq 0x40(%rsp), %rdi
callq 0xae22f
incq %rbx
jmp 0x2b0e4
movq 0x40cdee(%rip), %rax    # 0x437ef8
movq (%rax), %r14
movb $0x1, %al
movl %eax, 0x20(%rsp)
jmp 0x2aee5
movq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x5d1a7
movq %rax, %r15
testq %rax, %rax
je 0x2b3cd
testq %r14, %r14
je 0x2b146
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2b5b1
callq 0xa5f44
movq %rax, %r12
pushq $-0x1
popq %rax
movl %eax, 0xc(%rsp)
xorl %eax, %eax
xorl %ebp, %ebp
movq %r15, 0x18(%rsp)
movq %r12, 0x68(%rsp)
testl %eax, %eax
jne 0x2b3de
movq %r15, %rdi
callq 0xa5d66
cmpq %rax, %rbp
jae 0x2b3d6
xorl %ebx, %ebx
xorl %r14d, %r14d
movq %rbp, 0x70(%rsp)
testl %ebx, %ebx
jne 0x2b3b1
movq %r15, %rdi
movq %rbp, %rsi
callq 0xa5db5
cmpq %rax, %r14
jae 0x2b3b6
movq %r15, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0xa5e04
movq %rax, %rbx
movq %r12, %rdi
movq %rax, %rsi
callq 0xa5f99
movq %r12, %r15
movq %r14, %r12
testq %rax, %rax
je 0x2b382
movq %rax, %r14
movq %r12, 0x28(%rsp)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2b1ec
callq 0x89eb7
testb %al, %al
jne 0x2b45c
movq %rbx, 0x48(%rsp)
testq %rbx, %rbx
je 0x2b3fd
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0xa5ef3
movq %rax, %r12
movq %r15, %rdi
movq %rbp, %rsi
movq 0x28(%rsp), %rdx
callq 0xa5ef3
movq %rbp, %rbx
movq %rax, %rbp
movq %rax, 0x38(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq -0x1(%r12), %r8
movq %r15, %rdi
xorl %ecx, %ecx
callq 0xa5e53
movq %rax, %r13
leaq -0x1(%rbp), %r8
movq %r15, %rdi
movq %rbx, %rsi
movq 0x28(%rsp), %rdx
xorl %ecx, %ecx
callq 0xa5e53
movq %rax, %r14
movq %r12, %rbp
leaq 0x1(%r12), %rdi
leaq 0x2c1b03(%rip), %rbx    # 0x2ecd70
movq %rbx, %rsi
movl $0xe1, %edx
callq 0x93160
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq %rax, %r12
leaq 0x1(%rax), %rdi
movq %rbx, %rsi
movl $0xe2, %edx
callq 0x93160
movq %rax, %r15
xorl %ebx, %ebx
cmpq %rbx, %rbp
je 0x2b2c0
callq 0x170c0
movq (%rax), %rax
movsbq (%r13,%rbx), %rcx
movb (%rax,%rcx,4), %al
movq 0x30(%rsp), %rcx
movb %al, (%rcx,%rbx)
incq %rbx
jmp 0x2b29d
xorl %ebx, %ebx
cmpq %rbx, %r12
je 0x2b2e0
callq 0x170c0
movq (%rax), %rax
movsbq (%r14,%rbx), %rcx
movb (%rax,%rcx,4), %al
movb %al, (%r15,%rbx)
incq %rbx
jmp 0x2b2c2
movq %r13, %rdi
leaq 0x2c1a86(%rip), %rbx    # 0x2ecd70
movq %rbx, %rsi
movl $0xe7, %edx
callq 0x936f9
movq %r14, %rdi
movq %rbx, %rsi
movl $0xe8, %edx
callq 0x936f9
xorl %ebx, %ebx
movq 0x30(%rsp), %rdi
movb %bl, (%rdi,%rbp)
movb %bl, (%r15,%r12)
movq %r15, %rsi
callq 0x179e0
testl %eax, %eax
movq 0x10(%rsp), %rdi
je 0x2b33e
leaq 0x2c1e46(%rip), %rsi    # 0x2ed173
movq 0x48(%rsp), %rdx
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rax
movl %eax, %ebx
movq %r15, %rdi
leaq 0x2c1a28(%rip), %r14    # 0x2ecd70
movq %r14, %rsi
movl $0xef, %edx
callq 0x936f9
movq 0x30(%rsp), %rdi
movq %r14, %rsi
movl $0xf0, %edx
callq 0x936f9
movq 0x20(%rsp), %r13
movq 0x18(%rsp), %r15
movq 0x68(%rsp), %r12
movq 0x70(%rsp), %rbp
movq 0x28(%rsp), %r14
jmp 0x2b3a9
movq %rbp, 0x50(%rsp)
movq %r12, 0x58(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
leaq 0x50(%rsp), %rdx
callq 0xa5fdd
xorl %ebx, %ebx
movq %r12, %r14
movq %r15, %r12
movq 0x18(%rsp), %r15
incq %r14
jmp 0x2b186
pushq $-0x1
popq %rax
jmp 0x2b3b8
xorl %eax, %eax
incq %rbp
jmp 0x2b163
movl $0x0, 0xc(%rsp)
jmp 0x2b096
pushq $-0x1
popq %rax
movl %eax, 0xc(%rsp)
jmp 0x2b3e6
movl $0x0, 0xc(%rsp)
movq %r12, %rdi
callq 0xa5f74
movq %r15, %rdi
callq 0xa5a00
movq 0x40(%rsp), %rdi
callq 0xae662
jmp 0x2b096
movq 0x40cb64(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b9c05(%rip), %rsi    # 0x2e5013
leaq 0x2c1d4d(%rip), %rdx    # 0x2ed162
leaq 0x2c1d39(%rip), %rcx    # 0x2ed155
leaq 0x2c194d(%rip), %r8     # 0x2ecd70
movl $0xd9, %r9d
jmp 0x2b4b6
movq 0x40cb33(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b9bd4(%rip), %rsi    # 0x2e5013
leaq 0x31d20d(%rip), %rdx    # 0x348653
leaq 0x2c1b7f(%rip), %rcx    # 0x2ecfcc
leaq 0x2c191c(%rip), %r8     # 0x2ecd70
movl $0x132, %r9d            # imm = 0x132
jmp 0x2b4b6
movq 0x40cb05(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b9ba6(%rip), %rsi    # 0x2e5013
leaq 0x2b9d4b(%rip), %rdx    # 0x2e51bf
leaq 0x2c1cda(%rip), %rcx    # 0x2ed155
leaq 0x2c18ee(%rip), %r8     # 0x2ecd70
movl $0xd8, %r9d
jmp 0x2b4b6
movq 0x40cad7(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b9b78(%rip), %rsi    # 0x2e5013
leaq 0x2b9d1d(%rip), %rdx    # 0x2e51bf
leaq 0x2c1b23(%rip), %rcx    # 0x2ecfcc
leaq 0x2c18c0(%rip), %r8     # 0x2ecd70
movl $0x131, %r9d            # imm = 0x131
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x40ca9f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b9b40(%rip), %rsi    # 0x2e5013
leaq 0x2c1b65(%rip), %rdx    # 0x2ed03f
leaq 0x2c1b49(%rip), %rcx    # 0x2ed02a
leaq 0x2c1888(%rip), %r8     # 0x2ecd70
movl $0x94, %r9d
jmp 0x2b4b6
movq 0x40ca71(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b9b12(%rip), %rsi    # 0x2e5013
leaq 0x2b9cb7(%rip), %rdx    # 0x2e51bf
leaq 0x2c1b1b(%rip), %rcx    # 0x2ed02a
leaq 0x2c185a(%rip), %r8     # 0x2ecd70
movl $0x93, %r9d
jmp 0x2b4b6
movq 0x40ca43(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b9ae4(%rip), %rsi    # 0x2e5013
leaq 0x2f7eee(%rip), %rdx    # 0x323424
leaq 0x2c1ba9(%rip), %rcx    # 0x2ed0e6
leaq 0x2c182c(%rip), %r8     # 0x2ecd70
movl $0xc3, %r9d
jmp 0x2b4b6
movq 0x40ca12(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b9ab3(%rip), %rsi    # 0x2e5013
leaq 0x2b9c58(%rip), %rdx    # 0x2e51bf
leaq 0x2c1b78(%rip), %rcx    # 0x2ed0e6
leaq 0x2c17fb(%rip), %r8     # 0x2ecd70
movl $0xc2, %r9d
jmp 0x2b4b6
movq 0x40c9e1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b9a82(%rip), %rsi    # 0x2e5013
leaq 0x2b9c27(%rip), %rdx    # 0x2e51bf
leaq 0x2c1b8b(%rip), %rcx    # 0x2ed12a
leaq 0x2c17ca(%rip), %r8     # 0x2ecd70
movl $0x11a, %r9d            # imm = 0x11A
jmp 0x2b4b6
movq 0x40c9b0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b9a51(%rip), %rsi    # 0x2e5013
leaq 0x2b9bf6(%rip), %rdx    # 0x2e51bf
leaq 0x2c1b6c(%rip), %rcx    # 0x2ed13c
leaq 0x2c1799(%rip), %r8     # 0x2ecd70
movl $0xf8, %r9d
jmp 0x2b4b6