// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/select_visitor.c
// Function: select_visitor_feature_node
static int select_visitor_feature_node(GtNodeVisitor *nv,
                                       GtFeatureNode *fn,
                                       GtError *err)
{
  GtSelectVisitor *fv;
  bool select_node = false;
  int had_err = 0;
  gt_error_check(err);
  fv = select_visitor_cast(nv);
  fv->current_feature++;
  if ((!gt_str_length(fv->seqid) || /* no seqid was specified or seqids are
                                       equal */
       !gt_str_cmp(fv->seqid, gt_genome_node_get_seqid((GtGenomeNode*) fn))) &&
      (!gt_str_length(fv->source) || /* no source was specified or sources are
                                        equal */
       !strcmp(gt_str_get(fv->source), gt_feature_node_get_source(fn)))) {
    GtRange range = gt_genome_node_get_range((GtGenomeNode*) fn);
    /* enforce maximum gene length */
    /* XXX: we (spuriously) assume that genes are always root nodes */
    if (fn && gt_feature_node_has_type(fn, gt_ft_gene)) {
      if (fv->max_gene_length != GT_UNDEF_UWORD &&
          gt_range_length(&range) > fv->max_gene_length) {
        select_node = true;
      }
      else if (fv->max_gene_num != GT_UNDEF_UWORD &&
               fv->gene_num >= fv->max_gene_num) {
        select_node = true;
      }
      else if (fv->min_gene_score != GT_UNDEF_DOUBLE &&
               gt_feature_node_get_score(fn) < fv->min_gene_score) {
        select_node = true;
      }
      else if (fv->max_gene_score != GT_UNDEF_DOUBLE &&
               gt_feature_node_get_score(fn) > fv->max_gene_score) {
        select_node = true;
      }
      else if (fv->feature_num != GT_UNDEF_UWORD &&
               fv->feature_num != fv->current_feature) {
        select_node = true;
      }
      if (!select_node)
        fv->gene_num++; /* gene passed filter */
    }
  }
  else
    select_node = true;

  if (!select_node)
    select_node = filter_contain_range(fn, fv->contain_range);

  if (!select_node)
    select_node = filter_overlap_range(fn, fv->overlap_range);

  if (!select_node)
    select_node = filter_strand(fn, fv->strand);

  if (!select_node)
    select_node = filter_targetstrand(fn, fv->targetstrand);

  if (!select_node)
    select_node = filter_has_CDS(fn, fv->has_CDS);

  if (!select_node) {
    select_node = filter_min_average_ssp(fn, fv->min_average_splice_site_prob,
                                         fv->single_intron_factor);
  }

  if (fv->is_lua && !select_node)
    had_err = filter_lua(fv->script_filters, fn, fv->select_logic,
                         &select_node, err);

  if (select_node && !had_err)
    fv->drophandler((GtGenomeNode*) fn, fv->data, err);

  if (select_node)
    gt_genome_node_delete((GtGenomeNode*) fn);
  else
    gt_queue_add(fv->node_buffer, fn);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r14
testq %rdx, %rdx
je 0x1722b2
movq %r15, %rdi
callq 0xfcc32
testb %al, %al
jne 0x1726fa
callq 0x172140
movq %rax, %rdi
movq %r14, %rsi
callq 0x1630b1
movq %rax, %r12
incq 0x70(%rax)
movq 0x18(%rax), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x1722f9
movq 0x18(%r12), %r14
movq %r13, %rdi
callq 0x144635
movq %r14, %rdi
movq %rax, %rsi
callq 0x11b146
movb $0x1, %bl
testl %eax, %eax
jne 0x172598
movq 0x20(%r12), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x172332
movq 0x20(%r12), %rdi
callq 0x11b0a1
movq %rax, %r14
movq %r13, %rdi
callq 0x142ab4
movq %r14, %rdi
movq %rax, %rsi
callq 0x17a40
movb $0x1, %bl
testl %eax, %eax
jne 0x172598
movq %r13, %rdi
callq 0x144679
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
testq %r13, %r13
je 0x1726ff
leaq 0x26b3f8(%rip), %rsi    # 0x3dd74b
movq %r13, %rdi
callq 0x142b18
testb %al, %al
je 0x172417
cmpq $-0x1, 0x58(%r12)
je 0x17237e
movq %rsp, %rdi
callq 0x112233
cmpq 0x58(%r12), %rax
ja 0x172596
movq 0x68(%r12), %rax
cmpq $-0x1, %rax
je 0x172394
cmpq %rax, 0x60(%r12)
jae 0x172596
movsd 0x80(%r12), %xmm0
ucomisd 0x1d596a(%rip), %xmm0   # 0x347d10
jne 0x1723aa
jnp 0x1723ca
movq %r13, %rdi
callq 0x142cc3
cvtss2sd %xmm0, %xmm0
movsd 0x80(%r12), %xmm1
ucomisd %xmm0, %xmm1
ja 0x172596
movsd 0x88(%r12), %xmm0
ucomisd 0x1d5934(%rip), %xmm0   # 0x347d10
jne 0x1723e0
jnp 0x1723fc
movq %r13, %rdi
callq 0x142cc3
cvtss2sd %xmm0, %xmm0
ucomisd 0x88(%r12), %xmm0
ja 0x172596
movq 0x78(%r12), %rax
cmpq $-0x1, %rax
je 0x172412
cmpq 0x70(%r12), %rax
jne 0x172596
incq 0x60(%r12)
movq 0x28(%r12), %rbx
movups 0x28(%r12), %xmm0
movaps %xmm0, (%rsp)
movq %r13, %rdi
callq 0x144679
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
cmpq $-0x1, %rbx
je 0x172453
movq %rsp, %rdi
leaq 0x28(%rsp), %rsi
callq 0x1122f5
testb %al, %al
je 0x172596
movq 0x38(%r12), %rbx
movups 0x38(%r12), %xmm0
movaps %xmm0, (%rsp)
movq %r13, %rdi
callq 0x144679
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
cmpq $-0x1, %rbx
je 0x17248f
movq %rsp, %rdi
leaq 0x28(%rsp), %rsi
callq 0x112246
testb %al, %al
je 0x172596
movl 0x48(%r12), %ebp
cmpl $0x4, %ebp
je 0x1724ab
movq %r13, %rdi
callq 0x1424d6
movb $0x1, %bl
cmpl %ebp, %eax
jne 0x172598
movl 0x4c(%r12), %ebp
cmpl $0x4, %ebp
je 0x17250e
leaq 0x1da45a(%rip), %rsi    # 0x34c916
movq %r13, %rdi
callq 0x141f50
testq %rax, %rax
je 0x17250e
leaq 0x257ca0(%rip), %r9     # 0x3ca170
movq %rsp, %rsi
leaq 0x28(%rsp), %r8
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
pushq $0x0
pushq $0x0
callq 0x147267
addq $0x10, %rsp
testl %eax, %eax
jne 0x172741
cmpq $0x1, (%rsp)
jne 0x17250e
movl 0x28(%rsp), %eax
cmpl $0x4, %eax
je 0x17250e
movb $0x1, %bl
cmpl %ebp, %eax
jne 0x172598
cmpb $0x1, 0x50(%r12)
jne 0x172524
movq %r13, %rdi
callq 0x1433f0
movb $0x1, %bl
testb %al, %al
je 0x172598
movsd 0x90(%r12), %xmm0
movsd %xmm0, 0x20(%rsp)
ucomisd 0x1d57d4(%rip), %xmm0   # 0x347d10
jne 0x172544
jnp 0x1726f3
movsd 0x98(%r12), %xmm0
movsd %xmm0, 0x18(%rsp)
movq %r13, %rdi
callq 0x14348a
testb %al, %al
je 0x1726f3
movq %rsp, %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x143496
cmpq $0x2, (%r14)
movsd 0x20(%rsp), %xmm1
ja 0x1726e7
movsd 0x18(%rsp), %xmm2
mulsd %xmm1, %xmm2
ucomisd %xmm0, %xmm2
jbe 0x1726e7
movb $0x1, %bl
xorl %ebp, %ebp
cmpb $0x1, 0xac(%r12)
jne 0x172697
testb %bl, %bl
jne 0x172697
testq %r13, %r13
je 0x172737
movq %r12, %rax
movq 0xb0(%r12), %r12
testq %r12, %r12
je 0x172737
movq %r15, %r14
movq %r13, %r15
movq %rax, 0x18(%rsp)
movl 0xa8(%rax), %eax
movl %eax, 0x20(%rsp)
testq %r14, %r14
je 0x1725f8
movq %r14, %rdi
callq 0xfcc32
testb %al, %al
jne 0x17273c
xorl %r13d, %r13d
movq %r12, %rdi
callq 0xd24e0
cmpq %rax, %r13
jae 0x172686
movq %r12, %rdi
movq %r13, %rsi
callq 0xd2207
movq (%rax), %rdi
movq %r15, %rsi
movq %rsp, %rdx
movq %r14, %rcx
callq 0x171d45
movl %eax, %ebp
testl %eax, %eax
sete %al
testq %r13, %r13
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x17263d
movb (%rsp), %bl
jmp 0x172670
movl %ebp, %eax
movl 0x20(%rsp), %ecx
orl %ecx, %eax
je 0x172661
cmpl $0x1, %ecx
jne 0x172670
testl %ebp, %ebp
jne 0x172670
xorl %eax, %eax
testb $0x1, %bl
je 0x17268a
movb $0x1, %bl
testb $0x1, (%rsp)
jne 0x172670
jmp 0x17268a
movb $0x1, %al
testb $0x1, %bl
jne 0x17268a
testb $0x1, (%rsp)
jne 0x17268a
xorl %ebx, %ebx
incq %r13
testl %ebp, %ebp
je 0x1725fb
testb $0x1, %bl
movq %r15, %r13
movq 0x18(%rsp), %r12
jne 0x1726bf
jmp 0x1726c9
xorl %ebp, %ebp
jmp 0x17268c
movl %eax, %ebx
movq %r15, %r13
movq %r14, %r15
movq 0x18(%rsp), %r12
testl %ebp, %ebp
jne 0x1726ba
testb $0x1, %bl
je 0x1726ba
movq 0xc0(%r12), %rsi
movq %r13, %rdi
movq %r15, %rdx
callq *0xb8(%r12)
xorl %ebp, %ebp
jmp 0x1726bf
testb $0x1, %bl
je 0x1726c9
movq %r13, %rdi
callq 0x1451a0
jmp 0x1726d6
movq 0x10(%r12), %rdi
movq %r13, %rsi
callq 0x10d65b
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
ucomisd %xmm0, %xmm1
movb $0x1, %bl
ja 0x172598
xorl %ebx, %ebx
jmp 0x172598
callq 0x53a03
movq 0x34687a(%rip), %rax    # 0x4b8f80
movq (%rax), %rdi
leaq 0x1d2903(%rip), %rsi    # 0x345013
leaq 0x26b3b9(%rip), %rdx    # 0x3ddad0
leaq 0x21fe50(%rip), %rcx    # 0x39256e
leaq 0x21fdc0(%rip), %r8     # 0x3924e5
movl $0x6b, %r9d
xorl %eax, %eax
callq 0x17ab0
callq 0x173b0
callq 0x53a75
callq 0x53aae
callq 0x53a3c