// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/stream_evaluator.c
// Function: process_real_feature
static int process_real_feature(GtFeatureNode *fn, void *data,
                                GT_UNUSED GtError *err)
{
  ProcessRealFeatureInfo *info = (ProcessRealFeatureInfo*) data;
  GtGenomeNode *gn_ref;
  GtRange range;

  gt_error_check(err);
  gt_assert(fn && data);

  if (gt_feature_node_has_type(fn, gt_ft_gene)) {
    switch (gt_feature_node_get_strand(fn)) {
      case GT_STRAND_FORWARD:
        gn_ref = gt_genome_node_ref((GtGenomeNode*) fn);
        gt_array_add(info->slot->genes_forward, gn_ref);
        break;
      case GT_STRAND_REVERSE:
        gn_ref = gt_genome_node_ref((GtGenomeNode*) fn);
        gt_array_add(info->slot->genes_reverse, gn_ref);
        break;
      default:
        if (info->verbose) {
          fprintf(stderr, "skipping real gene with unknown orientation "
                  "(line %u)\n",
                  gt_genome_node_get_line_number((GtGenomeNode*) fn));
        }
    }
  }
  else if (gt_feature_node_has_type(fn, gt_ft_mRNA)) {
    switch (gt_feature_node_get_strand(fn)) {
      case GT_STRAND_FORWARD:
        gn_ref = gt_genome_node_ref((GtGenomeNode*) fn);
        gt_array_add(info->slot->mRNAs_forward, gn_ref);
        break;
      case GT_STRAND_REVERSE:
        gn_ref = gt_genome_node_ref((GtGenomeNode*) fn);
        gt_array_add(info->slot->mRNAs_reverse, gn_ref);
        break;
      default:
        if (info->verbose) {
          fprintf(stderr, "skipping real mRNA with unknown orientation "
                  "(line %u)\n",
                  gt_genome_node_get_line_number((GtGenomeNode*) fn));
        }
    }
  }
  else if (gt_feature_node_has_type(fn, gt_ft_LTR_retrotransposon)) {
    gn_ref = gt_genome_node_ref((GtGenomeNode*) fn);
    gt_array_add(info->slot->LTRs, gn_ref);
  }
  else if (gt_feature_node_has_type(fn, gt_ft_CDS)) {
    range = gt_genome_node_get_range((GtGenomeNode*) fn);
    switch (gt_feature_node_get_strand(fn)) {
      case GT_STRAND_FORWARD:
        add_real_exon(info->slot->CDS_exons_forward, range, fn);
        /* nucleotide level */
        if (info->nuceval) {
          add_nucleotide_exon(info->slot->real_CDS_nucleotides_forward, range,
                              info->slot->real_range, NULL);
        }
        break;
      case GT_STRAND_REVERSE:
        add_real_exon(info->slot->CDS_exons_reverse, range, fn);
        /* nucleotide level */
        if (info->nuceval) {
          add_nucleotide_exon(info->slot->real_CDS_nucleotides_reverse, range,
                              info->slot->real_range, NULL);
        }
        break;
      default:
        if (info->verbose) {
          fprintf(stderr, "skipping real CDS exon with unknown orientation "
                  "(line %u)\n",
                  gt_genome_node_get_line_number((GtGenomeNode*) fn));
        }
    }
  }
  else if (gt_feature_node_has_type(fn, gt_ft_exon)) {
    range = gt_genome_node_get_range((GtGenomeNode*) fn);
    switch (gt_feature_node_get_strand(fn)) {
      case GT_STRAND_FORWARD:
        add_real_exon(info->slot->mRNA_exons_forward, range, fn);
        /* nucleotide level */
        if (info->nuceval) {
          add_nucleotide_exon(info->slot->real_mRNA_nucleotides_forward,
                              range, info->slot->real_range, NULL);
        }
        break;
      case GT_STRAND_REVERSE:
        add_real_exon(info->slot->mRNA_exons_reverse, range, fn);
        /* nucleotide level */
        if (info->nuceval) {
          add_nucleotide_exon(info->slot->real_mRNA_nucleotides_reverse,
                              range, info->slot->real_range, NULL);
        }
        break;
      default:
        if (info->verbose) {
          fprintf(stderr, "skipping real mRNA exon with unknown orientation "
                  "(line %u)\n",
                  gt_genome_node_get_line_number((GtGenomeNode*) fn));
        }
    }
  }
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0xaaae8
movq %rdx, %rdi
callq 0x3566a
testb %al, %al
jne 0xaad87
testq %r14, %r14
je 0xaad82
testq %rbx, %rbx
je 0xaad82
leaq 0x61d9f(%rip), %rsi     # 0x10c8a0
movq %r14, %rdi
callq 0x40409
testb %al, %al
je 0xaab3f
movq %r14, %rdi
callq 0x3fdd2
cmpl $0x1, %eax
je 0xaabb2
testl %eax, %eax
jne 0xaabcc
movq %r14, %rdi
callq 0x41ca0
movq %rsp, %rsi
movq %rax, (%rsi)
movq (%rbx), %rax
movq (%rax), %rdi
jmp 0xaac60
leaq 0x3a104(%rip), %rsi     # 0xe4c4a
movq %r14, %rdi
callq 0x40409
testb %al, %al
je 0xaab85
movq %r14, %rdi
callq 0x3fdd2
cmpl $0x1, %eax
je 0xaac4b
testl %eax, %eax
jne 0xaac78
movq %r14, %rdi
callq 0x41ca0
movq %rsp, %rsi
movq %rax, (%rsi)
movq (%rbx), %rax
movq 0x10(%rax), %rdi
jmp 0xaac60
leaq 0x518e6(%rip), %rsi     # 0xfc472
movq %r14, %rdi
callq 0x40409
testb %al, %al
je 0xaabe3
movq %r14, %rdi
callq 0x41ca0
movq %rsp, %rsi
movq %rax, (%rsi)
movq (%rbx), %rax
movq 0x20(%rax), %rdi
jmp 0xaac60
movq %r14, %rdi
callq 0x41ca0
movq %rsp, %rsi
movq %rax, (%rsi)
movq (%rbx), %rax
movq 0x8(%rax), %rdi
jmp 0xaac60
cmpb $0x1, 0x9(%rbx)
jne 0xaac6a
movq %r14, %rdi
callq 0x24b88
jmp 0xaac6a
leaq 0x3a605(%rip), %rsi     # 0xe51ef
movq %r14, %rdi
callq 0x40409
testb %al, %al
je 0xaac88
movq %r14, %rdi
callq 0x41f83
movq %rax, %r12
movq %rdx, %r15
movq %r14, %rdi
callq 0x3fdd2
cmpl $0x1, %eax
je 0xaace5
testl %eax, %eax
jne 0xaad10
movq (%rbx), %rax
movq 0x38(%rax), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0xac2f9
cmpb $0x1, 0x8(%rbx)
jne 0xaac6a
movq (%rbx), %rax
movq 0xb8(%rax), %rdi
jmp 0xaad50
movq %r14, %rdi
callq 0x41ca0
movq %rsp, %rsi
movq %rax, (%rsi)
movq (%rbx), %rax
movq 0x18(%rax), %rdi
movl $0x8, %edx
callq 0x6ec0e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
cmpb $0x1, 0x9(%rbx)
jne 0xaac6a
movq %r14, %rdi
callq 0x24b64
jmp 0xaac6a
leaq 0x51cf3(%rip), %rsi     # 0xfc982
movq %r14, %rdi
callq 0x40409
testb %al, %al
je 0xaac6a
movq %r14, %rdi
callq 0x41f83
movq %rax, %r12
movq %rdx, %r15
movq %r14, %rdi
callq 0x3fdd2
cmpl $0x1, %eax
je 0xaad27
testl %eax, %eax
jne 0xaad6b
movq (%rbx), %rax
movq 0x28(%rax), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0xac2f9
cmpb $0x1, 0x8(%rbx)
jne 0xaac6a
movq (%rbx), %rax
movq 0x98(%rax), %rdi
jmp 0xaad50
movq (%rbx), %rax
movq 0x40(%rax), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0xac2f9
cmpb $0x1, 0x8(%rbx)
jne 0xaac6a
movq (%rbx), %rax
movq 0xc8(%rax), %rdi
jmp 0xaad50
cmpb $0x1, 0x9(%rbx)
jne 0xaac6a
movq %r14, %rdi
callq 0x24b40
jmp 0xaac6a
movq (%rbx), %rax
movq 0x30(%rax), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0xac2f9
cmpb $0x1, 0x8(%rbx)
jne 0xaac6a
movq (%rbx), %rax
movq 0xa8(%rax), %rdi
movq 0x68(%rax), %rcx
movq 0x70(%rax), %r8
movq %r12, %rsi
movq %r15, %rdx
xorl %r9d, %r9d
callq 0xac3b6
jmp 0xaac6a
cmpb $0x1, 0x9(%rbx)
jne 0xaac6a
movq %r14, %rdi
callq 0x24b1c
jmp 0xaac6a
callq 0x24ae3
callq 0x24aaa