// File: /workspace/github_cpp_makefile_star2_O1/ShootMe[P]Klondike-Solver/Solitaire.cpp
// Function: Solitaire::GetPysol[abi:cxx11]()
string Solitaire::GetPysol() {
	stringstream cardSet;
	cardSet << "Talon: ";
	for (int i = 28; i < 52; i++) {
		Card c = cards[i];

		cardSet << RANKS[c.Rank] << SUITS[c.Suit];
		if (i < 51) { cardSet << " "; }
	}

	const int order[28] = { 0, 1, 7, 2, 8, 13, 3, 9, 14, 18, 4, 10, 15, 19, 22, 5, 11, 16, 20, 23, 25, 6, 12, 17, 21, 24, 26, 27 };
	for (int i = 0, j = 0; j < 7; j++) {
		cardSet << '\n';
		for (int k = 0; k <= j; k++, i++) {
			Card c = cards[order[i]];

			if (k < j) {
				cardSet << '<' << RANKS[c.Rank] << SUITS[c.Suit] << "> ";
			} else {
				cardSet << RANKS[c.Rank] << SUITS[c.Suit];
			}
		}
	}
	return cardSet.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %r14
movq %rdi, %rbp
leaq 0x30(%rsp), %rdi
callq 0x2130
leaq 0x40(%rsp), %rdi
leaq 0x2fe2(%rip), %rsi      # 0xa94b
movl $0x7, %edx
callq 0x2200
xorl %ebx, %ebx
leaq 0xf(%rsp), %r12
leaq 0x2fab(%rip), %r13      # 0xa92c
movzbl 0x17e4(%r14,%rbx), %r15d
movzbl 0x17e5(%r14,%rbx), %eax
leaq 0x2ee6(%rip), %rcx      # 0xa880
movb (%rax,%rcx), %al
movb %al, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x2200
leaq 0x2fb3(%rip), %rcx      # 0xa96d
movb (%r15,%rcx), %cl
movb %cl, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2200
cmpq $0x8a, %rbx
je 0x79ed
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x2200
addq $0x6, %rbx
cmpq $0x90, %rbx
jne 0x7981
movq %rbp, 0x20(%rsp)
addq $0x173c, %r14           # imm = 0x173C
movq $0x0, 0x10(%rsp)
movl $0x1, %eax
movq %rax, 0x18(%rsp)
leaq 0xf(%rsp), %r12
xorl %ebx, %ebx
movb $0xa, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x2200
movslq %ebx, %rbx
movq %rbx, 0x28(%rsp)
leaq (,%rbx,4), %rbp
xorl %ebx, %ebx
leaq (,%rbx,4), %rax
addq %rbp, %rax
leaq 0x2f65(%rip), %rcx      # 0xa9c0
movslq (%rcx,%rax), %rax
leaq (%rax,%rax,2), %rax
movzbl (%r14,%rax,2), %r15d
movzbl 0x1(%r14,%rax,2), %r13d
cmpl 0x10(%rsp), %ebx
jae 0x7ae0
movb $0x3c, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x2200
leaq 0x2dee(%rip), %rcx      # 0xa880
movb (%r13,%rcx), %cl
movb %cl, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2200
leaq 0x2ebb(%rip), %rcx      # 0xa96d
movb (%r15,%rcx), %cl
movb %cl, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2200
movl $0x2, %edx
movq %rax, %rdi
leaq 0x2e7c(%rip), %rsi      # 0xa955
callq 0x2200
jmp 0x7b21
leaq 0x2d99(%rip), %rax      # 0xa880
movb (%r13,%rax), %al
movb %al, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x2200
leaq 0x2e64(%rip), %rcx      # 0xa96d
movb (%r15,%rcx), %cl
movb %cl, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2200
incq %rbx
cmpl %ebx, 0x18(%rsp)
jne 0x7a49
movq 0x10(%rsp), %rax
incl %eax
movq 0x28(%rsp), %rcx
addq %rbx, %rcx
movq %rcx, %rbx
incq 0x18(%rsp)
movq %rax, 0x10(%rsp)
cmpl $0x7, %eax
jne 0x7a20
leaq 0x48(%rsp), %rsi
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x2280
movq 0x644c(%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 0x7ba0
jmp 0x7ba0
jmp 0x7ba0
jmp 0x7ba0
movq %rax, %rbx
movq 0x640e(%rip), %rsi      # 0xdfb8
leaq 0x30(%rsp), %rdi
callq 0x2150
leaq 0xb0(%rsp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x22e0
nop