// File: /workspace/github_cpp_makefile_star2_O2/hobbitsyfeet[P]Turn/main.cc
// Function: getPlayer[abi:cxx11]()
string getPlayer(){
  Unit tempPlayer;
  string option="";

  // create a new or load an already created player
  while (option != "load" && option !="new" ){
    cout<<"new or load>>"<<endl;
    cin>>option;
    if(option != "load" && option !="new" )
      cout<<"try again:\n";
  }

  // new player writes file and uses it
  if(option == "new"){
    cout<<"who? >>";
    cin>> option;
    tempPlayer.setName(option);
    //writes files to load later
    tempPlayer.saveUnit(option);
  }
  //uses an already existing file
  else if(option == "load"){
    cout<<"who? >>";
    cin >> option;
  }
  return option;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %rbx
leaq 0x6683(%rip), %rsi      # 0x9085
leaq -0x90(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x2dd8
leaq 0x6673(%rip), %rsi      # 0x908c
leaq -0xb0(%rbp), %r14
leaq -0x2a(%rbp), %rdx
movq %r14, %rdi
callq 0x2dd8
leaq -0x150(%rbp), %rdi
leaq -0x90(%rbp), %rsi
pushq $0x1
popq %rdx
pushq $0xf
popq %rcx
pushq $0x2
popq %r9
movl %ecx, %r8d
pushq %r14
pushq $0x0
pushq $0x0
pushq $0x0
pushq $0x0
pushq $0x0
pushq $0x0
pushq $0x14
pushq $0x1c
pushq $0x6
pushq $0x0
pushq $0x0
pushq $0x2d
pushq $0x0
pushq $0x1
pushq $0x0
callq 0x2fe4
addq $0x80, %rsp
leaq -0xb0(%rbp), %rdi
callq 0x2100
leaq -0x90(%rbp), %rdi
callq 0x2100
leaq 0x6a62(%rip), %rsi      # 0x94f4
leaq -0x29(%rbp), %rdx
movq %rbx, %rdi
callq 0x2dd8
leaq 0x65f1(%rip), %r14      # 0x9096
leaq 0x65ef(%rip), %r15      # 0x909b
movq 0xb51d(%rip), %r12      # 0xdfd0
movq 0xb526(%rip), %r13      # 0xdfe0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2e47
testb %al, %al
je 0x2b29
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2e47
testb %al, %al
je 0x2b29
movq %r12, %rdi
leaq 0x65bd(%rip), %rsi      # 0x909f
callq 0x21c0
movq %rax, %rdi
callq 0x2110
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2220
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2e47
testb %al, %al
je 0x2aba
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2e47
testb %al, %al
je 0x2aba
movq %r12, %rdi
leaq 0x658b(%rip), %rsi      # 0x90ad
callq 0x21c0
jmp 0x2aba
leaq 0x656b(%rip), %rsi      # 0x909b
movq %rbx, %rdi
callq 0x2e13
testb %al, %al
je 0x2baa
movq 0xb48d(%rip), %rdi      # 0xdfd0
leaq 0x656f(%rip), %rsi      # 0x90b9
callq 0x21c0
movq 0xb48a(%rip), %rdi      # 0xdfe0
movq %rbx, %rsi
callq 0x2220
leaq -0x70(%rbp), %rdi
movq %rbx, %rsi
callq 0x2250
leaq -0x150(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x312c
leaq -0x70(%rbp), %rdi
callq 0x2100
leaq -0x50(%rbp), %rdi
movq %rbx, %rsi
callq 0x2250
leaq -0x150(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x37d8
leaq -0x50(%rbp), %rdi
callq 0x2100
jmp 0x2bdf
leaq 0x64e5(%rip), %rsi      # 0x9096
movq %rbx, %rdi
callq 0x2e13
testb %al, %al
je 0x2bdf
movq 0xb40c(%rip), %rdi      # 0xdfd0
leaq 0x64ee(%rip), %rsi      # 0x90b9
callq 0x21c0
movq 0xb409(%rip), %rdi      # 0xdfe0
movq %rbx, %rsi
callq 0x2220
leaq -0x150(%rbp), %rdi
callq 0x2e54
movq %rbx, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x50(%rbp), %rdi
jmp 0x2c10
movq %rax, %r14
leaq -0x70(%rbp), %rdi
callq 0x2100
jmp 0x2c48
movq %rax, %r14
jmp 0x2c50
movq %rax, %r14
leaq -0xb0(%rbp), %rdi
callq 0x2100
jmp 0x2c30
movq %rax, %r14
leaq -0x90(%rbp), %rdi
callq 0x2100
jmp 0x2c5c
movq %rax, %r14
jmp 0x2c5c
jmp 0x2c45
movq %rax, %r14
movq %rbx, %rdi
callq 0x2100
leaq -0x150(%rbp), %rdi
callq 0x2e54
movq %r14, %rdi
callq 0x2300