// File: 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
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, 0x1e8(%rax)
movq $0x1, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x7789
movl $0x0, -0x1c(%rbp)
cmpl $0x1, -0x1c(%rbp)
jg 0x7776
movl $0x0, -0x20(%rbp)
cmpl $0x1, -0x20(%rbp)
jg 0x7766
cmpl $0x0, -0x1c(%rbp)
jne 0x742d
movq -0xb8(%rbp), %rax
addq $0x88, %rax
movq %rax, -0xc0(%rbp)
jmp 0x7441
movq -0xb8(%rbp), %rax
addq $0xf8, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpl $0x0, -0x20(%rbp)
jne 0x7468
movq -0xb8(%rbp), %rax
addq $0x88, %rax
movq %rax, -0xc8(%rbp)
jmp 0x747c
movq -0xb8(%rbp), %rax
addq $0xf8, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0x74a1
movq -0xb8(%rbp), %rax
addq $0x28, %rax
movq %rax, -0xd0(%rbp)
jmp 0x74b3
movq -0xb8(%rbp), %rax
addq $0x40, %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0xa590
cmpl $0x0, -0x20(%rbp)
jne 0x74dd
movq -0xb8(%rbp), %rax
addq $0x28, %rax
movq %rax, -0xd8(%rbp)
jmp 0x74ef
movq -0xb8(%rbp), %rax
addq $0x40, %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rsi
leaq -0x60(%rbp), %rdi
callq 0xa590
jmp 0x7501
cmpl $0x0, -0x1c(%rbp)
jne 0x751b
movq -0xb8(%rbp), %rax
addq $0x58, %rax
movq %rax, -0xe0(%rbp)
jmp 0x752d
movq -0xb8(%rbp), %rax
addq $0x70, %rax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0xa680
jmp 0x7542
cmpl $0x0, -0x20(%rbp)
jne 0x755c
movq -0xb8(%rbp), %rax
addq $0x58, %rax
movq %rax, -0xe8(%rbp)
jmp 0x756e
movq -0xb8(%rbp), %rax
addq $0x70, %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rsi
leaq -0xa0(%rbp), %rdi
callq 0xa680
jmp 0x7583
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rdx
cmpq 0x8(%rcx,%rdx,8), %rax
jae 0x770e
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
subq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rdx
subq -0x18(%rbp), %rdx
cmpq 0x8(%rcx,%rdx,8), %rax
jae 0x76f5
leaq -0x48(%rbp), %rdi
callq 0xaa40
movq -0xa8(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x100(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xaa40
movq -0xb0(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xf8(%rbp)
leaq -0x88(%rbp), %rdi
callq 0xaa60
movq -0xa8(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -0xf0(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0xaa60
movq -0xb8(%rbp), %rdi
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
movq -0xf0(%rbp), %rcx
movq -0xb0(%rbp), %r8
leaq (%r8,%r8,2), %r8
leaq (%rax,%r8,4), %r8
movl -0x18(%rbp), %r9d
movl -0x10(%rbp), %r10d
subl %r9d, %r10d
movq %rsp, %rax
movl %r10d, (%rax)
callq 0xa770
jmp 0x7692
jmp 0x7694
movq -0xb0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xb0(%rbp)
jmp 0x75c7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x775b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x7752
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x7746
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0xaa80
jmp 0x7746
jmp 0x76f7
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x7596
leaq -0xa0(%rbp), %rdi
callq 0xaa80
leaq -0x88(%rbp), %rdi
callq 0xaa80
leaq -0x60(%rbp), %rdi
callq 0xaae0
leaq -0x48(%rbp), %rdi
callq 0xaae0
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x7407
leaq -0x88(%rbp), %rdi
callq 0xaa80
leaq -0x60(%rbp), %rdi
callq 0xaae0
leaq -0x48(%rbp), %rdi
callq 0xaae0
jmp 0x77b9
jmp 0x7768
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x73f6
jmp 0x7778
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x73e1
movq -0xb8(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x10(%rbp), %rcx
movq %rdx, 0x90(%rax,%rcx,8)
movq 0x20(%rax), %rdx
movq -0x10(%rbp), %rcx
movq %rdx, 0x100(%rax,%rcx,8)
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0x34d0
nopw %cs:(%rax,%rax)
nopl (%rax)