// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/csa_visitor.c
// Function: gt_csa_visitor_process_cluster
void gt_csa_visitor_process_cluster(GtNodeVisitor *nv, bool final_cluster)
{
  CSAVisitor *csa_visitor = csa_visitor_cast(nv);
  GT_UNUSED GtFeatureNode *first_feature;
  GtArray *csa_genes;
  GtUword i;

  if (final_cluster) {
    gt_assert(!gt_array_size(csa_visitor->cluster) ||
              !csa_visitor->buffered_feature);
    if (csa_visitor->buffered_feature) {
      gt_array_add(csa_visitor->cluster, csa_visitor->buffered_feature);
      csa_visitor->buffered_feature = NULL;
    }
  }

  if (!gt_array_size(csa_visitor->cluster)) {
    gt_assert(final_cluster);
    return;
  }

  /* compute the consensus spliced alignments */
  first_feature = *(GtFeatureNode**)
                  gt_array_get_first(csa_visitor->cluster);
  csa_genes = gt_csa_variable_strands(gt_array_get_space(csa_visitor->cluster),
                                      gt_array_size(csa_visitor->cluster),
                                      sizeof (GtFeatureNode*),
                                      get_genomic_range,
                                      get_strand, get_exons);

  process_csa_genes(csa_visitor->gt_genome_node_buffer, csa_genes,
                    csa_visitor->gt_csa_source_str);

  for (i = 0; i < gt_array_size(csa_genes); i++)
    gt_csa_gene_delete(*(GtCSAGene**) gt_array_get(csa_genes, i));
  gt_array_delete(csa_genes);

  /* remove the cluster genome nodes */
  for (i = 0; i < gt_array_size(csa_visitor->cluster); i++) {
    gt_genome_node_delete(*(GtGenomeNode**)
                              gt_array_get(csa_visitor->cluster, i));
  }
  gt_array_reset(csa_visitor->cluster);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %esi, %ebx
movq %rdi, %r14
callq 0xda3e8
movq %rax, %rdi
movq %r14, %rsi
callq 0x48fc5
movq %rax, %r14
movq 0x20(%rax), %rdi
callq 0x6f310
testl %ebx, %ebx
je 0xda782
movq 0x28(%r14), %rcx
testq %rax, %rax
je 0xda78c
testq %rcx, %rcx
je 0xda7ae
callq 0x33087
testq %rax, %rax
jne 0xda7c0
callq 0x3304e
testq %rcx, %rcx
je 0xda7ae
movq %r14, %rsi
addq $0x28, %rsi
movq 0x20(%r14), %rdi
movl $0x8, %edx
callq 0x6f240
movq $0x0, 0x28(%r14)
movq 0x20(%r14), %rdi
callq 0x6f310
testq %rax, %rax
je 0xdaf41
movq 0x20(%r14), %rdi
callq 0x6f054
movq 0x20(%r14), %rdi
callq 0x6f21b
movq %rax, %rbx
movq 0x20(%r14), %rdi
callq 0x6f310
leaq 0x7b4(%rip), %rcx       # 0xdaf99
leaq 0x7d7(%rip), %r8        # 0xdafc3
leaq 0x7fa(%rip), %r9        # 0xdafed
movl $0x8, %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf968
testq %rax, %rax
je 0xdaf94
movq %rax, %rbx
movq 0x10(%r14), %rax
movq %rax, 0x68(%rsp)
movq %r14, 0x58(%rsp)
movq 0x60(%r14), %r12
movq %rbx, %rdi
callq 0x6f310
testq %rax, %rax
je 0xdaec1
xorl %esi, %esi
movq %rbx, 0x60(%rsp)
movq %r12, 0x80(%rsp)
movq %rbx, %rdi
movq %rsi, 0x70(%rsp)
callq 0x6f037
testq %r12, %r12
je 0xdaf8f
movq (%rax), %r15
testq %r15, %r15
je 0xdaf8f
movq %r15, %rdi
callq 0xdf6c1
movq %rax, %rbx
movq %rdx, %r14
movq %r15, %rdi
callq 0xdf751
movq (%rax), %rdi
callq 0x415a1
movq %r15, 0x10(%rsp)
movq %rax, %r15
movq 0x10(%rsp), %rdi
callq 0xdf733
movq %r15, %rdi
movq 0x10(%rsp), %r15
leaq 0x31e1e(%rip), %rsi     # 0x10c6c0
movq %rbx, %rdx
movq %r14, %rcx
movl %eax, %r8d
callq 0x3f280
movq %rax, 0x38(%rsp)
movq %rax, %rdi
movq %r12, %rsi
callq 0x3ef41
movq %r15, %rdi
callq 0xdf6ae
testq %rax, %rax
je 0xdae91
xorl %ebx, %ebx
movq %r15, %rdi
movq %rbx, %rsi
callq 0xdf696
testq %rax, %rax
je 0xdaf7b
movq %rax, %r13
movq %rbx, 0x78(%rsp)
movq %rax, %rdi
callq 0xdf94c
movq (%rax), %rdi
callq 0x415a1
movq %rax, %r15
movq %r13, %rdi
callq 0xdf8d9
movq %rax, %rbx
movq %rdx, %r14
movq %r13, %rdi
callq 0xdf889
movq %r15, 0xa0(%rsp)
movq %r15, %rdi
leaq 0xa300(%rip), %rsi      # 0xe4c2a
movq %rbx, %rdx
movq %r14, %rcx
movl %eax, 0x4(%rsp)
movl %eax, %r8d
callq 0x3f280
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
callq 0x3ef41
testq %rbx, %rbx
je 0xdaf80
movq %rbx, 0x40(%rsp)
callq 0x3b728
movq %rax, %rbx
movq %r13, %rdi
callq 0xdf8c6
testq %rax, %rax
je 0xda9d6
xorl %r14d, %r14d
movq %r13, %rdi
movq %r14, %rsi
callq 0xdf8ae
movq (%rax), %r15
movq %r15, %rdi
leaq 0xce0c(%rip), %rsi      # 0xe7794
callq 0x3eedc
testq %rax, %rax
je 0xda9c6
movq %rbx, %rdi
callq 0x3bb86
testq %rax, %rax
je 0xda9ac
movq %rbx, %rdi
movl $0x2c, %esi
callq 0x3b9df
movq %r15, %rdi
leaq 0xcdde(%rip), %rsi      # 0xe7794
callq 0x3eedc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3b7af
incq %r14
movq %r13, %rdi
callq 0xdf8c6
cmpq %rax, %r14
jb 0xda970
movq %rbx, %rdi
callq 0x3bb86
testq %rax, %rax
je 0xda9ff
movq %rbx, %rdi
callq 0x3bb5d
movq 0x40(%rsp), %rdi
leaq 0xcd9d(%rip), %rsi      # 0xe7794
movq %rax, %rdx
callq 0x40229
movq %rbx, %rdi
callq 0x3c87b
movl $0x8, %edi
callq 0x6ef7c
movq %rax, %rbp
movq %r13, %rdi
callq 0xdf8c6
testq %rax, %rax
leaq 0x20(%rsp), %r15
je 0xdada0
xorl %r14d, %r14d
movq %r13, 0x88(%rsp)
movq %rbp, 0x98(%rsp)
movq %r13, %rdi
movq %r14, %rsi
callq 0xdf8ae
testq %rbp, %rbp
je 0xdaf67
movq (%rax), %rbx
testq %rbx, %rbx
je 0xdaf67
cmpl $0x2, 0x4(%rsp)
je 0xdaf6c
movq %r14, 0x90(%rsp)
movl $0x8, %edi
callq 0x6ef7c
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3fcdb
movq %r14, 0x8(%rsp)
movq %r14, %rdi
callq 0x417cf
movq %rbp, %rdi
callq 0x6f310
testq %rax, %rax
je 0xdacba
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %r15, %r14
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x6f310
cmpq %rax, %r13
jae 0xdacc5
movq %rbp, %rdi
movq %r12, %rsi
callq 0x6f037
movq (%rax), %rbp
movq %r15, %rdi
movq %r13, %rsi
callq 0x6f037
movq (%rax), %rbx
movq %rbp, %rdi
callq 0x415e5
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq %rbx, %rdi
callq 0x415e5
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
callq 0x7e09c
cmpl $0x1, %eax
je 0xdac12
testl %eax, %eax
je 0xdab98
cmpl $-0x1, %eax
jne 0xdaf53
movq %r14, %rdi
movq %r14, %r15
leaq 0x48(%rsp), %r14
movq %r14, %rsi
callq 0x7e1b2
testb %al, %al
je 0xdac94
movq %r15, %rdi
movq %r14, %rsi
callq 0x7e261
testb %al, %al
movq 0x8(%rsp), %r15
jne 0xdac8a
movq %rbp, %rdi
callq 0x415e0
movq %rax, %r14
movq %rbx, %rdi
callq 0x415e0
cmpq %rax, %r14
ja 0xdaf71
movq %rbp, %rdi
callq 0x41603
movq %rax, %r14
movq %rbx, %rdi
callq 0x41603
cmpq %rax, %r14
jb 0xdac5b
jmp 0xdaf76
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
callq 0x7e1b2
testb %al, %al
je 0xdaf58
movq %rbp, %rdi
callq 0x3f954
testb %al, %al
je 0xdabe2
movq %rbx, %rdi
callq 0x3f954
testb %al, %al
je 0xdabe2
movq %rbp, %rdi
callq 0x3fc4f
movss %xmm0, 0x34(%rsp)
movq %rbx, %rdi
callq 0x3fc4f
ucomiss 0x34(%rsp), %xmm0
ja 0xdabfa
movq %rbp, %rdi
callq 0x3f954
testb %al, %al
jne 0xdac0a
movq %rbx, %rdi
callq 0x3f954
testb %al, %al
je 0xdac0a
movq %rbx, %rdi
callq 0x3fc4f
movq %rbp, %rdi
callq 0x3f968
incq %r13
jmp 0xdac9c
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
callq 0x7e1b2
testb %al, %al
je 0xdaf5d
movq %rbp, %rdi
callq 0x415e0
movq %rax, %r14
movq %rbx, %rdi
callq 0x415e0
cmpq %rax, %r14
ja 0xdaf62
movq %rbx, %rdi
callq 0x41603
movq %rax, %r14
movq %rbp, %rdi
callq 0x41603
cmpq %rax, %r14
jbe 0xdac8a
movq %rbx, %rdi
callq 0x41603
movq %rbp, %rdi
movq %rax, %rsi
callq 0x40184
movq %rbx, %rdi
callq 0x3f954
testb %al, %al
je 0xdac8a
movq %rbx, %rdi
callq 0x3fc4f
movq %rbp, %rdi
callq 0x3f968
incq %r13
leaq 0x20(%rsp), %r14
jmp 0xdac9c
movq %r15, %r14
movq 0x8(%rsp), %r15
incq %r12
movq 0x98(%rsp), %rbp
movq %rbp, %rdi
callq 0x6f310
cmpq %rax, %r12
jb 0xdaab4
jmp 0xdacc5
xorl %r13d, %r13d
movq %r15, %r14
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x6f310
cmpq %rax, %r13
movq 0x80(%rsp), %r12
jae 0xdad71
movq %r15, %rdi
movq %r13, %rsi
callq 0x6f037
movq (%rax), %rbx
movq %rbx, %rdi
callq 0x415e5
movq %rdx, %rcx
movq 0xa0(%rsp), %rdi
leaq 0x21bec(%rip), %rsi     # 0xfc8f2
movq %rax, %rdx
movl 0x4(%rsp), %r8d
callq 0x3f280
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
callq 0x3f954
testb %al, %al
je 0xdad3e
movq 0x18(%rsp), %r14
movq %rbx, %rdi
callq 0x3fc4f
movq %r14, %rdi
leaq 0x20(%rsp), %r14
callq 0x3f968
movq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x3ef41
movl $0x8, %edx
movq %rbp, %rdi
leaq 0x18(%rsp), %rsi
callq 0x6f240
incq %r13
movq %r15, %rdi
callq 0x6f310
cmpq %rax, %r13
jb 0xdacde
movq %r15, %rdi
movq %r14, %r15
callq 0x6f768
movq 0x90(%rsp), %r14
incq %r14
movq 0x88(%rsp), %r13
movq %r13, %rdi
callq 0xdf8c6
cmpq %rax, %r14
jb 0xdaa3d
movl $0x10, %edi
callq 0x6ef7c
testq %rbp, %rbp
je 0xdaf8a
movq %rax, %rbx
movq %rbp, %rdi
callq 0x6f310
testq %rax, %rax
je 0xdae06
movq %r15, %r14
xorl %r15d, %r15d
movq %rbp, %rdi
movq %r15, %rsi
callq 0x6f037
movq (%rax), %rdi
callq 0x415e5
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movl $0x10, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6f240
incq %r15
movq %rbp, %rdi
callq 0x6f310
cmpq %rax, %r15
jb 0xdadc9
movq %rbp, %r15
movq %rbx, %rdi
callq 0x7eb8d
movl %eax, %ebp
movq %rbx, %rdi
callq 0x6f768
testb %bpl, %bpl
movq 0x40(%rsp), %r14
je 0xdaf85
movq %r15, %rdi
callq 0x6f310
testq %rax, %rax
je 0xdae5e
xorl %ebx, %ebx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6f037
movq (%rax), %rsi
movq %r14, %rdi
callq 0x3f6eb
incq %rbx
movq %r15, %rdi
callq 0x6f310
cmpq %rax, %rbx
jb 0xdae38
movq %r15, %rdi
callq 0x6f768
movq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x3f6eb
movq 0x78(%rsp), %rbx
incq %rbx
movq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xdf6ae
cmpq %rax, %rbx
jb 0xda8d3
movq 0x68(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x7c47f
movq 0x70(%rsp), %r14
incq %r14
movq 0x60(%rsp), %rbx
movq %rbx, %rdi
callq 0x6f310
movq %r14, %rsi
cmpq %rax, %r14
jb 0xda841
movq %rbx, %rdi
callq 0x6f310
testq %rax, %rax
movq %rbx, %r14
je 0xdaef6
xorl %ebx, %ebx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6f037
movq (%rax), %rdi
callq 0xdf5d1
incq %rbx
movq %r14, %rdi
callq 0x6f310
cmpq %rax, %rbx
jb 0xdaed3
movq %r14, %rdi
callq 0x6f768
movq 0x58(%rsp), %r14
movq 0x20(%r14), %rdi
callq 0x6f310
testq %rax, %rax
je 0xdaf38
xorl %ebx, %ebx
movq 0x20(%r14), %rdi
movq %rbx, %rsi
callq 0x6f037
movq (%rax), %rdi
callq 0x4210c
incq %rbx
movq 0x20(%r14), %rdi
callq 0x6f310
cmpq %rax, %rbx
jb 0xdaf13
movq 0x20(%r14), %rdi
callq 0x6f349
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3324f
callq 0x331a4
callq 0x33132
callq 0x3316b
callq 0x330f9
callq 0x33288
callq 0x33216
callq 0x331dd
callq 0x3336c
callq 0x33333
callq 0x332c1
callq 0x332fa
callq 0x330c0
callq 0x333a5