// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/consensus_sa.c
// Function: gt_consensus_sa
void gt_consensus_sa(const void *set_of_sas, GtUword number_of_sas,
                     size_t size_of_sa, GtGetGenomicRangeFunc get_genomic_range,
                     GtGetStrandFunc get_strand, GtGetExonsFunc get_exons,
                     GtProcessSpliceFormFunc process_splice_form,
                     void *userdata)
{
  ConsensusSA csa;
  gt_assert(set_of_sas && number_of_sas && size_of_sa);
  gt_assert(get_genomic_range && get_strand && get_exons);
  gt_assert(set_of_sas_is_sorted(set_of_sas, number_of_sas, size_of_sa,
                              get_genomic_range));
  gt_log_log("-from "GT_WU"", get_genomic_range(set_of_sas).start);
  gt_log_log("csa number_of_sas="GT_WU"", number_of_sas);

  /* init */
  csa.set_of_sas          = set_of_sas;
  csa.number_of_sas       = number_of_sas;
  csa.size_of_sa          = size_of_sa;
  csa.get_genomic_range   = get_genomic_range;
  csa.get_strand          = get_strand;
  csa.get_exons           = get_exons;
  csa.process_splice_form = process_splice_form;
  csa.userdata            = userdata;

  /* computation */
  compute_csas(&csa);

  gt_log_log("csa finished");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
testq %rdi, %rdi
je 0xe0488
movq %rsi, %r15
testq %rsi, %rsi
je 0xe0488
movq %rdx, %rbp
testq %rdx, %rdx
je 0xe0488
movq %rcx, %r12
testq %rcx, %rcx
je 0xe048d
testq %r8, %r8
je 0xe048d
testq %r9, %r9
je 0xe048d
movq %r8, 0x10(%rsp)
movq %r9, 0x18(%rsp)
movq %rdi, 0x8(%rsp)
callq *%r12
movq %rbp, %r13
imulq %r15, %r13
cmpq %rbp, %r13
jle 0xdfcf3
movq %rax, %rbx
movq 0x8(%rsp), %rax
addq %rax, %r13
leaq (%rax,%rbp), %r14
movq %r14, %rdi
callq *%r12
cmpq %rax, %rbx
ja 0xe0483
addq %rbp, %r14
movq %rax, %rbx
cmpq %r13, %r14
jb 0xdfcd9
movq 0xf0(%rsp), %r13
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq *%r12
leaq 0x2ca33(%rip), %rdi     # 0x10c740
xorl %r14d, %r14d
movq %rax, %rsi
xorl %eax, %eax
callq 0x353ae
leaq 0x2ca29(%rip), %rdi     # 0x10c74a
movq %r15, %rsi
xorl %eax, %eax
callq 0x353ae
movq %rbx, 0x48(%rsp)
movq %r15, 0x50(%rsp)
movq %rbp, 0x58(%rsp)
movq %r12, 0x60(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x70(%rsp)
movq %r13, 0x78(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq (,%r15,8), %rbx
leaq 0x2c95e(%rip), %rbp     # 0x10c6d5
movq %rbx, %rdi
movq %rbp, %rsi
movl $0x1d5, %edx            # imm = 0x1D5
callq 0x35862
movq %rax, %r12
movq %rbx, %rdi
movq %rbp, %rsi
movl $0x1d6, %edx            # imm = 0x1D6
callq 0x35862
movq %rax, 0x30(%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
movl $0x1d7, %edx            # imm = 0x1D7
callq 0x35862
movq %rax, %r13
movq %rbx, %rdi
movq %rbp, %rsi
movl $0x1d8, %edx            # imm = 0x1D8
callq 0x35862
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
movq %r13, %rbx
movq %rbp, %rsi
movq 0x30(%rsp), %rbp
movq %r12, %r13
movl $0x1d9, %edx            # imm = 0x1D9
callq 0x35862
movq %rax, %r12
movq %r15, %rdi
callq 0x70cd4
movq %rax, (%r13,%r14,8)
movq %r15, %rdi
callq 0x70cd4
movq %rax, (%rbp,%r14,8)
movq %r15, %rdi
callq 0x70cd4
movq %rax, (%rbx,%r14,8)
movq %r15, %rdi
callq 0x70cd4
movq 0x18(%rsp), %rcx
movq %rax, (%rcx,%r14,8)
movq %r15, %rdi
callq 0x70cd4
movq %rax, (%r12,%r14,8)
incq %r14
cmpq %r14, %r15
jne 0xdfde5
movq %r12, 0x10(%rsp)
movq %rbx, 0x28(%rsp)
movq %r13, 0x8(%rsp)
movq %r15, %rdi
callq 0x70cd4
movq %rax, 0x38(%rsp)
movq %r15, %rdi
callq 0x70cd4
movq %rax, %r14
movq %r15, %rdi
callq 0x70cd4
movq %rax, 0x40(%rsp)
movl $0x8, %edi
callq 0x6ef7c
movq %rax, 0x88(%rsp)
xorl %r15d, %r15d
leaq 0x48(%rsp), %r12
leaq 0xa8(%rsp), %r13
leaq 0x98(%rsp), %rbx
xorl %ebp, %ebp
movq %r12, %rdi
movq %r15, %rsi
callq 0xe0492
movq %rax, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
callq 0xe0492
movq %rax, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x7e261
testb %al, %al
je 0xdfef8
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0xe04b4
testb %al, %al
je 0xdfef8
movq 0x8(%rsp), %rax
movq (%rax,%r15,8), %rdi
movq %rbp, %rsi
callq 0x70d40
incq %rbp
cmpq 0x50(%rsp), %rbp
jb 0xdfe90
movq 0x8(%rsp), %rax
movq (%rax,%r15,8), %rdi
movq %r15, %rsi
callq 0x710ce
testb %al, %al
je 0xe0474
incq %r15
cmpq 0x50(%rsp), %r15
jb 0xdfe8e
leaq 0x9c4(%rip), %rdx       # 0xe08f4
leaq 0x48(%rsp), %rbx
movq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0xe087a
leaq 0x9f3(%rip), %rdx       # 0xe093c
movq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0xe087a
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x70cd4
movq %rax, 0x20(%rsp)
movq %rbx, 0x90(%rsp)
testq %rbx, %rbx
movq 0x18(%rsp), %rbx
je 0xe0069
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x30(%rsp), %r15
movq (%r15,%r13,8), %rdi
callq 0x710f5
testb %al, %al
je 0xe0046
movq (%r15,%r13,8), %rdi
callq 0x711a4
movq %rax, %rbx
movq (%r15,%r13,8), %rdi
callq 0x711eb
cmpq %rax, %rbx
je 0xe0479
movq $-0x1, %r15
movq 0x18(%rsp), %rax
movq (%rax,%rbx,8), %rsi
movq 0x8(%rsp), %rax
movq (%rax,%r13,8), %rdx
movq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x70e90
movq %r12, %rdi
callq 0x71242
cmpq $-0x1, %r15
je 0xdfff7
cmpq %rbp, %rax
cmovaq %rax, %rbp
cmovaq %rbx, %r15
jmp 0xdfffd
movq %rax, %rbp
movq %rbx, %r15
movq 0x30(%rsp), %r12
movq (%r12,%r13,8), %rdi
movq %rbx, %rsi
callq 0x711fb
movq %rax, %rbx
movq (%r12,%r13,8), %rdi
callq 0x711eb
cmpq %rax, %rbx
jne 0xdffbd
cmpq $-0x1, %r15
je 0xe0479
movq 0x18(%rsp), %rbx
movq (%rbx,%r13,8), %rdi
movq (%rbx,%r15,8), %rsi
movq 0x8(%rsp), %rax
movq (%rax,%r13,8), %rdx
callq 0x70e90
jmp 0xe0058
movq (%rbx,%r13,8), %rdi
movq 0x8(%rsp), %rax
movq (%rax,%r13,8), %rsi
callq 0x70dfc
incq %r13
cmpq 0x90(%rsp), %r13
jne 0xdff82
movq 0x20(%rsp), %rdi
callq 0x713d5
movq 0x50(%rsp), %r15
movq %r15, %rdi
callq 0x70cd4
movq %rax, 0x20(%rsp)
decq %r15
movq 0x28(%rsp), %rbx
movq 0x38(%rsp), %rbp
js 0xe018e
xorl %r13d, %r13d
movq (%rbx,%r15,8), %rdi
callq 0x710f5
testb %al, %al
je 0xe0167
movq (%rbx,%r15,8), %rdi
callq 0x711a4
movq %rbx, %rcx
movq %rax, %rbx
movq (%rcx,%r15,8), %rdi
callq 0x711eb
cmpq %rax, %rbx
movq 0x10(%rsp), %rax
je 0xe047e
movq $-0x1, %rbp
movq (%rax,%rbx,8), %rsi
movq 0x8(%rsp), %rax
movq (%rax,%r15,8), %rdx
movq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x70e90
movq %r12, %rdi
callq 0x71242
cmpq $-0x1, %rbp
je 0xe010e
cmpq %r13, %rax
cmovaq %rax, %r13
cmovaq %rbx, %rbp
jmp 0xe0114
movq %rax, %r13
movq %rbx, %rbp
movq 0x28(%rsp), %r12
movq (%r12,%r15,8), %rdi
movq %rbx, %rsi
callq 0x711fb
movq %rax, %rbx
movq (%r12,%r15,8), %rdi
callq 0x711eb
cmpq %rax, %rbx
movq 0x10(%rsp), %rax
jne 0xe00d9
cmpq $-0x1, %rbp
je 0xe047e
movq (%rax,%r15,8), %rdi
movq (%rax,%rbp,8), %rsi
movq 0x8(%rsp), %rax
movq (%rax,%r15,8), %rdx
callq 0x70e90
movq 0x28(%rsp), %rbx
movq 0x38(%rsp), %rbp
jmp 0xe017e
movq 0x10(%rsp), %rax
movq (%rax,%r15,8), %rdi
movq 0x8(%rsp), %rax
movq (%rax,%r15,8), %rsi
callq 0x70dfc
leaq -0x1(%r15), %rax
testq %r15, %r15
movq %rax, %r15
jg 0xe009b
movq 0x20(%rsp), %rdi
callq 0x713d5
cmpq $0x0, 0x50(%rsp)
je 0xe01b7
xorl %ebx, %ebx
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x70d40
incq %rbx
cmpq 0x50(%rsp), %rbx
jb 0xe01a2
movq %rbp, %rdi
callq 0x71242
movq %rax, %rbx
xorl %r12d, %r12d
leaq 0x48(%rsp), %r15
movq %rbp, %rdi
callq 0x710f5
testb %al, %al
je 0xe036e
movq %rbp, %rdi
callq 0x711a4
movq %rax, %r13
movq %rbp, %rdi
callq 0x711eb
cmpq %rax, %r13
movq %rbx, 0x20(%rsp)
je 0xe027f
movq $-0x1, %rbp
movq 0x18(%rsp), %rax
movq (%rax,%r13,8), %rsi
movq 0x10(%rsp), %rax
movq (%rax,%r13,8), %rdx
cmpq $-0x1, %rbp
je 0xe0249
movq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x70e90
movq %rbx, %rdi
callq 0x71242
cmpq %r12, %rax
jbe 0xe025f
movq %rax, %rbx
movq %r14, %rdi
movq 0x40(%rsp), %rsi
callq 0x70dfc
movq %rbx, %r12
jmp 0xe025c
movq %r14, %rdi
callq 0x70e90
movq %r14, %rdi
callq 0x71242
movq %rax, %r12
movq %r13, %rbp
movq 0x38(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x711fb
movq %rax, %r13
movq %rbx, %rdi
callq 0x711eb
cmpq %rax, %r13
jne 0xe0202
movq 0x50(%rsp), %rdi
callq 0x70cd4
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
callq 0x70d90
movq %r13, %rdi
callq 0x711a4
movq %rax, %rbx
movq %r13, %rdi
callq 0x711eb
cmpq %rax, %rbx
je 0xe02f7
movq %r14, %rdi
callq 0x711a4
movq %rax, %rbp
movq %r14, %rdi
callq 0x711eb
cmpq %rax, %rbp
je 0xe046c
movq %r15, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0xe04b4
testb %al, %al
je 0xe02ea
movq %r14, %rdi
movq %rbp, %rsi
callq 0x711fb
jmp 0xe02b7
movq %r13, %rdi
movq %rbx, %rsi
callq 0x711fb
jmp 0xe029f
movq %r13, %rdi
callq 0x713d5
cmpq $0x0, 0x78(%rsp)
je 0xe0340
movq 0x88(%rsp), %rbx
movq %rbx, %rdi
callq 0x6f349
movq %r14, %rdi
movq %rbx, %rsi
callq 0x71060
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq 0x80(%rsp), %r8
movq %rbx, %rdi
callq *0x78(%rsp)
movq 0x38(%rsp), %rbp
movq %rbp, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x70ee8
movq %rbp, %rdi
callq 0x71242
movq %rax, %rbx
cmpq 0x20(%rsp), %rax
jb 0xe01ca
callq 0x348fc
cmpq $0x0, 0x50(%rsp)
movq 0x8(%rsp), %r15
movq 0x30(%rsp), %r12
movq 0x28(%rsp), %r13
movq 0x18(%rsp), %rbp
je 0xe03ca
xorl %ebx, %ebx
movq (%r15,%rbx,8), %rdi
callq 0x713d5
movq (%r12,%rbx,8), %rdi
callq 0x713d5
movq (%r13,%rbx,8), %rdi
callq 0x713d5
movq (%rbp,%rbx,8), %rdi
callq 0x713d5
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x713d5
incq %rbx
cmpq 0x50(%rsp), %rbx
jb 0xe038c
leaq 0x2c304(%rip), %rbx     # 0x10c6d5
movq %r15, %rdi
movq %rbx, %rsi
movl $0x22b, %edx            # imm = 0x22B
callq 0x35c27
movq %r12, %rdi
movq %rbx, %rsi
movl $0x22c, %edx            # imm = 0x22C
callq 0x35c27
movq %r13, %rdi
movq %rbx, %rsi
movl $0x22d, %edx            # imm = 0x22D
callq 0x35c27
movq %rbp, %rdi
movq %rbx, %rsi
movl $0x22e, %edx            # imm = 0x22E
callq 0x35c27
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
movl $0x22f, %edx            # imm = 0x22F
callq 0x35c27
movq 0x38(%rsp), %rdi
callq 0x713d5
movq %r14, %rdi
callq 0x713d5
movq 0x40(%rsp), %rdi
callq 0x713d5
movq 0x88(%rsp), %rdi
callq 0x6f768
leaq 0x2c30d(%rip), %rdi     # 0x10c760
xorl %eax, %eax
callq 0x353ae
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %rdi
callq 0x348be
callq 0x3484c
callq 0x34885
callq 0x34935
callq 0x3496e
callq 0x347da
callq 0x34813