// File: /workspace/github_c_makefile_star2_O0/hyc[P]trek73c/trekx.c
// Function: SDest
void SDest()
{
  if (Objects[0]->Tim_Del < 1000) {
    sprintf(scrstr,"%s: Lieutenant Uhura, tie in the bridge to the master",
      Name);
    SEndln();
    waddstr(Cmdwin,"   computer.");
    Endln();
    if (Ships[0]->Dmge[(int)Comp]) {
      NoComp();
      return;
    }
    sprintf(scrstr,"Uhura: Aye, %s",Title);
    SEndln();
    sprintf(scrstr,"%s: Computer. Destruct sequence. Are you ready to copy?",
      Name);
    SEndln();
    waddstr(Cmdwin,"Computer: Working.");
    Endln();
    sprintf(scrstr,"%s: Computer, this is Captain %s of the U.S.S. %s.",
      Name, Name, Snams[0]);
    SEndln();
    waddstr(Cmdwin,"   Destruct sequence one, code 1-1A.");
    Endln();
    waddstr(Cmdwin,"Computer: Voice and code verified and correct.");
    Endln();
    waddstr(Cmdwin,"   Sequence one complete.");
    Endln();
    waddstr(Cmdwin,"Spock: This is Commander Spock, Science Officer. Destruct");
    Endln();
    waddstr(Cmdwin,"   sequence two, code 1-1A-2B.");
    Endln();
    waddstr(Cmdwin,"Computer: Voice and code verified and correct.  Sequence");
    Endln();
    waddstr(Cmdwin,"   two complete.");
    Endln();
    waddstr(Cmdwin,"Scott: This is Lieutenant Commander Scott, Chief Engineering");
    Endln();
    sprintf(scrstr,"   Officer of the U.S.S. %s. Destruct sequence", Snams[0]);
    SEndln();
    waddstr(Cmdwin,"   number three, code 1B-2B-3.");
    Endln();
    waddstr(Cmdwin,"Computer: Voice and code verified and correct.");
    Endln();
    waddstr(Cmdwin,"   Destruct sequence complete and engaged. Awaiting final");
    Endln();
    waddstr(Cmdwin,"   code for twenty second countdown.");
    Endln();
    sprintf(scrstr,"%s: Computer, this is Captain %s of the U.S.S. %s.",
      Name, Name, Snams[0]);
    SEndln();
    waddstr(Cmdwin,"   begin countdown, code 0-0-0, destruct 0.");
    Endln();
    Objects[0]->Tim_Del = 10000 - 20 / Iter;
  } else {
    sprintf(scrstr,"%s: Computer, this is Captain %s of the U.S.S. %s.",
      Name, Name, Snams[0]);
    SEndln();
    waddstr(Cmdwin,"   Code 1-2-3 continuity abort destruct order, repeat:");
    Endln();
    waddstr(Cmdwin,"   Code 1-2-3 continuity abort destruct order!");
    Endln();
    if (Ships[0]->Dmge[(int)Comp]) {
      NoComp();
      return;
    }
    waddstr(Cmdwin,"Computer: Self-destruct order ... ");
    wrefresh(Cmdwin);
    Delay(2000);
    if ((10000 - Objects[0]->Tim_Del) * Iter >= 5) {
      waddstr(Cmdwin,"aborted. Destruct order aborted.");
      Objects[0]->Tim_Del = 1.0;
    } else
       waddstr(Cmdwin,"cannot be aborted.");
    Endln();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0xac85(%rip), %rax      # 0x155e0
movsd 0x475d(%rip), %xmm0     # 0xf0c0
ucomisd 0x30(%rax), %xmm0
jbe 0xac4a
movq 0xac43(%rip), %rdx      # 0x155b8
leaq 0xab24(%rip), %rdi      # 0x154a0
leaq 0x61eb(%rip), %rsi      # 0x10b6e
movb $0x0, %al
callq 0x2190
callq 0x4320
movq 0xb052(%rip), %rdi      # 0x159e8
leaq 0x6207(%rip), %rsi      # 0x10ba4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xafcd(%rip), %rax      # 0x15980
cmpb $0x0, 0xc0(%rax)
je 0xa9c6
callq 0x8df0
jmp 0xad70
movq 0xabfb(%rip), %rdx      # 0x155c8
leaq 0xaacc(%rip), %rdi      # 0x154a0
leaq 0x61d6(%rip), %rsi      # 0x10bb1
movb $0x0, %al
callq 0x2190
callq 0x4320
movq 0xabca(%rip), %rdx      # 0x155b8
leaq 0xaaab(%rip), %rdi      # 0x154a0
leaq 0x61c4(%rip), %rsi      # 0x10bc0
movb $0x0, %al
callq 0x2190
callq 0x4320
movq 0xafd9(%rip), %rdi      # 0x159e8
leaq 0x61e2(%rip), %rsi      # 0x10bf8
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xab8c(%rip), %rdx      # 0x155b8
movq 0xab85(%rip), %rcx      # 0x155b8
movq 0xaee6(%rip), %r8       # 0x15920
leaq 0xaa5f(%rip), %rdi      # 0x154a0
leaq 0x61c3(%rip), %rsi      # 0x10c0b
movb $0x0, %al
callq 0x2190
callq 0x4320
movq 0xaf8d(%rip), %rdi      # 0x159e8
leaq 0x61dc(%rip), %rsi      # 0x10c3e
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xaf70(%rip), %rdi      # 0x159e8
leaq 0x61e4(%rip), %rsi      # 0x10c63
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xaf53(%rip), %rdi      # 0x159e8
leaq 0x61f6(%rip), %rsi      # 0x10c92
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xaf36(%rip), %rdi      # 0x159e8
leaq 0x61f3(%rip), %rsi      # 0x10cac
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xaf19(%rip), %rdi      # 0x159e8
leaq 0x6210(%rip), %rsi      # 0x10ce6
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xaefc(%rip), %rdi      # 0x159e8
leaq 0x6212(%rip), %rsi      # 0x10d05
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xaedf(%rip), %rdi      # 0x159e8
leaq 0x622e(%rip), %rsi      # 0x10d3e
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xaec2(%rip), %rdi      # 0x159e8
leaq 0x6222(%rip), %rsi      # 0x10d4f
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xaddd(%rip), %rdx      # 0x15920
leaq 0xa956(%rip), %rdi      # 0x154a0
leaq 0x623b(%rip), %rsi      # 0x10d8c
movb $0x0, %al
callq 0x2190
callq 0x4320
movq 0xae84(%rip), %rdi      # 0x159e8
leaq 0x6250(%rip), %rsi      # 0x10dbb
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xae67(%rip), %rdi      # 0x159e8
leaq 0x60db(%rip), %rsi      # 0x10c63
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xae4a(%rip), %rdi      # 0x159e8
leaq 0x6235(%rip), %rsi      # 0x10dda
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xae2d(%rip), %rdi      # 0x159e8
leaq 0x6252(%rip), %rsi      # 0x10e14
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xa9e0(%rip), %rdx      # 0x155b8
movq 0xa9d9(%rip), %rcx      # 0x155b8
movq 0xad3a(%rip), %r8       # 0x15920
leaq 0xa8b3(%rip), %rdi      # 0x154a0
leaq 0x6017(%rip), %rsi      # 0x10c0b
movb $0x0, %al
callq 0x2190
callq 0x4320
movq 0xade1(%rip), %rdi      # 0x159e8
leaq 0x622b(%rip), %rsi      # 0x10e39
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movsd 0x4543(%rip), %xmm1     # 0xf168
divsd 0xa573(%rip), %xmm1     # 0x151a0
movsd 0x4473(%rip), %xmm0     # 0xf0a8
subsd %xmm1, %xmm0
movq 0xa9a0(%rip), %rax      # 0x155e0
movsd %xmm0, 0x30(%rax)
jmp 0xad70
movq 0xa967(%rip), %rdx      # 0x155b8
movq 0xa960(%rip), %rcx      # 0x155b8
movq 0xacc1(%rip), %r8       # 0x15920
leaq 0xa83a(%rip), %rdi      # 0x154a0
leaq 0x5f9e(%rip), %rsi      # 0x10c0b
movb $0x0, %al
callq 0x2190
callq 0x4320
movq 0xad68(%rip), %rdi      # 0x159e8
leaq 0x61de(%rip), %rsi      # 0x10e65
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xad4b(%rip), %rdi      # 0x159e8
leaq 0x61f8(%rip), %rsi      # 0x10e9c
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
movq 0xacc6(%rip), %rax      # 0x15980
cmpb $0x0, 0xc0(%rax)
je 0xaccd
callq 0x8df0
jmp 0xad70
movq 0xad14(%rip), %rdi      # 0x159e8
leaq 0x61f0(%rip), %rsi      # 0x10ecb
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xacfc(%rip), %rdi      # 0x159e8
callq 0x2180
movl $0x7d0, %edi            # imm = 0x7D0
callq 0x2420
movq 0xa8de(%rip), %rax      # 0x155e0
movsd 0x439e(%rip), %xmm0     # 0xf0a8
subsd 0x30(%rax), %xmm0
mulsd 0xa489(%rip), %xmm0     # 0x151a0
movsd 0x43c9(%rip), %xmm1     # 0xf0e8
ucomisd %xmm1, %xmm0
jb 0xad53
movq 0xacbc(%rip), %rdi      # 0x159e8
leaq 0x61bb(%rip), %rsi      # 0x10eee
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xa89c(%rip), %rax      # 0x155e0
movsd 0x42c4(%rip), %xmm0     # 0xf010
movsd %xmm0, 0x30(%rax)
jmp 0xad6b
movq 0xac8e(%rip), %rdi      # 0x159e8
leaq 0x61ae(%rip), %rsi      # 0x10f0f
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
callq 0x42a0
popq %rbp
retq
nopw %cs:(%rax,%rax)