// File: tewalds[P]morat/lib/outcome.cpp
// Function: Morat::Outcome::to_s[abi:cxx11]() const
std::string Outcome::to_s() const {
	if(*this == UNDEF)   return "undefined";
	if(*this == UNKNOWN) return "unknown";
	if(*this == P2_DRAW) return "black_or_draw";
	if(*this == P1_DRAW) return "white_or_draw";
	if(*this == DRAW ||
	   *this == DRAW2)   return "draw"; // simultaneous win
	if(*this == P1)      return "white";
	if(*this == P2)      return "black";
    return "unknown";
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x40(%rsp)
movq %rdi, %rax
movq %rax, 0x48(%rsp)
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq 0x78(%rsp), %rdi
movq %rdi, 0x50(%rsp)
leaq 0x2564d(%rip), %rsi     # 0x6d4bf
callq 0x1c810
testb $0x1, %al
jne 0x47e7d
jmp 0x47ed0
leaq 0x77(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x5770
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rdx
leaq 0x8f89(%rip), %rsi      # 0x50e26
callq 0x5590
jmp 0x47ea4
leaq 0x77(%rsp), %rdi
callq 0x5450
jmp 0x481a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x77(%rsp), %rdi
callq 0x5450
jmp 0x481b3
movq 0x50(%rsp), %rdi
leaq 0x255e4(%rip), %rsi     # 0x6d4c0
callq 0x1c810
testb $0x1, %al
jne 0x47ee7
jmp 0x47f3a
leaq 0x63(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x5770
movq 0x40(%rsp), %rdi
movq 0x30(%rsp), %rdx
leaq 0x5693(%rip), %rsi      # 0x4d59a
callq 0x5590
jmp 0x47f0e
leaq 0x63(%rsp), %rdi
callq 0x5450
jmp 0x481a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x63(%rsp), %rdi
callq 0x5450
jmp 0x481b3
movq 0x50(%rsp), %rdi
leaq 0x2557b(%rip), %rsi     # 0x6d4c1
callq 0x1c810
testb $0x1, %al
jne 0x47f51
jmp 0x47fa4
leaq 0x62(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x5770
movq 0x40(%rsp), %rdi
movq 0x28(%rsp), %rdx
leaq 0x8ebf(%rip), %rsi      # 0x50e30
callq 0x5590
jmp 0x47f78
leaq 0x62(%rsp), %rdi
callq 0x5450
jmp 0x481a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x62(%rsp), %rdi
callq 0x5450
jmp 0x481b3
movq 0x50(%rsp), %rdi
leaq 0x25512(%rip), %rsi     # 0x6d4c2
callq 0x1c810
testb $0x1, %al
jne 0x47fbb
jmp 0x4800e
leaq 0x61(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x5770
movq 0x40(%rsp), %rdi
movq 0x20(%rsp), %rdx
leaq 0x8e63(%rip), %rsi      # 0x50e3e
callq 0x5590
jmp 0x47fe2
leaq 0x61(%rsp), %rdi
callq 0x5450
jmp 0x481a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x61(%rsp), %rdi
callq 0x5450
jmp 0x481b3
movq 0x50(%rsp), %rdi
leaq 0x254a9(%rip), %rsi     # 0x6d4c3
callq 0x1c810
testb $0x1, %al
jne 0x4803a
movq 0x50(%rsp), %rdi
leaq 0x25497(%rip), %rsi     # 0x6d4c6
callq 0x1c810
testb $0x1, %al
jne 0x4803a
jmp 0x4808d
leaq 0x60(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x5770
movq 0x40(%rsp), %rdi
movq 0x18(%rsp), %rdx
leaq 0x8e12(%rip), %rsi      # 0x50e6c
callq 0x5590
jmp 0x48061
leaq 0x60(%rsp), %rdi
callq 0x5450
jmp 0x481a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x5450
jmp 0x481b3
movq 0x50(%rsp), %rdi
leaq 0x2542b(%rip), %rsi     # 0x6d4c4
callq 0x1c810
testb $0x1, %al
jne 0x480a4
jmp 0x480f7
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x5770
movq 0x40(%rsp), %rdi
movq 0x10(%rsp), %rdx
leaq 0x438f(%rip), %rsi      # 0x4c453
callq 0x5590
jmp 0x480cb
leaq 0x5f(%rsp), %rdi
callq 0x5450
jmp 0x481a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x5f(%rsp), %rdi
callq 0x5450
jmp 0x481b3
movq 0x50(%rsp), %rdi
leaq 0x253c2(%rip), %rsi     # 0x6d4c5
callq 0x1c810
testb $0x1, %al
jne 0x4810e
jmp 0x4815b
leaq 0x5e(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x5770
movq 0x40(%rsp), %rdi
movq 0x8(%rsp), %rdx
leaq 0x435b(%rip), %rsi      # 0x4c489
callq 0x5590
jmp 0x48135
leaq 0x5e(%rsp), %rdi
callq 0x5450
jmp 0x481a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x5e(%rsp), %rdi
callq 0x5450
jmp 0x481b3
leaq 0x5d(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x5770
movq 0x40(%rsp), %rdi
movq (%rsp), %rdx
leaq 0x5421(%rip), %rsi      # 0x4d59a
callq 0x5590
jmp 0x48180
leaq 0x5d(%rsp), %rdi
callq 0x5450
jmp 0x481a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x5d(%rsp), %rdi
callq 0x5450
jmp 0x481b3
movq 0x48(%rsp), %rax
addq $0x88, %rsp
retq
movq 0x68(%rsp), %rdi
callq 0x5760
nopl (%rax)