// File: /workspace/github_c_makefile_star2_O2/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 0x8d984
movq 0x70(%rsp), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x8d9b2
movq 0x78(%rsp), %r12
testq %r12, %r12
je 0x8d9b2
movq 0x80(%rsp), %r14
testq %r14, %r14
je 0x8d9b2
movq %rsi, %r13
movq %rdi, %rbp
movq %rsi, %rdi
callq 0x18f89
movl %eax, 0xc(%rsp)
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0x4b988
cmpq %rax, %rbx
jae 0x8d949
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x4b48e
movq (%rax), %r15
movq (%r15), %rsi
movq %r13, %rdi
movq %r14, %rdx
callq *%r12
testb %al, %al
je 0x8d944
cmpl $0x0, 0xc(%rsp)
je 0x8d922
movq 0x30(%rsp), %rdi
callq 0x4b7ab
subq %rax, %r15
sarq $0x3, %r15
movq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x4de2d
testb %al, %al
jne 0x8d944
jmp 0x8d958
movq 0x28(%rsp), %rdi
callq 0x4b7ab
subq %rax, %r15
sarq $0x3, %r15
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x4de2d
testb %al, %al
je 0x8d95f
incq %rbx
jmp 0x8d8cc
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rsp), %rdi
jmp 0x8d964
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x4d737
movq 0x20(%rsp), %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc3719
movq 0xa062d(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x3c6d1(%rip), %rsi     # 0xca066
leaq 0x5818e(%rip), %rdx     # 0xe5b2a
leaq 0x581c1(%rip), %rcx     # 0xe5b64
leaq 0x57a66(%rip), %r8      # 0xe5410
movl $0x3c4, %r9d            # imm = 0x3C4
jmp 0x8d9de
movq 0xa05ff(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x3c6a3(%rip), %rsi     # 0xca066
leaq 0x581ab(%rip), %rdx     # 0xe5b75
leaq 0x58193(%rip), %rcx     # 0xe5b64
leaq 0x57a38(%rip), %r8      # 0xe5410
movl $0x3c5, %r9d            # imm = 0x3C5
xorl %eax, %eax
callq 0xb8c0
callq 0xb300