// File: /workspace/github_cpp_makefile_star2_O2/BenLangmead[P]bowtie/./multikey_qsort.h
// Function: bool assertPartitionedSuf2<S2bDnaString>(S2bDnaString const&, unsigned long*, unsigned long, int, int, unsigned long, unsigned long, unsigned long)
bool assertPartitionedSuf2(
	const THost& host,
	TIndexOffU *s,
	size_t slen,
	int hi,
	int pivot,
	size_t begin,
	size_t end,
	size_t depth)
{
	size_t hlen = host.length();
	int state = 0; // 0 -> < section, 1 -> = section, 2 -> > section
	for(size_t i = begin; i < end; i++) {
		switch(state) {
		case 0:
			if       (CHAR_AT_SUF(i, depth) == pivot) { state = 1; break; }
			else if  (CHAR_AT_SUF(i, depth) > pivot)  { state = 2; break; }
			assert_lt(CHAR_AT_SUF(i, depth), pivot);  break;
		case 1:
			if       (CHAR_AT_SUF(i, depth) > pivot)  { state = 2; break; }
			assert_eq(CHAR_AT_SUF(i, depth), pivot);  break;
		case 2:
			assert_gt(CHAR_AT_SUF(i, depth), pivot);  break;
		}
	}
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r12
movl %r8d, %ebx
movl %ecx, %ebp
movq %rsi, %r13
movq 0x58(%rsp), %r14
movq %rdi, 0x8(%rsp)
movq 0x18(%rdi), %r15
xorl %eax, %eax
cmpq 0x50(%rsp), %r12
jae 0x2532a
movq (%r13,%r12,8), %rsi
addq %r14, %rsi
movl %ebp, %ecx
cmpl $0x2, %eax
je 0x252a5
cmpl $0x1, %eax
jne 0x252c0
cmpq %r15, %rsi
jae 0x2526e
movq 0x8(%rsp), %rdi
callq 0x22204
movsbl %al, %ecx
pushq $0x2
popq %rax
cmpl %ebx, %ecx
jg 0x25322
movq (%r13,%r12,8), %rsi
addq %r14, %rsi
movl %ebp, %ecx
cmpq %r15, %rsi
jae 0x25295
movq 0x8(%rsp), %rdi
callq 0x22204
movsbl %al, %ecx
pushq $0x1
popq %rax
cmpl %ebx, %ecx
je 0x25322
jmp 0x253fe
cmpq %r15, %rsi
jae 0x252b7
movq 0x8(%rsp), %rdi
callq 0x22204
movsbl %al, %ecx
pushq $0x2
popq %rax
cmpl %ebx, %ecx
jg 0x25322
jmp 0x2533b
cmpq %r15, %rsi
jae 0x252d2
movq 0x8(%rsp), %rdi
callq 0x22204
movsbl %al, %ecx
pushq $0x1
popq %rax
cmpl %ebx, %ecx
je 0x25322
movq (%r13,%r12,8), %rsi
addq %r14, %rsi
movl %ebp, %ecx
cmpq %r15, %rsi
jae 0x252f5
movq 0x8(%rsp), %rdi
callq 0x22204
movsbl %al, %ecx
pushq $0x2
popq %rax
cmpl %ebx, %ecx
jg 0x25322
movq (%r13,%r12,8), %rsi
addq %r14, %rsi
movl %ebp, %ecx
cmpq %r15, %rsi
jae 0x25318
movq 0x8(%rsp), %rdi
callq 0x22204
movsbl %al, %ecx
xorl %eax, %eax
cmpl %ebx, %ecx
jge 0x2556a
incq %r12
jmp 0x2523d
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xec76(%rip), %rdi      # 0x33fb8
leaq 0x2def(%rip), %rsi      # 0x28138
callq 0x42d0
movq %rax, 0x10(%rsp)
addq (%r13,%r12,8), %r14
cmpq %r15, %r14
jae 0x2536d
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x22204
movsbl %al, %ebp
movq 0x10(%rsp), %rdi
movl %ebp, %esi
callq 0x45d0
leaq 0x2dce(%rip), %rsi      # 0x2814e
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
movl %ebx, %esi
callq 0x45d0
leaq 0x507f(%rip), %rsi      # 0x2a418
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
callq 0x4130
movq 0xec08(%rip), %rdi      # 0x33fb8
leaq 0x5966(%rip), %rbx      # 0x2ad1d
movq %rbx, %rsi
callq 0x42d0
leaq 0x4375(%rip), %rsi      # 0x2973b
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
movl $0x120, %esi            # imm = 0x120
callq 0x45d0
movq %rax, %rdi
callq 0x4130
leaq 0x4231(%rip), %rdi      # 0x2961b
leaq 0x6730(%rip), %rcx      # 0x2bb21
movq %rbx, %rsi
movl $0x120, %edx            # imm = 0x120
callq 0x4190
movq 0xebb3(%rip), %rdi      # 0x33fb8
leaq 0x2d4d(%rip), %rsi      # 0x28159
callq 0x42d0
movq %rax, 0x10(%rsp)
movq (%r13,%r12,8), %rsi
addq %r14, %rsi
movl %ebp, %eax
cmpq %r15, %rsi
jae 0x25432
movq 0x8(%rsp), %rdi
callq 0x22204
movsbl %al, %eax
movq 0x10(%rsp), %rdi
movl %eax, %esi
callq 0x45d0
leaq 0x2d2a(%rip), %rsi      # 0x2816f
movq %rax, %rdi
callq 0x42d0
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
movl 0x18(%rax,%rdx), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movq %rax, 0x10(%rsp)
movl %ecx, 0x18(%rax,%rdx)
addq (%r13,%r12,8), %r14
cmpq %r15, %r14
jae 0x25481
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x22204
movsbl %al, %ebp
movq 0x10(%rsp), %rdi
movl %ebp, %esi
callq 0x45d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
leaq 0x2ccb(%rip), %rsi      # 0x28174
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
movl %ebx, %esi
callq 0x45d0
leaq 0x2cad(%rip), %rsi      # 0x2816f
movq %rax, %rdi
callq 0x42d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
movq %rax, %rdi
movl %ebx, %esi
callq 0x45d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
leaq 0x4f13(%rip), %rsi      # 0x2a418
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
callq 0x4130
movq 0xea9c(%rip), %rdi      # 0x33fb8
leaq 0x57fa(%rip), %rbx      # 0x2ad1d
movq %rbx, %rsi
callq 0x42d0
leaq 0x4209(%rip), %rsi      # 0x2973b
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
movl $0x11e, %esi            # imm = 0x11E
callq 0x45d0
movq %rax, %rdi
callq 0x4130
leaq 0x40c5(%rip), %rdi      # 0x2961b
leaq 0x65c4(%rip), %rcx      # 0x2bb21
movq %rbx, %rsi
movl $0x11e, %edx            # imm = 0x11E
callq 0x4190
movq 0xea47(%rip), %rdi      # 0x33fb8
leaq 0x2d0f(%rip), %rsi      # 0x28287
callq 0x42d0
movq %rax, 0x10(%rsp)
addq (%r13,%r12,8), %r14
cmpq %r15, %r14
jae 0x2559c
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x22204
movsbl %al, %ebp
movq 0x10(%rsp), %rdi
movl %ebp, %esi
callq 0x45d0
leaq 0x2cee(%rip), %rsi      # 0x2829d
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
movl %ebx, %esi
callq 0x45d0
leaq 0x4e50(%rip), %rsi      # 0x2a418
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
callq 0x4130
movq 0xe9d9(%rip), %rdi      # 0x33fb8
leaq 0x5737(%rip), %rbx      # 0x2ad1d
movq %rbx, %rsi
callq 0x42d0
leaq 0x4146(%rip), %rsi      # 0x2973b
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
movl $0x11b, %esi            # imm = 0x11B
callq 0x45d0
movq %rax, %rdi
callq 0x4130
leaq 0x4002(%rip), %rdi      # 0x2961b
leaq 0x6501(%rip), %rcx      # 0x2bb21
movq %rbx, %rsi
movl $0x11b, %edx            # imm = 0x11B
callq 0x4190
nopl (%rax)