// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/md5_tab.c
// Function: gt_md5_tab_new
GtMD5Tab* gt_md5_tab_new(const char *sequence_file, void *seqs,
                         GtGetSeqFunc get_seq, GtGetSeqLenFunc get_seq_len,
                         GtUword num_of_seqs, bool use_cache_file,
                         bool use_file_locking)
{
  GtMD5Tab *md5_tab;
  bool reading_succeeded = false;
  GtStr *fingerprints_filename;
  gt_assert(sequence_file && seqs && get_seq && get_seq_len);
  md5_tab = gt_calloc(1, sizeof *md5_tab);
  md5_tab->num_of_md5s = num_of_seqs;
  fingerprints_filename = gt_str_new_cstr(sequence_file);
  gt_str_append_cstr(fingerprints_filename, GT_MD5_TAB_FILE_SUFFIX);
  if (use_cache_file && gt_file_exists(gt_str_get(fingerprints_filename)) &&
      !gt_file_is_newer(sequence_file, gt_str_get(fingerprints_filename))) {
    /* only try to read the fingerprint file if the sequence file was not
       modified in the meantime */
    reading_succeeded = read_fingerprints(md5_tab,
                                          gt_str_get(fingerprints_filename),
                                          use_file_locking);
  }
  if (!reading_succeeded) {
    md5_tab->md5_fingerprints = gt_calloc(num_of_seqs, sizeof (char*));
    add_fingerprints(md5_tab->md5_fingerprints, seqs, get_seq, get_seq_len,
                     num_of_seqs);
    md5_tab->owns_md5s = true;
    if (use_cache_file) {
      write_fingerprints(md5_tab->md5_fingerprints, md5_tab->num_of_md5s,
                         fingerprints_filename, use_file_locking);
    }
  }
  gt_str_delete(fingerprints_filename);
  return md5_tab;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %xmm0
movq %rdi, %xmm1
punpcklqdq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0]
movq %rcx, 0x20(%rsp)
movq %rcx, %xmm0
movq %rdx, %xmm2
punpcklqdq %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0]
pxor %xmm0, %xmm0
pcmpeqd %xmm0, %xmm2
pcmpeqd %xmm0, %xmm1
movdqa %xmm1, %xmm0
shufps $0xdd, %xmm2, %xmm0     # xmm0 = xmm0[1,3],xmm2[1,3]
shufps $0x88, %xmm2, %xmm1     # xmm1 = xmm1[0,2],xmm2[0,2]
andps %xmm0, %xmm1
movmskps %xmm1, %eax
testl %eax, %eax
jne 0xd73c3
movl %r9d, %r14d
movq %r8, %rbx
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbp
leaq 0x328e4(%rip), %rdx     # 0x109adf
movl $0x1, %edi
movl $0x38, %esi
movl $0x6e, %ecx
callq 0x3601f
movq %rax, %r12
movq %rbx, 0x18(%rsp)
movq %rbx, 0x18(%rax)
movq %rbp, %rdi
callq 0x3c03d
movq %rax, %rbx
leaq 0x2a876(%rip), %rsi     # 0x101aa3
movq %rax, %rdi
callq 0x3c067
movl %r14d, 0x4(%rsp)
testb %r14b, %r14b
je 0xd728a
movq %rbx, %rdi
callq 0x3c40b
movq %rax, %rdi
callq 0x75bdc
testb %al, %al
je 0xd728a
movq %rbx, %rdi
callq 0x3c40b
movq %rbp, %rdi
movq %rax, %rsi
callq 0x75c8f
testb %al, %al
jne 0xd728a
movq %rbx, %rdi
callq 0x3c40b
movzbl 0x60(%rsp), %edx
movq %r12, %rdi
movq %rax, %rsi
callq 0xd73d2
testb %al, %al
jne 0xd73a9
movq %r15, %r14
movq %rbx, 0x8(%rsp)
leaq 0x32846(%rip), %rdx     # 0x109adf
movl $0x8, %esi
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
movl $0x7b, %ecx
callq 0x3601f
movq %r12, 0x10(%rsp)
movq %rax, 0x10(%r12)
testq %rax, %rax
je 0xd73c8
testq %rbp, %rbp
je 0xd7301
movq %r13, %r15
xorl %ebx, %ebx
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %r13
callq *%r15
movq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
callq *0x20(%rsp)
movq %r12, %rdi
movq %rax, %rsi
callq 0xdec38
movq %rax, (%r13,%rbx,8)
movq %r13, %rax
incq %rbx
cmpq %rbx, %rbp
jne 0xd72cd
movq 0x10(%rsp), %r12
movb $0x1, 0x28(%r12)
cmpb $0x0, 0x4(%rsp)
movq 0x8(%rsp), %rbx
je 0xd73a9
testq %rbx, %rbx
je 0xd73cd
movq 0x10(%r12), %r14
testq %r14, %r14
je 0xd73cd
movq 0x18(%r12), %r15
testq %r15, %r15
je 0xd73cd
movq %rbx, %rdi
callq 0x3c40b
leaq 0x31177(%rip), %rsi     # 0x1084c7
leaq 0x32788(%rip), %rdx     # 0x109adf
movq %rax, %rdi
movl $0x5c, %ecx
callq 0x73e59
movq %rax, %rbx
cmpb $0x0, 0x60(%rsp)
je 0xd738e
movq %rbx, %rdi
callq 0x74038
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xd76ed
movq %rbx, %rdi
callq 0x74050
jmp 0xd739c
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xd76ed
movq %rbx, %rdi
callq 0x73f9e
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x3d1eb
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x32545
callq 0x325b3
callq 0x3257c