// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movq 0xa3f5(%rip), %rdi      # 0x12a00
callq 0x2080
movq 0xa3e9(%rip), %rdi      # 0x12a00
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
cmpl $-0x1, %eax
je 0x863b
movq 0xa3d4(%rip), %rdi      # 0x12a00
leaq 0x4981(%rip), %rsi      # 0xcfb4
pushq $-0x1
popq %rdx
callq 0x2200
orl $-0x1, 0xa3e6(%rip)     # 0x12a28
movq 0xa3b7(%rip), %rdi      # 0x12a00
movl 0xa3c1(%rip), %edx      # 0x12a10
addl $-0xd, %edx
pushq $0xc
popq %rsi
callq 0x21d0
cmpl $-0x1, %eax
je 0x8675
movq 0xa39a(%rip), %rdi      # 0x12a00
leaq 0x4959(%rip), %rsi      # 0xcfc6
pushq $-0x1
popq %rdx
callq 0x2200
movq 0xa384(%rip), %rdi      # 0x12a00
movl 0xa38e(%rip), %edx      # 0x12a10
addl $-0xa, %edx
pushq $0xd
popq %rsi
callq 0x21d0
cmpl $-0x1, %eax
je 0x86a8
movq 0xa367(%rip), %rdi      # 0x12a00
leaq 0x4941(%rip), %rsi      # 0xcfe1
pushq $-0x1
popq %rdx
callq 0x2200
movb $0x1, %bl
movl %ebx, 0xc(%rsp)
movq 0xa34b(%rip), %rdi      # 0x12a00
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x21d0
testb %bl, %bl
leaq 0x492e(%rip), %rsi      # 0xcff6
leaq 0x4a43(%rip), %rax      # 0xd112
cmoveq %rax, %rsi
leaq 0x492f(%rip), %r13      # 0xd009
leaq 0x4a44(%rip), %rax      # 0xd125
cmoveq %rax, %r13
leaq 0x4939(%rip), %r12      # 0xd025
leaq 0x4a43(%rip), %rax      # 0xd136
cmoveq %rax, %r12
leaq 0x4947(%rip), %r15      # 0xd045
leaq 0x4a50(%rip), %rax      # 0xd155
cmoveq %rax, %r15
leaq 0x4951(%rip), %r14      # 0xd061
leaq 0x4a5d(%rip), %rax      # 0xd174
cmoveq %rax, %r14
leaq 0x495b(%rip), %rbp      # 0xd07d
leaq 0x4a66(%rip), %rax      # 0xd18f
cmoveq %rax, %rbp
leaq 0x4963(%rip), %rbx      # 0xd097
leaq 0x4a70(%rip), %rax      # 0xd1ab
cmoveq %rax, %rbx
movq %rbx, 0x10(%rsp)
leaq 0x4960(%rip), %rcx      # 0xd0ab
leaq 0x4a71(%rip), %rax      # 0xd1c3
cmoveq %rax, %rcx
movq %rcx, 0x18(%rsp)
leaq 0x4960(%rip), %rcx      # 0xd0c2
leaq 0x4a77(%rip), %rax      # 0xd1e0
cmoveq %rax, %rcx
movq %rcx, 0x20(%rsp)
sete 0xb(%rsp)
leaq 0x4961(%rip), %rcx      # 0xd0df
leaq 0x4a6b(%rip), %rax      # 0xd1f0
cmoveq %rax, %rcx
movq %rcx, 0x28(%rsp)
movq 0xa26b(%rip), %rdi      # 0x12a00
leaq 0x4962(%rip), %rcx      # 0xd0fe
leaq 0x4a6b(%rip), %rax      # 0xd20e
cmoveq %rax, %rcx
movq %rcx, 0x30(%rsp)
pushq $-0x1
popq %rbx
movl %ebx, %edx
callq 0x2200
movq 0xa243(%rip), %rdi      # 0x12a00
movq %r13, %rsi
movl %ebx, %edx
callq 0x2200
movq 0xa232(%rip), %rdi      # 0x12a00
movq %r12, %rsi
movl %ebx, %edx
callq 0x2200
movq 0xa221(%rip), %rdi      # 0x12a00
movq %r15, %rsi
movl %ebx, %edx
callq 0x2200
movq 0xa210(%rip), %rdi      # 0x12a00
movq %r14, %rsi
movl %ebx, %edx
callq 0x2200
movq 0xa1ff(%rip), %rdi      # 0x12a00
movq %rbp, %rsi
movl %ebx, %edx
callq 0x2200
movq 0xa1ee(%rip), %rdi      # 0x12a00
movq 0x10(%rsp), %rsi
movl %ebx, %edx
callq 0x2200
movq 0xa1db(%rip), %rdi      # 0x12a00
movq 0x18(%rsp), %rsi
movl %ebx, %edx
callq 0x2200
movq 0xa1c8(%rip), %rdi      # 0x12a00
movq 0x20(%rsp), %rsi
movl %ebx, %edx
callq 0x2200
movq 0xa1b5(%rip), %rdi      # 0x12a00
movq 0x28(%rsp), %rsi
movl %ebx, %edx
callq 0x2200
movq 0xa1a2(%rip), %rdi      # 0x12a00
movq 0x30(%rsp), %rsi
movl %ebx, %edx
callq 0x2200
movq 0xa18f(%rip), %rdi      # 0x12a00
callq 0x2180
movq 0xa183(%rip), %rdi      # 0x12a00
callq 0x22f0
shll $0x18, %eax
cmpl $0x20000000, %eax       # imm = 0x20000000
je 0x8897
movl 0xc(%rsp), %ecx
movzbl %cl, %ecx
movl %ecx, %ebx
jmp 0x889f
xorl %ebx, %ebx
movb 0xb(%rsp), %cl
movb %cl, %bl
cmpl $0xd000000, %eax        # imm = 0xD000000
je 0x88b1
cmpl $0xa000000, %eax        # imm = 0xA000000
jne 0x86aa
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq