// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/stream_evaluator.c
// Function: compare_features
static void compare_features(GtArray *real_genome_nodes, GtFeatureNode *fn,
                             GtArray *genes_forward, GtArray *genes_reverse,
                             GtBittab *true_genes_forward,
                             GtBittab *true_genes_reverse,
                             GtEvaluator *gene_evaluator,
                             FeaturesAreEqualFunc features_are_equal,
                             const char *feature_type)
{
  GtStrand predicted_strand;
  GtGenomeNode **real_gn;
  GtUword i, num;
  gt_assert(real_genome_nodes && fn && genes_forward && genes_reverse);
  gt_assert(gene_evaluator && features_are_equal && feature_type);
  predicted_strand = gt_feature_node_get_strand(fn);
  for (i = 0; i < gt_array_size(real_genome_nodes); i++) {
    real_gn = *(GtGenomeNode***) gt_array_get(real_genome_nodes, i);
    if (features_are_equal((GtGenomeNode*) fn, *real_gn, feature_type)) {
      if (predicted_strand == GT_STRAND_FORWARD) {
        num = real_gn - (GtGenomeNode**) gt_array_get_space(genes_forward);
        if (!gt_bittab_bit_is_set(true_genes_forward, num)) {
          gt_bittab_set_bit(true_genes_forward, num);
          gt_evaluator_add_true(gene_evaluator);
          /*@loopbreak@*/
          break;
        }
      }
      else {
        num = real_gn - (GtGenomeNode**) gt_array_get_space(genes_reverse);
        if (!gt_bittab_bit_is_set(true_genes_reverse, num)) {
          gt_bittab_set_bit(true_genes_reverse, num);
          gt_evaluator_add_true(gene_evaluator);
          /*@loopbreak@*/
          break;
        }
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, 0x18(%rsp)
movq %r8, 0x10(%rsp)
movq %rsi, %xmm0
movq %rdi, %xmm1
punpcklqdq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0]
movq %rcx, 0x30(%rsp)
movq %rcx, %xmm0
movq %rdx, 0x28(%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 0xac5a1
movq 0x70(%rsp), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0xac5a6
movq 0x78(%rsp), %r12
testq %r12, %r12
je 0xac5a6
movq 0x80(%rsp), %r14
testq %r14, %r14
je 0xac5a6
movq %rsi, %r13
movq %rdi, %rbp
movq %rsi, %rdi
callq 0x3fdd2
movl %eax, 0xc(%rsp)
movq %rbp, %rdi
callq 0x6ecda
testq %rax, %rax
je 0xac566
xorl %ebx, %ebx
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x6e9fa
movq (%rax), %r15
movq (%r15), %rsi
movq %r13, %rdi
movq %r14, %rdx
callq *%r12
testb %al, %al
je 0xac556
cmpl $0x0, 0xc(%rsp)
je 0xac534
movq 0x30(%rsp), %rdi
callq 0x6ebe9
subq %rax, %r15
sarq $0x3, %r15
movq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x70b1b
testb %al, %al
jne 0xac556
jmp 0xac575
movq 0x28(%rsp), %rdi
callq 0x6ebe9
subq %rax, %r15
sarq $0x3, %r15
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x70b1b
testb %al, %al
je 0xac57c
incq %rbx
movq %rbp, %rdi
callq 0x6ecda
cmpq %rax, %rbx
jb 0xac4eb
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rsp), %rdi
jmp 0xac581
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x70790
movq 0x20(%rsp), %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xdaa77
callq 0x251a2
callq 0x251db