// File: /workspace/github_cpp_makefile_star2_O1/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 0x611c(%rip), %rdi      # 0xffe0
leaq 0xb8(%rsp), %rsi
callq 0x8d25
movq %rax, %rbx
movq %rax, %rdi
callq 0x2822
testl %eax, %eax
je 0x9efc
movq 0x60e9(%rip), %rdi      # 0xffd0
leaq 0xb8(%rsp), %rdx
movq %rbx, %rsi
callq 0x89ff
jmp 0xa15c
leaq 0xe8(%rsp), %rdi
movq %rbx, 0x18(%rsp)
movq %rbx, %rsi
callq 0x5a0e
movl $0x1, %ebp
xorl %r13d, %r13d
leaq 0x20(%rsp), %r14
leaq 0xe8(%rsp), %r12
xorl %ebx, %ebx
movq %r14, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x5a34
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %r15
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
testq %r13, %r13
je 0x9f72
subq %r13, %rbx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x21d0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x9f89
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
incl %ebp
movq 0x8(%rsp), %r13
movq 0x10(%rsp), %rbx
cmpl $0x3, %ebp
jne 0x9f28
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x12a4(%rip), %rsi      # 0xb24e
leaq 0x12a3(%rip), %rdx      # 0xb254
leaq 0x20(%rsp), %r13
movq %r13, %rdi
callq 0x4a6a
leaq 0x40(%rsp), %r12
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1282(%rip), %rsi      # 0xb255
leaq 0x1288(%rip), %rdx      # 0xb262
movq %r12, %rdi
callq 0x4a6a
leaq 0x60(%rsp), %r12
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x126c(%rip), %rsi      # 0xb263
leaq 0x1269(%rip), %rdx      # 0xb267
movq %r12, %rdi
callq 0x4a6a
leaq 0x80(%rsp), %r12
leaq 0x90(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x1247(%rip), %rsi      # 0xb268
leaq 0x1245(%rip), %rdx      # 0xb26d
movq %r12, %rdi
callq 0x4a6a
leaq 0xa0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x4, %edx
callq 0xa248
movq $-0x80, %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0xa067
movq (%rbx), %rsi
incq %rsi
callq 0x21d0
addq $-0x20, %rbx
addq $0x20, %r14
jne 0xa053
movq 0xa0(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x8(%rsp), %rbx
cmpq %r15, %rbx
je 0xa106
leaq 0xb8(%rsp), %r12
movq 0x5f39(%rip), %r13      # 0xffd0
leaq 0x20(%rsp), %rbp
movq %rbx, %r14
cmpl $0x2, 0x4(%r14)
jne 0xa0b7
leaq 0x14(%r14), %rsi
movq 0x20(%rsp), %rdx
movq %r12, %rdi
callq 0x984c
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x8681
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 %r14, %rsi
callq 0x3644
addq $0x20, %r14
cmpq %r15, %r14
jne 0xa09f
movq 0x18(%rsp), %r14
leaq 0x38(%r14), %rdi
callq 0x45a4
movq %r14, %rdi
addq $0x20, %rdi
callq 0x43d8
movl $0x68, %esi
movq %r14, %rdi
callq 0x21d0
leaq 0xa0(%rsp), %rdi
callq 0xa290
testq %rbx, %rbx
je 0xa14f
movq 0x10(%rsp), %rsi
subq %rbx, %rsi
movq %rbx, %rdi
callq 0x21d0
leaq 0xf0(%rsp), %rdi
callq 0xa2ec
leaq 0xb8(%rsp), %rdi
callq 0xa35c
xorl %eax, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0xa0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x242a
movb $0x1, %al
jmp 0xa1a9
jmp 0xa19a
jmp 0xa19a
movq %rax, %r14
xorl %eax, %eax
jmp 0xa1a9
movq %rax, %r14
xorl %eax, %eax
movq %r13, %r12
cmpq %r12, %r13
sete %cl
orb %al, %cl
jne 0xa20b
addq $-0x10, %r12
leaq 0x20(%rsp), %rbx
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0xa1d2
movq (%r12), %rsi
incq %rsi
callq 0x21d0
leaq -0x20(%r12), %rax
addq $-0x10, %r12
cmpq %rbx, %r12
movq %rax, %r12
jne 0xa1bc
jmp 0xa20b
jmp 0xa1e7
movq %rax, %r14
jmp 0xa232
movq %rax, %r14
movq %rbx, 0x10(%rsp)
movq %r13, 0x8(%rsp)
jmp 0xa20b
movq %rax, %r14
leaq 0xa0(%rsp), %rdi
callq 0xa290
cmpq $0x0, 0x8(%rsp)
je 0xa225
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
subq %rdi, %rsi
callq 0x21d0
leaq 0xf0(%rsp), %rdi
callq 0xa2ec
leaq 0xb8(%rsp), %rdi
callq 0xa35c
movq %r14, %rdi
callq 0x22d0
nop