// File: /workspace/github_c_makefile_star2_O2/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 0xc95c7
movq %rsi, %rbx
testq %rsi, %rsi
je 0xc95c7
movq %rdx, %rbp
testq %rdx, %rdx
je 0xc95c7
movq %rcx, %r12
testq %rcx, %rcx
je 0xc95f5
testq %r8, %r8
je 0xc95f5
testq %r9, %r9
je 0xc95f5
movq %rdi, %r15
movq %r8, 0x10(%rsp)
movq %r9, 0x18(%rsp)
callq *%r12
movq %rax, %r14
movq %rbp, %r13
imulq %rbx, %r13
addq %r15, %r13
movq %r15, 0x28(%rsp)
addq %rbp, %r15
cmpq %r13, %r15
jae 0xc8ddc
movq %r15, %rdi
callq *%r12
addq %rbp, %r15
cmpq %rax, %r14
movq %rax, %r14
jbe 0xc8d95
movq 0x65206(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x12aa(%rip), %rsi      # 0xca066
leaq 0x2cbbe(%rip), %rdx     # 0xf5981
leaq 0x2cb8b(%rip), %rcx     # 0xf5955
leaq 0x2cb94(%rip), %r8      # 0xf5965
movl $0x240, %r9d            # imm = 0x240
jmp 0xc958d
movq 0x28(%rsp), %r14
movq %r14, %rdi
callq *%r12
leaq 0x2cbe2(%rip), %rdi     # 0xf59d0
xorl %r15d, %r15d
movq %rax, %rsi
xorl %eax, %eax
callq 0xc5d2
leaq 0x2cbd8(%rip), %rdi     # 0xf59da
movq %rbx, %rsi
xorl %eax, %eax
callq 0xc5d2
movq %r14, 0x50(%rsp)
movq %rbx, 0x58(%rsp)
movq %rbp, 0x60(%rsp)
movq %r12, 0x68(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x88(%rsp)
leaq (,%rbx,8), %r14
leaq 0x2cb02(%rip), %r12     # 0xf5965
movq %r14, %rdi
movq %r12, %rsi
movl $0x1d5, %edx            # imm = 0x1D5
callq 0xccb0
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %r12, %rsi
movl $0x1d6, %edx            # imm = 0x1D6
callq 0xccb0
movq %rax, %r13
movq %r14, %rdi
movq %r12, %rsi
movl $0x1d7, %edx            # imm = 0x1D7
callq 0xccb0
movq %rax, %rbp
movq %r14, %rdi
movq %r12, %rsi
movl $0x1d8, %edx            # imm = 0x1D8
callq 0xccb0
movq %rax, 0x18(%rsp)
movq %r14, %rdi
movq %r12, %rsi
movl $0x1d9, %edx            # imm = 0x1D9
callq 0xccb0
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
callq 0x4d6a4
movq %rax, %rcx
cmpq %r15, %rbx
je 0xc8f22
movq 0x8(%rsp), %rax
movq %rcx, (%rax,%r15,8)
movq %rbx, %rdi
callq 0x4d6a4
movq %rax, (%r13,%r15,8)
movq %rbx, %rdi
callq 0x4d6a4
movq %rax, (%rbp,%r15,8)
movq %rbx, %rdi
callq 0x4d6a4
movq 0x18(%rsp), %rcx
movq %rax, (%rcx,%r15,8)
movq %rbx, %rdi
callq 0x4d6a4
movq 0x10(%rsp), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
jmp 0xc8ec8
movq %rcx, 0x28(%rsp)
movq %r13, 0x38(%rsp)
movq %rbx, %rdi
callq 0x4d6a4
movq %rax, %r15
movq %rbx, %rdi
callq 0x4d6a4
movq %rax, 0x40(%rsp)
pushq $0x8
popq %rdi
callq 0x4b380
movq %rax, 0x48(%rsp)
xorl %r14d, %r14d
leaq 0x50(%rsp), %r13
leaq 0xa8(%rsp), %r12
leaq 0x98(%rsp), %rbx
movq %rbp, 0x30(%rsp)
movq 0x58(%rsp), %rax
cmpq %rax, %r14
jae 0xc9047
xorl %ebp, %ebp
cmpq %rax, %rbp
jae 0xc8ff5
movq %r13, %rdi
movq %r14, %rsi
callq 0xc9657
movq %rax, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0xc9657
movq %rax, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x5d1b5
testb %al, %al
je 0xc8feb
movq %r13, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0xc96aa
testb %al, %al
je 0xc8feb
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rdi
movq %rbp, %rsi
callq 0x4d737
incq %rbp
movq 0x58(%rsp), %rax
jmp 0xc8f7e
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rdi
movq %r14, %rsi
callq 0x4de2d
incq %r14
testb %al, %al
movq 0x30(%rsp), %rbp
jne 0xc8f6e
movq 0x64f9b(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x103f(%rip), %rsi      # 0xca066
leaq 0x2ca22(%rip), %rdx     # 0xf5a50
leaq 0x2ca11(%rip), %rcx     # 0xf5a46
leaq 0x2c929(%rip), %r8      # 0xf5965
movl $0x123, %r9d            # imm = 0x123
jmp 0xc958d
leaq 0xbdc(%rip), %rdx       # 0xc9c2a
leaq 0x50(%rsp), %rbx
movq 0x38(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xc9b7c
leaq 0xc3b(%rip), %rdx       # 0xc9ca5
movq %rbp, %rdi
movq %rbx, %rsi
callq 0xc9b7c
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x4d6a4
movq %rax, 0x20(%rsp)
xorl %r12d, %r12d
xorl %ebp, %ebp
movq %rbx, 0x90(%rsp)
cmpq %rbx, %rbp
je 0xc9170
movq (%r14,%rbp,8), %rdi
callq 0x4de87
testb %al, %al
je 0xc911d
movq (%r14,%rbp,8), %rdi
callq 0x4dfa3
movq %rax, %rbx
pushq $-0x1
popq %r13
movq (%r14,%rbp,8), %rdi
callq 0x4e012
cmpq %rax, %rbx
je 0xc9136
movq 0x18(%rsp), %rax
movq (%rax,%rbx,8), %rsi
movq 0x8(%rsp), %rax
movq (%rax,%rbp,8), %rdx
movq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x4d9a9
movq %r14, %rdi
callq 0x4e0f8
cmpq $-0x1, %r13
je 0xc9101
cmpq %r12, %rax
cmovaq %rax, %r12
cmovaq %rbx, %r13
jmp 0xc9107
movq %rax, %r12
movq %rbx, %r13
movq 0x38(%rsp), %r14
movq (%r14,%rbp,8), %rdi
movq %rbx, %rsi
callq 0x4e055
movq %rax, %rbx
jmp 0xc90b9
movq 0x18(%rsp), %rax
movq (%rax,%rbp,8), %rdi
movq 0x8(%rsp), %rax
movq (%rax,%rbp,8), %rsi
callq 0x4d873
jmp 0xc9168
cmpq $-0x1, %r13
je 0xc9599
movq 0x18(%rsp), %rax
movq (%rax,%rbp,8), %rdi
movq (%rax,%r13,8), %rsi
movq 0x8(%rsp), %rax
movq (%rax,%rbp,8), %rdx
callq 0x4d9a9
movq 0x38(%rsp), %r14
movq 0x90(%rsp), %rbx
incq %rbp
jmp 0xc9093
movq 0x20(%rsp), %rdi
callq 0x4e2ea
movq 0x58(%rsp), %r14
movq %r14, %rdi
callq 0x4d6a4
movq %rax, 0x20(%rsp)
xorl %r12d, %r12d
pushq $-0x1
popq %r13
decq %r14
movq 0x30(%rsp), %rbp
testq %r14, %r14
js 0xc9268
movq (%rbp,%r14,8), %rdi
callq 0x4de87
testb %al, %al
jne 0xc91ce
movq 0x10(%rsp), %rax
movq (%rax,%r14,8), %rdi
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rsi
callq 0x4d873
decq %r14
jmp 0xc919b
movq (%rbp,%r14,8), %rdi
callq 0x4dfa3
movq %rax, %rbx
movq (%rbp,%r14,8), %rdi
callq 0x4e012
cmpq %rax, %rbx
je 0xc923e
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rsi
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rdx
movq 0x20(%rsp), %rbp
movq %rbp, %rdi
callq 0x4d9a9
movq %rbp, %rdi
callq 0x4e0f8
cmpq $-0x1, %r13
je 0xc9224
cmpq %r12, %rax
cmovaq %rax, %r12
cmovaq %rbx, %r13
jmp 0xc922a
movq %rax, %r12
movq %rbx, %r13
movq 0x30(%rsp), %rbp
movq (%rbp,%r14,8), %rdi
movq %rbx, %rsi
callq 0x4e055
jmp 0xc91d8
cmpq $-0x1, %r13
je 0xc9626
movq 0x10(%rsp), %rax
movq (%rax,%r14,8), %rdi
movq (%rax,%r13,8), %rsi
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rdx
callq 0x4d9a9
jmp 0xc918f
movq 0x20(%rsp), %rdi
callq 0x4e2ea
xorl %ebx, %ebx
movq 0x28(%rsp), %r12
cmpq 0x58(%rsp), %rbx
jae 0xc9290
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4d737
incq %rbx
jmp 0xc9279
movq %r12, %rdi
callq 0x4e0f8
movq %rax, %rbx
xorl %r14d, %r14d
leaq 0x50(%rsp), %r13
movq %r12, %rdi
callq 0x4de87
testb %al, %al
je 0xc9468
movq %rbx, 0x20(%rsp)
movq %r12, %rdi
callq 0x4dfa3
movq %rax, %rbx
pushq $-0x1
popq %rbp
movq %r12, %rdi
callq 0x4e012
cmpq %rax, %rbx
je 0xc9345
movq 0x18(%rsp), %rax
movq (%rax,%rbx,8), %rsi
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rdx
cmpq $-0x1, %rbp
je 0xc931a
movq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0x4d9a9
movq %r12, %rdi
callq 0x4e0f8
cmpq %r14, %rax
jbe 0xc9330
movq %rax, %r12
movq %r15, %rdi
movq 0x40(%rsp), %rsi
callq 0x4d873
movq %r12, %r14
jmp 0xc932d
movq %r15, %rdi
callq 0x4d9a9
movq %r15, %rdi
callq 0x4e0f8
movq %rax, %r14
movq %rbx, %rbp
movq 0x28(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4e055
movq %rax, %rbx
jmp 0xc92c6
movq 0x58(%rsp), %rdi
callq 0x4d6a4
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4d7e3
movq %rbx, %rdi
callq 0x4dfa3
movq %rax, %r12
movq %rbx, %rdi
callq 0x4e012
cmpq %rax, %r12
je 0xc93bd
movq %r15, %rdi
callq 0x4dfa3
movq %rax, %rbp
movq %r15, %rdi
callq 0x4e012
cmpq %rax, %rbp
je 0xc9559
movq %r13, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0xc96aa
testb %al, %al
je 0xc93b0
movq %r15, %rdi
movq %rbp, %rsi
callq 0x4e055
jmp 0xc937d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4e055
jmp 0xc9365
movq %rbx, %rdi
callq 0x4e2ea
cmpq $0x0, 0x80(%rsp)
je 0xc9409
movq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0x4ba50
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4dd9b
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x60(%rsp), %rcx
movq 0x88(%rsp), %r8
movq %rbx, %rdi
callq *0x80(%rsp)
movq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x4da77
movq %r12, %rdi
callq 0x4e0f8
movq %rax, %rbx
cmpq 0x20(%rsp), %rax
movq 0x30(%rsp), %rbp
jb 0xc92a3
movq 0x64b7a(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xc1e(%rip), %rsi       # 0xca066
leaq 0x2c5db(%rip), %rdx     # 0xf5a2a
leaq 0x2c5a7(%rip), %rcx     # 0xf59fd
leaq 0x2c508(%rip), %r8      # 0xf5965
movl $0x21e, %r9d            # imm = 0x21E
jmp 0xc958d
xorl %ebx, %ebx
movq 0x38(%rsp), %r14
cmpq 0x58(%rsp), %rbx
jae 0xc94b8
movq 0x8(%rsp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x4e2ea
movq (%r14,%rbx,8), %rdi
callq 0x4e2ea
movq (%rbp,%rbx,8), %rdi
callq 0x4e2ea
movq 0x18(%rsp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x4e2ea
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x4e2ea
incq %rbx
jmp 0xc946f
leaq 0x2c4a6(%rip), %rbx     # 0xf5965
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
movl $0x22b, %edx            # imm = 0x22B
callq 0xd249
movq %r14, %rdi
movq %rbx, %rsi
movl $0x22c, %edx            # imm = 0x22C
callq 0xd249
movq %rbp, %rdi
movq %rbx, %rsi
movl $0x22d, %edx            # imm = 0x22D
callq 0xd249
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
movl $0x22e, %edx            # imm = 0x22E
callq 0xd249
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
movl $0x22f, %edx            # imm = 0x22F
callq 0xd249
movq %r12, %rdi
callq 0x4e2ea
movq %r15, %rdi
callq 0x4e2ea
movq 0x40(%rsp), %rdi
callq 0x4e2ea
movq 0x48(%rsp), %rdi
callq 0x4c19d
leaq 0x2c4b0(%rip), %rdi     # 0xf59f0
xorl %eax, %eax
callq 0xc5d2
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x4e2ea
movq 0x64a50(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xaf4(%rip), %rsi       # 0xca066
leaq 0x2c491(%rip), %rdx     # 0xf5a0a
leaq 0x2c47d(%rip), %rcx     # 0xf59fd
leaq 0x2c3de(%rip), %r8      # 0xf5965
movl $0x20e, %r9d            # imm = 0x20E
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
movq 0x64a18(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xabc(%rip), %rsi       # 0xca066
leaq 0x2c630(%rip), %rdx     # 0xf5be1
leaq 0x2c640(%rip), %rcx     # 0xf5bf8
leaq 0x2c3a6(%rip), %r8      # 0xf5965
movl $0x17d, %r9d            # imm = 0x17D
jmp 0xc958d
movq 0x649ea(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xa8e(%rip), %rsi       # 0xca066
leaq 0x2c241(%rip), %rdx     # 0xf5820
leaq 0x2c36f(%rip), %rcx     # 0xf5955
leaq 0x2c378(%rip), %r8      # 0xf5965
movl $0x23d, %r9d            # imm = 0x23D
jmp 0xc958d
movq 0x649bc(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xa60(%rip), %rsi       # 0xca066
leaq 0x2c279(%rip), %rdx     # 0xf5886
leaq 0x2c341(%rip), %rcx     # 0xf5955
leaq 0x2c34a(%rip), %r8      # 0xf5965
movl $0x23e, %r9d            # imm = 0x23E
jmp 0xc958d
movq 0x6498b(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xa2f(%rip), %rsi       # 0xca066
leaq 0x2c5a3(%rip), %rdx     # 0xf5be1
leaq 0x2c5bd(%rip), %rcx     # 0xf5c02
leaq 0x2c319(%rip), %r8      # 0xf5965
movl $0x1a6, %r9d            # imm = 0x1A6
jmp 0xc958d