// File: /workspace/github_cpp_makefile_star2_O1/ShootMe[P]Klondike-Solver/Solitaire.cpp
// Function: Solitaire::GameDiagram[abi:cxx11]()
string Solitaire::GameDiagram() {
	stringstream ss;
	for (int i = 0; i < 13; i++) {
		if (i < 10) {
			ss << ' ';
		}
		ss << i << ": ";
		Pile & p = piles[i];
		int size = p.UpSize();
		for (int j = size - 1; j >= 0; j--) {
			Card c = p.Up(j);
			char rank = RANKS[c.Rank];
			char suit = c.Suit != NONE ? SUITS[c.Suit] : 'X';
			ss << rank << suit << ' ';
		}
		size = p.DownSize();
		for (int j = size - 1; j >= 0; j--) {
			Card c = p.Down(j);
			char rank = RANKS[c.Rank];
			char suit = c.Suit != NONE ? SUITS[c.Suit] : 'X';
			ss << '-' << rank << suit;
		}
		ss << '\n';
	}
	ss << "Minimum Moves Needed: " << MinimumMovesLeft();
	return ss.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %rbx
movq %rdi, 0x18(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x2130
movq %rbx, 0x10(%rsp)
leaq 0x800(%rbx), %rax
movq %rax, 0x20(%rsp)
xorl %ebx, %ebx
leaq 0xf(%rsp), %r13
leaq 0x2608(%rip), %r15      # 0xa880
movl $0xff, %r12d
cmpq $0x9, %rbx
ja 0x829b
movb $0x20, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x2200
leaq 0x40(%rsp), %rdi
movl %ebx, %esi
callq 0x22c0
movl $0x2, %edx
movq %rax, %rdi
leaq 0x2675(%rip), %rsi      # 0xa92b
callq 0x2200
movq %rbx, 0x28(%rsp)
imulq $0x12c, %rbx, %rbx      # imm = 0x12C
addq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x3abe
movl %eax, %r14d
testl %eax, %eax
jle 0x8353
incl %r14d
leal -0x2(%r14), %esi
movq %rbx, %rdi
callq 0x3afc
movq %rax, %rcx
andq %r12, %rcx
movb $0x58, %bpl
cmpq %r12, %rcx
je 0x8303
leaq 0x266e(%rip), %rdx      # 0xa96d
movb (%rcx,%rdx), %bpl
movzbl %ah, %eax
movb (%rax,%r15), %al
movb %al, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x2200
movb %bpl, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2200
movb $0x20, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2200
decl %r14d
cmpl $0x1, %r14d
jg 0x82de
movq %rbx, %rdi
callq 0x3ab6
movl %eax, %r14d
testl %eax, %eax
jle 0x83ef
incl %r14d
leal -0x2(%r14), %esi
movq %rbx, %rdi
callq 0x3ae4
movq %rax, %rcx
andq %r12, %rcx
movb $0x58, %bpl
cmpq %r12, %rcx
je 0x838e
leaq 0x25e3(%rip), %rdx      # 0xa96d
movb (%rcx,%rdx), %bpl
movzbl %ah, %eax
movq %r15, %r12
movb (%rax,%r15), %r15b
movb $0x2d, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x2200
movb %r15b, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2200
movb %bpl, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2200
decl %r14d
cmpl $0x1, %r14d
movq %r12, %r15
movl $0xff, %r12d
jg 0x8369
movb $0xa, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x2200
movq 0x28(%rsp), %rbx
incq %rbx
cmpq $0xd, %rbx
jne 0x827e
leaq 0x40(%rsp), %rbx
leaq 0x24f3(%rip), %rsi      # 0xa917
movl $0x16, %edx
movq %rbx, %rdi
callq 0x2200
movq 0x18(%rsp), %r14
movq 0x10(%rsp), %rdi
callq 0x4cb4
movq %rbx, %rdi
movl %eax, %esi
callq 0x22c0
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x2280
movq 0x5b5a(%rip), %rsi      # 0xdfb8
leaq 0x30(%rsp), %rdi
callq 0x2150
leaq 0xb0(%rsp), %rdi
callq 0x20a0
movq %r14, %rax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8496
jmp 0x8496
jmp 0x8496
jmp 0x8496
jmp 0x8496
jmp 0x8496
movq %rax, %rbx
movq 0x5b18(%rip), %rsi      # 0xdfb8
leaq 0x30(%rsp), %rdi
callq 0x2150
leaq 0xb0(%rsp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x22e0
nop