// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/select_visitor.c
// Function: gt_select_visitor_new
GtNodeVisitor* gt_select_visitor_new(GtStr *seqid,
                                     GtStr *source,
                                     const GtRange *contain_range,
                                     const GtRange *overlap_range,
                                     GtStrand strand, GtStrand targetstrand,
                                     bool has_CDS,
                                     GtUword max_gene_length,
                                     GtUword max_gene_num,
                                     double min_gene_score,
                                     double max_gene_score,
                                     double min_average_splice_site_prob,
                                     GtUword feature_num,
                                     GtStrArray *select_files,
                                     GtStr *select_logic,
                                     GtError *err)
{
  GtNodeVisitor *nv = gt_node_visitor_create(gt_select_visitor_class());
  GtSelectVisitor *select_visitor = select_visitor_cast(nv);
  select_visitor->node_buffer = gt_queue_new();
  select_visitor->seqid = gt_str_ref(seqid);
  select_visitor->source = gt_str_ref(source);
  if (contain_range)
    select_visitor->contain_range = *contain_range;
  else {
    select_visitor->contain_range.start = GT_UNDEF_UWORD;
    select_visitor->contain_range.end   = GT_UNDEF_UWORD;
  }
  if (overlap_range)
    select_visitor->overlap_range = *overlap_range;
  else {
    select_visitor->overlap_range.start = GT_UNDEF_UWORD;
    select_visitor->overlap_range.end   = GT_UNDEF_UWORD;
  }
  select_visitor->strand = strand;
  select_visitor->targetstrand = targetstrand;
  select_visitor->has_CDS = has_CDS;
  select_visitor->max_gene_length = max_gene_length;
  select_visitor->gene_num = 0;
  select_visitor->max_gene_num = max_gene_num;
  select_visitor->min_gene_score = min_gene_score;
  select_visitor->max_gene_score = max_gene_score;
  select_visitor->min_average_splice_site_prob = min_average_splice_site_prob;
  select_visitor->single_intron_factor = 1.0;
  select_visitor->feature_num = feature_num;
  select_visitor->select_files = select_files;
  select_visitor->is_lua = false;

  if (gt_str_array_size(select_visitor->select_files) > 0) {
    int i;
    select_visitor->is_lua = true;
    select_visitor->script_filters = gt_array_new(sizeof (GtScriptFilter*));
    for (i = 0; i < gt_str_array_size(select_visitor->select_files); i++) {
      GtScriptFilter *sf;
      sf = gt_script_filter_new_unsafe(
                                  gt_str_array_get(select_visitor->select_files,
                                                   i),
                                err);
      if (!sf) {
        gt_node_visitor_delete(nv);
        return NULL;
        break;
      } else {
        gt_array_add(select_visitor->script_filters, sf);
      }
    }
  }
  if (strcmp(gt_str_get(select_logic), "AND") == 0) {
    select_visitor->select_logic = GT_SELECT_AND;
  } else {
    select_visitor->select_logic = GT_SELECT_OR;
  }
  return nv;
}

