// File: /workspace/github_cpp_makefile_star2_O3/nickgammon[P]tinymudserver/states.cpp
// Function: PlayerEnteredGame(tPlayer*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void PlayerEnteredGame (tPlayer * p, const string & message)
{
  p->connstate = ePlaying;    // now normal player
  p->prompt = PROMPT;         // default prompt
  *p << "Welcome, " << p->playername << "\n\n"; // greet them
  *p << message;
  *p << messagemap ["motd"];  // message of the day
  p->DoCommand ("look");     // new player looks around

  // tell other players
  SendToAll (
    "Player " + p->playername + " has joined the game from " + p->GetAddress () + ".\n", 
    p);
  
  // log it
  cout << "Player " << p->playername << " has joined the game." << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movl $0x5, 0x68(%rdi)
addq $0x70, %rdi
leaq 0xa44e(%rip), %rsi      # 0x166c0
callq 0x31a0
leaq 0x4477(%rip), %rsi      # 0x106f5
movq %rbx, %rdi
callq 0xb530
leaq 0x90(%rbx), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x6a0a
leaq 0x3e2c(%rip), %rsi      # 0x100cb
movq %rax, %rdi
callq 0xb338
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a0a
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x443d(%rip), %rsi      # 0x106ff
leaq 0x443a(%rip), %rdx      # 0x10703
leaq -0x40(%rbp), %rdi
callq 0x4bc4
leaq 0xa5df(%rip), %rdi      # 0x168b8
leaq -0x40(%rbp), %rsi
callq 0x796a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6a0a
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xc302
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x32f0
leaq -0x40(%rbp), %rdi
movq %r12, (%rdi)
leaq 0x4098(%rip), %rsi      # 0x103a8
leaq 0x4095(%rip), %rdx      # 0x103ac
callq 0x4bc4
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x5b06
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xc33d
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x32f0
leaq 0x3e14(%rip), %rsi      # 0x10158
leaq -0xc0(%rbp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xadba
leaq 0x43a7(%rip), %rsi      # 0x10704
movq %r15, %rdi
callq 0x35a0
leaq -0x70(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc389
movq %rdx, -0x80(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x70(%rbp)
jmp 0xc390
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, -0x78(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x90(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x48(%rbx), %rsi
movq 0x50(%rbx), %rdx
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0x5170
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %r8
movq -0x98(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0xc3ea
movq -0x70(%rbp), %rdi
movq -0xa0(%rbp), %rsi
cmpq %rdi, %rax
jbe 0xc40c
movl $0xf, %edi
cmpq %r15, %rsi
je 0xc407
movq -0x90(%rbp), %rdi
cmpq %rdi, %rax
jbe 0xc417
leaq -0x80(%rbp), %rdi
callq 0x30f0
jmp 0xc427
leaq -0xa0(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3360
leaq -0x50(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xc448
movq %rsi, -0x60(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x50(%rbp)
jmp 0xc44e
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x58(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x3c06(%rip), %rsi      # 0x10077
leaq -0x60(%rbp), %rdi
callq 0x35a0
movq %r12, -0x40(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc49a
movq %rdx, -0x40(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x30(%rbp)
jmp 0xc4a2
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq -0x40(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rsi
xorl %edx, %edx
callq 0x6093
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xc4dc
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x32f0
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc4f5
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0xc510
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0xc525
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x32f0
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc544
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x32f0
movq 0x9a75(%rip), %r14      # 0x15fc0
leaq 0x3c06(%rip), %rsi      # 0x10158
movl $0x7, %edx
movq %r14, %rdi
callq 0x3370
movq 0x90(%rbx), %rsi
movq 0x98(%rbx), %rdx
movq %r14, %rdi
callq 0x3370
movq %rax, %rbx
leaq 0x41a0(%rip), %rsi      # 0x1071f
movl $0x15, %edx
movq %rax, %rdi
callq 0x3370
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3220
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xc5e0
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0xc5e0
movq %rax, %rbx
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc5fe
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0xc5fe
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0xc61e
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0xc61e
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0xc638
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0xc638
movq %rax, %rbx
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc672
movq -0xb0(%rbp), %rsi
jmp 0xc66a
jmp 0xc65a
jmp 0xc655
movq %rax, %rbx
jmp 0xc672
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xc672
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x32f0
movq %rbx, %rdi
callq 0x3530