// File: /workspace/github_c_makefile_star2_O1/hyc[P]trek73c/trekx.c
// Function: Command
void Command()
{
  Char Ch;
  int I, Y, X;
  boolean Looped;
#ifdef	FD_SET
  fd_set ReadFd;
#else
  int ReadFd;
#endif
  struct timeval Timeout;

  if (Redo) {
    DrawRep();
    Redo = false;
  }
  Status();
  LKnt = 0;
  waddstr(Cmdwin,Name);
  waddstr(Cmdwin,": Code ");
  wrefresh(Cmdwin);
  Looped = false;
  do {
#ifdef	FD_ZERO
    FD_ZERO(&ReadFd);
    FD_SET(0, &ReadFd);
#else
    ReadFd = 1;
#endif
    Timeout.tv_sec = Timer;
    Timeout.tv_usec = 0;
    if (select(1, &ReadFd, NULL, NULL, &Timeout)<1) {
      Looped = true;
      werase(Cmdwin);
    } else {
      Ch = wgetch(Cmdwin);
      Looped = true;
      waddstr(Cmdwin,"\n");
      wclrtoeol(Cmdwin);
      wrefresh(Cmdwin);
      if (isupper(Ch))
	Ch = tolower(Ch);
      switch (Ch) {
	  case '1':
	    PFire();
	    break;

	  case '2':
	    TFire();
	    break;

	  case '3':
	    PCtrl();
	    break;

	  case '4':
	    TLoad();
	    break;

	  case '5':
	    MNav();
	    break;

	  case '6':
	    PNav();
	    break;

	  case '7':
	    SScan();
	    break;

	  case '8':
	    SDest();
	    break;

	  case '9':
	    ASrndr();
	    break;

	  case '0':
	    Druse();
	    break;

	  case '-':
	    PCmd();
	    break;

	  case 'q':
	    Pstts();
	    break;

	  case 'w':
	    Tstts();
	    break;

	  case 'e':
	    AtPwr();
	    break;

	  case 'r':
	    ChPrm();
	    break;

	  case 't':
	    AtRad();
	    break;

	  case 'y':
	    ENav();
	    break;

	  case 'u':
	    EScan();
	    break;

	  case 'i':
	    Engin();
	    break;

	  case 'o':
	    Srndr();
	    break;

	  case 'p':
	    DoBluff();
	    break;

	  case '[':
	    EStop();
	    break;

	  case '':
	    wrefresh(curscr);

	  default:
	    Looped = false;
	    break;
      }
    }
  } while (!Looped);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
cmpb $0x1, 0x834d(%rip)      # 0x13a2c
jne 0xb6ed
callq 0x35d9
movb $0x0, 0x833f(%rip)      # 0x13a2c
callq 0x3e79
movl $0x0, 0x8328(%rip)      # 0x13a24
movq 0x82f5(%rip), %rdi      # 0x139f8
movq 0x7ebe(%rip), %rsi      # 0x135c8
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x82dd(%rip), %rdi      # 0x139f8
leaq 0x4906(%rip), %rsi      # 0x10028
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x82c5(%rip), %rdi      # 0x139f8
callq 0x2190
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x30(%rsi)
movaps %xmm0, 0x40(%rsi)
movaps %xmm0, 0x50(%rsi)
movaps %xmm0, 0x60(%rsi)
movaps %xmm0, 0x70(%rsi)
movq $0x1, (%rsi)
movzbl 0x7e64(%rip), %eax      # 0x135d1
movq %rsp, %r8
movq %rax, (%r8)
movq $0x0, 0x8(%r8)
movl $0x1, %edi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x20c0
testl %eax, %eax
jle 0xb8c2
leaq 0x2499(%rip), %rbx      # 0xdc31
leaq 0x10(%rsp), %r14
movq %rsp, %r15
leaq 0x1ae9(%rip), %rbp      # 0xd290
movq 0x824a(%rip), %rdi      # 0x139f8
callq 0x2300
movl %eax, %r12d
movq 0x823b(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x8227(%rip), %rdi      # 0x139f8
callq 0x2220
movq 0x821b(%rip), %rdi      # 0x139f8
callq 0x2190
callq 0x2170
movq (%rax), %rax
movsbq %r12b, %r13
testb $0x1, 0x1(%rax,%r13,2)
je 0xb802
callq 0x2260
movq (%rax), %rax
movl (%rax,%r13,4), %r12d
movsbl %r12b, %eax
cmpl $0x2c, %eax
jg 0xb888
cmpl $0xc, %eax
jne 0xb81f
movq 0x7799(%rip), %rax      # 0x12fb0
movq (%rax), %rdi
callq 0x2190
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq $0x1, 0x10(%rsp)
movzbl 0x7d74(%rip), %eax      # 0x135d1
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movl $0x1, %edi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r15, %r8
callq 0x20c0
testl %eax, %eax
jg 0xb7a7
jmp 0xb8c2
leal -0x2d(%rax), %ecx
cmpl $0xc, %ecx
jbe 0xb8a8
leal -0x65(%rax), %ecx
cmpl $0x14, %ecx
ja 0xb8b2
leaq 0x1a25(%rip), %rdx      # 0xd2c4
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
movslq (%rbp,%rcx,4), %rax
addq %rbp, %rax
jmpq *%rax
cmpl $0x5b, %eax
jne 0xb81f
callq 0xb692
jmp 0xb8ce
movq 0x812f(%rip), %rdi      # 0x139f8
callq 0x2090
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x95e4
jmp 0xb8ce
callq 0x9729
jmp 0xb8ce
callq 0x8f71
jmp 0xb8ce
callq 0x8cc1
jmp 0xb8ce
callq 0x8744
jmp 0xb8ce
callq 0x83c0
jmp 0xb8ce
callq 0x9885
jmp 0xb8ce
callq 0x9140
jmp 0xb8ce
movl $0xffffffff, 0x8116(%rip) # imm = 0xFFFFFFFF
xorl %edi, %edi
callq 0x7ce7
jmp 0xb8ce
callq 0x9030
jmp 0xb8ce
callq 0x85bb
jmp 0xb8ce
callq 0xac51
jmp 0xb8ce
callq 0xa91f
jmp 0xb8ce
callq 0x9b75
jmp 0xb8ce
callq 0xaddb
jmp 0xb8ce
callq 0xb10b
jmp 0xb8ce
callq 0xab9e
jmp 0xb8ce
callq 0xa079
jmp 0xb8ce
callq 0xae4b
jmp 0xb8ce
callq 0xa5b8
jmp 0xb8ce
callq 0xaf94
jmp 0xb8ce