// File: /workspace/github_c_makefile_star2_O2/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, 0x18(%rsp)
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 0xbf030
movl %r9d, %r13d
movq %r8, %r15
movq %rsi, %rbp
movq %rdi, %r14
leaq 0x33d1e(%rip), %rdx     # 0xf2baf
pushq $0x1
popq %rdi
pushq $0x38
popq %rsi
pushq $0x6e
popq %rcx
callq 0xce9a
movq %rax, %rbx
movq %r15, 0x18(%rax)
movq %r14, %rdi
callq 0x13da9
leaq 0x2bdde(%rip), %rsi     # 0xeac93
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0x13dd3
testb %r13b, %r13b
je 0xbef18
movq 0x8(%rsp), %rdi
callq 0x143d2
movq %rax, %rdi
callq 0x54940
testb %al, %al
je 0xbef18
movq 0x8(%rsp), %rdi
callq 0x143d2
movq %r14, %rdi
movq %rax, %rsi
callq 0x54a24
testb %al, %al
jne 0xbef18
movq 0x8(%rsp), %rdi
callq 0x143d2
movzbl 0x60(%rsp), %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0xbf0ba
testb %al, %al
jne 0xbf014
leaq 0x33c90(%rip), %rdx     # 0xf2baf
pushq $0x8
popq %rsi
pushq $0x7b
popq %rcx
movq %r15, %rdi
callq 0xce9a
movq %rbx, 0x10(%rsp)
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0xbf05a
movq %rax, %r14
xorl %ebx, %ebx
cmpq %rbx, %r15
je 0xbef74
movq %rbp, %rdi
movq %rbx, %rsi
callq *0x18(%rsp)
movq %rax, %r12
movq %rbp, %rdi
movq %rbx, %rsi
callq *0x20(%rsp)
movq %r12, %rdi
movq %rax, %rsi
callq 0xc8024
movq %rax, (%r14,%rbx,8)
incq %rbx
jmp 0xbef44
movq 0x10(%rsp), %rbx
movb $0x1, 0x28(%rbx)
testb %r13b, %r13b
je 0xbf014
cmpq $0x0, 0x8(%rsp)
je 0xbf084
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0xbf084
movq 0x18(%rbx), %r15
testq %r15, %r15
je 0xbf084
movq 0x8(%rsp), %rdi
callq 0x143d2
leaq 0x325de(%rip), %rsi     # 0xf159b
leaq 0x33beb(%rip), %rdx     # 0xf2baf
pushq $0x5c
popq %rcx
movq %rax, %rdi
callq 0x51a8b
movq %rax, %rbx
cmpb $0x0, 0x60(%rsp)
je 0xbeff9
movq %rbx, %rdi
callq 0x51dfc
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xbf514
movq %rbx, %rdi
callq 0x51e47
jmp 0xbf007
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xbf514
movq %rbx, %rdi
callq 0x51cc9
movq 0x10(%rsp), %rbx
movq 0x8(%rsp), %rdi
callq 0x152db
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x6ef81(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xb025(%rip), %rsi      # 0xca066
leaq 0x33b28(%rip), %rdx     # 0xf2b70
leaq 0x33b51(%rip), %rcx     # 0xf2ba0
leaq 0x33b59(%rip), %r8      # 0xf2baf
pushq $0x6d
jmp 0xbf0ac
movq 0x6ef57(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xaffb(%rip), %rsi      # 0xca066
leaq 0x33c7a(%rip), %rdx     # 0xf2cec
leaq 0x33ca6(%rip), %rcx     # 0xf2d1f
leaq 0x33b2f(%rip), %r8      # 0xf2baf
pushq $0x43
jmp 0xbf0ac
movq 0x6ef2d(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xafd1(%rip), %rsi      # 0xca066
leaq 0x33c94(%rip), %rdx     # 0xf2d30
leaq 0x33cc6(%rip), %rcx     # 0xf2d69
leaq 0x33b05(%rip), %r8      # 0xf2baf
pushq $0x5b
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300