// File: /workspace/github_cpp_makefile_star2_O2/czinn[P]homeworlds/main.cc
// Function: main
int main() {
  std::map<int, std::string> system_names;
  Game *g = read_game(std::cin, system_names);

  if (g->winner() != 0) {
    print_game(std::cout, *g, system_names);
    return 0;
  }

  Negamax nm(g);
  std::vector<Action> actions;
  for (int i = 1; i <= 2; i++) {
    actions = nm.get_actions(i);
  }
  std::vector<std::string> new_names({"Sirius","AlphaCentauri","Mars","Venus"});
  auto new_names_it = new_names.begin();
  for (Action& a : actions) {
    if (a.type == DISCOVER) {
      system_names.emplace(a.system_target, *new_names_it);
    }
    print_action(std::cout, a, system_names, new_names_it);
    std::cout << std::endl;
    g->perform_action(a);
  }

  delete g;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
leaq 0x50(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movq 0x687e(%rip), %rdi      # 0xffe0
leaq 0x48(%rsp), %rsi
callq 0x8755
movq %rax, %rbx
movq %rax, %rdi
callq 0x2754
testl %eax, %eax
je 0x9794
movq 0x684e(%rip), %rdi      # 0xffd0
leaq 0x48(%rsp), %rdx
movq %rbx, %rsi
callq 0x8507
jmp 0x992b
leaq 0xf8(%rsp), %rdi
movq %rbx, %rsi
callq 0x5826
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
andq $0x0, 0x10(%r14)
movaps %xmm0, (%r14)
pushq $0x1
popq %rbp
leaq 0x78(%rsp), %r15
leaq 0xf8(%rsp), %r12
cmpl $0x3, %ebp
je 0x97ee
movq %r15, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x584c
movq %r14, %rdi
movq %r15, %rsi
callq 0x9af0
movq %r15, %rdi
callq 0x6eae
incl %ebp
jmp 0x97c5
leaq 0xa49(%rip), %rsi       # 0xa23e
leaq 0x78(%rsp), %r14
leaq 0xf(%rsp), %rdx
movq %r14, %rdi
callq 0x3f10
leaq 0x98(%rsp), %r15
leaq 0xa2f(%rip), %rsi       # 0xa245
leaq 0xe(%rsp), %rdx
movq %r15, %rdi
callq 0x3f10
leaq 0xb8(%rsp), %r15
leaq 0xa21(%rip), %rsi       # 0xa253
leaq 0xd(%rsp), %rdx
movq %r15, %rdi
callq 0x3f10
leaq 0xd8(%rsp), %r15
leaq 0xa0a(%rip), %rsi       # 0xa258
leaq 0xc(%rsp), %rdx
movq %r15, %rdi
callq 0x3f10
leaq 0x30(%rsp), %rdi
leaq 0x78(%rsp), %rsi
pushq $0x4
popq %rdx
leaq 0xb(%rsp), %rcx
callq 0x99c8
pushq $0x60
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x78, %rdi
callq 0x20c0
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x9876
movq 0x30(%rsp), %rax
leaq 0x78(%rsp), %r14
movq %rax, (%r14)
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %rbp
leaq 0x48(%rsp), %r12
movq 0x6720(%rip), %r13      # 0xffd0
cmpq %rbp, %r15
je 0x98f7
cmpl $0x2, 0x4(%r15)
jne 0x98cd
leaq 0x14(%r15), %rsi
movq 0x78(%rsp), %rdx
movq %r12, %rdi
callq 0x9056
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x82b6
movq %r13, %rdi
callq 0x20e0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32e0
addq $0x20, %r15
jmp 0x98b0
movq %rbx, %rdi
callq 0x691c
pushq $0x68
popq %rsi
movq %rbx, %rdi
callq 0x21f0
leaq 0x30(%rsp), %rdi
callq 0x9a02
leaq 0x10(%rsp), %rdi
callq 0x6eae
leaq 0x100(%rsp), %rdi
callq 0x9a24
leaq 0x48(%rsp), %rdi
callq 0x9aa6
xorl %eax, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
pushq $0x60
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x78, %rdi
callq 0x20c0
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x9950
jmp 0x999e
jmp 0x996d
jmp 0x996d
movq %rax, %rbx
addq $-0x20, %r15
movq %r15, %rdi
callq 0x20c0
cmpq %r14, %r15
jne 0x9970
jmp 0x999e
jmp 0x998c
jmp 0x9987
movq %rax, %rbx
jmp 0x99b5
movq %rax, %rbx
jmp 0x999e
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x9a02
leaq 0x10(%rsp), %rdi
callq 0x6eae
leaq 0x100(%rsp), %rdi
callq 0x9a24
leaq 0x48(%rsp), %rdi
callq 0x9aa6
movq %rbx, %rdi
callq 0x2300
nop