// File: /workspace/github_cpp_makefile_star2_O1/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 0xcd7b(%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 0xf1b9
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movq %rax, 0x40(%rsp)
leaq 0x20(%rdi), %rax
movq %rax, 0x38(%rsp)
leaq 0x38(%rdi), %rax
movq %rax, 0x48(%rsp)
leaq 0x50(%rdi), %rax
movq %rax, 0x50(%rsp)
movl %esi, %eax
movq %rax, 0x58(%rsp)
movl 0x4(%rsp), %eax
movq %rax, 0x60(%rsp)
xorl %r13d, %r13d
leaq 0x10(%rsp), %r15
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
movq %rdi, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0xf033
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rbx)
jmp 0xf040
movq 0x40(%rsp), %rdi
movq %r15, %rdx
callq 0xfe1e
movl $0x0, 0x10(%rsp)
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
je 0xf062
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rbx)
jmp 0xf06f
movq 0x38(%rsp), %rdi
movq %r15, %rdx
callq 0xfe1e
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0xfc0a
movq %r15, %rdi
callq 0x81ba
cmpl $0x0, 0x4(%rsp)
jle 0xf17c
leaq (,%r13,2), %rbp
addq %r13, %rbp
xorl %r14d, %r14d
movq 0x38(%rbx), %rax
movq 0x40(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %r13, %rdx
jbe 0xf1e3
leaq (%rax,%rbp,8), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %r15, %rsi
callq 0xfc58
movq %r13, %rbx
movq %r15, %r13
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xf104
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x52e0
movl 0x34(%rsp), %eax
movl %eax, %r15d
testl %eax, %eax
jle 0xf163
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 0xf1cd
movq (%rax,%rbp,8), %rcx
movq 0x8(%rax,%rbp,8), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %r14, %rdx
jbe 0xf1c8
leaq (%r14,%r14,2), %rax
leaq (%rcx,%rax,8), %rdi
movb $0x20, 0x10(%rsp)
movq %r13, %rsi
callq 0xae1c
decl %r15d
jne 0xf10f
incq %r14
cmpq 0x60(%rsp), %r14
movq %r13, %r15
movq %rbx, %r13
movq 0x8(%rsp), %rbx
jne 0xf0ae
movl $0x7, 0x10(%rsp)
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
je 0xf19e
movl $0x7, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x58(%rbx)
jmp 0xf1ab
movq 0x50(%rsp), %rdi
movq %r15, %rdx
callq 0x1029c
incq %r13
cmpq 0x58(%rsp), %r13
jne 0xf011
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rsi
jmp 0xf1d0
movq %rbx, %rsi
leaq 0x41bb(%rip), %rdi      # 0x13392
xorl %eax, %eax
movq 0x8(%rsp), %rbx
callq 0x5410
leaq 0x41a8(%rip), %rdi      # 0x13392
movq %r13, %rsi
xorl %eax, %eax
callq 0x5410
jmp 0xf231
jmp 0xf231
jmp 0xf231
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x81ba
jmp 0xf234
jmp 0xf231
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xf234
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x52e0
jmp 0xf234
movq %rax, %r14
movq 0x8(%rsp), %rbx
jmp 0xf234
movq %rax, %r14
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0xf249
movq 0x60(%rbx), %rsi
subq %rdi, %rsi
callq 0x52e0
movq 0x48(%rsp), %rdi
callq 0xd12c
movq 0x38(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xf26c
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x52e0
movq 0x40(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xf285
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x52e0
movq %r14, %rdi
callq 0x54e0
nop