// File: /workspace/github_cpp_makefile_star2_O3/It4innovations[P]Handicap/src/GraphLabelings/GraphLabeling.h
// Function: GraphLabeling::GraphLabeling(std::shared_ptr<ExtendedHandicapGraph>&)
explicit GraphLabeling(std::shared_ptr<ExtendedHandicapGraph> & graph) : graph{graph} {
			solutionValidator = std::unique_ptr<SolutionValidator>(new SolutionValidator(graph));
			solutionPrinter = std::unique_ptr<SolutionPrinter>(new SolutionPrinter(graph));
			generator = std::unique_ptr<CombinatorialGenerator>(new CombinatorialGenerator(graph));
			this->solution = std::unique_ptr<LabelingSolution<int>>(
					new LabelingSolution<int>(graph->getRegularConstant(), graph->getVerticesCount() + 2,
					                          graph->getMissingLabel()));

			this->intermediateNSumResults = std::unique_ptr<std::stack<int>[]>(
					new std::stack<int>[graph->getVerticesCount() + 1]);
			this->disabledNumbersArray = std::unique_ptr<int[]>(new int[graph->getRegularConstant()]());

			for (int i = 0; i < graph->getVerticesCount() + 2; i++) {
				this->solution->setMagicWeight(i, (i == 0 || i == graph->getMissingLabel()) ? 0 :
				                                  graph->getMagicConstant() + i);
			}
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbp
movq %rdi, %rbx
movq (%rsi), %rax
movq %rax, (%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rdi)
testq %rax, %rax
je 0x5066
movq 0x5f68(%rip), %rcx      # 0xafc0
cmpb $0x0, (%rcx)
je 0x5062
incl 0x8(%rax)
jmp 0x5066
lock
incl 0x8(%rax)
leaq 0x10(%rbx), %r14
leaq 0x20(%rbx), %r12
leaq 0x28(%rbx), %r13
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movl $0xffffffff, 0x40(%rbx) # imm = 0xFFFFFFFF
movl $0x4, %edi
movq %rbx, 0x8(%rsp)
movq %r14, 0x30(%rsp)
movq %r12, 0x28(%rsp)
movq %r13, 0x18(%rsp)
callq 0x2180
movq (%rbp), %rcx
movl 0x4(%rcx), %ecx
addl $0x2, %ecx
movl %ecx, (%rax)
movq %rax, 0x18(%rbx)
movl $0x8, %edi
callq 0x2180
movq %rax, %r15
movq %rax, %rdi
movq %rbp, %rsi
callq 0x5674
movq (%r12), %rsi
movq %r15, (%r12)
testq %rsi, %rsi
je 0x50ec
movq %r12, %rdi
callq 0x598a
movl $0x38, %edi
callq 0x2180
movq %rax, %r15
movq %rax, %rdi
movq %rbp, %rsi
callq 0x56ec
movq $0x0, 0x10(%rsp)
movq (%r13), %rsi
movq %r15, (%r13)
testq %rsi, %rsi
je 0x5136
movq %r13, %rdi
callq 0x59ac
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x5136
leaq 0x10(%rsp), %rdi
callq 0x59ac
movl $0x60, %edi
callq 0x2180
movq %rax, %r15
movq (%rbp), %rax
movl 0x4(%rax), %edx
movl 0x8(%rax), %esi
addl $0x2, %edx
movl 0x10(%rax), %ecx
movq %r15, %rdi
callq 0x57ba
movq $0x0, 0x10(%rsp)
movq (%r14), %rsi
movq %r15, (%r14)
testq %rsi, %rsi
je 0x518b
movq %r14, %rdi
callq 0x5d34
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x518b
leaq 0x10(%rsp), %rdi
callq 0x5d34
movq (%rbp), %rax
movl 0x4(%rax), %eax
incl %eax
movslq %eax, %r12
movl $0x50, %ecx
movq %r12, %rax
mulq %rcx
seto %cl
orq $0x8, %rax
movq $-0x1, %rdi
testb %cl, %cl
cmoveq %rax, %rdi
callq 0x2030
movq %rax, %r15
movq %r12, (%rax)
leaq 0x8(%rax), %r13
testl %r12d, %r12d
je 0x5212
shlq $0x4, %r12
leaq (%r12,%r12,4), %rbx
negq %rbx
xorl %r14d, %r14d
movq %r13, %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%r12)
movups %xmm0, 0x30(%r12)
movups %xmm0, 0x20(%r12)
movups %xmm0, 0x10(%r12)
movups %xmm0, (%r12)
movq %r12, %rdi
xorl %esi, %esi
callq 0x4dc6
addq $-0x50, %r14
addq $0x50, %r12
cmpq %r14, %rbx
jne 0x51db
movq 0x20(%rsp), %rdi
movq (%rdi), %rsi
movq %r13, (%rdi)
testq %rsi, %rsi
je 0x5227
callq 0x5d80
movq (%rbp), %rax
movslq 0x8(%rax), %rax
leaq (,%rax,4), %rcx
testq %rax, %rax
movq $-0x1, %r15
cmovnsq %rcx, %r15
movq %r15, %rdi
callq 0x2030
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x20f0
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rdi
movq %r12, 0x38(%rax)
testq %rdi, %rdi
je 0x5274
callq 0x21c0
movq (%rbp), %rax
cmpl $-0x1, 0x4(%rax)
movq 0x30(%rsp), %rcx
jl 0x52b6
movq (%rcx), %rcx
movq 0x20(%rcx), %rcx
xorl %edx, %edx
movl $0x0, %esi
testq %rdx, %rdx
je 0x52a3
movl 0x10(%rax), %edi
cmpq %rdi, %rdx
je 0x52a3
movl 0xc(%rax), %esi
addl %edx, %esi
movl %esi, (%rcx,%rdx,4)
leaq 0x1(%rdx), %rsi
movslq 0x4(%rax), %rdi
cmpq %rdi, %rdx
movq %rsi, %rdx
jle 0x528c
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x52de
jmp 0x52de
jmp 0x52d1
jmp 0x52de
jmp 0x52d1
jmp 0x52de
movq %rax, %rbp
movq %r15, %rdi
callq 0x2160
jmp 0x5311
movq %rax, %rbp
jmp 0x5311
movq %rax, %rbp
jmp 0x5324
movq %rax, %rbp
testq %r14, %r14
je 0x5309
negq %r14
movq %r15, %rbx
addq $-0x48, %rbx
leaq (%rbx,%r14), %rdi
callq 0x494c
addq $-0x50, %r14
jne 0x52fa
movq %r15, %rdi
callq 0x21c0
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rdi
testq %rdi, %rdi
je 0x5324
callq 0x21c0
movq 0x8(%rsp), %rax
movq $0x0, 0x38(%rax)
movq 0x30(%rax), %rsi
testq %rsi, %rsi
je 0x5344
movq 0x20(%rsp), %rdi
callq 0x5d80
movq 0x20(%rsp), %rax
movq $0x0, (%rax)
movq 0x18(%rsp), %rax
movq (%rax), %rsi
testq %rsi, %rsi
je 0x5367
movq 0x18(%rsp), %rdi
callq 0x59ac
movq 0x18(%rsp), %rax
movq $0x0, (%rax)
movq 0x28(%rsp), %rax
movq (%rax), %rsi
testq %rsi, %rsi
je 0x538a
movq 0x28(%rsp), %rdi
callq 0x598a
movq 0x8(%rsp), %rax
movq $0x0, 0x20(%rax)
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x53a5
callq 0x2160
movq 0x8(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0x53c5
movq 0x30(%rsp), %rdi
callq 0x5d34
movq 0x8(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0x53e0
callq 0x3fe8
movq %rbp, %rdi
callq 0x2290