// File: /workspace/github_c_makefile_star2_O0/hyc[P]trek73c/trekx.c
// Function: PCmd
void PCmd()
{
  boolean X;
  Char Junk;

  werase(Scnwin);
  mvwaddstr(Scnwin, 0, 0, " Code     Command");
  TCount = (-1);
  X = true;
  mvwaddstr(Scnwin, 12, HelpX-13,"<Space Bar> for other page");
  mvwaddstr(Scnwin, 13, HelpX-10,"<Return> to continue");
  do {
    wmove(Scnwin, 1, 0);
    if (X) {
      waddstr(Scnwin, "  1  Fire Phasers\n");
      waddstr(Scnwin, "  2  Fire Photon Torpedoes\n");
      waddstr(Scnwin, "  3  Anti-Matter Probe Control\n");
      waddstr(Scnwin, "  4  Load/Unload Torpedoes\n");
      waddstr(Scnwin, "  5  Change Course & Speed\n");
      waddstr(Scnwin, "  6  Pursue Enemy Vessel\n");
      waddstr(Scnwin, "  7  Damage Report\n");
      waddstr(Scnwin, "  8  Self-Destruction\n");
      waddstr(Scnwin, "  9  Ask Enemy to Surrender\n");
      waddstr(Scnwin, "  0  Attempt Defenseless Ruse\n");
      waddstr(Scnwin, "  -  List Commands\n");
    } else {
      waddstr(Scnwin, "  q  Lock Phasers\n");
      waddstr(Scnwin, "  w  Lock Tubes\n");
      waddstr(Scnwin, "  e  Alter Power Distribution\n");
      waddstr(Scnwin, "  r  Change Firing Parameters\n");
      waddstr(Scnwin, "  t  Alter Display Radius\n");
      waddstr(Scnwin, "  y  Run from Enemy Vessel\n");
      waddstr(Scnwin, "  u  Scan Enemy Vessel\n");
      waddstr(Scnwin, "  i  Engineering Separation\n");
      waddstr(Scnwin, "  o  Surrender\n");
      waddstr(Scnwin, "  p  Attempt Corbomite Bluff\n");
      waddstr(Scnwin, "  [  Quit Game\n");
    }
    wrefresh(Scnwin);
    Junk = wgetch(Scnwin);
    if (Junk == ' ')
      X = !X;
  } while ((Junk != '\n') && (Junk != '\r'));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq 0xa9a1(%rip), %rdi      # 0x15a00
callq 0x2090
movq 0xa995(%rip), %rdi      # 0x15a00
xorl %edx, %edx
movl %edx, %esi
callq 0x21d0
cmpl $-0x1, %eax
jne 0xb07b
jmp 0xb093
movq 0xa97e(%rip), %rdi      # 0x15a00
leaq 0x6027(%rip), %rsi      # 0x110b0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movl $0xffffffff, 0xa98b(%rip) # imm = 0xFFFFFFFF
movb $0x1, -0x1(%rbp)
movq 0xa958(%rip), %rdi      # 0x15a00
movl 0xa962(%rip), %edx      # 0x15a10
subl $0xd, %edx
movl $0xc, %esi
callq 0x21d0
cmpl $-0x1, %eax
jne 0xb0c2
jmp 0xb0da
movq 0xa937(%rip), %rdi      # 0x15a00
leaq 0x5ff2(%rip), %rsi      # 0x110c2
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa91f(%rip), %rdi      # 0x15a00
movl 0xa929(%rip), %edx      # 0x15a10
subl $0xa, %edx
movl $0xd, %esi
callq 0x21d0
cmpl $-0x1, %eax
jne 0xb0fb
jmp 0xb113
movq 0xa8fe(%rip), %rdi      # 0x15a00
leaq 0x5fd4(%rip), %rsi      # 0x110dd
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa8e6(%rip), %rdi      # 0x15a00
movl $0x1, %esi
xorl %edx, %edx
callq 0x21d0
cmpb $0x0, -0x1(%rbp)
je 0xb23d
movq 0xa8c9(%rip), %rdi      # 0x15a00
leaq 0x5fb4(%rip), %rsi      # 0x110f2
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa8b1(%rip), %rdi      # 0x15a00
leaq 0x5faf(%rip), %rsi      # 0x11105
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa899(%rip), %rdi      # 0x15a00
leaq 0x5fb3(%rip), %rsi      # 0x11121
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa881(%rip), %rdi      # 0x15a00
leaq 0x5fbb(%rip), %rsi      # 0x11141
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa869(%rip), %rdi      # 0x15a00
leaq 0x5fbf(%rip), %rsi      # 0x1115d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa851(%rip), %rdi      # 0x15a00
leaq 0x5fc3(%rip), %rsi      # 0x11179
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa839(%rip), %rdi      # 0x15a00
leaq 0x5fc5(%rip), %rsi      # 0x11193
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa821(%rip), %rdi      # 0x15a00
leaq 0x5fc1(%rip), %rsi      # 0x111a7
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa809(%rip), %rdi      # 0x15a00
leaq 0x5fc0(%rip), %rsi      # 0x111be
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa7f1(%rip), %rdi      # 0x15a00
leaq 0x5fc5(%rip), %rsi      # 0x111db
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa7d9(%rip), %rdi      # 0x15a00
leaq 0x5fcc(%rip), %rsi      # 0x111fa
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
jmp 0xb345
movq 0xa7bc(%rip), %rdi      # 0x15a00
leaq 0x5fc3(%rip), %rsi      # 0x1120e
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa7a4(%rip), %rdi      # 0x15a00
leaq 0x5fbe(%rip), %rsi      # 0x11221
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa78c(%rip), %rdi      # 0x15a00
leaq 0x5fb7(%rip), %rsi      # 0x11232
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa774(%rip), %rdi      # 0x15a00
leaq 0x5fbe(%rip), %rsi      # 0x11251
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa75c(%rip), %rdi      # 0x15a00
leaq 0x5fc5(%rip), %rsi      # 0x11270
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa744(%rip), %rdi      # 0x15a00
leaq 0x5fc8(%rip), %rsi      # 0x1128b
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa72c(%rip), %rdi      # 0x15a00
leaq 0x5fcc(%rip), %rsi      # 0x112a7
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa714(%rip), %rdi      # 0x15a00
leaq 0x5fcc(%rip), %rsi      # 0x112bf
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa6fc(%rip), %rdi      # 0x15a00
leaq 0x5fd1(%rip), %rsi      # 0x112dc
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa6e4(%rip), %rdi      # 0x15a00
leaq 0x5fc9(%rip), %rsi      # 0x112ec
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa6cc(%rip), %rdi      # 0x15a00
leaq 0x5fcf(%rip), %rsi      # 0x1130a
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa6b4(%rip), %rdi      # 0x15a00
callq 0x2180
movq 0xa6a8(%rip), %rdi      # 0x15a00
callq 0x22f0
movb %al, -0x2(%rbp)
movsbl -0x2(%rbp), %eax
cmpl $0x20, %eax
jne 0xb37a
cmpb $0x0, -0x1(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x1(%rbp)
jmp 0xb37c
movsbl -0x2(%rbp), %ecx
xorl %eax, %eax
cmpl $0xa, %ecx
movb %al, -0x3(%rbp)
je 0xb397
movsbl -0x2(%rbp), %eax
cmpl $0xd, %eax
setne %al
movb %al, -0x3(%rbp)
movb -0x3(%rbp), %al
testb $0x1, %al
jne 0xb113
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)