// File: /workspace/github_cpp_makefile_star2_O3/It4innovations[P]Handicap/src/GraphLabelings/../Solvers/kSumProblemSolver.h
// Function: kSumProblemSolver<int>::solve5SUM(std::unique_ptr<int [], std::default_delete<int []>> const&, std::stack<int, std::deque<int, std::allocator<int>>>&)
void solve5SUM(const std::unique_ptr<T[]> & labels, std::stack<T> & solution) {
			int sum, lhs, rhs, searchWeight;
			for (int k = labelsCount - 1; k >= 4; --k) {
				for (int i = k-1; i >= 3; --i) {
					for (int j = i - 1; j >= 2; --j) {
						lhs = 0;
						rhs = j - 1;
						searchWeight = searchNumber - labels[i] - labels[j] - labels[k];
						if (searchWeight <= 0) continue;
						while (lhs < rhs) {
							sum = labels[lhs] + labels[rhs];
							if (sum < searchWeight) {
								lhs += 1;
							} else if (sum > searchWeight) {
								rhs -= 1;
							} else {
								solution.emplace(labels[lhs]);
								solution.emplace(labels[rhs]);
								solution.emplace(labels[j]);
								solution.emplace(labels[i]);
								solution.emplace(labels[k]);
								rhs -= 1;
								lhs += 1;
							}
						}
					}
				}
			}
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, 0x30(%rsp)
movslq (%rdi), %rcx
movq %rcx, 0x8(%rsp)
cmpq $0x5, %rcx
jl 0x30e7
movq %rdx, %rbx
movq %rsi, %r14
movq 0x8(%rsp), %rax
leal -0x2(%rax), %ecx
movq 0x8(%rsp), %rax
movq %rax, 0x20(%rsp)
decq %rax
movq %rax, 0x8(%rsp)
movq %rcx, 0x28(%rsp)
movq %rcx, %rax
movq %rcx, 0x18(%rsp)
movq %rax, 0x10(%rsp)
leaq -0x1(%rax), %rsi
movq 0x30(%rsp), %rax
movl 0x4(%rax), %r15d
movq (%r14), %rax
movl (%rax,%rcx,4), %ecx
movq %rsi, 0x38(%rsp)
movl %esi, %edx
movq %rdx, 0x40(%rsp)
addl (%rax,%rdx,4), %ecx
movq 0x8(%rsp), %rdx
addl (%rax,%rdx,4), %ecx
subl %ecx, %r15d
testl %r15d, %r15d
jle 0x30ae
cmpl $0x3, 0x10(%rsp)
jl 0x30ae
movq 0x10(%rsp), %rax
leal -0x2(%rax), %ebp
xorl %r13d, %r13d
movslq %r13d, %rdx
movq (%r14), %rsi
movl (%rsi,%rdx,4), %edi
movslq %ebp, %r12
movl (%rsi,%r12,4), %eax
addl %edi, %eax
cmpl %r15d, %eax
jl 0x30a2
jle 0x2f9f
decl %ebp
jmp 0x30a5
movq 0x30(%rbx), %rax
movq 0x40(%rbx), %rcx
leaq -0x4(%rcx), %r8
cmpq %r8, %rax
je 0x2fbc
movl %edi, (%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x2fd0
leaq (%rsi,%rdx,4), %rsi
movq %rbx, %rdi
callq 0x4b4e
movq 0x30(%rbx), %rax
movq 0x40(%rbx), %rcx
shlq $0x2, %r12
addq (%r14), %r12
leaq -0x4(%rcx), %rdx
cmpq %rdx, %rax
je 0x2ff0
movl (%r12), %edx
movl %edx, (%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x3003
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4b4e
movq 0x30(%rbx), %rax
movq 0x40(%rbx), %rcx
movq 0x40(%rsp), %rdx
leaq (,%rdx,4), %rsi
addq (%r14), %rsi
leaq -0x4(%rcx), %rdx
cmpq %rdx, %rax
je 0x302a
movl (%rsi), %edx
movl %edx, (%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x303a
movq %rbx, %rdi
callq 0x4b4e
movq 0x30(%rbx), %rax
movq 0x40(%rbx), %rcx
movq 0x18(%rsp), %rdx
leaq (,%rdx,4), %rsi
addq (%r14), %rsi
leaq -0x4(%rcx), %rdx
cmpq %rdx, %rax
je 0x3061
movl (%rsi), %edx
movl %edx, (%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x3071
movq %rbx, %rdi
callq 0x4b4e
movq 0x30(%rbx), %rax
movq 0x40(%rbx), %rcx
movq 0x8(%rsp), %rdx
leaq (,%rdx,4), %rsi
addq (%r14), %rsi
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x3098
movl (%rsi), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x30a0
movq %rbx, %rdi
callq 0x4b4e
decl %ebp
incl %r13d
cmpl %ebp, %r13d
jl 0x2f7b
cmpl $0x3, 0x10(%rsp)
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %rax
jg 0x2f2a
leaq -0x1(%rcx), %rax
cmpl $0x3, %ecx
movq %rax, %rcx
jg 0x2f22
movq 0x28(%rsp), %rcx
decq %rcx
cmpq $0x5, 0x20(%rsp)
jg 0x2f0b
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq