// File: /workspace/github_c_makefile_star2_O3/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 0xd7ac3
movl %r9d, %r14d
movq %r8, %rbx
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbp
leaq 0x32004(%rip), %rdx     # 0x1098ff
movl $0x1, %edi
movl $0x38, %esi
movl $0x6e, %ecx
callq 0x359a6
movq %rax, %r12
movq %rbx, 0x18(%rsp)
movq %rbx, 0x18(%rax)
movq %rbp, %rdi
callq 0x3b785
movq %rax, %rbx
leaq 0x2a0ea(%rip), %rsi     # 0x101a17
movq %rax, %rdi
callq 0x3b7af
movl %r14d, 0x4(%rsp)
testb %r14b, %r14b
je 0xd798a
movq %rbx, %rdi
callq 0x3bb5d
movq %rax, %rdi
callq 0x76120
testb %al, %al
je 0xd798a
movq %rbx, %rdi
callq 0x3bb5d
movq %rbp, %rdi
movq %rax, %rsi
callq 0x761d3
testb %al, %al
jne 0xd798a
movq %rbx, %rdi
callq 0x3bb5d
movzbl 0x60(%rsp), %edx
movq %r12, %rdi
movq %rax, %rsi
callq 0xd7ad2
testb %al, %al
jne 0xd7aa9
movq %r15, %r14
movq %rbx, 0x8(%rsp)
leaq 0x31f66(%rip), %rdx     # 0x1098ff
movl $0x8, %esi
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
movl $0x7b, %ecx
callq 0x359a6
movq %r12, 0x10(%rsp)
movq %rax, 0x10(%r12)
testq %rax, %rax
je 0xd7ac8
testq %rbp, %rbp
je 0xd7a01
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 0xdf328
movq %rax, (%r13,%rbx,8)
movq %r13, %rax
incq %rbx
cmpq %rbx, %rbp
jne 0xd79cd
movq 0x10(%rsp), %r12
movb $0x1, 0x28(%r12)
cmpb $0x0, 0x4(%rsp)
movq 0x8(%rsp), %rbx
je 0xd7aa9
testq %rbx, %rbx
je 0xd7acd
movq 0x10(%r12), %r14
testq %r14, %r14
je 0xd7acd
movq 0x18(%r12), %r15
testq %r15, %r15
je 0xd7acd
movq %rbx, %rdi
callq 0x3bb5d
leaq 0x3089f(%rip), %rsi     # 0x1082ef
leaq 0x31ea8(%rip), %rdx     # 0x1098ff
movq %rax, %rdi
movl $0x5c, %ecx
callq 0x743ed
movq %rax, %rbx
cmpb $0x0, 0x60(%rsp)
je 0xd7a8e
movq %rbx, %rdi
callq 0x745cc
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xd7df1
movq %rbx, %rdi
callq 0x745e4
jmp 0xd7a9c
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xd7df1
movq %rbx, %rdi
callq 0x74532
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x3c87b
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x31f48
callq 0x31fb6
callq 0x31f7f