// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_fingerprint.c
// Function: compare_md5s
static int compare_md5s(GtBioseqCol *bsc, const GtSeqInfo *si,
                        GtUword filenum, GtUword seqnum,
                        const char *md5, GtError *err)
{
  GtUword i, seq_a_len, seq_b_len;
  char *seq_a_upper, *seq_b_upper;
  char *seq_a, *seq_b;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(bsc && si && md5);
  seq_a_len = gt_seq_col_get_sequence_length((GtSeqCol*) bsc, si->filenum,
                                             si->seqnum);
  seq_b_len = gt_seq_col_get_sequence_length((GtSeqCol*) bsc, filenum, seqnum);
  seq_a = gt_seq_col_get_sequence((GtSeqCol*) bsc, si->filenum, si->seqnum, 0,
                                  seq_a_len - 1);
  seq_b = gt_seq_col_get_sequence((GtSeqCol*) bsc, filenum, seqnum, 0,
                                  seq_b_len - 1);
  seq_a_upper = gt_malloc((seq_a_len + 1) * sizeof (char));
  seq_b_upper = gt_malloc((seq_b_len + 1) * sizeof (char));
  for (i = 0; i < seq_a_len; i++)
    seq_a_upper[i] = toupper(seq_a[i]);
  for (i = 0; i < seq_b_len; i++)
    seq_b_upper[i] = toupper(seq_b[i]);
  gt_free(seq_a);
  gt_free(seq_b);
  seq_a_upper[seq_a_len] = '\0';
  seq_b_upper[seq_b_len] = '\0';
  if (strcmp(seq_a_upper, seq_b_upper)) {
    gt_error_set(err, "sequence collision detected for fingerprint '%s'", md5);
    had_err = -1;
  }
  gt_free(seq_b_upper);
  gt_free(seq_a_upper);
  return had_err;
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq %r9, 0x48(%rsp)
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0x38aaa
movq 0x48(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x38a72
jmp 0x38aaa
movq 0x603527(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4dd590(%rip), %rsi    # 0x516013
leaq 0x4dd735(%rip), %rdx    # 0x5161bf
leaq 0x4e5761(%rip), %rcx    # 0x51e1f2
leaq 0x4e5375(%rip), %r8     # 0x51de0d
movl $0xd8, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x38aac
jmp 0x38aae
cmpq $0x0, 0x70(%rsp)
je 0x38ac6
cmpq $0x0, 0x68(%rsp)
je 0x38ac6
cmpq $0x0, 0x50(%rsp)
jne 0x38afe
movq 0x6034d3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4dd53c(%rip), %rsi    # 0x516013
leaq 0x4e5721(%rip), %rdx    # 0x51e1ff
leaq 0x4e570d(%rip), %rcx    # 0x51e1f2
leaq 0x4e5321(%rip), %r8     # 0x51de0d
movl $0xd9, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x38b00
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %rax
movq (%rax), %rsi
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0x111440
movq %rax, 0x38(%rsp)
movq 0x70(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x111440
movq %rax, 0x30(%rsp)
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %rax
movq (%rax), %rsi
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rdx
movq 0x38(%rsp), %r8
subq $0x1, %r8
xorl %eax, %eax
movl %eax, %ecx
callq 0x1112f0
movq %rax, 0x18(%rsp)
movq 0x70(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x30(%rsp), %r8
subq $0x1, %r8
xorl %eax, %eax
movl %eax, %ecx
callq 0x1112f0
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rdi
addq $0x1, %rdi
shlq $0x0, %rdi
leaq 0x4e526d(%rip), %rsi    # 0x51de0d
movl $0xe1, %edx
callq 0xe80f0
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rdi
addq $0x1, %rdi
shlq $0x0, %rdi
leaq 0x4e524a(%rip), %rsi    # 0x51de0d
movl $0xe2, %edx
callq 0xe80f0
movq %rax, 0x20(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x38(%rsp), %rax
jae 0x38c19
movq 0x18(%rsp), %rax
movq 0x40(%rsp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x19dd0
movb %al, %dl
movq 0x28(%rsp), %rax
movq 0x40(%rsp), %rcx
movb %dl, (%rax,%rcx)
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x38bdb
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x30(%rsp), %rax
jae 0x38c60
movq 0x10(%rsp), %rax
movq 0x40(%rsp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x19dd0
movb %al, %dl
movq 0x20(%rsp), %rax
movq 0x40(%rsp), %rcx
movb %dl, (%rax,%rcx)
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x38c22
movq 0x18(%rsp), %rdi
leaq 0x4e51a1(%rip), %rsi    # 0x51de0d
movl $0xe7, %edx
callq 0xe88c0
movq 0x10(%rsp), %rdi
leaq 0x4e518b(%rip), %rsi    # 0x51de0d
movl $0xe8, %edx
callq 0xe88c0
movq 0x28(%rsp), %rax
movq 0x38(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x19980
cmpl $0x0, %eax
je 0x38cdc
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rdx
leaq 0x4e5543(%rip), %rsi    # 0x51e210
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
movq 0x20(%rsp), %rdi
leaq 0x4e5125(%rip), %rsi    # 0x51de0d
movl $0xef, %edx
callq 0xe88c0
movq 0x28(%rsp), %rdi
leaq 0x4e510f(%rip), %rsi    # 0x51de0d
movl $0xf0, %edx
callq 0xe88c0
movl 0xc(%rsp), %eax
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)