// File: /workspace/github_cpp_makefile_star2_O1/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 0xa3e2(%rip), %rsi      # 0x166c0
callq 0x31a0
leaq 0x440b(%rip), %rsi      # 0x106f5
movq %rbx, %rdi
callq 0xb59c
leaq 0x90(%rbx), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x6a44
leaq 0x3dc0(%rip), %rsi      # 0x100cb
movq %rax, %rdi
callq 0xb3a4
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a44
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x43d1(%rip), %rsi      # 0x106ff
leaq 0x43ce(%rip), %rdx      # 0x10703
leaq -0x40(%rbp), %rdi
callq 0x4bc4
leaq 0xa573(%rip), %rdi      # 0x168b8
leaq -0x40(%rbp), %rsi
callq 0x79b2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6a44
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xc36e
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x32f0
leaq -0x40(%rbp), %rdi
movq %r12, (%rdi)
leaq 0x402c(%rip), %rsi      # 0x103a8
leaq 0x4029(%rip), %rdx      # 0x103ac
callq 0x4bc4
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x5b44
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xc3a9
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x32f0
leaq 0x3da8(%rip), %rsi      # 0x10158
leaq -0xc0(%rbp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xae25
leaq 0x433b(%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 0xc3f5
movq %rdx, -0x80(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x70(%rbp)
jmp 0xc3fc
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 0x5192
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %r8
movq -0x98(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0xc456
movq -0x70(%rbp), %rsi
cmpq %rsi, %rax
jbe 0xc475
movl $0xf, %esi
cmpq %r15, -0xa0(%rbp)
je 0xc470
movq -0x90(%rbp), %rsi
cmpq %rsi, %rax
jbe 0xc487
movq -0xa0(%rbp), %rsi
leaq -0x80(%rbp), %rdi
callq 0x30f0
jmp 0xc497
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 0xc4b8
movq %rsi, -0x60(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x50(%rbp)
jmp 0xc4be
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 0x3b96(%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 0xc50a
movq %rdx, -0x40(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x30(%rbp)
jmp 0xc512
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 0x60c8
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xc54c
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x32f0
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc565
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0xc580
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0xc595
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x32f0
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc5b4
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x32f0
movq 0x9a05(%rip), %r14      # 0x15fc0
leaq 0x3b96(%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 0x4130(%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 0xc650
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0xc650
movq %rax, %rbx
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc66e
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0xc66e
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0xc68e
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0xc68e
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0xc6a8
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0xc6a8
movq %rax, %rbx
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc6e2
movq -0xb0(%rbp), %rsi
jmp 0xc6da
jmp 0xc6ca
jmp 0xc6c5
movq %rax, %rbx
jmp 0xc6e2
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xc6e2
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x32f0
movq %rbx, %rdi
callq 0x3530