// File: /workspace/github_cpp_makefile_star2_O1/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: void pugi::impl::(anonymous namespace)::sort<pugi::xpath_node*, pugi::impl::(anonymous namespace)::duplicate_comparator>(pugi::xpath_node*, pugi::xpath_node*, pugi::impl::(anonymous namespace)::duplicate_comparator const&)
void sort(I begin, I end, const Pred& pred)
	{
		// sort large chunks
		while (end - begin > 32)
		{
			// find median element
			I middle = begin + (end - begin) / 2;
			median(begin, middle, end - 1, pred);

			// partition in three chunks (< = >)
			I eqbeg, eqend;
			partition(begin, middle, end, pred, &eqbeg, &eqend);

			// loop on larger half
			if (eqbeg - begin > end - eqend)
			{
				sort(eqend, end, pred);
				end = eqbeg;
			}
			else
			{
				sort(begin, eqbeg, pred);
				begin = eqend;
			}
		}

		// insertion sort small chunk
		if (begin != end) insertion_sort(begin, end, pred, &*begin);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %r13
subq %rdi, %r13
sarq $0x4, %r13
cmpq $0x21, %r13
jl 0x183f2
movq %r14, %rax
shrq %r13
shlq $0x4, %r13
leaq (%rbx,%r13), %rsi
leaq -0x10(%r14), %r12
movq %r12, %rbp
subq %rbx, %rbp
sarq $0x4, %rbp
cmpq $0x28, %rbp
movq %rax, 0x20(%rsp)
jg 0x18112
movq %rbx, %rdi
movq %r12, %rdx
jmp 0x18179
incq %rbp
shrq $0x3, %rbp
movq %rbp, %r15
shlq $0x4, %r15
leaq (%rbx,%r15), %rax
movq %rax, 0x18(%rsp)
shlq $0x5, %rbp
leaq (%rbx,%rbp), %rdx
movq %rbx, %rdi
movq %rsi, 0x10(%rsp)
movq %rax, %rsi
callq 0x184f9
movq 0x10(%rsp), %rsi
movq %rsi, %rdi
subq %r15, %rdi
leaq (%rsi,%r15), %rdx
callq 0x184f9
movq %r12, %rdi
subq %rbp, %rdi
movq %r12, %rbp
subq %r15, %rbp
movq %rbp, %rsi
movq %r12, %rdx
callq 0x184f9
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rbp, %rdx
callq 0x184f9
movq %r13, %rax
movq %rax, %rdx
testq %rax, %rax
je 0x181a4
movq -0x10(%rbx,%rdx), %rax
cmpq (%rbx,%rdx), %rax
jne 0x181a4
leaq -0x10(%rdx), %rax
movq 0x8(%rbx,%rdx), %rcx
cmpq %rcx, -0x8(%rbx,%rdx)
je 0x18181
addq %rbx, %rdx
leaq (%rbx,%r13), %rax
addq $0x10, %rax
movq %rax, %r15
cmpq %r14, %rax
je 0x181cd
movq (%r15), %rax
cmpq (%rdx), %rax
jne 0x181cd
leaq 0x10(%r15), %rax
movq 0x8(%rdx), %rcx
cmpq %rcx, 0x8(%r15)
je 0x181af
movq %rdx, %rcx
movq %r15, %rax
cmpq %r14, %rax
sete %sil
je 0x1824c
xorl %esi, %esi
movq 0x8(%rdx), %rdi
movq 0x8(%rax), %r8
testq %rdi, %rdi
je 0x181fe
testq %r8, %r8
sete %r9b
cmpq %r8, %rdi
setb %r8b
orb %r9b, %r8b
jmp 0x18212
testq %r8, %r8
sete %r9b
movq (%rax), %r8
cmpq %r8, (%rdx)
setb %r8b
andb %r9b, %r8b
testb %r8b, %r8b
jne 0x1823f
movq (%rax), %r8
cmpq (%rdx), %r8
jne 0x1824c
cmpq %rdi, 0x8(%rax)
jne 0x1824c
movups (%rax), %xmm0
movaps %xmm0, (%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rax)
movaps (%rsp), %xmm0
movups %xmm0, (%r15)
addq $0x10, %r15
addq $0x10, %rax
cmpq %r14, %rax
sete %sil
jne 0x181de
cmpq %rbx, %rcx
sete %r8b
movq %rdx, %r12
je 0x182d3
leaq -0x10(%rcx), %rdi
movq -0x8(%rcx), %rdx
movq 0x8(%r12), %r9
testq %rdx, %rdx
je 0x1827d
testq %r9, %r9
sete %r10b
cmpq %r9, %rdx
setb %r9b
orb %r10b, %r9b
jmp 0x18292
testq %r9, %r9
sete %r10b
movq (%r12), %r9
cmpq %r9, (%rdi)
setb %r9b
andb %r10b, %r9b
testb %r9b, %r9b
jne 0x182c5
movq (%r12), %r9
cmpq (%rdi), %r9
jne 0x182d3
cmpq %rdx, 0x8(%r12)
jne 0x182d3
movups (%rdi), %xmm0
movaps %xmm0, (%rsp)
movups -0x10(%r12), %xmm0
movups %xmm0, (%rdi)
movaps (%rsp), %xmm0
movups %xmm0, -0x10(%r12)
addq $-0x10, %r12
movq %rdi, %rcx
cmpq %rbx, %rdi
sete %r8b
jne 0x18258
jmp 0x182d6
movq %rcx, %rdi
movl %esi, %ecx
andb %r8b, %cl
testb $0x1, %cl
jne 0x183a5
testb $0x1, %sil
je 0x1832d
leaq -0x10(%rdi), %rcx
leaq -0x10(%r12), %rdx
cmpq %r12, %rdi
je 0x1830c
movups (%rcx), %xmm0
movaps %xmm0, (%rsp)
movups (%rdx), %xmm0
movups %xmm0, (%rcx)
movaps (%rsp), %xmm0
movups %xmm0, (%rdx)
movups (%rdx), %xmm0
movaps %xmm0, (%rsp)
movups -0x10(%r15), %xmm0
movups %xmm0, (%rdx)
movaps (%rsp), %xmm0
movups %xmm0, -0x10(%r15)
addq $-0x10, %r15
jmp 0x181d3
testb $0x1, %r8b
je 0x1837f
cmpq %rax, %r15
je 0x18352
movups (%r12), %xmm0
movaps %xmm0, (%rsp)
movups (%r15), %xmm0
movups %xmm0, (%r12)
movaps (%rsp), %xmm0
movups %xmm0, (%r15)
addq $0x10, %r15
movups (%rax), %xmm0
movaps %xmm0, (%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rax)
addq $0x10, %rax
leaq 0x10(%r12), %rdx
movaps (%rsp), %xmm0
movups %xmm0, (%r12)
movq %rdi, %rcx
jmp 0x181d3
movups (%rax), %xmm0
movaps %xmm0, (%rsp)
movups -0x10(%rdi), %xmm0
movups %xmm0, (%rax)
addq $0x10, %rax
leaq -0x10(%rdi), %rcx
movaps (%rsp), %xmm0
movups %xmm0, -0x10(%rdi)
movq %r12, %rdx
jmp 0x181d3
movq %r12, %rax
subq %rbx, %rax
movq 0x20(%rsp), %rcx
subq %r15, %rcx
cmpq %rcx, %rax
jle 0x183c8
movq %r15, %rdi
movq %r14, %rsi
callq 0x180bb
movq %r12, %r14
jmp 0x183d9
movq %rbx, %rdi
movq %r12, %rsi
callq 0x180bb
movq %r14, %r12
movq %r15, %rbx
movq %r12, %r13
subq %rbx, %r13
sarq $0x4, %r13
movq %r12, %rax
cmpq $0x20, %r13
jg 0x180e6
jmp 0x183f5
movq %r14, %r12
cmpq %r12, %rbx
je 0x184ea
leaq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
cmpq %r12, %rax
je 0x184ea
leaq 0x8(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0x18(%rbx), %r13
xorl %ebp, %ebp
movq 0x10(%rsp), %rax
movq %rbx, %rdi
movq 0x10(%rdi), %r15
movq 0x18(%rdi), %r14
movq %rax, %rdi
movq 0x8(%rbx), %rax
testq %r14, %r14
je 0x1844b
testq %rax, %rax
sete %dl
cmpq %rax, %r14
setb %cl
orb %dl, %cl
jmp 0x18459
testq %rax, %rax
sete %al
cmpq (%rbx), %r15
setb %cl
andb %al, %cl
movq %r13, %rax
testb %cl, %cl
je 0x1848c
movq %rbp, %rdx
shlq $0x4, %rdx
addq $0x10, %rdx
movq %rdi, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x4650
movq 0x20(%rsp), %rdi
movq %r15, (%rbx)
movq 0x18(%rsp), %rax
jmp 0x184d3
leaq -0x18(%rax), %rcx
movq -0x10(%rax), %rdx
testq %r14, %r14
je 0x184ab
testq %rdx, %rdx
sete %sil
cmpq %rdx, %r14
setb %dl
orb %sil, %dl
jmp 0x184bb
testq %rdx, %rdx
sete %sil
cmpq (%rcx), %r15
setb %dl
andb %sil, %dl
testb %dl, %dl
je 0x184cf
leaq -0x8(%rax), %rdx
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
addq $-0x10, %rax
jmp 0x1848c
movq %r15, -0x8(%rax)
movq %r14, (%rax)
leaq 0x10(%rdi), %rax
incq %rbp
addq $0x10, %r13
cmpq %r12, %rax
jne 0x18427
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq