// File: /workspace/github_c_makefile_star2_O2/hyc[P]trek73c/trekx.c
// Function: ChPrm
void ChPrm()
{
  int i;
  boolean Bad;

  Endln();
  sprintf(scrstr,"Chekov:  Reset tubes, %s", Title);
  waddstr(Cmdwin,scrstr);
  if (Yes()) {
    Bad = true;
    do {
    sprintf(scrstr,"   Set launch speed to (0-12, currently %0d) ",
      Ships[0]->Tstat[Tubes]);
    waddstr(Cmdwin,scrstr);
    mygetstr(Cmdwin,scrstr,true);
    i=atoi(scrstr);
    if (i>=0 && i<=12)
      Bad = false;
    } while (Bad);
    Ships[0]->Tstat[Tubes] = i;
    Bad = true;
    do {
      sprintf(scrstr,"   . . . time delay to (0-10, currently %0d) ",
	Ships[0]->Tstat[Tubes+1]);
      waddstr(Cmdwin,scrstr);
      mygetstr(Cmdwin,scrstr,true);
      i=atoi(scrstr);
      if (i>=0 && i<=10)
	Bad = false;
    } while (Bad);
    Ships[0]->Tstat[Tubes+1] = i;
    Bad = true;
    do {
      sprintf(scrstr,"   . . . proximity delay to (0-500, currently %0d) ",
	Ships[0]->Tstat[Tubes+2]);
      waddstr(Cmdwin,scrstr);
      mygetstr(Cmdwin,scrstr,true);
      i=atoi(scrstr);
      if (i>=0 && i<=500)
	Bad = false;
    } while (Bad);
    Ships[0]->Tstat[Tubes+2] = i;
  }
  sprintf(scrstr,"Chekov:  Reset phasers, %s", Title);
  waddstr(Cmdwin,scrstr);
  if (Yes()) {
    Bad = true;
    do {
      sprintf(scrstr,"   Reset firing percentage to (0-100, currently %0d) ",
        Ships[0]->Pstat[Phasers+1]);
      waddstr(Cmdwin,scrstr);
      mygetstr(Cmdwin,scrstr,true);
      i=atoi(scrstr);
      if (i>=0 && i<=100)
	Bad = false;
    } while (Bad);
    Ships[0]->Pstat[Phasers+1] = i;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
callq 0x3933
movq 0x911f(%rip), %rdx      # 0x125c8
leaq 0x8ff0(%rip), %rbx      # 0x124a0
leaq 0x40e0(%rip), %rsi      # 0xd597
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2190
movq 0x9520(%rip), %rdi      # 0x129e8
pushq $-0x1
popq %rdx
movq %rbx, %rsi
callq 0x2200
callq 0x6aab
testb %al, %al
je 0x965c
leaq 0x8fb9(%rip), %rbx      # 0x124a0
leaq 0x40c2(%rip), %r14      # 0xd5b0
pushq $-0x1
popq %rbp
pushq $0x1
popq %r15
movq 0x9484(%rip), %rax      # 0x12980
movzbl 0x8cae(%rip), %ecx      # 0x121b1
movswl 0x110(%rax,%rcx,2), %edx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x2190
movq 0x94c9(%rip), %rdi      # 0x129e8
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2200
movq 0x94b8(%rip), %rdi      # 0x129e8
movq %rbx, %rsi
movl %r15d, %edx
callq 0x246d
movq %rbx, %rdi
callq 0x21c0
cmpl $0xc, %eax
ja 0x94f5
movq 0x9431(%rip), %rcx      # 0x12980
movzbl 0x8c5b(%rip), %edx      # 0x121b1
movw %ax, 0x110(%rcx,%rdx,2)
leaq 0x8f3b(%rip), %rbx      # 0x124a0
leaq 0x4072(%rip), %r14      # 0xd5de
pushq $-0x1
popq %rbp
pushq $0x1
popq %r15
movq 0x9406(%rip), %rax      # 0x12980
movzbl 0x8c30(%rip), %ecx      # 0x121b1
movswl 0x112(%rax,%rcx,2), %edx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x2190
movq 0x944b(%rip), %rdi      # 0x129e8
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2200
movq 0x943a(%rip), %rdi      # 0x129e8
movq %rbx, %rsi
movl %r15d, %edx
callq 0x246d
movq %rbx, %rdi
callq 0x21c0
cmpl $0xa, %eax
ja 0x9573
movq 0x93b3(%rip), %rcx      # 0x12980
movzbl 0x8bdd(%rip), %edx      # 0x121b1
movw %ax, 0x112(%rcx,%rdx,2)
leaq 0x8ebd(%rip), %rbx      # 0x124a0
leaq 0x4022(%rip), %r14      # 0xd60c
pushq $-0x1
popq %rbp
pushq $0x1
popq %r15
movq 0x9388(%rip), %rax      # 0x12980
movzbl 0x8bb2(%rip), %ecx      # 0x121b1
movswl 0x114(%rax,%rcx,2), %edx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x2190
movq 0x93cd(%rip), %rdi      # 0x129e8
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2200
movq 0x93bc(%rip), %rdi      # 0x129e8
movq %rbx, %rsi
movl %r15d, %edx
callq 0x246d
movq %rbx, %rdi
callq 0x21c0
cmpl $0x1f4, %eax            # imm = 0x1F4
ja 0x95f1
movq 0x9333(%rip), %rcx      # 0x12980
movzbl 0x8b5d(%rip), %edx      # 0x121b1
movw %ax, 0x114(%rcx,%rdx,2)
movq 0x8f65(%rip), %rdx      # 0x125c8
leaq 0x8e36(%rip), %rbx      # 0x124a0
leaq 0x3fcf(%rip), %rsi      # 0xd640
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2190
movq 0x9366(%rip), %rdi      # 0x129e8
pushq $-0x1
popq %rdx
movq %rbx, %rsi
callq 0x2200
callq 0x6aab
testb %al, %al
je 0x9714
leaq 0x8e03(%rip), %rbx      # 0x124a0
leaq 0x3fb7(%rip), %r14      # 0xd65b
pushq $-0x1
popq %rbp
pushq $0x1
popq %r15
movq 0x92ce(%rip), %rax      # 0x12980
movzbl 0x8af7(%rip), %ecx      # 0x121b0
movswl 0xd4(%rax,%rcx,2), %edx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x2190
movq 0x9313(%rip), %rdi      # 0x129e8
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2200
movq 0x9302(%rip), %rdi      # 0x129e8
movq %rbx, %rsi
movl %r15d, %edx
callq 0x246d
movq %rbx, %rdi
callq 0x21c0
cmpl $0x64, %eax
ja 0x96ab
movq 0x927b(%rip), %rcx      # 0x12980
movzbl 0x8aa4(%rip), %edx      # 0x121b0
movw %ax, 0xd4(%rcx,%rdx,2)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq