// File: /workspace/github_cpp_makefile_star2_O1/ksabry[P]bfbrute/src/DataCache.h
// Function: DataCache<32ul, 12ul>::CreateSize(unsigned long)
void CreateSize(uint_fast32_t size)
	{
		currentProgramSize = size;

		// NOTE: might be more efficient to manually call AddComposite 4 times for balanced/unbalanced pairs
		//	   likely doesn't make a difference but I am not sure

		for (uint_fast32_t leftSize = 1; leftSize < size; leftSize++)
		{
			for (int leftType = 0; leftType <= 1; leftType++)
			{
				for (int rightType = 0; rightType <= 1; rightType++)
				{
					uint_fast32_t * bordersLeft = leftType == 0 ? bordersBalanced : bordersUnbalanced;
					uint_fast32_t * bordersRight = rightType == 0 ? bordersBalanced : bordersUnbalanced;
					std::vector<AlignedData<data_size>> dataLeft = leftType == 0 ? dataBalanced : dataUnbalanced;
					std::vector<AlignedData<data_size>> dataRight = rightType == 0 ? dataBalanced : dataUnbalanced;
					std::vector<char> programsLeft = leftType == 0 ? programsBalanced : programsUnbalanced;
					std::vector<char> programsRight = rightType == 0 ? programsBalanced : programsUnbalanced;

					for (uint_fast32_t leftIndex = bordersLeft[leftSize]; leftIndex < bordersLeft[leftSize + 1]; leftIndex++)
					{
						for (uint_fast32_t rightIndex = bordersRight[size - leftSize]; rightIndex < bordersRight[size - leftSize + 1]; rightIndex++)
						{
							AddComposite(
								dataLeft.data() + leftIndex,
								dataRight.data() + rightIndex,
								programsLeft.data() + (leftIndex * max_cache_size),
								programsRight.data() + (rightIndex * max_cache_size),
								leftSize,
								size - leftSize
							);
						}
					}
				}
			}
		}

		bordersBalanced[size + 1] = dataBalancedCount;
		bordersUnbalanced[size + 1] = dataUnbalancedCount;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rsi, %rbp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x1e8(%rdi)
cmpq $0x2, %rsi
jb 0x3bab
movq 0x18(%rsp), %rax
leaq 0x88(%rax), %rcx
movq %rcx, 0x48(%rsp)
leaq 0xf8(%rax), %rcx
movq %rcx, 0x40(%rsp)
leaq 0x28(%rax), %rcx
movq %rcx, 0x38(%rsp)
leaq 0x40(%rax), %rcx
movq %rcx, 0x30(%rsp)
leaq 0x58(%rax), %rcx
movq %rcx, 0x28(%rsp)
addq $0x70, %rax
movq %rax, 0x20(%rsp)
movl $0x1, %r9d
movq %rbp, 0x60(%rsp)
subq %r9, %rbp
xorl %eax, %eax
movq %r9, 0x8(%rsp)
movq %rax, 0x68(%rsp)
testl %eax, %eax
movq 0x40(%rsp), %rax
cmoveq 0x48(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x30(%rsp), %rax
cmoveq 0x38(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x20(%rsp), %rax
cmoveq 0x28(%rsp), %rax
movq %rax, 0x70(%rsp)
xorl %ebx, %ebx
leaq 0xd0(%rsp), %rdi
movq 0x78(%rsp), %rsi
callq 0x4524
testl %ebx, %ebx
movq 0x40(%rsp), %rax
cmoveq 0x48(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x30(%rsp), %rsi
cmoveq 0x38(%rsp), %rsi
leaq 0xb8(%rsp), %rdi
callq 0x4524
leaq 0xa0(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x45b6
testl %ebx, %ebx
movq 0x20(%rsp), %rsi
cmoveq 0x28(%rsp), %rsi
leaq 0x88(%rsp), %rdi
callq 0x45b6
movq %rbx, 0x80(%rsp)
movq 0x8(%rsp), %r9
movq 0x50(%rsp), %rax
movq (%rax,%r9,8), %rcx
movq %rcx, 0x10(%rsp)
cmpq 0x8(%rax,%r9,8), %rcx
jae 0x3aed
movq 0x58(%rsp), %rax
movq (%rax,%rbp,8), %rbx
cmpq 0x8(%rax,%rbp,8), %rbx
jae 0x3adb
movq 0x10(%rsp), %rcx
leaq (,%rcx,4), %rax
leaq (%rax,%rax,2), %r14
leaq (,%rbx,4), %rax
leaq (%rax,%rax,2), %r15
imulq $0x38, %rbx, %r12
imulq $0x38, %rcx, %r13
movq 0xd0(%rsp), %rsi
addq %r13, %rsi
movq 0xb8(%rsp), %rdx
addq %r12, %rdx
movq 0xa0(%rsp), %rcx
addq %r14, %rcx
movq 0x88(%rsp), %r8
addq %r15, %r8
movl %ebp, (%rsp)
movq 0x18(%rsp), %rdi
callq 0x4602
incq %rbx
addq $0xc, %r15
addq $0x38, %r12
movq 0x58(%rsp), %rax
cmpq 0x8(%rax,%rbp,8), %rbx
movq 0x8(%rsp), %r9
jb 0x3a86
movq 0x10(%rsp), %rcx
incq %rcx
movq 0x50(%rsp), %rax
jmp 0x3a41
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x3b0f
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x8(%rsp), %r9
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x3b31
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x8(%rsp), %r9
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
movq 0x80(%rsp), %rbx
je 0x3b5b
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x8(%rsp), %r9
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x3b7d
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x8(%rsp), %r9
leal 0x1(%rbx), %eax
testl %ebx, %ebx
movl %eax, %ebx
je 0x39c3
movq 0x68(%rsp), %rcx
leal 0x1(%rcx), %eax
testl %ecx, %ecx
je 0x398a
incq %r9
movq 0x60(%rsp), %rbp
cmpq %rbp, %r9
jne 0x3980
movq 0x18(%rsp), %rcx
movq 0x18(%rcx), %rax
movq %rax, 0x90(%rcx,%rbp,8)
movq 0x20(%rcx), %rax
movq %rax, 0x100(%rcx,%rbp,8)
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3c43
movq %rax, %rbx
jmp 0x3c26
movq %rax, %rbx
jmp 0x3c09
movq %rax, %rbx
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x3c09
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x3c26
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x3c43
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x3c60
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23a0