// File: /workspace/github_cpp_makefile_star2_O1/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 0x50be
movq 0x5f10(%rip), %rcx      # 0xafc0
cmpb $0x0, (%rcx)
je 0x50ba
incl 0x8(%rax)
jmp 0x50be
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, 0x10(%rsp)
movq %r14, 0x30(%rsp)
movq %r12, 0x28(%rsp)
movq %r13, 0x18(%rsp)
callq 0x2180
movl $0x0, (%rax)
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 0x56de
movq $0x0, 0x8(%rsp)
movq (%r12), %rsi
movq %r15, (%r12)
testq %rsi, %rsi
je 0x5153
movq %r12, %rdi
callq 0x5a16
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x5167
leaq 0x8(%rsp), %rdi
callq 0x5a16
movl $0x38, %edi
callq 0x2180
movq %rax, %r15
movq %rax, %rdi
movq %rbp, %rsi
callq 0x5776
movq $0x0, 0x8(%rsp)
movq (%r13), %rsi
movq %r15, (%r13)
testq %rsi, %rsi
je 0x519d
movq %r13, %rdi
callq 0x5a40
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x51b1
leaq 0x8(%rsp), %rdi
callq 0x5a40
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 0x5844
movq $0x0, 0x8(%rsp)
movq (%r14), %rsi
movq %r15, (%r14)
testq %rsi, %rsi
je 0x51f2
movq %r14, %rdi
callq 0x5d1c
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x5206
leaq 0x8(%rsp), %rdi
callq 0x5d1c
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 0x528d
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 0x4e1e
addq $-0x50, %r14
addq $0x50, %r12
cmpq %r14, %rbx
jne 0x5256
movq $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rdi
movq (%rdi), %rsi
movq %r13, (%rdi)
testq %rsi, %rsi
je 0x52ab
callq 0x5d6a
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x52bf
leaq 0x8(%rsp), %rdi
callq 0x5d6a
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 0x10(%rsp), %rax
movq 0x38(%rax), %rdi
movq %r12, 0x38(%rax)
testq %rdi, %rdi
je 0x530c
callq 0x21c0
movq (%rbp), %rax
cmpl $-0x1, 0x4(%rax)
movq 0x30(%rsp), %rcx
jl 0x534e
movq (%rcx), %rcx
movq 0x20(%rcx), %rcx
xorl %edx, %edx
movl $0x0, %esi
testq %rdx, %rdx
je 0x533b
movl 0x10(%rax), %edi
cmpq %rdi, %rdx
je 0x533b
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 0x5324
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5378
jmp 0x5378
jmp 0x5369
jmp 0x5378
jmp 0x5369
jmp 0x5378
movq %rax, %rbp
movq %r15, %rdi
callq 0x2160
jmp 0x53a6
jmp 0x5378
movq %rax, %rbp
jmp 0x53a6
movq %rax, %rbp
testq %r14, %r14
je 0x539e
negq %r14
movq %r15, %rbx
addq $-0x48, %rbx
leaq (%rbx,%r14), %rdi
callq 0x49b6
addq $-0x50, %r14
jne 0x538f
movq %r15, %rdi
callq 0x21c0
movq 0x10(%rsp), %rax
movq 0x38(%rax), %rdi
testq %rdi, %rdi
je 0x53b9
callq 0x21c0
movq 0x10(%rsp), %rax
movq $0x0, 0x38(%rax)
movq 0x30(%rax), %rsi
testq %rsi, %rsi
je 0x53d9
movq 0x20(%rsp), %rdi
callq 0x5d6a
movq 0x20(%rsp), %rax
movq $0x0, (%rax)
movq 0x18(%rsp), %rax
movq (%rax), %rsi
testq %rsi, %rsi
je 0x53fc
movq 0x18(%rsp), %rdi
callq 0x5a40
movq 0x18(%rsp), %rax
movq $0x0, (%rax)
movq 0x28(%rsp), %rax
movq (%rax), %rsi
testq %rsi, %rsi
je 0x541f
movq 0x28(%rsp), %rdi
callq 0x5a16
movq 0x10(%rsp), %rax
movq $0x0, 0x20(%rax)
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x543a
callq 0x2160
movq 0x10(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0x545a
movq 0x30(%rsp), %rdi
callq 0x5d1c
movq 0x10(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0x5475
callq 0x4040
movq %rbp, %rdi
callq 0x2290
nop