// File: /workspace/github_cpp_makefile_star2_O3/BenLangmead[P]bowtie/./blockwise_sa.h
// Function: KarkkainenBlockwiseSA<SString<char>>::qsort(EList<unsigned int, 128>&)
void KarkkainenBlockwiseSA<TStr>::qsort(EList<TIndexOffU>& bucket) {
	const TStr& t = this->text();
	TIndexOffU *s = &bucket[0];
	TIndexOffU slen = (TIndexOffU)bucket.size();
	TIndexOffU len = (TIndexOffU)t.length();
	if(_dc != NULL) {
		// Use the difference cover as a tie-breaker if we have it
		VMSG_NL("  (Using difference cover)");
		// Extract the 'host' array because it's faster to work
		// with than the String<> container
		uint8_t *host = (uint8_t*)&t[0];
		mkeyQSortSufDcU8(t, host, len, s, slen, *_dc, 4,
				 this->verbose(), this->sanityCheck());
	} else {
		VMSG_NL("  (Not using difference cover)");
		// We don't have a difference cover - just do a normal
		// suffix sort
		mkeyQSortSuf(t, s, slen, 4,
			     this->verbose(), this->sanityCheck());
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rdi, %r12
movq 0x8(%rdi), %r15
movq 0x8(%rsi), %r14
movl 0x18(%rsi), %ebx
movq 0x78(%rdi), %r9
movb 0x16(%rdi), %al
testq %r9, %r9
je 0x19653
movl 0x18(%r15), %r13d
testb %al, %al
je 0x196ff
leaq 0x20(%rsp), %rdi
callq 0x5200
leaq 0x30(%rsp), %rbp
leaq 0x14b53(%rip), %rsi     # 0x2e110
movl $0x1a, %edx
movq %rbp, %rdi
callq 0x53f0
movq 0x30(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x5330
movsbl %al, %esi
movq %rbp, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x5580
movq %rsp, %rsi
movq %r12, %rdi
callq 0x1b716
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19626
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x2192b(%rip), %rsi     # 0x3af58
leaq 0x20(%rsp), %rdi
callq 0x5230
leaq 0xa0(%rsp), %rdi
callq 0x5130
movq 0x78(%r12), %r9
movb 0x16(%r12), %al
jmp 0x19701
testb %al, %al
je 0x19739
leaq 0x20(%rsp), %rdi
callq 0x5200
leaq 0x30(%rsp), %r13
leaq 0x14aba(%rip), %rsi     # 0x2e12b
movl $0x1e, %edx
movq %r13, %rdi
callq 0x53f0
movq 0x30(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x5330
movsbl %al, %esi
movq %r13, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x5580
movq %rsp, %rsi
movq %r12, %rdi
callq 0x1b716
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x196da
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x21877(%rip), %rsi     # 0x3af58
leaq 0x20(%rsp), %rdi
callq 0x5230
leaq 0xa0(%rsp), %rdi
callq 0x5130
movb 0x16(%r12), %al
jmp 0x1973b
xorl %eax, %eax
movq 0x8(%r15), %rcx
leaq 0x20(%rsp), %rsi
movq %rcx, (%rsi)
movzbl 0x14(%r12), %r10d
subq $0x8, %rsp
movzbl %al, %eax
andl $0x1, %eax
movq %r15, %rdi
movq %r13, %rdx
movq %r14, %rcx
movq %rbx, %r8
pushq %r10
pushq %rax
pushq $0x4
callq 0x1f792
addq $0x20, %rsp
jmp 0x1976c
xorl %eax, %eax
movzbl 0x14(%r12), %r9d
subq $0x8, %rsp
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
movzbl %al, %r8d
andl $0x1, %r8d
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x4, %ecx
pushq %r10
callq 0x1f878
addq $0x10, %rsp
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1979c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x197ca
jmp 0x197c2
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x197ca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x197ca
jmp 0x197c7
movq %rax, %rbx
jmp 0x197ca
movq %rax, %rbx
movq 0x21787(%rip), %rsi     # 0x3af58
leaq 0x20(%rsp), %rdi
callq 0x5230
leaq 0xa0(%rsp), %rdi
callq 0x5130
movq %rbx, %rdi
callq 0x5680