// File: /workspace/github_cpp_makefile_star2_O3/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 0xeecc
movq %rax, %r12
leaq 0x20(%rax), %rdi
movq %r15, %rsi
callq 0xbc8a
addq $0x28, %r12
cmpq %r12, %rax
je 0x8d34
movq %rax, %r14
leaq 0x78f2(%rip), %rsi      # 0x103c5
leaq -0xe8(%rbp), %r12
movq %r12, %rdi
movq %r15, %rdx
callq 0xadba
leaq 0x75e0(%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 0x8b21
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0x8b29
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 0x5170
leaq 0x7860(%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 0x8bad
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x8bb3
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 0x74f4(%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 0x8c0e
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0x8c16
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 0x5170
leaq 0x777b(%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 0x89b3
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x8c98
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0xa8(%rbp), %rdi
cmpq %r12, %rdi
je 0x8cb3
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
leaq -0x38(%rbp), %rbx
je 0x8cd3
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8ce8
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x32f0
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0x8d03
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x32f0
leaq -0xd8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8d22
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 0x7665(%rip), %rsi      # 0x103ad
movq %rax, %rdi
callq 0x3130
movq 0xd299(%rip), %rsi      # 0x15ff0
movq 0xd252(%rip), %rdx      # 0x15fb0
movq %r14, %rdi
callq 0x3500
movq %rax, %rbx
movq %r14, %rdi
callq 0x3250
jmp 0x8e4d
jmp 0x8d78
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x8d95
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x8d95
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r12, %rdi
je 0x8db8
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x8db8
movq %r13, %r15
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x8ddc
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x8ddc
movq %r13, %r15
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x8e0e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x8e0e
movq %r13, %r15
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
jne 0x8de9
jmp 0x8e0e
movq %r13, %r15
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0x8e2e
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x32f0
jmp 0x8e2e
movq %rax, %rbx
leaq -0xd8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e4d
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x32f0
movq %rbx, %rdi
callq 0x3530