// File: /workspace/github_cpp_makefile_star2_O3/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, %rbp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x1e8(%rdi)
cmpq $0x2, %rsi
jb 0x3baf
movq 0x10(%rsp), %rax
leaq 0x88(%rax), %rcx
movq %rcx, 0x50(%rsp)
leaq 0xf8(%rax), %rcx
movq %rcx, 0x48(%rsp)
leaq 0x28(%rax), %rcx
movq %rcx, 0x40(%rsp)
leaq 0x40(%rax), %rcx
movq %rcx, 0x38(%rsp)
leaq 0x58(%rax), %rcx
movq %rcx, 0x30(%rsp)
addq $0x70, %rax
movq %rax, 0x28(%rsp)
movl $0x1, %r9d
movq %rbp, 0x60(%rsp)
subq %r9, %rbp
movb $0x1, %al
movq %r9, 0x8(%rsp)
movl %eax, 0x20(%rsp)
testb $0x1, %al
movq 0x48(%rsp), %rax
cmovneq 0x50(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x38(%rsp), %rax
cmovneq 0x40(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x28(%rsp), %rax
cmovneq 0x30(%rsp), %rax
movq %rax, 0x68(%rsp)
movb $0x1, %bl
leaq 0xc0(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x44f6
testb $0x1, %bl
movq 0x48(%rsp), %rax
cmovneq 0x50(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rsi
cmovneq 0x40(%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x44f6
leaq 0x90(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x4588
testb $0x1, %bl
movq 0x28(%rsp), %rsi
cmovneq 0x30(%rsp), %rsi
leaq 0x78(%rsp), %rdi
callq 0x4588
movl %ebx, 0x24(%rsp)
movq 0x8(%rsp), %r9
movq 0x58(%rsp), %rax
movq (%rax,%r9,8), %r12
movq 0x8(%rax,%r9,8), %rcx
cmpq %rcx, %r12
jae 0x3af7
movq 0x18(%rsp), %rax
movq 0x8(%rax,%rbp,8), %rax
movq 0x18(%rsp), %rdx
movq (%rdx,%rbp,8), %rbx
cmpq %rax, %rbx
jae 0x3aeb
leaq (,%r12,4), %rax
leaq (%rax,%rax,2), %r14
leaq (,%rbx,4), %rax
leaq (%rax,%rax,2), %r15
imulq $0x38, %rbx, %r13
imulq $0x38, %r12, %rsi
addq 0xc0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
addq %r13, %rdx
movq 0x90(%rsp), %rcx
addq %r14, %rcx
movq 0x78(%rsp), %r8
addq %r15, %r8
movl %ebp, (%rsp)
movq 0x10(%rsp), %rdi
callq 0x45d4
incq %rbx
movq 0x18(%rsp), %rax
movq 0x8(%rax,%rbp,8), %rax
addq $0xc, %r15
addq $0x38, %r13
cmpq %rax, %rbx
movq 0x8(%rsp), %r9
jb 0x3a8b
movq 0x58(%rsp), %rcx
movq 0x8(%rcx,%r9,8), %rcx
incq %r12
cmpq %rcx, %r12
jb 0x3a61
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3b16
movq 0x88(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x8(%rsp), %r9
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x3b38
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x8(%rsp), %r9
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
movl 0x24(%rsp), %ebx
je 0x3b5e
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x8(%rsp), %r9
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x3b80
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x8(%rsp), %r9
testb $0x1, %bl
movl $0x0, %ebx
jne 0x39d0
testb $0x1, 0x20(%rsp)
movl $0x0, %eax
jne 0x3998
incq %r9
movq 0x60(%rsp), %rbp
cmpq %rbp, %r9
jne 0x398e
movq 0x10(%rsp), %rcx
movq 0x18(%rcx), %rax
movq %rax, 0x90(%rcx,%rbp,8)
movq 0x20(%rcx), %rax
movq %rax, 0x100(%rcx,%rbp,8)
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3c44
movq %rax, %rbx
jmp 0x3c27
movq %rax, %rbx
jmp 0x3c0a
movq %rax, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3c0a
movq 0x88(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x3c27
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x3c44
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x3c61
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23a0
nop