// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/ltr/ltr_classify_stream.c
// Function: check_ambiguous_candidates
static int check_ambiguous_candidates(GtArray *candidates, GtArray *groups,
                                      GtHashmap *features,
                                      GtUword *progress,
                                      GtError *err)
{
  GtGenomeNode *candidate;
  GtBittab *group;
  GtArray *compat_groups;
  int had_err = 0;
  GtUword i,
                j;

  gt_error_check(err);
  gt_assert(candidates && groups);

  for (i = 0; i < gt_array_size(candidates); i++) {
    candidate = *(GtGenomeNode**) gt_array_get(candidates, i);
    if (gt_feature_node_try_cast(candidate) == NULL)
      continue;
    compat_groups = gt_array_new(sizeof(GtBittab*));
    for (j = 0; j < gt_array_size(groups); j++) {
      group = *(GtBittab**) gt_array_get(groups, j);
      if (ltr_group_compatible(candidates, candidate, group, features, err))
        gt_array_add(compat_groups, group);
    }
    if (gt_array_size(compat_groups) > 1UL) {
      for (j = 0; j < gt_array_size(groups); j++) {
        group = *(GtBittab**) gt_array_get(groups, j);
        gt_bittab_unset_bit(group, i);
        if (gt_bittab_count_set_bits(group) == 0)
          gt_array_rem(groups, j);
      }
    }
    gt_array_delete(compat_groups);
    if (progress != NULL)
      *progress = *progress + 1;
  }
  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)
movl $0x0, 0x34(%rsp)
cmpq $0x0, 0x50(%rsp)
je 0x2fe7e5
movq 0x50(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x2fe7ad
jmp 0x2fe7e5
movq 0x33d7ec(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x217855(%rip), %rsi    # 0x516013
leaq 0x2179fa(%rip), %rdx    # 0x5161bf
leaq 0x293e27(%rip), %rcx    # 0x5925f3
leaq 0x293d3d(%rip), %r8     # 0x592510
movl $0xaf, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2fe7e7
jmp 0x2fe7e9
cmpq $0x0, 0x70(%rsp)
je 0x2fe7f9
cmpq $0x0, 0x68(%rsp)
jne 0x2fe831
movq 0x33d7a0(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x217809(%rip), %rsi    # 0x516013
leaq 0x293dfd(%rip), %rdx    # 0x59260e
leaq 0x293ddb(%rip), %rcx    # 0x5925f3
leaq 0x293cf1(%rip), %r8     # 0x592510
movl $0xb0, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2fe833
movq $0x0, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x70(%rsp), %rdi
callq 0x81370
movq %rax, %rcx
movq 0x18(%rsp), %rax
cmpq %rcx, %rax
jae 0x2fe9fc
movq 0x70(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x80b60
movq (%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
callq 0x170450
cmpq $0x0, %rax
jne 0x2fe88d
jmp 0x2fe9e9
movl $0x8, %edi
callq 0x80990
movq %rax, 0x38(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rdi
callq 0x81370
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
jae 0x2fe92a
movq 0x68(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x80b60
movq (%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x60(%rsp), %rcx
movq 0x50(%rsp), %r8
callq 0x2fe5e0
testb $0x1, %al
jne 0x2fe901
jmp 0x2fe915
movq 0x38(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movl $0x8, %edx
callq 0x81100
jmp 0x2fe917
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x2fe8a5
movq 0x38(%rsp), %rdi
callq 0x81370
cmpq $0x1, %rax
jbe 0x2fe9c1
movq $0x0, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x68(%rsp), %rdi
callq 0x81370
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
jae 0x2fe9bf
movq 0x68(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x80b60
movq (%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x89ba0
movq 0x40(%rsp), %rdi
callq 0x8ac40
cmpq $0x0, %rax
jne 0x2fe9ad
movq 0x68(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x80cf0
jmp 0x2fe9af
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x2fe947
jmp 0x2fe9c1
movq 0x38(%rsp), %rdi
callq 0x81f80
cmpq $0x0, 0x58(%rsp)
je 0x2fe9e7
movq 0x58(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq 0x58(%rsp), %rax
movq %rcx, (%rax)
jmp 0x2fe9e9
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x2fe83c
movl 0x34(%rsp), %eax
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)