// File: /workspace/github_cpp_makefile_star2_O3/antoniogarro[P]Hara/gtpcommands.cpp
// Function: GTP::final_status_list()
void GTP::final_status_list()
{
  if (cmd_args.size() > 0 && !cmd_args[0].compare("dead")) {
    std::vector<int> list;
    go_engine.score(&list);
    //TODO: support 'alive' status.
    for(std::vector<int>::iterator it = list.begin(); it != list.end(); ++it){
      coord_to_char(*it, response, main_goban.get_size());
      response.append("\n");
    }
  } else {
    response[0] = '?';
    response.append("syntax error");
  }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdi, %rax
movq 0x48(%rdi), %rdi
movq %rax, 0x8(%rsp)
cmpq %rdi, 0x50(%rax)
je 0x7e09
leaq 0x3983(%rip), %rsi      # 0xb783
callq 0x3070
testl %eax, %eax
je 0x7e3c
movq 0x8(%rsp), %rdi
movq 0x98(%rdi), %rax
addq $0x98, %rdi
movb $0x3f, (%rax)
leaq 0x38f2(%rip), %rsi      # 0xb718
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3340
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq 0x8(%rsp), %rax
leaq 0xffaa8(%rax), %rdi
callq 0x3cd6
movq 0x30(%rsp), %r14
cmpq 0x38(%rsp), %r14
je 0x7fcf
movq 0x8(%rsp), %rax
leaq 0x98(%rax), %r12
leaq 0x60(%rsp), %rbp
leaq 0x50(%rsp), %r15
leaq 0x10(%rsp), %rbx
movl (%r14), %eax
testl %eax, %eax
je 0x7f9d
movq %r14, 0x48(%rsp)
movq %r12, %r14
movq %rbx, %r12
movq %r15, %rdi
movq %rbp, %rbx
decl %eax
cltd
movq 0x8(%rsp), %rcx
idivl 0xc0(%rcx)
movl %eax, %r13d
movl %edx, %ebp
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
callq 0x3120
movslq %ebp, %rax
leaq 0x38af(%rip), %rcx      # 0xb790
movb (%rax,%rcx), %al
movb %al, 0x7(%rsp)
movl $0x1, %edx
movq %rbx, %rbp
movq %rbx, %rdi
leaq 0x7(%rsp), %rsi
callq 0x31f0
movq %r12, %rbx
movq %r14, %r12
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3210
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x3080
movq 0x50(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
xorl %esi, %esi
callq 0x32e0
incl %r13d
movq %rbp, %rdi
movl %r13d, %esi
callq 0x32f0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3210
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x3080
movq %r15, %rdi
movq 0x8048(%rip), %rsi      # 0xffb0
callq 0x3140
leaq 0xd0(%rsp), %rdi
callq 0x3090
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
movq 0x48(%rsp), %r14
je 0x7fac
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x31d0
jmp 0x7fac
movq %r12, %rdi
leaq 0x370b(%rip), %rsi      # 0xb6b2
callq 0x3340
movq %r12, %rdi
leaq 0x36ce(%rip), %rsi      # 0xb684
callq 0x3340
addq $0x4, %r14
cmpq 0x38(%rsp), %r14
jne 0x7e8b
movq 0x30(%rsp), %r14
testq %r14, %r14
je 0x7fe4
movq 0x40(%rsp), %rsi
subq %r14, %rsi
movq %r14, %rdi
callq 0x31d0
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7ffd
movq %rax, %rbx
jmp 0x8023
movq %rax, %rbx
jmp 0x803f
movq %rax, %rbx
movq 0x7fa4(%rip), %rsi      # 0xffb0
leaq 0x50(%rsp), %rdi
callq 0x3140
leaq 0xd0(%rsp), %rdi
callq 0x3090
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x803f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x31d0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x8056
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3300
nop