// File: /workspace/github_cpp_makefile_star2_O1/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
cmpq $0x0, 0x78(%rdi)
movb 0x16(%rdi), %al
je 0x19758
movl 0x18(%r15), %r13d
testb %al, %al
je 0x19718
leaq 0x20(%rsp), %rdi
callq 0x5200
leaq 0x30(%rsp), %rbp
leaq 0x14a2f(%rip), %rsi     # 0x2e0c0
movl $0x1a, %edx
movq %rbp, %rdi
callq 0x5400
movq 0x30(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %rbp, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x55a0
movq %rsp, %rsi
movq %r12, %rdi
callq 0x1b894
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x196fa
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x21857(%rip), %rsi     # 0x3af58
leaq 0x20(%rsp), %rdi
callq 0x5230
leaq 0xa0(%rsp), %rdi
callq 0x5130
movq 0x8(%r15), %rax
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq 0x78(%r12), %r9
movzbl 0x16(%r12), %eax
movzbl 0x14(%r12), %r10d
subq $0x8, %rsp
movq %r15, %rdi
movq %r13, %rdx
movq %r14, %rcx
movq %rbx, %r8
pushq %r10
pushq %rax
pushq $0x4
callq 0x1f9e4
addq $0x20, %rsp
jmp 0x1982a
testb %al, %al
je 0x197fd
leaq 0x20(%rsp), %rdi
callq 0x5200
leaq 0x30(%rsp), %r13
leaq 0x14965(%rip), %rsi     # 0x2e0db
movl $0x1e, %edx
movq %r13, %rdi
callq 0x5400
movq 0x30(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %r13, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x55a0
movq %rsp, %rsi
movq %r12, %rdi
callq 0x1b894
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x197df
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x21772(%rip), %rsi     # 0x3af58
leaq 0x20(%rsp), %rdi
callq 0x5230
leaq 0xa0(%rsp), %rdi
callq 0x5130
movzbl 0x16(%r12), %r8d
movzbl 0x14(%r12), %r9d
subq $0x8, %rsp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x4, %ecx
pushq %rax
callq 0x1fad5
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 0x1985a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x19888
jmp 0x19880
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19888
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x19888
jmp 0x19885
movq %rax, %rbx
jmp 0x19888
movq %rax, %rbx
movq 0x216c9(%rip), %rsi     # 0x3af58
leaq 0x20(%rsp), %rdi
callq 0x5230
leaq 0xa0(%rsp), %rdi
callq 0x5130
movq %rbx, %rdi
callq 0x56a0