// File: /workspace/github_cpp_makefile_star2_O3/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 $0x128, %rsp            # imm = 0x128
leaq 0xc0(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq 0x6350(%rip), %rdi      # 0xffe0
leaq 0xb8(%rsp), %rsi
callq 0x8b11
movq %rax, %rbx
movq %rax, %rdi
callq 0x283e
testl %eax, %eax
je 0x9cc8
movq 0x631d(%rip), %rdi      # 0xffd0
leaq 0xb8(%rsp), %rdx
movq %rbx, %rsi
callq 0x87eb
jmp 0x9f27
leaq 0xe8(%rsp), %rdi
movq %rbx, 0x18(%rsp)
movq %rbx, %rsi
callq 0x591a
movl $0x1, %ebx
xorl %r15d, %r15d
leaq 0x20(%rsp), %r12
leaq 0xe8(%rsp), %r13
xorl %ebp, %ebp
movq %r12, %rdi
movq %r13, %rsi
movl %ebx, %edx
callq 0x5940
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %r14
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
testq %r15, %r15
je 0x9d55
subq %r15, %rbp
movq %r15, %rdi
movq %rbp, %rsi
callq 0x21d0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x9d55
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
incl %ebx
cmpl $0x3, %ebx
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %rbp
jne 0x9cf4
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x14d8(%rip), %rsi      # 0xb24e
leaq 0x14d7(%rip), %rdx      # 0xb254
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x4974
leaq 0x40(%rsp), %r13
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x14b6(%rip), %rsi      # 0xb255
leaq 0x14bc(%rip), %rdx      # 0xb262
movq %r13, %rdi
callq 0x4974
leaq 0x60(%rsp), %r13
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x14a0(%rip), %rsi      # 0xb263
leaq 0x149d(%rip), %rdx      # 0xb267
movq %r13, %rdi
callq 0x4974
leaq 0x80(%rsp), %r13
leaq 0x90(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x147b(%rip), %rsi      # 0xb268
leaq 0x1479(%rip), %rdx      # 0xb26d
movq %r13, %rdi
callq 0x4974
leaq 0xa0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x4, %edx
callq 0x9ff8
movq $-0x80, %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x9e33
movq (%rbx), %rsi
incq %rsi
callq 0x21d0
addq $-0x20, %rbx
addq $0x20, %r15
jne 0x9e1f
movq 0xa0(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x8(%rsp), %r15
cmpq %r14, %r15
je 0x9ed1
leaq 0xb8(%rsp), %r12
movq 0x616d(%rip), %r13      # 0xffd0
leaq 0x20(%rsp), %rbp
movq %r15, %rbx
cmpl $0x2, 0x4(%rbx)
jne 0x9e82
leaq 0x14(%rbx), %rsi
movq 0x20(%rsp), %rdx
movq %r12, %rdi
callq 0x961c
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x846d
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x357c
addq $0x20, %rbx
cmpq %r14, %rbx
jne 0x9e6b
movq 0x18(%rsp), %rbx
leaq 0x38(%rbx), %rdi
callq 0x44c2
movq %rbx, %rdi
addq $0x20, %rdi
callq 0x4300
movl $0x68, %esi
movq %rbx, %rdi
callq 0x21d0
leaq 0xa0(%rsp), %rdi
callq 0xa040
testq %r15, %r15
je 0x9f1a
movq 0x10(%rsp), %rsi
subq %r15, %rsi
movq %r15, %rdi
callq 0x21d0
leaq 0xf0(%rsp), %rdi
callq 0xa09e
leaq 0xb8(%rsp), %rdi
callq 0xa10e
xorl %eax, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x242a
jmp 0x9fbc
jmp 0x9f63
jmp 0x9f63
movq %rax, %rbx
addq $-0x10, %r13
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x9f7f
movq (%r13), %rsi
incq %rsi
callq 0x21d0
leaq -0x20(%r13), %rax
addq $-0x10, %r13
cmpq %r12, %r13
movq %rax, %r13
jne 0x9f6a
jmp 0x9fbc
movq %rax, %rbx
jmp 0x9fbc
jmp 0x9f98
movq %rax, %rbx
jmp 0x9fe3
movq %rax, %rbx
movq %rbp, 0x10(%rsp)
movq %r15, 0x8(%rsp)
jmp 0x9fbc
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0xa040
cmpq $0x0, 0x8(%rsp)
je 0x9fd6
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
leaq 0xf0(%rsp), %rdi
callq 0xa09e
leaq 0xb8(%rsp), %rdi
callq 0xa10e
movq %rbx, %rdi
callq 0x22d0