// File: /workspace/github_cpp_makefile_star2_O1/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 0x837e(%rip), %rsi      # 0xb085
leaq 0x837d(%rip), %rdx      # 0xb08b
leaq -0x90(%rbp), %rdi
callq 0x34e4
leaq -0xa0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x835f(%rip), %rsi      # 0xb08c
leaq 0x8361(%rip), %rdx      # 0xb095
leaq -0xb0(%rbp), %r14
movq %r14, %rdi
callq 0x34e4
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 0x3580
addq $0x80, %rsp
movq -0xb0(%rbp), %rdi
cmpq %r12, %rdi
je 0x2da6
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x2dbe
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2210
leaq 0x10(%rbx), %rax
movq %rax, -0x30(%rbp)
movq %rax, (%rbx)
leaq 0x8724(%rip), %rdx      # 0xb4f4
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x34e4
leaq 0x82b4(%rip), %rsi      # 0xb096
movq %rbx, %rdi
callq 0x20c0
testl %eax, %eax
je 0x2eac
leaq 0x82a2(%rip), %r14      # 0xb09b
movq 0xc1d0(%rip), %r15      # 0xefd0
movq 0xc1d9(%rip), %r13      # 0xefe0
leaq 0x8288(%rip), %r12      # 0xb096
movq %rbx, %rdi
movq %r14, %rsi
callq 0x20c0
testl %eax, %eax
je 0x2eac
movl $0xd, %edx
movq %r15, %rdi
leaq 0x826f(%rip), %rsi      # 0xb09f
callq 0x2240
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2260
movq %rbx, %rdi
movq %r12, %rsi
callq 0x20c0
testl %eax, %eax
je 0x2e99
movq %rbx, %rdi
movq %r14, %rsi
callq 0x20c0
testl %eax, %eax
je 0x2e99
movl $0xb, %edx
movq %r15, %rdi
leaq 0x8219(%rip), %rsi      # 0xb0ad
callq 0x2240
movq %rbx, %rdi
movq %r12, %rsi
callq 0x20c0
testl %eax, %eax
jne 0x2e0e
leaq 0x81e8(%rip), %rsi      # 0xb09b
movq %rbx, %rdi
callq 0x20c0
testl %eax, %eax
je 0x2f02
leaq 0x81d0(%rip), %rsi      # 0xb096
movq %rbx, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x2fa9
movq 0xc0f3(%rip), %rdi      # 0xefd0
leaq 0x81d5(%rip), %rsi      # 0xb0b9
movl $0x7, %edx
callq 0x2240
movq 0xc0eb(%rip), %rdi      # 0xefe0
movq %rbx, %rsi
callq 0x2260
jmp 0x2fa9
movq 0xc0c7(%rip), %rdi      # 0xefd0
leaq 0x81a9(%rip), %rsi      # 0xb0b9
movl $0x7, %edx
callq 0x2240
movq 0xc0bf(%rip), %rdi      # 0xefe0
movq %rbx, %rsi
callq 0x2260
leaq -0x60(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x344a
leaq -0x150(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x36f2
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x2f69
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x40(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x344a
leaq -0x150(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x4208
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x2fa9
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0xd0(%rbp), %r14
movq %r14, %rdi
callq 0x33a6
movq -0x28(%r14), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x2fd7
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x140(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ff6
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x2210
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 0x307e
movq -0x40(%rbp), %rsi
jmp 0x302d
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x307e
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0x307e
movq %rax, %r14
jmp 0x3096
movq %rax, %r14
movq -0xb0(%rbp), %rdi
cmpq %r12, %rdi
je 0x305f
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0x305f
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x30a2
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0x30a2
jmp 0x307b
movq %rax, %r14
movq (%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x3096
movq -0x30(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2210
leaq -0x150(%rbp), %rdi
callq 0x3354
movq %r14, %rdi
callq 0x2320