// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/csa_variable_strands.c
// Function: gt_csa_variable_strands
GtArray* gt_csa_variable_strands(const void *set_of_sas,
                                 GtUword number_of_sas,
                                 size_t size_of_sa,
                                 GtGetGenomicRangeFunc get_genomic_range,
                                 GtGetStrandFunc get_strand,
                                 GtGetExonsFunc get_exons)
{
  StoreSpliceFormInfo info;
  GtArray *genes;
  gt_assert(set_of_sas && number_of_sas && size_of_sa);
  gt_assert(get_genomic_range && get_strand && get_exons);

  genes = gt_array_new(sizeof (GtCSAGene*));

  info.splice_forms = gt_array_new(sizeof (GtCSASpliceForm*));
  info.get_genomic_range = get_genomic_range;
  info.get_strand = get_strand;

  gt_consensus_sa(set_of_sas, number_of_sas, size_of_sa, get_genomic_range,
                  get_strand, get_exons, store_splice_form, &info);

  process_splice_forms(genes, info.splice_forms);

  gt_array_delete(info.splice_forms);

  return genes;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
testq %rdi, %rdi
je 0xdf456
testq %rsi, %rsi
je 0xdf456
testq %rdx, %rdx
je 0xdf456
movq %rcx, %r12
movq %rsi, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
testq %rcx, %rcx
je 0xdf45b
movq %r8, %r15
testq %r8, %r8
je 0xdf45b
testq %r9, %r9
je 0xdf45b
movq %rdi, %rbx
movl $0x8, %edi
movq %r9, %rbp
callq 0x6e93c
movq %rax, %r13
movl $0x8, %edi
callq 0x6e93c
leaq 0x20(%rsp), %r14
movq %rax, (%r14)
movq %r12, 0x8(%r14)
movq %r15, 0x10(%r14)
leaq 0x192(%rip), %rax       # 0xdf46a
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rcx
movq %r15, %r8
movq %rbp, %r9
pushq %r14
pushq %rax
callq 0xdf53c
addq $0x10, %rsp
movq (%r14), %r14
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movq %rax, (%rsp)
testq %r13, %r13
je 0xdf460
testq %r14, %r14
je 0xdf460
movq %r14, %rdi
callq 0x6ecda
testq %rax, %rax
je 0xdf395
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x6e9fa
movq (%rax), %rbx
movq %rbx, %rdi
callq 0xdf170
cmpl $0x1, %eax
je 0xdf366
testl %eax, %eax
jne 0xdf451
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
jne 0xdf36f
movq %rbx, %rdi
callq 0xdee6c
movq %rax, 0x8(%rsp)
jmp 0xdf385
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xdf379
movq %rbx, %rsi
callq 0xdef24
jmp 0xdf385
movq %rbx, %rdi
callq 0xdee6c
movq %rax, (%rsp)
incq %r15
movq %r14, %rdi
callq 0x6ecda
cmpq %rax, %r15
jb 0xdf32a
movq 0x8(%rsp), %rdi
movq (%rsp), %rax
movq %rdi, %rcx
orq %rax, %rcx
je 0xdf465
testq %rax, %rax
setne %al
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xdf419
callq 0xdefa5
leaq 0x48(%rsp), %rbx
movq %rax, (%rbx)
movq %rdx, 0x8(%rbx)
movq %rsp, %r14
movq (%r14), %rdi
callq 0xdefa5
leaq 0x38(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x7df58
testl %eax, %eax
leaq 0x8(%rsp), %rbx
movq %r14, %rsi
cmovleq %rbx, %rsi
cmovleq %r14, %rbx
movl $0x8, %edx
movq %r13, %rdi
callq 0x6ec0e
movl $0x8, %edx
movq %r13, %rdi
movq %rbx, %rsi
jmp 0xdf430
testq %rdi, %rdi
je 0xdf425
leaq 0x8(%rsp), %rsi
jmp 0xdf428
movq %rsp, %rsi
movl $0x8, %edx
movq %r13, %rdi
callq 0x6ec0e
movq 0x20(%rsp), %rdi
callq 0x6f134
movq %r13, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x34d4d
callq 0x34ca8
callq 0x34cdf
callq 0x34d16
callq 0x34d84