// File: /workspace/github_cpp_makefile_star2_O1/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 0x3133
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), %r13d
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, %r13d
testl %r13d, %r13d
jle 0x30fa
cmpl $0x3, 0x10(%rsp)
jl 0x30fa
movq 0x10(%rsp), %rax
leal -0x2(%rax), %ebp
xorl %r15d, %r15d
movslq %r15d, %rax
movq (%r14), %rcx
movl (%rcx,%rax,4), %edx
movslq %ebp, %r12
movl (%rcx,%r12,4), %esi
addl %edx, %esi
cmpl %r13d, %esi
jl 0x30ee
jle 0x2feb
decl %ebp
jmp 0x30f1
movq 0x30(%rbx), %rsi
movq 0x40(%rbx), %rdi
addq $-0x4, %rdi
cmpq %rdi, %rsi
je 0x3008
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x30(%rbx)
jmp 0x3014
leaq (%rcx,%rax,4), %rsi
movq %rbx, %rdi
callq 0x4ba6
shlq $0x2, %r12
addq (%r14), %r12
movq 0x30(%rbx), %rax
movq 0x40(%rbx), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x303c
movl (%r12), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x3047
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4ba6
movq 0x40(%rsp), %rax
leaq (,%rax,4), %rsi
addq (%r14), %rsi
movq 0x30(%rbx), %rax
movq 0x40(%rbx), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x3076
movl (%rsi), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x307e
movq %rbx, %rdi
callq 0x4ba6
movq 0x18(%rsp), %rax
leaq (,%rax,4), %rsi
addq (%r14), %rsi
movq 0x30(%rbx), %rax
movq 0x40(%rbx), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x30ad
movl (%rsi), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x30b5
movq %rbx, %rdi
callq 0x4ba6
movq 0x8(%rsp), %rax
leaq (,%rax,4), %rsi
addq (%r14), %rsi
movq 0x30(%rbx), %rax
movq 0x40(%rbx), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x30e4
movl (%rsi), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x30ec
movq %rbx, %rdi
callq 0x4ba6
decl %ebp
incl %r15d
cmpl %ebp, %r15d
jl 0x2fc7
cmpl $0x3, 0x10(%rsp)
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %rax
jg 0x2f76
leaq -0x1(%rcx), %rax
cmpl $0x3, %ecx
movq %rax, %rcx
jg 0x2f6e
movq 0x28(%rsp), %rcx
decq %rcx
cmpq $0x5, 0x20(%rsp)
jg 0x2f57
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq