// File: /workspace/github_cpp_makefile_star2_O3/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 -0x80(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x834c(%rip), %rsi      # 0xb085
leaq 0x834b(%rip), %rdx      # 0xb08b
leaq -0x90(%rbp), %rdi
callq 0x351a
leaq -0xa0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x832d(%rip), %rsi      # 0xb08c
leaq 0x832f(%rip), %rdx      # 0xb095
leaq -0xb0(%rbp), %r14
movq %r14, %rdi
callq 0x351a
xorl %eax, %eax
leaq -0x150(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movl $0x1, %edx
movl $0xf, %ecx
movl $0xf, %r8d
movl $0x2, %r9d
pushq %r14
pushq %rax
pushq %rax
pushq %rax
pushq %rax
pushq %rax
pushq %rax
pushq $0x14
pushq $0x1c
pushq $0x6
pushq %rax
pushq %rax
pushq $0x2d
pushq %rax
pushq $0x1
pushq %rax
callq 0x35b8
addq $0x80, %rsp
movq -0xb0(%rbp), %rdi
cmpq %r12, %rdi
je 0x2dd8
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2200
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x2df0
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2200
leaq 0x10(%rbx), %rax
movq %rax, -0x30(%rbp)
movq %rax, (%rbx)
leaq 0x86f2(%rip), %rdx      # 0xb4f4
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x351a
leaq 0x8282(%rip), %rsi      # 0xb096
movq %rbx, %rdi
callq 0x20c0
testl %eax, %eax
je 0x2ede
leaq 0x8270(%rip), %r14      # 0xb09b
movq 0xc19e(%rip), %r15      # 0xefd0
movq 0xc1a7(%rip), %r13      # 0xefe0
leaq 0x8256(%rip), %r12      # 0xb096
movq %rbx, %rdi
movq %r14, %rsi
callq 0x20c0
testl %eax, %eax
je 0x2ede
movl $0xd, %edx
movq %r15, %rdi
leaq 0x823d(%rip), %rsi      # 0xb09f
callq 0x2230
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2250
movq %rbx, %rdi
movq %r12, %rsi
callq 0x20c0
testl %eax, %eax
je 0x2ecb
movq %rbx, %rdi
movq %r14, %rsi
callq 0x20c0
testl %eax, %eax
je 0x2ecb
movl $0xb, %edx
movq %r15, %rdi
leaq 0x81e7(%rip), %rsi      # 0xb0ad
callq 0x2230
movq %rbx, %rdi
movq %r12, %rsi
callq 0x20c0
testl %eax, %eax
jne 0x2e40
leaq 0x81b6(%rip), %rsi      # 0xb09b
movq %rbx, %rdi
callq 0x20c0
testl %eax, %eax
je 0x2f34
leaq 0x819e(%rip), %rsi      # 0xb096
movq %rbx, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x2fdb
movq 0xc0c1(%rip), %rdi      # 0xefd0
leaq 0x81a3(%rip), %rsi      # 0xb0b9
movl $0x7, %edx
callq 0x2230
movq 0xc0b9(%rip), %rdi      # 0xefe0
movq %rbx, %rsi
callq 0x2250
jmp 0x2fdb
movq 0xc095(%rip), %rdi      # 0xefd0
leaq 0x8177(%rip), %rsi      # 0xb0b9
movl $0x7, %edx
callq 0x2230
movq 0xc08d(%rip), %rdi      # 0xefe0
movq %rbx, %rsi
callq 0x2250
leaq -0x60(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x347c
leaq -0x150(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x372a
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x2f9b
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2200
leaq -0x40(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x347c
leaq -0x150(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x4208
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x2fdb
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2200
leaq -0xd0(%rbp), %r14
movq %r14, %rdi
callq 0x33d8
movq -0x28(%r14), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x3009
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2200
leaq -0x140(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3028
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x30b0
movq -0x40(%rbp), %rsi
jmp 0x305f
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x30b0
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2200
jmp 0x30b0
movq %rax, %r14
jmp 0x30c8
movq %rax, %r14
movq -0xb0(%rbp), %rdi
cmpq %r12, %rdi
je 0x3091
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2200
jmp 0x3091
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x30d4
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2200
jmp 0x30d4
jmp 0x30ad
movq %rax, %r14
movq (%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x30c8
movq -0x30(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2200
leaq -0x150(%rbp), %rdi
callq 0x3386
movq %r14, %rdi
callq 0x2310