// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x10, %rsp
callq 0x42a0
movq 0x9154(%rip), %rdx      # 0x155c8
leaq 0x9025(%rip), %rdi      # 0x154a0
leaq 0x5211(%rip), %rsi      # 0x11693
movb $0x0, %al
callq 0x2190
movq 0x9558(%rip), %rdi      # 0x159e8
leaq 0x9009(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x8c40
cmpb $0x0, %al
je 0xc6bb
movb $0x1, -0x5(%rbp)
movq 0x94c7(%rip), %rax      # 0x15980
movzbl 0x8cf1(%rip), %ecx      # 0x151b1
movswl 0x110(%rax,%rcx,2), %edx
leaq 0x8fd1(%rip), %rdi      # 0x154a0
leaq 0x51d6(%rip), %rsi      # 0x116ac
movb $0x0, %al
callq 0x2190
movq 0x9504(%rip), %rdi      # 0x159e8
leaq 0x8fb5(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x94ec(%rip), %rdi      # 0x159e8
leaq 0x8f9d(%rip), %rsi      # 0x154a0
movl $0x1, %edx
callq 0x24a0
leaq 0x8f8c(%rip), %rdi      # 0x154a0
callq 0x21c0
movl %eax, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
jl 0xc52c
cmpl $0xc, -0x4(%rbp)
jg 0xc52c
movb $0x0, -0x5(%rbp)
jmp 0xc52e
cmpb $0x0, -0x5(%rbp)
jne 0xc4b2
movl -0x4(%rbp), %eax
movw %ax, %dx
movq 0x943b(%rip), %rax      # 0x15980
movzbl 0x8c65(%rip), %ecx      # 0x151b1
movw %dx, 0x110(%rax,%rcx,2)
movb $0x1, -0x5(%rbp)
movq 0x9421(%rip), %rax      # 0x15980
movzbl 0x8c4b(%rip), %ecx      # 0x151b1
addl $0x1, %ecx
movslq %ecx, %rcx
movswl 0x110(%rax,%rcx,2), %edx
leaq 0x8f25(%rip), %rdi      # 0x154a0
leaq 0x5158(%rip), %rsi      # 0x116da
movb $0x0, %al
callq 0x2190
movq 0x9458(%rip), %rdi      # 0x159e8
leaq 0x8f09(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x9440(%rip), %rdi      # 0x159e8
leaq 0x8ef1(%rip), %rsi      # 0x154a0
movl $0x1, %edx
callq 0x24a0
leaq 0x8ee0(%rip), %rdi      # 0x154a0
callq 0x21c0
movl %eax, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
jl 0xc5d8
cmpl $0xa, -0x4(%rbp)
jg 0xc5d8
movb $0x0, -0x5(%rbp)
jmp 0xc5da
cmpb $0x0, -0x5(%rbp)
jne 0xc558
movl -0x4(%rbp), %eax
movw %ax, %dx
movq 0x938f(%rip), %rax      # 0x15980
movzbl 0x8bb9(%rip), %ecx      # 0x151b1
addl $0x1, %ecx
movslq %ecx, %rcx
movw %dx, 0x110(%rax,%rcx,2)
movb $0x1, -0x5(%rbp)
movq 0x936f(%rip), %rax      # 0x15980
movzbl 0x8b99(%rip), %ecx      # 0x151b1
addl $0x2, %ecx
movslq %ecx, %rcx
movswl 0x110(%rax,%rcx,2), %edx
leaq 0x8e73(%rip), %rdi      # 0x154a0
leaq 0x50d4(%rip), %rsi      # 0x11708
movb $0x0, %al
callq 0x2190
movq 0x93a6(%rip), %rdi      # 0x159e8
leaq 0x8e57(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x938e(%rip), %rdi      # 0x159e8
leaq 0x8e3f(%rip), %rsi      # 0x154a0
movl $0x1, %edx
callq 0x24a0
leaq 0x8e2e(%rip), %rdi      # 0x154a0
callq 0x21c0
movl %eax, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
jl 0xc68d
cmpl $0x1f4, -0x4(%rbp)      # imm = 0x1F4
jg 0xc68d
movb $0x0, -0x5(%rbp)
jmp 0xc68f
cmpb $0x0, -0x5(%rbp)
jne 0xc60a
movl -0x4(%rbp), %eax
movw %ax, %dx
movq 0x92da(%rip), %rax      # 0x15980
movzbl 0x8b04(%rip), %ecx      # 0x151b1
addl $0x2, %ecx
movslq %ecx, %rcx
movw %dx, 0x110(%rax,%rcx,2)
movq 0x8f06(%rip), %rdx      # 0x155c8
leaq 0x8dd7(%rip), %rdi      # 0x154a0
leaq 0x506c(%rip), %rsi      # 0x1173c
movb $0x0, %al
callq 0x2190
movq 0x930a(%rip), %rdi      # 0x159e8
leaq 0x8dbb(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x8c40
cmpb $0x0, %al
je 0xc7ae
movb $0x1, -0x5(%rbp)
movq 0x9279(%rip), %rax      # 0x15980
movzbl 0x8aa2(%rip), %ecx      # 0x151b0
addl $0x1, %ecx
movslq %ecx, %rcx
movswl 0xd2(%rax,%rcx,2), %edx
leaq 0x8d7d(%rip), %rdi      # 0x154a0
leaq 0x502d(%rip), %rsi      # 0x11757
movb $0x0, %al
callq 0x2190
movq 0x92b0(%rip), %rdi      # 0x159e8
leaq 0x8d61(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0x9298(%rip), %rdi      # 0x159e8
leaq 0x8d49(%rip), %rsi      # 0x154a0
movl $0x1, %edx
callq 0x24a0
leaq 0x8d38(%rip), %rdi      # 0x154a0
callq 0x21c0
movl %eax, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
jl 0xc780
cmpl $0x64, -0x4(%rbp)
jg 0xc780
movb $0x0, -0x5(%rbp)
jmp 0xc782
cmpb $0x0, -0x5(%rbp)
jne 0xc700
movl -0x4(%rbp), %eax
movw %ax, %dx
movq 0x91e7(%rip), %rax      # 0x15980
movzbl 0x8a10(%rip), %ecx      # 0x151b0
addl $0x1, %ecx
movslq %ecx, %rcx
movw %dx, 0xd2(%rax,%rcx,2)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)