// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0xa176(%rip), %rdi      # 0x13a10
callq 0x2090
movq 0xa16a(%rip), %rdi      # 0x13a10
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x98cc
movq 0xa155(%rip), %rdi      # 0x13a10
leaq 0x56b2(%rip), %rsi      # 0xef74
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movl $0xffffffff, 0xa162(%rip) # imm = 0xFFFFFFFF
movq 0xa133(%rip), %rdi      # 0x13a10
movl 0xa13d(%rip), %edx      # 0x13a20
addl $-0xd, %edx
movl $0xc, %esi
callq 0x21e0
cmpl $-0x1, %eax
je 0x990d
movq 0xa114(%rip), %rdi      # 0x13a10
leaq 0x5683(%rip), %rsi      # 0xef86
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0xa0fc(%rip), %rdi      # 0x13a10
movl 0xa106(%rip), %edx      # 0x13a20
addl $-0xa, %edx
movl $0xd, %esi
callq 0x21e0
cmpl $-0x1, %eax
je 0x9944
movq 0xa0dd(%rip), %rdi      # 0x13a10
leaq 0x5667(%rip), %rsi      # 0xefa1
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movb $0x1, %bl
movl %ebx, 0x4(%rsp)
movq 0xa0bf(%rip), %rdi      # 0x13a10
movl $0x1, %esi
xorl %edx, %edx
callq 0x21e0
testb %bl, %bl
leaq 0x5650(%rip), %rsi      # 0xefb6
leaq 0x5765(%rip), %rax      # 0xf0d2
cmoveq %rax, %rsi
leaq 0x5651(%rip), %r12      # 0xefc9
leaq 0x5766(%rip), %rax      # 0xf0e5
cmoveq %rax, %r12
leaq 0x565b(%rip), %r15      # 0xefe5
leaq 0x5765(%rip), %rax      # 0xf0f6
cmoveq %rax, %r15
leaq 0x5669(%rip), %r14      # 0xf005
leaq 0x5772(%rip), %rax      # 0xf115
cmoveq %rax, %r14
leaq 0x5673(%rip), %rbx      # 0xf021
leaq 0x577f(%rip), %rax      # 0xf134
cmoveq %rax, %rbx
leaq 0x567d(%rip), %rbp      # 0xf03d
leaq 0x5788(%rip), %rax      # 0xf14f
cmoveq %rax, %rbp
leaq 0x5685(%rip), %r13      # 0xf057
leaq 0x5792(%rip), %rax      # 0xf16b
cmoveq %rax, %r13
leaq 0x5687(%rip), %rcx      # 0xf06b
leaq 0x5798(%rip), %rax      # 0xf183
cmoveq %rax, %rcx
movq %rcx, 0x8(%rsp)
leaq 0x5687(%rip), %rcx      # 0xf082
leaq 0x579e(%rip), %rax      # 0xf1a0
cmoveq %rax, %rcx
movq %rcx, 0x10(%rsp)
sete 0x3(%rsp)
leaq 0x5688(%rip), %rcx      # 0xf09f
leaq 0x5792(%rip), %rax      # 0xf1b0
cmoveq %rax, %rcx
movq %rcx, 0x18(%rsp)
movq 0x9fe2(%rip), %rdi      # 0x13a10
leaq 0x5689(%rip), %rcx      # 0xf0be
leaq 0x5792(%rip), %rax      # 0xf1ce
cmoveq %rax, %rcx
movq %rcx, 0x20(%rsp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9fba(%rip), %rdi      # 0x13a10
movq %r12, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9fa6(%rip), %rdi      # 0x13a10
movq %r15, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9f92(%rip), %rdi      # 0x13a10
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9f7e(%rip), %rdi      # 0x13a10
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9f6a(%rip), %rdi      # 0x13a10
movq %rbp, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9f56(%rip), %rdi      # 0x13a10
movq %r13, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9f42(%rip), %rdi      # 0x13a10
movq 0x8(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9f2c(%rip), %rdi      # 0x13a10
movq 0x10(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9f16(%rip), %rdi      # 0x13a10
movq 0x18(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9f00(%rip), %rdi      # 0x13a10
movq 0x20(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9eea(%rip), %rdi      # 0x13a10
callq 0x2190
movq 0x9ede(%rip), %rdi      # 0x13a10
callq 0x2300
shll $0x18, %eax
cmpl $0x20000000, %eax       # imm = 0x20000000
je 0x9b4c
movl 0x4(%rsp), %ecx
movzbl %cl, %ecx
movl %ecx, %ebx
jmp 0x9b54
xorl %ebx, %ebx
movb 0x3(%rsp), %cl
movb %cl, %bl
cmpl $0xd000000, %eax        # imm = 0xD000000
je 0x9b66
cmpl $0xa000000, %eax        # imm = 0xA000000
jne 0x9946
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq