// File: /workspace/github_c_makefile_star2_O2/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 0xc8b65
testq %rsi, %rsi
je 0xc8b65
testq %rdx, %rdx
je 0xc8b65
movq %rcx, %r12
movq %rsi, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
testq %rcx, %rcx
je 0xc8b8f
movq %r8, %r15
testq %r8, %r8
je 0xc8b8f
testq %r9, %r9
je 0xc8b8f
movq %rdi, %rbx
pushq $0x8
popq %r14
movq %r14, %rdi
movq %r9, %r13
callq 0x4b380
movq %rax, %rbp
movq %r14, %rdi
callq 0x4b380
leaq 0x20(%rsp), %r14
movq %rax, (%r14)
movq %r12, 0x8(%r14)
movq %r15, 0x10(%r14)
leaq 0x253(%rip), %rax       # 0xc8c13
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rcx
movq %r15, %r8
movq %r13, %r9
pushq %r14
pushq %rax
callq 0xc8d20
popq %rax
popq %rcx
movq (%r14), %r12
andq $0x0, 0x8(%rsp)
andq $0x0, (%rsp)
testq %rbp, %rbp
je 0xc8bb9
testq %r12, %r12
je 0xc8bb9
xorl %r15d, %r15d
xorl %r14d, %r14d
xorl %r13d, %r13d
movq %r12, %rdi
callq 0x4b988
cmpq %rax, %r13
jae 0xc8a7b
movq %r12, %rdi
movq %r13, %rsi
callq 0x4b48e
movq (%rax), %rbx
movq %rbx, %rdi
callq 0xc8773
cmpl $0x1, %eax
je 0xc8a43
testl %eax, %eax
jne 0xc8b2f
testq %r15, %r15
je 0xc8a66
movq %r15, %rdi
jmp 0xc8a4b
testq %r14, %r14
je 0xc8a55
movq %r14, %rdi
movq %rbx, %rsi
callq 0xc834e
jmp 0xc8a76
movq %rbx, %rdi
callq 0xc827c
movq %rax, %r14
movq %rax, (%rsp)
jmp 0xc8a76
movq %rbx, %rdi
callq 0xc827c
movq %rax, %r15
movq %rax, 0x8(%rsp)
incq %r13
jmp 0xc8a09
movq %r15, %rax
orq %r14, %rax
je 0xc8be6
testq %r14, %r14
setne %al
testq %r15, %r15
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xc8af9
movq %r15, %rdi
callq 0xc8491
leaq 0x48(%rsp), %rbx
movq %rax, (%rbx)
movq %rdx, 0x8(%rbx)
movq %r14, %rdi
callq 0xc8491
leaq 0x38(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x5cec8
testl %eax, %eax
leaq 0x8(%rsp), %rbx
movq %rsp, %rax
movq %rax, %rsi
cmovleq %rbx, %rsi
cmovleq %rax, %rbx
pushq $0x8
popq %r14
movq %rbp, %rdi
movq %r14, %rdx
callq 0x4b801
movq %rbp, %rdi
movq %rbx, %rsi
movq %r14, %rdx
jmp 0xc8b0e
testq %r15, %r15
je 0xc8b05
leaq 0x8(%rsp), %rsi
jmp 0xc8b08
movq %rsp, %rsi
pushq $0x8
popq %rdx
movq %rbp, %rdi
callq 0x4b801
movq 0x20(%rsp), %rdi
callq 0x4c19d
movq %rbp, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x65482(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x1526(%rip), %rsi      # 0xca066
leaq 0x12afa(%rip), %rdx     # 0xdb641
leaq 0x2cdd5(%rip), %rcx     # 0xf5923
leaq 0x2cd0d(%rip), %r8      # 0xf5862
pushq $0x49
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
movq 0x6544c(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x14f0(%rip), %rsi      # 0xca066
leaq 0x2cca3(%rip), %rdx     # 0xf5820
leaq 0x2ccc6(%rip), %rcx     # 0xf584a
leaq 0x2ccd7(%rip), %r8      # 0xf5862
pushq $0x6b
jmp 0xc8b57
movq 0x65422(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x14c6(%rip), %rsi      # 0xca066
leaq 0x2ccdf(%rip), %rdx     # 0xf5886
leaq 0x2cc9c(%rip), %rcx     # 0xf584a
leaq 0x2ccad(%rip), %r8      # 0xf5862
pushq $0x6c
jmp 0xc8b57
movq 0x653f8(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x149c(%rip), %rsi      # 0xca066
leaq 0x2cd3c(%rip), %rdx     # 0xf590d
leaq 0x2cd4b(%rip), %rcx     # 0xf5923
leaq 0x2cc83(%rip), %r8      # 0xf5862
pushq $0x37
jmp 0xc8b57
movq 0x653cb(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x146f(%rip), %rsi      # 0xca066
leaq 0x2cd3a(%rip), %rdx     # 0xf5938
leaq 0x2cd1e(%rip), %rcx     # 0xf5923
leaq 0x2cc56(%rip), %r8      # 0xf5862
pushq $0x4d
jmp 0xc8b57