// File: /workspace/github_cpp_makefile_star2_O2/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 $0xd8, %rsp
movq %rsi, %rbx
movq %rsi, 0x1e8(%rdi)
leaq 0x88(%rdi), %rax
movq %rax, 0x48(%rsp)
leaq 0xf8(%rdi), %rax
movq %rax, 0x40(%rsp)
leaq 0x28(%rdi), %rax
movq %rax, 0x38(%rsp)
leaq 0x40(%rdi), %rax
movq %rax, 0x30(%rsp)
leaq 0x58(%rdi), %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0x58(%rsp)
leaq 0x70(%rdi), %rax
movq %rax, 0x20(%rsp)
pushq $0x1
popq %rax
leaq 0xc0(%rsp), %r14
leaq 0xa8(%rsp), %r15
leaq 0x90(%rsp), %r12
movq %rsi, 0x18(%rsp)
subq %rax, %rbx
jbe 0x3753
xorl %ecx, %ecx
movq %rax, 0x8(%rsp)
cmpl $0x2, %ecx
je 0x3746
testl %ecx, %ecx
movq 0x40(%rsp), %rdx
cmoveq 0x48(%rsp), %rdx
movq %rdx, 0x50(%rsp)
movq 0x30(%rsp), %rdx
cmoveq 0x38(%rsp), %rdx
movq %rdx, 0x70(%rsp)
movq 0x20(%rsp), %rdx
cmoveq 0x28(%rsp), %rdx
movq %rdx, 0x68(%rsp)
xorl %ebp, %ebp
movl %ecx, 0x10(%rsp)
cmpl $0x2, %ebp
je 0x373f
movq %r14, %rdi
movq 0x70(%rsp), %rsi
callq 0x419c
testl %ebp, %ebp
movq 0x40(%rsp), %rax
cmoveq 0x48(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x30(%rsp), %rsi
cmoveq 0x38(%rsp), %rsi
movq %r15, %rdi
callq 0x419c
movq %r12, %rdi
movq 0x68(%rsp), %rsi
callq 0x41f0
testl %ebp, %ebp
movq 0x20(%rsp), %rsi
cmoveq 0x28(%rsp), %rsi
leaq 0x78(%rsp), %rdi
callq 0x41f0
movl %ebp, 0x14(%rsp)
movq 0x8(%rsp), %r9
movq 0x50(%rsp), %rax
movq (%rax,%r9,8), %r12
movq 0x50(%rsp), %rax
cmpq 0x8(%rax,%r9,8), %r12
jae 0x36f1
movq 0x60(%rsp), %rax
movq (%rax,%rbx,8), %rbp
imulq $0xc, %r12, %r14
imulq $0x38, %rbp, %r15
imulq $0xc, %rbp, %r13
movq 0x60(%rsp), %rax
cmpq 0x8(%rax,%rbx,8), %rbp
jae 0x36ec
imulq $0x38, %r12, %rsi
addq 0xc0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
addq %r15, %rdx
movq 0x90(%rsp), %rcx
addq %r14, %rcx
movq 0x78(%rsp), %r8
addq %r13, %r8
movl %ebx, (%rsp)
movq 0x58(%rsp), %rdi
callq 0x423a
incq %rbp
addq $0x38, %r15
addq $0xc, %r13
movq 0x8(%rsp), %r9
jmp 0x3697
incq %r12
jmp 0x3676
leaq 0x78(%rsp), %rdi
callq 0x4420
leaq 0x90(%rsp), %r12
movq %r12, %rdi
callq 0x4420
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
callq 0x43d0
leaq 0xc0(%rsp), %r14
movq %r14, %rdi
callq 0x43d0
movq 0x8(%rsp), %rax
movl 0x14(%rsp), %ebp
incl %ebp
movl 0x10(%rsp), %ecx
jmp 0x3605
incl %ecx
jmp 0x35c4
incq %rax
movq 0x18(%rsp), %rbx
jmp 0x35b4
movq 0x58(%rsp), %rdx
movq 0x18(%rdx), %rax
movq 0x18(%rsp), %rcx
movq %rax, 0x90(%rdx,%rcx,8)
movq 0x20(%rdx), %rax
movq %rax, 0x100(%rdx,%rcx,8)
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x37bd
movq %rax, %rbx
jmp 0x37b0
movq %rax, %rbx
jmp 0x37a3
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x4420
leaq 0x90(%rsp), %rdi
callq 0x4420
leaq 0xa8(%rsp), %rdi
callq 0x43d0
leaq 0xc0(%rsp), %rdi
callq 0x43d0
movq %rbx, %rdi
callq 0x2390