// File: /workspace/github_cpp_makefile_star2_O1/nickgammon[P]tinymudserver/commands.cpp
// Function: DoDirection(tPlayer*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void DoDirection (tPlayer * p, const string & sArgs)
  {
  // get current room (throws exception if not there)
  tRoom * r = FindRoom (p->room);

  // find the exit
 tExitMap::const_iterator exititer = r->exits.find (sArgs);    

  if (exititer == r->exits.end ())
    throw runtime_error ("You cannot go that way.");

  // move player
  PlayerToRoom (p, exititer->second,
                "You go " + sArgs + "\n",
                p->playername + " goes " + sArgs + "\n",
                p->playername + " enters.\n");
  
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %r15
movq %rdi, %rbx
addq $0xd4, %rdi
callq 0xef64
movq %rax, %r12
leaq 0x20(%rax), %rdi
movq %r15, %rsi
callq 0xbcf6
addq $0x28, %r12
cmpq %r12, %rax
je 0x8da3
movq %rax, %r14
leaq 0x7883(%rip), %rsi      # 0x103c5
leaq -0xe8(%rbp), %r12
movq %r12, %rdi
movq %r15, %rdx
callq 0xae25
leaq 0x7571(%rip), %rsi      # 0x100cc
movq %r12, %rdi
callq 0x35a0
leaq -0xb8(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8b90
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0x8b98
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, -0xc0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x90(%rbx), %rsi
movq 0x98(%rbx), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x5192
leaq 0x77f1(%rip), %rsi      # 0x103cd
leaq -0x48(%rbp), %rdi
callq 0x35a0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq -0x48(%rbp), %rdi
callq 0x30f0
leaq -0x78(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8c1c
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x8c22
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x88(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x7485(%rip), %rsi      # 0x100cc
callq 0x35a0
leaq -0x98(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
movq %r13, %r15
cmpq %rcx, %rdx
je 0x8c7d
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0x8c85
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0xa0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0x90(%rbx), %rsi
movq 0x98(%rbx), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x5192
leaq 0x770c(%rip), %rsi      # 0x103d4
leaq -0x68(%rbp), %rdi
callq 0x35a0
addq $0x40, %r14
leaq -0xc8(%rbp), %rdx
leaq -0xa8(%rbp), %rcx
leaq -0x68(%rbp), %r8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8a22
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x8d07
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0xa8(%rbp), %rdi
cmpq %r12, %rdi
je 0x8d22
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
leaq -0x38(%rbp), %rbx
je 0x8d42
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8d57
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0x8d72
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x32f0
leaq -0xd8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8d91
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x32f0
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x3180
movq %rax, %r14
leaq 0x75f6(%rip), %rsi      # 0x103ad
movq %rax, %rdi
callq 0x3130
movq 0xd22a(%rip), %rsi      # 0x15ff0
movq 0xd1e3(%rip), %rdx      # 0x15fb0
movq %r14, %rdi
callq 0x3500
movq %rax, %rbx
movq %r14, %rdi
callq 0x3250
jmp 0x8ebc
jmp 0x8de7
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x8e04
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x8e04
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r12, %rdi
je 0x8e27
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x8e27
movq %r13, %r15
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x8e4b
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x8e4b
movq %r13, %r15
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x8e7d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x8e7d
movq %r13, %r15
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
jne 0x8e58
jmp 0x8e7d
movq %r13, %r15
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0x8e9d
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x8e9d
movq %rax, %rbx
leaq -0xd8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8ebc
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x32f0
movq %rbx, %rdi
callq 0x3530