// File: /workspace/github_cpp_makefile_star2_O3/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 0x26d4(%rip), %rbp      # 0xa880
movl $0xff, %r12d
cmpq $0x9, %rbx
ja 0x81cf
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 0x2741(%rip), %rsi      # 0xa92b
callq 0x2200
movq %rbx, 0x28(%rsp)
imulq $0x12c, %rbx, %rbx      # imm = 0x12C
addq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x3a76
movl %eax, %r15d
testl %eax, %eax
jle 0x8286
incl %r15d
leal -0x2(%r15), %esi
movq %rbx, %rdi
callq 0x3ab4
movq %rax, %rcx
andq %r12, %rcx
movb $0x58, %r14b
cmpq %r12, %rcx
je 0x8237
leaq 0x273a(%rip), %rdx      # 0xa96d
movb (%rcx,%rdx), %r14b
movzbl %ah, %eax
movb (%rax,%rbp), %al
movb %al, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x2200
movb %r14b, 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 %r15d
cmpl $0x1, %r15d
ja 0x8212
movq %rbx, %rdi
callq 0x3a6e
movl %eax, %r15d
testl %eax, %eax
jle 0x8322
incl %r15d
leal -0x2(%r15), %esi
movq %rbx, %rdi
callq 0x3a9c
movq %rax, %rcx
andq %r12, %rcx
movb $0x58, %r14b
cmpq %r12, %rcx
je 0x82c1
leaq 0x26b0(%rip), %rdx      # 0xa96d
movb (%rcx,%rdx), %r14b
movzbl %ah, %eax
movq %rbp, %r12
movb (%rax,%rbp), %bpl
movb $0x2d, 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 %r14b, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2200
decl %r15d
cmpl $0x1, %r15d
movq %r12, %rbp
movl $0xff, %r12d
ja 0x829c
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 0x81b2
leaq 0x25c5(%rip), %rsi      # 0xa917
movl $0x16, %edx
leaq 0x40(%rsp), %rdi
callq 0x2200
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %rdi
callq 0x4b36
leaq 0x40(%rsp), %rdi
movl %eax, %esi
callq 0x22c0
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x2280
movq 0x5c28(%rip), %rsi      # 0xdfb8
leaq 0x30(%rsp), %rdi
callq 0x2150
leaq 0xb0(%rsp), %rdi
callq 0x20a0
movq %rbx, %rax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x83c8
jmp 0x83c8
jmp 0x83c8
jmp 0x83c8
jmp 0x83c8
jmp 0x83c8
movq %rax, %rbx
movq 0x5be6(%rip), %rsi      # 0xdfb8
leaq 0x30(%rsp), %rdi
callq 0x2150
leaq 0xb0(%rsp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x22e0
nop