// Assembly:
subq $0x78, %rsp
movq 0xb0(%rsp), %rax
movq 0xa8(%rsp), %rax
movq 0xa0(%rsp), %rax
movq 0x98(%rsp), %rax
movq 0x90(%rsp), %rax
movq 0x88(%rsp), %rax
movb 0x80(%rsp), %al
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq %rdx, 0x58(%rsp)
movq %rcx, 0x50(%rsp)
movl %r8d, 0x4c(%rsp)
movl %r9d, 0x48(%rsp)
andb $0x1, %al
movb %al, 0x47(%rsp)
movsd %xmm0, 0x38(%rsp)
movsd %xmm1, 0x30(%rsp)
movsd %xmm2, 0x28(%rsp)
callq 0x1d2dc0
movq %rax, %rdi
callq 0x1b22c0
movq %rax, 0x20(%rsp)
callq 0x1d2dc0
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x1b2350
movq %rax, 0x18(%rsp)
callq 0xfd150
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x68(%rsp), %rdi
callq 0x11e360
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x60(%rsp), %rdi
callq 0x11e360
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x20(%rax)
cmpq $0x0, 0x58(%rsp)
je 0x1d391a
movq 0x18(%rsp), %rax
movq 0x58(%rsp), %rcx
movq (%rcx), %rdx
movq %rdx, 0x28(%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x30(%rax)
jmp 0x1d3934
movq 0x18(%rsp), %rax
movq $-0x1, 0x28(%rax)
movq 0x18(%rsp), %rax
movq $-0x1, 0x30(%rax)
cmpq $0x0, 0x50(%rsp)
je 0x1d3957
movq 0x18(%rsp), %rax
movq 0x50(%rsp), %rcx
movq (%rcx), %rdx
movq %rdx, 0x38(%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x40(%rax)
jmp 0x1d3971
movq 0x18(%rsp), %rax
movq $-0x1, 0x38(%rax)
movq 0x18(%rsp), %rax
movq $-0x1, 0x40(%rax)
movl 0x4c(%rsp), %ecx
movq 0x18(%rsp), %rax
movl %ecx, 0x48(%rax)
movl 0x48(%rsp), %ecx
movq 0x18(%rsp), %rax
movl %ecx, 0x4c(%rax)
movb 0x47(%rsp), %cl
movq 0x18(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x50(%rax)
movq 0x88(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x58(%rax)
movq 0x18(%rsp), %rax
movq $0x0, 0x60(%rax)
movq 0x90(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x68(%rax)
movsd 0x38(%rsp), %xmm0
movq 0x18(%rsp), %rax
movsd %xmm0, 0x80(%rax)
movsd 0x30(%rsp), %xmm0
movq 0x18(%rsp), %rax
movsd %xmm0, 0x88(%rax)
movsd 0x28(%rsp), %xmm0
movq 0x18(%rsp), %rax
movsd %xmm0, 0x90(%rax)
movq 0x18(%rsp), %rax
movsd 0x343833(%rip), %xmm0   # 0x517240
movsd %xmm0, 0x98(%rax)
movq 0x98(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x78(%rax)
movq 0xa0(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0xa0(%rax)
movq 0x18(%rsp), %rax
movb $0x0, 0xac(%rax)
movq 0x18(%rsp), %rax
movq 0xa0(%rax), %rdi
callq 0x11fcc0
cmpq $0x0, %rax
jbe 0x1d3b2b
movq 0x18(%rsp), %rax
movb $0x1, 0xac(%rax)
movl $0x8, %edi
callq 0x80990
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0xb0(%rax)
movl $0x0, 0x14(%rsp)
movslq 0x14(%rsp), %rax
movq %rax, (%rsp)
movq 0x18(%rsp), %rax
movq 0xa0(%rax), %rdi
callq 0x11fcc0
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
jae 0x1d3b29
movq 0x18(%rsp), %rax
movq 0xa0(%rax), %rdi
movslq 0x14(%rsp), %rsi
callq 0x11f8c0
movq %rax, %rdi
movq 0xb0(%rsp), %rsi
callq 0x1d1990
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x1d3afc
movq 0x20(%rsp), %rdi
callq 0x1b29d0
movq $0x0, 0x70(%rsp)
jmp 0x1d3b76
movq 0x18(%rsp), %rax
movq 0xb0(%rax), %rdi
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
callq 0x81100
jmp 0x1d3b19
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x1d3a8e
jmp 0x1d3b2b
movq 0xa8(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x354745(%rip), %rsi    # 0x528287
callq 0x19980
cmpl $0x0, %eax
jne 0x1d3b5d
movq 0x18(%rsp), %rax
movl $0x0, 0xa8(%rax)
jmp 0x1d3b6c
movq 0x18(%rsp), %rax
movl $0x1, 0xa8(%rax)
movq 0x20(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
addq $0x78, %rsp
retq