// File: /workspace/github_c_makefile_star2_O3/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 0xa09a(%rip), %rdi      # 0x13a10
callq 0x2090
movq 0xa08e(%rip), %rdi      # 0x13a10
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x99a8
movq 0xa079(%rip), %rdi      # 0x13a10
leaq 0x568e(%rip), %rsi      # 0xf02c
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movl $0xffffffff, 0xa086(%rip) # imm = 0xFFFFFFFF
movq 0xa057(%rip), %rdi      # 0x13a10
movl 0xa061(%rip), %edx      # 0x13a20
addl $-0xd, %edx
movl $0xc, %esi
callq 0x21e0
cmpl $-0x1, %eax
je 0x99e9
movq 0xa038(%rip), %rdi      # 0x13a10
leaq 0x565f(%rip), %rsi      # 0xf03e
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0xa020(%rip), %rdi      # 0x13a10
movl 0xa02a(%rip), %edx      # 0x13a20
addl $-0xa, %edx
movl $0xd, %esi
callq 0x21e0
cmpl $-0x1, %eax
je 0x9a20
movq 0xa001(%rip), %rdi      # 0x13a10
leaq 0x5643(%rip), %rsi      # 0xf059
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movb $0x1, %bl
movl %ebx, 0x4(%rsp)
movq 0x9fe3(%rip), %rdi      # 0x13a10
movl $0x1, %esi
xorl %edx, %edx
callq 0x21e0
testb %bl, %bl
leaq 0x562c(%rip), %rsi      # 0xf06e
leaq 0x5741(%rip), %rax      # 0xf18a
cmoveq %rax, %rsi
leaq 0x562d(%rip), %r12      # 0xf081
leaq 0x5742(%rip), %rax      # 0xf19d
cmoveq %rax, %r12
leaq 0x5637(%rip), %r15      # 0xf09d
leaq 0x5741(%rip), %rax      # 0xf1ae
cmoveq %rax, %r15
leaq 0x5645(%rip), %r14      # 0xf0bd
leaq 0x574e(%rip), %rax      # 0xf1cd
cmoveq %rax, %r14
leaq 0x564f(%rip), %rbx      # 0xf0d9
leaq 0x575b(%rip), %rax      # 0xf1ec
cmoveq %rax, %rbx
leaq 0x5659(%rip), %rbp      # 0xf0f5
leaq 0x5764(%rip), %rax      # 0xf207
cmoveq %rax, %rbp
leaq 0x5661(%rip), %r13      # 0xf10f
leaq 0x576e(%rip), %rax      # 0xf223
cmoveq %rax, %r13
leaq 0x5663(%rip), %rcx      # 0xf123
leaq 0x5774(%rip), %rax      # 0xf23b
cmoveq %rax, %rcx
movq %rcx, 0x8(%rsp)
leaq 0x5663(%rip), %rcx      # 0xf13a
leaq 0x577a(%rip), %rax      # 0xf258
cmoveq %rax, %rcx
movq %rcx, 0x10(%rsp)
sete 0x3(%rsp)
leaq 0x5664(%rip), %rcx      # 0xf157
leaq 0x576e(%rip), %rax      # 0xf268
cmoveq %rax, %rcx
movq %rcx, 0x18(%rsp)
movq 0x9f06(%rip), %rdi      # 0x13a10
leaq 0x5665(%rip), %rcx      # 0xf176
leaq 0x576e(%rip), %rax      # 0xf286
cmoveq %rax, %rcx
movq %rcx, 0x20(%rsp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9ede(%rip), %rdi      # 0x13a10
movq %r12, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9eca(%rip), %rdi      # 0x13a10
movq %r15, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9eb6(%rip), %rdi      # 0x13a10
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9ea2(%rip), %rdi      # 0x13a10
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9e8e(%rip), %rdi      # 0x13a10
movq %rbp, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9e7a(%rip), %rdi      # 0x13a10
movq %r13, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9e66(%rip), %rdi      # 0x13a10
movq 0x8(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9e50(%rip), %rdi      # 0x13a10
movq 0x10(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9e3a(%rip), %rdi      # 0x13a10
movq 0x18(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9e24(%rip), %rdi      # 0x13a10
movq 0x20(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x9e0e(%rip), %rdi      # 0x13a10
callq 0x2190
movq 0x9e02(%rip), %rdi      # 0x13a10
callq 0x2300
shll $0x18, %eax
cmpl $0x20000000, %eax       # imm = 0x20000000
je 0x9c28
movl 0x4(%rsp), %ecx
movzbl %cl, %ecx
movl %ecx, %ebx
jmp 0x9c30
xorl %ebx, %ebx
movb 0x3(%rsp), %cl
movb %cl, %bl
cmpl $0xd000000, %eax        # imm = 0xD000000
je 0x9c42
cmpl $0xa000000, %eax        # imm = 0xA000000
jne 0x9a22
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq