// File: /workspace/github_cpp_makefile_star2_O3/MatthewZMD[P]TetrisDual/textdisplay.cc
// Function: TextDisplay::TextDisplay(int, int, int)
TextDisplay::TextDisplay(int numberOfPlayers, int numberOfRows, int numberOfColumns){
	for (int i = 0; i < numberOfPlayers; ++i) {
		level.emplace_back(0);
		score.emplace_back(0);

		boardData.emplace_back(std::vector<std::vector<char>>{});
		for (int r = 0; r < numberOfRows; ++r) {
			boardData.at(i).emplace_back(std::vector<char>{});
			for (int c = 0; c < numberOfColumns; ++c) {
				boardData.at(i).at(r).emplace_back(' ');
			}
		}

		nextType.emplace_back(CellType::E);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, 0x34(%rsp)
movl %edx, 0x4(%rsp)
leaq 0xd023(%rip), %rax      # 0x1bd18
movq %rax, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x48(%rdi)
movups %xmm0, 0x58(%rdi)
testl %esi, %esi
jle 0xef0a
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movq %rax, 0x48(%rsp)
leaq 0x20(%rdi), %rax
movq %rax, 0x40(%rsp)
leaq 0x38(%rdi), %rax
movq %rax, 0x50(%rsp)
leaq 0x50(%rdi), %rax
movq %rax, 0x38(%rsp)
movl %esi, %eax
movq %rax, 0x58(%rsp)
movl 0x4(%rsp), %eax
movq %rax, 0x60(%rsp)
xorl %r14d, %r14d
leaq 0x10(%rsp), %r13
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
movq %rdi, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0xed8b
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rbx)
jmp 0xed98
movq 0x48(%rsp), %rdi
movq %r13, %rdx
callq 0xfc28
movl $0x0, 0x10(%rsp)
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
je 0xedba
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rbx)
jmp 0xedc7
movq 0x40(%rsp), %rdi
movq %r13, %rdx
callq 0xfc28
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0xf9ee
movq %r13, %rdi
callq 0x8192
cmpl $0x0, 0x4(%rsp)
jle 0xeecd
leaq (%r14,%r14,2), %rbp
xorl %r15d, %r15d
movq 0x38(%rbx), %rax
movq 0x40(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %r14, %rdx
jbe 0xef34
leaq (%rax,%rbp,8), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %r13, %rsi
callq 0xfa3c
movq %r14, %rbx
movq %r13, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xee55
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x52e0
movl 0x34(%rsp), %eax
movl %eax, %r13d
testl %eax, %eax
jle 0xeeb4
movq 0x8(%rsp), %rcx
movq 0x38(%rcx), %rax
movq 0x40(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %rbx, %rdx
jbe 0xef1e
movq (%rax,%rbp,8), %rcx
movq 0x8(%rax,%rbp,8), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %r15, %rdx
jbe 0xef19
leaq (%r15,%r15,2), %rax
leaq (%rcx,%rax,8), %rdi
movb $0x20, 0x10(%rsp)
movq %r14, %rsi
callq 0xacd8
decl %r13d
jne 0xee60
incq %r15
cmpq 0x60(%rsp), %r15
movq %r14, %r13
movq %rbx, %r14
movq 0x8(%rsp), %rbx
jne 0xedff
movl $0x7, 0x10(%rsp)
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
je 0xeeef
movl $0x7, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x58(%rbx)
jmp 0xeefc
movq 0x38(%rsp), %rdi
movq %r13, %rdx
callq 0x10078
incq %r14
cmpq 0x58(%rsp), %r14
jne 0xed69
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rsi
jmp 0xef21
movq %rbx, %rsi
leaq 0x446a(%rip), %rdi      # 0x13392
xorl %eax, %eax
movq 0x8(%rsp), %rbx
callq 0x5410
leaq 0x4457(%rip), %rdi      # 0x13392
movq %r14, %rsi
xorl %eax, %eax
callq 0x5410
jmp 0xef82
jmp 0xef82
jmp 0xef82
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x8192
jmp 0xef85
jmp 0xef82
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xef85
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x52e0
jmp 0xef85
movq %rax, %r14
movq 0x8(%rsp), %rbx
jmp 0xef85
movq %rax, %r14
movq 0x38(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xef9e
movq 0x60(%rbx), %rsi
subq %rdi, %rsi
callq 0x52e0
movq 0x50(%rsp), %rdi
callq 0xced8
movq 0x40(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xefc1
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x52e0
movq 0x48(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xefda
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x52e0
movq %r14, %rdi
callq 0x54e0