// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/kmer_database.c
// Function: gt_kmer_database_compare
int gt_kmer_database_compare(GtKmerDatabase *a, GtKmerDatabase *b, GtError *err)
{
  int had_err = 0;
  GtUword i;

  gt_error_check(err);

  if (a->nu_kmer_codes != b->nu_kmer_codes) {
    gt_error_set(err, "Kmer Dtaatabases not identical. Alphabet sizes are"
                 ": " GT_WU " and " GT_WU, a->nu_kmer_codes, b->nu_kmer_codes);
    had_err = -1;
  }

  if (!had_err && a->offset[a->nu_kmer_codes] !=
      b->offset[b->nu_kmer_codes]) {
    gt_error_set(err, "Kmer Databases not identical. Number of inserted kmers: "
                 GT_WU " and " GT_WU,
                 a->offset[a->nu_kmer_codes], b->offset[b->nu_kmer_codes]);
    had_err = -1;
  }

  for (i = 0; !had_err && i <= a->nu_kmer_codes; i++) {
    if (!had_err && a->offset[i] != b->offset[i]) {
      gt_error_set(err, "Kmer Databases not identical. Offset at " GT_WU
                   " are: " GT_WU " and " GT_WU, i, a->offset[i], b->offset[i]);
      had_err = -1;
    }
  }
  for (i = 0; !had_err && i < a->offset[a->nu_kmer_codes]; i++) {
    if (!had_err && a->positions[i] != b->positions[i]) {
      gt_error_set(err, "Kmer Databases not identical. Positions at " GT_WU
                   " are: "GT_WU " and " GT_WU, i, a->positions[i],
                   b->positions[i]);
      had_err = -1;
    }
    if (!had_err && a->unique_ids[i] != b->unique_ids[i]) {
      gt_error_set(err, "Kmer Databases not identical. Ids at " GT_WU
                   " are: "GT_WU " and " GT_WU,
                   i, a->unique_ids[i], b->unique_ids[i]);
      had_err = -1;
    }
  }

  return had_err;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x199d1b
movq 0x20(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x199ce3
jmp 0x199d1b
movq 0x4a22b6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x37c31f(%rip), %rsi    # 0x516013
leaq 0x37c4c4(%rip), %rdx    # 0x5161bf
leaq 0x3bde63(%rip), %rcx    # 0x557b65
leaq 0x3bda32(%rip), %r8     # 0x55773b
movl $0x268, %r9d            # imm = 0x268
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x199d1d
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x28(%rsp), %rcx
cmpq 0x28(%rcx), %rax
je 0x199d5e
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rdx
movq 0x28(%rsp), %rax
movq 0x28(%rax), %rcx
leaq 0x3bde2f(%rip), %rsi    # 0x557b7e
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x1c(%rsp)
jne 0x199dd6
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x28(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x28(%rsp), %rcx
movq (%rcx), %rcx
movq 0x28(%rsp), %rdx
movq 0x28(%rdx), %rdx
cmpq (%rcx,%rdx,8), %rax
je 0x199dd6
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x28(%rcx), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0x28(%rsp), %rcx
movq 0x28(%rcx), %rcx
movq (%rax,%rcx,8), %rcx
leaq 0x3bddf7(%rip), %rsi    # 0x557bbe
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
movq $0x0, 0x10(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x1c(%rsp)
movb %al, 0xf(%rsp)
jne 0x199e01
movq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x28(%rcx), %rax
setbe %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x199e0e
jmp 0x199e90
cmpl $0x0, 0x1c(%rsp)
jne 0x199e7b
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x28(%rsp), %rcx
movq (%rcx), %rcx
movq 0x10(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
je 0x199e7b
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rsi
movq (%rax,%rsi,8), %r8
leaq 0x3bdd96(%rip), %rsi    # 0x557c02
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
jmp 0x199e7d
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x199ddf
movq $0x0, 0x10(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x1c(%rsp)
movb %al, 0xe(%rsp)
jne 0x199ec7
movq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
movq (%rcx), %rcx
movq 0x30(%rsp), %rdx
movq 0x28(%rdx), %rdx
cmpq (%rcx,%rdx,8), %rax
setb %al
movb %al, 0xe(%rsp)
movb 0xe(%rsp), %al
testb $0x1, %al
jne 0x199ed4
jmp 0x199fcb
cmpl $0x0, 0x1c(%rsp)
jne 0x199f45
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x28(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x10(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
je 0x199f45
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rsp), %rsi
movq (%rax,%rsi,8), %r8
leaq 0x3bdd09(%rip), %rsi    # 0x557c3f
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x1c(%rsp)
jne 0x199fb6
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x28(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x10(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
je 0x199fb6
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x10(%rsp), %rsi
movq (%rax,%rsi,8), %r8
leaq 0x3bdcd8(%rip), %rsi    # 0x557c7f
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
jmp 0x199fb8
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x199e99
movl 0x1c(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)