// File: /workspace/github_c_makefile_star2_O2/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 0xc2550
movq %rax, %rdi
movq %r14, %rsi
callq 0x2603e
movq %rax, %rsi
testl %ebx, %ebx
movq %rax, 0x8(%rsp)
je 0xc29d9
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x4b988
movq 0x8(%rsp), %rsi
movq 0x28(%rsi), %rcx
testq %rax, %rax
je 0xc29b5
testq %rcx, %rcx
je 0xc29d9
movq 0x6b62d(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x76d1(%rip), %rsi      # 0xca066
leaq 0x31bdf(%rip), %rdx     # 0xf457b
leaq 0x31c1f(%rip), %rcx     # 0xf45c2
leaq 0x31c37(%rip), %r8      # 0xf45e1
movl $0x1e1, %r9d            # imm = 0x1E1
jmp 0xc32b3
testq %rcx, %rcx
je 0xc29d9
addq $0x28, %rsi
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rdi
pushq $0x8
popq %rdx
callq 0x4b801
movq 0x8(%rsp), %rsi
andq $0x0, 0x28(%rsi)
movq %rsi, %r14
movq 0x20(%rsi), %rdi
callq 0x4b988
testq %rax, %rax
je 0xc3089
movq 0x20(%r14), %rdi
callq 0x4b4dc
movq 0x20(%r14), %rdi
callq 0x4b7ab
movq %rax, %rbx
movq 0x20(%r14), %rdi
callq 0x4b988
leaq 0x9cc(%rip), %rcx       # 0xc33df
leaq 0xa22(%rip), %r8        # 0xc343c
leaq 0xa78(%rip), %r9        # 0xc3499
pushq $0x8
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0xc8938
testq %rax, %rax
je 0xc33ae
movq %rax, %r15
movq 0x10(%r14), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%r14), %r12
xorl %ebx, %ebx
movq %r15, 0x68(%rsp)
movq %r12, 0x58(%rsp)
movq %r15, %rdi
callq 0x4b988
cmpq %rax, %rbx
jae 0xc30c2
movq %r15, %rdi
movq %rbx, 0x70(%rsp)
movq %rbx, %rsi
callq 0x4b48e
testq %r12, %r12
je 0xc337d
movq (%rax), %r13
testq %r13, %r13
je 0xc337d
movq %r13, %rdi
callq 0xc8491
movq %rax, %rbx
movq %rdx, %r14
movq %r13, %rdi
callq 0xc8575
movq (%rax), %rdi
callq 0x1c31a
movq %rax, %r15
movq %r13, 0x78(%rsp)
movq %r13, %rdi
callq 0xc8526
movq %r15, %rdi
leaq 0x32e8e(%rip), %rsi     # 0xf5950
movq %rbx, %rdx
movq %r14, %rcx
movl %eax, %r8d
callq 0x18cbb
movq %rax, 0x48(%rsp)
movq %rax, %rdi
movq %r12, %rsi
callq 0x188ae
xorl %r14d, %r14d
movq 0x78(%rsp), %rbx
movq %rbx, %rdi
callq 0xc844d
cmpq %rax, %r14
jae 0xc3068
movq %rbx, %rdi
movq %r14, 0x80(%rsp)
movq %r14, %rsi
callq 0xc8404
testq %rax, %rax
je 0xc32bf
movq %rax, %r13
movq %rax, %rdi
callq 0xc88ec
movq (%rax), %rdi
callq 0x1c31a
movq %rax, %r15
movq %r13, %rdi
callq 0xc8856
movq %rax, %rbx
movq %rdx, %r14
movq %r13, %rdi
callq 0xc8773
movq %r15, 0xa0(%rsp)
movq %r15, %rdi
leaq 0xb0d7(%rip), %rsi      # 0xcdc2a
movq %rbx, %rdx
movq %r14, %rcx
movl %eax, 0x14(%rsp)
movl %eax, %r8d
callq 0x18cbb
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
callq 0x188ae
testq %rbx, %rbx
je 0xc32ed
movq %rbx, 0x50(%rsp)
callq 0x13d5c
movq %rax, %rbx
xorl %r14d, %r14d
movq %r13, %rdi
callq 0xc8812
cmpq %rax, %r14
jae 0xc2bf2
movq %r13, %rdi
movq %r14, %rsi
callq 0xc87c9
movq (%rax), %r15
movq %r15, %rdi
leaq 0xdbd3(%rip), %rsi      # 0xd0784
callq 0x18818
testq %rax, %rax
je 0xc2bed
movq %rbx, %rdi
callq 0x14461
testq %rax, %rax
je 0xc2bd3
movq %rbx, %rdi
pushq $0x2c
popq %rsi
callq 0x140b1
movq %r15, %rdi
leaq 0xdba7(%rip), %rsi      # 0xd0784
callq 0x18818
movq %rbx, %rdi
movq %rax, %rsi
callq 0x13dd3
incq %r14
jmp 0xc2b8c
movq %rbx, %rdi
callq 0x14461
testq %rax, %rax
je 0xc2c1b
movq %rbx, %rdi
callq 0x143d2
movq 0x50(%rsp), %rdi
leaq 0xdb71(%rip), %rsi      # 0xd0784
movq %rax, %rdx
callq 0x1a57d
movq %rbx, %rdi
callq 0x152db
pushq $0x8
popq %rdi
callq 0x4b380
movq %rax, %r15
xorl %ebp, %ebp
leaq 0x38(%rsp), %r14
movq %r13, 0x88(%rsp)
movq %rax, 0x98(%rsp)
movq %r13, %rdi
callq 0xc8812
cmpq %rax, %rbp
jae 0xc2f9f
movq %r13, %rdi
movq %rbp, %rsi
callq 0xc87c9
testq %r15, %r15
je 0xc3259
movq (%rax), %rbx
testq %rbx, %rbx
je 0xc3259
cmpl $0x2, 0x14(%rsp)
je 0xc3287
movq %rbp, 0x90(%rsp)
pushq $0x8
popq %rdi
callq 0x4b380
movq %rax, %rbp
movq %rbx, %rdi
movq %rax, %rsi
callq 0x19dd8
movq %rbp, %rdi
callq 0x1c752
xorl %r13d, %r13d
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x4b988
cmpq %rax, %r12
jae 0xc2ee4
movq %rbp, %rdi
callq 0x4b988
cmpq %rax, %r13
jae 0xc2ee4
movq %r15, %rdi
movq %r12, %rsi
callq 0x4b48e
movq (%rax), %rbx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x4b48e
movq (%rax), %r15
movq %rbx, %rdi
callq 0x1c3c4
movq %rax, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq %r15, %rdi
callq 0x1c3c4
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %r14, %rdi
leaq 0x28(%rsp), %rsi
callq 0x5cec8
cmpl $0x1, %eax
je 0xc2e54
testl %eax, %eax
je 0xc2dda
movq %r12, 0x18(%rsp)
cmpl $-0x1, %eax
leaq 0x28(%rsp), %rax
jne 0xc3136
movq %r14, %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0x5d0a4
testb %al, %al
je 0xc2dd0
movq %r14, %rdi
leaq 0x28(%rsp), %rsi
callq 0x5d1b5
testb %al, %al
jne 0xc2dca
movq %rbx, %rdi
callq 0x1c3bf
movq %rax, %r14
movq %r15, %rdi
callq 0x1c3bf
cmpq %rax, %r14
ja 0xc31fa
movq %rbx, %rdi
callq 0x1c415
movq %rax, %r14
movq %r15, %rdi
callq 0x1c415
cmpq %rax, %r14
jae 0xc322b
movq %r15, %rdi
callq 0x1c415
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1a43f
movq %r15, %rdi
callq 0x195ce
testb %al, %al
je 0xc2dca
movq %r15, %rdi
callq 0x19c2e
movq %rbx, %rdi
callq 0x19615
incq %r13
movq %r12, %r14
movq 0x18(%rsp), %r12
jmp 0xc2ed4
movq %r14, %rdi
leaq 0x28(%rsp), %rsi
callq 0x5d0a4
testb %al, %al
je 0xc3167
movq %rbx, %rdi
callq 0x195ce
testb %al, %al
je 0xc2e24
movq %r15, %rdi
callq 0x195ce
testb %al, %al
je 0xc2e24
movq %rbx, %rdi
callq 0x19c2e
movss %xmm0, 0x18(%rsp)
movq %r15, %rdi
callq 0x19c2e
ucomiss 0x18(%rsp), %xmm0
ja 0xc2e3c
movq %rbx, %rdi
callq 0x195ce
testb %al, %al
jne 0xc2e4c
movq %r15, %rdi
callq 0x195ce
testb %al, %al
je 0xc2e4c
movq %r15, %rdi
callq 0x19c2e
movq %rbx, %rdi
callq 0x19615
incq %r13
jmp 0xc2ed4
movq %r14, %rdi
leaq 0x28(%rsp), %rsi
callq 0x5d0a4
testb %al, %al
je 0xc3198
movq %rbx, %rdi
callq 0x1c3bf
movq %rax, %r14
movq %r15, %rdi
callq 0x1c3bf
cmpq %rax, %r14
ja 0xc31c9
movq %r15, %rdi
callq 0x1c415
movq %rax, %r14
movq %rbx, %rdi
callq 0x1c415
cmpq %rax, %r14
jbe 0xc2ecc
movq %r15, %rdi
callq 0x1c415
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1a43f
movq %r15, %rdi
callq 0x195ce
testb %al, %al
je 0xc2ecc
movq %r15, %rdi
callq 0x19c2e
movq %rbx, %rdi
callq 0x19615
incq %r13
leaq 0x38(%rsp), %r14
incq %r12
movq 0x98(%rsp), %r15
jmp 0xc2cad
movq 0x58(%rsp), %r12
movq %rbp, %rdi
callq 0x4b988
cmpq %rax, %r13
jae 0xc2f7f
movq %rbp, %rdi
movq %r13, %rsi
callq 0x4b48e
movq (%rax), %rbx
movq %rbx, %rdi
callq 0x1c3c4
movq %rdx, %rcx
movq 0xa0(%rsp), %rdi
leaq 0x22cfc(%rip), %rsi     # 0xe5c1e
movq %rax, %rdx
movl 0x14(%rsp), %r8d
callq 0x18cbb
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
callq 0x195ce
testb %al, %al
je 0xc2f5a
movq 0x20(%rsp), %r14
movq %rbx, %rdi
callq 0x19c2e
movq %r14, %rdi
leaq 0x38(%rsp), %r14
callq 0x19615
movq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x188ae
movq %r15, %rdi
leaq 0x20(%rsp), %rsi
pushq $0x8
popq %rdx
callq 0x4b801
incq %r13
jmp 0xc2ee9
movq %rbp, %rdi
callq 0x4c19d
movq 0x90(%rsp), %rbp
incq %rbp
movq 0x88(%rsp), %r13
jmp 0xc2c45
movq %r14, %rbp
pushq $0x10
popq %rdi
callq 0x4b380
testq %r15, %r15
movq 0x50(%rsp), %r14
je 0xc331b
movq %rax, %rbx
movq %r15, %r13
xorl %r15d, %r15d
movq %r13, %rdi
callq 0x4b988
cmpq %rax, %r15
jae 0xc2ffe
movq %r13, %rdi
movq %r15, %rsi
callq 0x4b48e
movq (%rax), %rdi
callq 0x1c3c4
movq %rax, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
pushq $0x10
popq %rdx
callq 0x4b801
incq %r15
jmp 0xc2fc1
movq %rbx, %rdi
callq 0x5dd6d
movl %eax, %ebp
movq %rbx, %rdi
callq 0x4c19d
testb %bpl, %bpl
je 0xc334c
xorl %ebx, %ebx
movq %r13, %rdi
callq 0x4b988
cmpq %rax, %rbx
jae 0xc3043
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4b48e
movq (%rax), %rsi
movq %r14, %rdi
callq 0x19245
incq %rbx
jmp 0xc301b
movq %r13, %rdi
callq 0x4c19d
movq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x19245
movq 0x80(%rsp), %r14
incq %r14
jmp 0xc2ae3
movq 0x60(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x5b055
movq 0x70(%rsp), %rbx
incq %rbx
movq 0x68(%rsp), %r15
jmp 0xc2a54
testb %bl, %bl
jne 0xc3124
movq 0x6af20(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6fc4(%rip), %rsi      # 0xca066
leaq 0x31553(%rip), %rdx     # 0xf45fc
leaq 0x31512(%rip), %rcx     # 0xf45c2
leaq 0x3152a(%rip), %r8      # 0xf45e1
movl $0x1e9, %r9d            # imm = 0x1E9
jmp 0xc32b3
xorl %ebx, %ebx
movq %r15, %rdi
callq 0x4b988
cmpq %rax, %rbx
jae 0xc30e9
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4b48e
movq (%rax), %rdi
callq 0xc82fb
incq %rbx
jmp 0xc30c4
movq %r15, %rdi
callq 0x4c19d
xorl %ebx, %ebx
movq 0x8(%rsp), %r14
movq 0x20(%r14), %rdi
callq 0x4b988
movq 0x20(%r14), %rdi
cmpq %rax, %rbx
jae 0xc311f
movq %rbx, %rsi
callq 0x4b48e
movq (%rax), %rdi
callq 0x1d1e3
incq %rbx
jmp 0xc30f8
callq 0x4ba50
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x6ae7b(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6f1f(%rip), %rsi      # 0xca066
leaq 0x184f3(%rip), %rdx     # 0xdb641
leaq 0x31725(%rip), %rcx     # 0xf487a
leaq 0x31485(%rip), %r8      # 0xf45e1
movl $0x141, %r9d            # imm = 0x141
jmp 0xc32b3
movq 0x6ae4a(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6eee(%rip), %rsi      # 0xca066
leaq 0x31825(%rip), %rdx     # 0xf49a4
leaq 0x316f4(%rip), %rcx     # 0xf487a
leaq 0x31454(%rip), %r8      # 0xf45e1
movl $0x121, %r9d            # imm = 0x121
jmp 0xc32b3
movq 0x6ae19(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6ebd(%rip), %rsi      # 0xca066
leaq 0x317f4(%rip), %rdx     # 0xf49a4
leaq 0x316c3(%rip), %rcx     # 0xf487a
leaq 0x31423(%rip), %r8      # 0xf45e1
movl $0x130, %r9d            # imm = 0x130
jmp 0xc32b3
movq 0x6ade8(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6e8c(%rip), %rsi      # 0xca066
leaq 0x316d4(%rip), %rdx     # 0xf48b5
leaq 0x31692(%rip), %rcx     # 0xf487a
leaq 0x313f2(%rip), %r8      # 0xf45e1
movl $0x132, %r9d            # imm = 0x132
jmp 0xc32b3
movq 0x6adb7(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6e5b(%rip), %rsi      # 0xca066
leaq 0x316a3(%rip), %rdx     # 0xf48b5
leaq 0x31661(%rip), %rcx     # 0xf487a
leaq 0x313c1(%rip), %r8      # 0xf45e1
movl $0x110, %r9d            # imm = 0x110
jmp 0xc32b3
movq 0x6ad86(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6e2a(%rip), %rsi      # 0xca066
leaq 0x316ec(%rip), %rdx     # 0xf492f
leaq 0x31630(%rip), %rcx     # 0xf487a
leaq 0x31390(%rip), %r8      # 0xf45e1
movl $0x112, %r9d            # imm = 0x112
jmp 0xc32b3
movq 0x6ad58(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6dfc(%rip), %rsi      # 0xca066
leaq 0x315f8(%rip), %rdx     # 0xf4869
leaq 0x31602(%rip), %rcx     # 0xf487a
leaq 0x31362(%rip), %r8      # 0xf45e1
movl $0xf8, %r9d
jmp 0xc32b3
movq 0x6ad2a(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6dce(%rip), %rsi      # 0xca066
leaq 0x315f8(%rip), %rdx     # 0xf4897
leaq 0x315d4(%rip), %rcx     # 0xf487a
leaq 0x31334(%rip), %r8      # 0xf45e1
movl $0xf9, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
movq 0x6acf2(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6d96(%rip), %rsi      # 0xca066
leaq 0x314e8(%rip), %rdx     # 0xf47bf
leaq 0x31506(%rip), %rcx     # 0xf47e4
leaq 0x312fc(%rip), %r8      # 0xf45e1
movl $0x18c, %r9d            # imm = 0x18C
jmp 0xc32b3
movq 0x6acc4(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6d68(%rip), %rsi      # 0xca066
leaq 0x3152a(%rip), %rdx     # 0xf482f
leaq 0x31543(%rip), %rcx     # 0xf484f
leaq 0x312ce(%rip), %r8      # 0xf45e1
movl $0x170, %r9d            # imm = 0x170
jmp 0xc32b3
movq 0x6ac96(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6d3a(%rip), %rsi      # 0xca066
leaq 0x316ad(%rip), %rdx     # 0xf49e0
leaq 0x316b1(%rip), %rcx     # 0xf49eb
leaq 0x312a0(%rip), %r8      # 0xf45e1
movl $0x15f, %r9d            # imm = 0x15F
jmp 0xc32b3
movq 0x6ac65(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6d09(%rip), %rsi      # 0xca066
leaq 0x31494(%rip), %rdx     # 0xf47f8
leaq 0x31479(%rip), %rcx     # 0xf47e4
leaq 0x3126f(%rip), %r8      # 0xf45e1
movl $0x1a2, %r9d            # imm = 0x1A2
jmp 0xc32b3
movq 0x6ac34(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6cd8(%rip), %rsi      # 0xca066
leaq 0x313f8(%rip), %rdx     # 0xf478d
leaq 0x3140f(%rip), %rcx     # 0xf47ab
leaq 0x3123e(%rip), %r8      # 0xf45e1
movl $0x1b5, %r9d            # imm = 0x1B5
jmp 0xc32b3
movq 0x6ac03(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6ca7(%rip), %rsi      # 0xca066
leaq 0x313bd(%rip), %rdx     # 0xf4783
leaq 0x313ae(%rip), %rcx     # 0xf477b
leaq 0x3120d(%rip), %r8      # 0xf45e1
movl $0x1cf, %r9d            # imm = 0x1CF
jmp 0xc32b3