// File: /workspace/github_cpp_makefile_star2_O3/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, %r15
movq %rdi, %r13
leaq 0x30(%rsp), %rdi
callq 0x2130
leaq 0x40(%rsp), %rdi
leaq 0x309c(%rip), %rsi      # 0xa94b
movl $0x7, %edx
callq 0x2200
leaq 0x173c(%r15), %rbp
xorl %ebx, %ebx
leaq 0xf(%rsp), %r12
movzbl 0x17e4(%r15,%rbx), %r14d
movzbl 0x17e5(%r15,%rbx), %eax
leaq 0x2fa0(%rip), %rcx      # 0xa880
movb (%rax,%rcx), %al
movb %al, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x2200
leaq 0x306d(%rip), %rcx      # 0xa96d
movb (%r14,%rcx), %cl
movb %cl, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2200
cmpq $0x8a, %rbx
je 0x793d
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
leaq 0x2ffa(%rip), %rsi      # 0xa92c
callq 0x2200
addq $0x6, %rbx
jmp 0x78c7
movq %r13, 0x20(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x1, %eax
movq %rax, 0x18(%rsp)
leaq 0xf(%rsp), %r15
xorl %ebx, %ebx
movb $0xa, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x2200
movslq %ebx, %rbx
movq %rbx, 0x28(%rsp)
leaq (,%rbx,4), %rbx
xorl %r13d, %r13d
leaq (%rbx,%r13,4), %rax
leaq 0x302f(%rip), %rcx      # 0xa9c0
movslq (%rcx,%rax), %rax
leaq (%rax,%rax,2), %rax
movzbl (%rbp,%rax,2), %r14d
movzbl 0x1(%rbp,%rax,2), %r12d
cmpl 0x10(%rsp), %r13d
jae 0x7a17
movb $0x3c, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x2200
leaq 0x2eb6(%rip), %rcx      # 0xa880
movb (%r12,%rcx), %cl
movb %cl, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2200
leaq 0x2f84(%rip), %rcx      # 0xa96d
movb (%r14,%rcx), %cl
movb %cl, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2200
movl $0x2, %edx
movq %rax, %rdi
leaq 0x2f45(%rip), %rsi      # 0xa955
callq 0x2200
jmp 0x7a57
leaq 0x2e62(%rip), %rax      # 0xa880
movb (%r12,%rax), %al
movb %al, 0xf(%rsp)
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x2200
leaq 0x2f2e(%rip), %rcx      # 0xa96d
movb (%r14,%rcx), %cl
movb %cl, 0xf(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2200
incq %r13
cmpl %r13d, 0x18(%rsp)
jne 0x7986
movq 0x10(%rsp), %rax
incl %eax
movq 0x28(%rsp), %rbx
addq %r13, %rbx
incq 0x18(%rsp)
movq %rax, 0x10(%rsp)
cmpl $0x7, %eax
jne 0x795c
leaq 0x48(%rsp), %rsi
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x2280
movq 0x6518(%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 0x7ad4
jmp 0x7ad4
jmp 0x7ad4
jmp 0x7ad4
movq %rax, %rbx
movq 0x64da(%rip), %rsi      # 0xdfb8
leaq 0x30(%rsp), %rdi
callq 0x2150
leaq 0xb0(%rsp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x22e0
nop