// File: /workspace/github_c_makefile_star2_O1/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 0xdfe04
movq %rsi, %rbx
testq %rsi, %rsi
je 0xdfe04
movq %rdx, %rbp
testq %rdx, %rdx
je 0xdfe04
movq %rcx, %r12
testq %rcx, %rcx
je 0xdfe09
testq %r8, %r8
je 0xdfe09
testq %r9, %r9
je 0xdfe09
movq %r8, 0x40(%rsp)
movq %r9, 0x20(%rsp)
movq %rdi, 0x8(%rsp)
callq *%r12
movq %rbp, %r13
movq %rbx, 0x18(%rsp)
imulq %rbx, %r13
cmpq %rbp, %r13
setle %bl
jle 0xdf5f2
movq %rax, %r15
movq 0x8(%rsp), %rax
leaq (%rax,%rbp), %rdi
callq *%r12
cmpq %rax, %r15
ja 0xdfdff
movq %rax, %r14
movq 0x8(%rsp), %rax
addq %rax, %r13
leaq (%rax,%rbp,2), %r15
cmpq %r13, %r15
setae %bl
jae 0xdf5f2
movq %r15, %rdi
callq *%r12
addq %rbp, %r15
cmpq %rax, %r14
movq %rax, %r14
jbe 0xdf5d9
testb %bl, %bl
je 0xdfdff
movq 0xf8(%rsp), %rbx
movq 0xf0(%rsp), %r14
movq 0x8(%rsp), %r13
movq %r13, %rdi
callq *%r12
leaq 0x2d304(%rip), %rdi     # 0x10c920
movq %rax, %rsi
xorl %eax, %eax
callq 0x35a32
leaq 0x2d2fd(%rip), %rdi     # 0x10c92a
movq 0x18(%rsp), %r15
movq %r15, %rsi
xorl %eax, %eax
callq 0x35a32
movq %r13, 0x48(%rsp)
movq %r15, 0x50(%rsp)
movq %rbp, 0x58(%rsp)
movq %r12, 0x60(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x70(%rsp)
movq %r14, 0x78(%rsp)
movq %rbx, 0x80(%rsp)
shlq $0x3, %r15
leaq 0x2d239(%rip), %r14     # 0x10c8b5
movq %r15, %rdi
movq %r14, %rsi
movl $0x1d5, %edx            # imm = 0x1D5
callq 0x35ee2
movq %rax, %r15
movq 0x50(%rsp), %rdi
shlq $0x3, %rdi
movq %r14, %rsi
movl $0x1d6, %edx            # imm = 0x1D6
callq 0x35ee2
movq %rax, 0x30(%rsp)
movq 0x50(%rsp), %rdi
shlq $0x3, %rdi
movq %r14, %rsi
movl $0x1d7, %edx            # imm = 0x1D7
callq 0x35ee2
movq %rax, 0x28(%rsp)
movq 0x50(%rsp), %rdi
shlq $0x3, %rdi
movq %r14, %rsi
movl $0x1d8, %edx            # imm = 0x1D8
callq 0x35ee2
movq %rax, %r13
movq 0x50(%rsp), %rdi
shlq $0x3, %rdi
movq %r14, %rsi
movl $0x1d9, %edx            # imm = 0x1D9
callq 0x35ee2
movq %rax, %rbp
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xdf75f
xorl %ebx, %ebx
movq 0x30(%rsp), %r14
movq 0x28(%rsp), %r12
callq 0x70724
movq %rax, (%r15,%rbx,8)
movq 0x50(%rsp), %rdi
callq 0x70724
movq %rax, (%r14,%rbx,8)
movq 0x50(%rsp), %rdi
callq 0x70724
movq %rax, (%r12,%rbx,8)
movq 0x50(%rsp), %rdi
callq 0x70724
movq %rax, (%r13,%rbx,8)
movq 0x50(%rsp), %rdi
callq 0x70724
movq %rax, (%rbp,%rbx,8)
incq %rbx
movq 0x50(%rsp), %rdi
cmpq %rdi, %rbx
jb 0xdf70d
jmp 0xdf764
movq 0x28(%rsp), %r12
movq %rbp, 0x18(%rsp)
movq %r13, 0x38(%rsp)
movq %r15, 0x10(%rsp)
callq 0x70724
movq %rax, 0x20(%rsp)
movq 0x50(%rsp), %rdi
callq 0x70724
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rdi
callq 0x70724
movq %rax, 0x40(%rsp)
movl $0x8, %edi
callq 0x6e93c
movq %rax, 0x90(%rsp)
cmpq $0x0, 0x50(%rsp)
movq %r12, %r14
je 0xdf876
xorl %ebx, %ebx
leaq 0x48(%rsp), %r12
leaq 0xa8(%rsp), %r13
leaq 0x98(%rsp), %r15
cmpq $0x0, 0x50(%rsp)
je 0xdf84f
xorl %ebp, %ebp
movq %r12, %rdi
movq %rbx, %rsi
callq 0xdfe0e
movq %rax, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
callq 0xdfe0e
movq %rax, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
movq %r13, %rdi
movq %r15, %rsi
callq 0x7e11d
testb %al, %al
je 0xdf845
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0xdfe30
testb %al, %al
je 0xdf845
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rdi
movq %rbp, %rsi
callq 0x70790
incq %rbp
cmpq 0x50(%rsp), %rbp
jb 0xdf7dd
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rdi
movq %rbx, %rsi
callq 0x70b1b
testb %al, %al
je 0xdfdf0
incq %rbx
cmpq 0x50(%rsp), %rbx
jb 0xdf7d3
leaq 0xa69(%rip), %rdx       # 0xe02e6
leaq 0x48(%rsp), %rbx
movq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0xe0267
leaq 0xa98(%rip), %rdx       # 0xe032e
movq %r14, %rdi
movq %rbx, %rsi
callq 0xe0267
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x70724
movq %rax, %r12
movq %rbx, 0x88(%rsp)
testq %rbx, %rbx
movq 0x10(%rsp), %r15
je 0xdf9ae
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x30(%rsp), %rbx
movq (%rbx,%r13,8), %rdi
callq 0x70b42
testb %al, %al
je 0xdf98b
movq (%rbx,%r13,8), %rdi
callq 0x70be9
movq %rax, %r15
movq (%rbx,%r13,8), %rdi
callq 0x70c3c
movq $-0x1, %rbx
cmpq %rax, %r15
je 0xdf964
movq 0x38(%rsp), %rax
movq (%rax,%r15,8), %rsi
movq 0x10(%rsp), %rax
movq (%rax,%r13,8), %rdx
movq %r12, %rdi
callq 0x708dd
movq %r12, %rdi
callq 0x70ca1
cmpq $-0x1, %rbx
je 0xdf937
cmpq %rbp, %rax
cmovaq %rax, %rbp
cmovaq %r15, %rbx
jmp 0xdf93d
movq %rax, %rbp
movq %r15, %rbx
movq 0x30(%rsp), %r14
movq (%r14,%r13,8), %rdi
movq %r15, %rsi
callq 0x70c4c
movq %rax, %r15
movq (%r14,%r13,8), %rdi
callq 0x70c3c
cmpq %rax, %r15
movq 0x28(%rsp), %r14
jne 0xdf902
cmpq $-0x1, %rbx
je 0xdfdf5
movq 0x38(%rsp), %rax
movq (%rax,%r13,8), %rdi
movq (%rax,%rbx,8), %rsi
movq 0x10(%rsp), %r15
movq (%r15,%r13,8), %rdx
callq 0x708dd
jmp 0xdf99d
movq 0x38(%rsp), %rax
movq (%rax,%r13,8), %rdi
movq (%r15,%r13,8), %rsi
callq 0x70849
incq %r13
cmpq 0x88(%rsp), %r13
jne 0xdf8cb
movq %r12, %rdi
callq 0x70e34
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x70724
movq %rax, %r12
decq %rbx
movq 0x18(%rsp), %rbp
js 0xdfaa2
xorl %r13d, %r13d
movq (%r14,%rbx,8), %rdi
callq 0x70b42
testb %al, %al
je 0xdfa5a
movq (%r14,%rbx,8), %rdi
callq 0x70be9
movq %rax, %r15
movq (%r14,%rbx,8), %rdi
callq 0x70c3c
movq $-0x1, %rbp
cmpq %rax, %r15
je 0xdfa6a
movq 0x18(%rsp), %rax
movq (%rax,%r15,8), %rsi
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rdx
movq %r12, %rdi
callq 0x708dd
movq %r12, %rdi
callq 0x70ca1
cmpq $-0x1, %rbp
je 0xdfa3a
cmpq %r13, %rax
cmovaq %rax, %r13
cmovaq %r15, %rbp
jmp 0xdfa40
movq %rax, %r13
movq %r15, %rbp
movq (%r14,%rbx,8), %rdi
movq %r15, %rsi
callq 0x70c4c
movq %rax, %r15
movq (%r14,%rbx,8), %rdi
callq 0x70c3c
jmp 0xdfa00
movq (%rbp,%rbx,8), %rdi
movq (%r15,%rbx,8), %rsi
callq 0x70849
jmp 0xdfa92
cmpq $-0x1, %rbp
je 0xdfdfa
movq 0x18(%rsp), %rax
movq (%rax,%rbx,8), %rdi
movq (%rax,%rbp,8), %rsi
movq %rax, %rbp
movq 0x10(%rsp), %r15
movq (%r15,%rbx,8), %rdx
callq 0x708dd
leaq -0x1(%rbx), %rax
testq %rbx, %rbx
movq %rax, %rbx
jg 0xdf9d7
movq %r12, %rdi
callq 0x70e34
cmpq $0x0, 0x50(%rsp)
movq 0x20(%rsp), %r12
je 0xdface
xorl %ebx, %ebx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x70790
incq %rbx
cmpq 0x50(%rsp), %rbx
jb 0xdfab9
movq %r12, %rdi
callq 0x70ca1
movq %rax, %r15
xorl %ebx, %ebx
movq 0x38(%rsp), %rbp
movq %r12, %rdi
callq 0x70b42
testb %al, %al
je 0xdfcf2
movq %r15, 0x28(%rsp)
movq %r12, %rdi
callq 0x70be9
movq %rax, %r15
movq %r12, %rdi
callq 0x70c3c
cmpq %rax, %r15
je 0xdfb98
movq $-0x1, %r13
movq (%rbp,%r15,8), %rsi
movq 0x18(%rsp), %rax
movq (%rax,%r15,8), %rdx
cmpq $-0x1, %r13
je 0xdfb5d
movq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0x708dd
movq %r12, %rdi
callq 0x70ca1
cmpq %rbx, %rax
jbe 0xdfb78
movq %rax, %r12
movq 0x8(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x70849
movq %r12, %rbx
jmp 0xdfb75
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x708dd
movq %rbx, %rdi
callq 0x70ca1
movq %rax, %rbx
movq %r15, %r13
movq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x70c4c
movq %rax, %r15
movq %r12, %rdi
callq 0x70c3c
cmpq %rax, %r15
jne 0xdfb18
movq 0x50(%rsp), %rdi
callq 0x70724
movq %rax, %r12
movq %rax, %rdi
movq 0x8(%rsp), %r13
movq %r13, %rsi
callq 0x707e0
movq %r12, %rdi
callq 0x70be9
movq %rax, %r15
movq %r12, %rdi
callq 0x70c3c
cmpq %rax, %r15
sete %bpl
je 0xdfc62
movq %r13, %rdi
callq 0x70be9
movq %r13, %rdi
movq %rax, %r13
callq 0x70c3c
cmpq %rax, %r13
je 0xdfce8
movb %bpl, 0x88(%rsp)
leaq 0x48(%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0xdfe30
testb %al, %al
je 0xdfc2f
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
callq 0x70c4c
movq %rax, %r13
movq %rbp, %rdi
callq 0x70c3c
cmpq %rax, %r13
jne 0xdfbf9
jmp 0xdfc55
movq %r12, %rdi
movq %r15, %rsi
callq 0x70c4c
movq %rax, %r15
movq %r12, %rdi
callq 0x70c3c
cmpq %rax, %r15
sete %bpl
movq 0x8(%rsp), %r13
jne 0xdfbd5
jmp 0xdfc62
movq 0x8(%rsp), %r13
movb 0x88(%rsp), %bpl
movq %r12, %rdi
callq 0x70e34
testb $0x1, %bpl
je 0xdfde6
cmpq $0x0, 0x78(%rsp)
movq 0x38(%rsp), %rbp
movq 0x20(%rsp), %r12
je 0xdfcbf
movq 0x90(%rsp), %r15
movq %r15, %rdi
callq 0x6ed13
movq %r13, %rdi
movq %r15, %rsi
callq 0x70aad
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq 0x80(%rsp), %r8
movq %r15, %rdi
callq *0x78(%rsp)
movq %r12, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x70935
movq %r12, %rdi
callq 0x70ca1
movq %rax, %r15
cmpq 0x28(%rsp), %rax
jb 0xdfae0
jmp 0xdfdeb
movq 0x8(%rsp), %r13
jmp 0xdfc62
cmpq $0x0, 0x50(%rsp)
movq 0x30(%rsp), %r12
movq 0x18(%rsp), %r13
movq 0x10(%rsp), %r15
je 0xdfd44
xorl %ebx, %ebx
movq (%r15,%rbx,8), %rdi
callq 0x70e34
movq (%r12,%rbx,8), %rdi
callq 0x70e34
movq (%r14,%rbx,8), %rdi
callq 0x70e34
movq (%rbp,%rbx,8), %rdi
callq 0x70e34
movq (%r13,%rbx,8), %rdi
callq 0x70e34
incq %rbx
cmpq 0x50(%rsp), %rbx
jb 0xdfd0b
leaq 0x2cb6a(%rip), %rbx     # 0x10c8b5
movq %r15, %rdi
movq %rbx, %rsi
movl $0x22b, %edx            # imm = 0x22B
callq 0x362a0
movq %r12, %rdi
movq %rbx, %rsi
movl $0x22c, %edx            # imm = 0x22C
callq 0x362a0
movq %r14, %rdi
movq %rbx, %rsi
movl $0x22d, %edx            # imm = 0x22D
callq 0x362a0
movq %rbp, %rdi
movq %rbx, %rsi
movl $0x22e, %edx            # imm = 0x22E
callq 0x362a0
movq %r13, %rdi
movq %rbx, %rsi
movl $0x22f, %edx            # imm = 0x22F
callq 0x362a0
movq 0x20(%rsp), %rdi
callq 0x70e34
movq 0x8(%rsp), %rdi
callq 0x70e34
movq 0x40(%rsp), %rdi
callq 0x70e34
movq 0x90(%rsp), %rdi
callq 0x6f134
leaq 0x2cb73(%rip), %rdi     # 0x10c940
xorl %eax, %eax
callq 0x35a32
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x34f46
callq 0x34f7f
callq 0x34ed4
callq 0x34f0d
callq 0x34fb8
callq 0x34e9b
callq 0x34e29
callq 0x34e62