// File: /workspace/github_cpp_makefile_star2_O3/nickgammon[P]tinymudserver/player.cpp
// Function: tPlayer::GetPlayer(std::istream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool const&)
tPlayer * tPlayer::GetPlayer (istream & args, const string & noNameMessage, const bool & notme)
{
  string name;
  args >> name;  
  if (name.empty ())
    throw runtime_error (noNameMessage);
  tPlayer * p = this;
  if (ciStringEqual (name, "me") || ciStringEqual (name, "self"))
    p = this;
  else
    p = FindPlayer (name);
  if (p == NULL)
    throw runtime_error (MAKE_STRING ("Player " << tocapitals (name) << " is not connected."));
  if (notme && p == this)
    throw runtime_error ("You cannot do that to yourself.");
  return p;  
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %rax
movq %rdi, %r14
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq -0x48(%rbp), %rsi
movq %rax, %rdi
callq 0x33b0
cmpq $0x0, -0x40(%rbp)
je 0x5439
leaq -0x1f0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xb797(%rip), %rsi      # 0x10af2
leaq 0xb792(%rip), %rdx      # 0x10af4
leaq -0x200(%rbp), %rdi
callq 0x4bc4
leaq -0x48(%rbp), %rdi
leaq -0x200(%rbp), %rsi
callq 0x4f0f
movb $0x1, %r15b
testb %al, %al
jne 0x53cd
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0xadbf(%rip), %rsi      # 0x10153
leaq 0xadbc(%rip), %rdx      # 0x10157
leaq -0x68(%rbp), %rdi
callq 0x4bc4
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x4f0f
movl %eax, %r15d
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x53c9
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x32f0
leaq -0x38(%rbp), %r13
movq -0x200(%rbp), %rdi
cmpq %r12, %rdi
je 0x53e8
movq -0x1f0(%rbp), %rsi
incq %rsi
callq 0x32f0
movq %r14, %r12
testb %r15b, %r15b
jne 0x5405
leaq -0x48(%rbp), %rdi
callq 0x5260
movq %rax, %r12
testq %rax, %rax
je 0x54a3
cmpq %r14, %r12
jne 0x540f
cmpb $0x0, (%rbx)
jne 0x546c
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x5424
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x32f0
movq %r12, %rax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x3180
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3490
movq 0x10b98(%rip), %rsi     # 0x15ff0
movq 0x10b51(%rip), %rdx     # 0x15fb0
movq %rbx, %rdi
callq 0x3500
jmp 0x555a
movl $0x10, %edi
callq 0x3180
movq %rax, %rbx
leaq 0xacf3(%rip), %rsi      # 0x10173
movq %rax, %rdi
callq 0x3130
movq 0x10b61(%rip), %rsi     # 0x15ff0
movq 0x10b1a(%rip), %rdx     # 0x15fb0
movq %rbx, %rdi
callq 0x3500
jmp 0x555a
movl $0x10, %edi
callq 0x3180
movq %rax, %rbx
leaq -0x200(%rbp), %rdi
callq 0x33d0
leaq -0x200(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
orl $0x1, -0x1e8(%rbp,%rax)
leaq 0xac7f(%rip), %rsi      # 0x10158
movl $0x7, %edx
callq 0x3370
leaq -0x88(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x4e93
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq -0x200(%rbp), %rdi
callq 0x3370
leaq 0xac4f(%rip), %rsi      # 0x10160
leaq -0x200(%rbp), %rdi
movl $0x12, %edx
callq 0x3370
leaq -0x1f8(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x3480
movb $0x1, %r15b
leaq -0x68(%rbp), %rsi
movq %rbx, %rdi
callq 0x3490
xorl %r15d, %r15d
movq 0x10aa5(%rip), %rsi     # 0x15ff0
movq 0x10a5e(%rip), %rdx     # 0x15fb0
movq %rbx, %rdi
callq 0x3500
movq %rax, %r14
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x557e
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x557e
movq %rax, %r14
movb $0x1, %r15b
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x55a1
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x55a1
jmp 0x559b
movq %rax, %r14
movb $0x1, %r15b
movq 0x10a10(%rip), %rsi     # 0x15fb8
leaq -0x200(%rbp), %rdi
callq 0x3190
leaq -0x190(%rbp), %rdi
callq 0x3110
testb %r15b, %r15b
jne 0x55ea
jmp 0x561b
jmp 0x55e7
jmp 0x55e7
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x55f9
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x55f9
jmp 0x55f6
movq %rax, %r14
movq %rbx, %rdi
callq 0x3250
jmp 0x561b
jmp 0x5618
movq %rax, %r14
movq -0x200(%rbp), %rdi
cmpq %r12, %rdi
je 0x561b
movq -0x1f0(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x561b
jmp 0x5618
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5634
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x32f0
movq %r14, %rdi
callq 0x3530