LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: DrawRep
void DrawRep()
{
  int i, j;

  werase(Repwin);
  mvwaddstr(Repwin,0,14,"Warp Course Bearing Range");
  j=1;
  for (i=0; i<=Enemies; i++)
    if (Ships[i]) {
      sprintf(scrstr,"%12s:",Snams[i]);
      mvwaddstr(Repwin,j,0,scrstr);
      j++;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x102e1(%rip), %rdi     # 0x139e8
callq 0x2090
movq 0x102d5(%rip), %rdi     # 0x139e8
xorl %esi, %esi
movl $0xe, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x373c
movq 0x102bd(%rip), %rdi     # 0x139e8
leaq 0xa860(%rip), %rsi      # 0xdf92
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movl $0x1, %ebx
movq $-0x1, %r12
leaq 0x10241(%rip), %r13     # 0x13990
leaq 0xfd5a(%rip), %r14      # 0x134b0
leaq 0xa84f(%rip), %r15      # 0xdfac
xorl %ebp, %ebp
cmpq $0x0, (%rbp,%r13)
je 0x37ab
leaq 0x101c2(%rip), %rax     # 0x13930
movq (%rbp,%rax), %rdx
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x21a0
movq 0x10261(%rip), %rdi     # 0x139e8
movl %ebx, %esi
xorl %edx, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x37a9
movq 0x1024c(%rip), %rdi     # 0x139e8
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
incl %ebx
movzbl 0xfe2e(%rip), %eax      # 0x135e0
incq %r12
addq $0x8, %rbp
cmpq %rax, %r12
jb 0x375f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: DrawBox
void DrawBox(win, rows, cols)
WINDOW *win;
int rows, cols;
{
  int i, j;

  rows--;
  cols--;
  wmove(win, 0, 1);
  for (i=1; i<cols; i++)
    waddch(win,ACS_HLINE);
  j=cols;
  for (i=1; i<rows; i++)
  {
    mvwaddch(win, i, j, ACS_VLINE);
    mvwaddch(win, i, 0, ACS_VLINE);
  }
  wmove(win, i, 1);
  for (i=1; i<cols; i++)
    waddch(win,ACS_HLINE);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %r13d
movq %rdi, %r14
movl $0x1, %r15d
xorl %esi, %esi
movl $0x1, %edx
callq 0x21e0
cmpl $0x3, %ebx
jl 0x3815
leal -0x2(%rbx), %ebp
movq 0xf7ef(%rip), %r12      # 0x12ff0
movl 0x1c4(%r12), %esi
movq %r14, %rdi
callq 0x2160
decl %ebp
jne 0x3801
cmpl $0x3, %r13d
jl 0x3897
leal -0x1(%rbx), %r15d
movl %r13d, %eax
movl $0x2, %r13d
subl %eax, %r13d
decl %eax
movl %eax, 0x4(%rsp)
movl $0x1, %r12d
movq 0xf7b2(%rip), %rbp      # 0x12ff0
movq %r14, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x385f
movl 0x1e0(%rbp), %esi
movq %r14, %rdi
callq 0x2160
movq %r14, %rdi
movl %r12d, %esi
xorl %edx, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x387f
movl 0x1e0(%rbp), %esi
movq %r14, %rdi
callq 0x2160
leal (%r12,%r13), %eax
incl %eax
movl %r12d, %ecx
incl %ecx
movl %ecx, %r12d
cmpl $0x1, %eax
jne 0x383e
movl 0x4(%rsp), %r15d
movq %r14, %rdi
movl %r15d, %esi
movl $0x1, %edx
callq 0x21e0
cmpl $0x3, %ebx
jl 0x38c9
addl $-0x2, %ebx
movq 0xf73a(%rip), %r15      # 0x12ff0
movl 0x1c4(%r15), %esi
movq %r14, %rdi
callq 0x2160
decl %ebx
jne 0x38b6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: Endln
void Endln()
{
  LKnt++;
  if (LKnt == Cmdrow) {
    wrefresh(Cmdwin);
    getch();
    LKnt = 0;
  }
  waddstr(Cmdwin,"\n");
  wclrtoeol(Cmdwin);
  wrefresh(Cmdwin);
}

// Assembly:
pushq %rax
movl 0xfca7(%rip), %eax      # 0x13a24
incl %eax
movl %eax, 0xfc9f(%rip)      # 0x13a24
cmpl 0xf71d(%rip), %eax      # 0x134a8
jne 0x3db2
movq 0xfc64(%rip), %rdi      # 0x139f8
callq 0x2190
movq 0xf248(%rip), %rax      # 0x12fe8
movq (%rax), %rdi
callq 0x2300
movl $0x0, 0xfc72(%rip)      # 0x13a24
movq 0xfc3f(%rip), %rdi      # 0x139f8
leaq 0x9f29(%rip), %rsi      # 0xdce9
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0xfc27(%rip), %rdi      # 0x139f8
callq 0x2220
movq 0xfc1b(%rip), %rdi      # 0x139f8
popq %rax
jmp 0x2190
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: RMod
double RMod(X)
double X;
{
  double TEMP;

  modf(X/360, &TEMP);
  X -= TEMP * 360;
  if (X >= 360)
    X -= 360;
  if (X < 0)
    X += 360;
  return X;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, (%rsp)
movsd 0x9327(%rip), %xmm1     # 0xd150
divsd %xmm1, %xmm0
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x22b0
movsd 0x9316(%rip), %xmm0     # 0xd158
movsd (%rbx), %xmm1
mulsd %xmm0, %xmm1
addsd (%rsp), %xmm1
addsd %xmm1, %xmm0
movsd 0x92f5(%rip), %xmm3     # 0xd150
movapd %xmm3, %xmm2
cmpnlesd %xmm1, %xmm2
andpd %xmm2, %xmm1
andnpd %xmm0, %xmm2
orpd %xmm1, %xmm2
addsd %xmm2, %xmm3
xorpd %xmm1, %xmm1
movapd %xmm2, %xmm0
cmpltsd %xmm1, %xmm0
andpd %xmm0, %xmm3
andnpd %xmm2, %xmm0
orpd %xmm3, %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: Bearing
double Bearing(From, NTo)
int From, NTo;
{
  double X, Y, Temp;

  X = Objects[NTo]->XPos - Objects[From]->XPos;
  Y = Objects[From]->YPos - Objects[NTo]->YPos;
  if (X != 0)
    Temp = atan(Y / X) * 180 / M_PI;
  else
    Temp = 90.0;
  if (X >= 0 && Y < 0)
    Temp += 360;
  else if (X < 0)
    Temp += 180;
  return Temp;
}

// Assembly:
subq $0x18, %rsp
movslq %esi, %rax
leaq 0xf74f(%rip), %rcx      # 0x135f0
movq (%rcx,%rax,8), %rax
movsd 0x38(%rax), %xmm2
movslq %edi, %rdx
movq (%rcx,%rdx,8), %rcx
subsd 0x38(%rcx), %xmm2
movsd 0x40(%rcx), %xmm0
subsd 0x40(%rax), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm2
movsd %xmm0, 0x10(%rsp)
jne 0x3ed2
jnp 0x3efd
divsd %xmm2, %xmm0
movsd %xmm2, 0x8(%rsp)
callq 0x2140
xorpd %xmm1, %xmm1
movsd 0x8(%rsp), %xmm2
mulsd 0x9255(%rip), %xmm0     # 0xd148
divsd 0x9245(%rip), %xmm0     # 0xd140
jmp 0x3f05
movsd 0x925b(%rip), %xmm0     # 0xd160
ucomisd %xmm1, %xmm2
jb 0x3f1d
ucomisd 0x10(%rsp), %xmm1
jbe 0x3f1d
addsd 0x9235(%rip), %xmm0     # 0xd150
jmp 0x3f2b
ucomisd %xmm2, %xmm1
jbe 0x3f2b
addsd 0x921d(%rip), %xmm0     # 0xd148
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: Range
double Range(From, NTo)
int From, NTo;
{
  double X, Y;

  if (Objects[NTo] != NULL) {
    X = Objects[NTo]->XPos - Objects[From]->XPos;
    Y = Objects[From]->YPos - Objects[NTo]->YPos;
    return sqrt(X * X + Y * Y);
  } else
    return 9999.0;
}

// Assembly:
movslq %esi, %rax
leaq 0xf6b6(%rip), %rcx      # 0x135f0
movq (%rcx,%rax,8), %rax
testq %rax, %rax
je 0x3f6f
movsd 0x38(%rax), %xmm0
movslq %edi, %rdx
movq (%rcx,%rdx,8), %rcx
subsd 0x38(%rcx), %xmm0
movsd 0x40(%rcx), %xmm1
subsd 0x40(%rax), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
retq
movsd 0x91f1(%rip), %xmm0     # 0xd168
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: TrakPhas
void TrakPhas(I, J)
int I, J;
{
  int K;
  double D;

  K = Ships[I]->Pstat[J];
  if (K >= 100)
    K -= 100;
  if (K) {
    if (Ships[K-1] == NULL) {
      Ships[I]->Pstat[J] = 0;
      K = 0;
      if (!I) {
	sprintf(scrstr," Phaser %d disengaging.", J+1);
	SEndln();
      }
    } else {
      D = Bearing(I, K-1) - Objects[I]->Act_Crs;
      D = RMod(D);
      Ships[I]->Pdepl[J] = (long)floor(D + 0.5);
    }
  }
  D = Ships[I]->Pdepl[J];
  /* If phaser was set to fire, but engineering is in the way, don't fire. */
  if (D > 125 && D < 235 && !Ships[I]->Dmge[(int)Engn])
    Ships[I]->Pstat[J] = K;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movslq %edi, %rbx
leaq 0xef05(%rip), %r13      # 0x13990
movq (%r13,%rbx,8), %rax
movslq %esi, %r15
movswl 0xd2(%rax,%r15,2), %ecx
leal -0x64(%rcx), %r12d
cmpl $0x64, %ecx
cmovll %ecx, %r12d
testl %r12d, %r12d
je 0x4b84
movslq %r12d, %rcx
cmpq $0x0, -0x8(%r13,%rcx,8)
je 0x4b75
leal -0x1(%r12), %esi
movl %ebx, %edi
callq 0x3e93
leaq 0xeb1e(%rip), %rax      # 0x135f0
movq (%rax,%rbx,8), %rax
subsd 0x10(%rax), %xmm0
movsd %xmm0, (%rsp)
movsd 0x8668(%rip), %xmm2     # 0xd150
divsd %xmm2, %xmm0
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x22b0
movsd 0x8657(%rip), %xmm0     # 0xd158
movsd (%r14), %xmm1
mulsd %xmm0, %xmm1
addsd (%rsp), %xmm1
addsd %xmm1, %xmm0
movsd 0x8635(%rip), %xmm3     # 0xd150
movapd %xmm3, %xmm2
cmpnlesd %xmm1, %xmm2
andpd %xmm2, %xmm1
andnpd %xmm0, %xmm2
orpd %xmm1, %xmm2
addsd %xmm2, %xmm3
xorpd %xmm1, %xmm1
movapd %xmm2, %xmm0
cmpltsd %xmm1, %xmm0
andpd %xmm0, %xmm3
andnpd %xmm2, %xmm0
orpd %xmm3, %xmm0
addsd 0x8623(%rip), %xmm0     # 0xd178
callq 0x22d0
cvttsd2si %xmm0, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movq (%r13,%rbx,8), %rax
movsd %xmm0, 0x60(%rax,%r15,8)
jmp 0x4b87
movw $0x0, 0xd2(%rax,%r15,2)
testl %edi, %edi
je 0x4bc6
xorl %r12d, %r12d
movsd 0x60(%rax,%r15,8), %xmm0
ucomisd 0x8632(%rip), %xmm0     # 0xd1c8
jbe 0x4bb8
movsd 0x8630(%rip), %xmm1     # 0xd1d0
ucomisd %xmm0, %xmm1
jbe 0x4bb8
cmpb $0x0, 0xc4(%rax)
jne 0x4bb8
movw %r12w, 0xd2(%rax,%r15,2)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl %esi, %edx
incl %edx
leaq 0xe8df(%rip), %r14      # 0x134b0
leaq 0x945f(%rip), %rsi      # 0xe037
xorl %r12d, %r12d
movq %r14, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0xee0c(%rip), %rdi      # 0x139f8
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
movq (%r13,%rbx,8), %rax
jmp 0x4b87
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: PhHits
int PhHits(From, NTo, Phnum, Units)
int From, NTo, Phnum, *Units;
{
  double F3, G2, G3;
  int Hits;

  Hits = 0;
  *Units = (long)floor(Ships[From]->Pstat[5] / 100.0 *
		       Ships[From]->PChrg[Phnum] + 0.5);
  G2 = Range(From, NTo);
  if (G2 > 1000)
    return Hits;
  F3 = Ships[From]->Pstat[4];
  G3 = Bearing(From, NTo);
  G3 = RMod(Objects[From]->Act_Crs + Ships[From]->Pdepl[Phnum] - G3);
  if (G3 <= F3 || 360 - G3 <= F3)
    Hits = (long)(*Units * sqrt(1 - G2 / 1000) * 45 / F3);
  return Hits;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movslq %edi, %r15
leaq 0xed70(%rip), %rax      # 0x13990
movq (%rax,%r15,8), %r12
movswl 0xdc(%r12), %eax
cvtsi2sd %eax, %xmm0
movl %esi, %ebp
divsd 0x856d(%rip), %xmm0     # 0xd1a8
movslq %edx, %r13
mulsd 0x20(%r12,%r13,8), %xmm0
addsd 0x852b(%rip), %xmm0     # 0xd178
callq 0x22d0
cvttsd2si %xmm0, %rax
movq %rbx, (%rsp)
movl %eax, (%rbx)
movslq %ebp, %rax
leaq 0xe989(%rip), %rbx      # 0x135f0
movq (%rbx,%rax,8), %rax
xorl %r14d, %r14d
testq %rax, %rax
je 0x4ddb
movsd 0x38(%rax), %xmm0
movq (%rbx,%r15,8), %rcx
subsd 0x38(%rcx), %xmm0
movsd 0x40(%rcx), %xmm1
subsd 0x40(%rax), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
ucomisd 0x8531(%rip), %xmm0     # 0xd1d8
ja 0x4ddb
movsd %xmm0, 0x10(%rsp)
movswl 0xda(%r12), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
movl %r15d, %edi
movl %ebp, %esi
callq 0x3e93
movq (%rbx,%r15,8), %rax
movsd 0x10(%rax), %xmm1
leaq 0xecad(%rip), %rax      # 0x13990
movq (%rax,%r15,8), %rax
addsd 0x60(%rax,%r13,8), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
movapd %xmm1, %xmm0
divsd 0x844c(%rip), %xmm0     # 0xd150
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x22b0
movsd 0x843f(%rip), %xmm0     # 0xd158
movsd (%r15), %xmm1
mulsd %xmm0, %xmm1
addsd 0x18(%rsp), %xmm1
addsd %xmm1, %xmm0
movsd 0x841c(%rip), %xmm3     # 0xd150
movapd %xmm3, %xmm2
cmpnlesd %xmm1, %xmm2
andpd %xmm2, %xmm1
andnpd %xmm0, %xmm2
movapd %xmm3, %xmm0
orpd %xmm1, %xmm2
movapd %xmm2, %xmm3
addsd %xmm0, %xmm3
xorpd %xmm4, %xmm4
movapd %xmm2, %xmm1
cmpltsd %xmm4, %xmm1
andpd %xmm1, %xmm3
andnpd %xmm2, %xmm1
movsd 0x8(%rsp), %xmm2
orpd %xmm3, %xmm1
ucomisd %xmm1, %xmm2
jae 0x4d84
subsd %xmm1, %xmm0
ucomisd %xmm0, %xmm2
jb 0x4ddb
movq (%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sdl (%rax), %xmm1
movsd 0x10(%rsp), %xmm0
divsd 0x8443(%rip), %xmm0     # 0xd1e0
addsd 0x8393(%rip), %xmm0     # 0xd138
ucomisd %xmm4, %xmm0
jb 0x4db1
sqrtsd %xmm0, %xmm0
jmp 0x4dc6
movsd %xmm1, (%rsp)
callq 0x22f0
movsd (%rsp), %xmm1
movsd 0x8(%rsp), %xmm2
mulsd %xmm1, %xmm0
mulsd 0x8416(%rip), %xmm0     # 0xd1e8
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %r14
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: Launch
void Launch(I, J)
int I, *J;
{
  reg int K;
  reg Object *WITH;

  *J = 0;
  for (K = 1; K < AryMax; K++) {
    if (Objects[K] == NULL) {
      *J = K;
      break;
    }
  }
  if (*J == 0) {
    printf("Sorry, game has run out of array space (Too many Torps, etc)\n");
    exit(1);
  }
  Objects[K] = (Object *)Malloc(sizeof(Object));
  WITH = Objects[K];
  WITH->ObTyp = (-1);
  WITH->XPos = Objects[I]->XPos;
  WITH->YPos = Objects[I]->YPos;
  WITH->Act_Spd = 0.0;
  WITH->Des_Spd = 0.0;
  WITH->Act_Crs = 0.0;
  WITH->Des_Crs = 0.0;
  WITH->Fuel = 0.0;
  WITH->Trgt = 0;
  WITH->Tim_Del = 0.0;
  WITH->Prx_Del = 0.0;
  K = 0;
  for (I = AryMax-1; I > 0; I--) {
    if (Objects[I]) {
      K = I+1;
      break;
    }
  }
  ObjCount = K;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edi, %ebx
movl $0x0, (%rsi)
movl $0x1, %r15d
leaq 0xe591(%rip), %r14      # 0x135f0
cmpq $0x0, (%r14,%r15,8)
je 0x5085
incq %r15
cmpq $0x64, %r15
jne 0x505f
leaq 0xb5c2(%rip), %rdi      # 0x10638
callq 0x20a0
movl $0x1, %edi
callq 0x20d0
movl %r15d, (%rsi)
movl $0x50, %edi
callq 0x20e0
movq %rax, (%r14,%r15,8)
movw $0xffff, 0x4a(%rax)     # imm = 0xFFFF
movslq %ebx, %rcx
movq (%r14,%rcx,8), %rcx
movups 0x38(%rcx), %xmm0
movups %xmm0, 0x38(%rax)
movw $0x0, 0x48(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq $0x0, 0x30(%rax)
movl $0x64, %eax
leal -0x1(%rax), %ecx
cmpq $0x0, (%r14,%rcx,8)
jne 0x50df
movl %ecx, %eax
cmpl $0x1, %ecx
ja 0x50cc
xorl %eax, %eax
movb %al, 0xe4fd(%rip)       # 0x135e2
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: TrakTorp
void TrakTorp(I, J)
int I, J;
{
  int K;
  double D;

  K = Ships[I]->Tstat[J];
  if (K >= 100)
    K -= 100;
  if (K) {
    if (Ships[K-1] == NULL) {
      Ships[I]->Tstat[J] = 0;
      K = 0;
      if (!I) {
	sprintf(scrstr," Tube %d disengaging.", J+1);
	SEndln();
      }
    } else {
      D = Bearing(I, K-1) - Objects[I]->Act_Crs;
      D = RMod(D);
      Ships[I]->TDepl[J] = D;
    }
  }
  D = Ships[I]->TDepl[J];
  if (D > 135 && D < 225 && !Ships[I]->Dmge[(long)Engn])
    Ships[I]->Tstat[J] = K;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movslq %edi, %rbx
leaq 0xe88e(%rip), %r13      # 0x13990
movq (%r13,%rbx,8), %rax
movslq %esi, %r15
movswl 0x110(%rax,%r15,2), %ecx
leal -0x64(%rcx), %r12d
cmpl $0x64, %ecx
cmovll %ecx, %r12d
testl %r12d, %r12d
je 0x51e4
movslq %r12d, %rcx
cmpq $0x0, -0x8(%r13,%rcx,8)
je 0x51d5
leal -0x1(%r12), %esi
movl %ebx, %edi
callq 0x3e93
leaq 0xe4a7(%rip), %rax      # 0x135f0
movq (%rax,%rbx,8), %rax
subsd 0x10(%rax), %xmm0
movsd %xmm0, (%rsp)
movsd 0x7ff1(%rip), %xmm2     # 0xd150
divsd %xmm2, %xmm0
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x22b0
movsd 0x7fe0(%rip), %xmm0     # 0xd158
movsd (%r14), %xmm1
mulsd %xmm0, %xmm1
addsd (%rsp), %xmm1
addsd %xmm1, %xmm0
movsd 0x7fbe(%rip), %xmm3     # 0xd150
movapd %xmm3, %xmm2
cmpnlesd %xmm1, %xmm2
andpd %xmm2, %xmm1
andnpd %xmm0, %xmm2
orpd %xmm1, %xmm2
addsd %xmm2, %xmm3
xorpd %xmm0, %xmm0
movapd %xmm2, %xmm1
cmpltsd %xmm0, %xmm1
andpd %xmm1, %xmm3
andnpd %xmm2, %xmm1
orpd %xmm3, %xmm1
movq (%r13,%rbx,8), %rax
movlpd %xmm1, 0xe0(%rax,%r15,8)
jmp 0x51e7
movw $0x0, 0x110(%rax,%r15,2)
testl %edi, %edi
je 0x5229
xorl %r12d, %r12d
movsd 0xe0(%rax,%r15,8), %xmm0
ucomisd 0x7fff(%rip), %xmm0     # 0xd1f8
jbe 0x521b
movsd 0x7f85(%rip), %xmm1     # 0xd188
ucomisd %xmm0, %xmm1
jbe 0x521b
cmpb $0x0, 0xc4(%rax)
jne 0x521b
movw %r12w, 0x110(%rax,%r15,2)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl %esi, %edx
incl %edx
leaq 0xe27c(%rip), %r14      # 0x134b0
leaq 0x8e63(%rip), %rsi      # 0xe09e
xorl %r12d, %r12d
movq %r14, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0xe7a9(%rip), %rdi      # 0x139f8
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
movq (%r13,%rbx,8), %rax
jmp 0x51e7
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: AMHits
int AMHits(I, J)
int I, J;
{
  int Hits;
  double F1, F2, G2;

  Hits = 0;
  F1 = Objects[I]->Fuel * 5;
  G2 = Range(I, J);
  F2 = F1 * 10;
  if (G2 <= F2)
    Hits = (long)(F1 * sqrt(1 - G2 / F2));
  return Hits;
}

// Assembly:
movslq %edi, %rax
leaq 0xe0fb(%rip), %rcx      # 0x135f0
movq (%rcx,%rax,8), %rax
movsd 0x20(%rax), %xmm2
mulsd 0x7d0a(%rip), %xmm2     # 0xd210
movslq %esi, %rdx
movq (%rcx,%rdx,8), %rcx
testq %rcx, %rcx
je 0x553b
movsd 0x38(%rcx), %xmm0
subsd 0x38(%rax), %xmm0
movsd 0x40(%rax), %xmm1
subsd 0x40(%rcx), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
xorps %xmm1, %xmm1
sqrtsd %xmm0, %xmm1
jmp 0x5543
movsd 0x7c25(%rip), %xmm1     # 0xd168
movsd 0x7be5(%rip), %xmm0     # 0xd130
mulsd %xmm2, %xmm0
xorl %eax, %eax
ucomisd %xmm1, %xmm0
jb 0x5594
divsd %xmm0, %xmm1
movsd 0x7bd5(%rip), %xmm0     # 0xd138
subsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x5577
sqrtsd %xmm0, %xmm0
jmp 0x558b
pushq %rax
movsd %xmm2, (%rsp)
callq 0x22f0
movsd (%rsp), %xmm2
addq $0x8, %rsp
mulsd %xmm0, %xmm2
cvttsd2si %xmm2, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: Antimatter
void Antimatter(I)
int I;
{
  int J, M, K0;
  boolean Boom;
  reg Object *WITH;

  WITH = Objects[I];
  M = WITH->ObTyp % 10;
  WITH->Tim_Del++;
  K0 = (long)WITH->Tim_Del;
  if (K0 > 10000) {
    Detonate(I);
    return;
  }
  Boom = false;
  if (WITH->Prx_Del != 0) {
    for (J = 0; J < ObjCount; J++) {
      if (Objects[J] != NULL && J != I) {
	if (Objects[J]->ObTyp < 20 && WITH->Prx_Del >= Range(I, J) && J != M)
	  Boom = true;
      }
    }
  }
  if (Boom)
    Detonate(I);
}

// Assembly:
movslq %edi, %rcx
leaq 0xdd62(%rip), %rax      # 0x135f0
movq (%rax,%rcx,8), %rcx
movswl 0x4a(%rcx), %esi
movsd 0x30(%rcx), %xmm0
addsd 0x7895(%rip), %xmm0     # 0xd138
movsd %xmm0, 0x30(%rcx)
cvttsd2si %xmm0, %rdx
cmpl $0x2710, %edx           # imm = 0x2710
jg 0x5595
movsd 0x28(%rcx), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x58ce
jnp 0x598a
movzbl 0xdd0d(%rip), %edx      # 0x135e2
testq %rdx, %rdx
je 0x598a
pushq %rbp
pushq %rbx
imull $0x6667, %esi, %r8d     # imm = 0x6667
movl %r8d, %r9d
shrl $0x1f, %r9d
sarl $0x12, %r8d
addl %r9d, %r8d
addl %r8d, %r8d
leal (%r8,%r8,4), %r8d
subl %r8d, %esi
movswq %si, %rsi
movl %esi, %esi
movl %edi, %r8d
shlq $0x3, %r8
shlq $0x3, %rsi
shll $0x3, %edx
xorl %r9d, %r9d
xorl %r10d, %r10d
movq (%r9,%rax), %r11
testq %r11, %r11
sete %bl
cmpq %r9, %r8
sete %bpl
orb %bl, %bpl
jne 0x5976
cmpw $0x13, 0x4a(%r11)
jg 0x5976
movsd 0x38(%r11), %xmm1
subsd 0x38(%rcx), %xmm1
movsd 0x40(%rcx), %xmm2
subsd 0x40(%r11), %xmm2
mulsd %xmm2, %xmm2
mulsd %xmm1, %xmm1
addsd %xmm2, %xmm1
sqrtsd %xmm1, %xmm1
cmpq %r9, %rsi
movzbl %r10b, %r11d
movl $0x1, %r10d
cmovel %r11d, %r10d
ucomisd %xmm1, %xmm0
cmovbl %r11d, %r10d
addq $0x8, %r9
cmpq %r9, %rdx
jne 0x5919
testb %r10b, %r10b
popq %rbx
popq %rbp
jne 0x5595
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: Detach
void Detach(I)
int I;
{
  int J;
  boolean Drop;

  Launch(I, &J);
  Drop = false;
  Objects[J]->Tim_Del = 10000 - 10 / Iter;
  Objects[J]->Fuel = Objects[I]->Fuel;
  Objects[I]->Fuel = 0.0;
  Objects[J]->ObTyp = I + 10;
  Ships[I]->Regen = 0.0;
  Ships[I]->Fcap = 0;
  Ships[I]->Weff = 10.0;
  Ships[I]->Dmge[(long)Engn] = true;
  Ships[I]->Dmge[(long)Prob] = true;
  for (J = 0; J < Phasers; J++) {
    if (Ships[I]->PChrg[J] > 0)
      Drop = true;
  }
  if (Drop) {
    for (J = 0; J <= 3; J++)
      Ships[I]->Seff[J] = 0.0;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x4(%rsp), %r14
movq %r14, %rsi
callq 0x5045
movsd 0x6690(%rip), %xmm0     # 0xd130
movapd %xmm0, %xmm1
divsd 0xc704(%rip), %xmm1     # 0x131b0
xorpd %xmm2, %xmm2
unpcklpd %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0]
movsd 0x674c(%rip), %xmm0     # 0xd208
subsd %xmm1, %xmm0
movslq (%r14), %rax
leaq 0xcb26(%rip), %rcx      # 0x135f0
movq (%rcx,%rax,8), %rdx
movsd %xmm0, 0x30(%rdx)
movslq %ebx, %rax
movq (%rcx,%rax,8), %rcx
movsd 0x20(%rcx), %xmm0
movsd %xmm0, 0x20(%rdx)
movq $0x0, 0x20(%rcx)
leal 0xa(%rax), %ecx
movw %cx, 0x4a(%rdx)
leaq 0xce96(%rip), %rcx      # 0x13990
movq (%rcx,%rax,8), %rdx
movb $0x0, 0x18(%rdx)
movupd %xmm2, (%rdx)
movb $0x1, %sil
movb %sil, 0xc4(%rdx)
movq (%rcx,%rax,8), %rdx
movb %sil, 0xc2(%rdx)
movzbl 0xc69e(%rip), %edx      # 0x131c0
testq %rdx, %rdx
je 0x6b71
movq (%rcx,%rax,8), %rsi
xorl %edi, %edi
xorpd %xmm0, %xmm0
movl $0x1, %r8d
xorl %r9d, %r9d
movsd 0x20(%rsi,%rdi,8), %xmm1
ucomisd %xmm0, %xmm1
movzbl %r9b, %r9d
cmoval %r8d, %r9d
incq %rdi
cmpq %rdi, %rdx
jne 0x6b3a
testb %r9b, %r9b
je 0x6b71
movq (%rcx,%rax,8), %rax
xorpd %xmm0, %xmm0
movupd %xmm0, 0xb0(%rax)
movupd %xmm0, 0xa0(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: Yes
boolean Yes()
{
  Char Ch;

  waddstr(Cmdwin,"? [Y/N] ");
  wrefresh(Cmdwin);
  Ch=wgetch(Cmdwin);
  waddstr(Cmdwin,"\n");
  wclrtoeol(Cmdwin);
  wrefresh(Cmdwin);
  if (toupper(Ch) == 'Y')
    return true;
  else
    return false;
}

// Assembly:
pushq %rbx
movq 0xbf19(%rip), %rdi      # 0x139f8
leaq 0x6ba8(%rip), %rsi      # 0xe68e
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0xbf01(%rip), %rdi      # 0x139f8
callq 0x2190
movq 0xbef5(%rip), %rdi      # 0x139f8
callq 0x2300
movl %eax, %ebx
movq 0xbee7(%rip), %rdi      # 0x139f8
leaq 0x61d1(%rip), %rsi      # 0xdce9
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0xbecf(%rip), %rdi      # 0x139f8
callq 0x2220
movq 0xbec3(%rip), %rdi      # 0x139f8
callq 0x2190
callq 0x2110
movq (%rax), %rax
movsbq %bl, %rcx
cmpl $0x59, (%rax,%rcx,4)
sete %al
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: Getwarp
boolean Getwarp(ok)
boolean ok;
{
  double temp;
  short code;

  waddstr(Cmdwin,"\n   Warp factor [-9 to 9] ");
  mygetstr(Cmdwin,scrstr,true);
  code = (sscanf(scrstr, "%lg", &temp) == 0);
  if (code > 0) {
    ok = false;
    return ok;
  }
  if (fabs(temp) > 9) {
    ok = false;
    ChWhat();
  } else if ((fabs(temp) >= 1) && Ships[0]->Dmge[(int)Warp]) {
    ok=false;
    NoEngy();
  } else if (ok)
    Objects[0]->Des_Spd = temp;
  return ok;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edi, %ebx
movq 0xbd81(%rip), %rdi      # 0x139f8
leaq 0x6ae4(%rip), %rsi      # 0xe762
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0xbd69(%rip), %rdi      # 0x139f8
leaq 0xb81a(%rip), %r14      # 0x134b0
movq %r14, %rsi
movl $0x1, %edx
callq 0x249f
leaq 0x77b6(%rip), %rsi      # 0xf460
xorl %ebp, %ebp
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x20b0
testl %eax, %eax
je 0x7d19
movsd 0x8(%rsp), %xmm0
movapd 0x5433(%rip), %xmm1     # 0xd100
andpd %xmm0, %xmm1
ucomisd 0x559f(%rip), %xmm1     # 0xd278
jbe 0x7ce2
callq 0x7b97
jmp 0x7d17
ucomisd 0x544e(%rip), %xmm1     # 0xd138
jb 0x7d03
movq 0xbc9d(%rip), %rax      # 0x13990
cmpb $0x0, 0xc3(%rax)
je 0x7d03
callq 0x7bbb
jmp 0x7d17
testb %bl, %bl
je 0x7d17
movq 0xb8e2(%rip), %rax      # 0x135f0
movsd %xmm0, 0x8(%rax)
movl %ebx, %ebp
jmp 0x7d19
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: Indigits
void Indigits(X)
int *X;
{
  reg int I, J;

  for (I = 0; I <= 9; I++)
    X[I] = 0;
  J = (-1);
  mygetstr(Cmdwin,scrstr,true);
  for (I = 0; scrstr[I]; I++) {
    if (isdigit(scrstr[I])) {
      J++;
      X[J] = scrstr[I]-'0';
    }
  }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq $0x0, 0x20(%rdi)
movq 0xbcb5(%rip), %rdi      # 0x139f8
leaq 0xb766(%rip), %rsi      # 0x134b0
movl $0x1, %edx
callq 0x249f
movb 0xb755(%rip), %bpl      # 0x134b0
testb %bpl, %bpl
je 0x7d9a
callq 0x2170
movq (%rax), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
leaq 0xb73d(%rip), %rdx      # 0x134b1
movsbq %bpl, %rsi
testb $0x8, 0x1(%rax,%rsi,2)
je 0x7d8f
movsbl %bpl, %esi
addl $-0x30, %esi
movslq %ecx, %rdi
incl %ecx
movl %esi, 0x4(%rbx,%rdi,4)
movb (%rdx), %bpl
incq %rdx
testb %bpl, %bpl
jne 0x7d74
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: GetShp
int GetShp(Ok, Shp)
boolean *Ok, *Shp;
{
  int I, J, X, Y;

  getyx(Cmdwin, Y, X);
  *Shp = true;
  mygetstr(Cmdwin,scrstr,false);
  J = 0;
  if (scrstr[0] != '\0') {
    if (islower(scrstr[0]))
      scrstr[0]=toupper(scrstr[0]);
    for (I = 1; I <= Enemies; I++) {
      if (scrstr[0] == Snams[I][0]) {
	mvwaddstr(Cmdwin, Y, X, Snams[I]);
	waddstr(Cmdwin,"\n");
	wclrtoeol(Cmdwin);
	wrefresh(Cmdwin);
	*Ok = true;
	J = I;
	if (Ships[J] == NULL)
	  *Ok = false;
	break;
      }
    }
  }
  if (J != 0)
    return J;
  I = (sscanf(scrstr, "%d", &J) == 0);
  if (I == 0)
    *Shp = false;
  return J;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq 0xb946(%rip), %rax      # 0x139f8
testq %rax, %rax
movq %rdi, 0x10(%rsp)
je 0x80c6
movswl (%rax), %ebp
movswl 0x2(%rax), %r12d
jmp 0x80d1
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movb $0x1, (%r14)
movq 0xb91c(%rip), %rdi      # 0x139f8
leaq 0xb3cd(%rip), %rsi      # 0x134b0
xorl %edx, %edx
callq 0x249f
movl $0x0, 0xc(%rsp)
movsbq 0xb3b6(%rip), %r13      # 0x134b0
testq %r13, %r13
je 0x8157
callq 0x2170
movq (%rax), %rax
testb $0x2, 0x1(%rax,%r13,2)
je 0x8122
callq 0x2110
movq (%rax), %rax
movb (%rax,%r13,4), %r13b
movb %r13b, 0xb38e(%rip)     # 0x134b0
movzbl 0xb4b7(%rip), %eax      # 0x135e0
testq %rax, %rax
je 0x8157
negq %rax
movl $0x1, %r15d
leaq 0xb7f2(%rip), %rbx      # 0x13930
movq (%rbx,%r15,8), %rcx
cmpb (%rcx), %r13b
je 0x8190
leaq (%rax,%r15), %rcx
incq %rcx
incq %r15
cmpq $0x1, %rcx
jne 0x813e
leaq 0xb352(%rip), %rdi      # 0x134b0
leaq 0x64a0(%rip), %rsi      # 0xe605
leaq 0xc(%rsp), %rdx
xorl %eax, %eax
callq 0x20b0
testl %eax, %eax
je 0x8179
movb $0x0, (%r14)
movl 0xc(%rsp), %r15d
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xb861(%rip), %rdi      # 0x139f8
movl %ebp, %esi
movl %r12d, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0x81c3
leaq (,%r15,8), %rax
movq 0xb843(%rip), %rdi      # 0x139f8
movq (%rax,%rbx), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0xb82e(%rip), %rdi      # 0x139f8
leaq 0x5b18(%rip), %rsi      # 0xdce9
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0xb816(%rip), %rdi      # 0x139f8
callq 0x2220
movq 0xb80a(%rip), %rdi      # 0x139f8
callq 0x2190
movq 0x10(%rsp), %rcx
movb $0x1, (%rcx)
movl %r15d, 0xc(%rsp)
leaq 0xb789(%rip), %rax      # 0x13990
cmpq $0x0, (%rax,%r15,8)
jne 0x817e
movb $0x0, (%rcx)
jmp 0x817e
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: TFire
void TFire()
{
  int I, Bad;
  Digs Temp;
  boolean Stat[6];
  boolean Ok;
  reg Srec *WITH;

  waddstr(Cmdwin,"   Fire Tubes [1-6] ");
  Indigits(Temp);
  Ok = true;
  Bad = 0;
  for (I = 0; I <= 5; I++)
    Stat[I] = true;
  WITH = Ships[0];
  for (I = 0; I <= 5; I++) {
    if (Temp[I] > 0 && Temp[I] < 7) {
      if (WITH->Tstat[Temp[I] - 1] < 0 ||
	  WITH->TDepl[Temp[I] - 1] > 135 && WITH->TDepl[Temp[I] - 1] < 225 ||
	  WITH->Tengy[Temp[I] - 1] <= 0) {
	Bad++;
	Stat[Temp[I] - 1] = false;
      } else
	WITH->Tstat[Temp[I] - 1] += 100;
    } else if (Temp[I] > 6)
      Ok = false;
  }
  if (!Ok) {
    BParam();
    return;
  }
  if (Bad <= 0)
    return;
  waddstr(Cmdwin," Computer: Tube");
  if (Bad > 1)
    waddch(Cmdwin,'s');
  for (I = 1; I <= 6; I++) {
    if (!Stat[I - 1]) {
      sprintf(scrstr,"%2d", I);
      waddstr(Cmdwin,scrstr);
    }
  }
  waddstr(Cmdwin," unable to fire.");
  Endln();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq 0xb3ba(%rip), %rdi      # 0x139f8
leaq 0x627a(%rip), %rsi      # 0xe8bf
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
leaq 0x10(%rsp), %rdi
callq 0x7d24
movw $0x101, 0xc(%rsp)       # imm = 0x101
movl $0x1010101, 0x8(%rsp)   # imm = 0x1010101
xorl %ecx, %ecx
movb $0x1, %al
movq 0xb31d(%rip), %rdx      # 0x13990
movsd 0x4b7d(%rip), %xmm0     # 0xd1f8
movsd 0x4b05(%rip), %xmm1     # 0xd188
xorl %esi, %esi
xorl %ebx, %ebx
movl 0x10(%rsp,%rsi,4), %edi
leal -0x1(%rdi), %r8d
cmpl $0x5, %r8d
ja 0x86d6
movl %r8d, %edi
movzwl 0x110(%rdx,%rdi,2), %r8d
testw %r8w, %r8w
js 0x86e1
movsd 0xe0(%rdx,%rdi,8), %xmm2
ucomisd %xmm0, %xmm2
jbe 0x86bc
ucomisd %xmm2, %xmm1
ja 0x86e1
cmpw $0x0, 0xc6(%rdx,%rdi,2)
jle 0x86e1
addl $0x64, %r8d
movw %r8w, 0x110(%rdx,%rdi,2)
jmp 0x86e8
cmpl $0x7, %edi
movzbl %al, %eax
cmovgel %ecx, %eax
jmp 0x86e8
incl %ebx
movb $0x0, 0x8(%rsp,%rdi)
incq %rsi
cmpq $0x6, %rsi
jne 0x8687
testb %al, %al
je 0x879c
testl %ebx, %ebx
jle 0x87aa
movq 0xb2f0(%rip), %rdi      # 0x139f8
leaq 0x61c5(%rip), %rsi      # 0xe8d4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
cmpl $0x1, %ebx
je 0x872f
movq 0xb2d3(%rip), %rdi      # 0x139f8
movl $0x73, %esi
callq 0x2160
movq $-0x6, %r15
leaq 0xad73(%rip), %rbx      # 0x134b0
leaq 0x6166(%rip), %r14      # 0xe8aa
cmpb $0x0, 0xe(%rsp,%r15)
jne 0x8771
leal 0x7(%r15), %edx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x21a0
movq 0xb294(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
incq %r15
jne 0x8744
movq 0xb27b(%rip), %rdi      # 0x139f8
leaq 0x612a(%rip), %rsi      # 0xe8ae
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x3d76
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x7b4f
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: MNav
void MNav()
{
  double Temp;
  int Code;
  boolean Ok;

  Ok = true;
  waddstr(Cmdwin,"   Helmsman, come to course [0-360] ");
  mygetstr(Cmdwin,scrstr,true);
  Code = (sscanf(scrstr, "%lg", &Temp) == 0);
  if (Code > 0)
    Ok = false;
  else
    Objects[0]->Des_Crs = Temp;
  Ok = Getwarp(Ok);
  if (Ok) {
    Objects[0]->Trgt = 0;
    sprintf(scrstr,"Sulu: Aye, %s.",Title);
    SEndln();
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0xaa22(%rip), %rdi      # 0x139f8
leaq 0x5a9a(%rip), %rsi      # 0xea77
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0xaa0a(%rip), %rdi      # 0x139f8
leaq 0xa4bb(%rip), %r14      # 0x134b0
movq %r14, %rsi
movl $0x1, %edx
callq 0x249f
leaq 0x6457(%rip), %rsi      # 0xf460
xorl %ebx, %ebx
movq %rsp, %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x20b0
testl %eax, %eax
je 0x9032
movsd (%rsp), %xmm0
movq 0xa5c8(%rip), %rax      # 0x135f0
movsd %xmm0, 0x18(%rax)
movl $0x1, %ebx
movl %ebx, %edi
callq 0x7c66
testb %al, %al
je 0x9082
movq 0xa5ac(%rip), %rax      # 0x135f0
movw $0x0, 0x48(%rax)
movq 0xa587(%rip), %rdx      # 0x135d8
leaq 0xa458(%rip), %rbx      # 0x134b0
leaq 0x5a3d(%rip), %rsi      # 0xea9c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0xa988(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: PNav
void PNav()
{
  double Temp;
  int Shp;
  boolean Ok, Ship;

  if (Ships[0]->Dmge[(long)Comp]) {
    NoComp();
    return;
  }
  Ok = false;
  waddstr(Cmdwin,"   Chekov, pursue the ");
  Shp = GetShp(&Ok, &Ship);
  if (!(Ship && Ok)) {
    ChWhat();
    return;
  }
  Ok = Getwarp(Ok);
  if (!Ok) {
    return;
  }
  Objects[0]->Trgt = Shp+1;
  Temp = Bearing(0, Shp);
  Endln();
  sprintf(scrstr,"Chekov: Aye, %s, coming to course %3.0f", Title, Temp);
  SEndln();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq 0xa8f6(%rip), %rax      # 0x13990
cmpb $0x0, 0xc0(%rax)
je 0x90b1
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x7c27
leaq 0x7(%rsp), %r14
movb $0x0, (%r14)
movq 0xa937(%rip), %rdi      # 0x139f8
leaq 0x59e3(%rip), %rsi      # 0xeaab
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
leaq 0x6(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x809a
movl %eax, %ebx
cmpb $0x0, (%r15)
setne %cl
movb (%r14), %al
testb %al, %al
setne %dl
testb %dl, %cl
je 0x916d
movsbl %al, %edi
callq 0x7c66
testb %al, %al
je 0x917b
movl %ebx, %eax
incl %eax
movq 0xa4e2(%rip), %rcx      # 0x135f0
movw %ax, 0x48(%rcx)
xorl %edi, %edi
movl %ebx, %esi
callq 0x3e93
movsd %xmm0, 0x8(%rsp)
callq 0x3d76
movq 0xa4ab(%rip), %rdx      # 0x135d8
leaq 0xa37c(%rip), %rbx      # 0x134b0
leaq 0x5987(%rip), %rsi      # 0xeac2
movq %rbx, %rdi
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x21a0
movq 0xa8a6(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x3d76
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x7b97
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: ASrndr
void ASrndr()
{
  sprintf(scrstr,"%s: Uhura, open a hailing frequency to the %ss.",
    Name, Enemy);
  SEndln();
  sprintf(scrstr,"Uhura: Aye, %s.", Title);
  SEndln();
  sprintf(scrstr,"%s: This is Captain %s of the U.S.S. %s. I give you",
    Name, Name, Snams[0]);
  SEndln();
  waddstr(Cmdwin,"   one last chance to surrender before we resume our attack.");
  Endln();
  if (Win == 5) {
    sprintf(scrstr,"%s: %s, we are already complying with your previous request!",
      Capt, Name);
    SEndln();
    return;
  }
  if (Ct[3]) {
    sprintf(scrstr,"Spock: %s, our offer has already been refused.", Title);
    SEndln();
  } else
    Ct[3]=1;
}

// Assembly:
pushq %rbx
movq 0x9f86(%rip), %rdx      # 0x135c8
movq 0xa337(%rip), %rcx      # 0x13980
leaq 0x9e60(%rip), %rbx      # 0x134b0
leaq 0x5847(%rip), %rsi      # 0xee9e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0xa390(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
movq 0x9f57(%rip), %rdx      # 0x135d8
leaq 0x5846(%rip), %rsi      # 0xeece
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0xa35f(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
movq 0x9f16(%rip), %rcx      # 0x135c8
movq 0xa277(%rip), %r8       # 0x13930
leaq 0x581e(%rip), %rsi      # 0xeede
movq %rbx, %rdi
movq %rcx, %rdx
xorl %eax, %eax
callq 0x21a0
movq 0xa324(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
movq 0xa30b(%rip), %rdi      # 0x139f8
leaq 0x581e(%rip), %rsi      # 0xef12
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
cmpb $0x5, 0x9ede(%rip)      # 0x135e8
jne 0x9734
movq 0xa275(%rip), %rdx      # 0x13988
movq 0x9eae(%rip), %rcx      # 0x135c8
leaq 0x9d8f(%rip), %rbx      # 0x134b0
leaq 0x5827(%rip), %rsi      # 0xef4f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
jmp 0x975c
cmpb $0x0, 0x9eac(%rip)      # 0x135e7
je 0x9776
movq 0x9e94(%rip), %rdx      # 0x135d8
leaq 0x9d65(%rip), %rbx      # 0x134b0
leaq 0x583a(%rip), %rsi      # 0xef8c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0xa295(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
popq %rbx
jmp 0x3d76
movb $0x1, 0x9e6a(%rip)      # 0x135e7
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: AtRad
void AtRad()
{
  int Junk;
  boolean Ok;

  TCount = (-1);
  if (Ships[0]->Dmge[(long)Snsr]) {
    NoSnsr();
    return;
  }
  do {
    waddstr(Cmdwin,"   Display radius: [50-10000] ");
    mygetstr(Cmdwin,scrstr,true);
    Junk = atoi(scrstr);
    if (Junk >= 50 && Junk <= 10000) {
      Radius = (long)Junk;
      Ok = true;
    } else {
      waddstr(Cmdwin,"\nSpock:  Designate between 50 and 10000.");
      wrefresh(Cmdwin);
      Ok = false;
    }
  } while (!Ok);
}

// Assembly:
movl $0xffffffff, 0x8dbb(%rip) # imm = 0xFFFFFFFF
movq 0x8d0c(%rip), %rax      # 0x13990
cmpb $0x0, 0xc1(%rax)
jne 0x7c03
pushq %r15
pushq %r14
pushq %rbx
movq 0x8d5b(%rip), %rdi      # 0x139f8
leaq 0x4a65(%rip), %rsi      # 0xf709
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x8d43(%rip), %rdi      # 0x139f8
leaq 0x87f4(%rip), %rbx      # 0x134b0
movq %rbx, %rsi
movl $0x1, %edx
callq 0x249f
movq %rbx, %rdi
callq 0x21d0
leal -0x2711(%rax), %ecx
cmpl $0xffffd920, %ecx       # imm = 0xFFFFD920
ja 0xad52
leaq 0x4a42(%rip), %rbx      # 0xf728
leaq 0x4a1c(%rip), %r14      # 0xf709
leaq 0x87bc(%rip), %r15      # 0x134b0
movq 0x8cfd(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x8ce9(%rip), %rdi      # 0x139f8
callq 0x2190
movq 0x8cdd(%rip), %rdi      # 0x139f8
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x8cc9(%rip), %rdi      # 0x139f8
movq %r15, %rsi
movl $0x1, %edx
callq 0x249f
movq %r15, %rdi
callq 0x21d0
leal -0x2711(%rax), %ecx
cmpl $0xffffd921, %ecx       # imm = 0xFFFFD921
jb 0xacf4
movl %eax, 0x8cd0(%rip)      # 0x13a28
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: ENav
void ENav()
{
  double Temp;
  int Shp;
  boolean Ok, Ship;

  if (Ships[0]->Dmge[(long)Comp]) {
    NoComp();
    return;
  }
  Ok = false;
  waddstr(Cmdwin,"   Chekov, elude the ");
  Shp = GetShp(&Ok, &Ship);
  if (!(Ship && Ok)) {
    ChWhat();
    return;
  }
  Ok = Getwarp(Ok);
  if (!Ok) {
    return;
  }
  Objects[0]->Trgt = -(Shp+1);
  Temp = RMod(Bearing(0, Shp) + 180);
  sprintf(scrstr,"Chekov: Aye, %s, coming to course %3.0f", Title, Temp);
  mvwaddstr(Cmdwin,3,0,scrstr);
  Endln();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq 0x8c22(%rip), %rax      # 0x13990
cmpb $0x0, 0xc0(%rax)
je 0xad85
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x7c27
leaq 0xf(%rsp), %r14
movb $0x0, (%r14)
movq 0x8c63(%rip), %rdi      # 0x139f8
leaq 0x49b5(%rip), %rsi      # 0xf751
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
leaq 0xe(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x809a
movl %eax, %ebx
cmpb $0x0, (%r15)
setne %cl
movb (%r14), %al
testb %al, %al
setne %dl
testb %dl, %cl
je 0xaecc
movsbl %al, %edi
callq 0x7c66
testb %al, %al
je 0xaeda
movl %ebx, %eax
notl %eax
movq 0x8806(%rip), %rcx      # 0x135f0
movw %ax, 0x48(%rcx)
xorl %edi, %edi
movl %ebx, %esi
callq 0x3e93
addsd 0x2349(%rip), %xmm0     # 0xd148
movsd %xmm0, 0x10(%rsp)
movsd 0x2343(%rip), %xmm2     # 0xd150
divsd %xmm2, %xmm0
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x22b0
movsd 0x2332(%rip), %xmm0     # 0xd158
movsd (%rbx), %xmm1
mulsd %xmm0, %xmm1
addsd 0x10(%rsp), %xmm1
addsd %xmm1, %xmm0
movsd 0x2310(%rip), %xmm3     # 0xd150
movapd %xmm3, %xmm2
cmpnlesd %xmm1, %xmm2
andpd %xmm2, %xmm1
andnpd %xmm0, %xmm2
orpd %xmm1, %xmm2
addsd %xmm2, %xmm3
xorpd %xmm1, %xmm1
movapd %xmm2, %xmm0
cmpltsd %xmm1, %xmm0
andpd %xmm0, %xmm3
andnpd %xmm2, %xmm0
orpd %xmm3, %xmm0
movq 0x875f(%rip), %rdx      # 0x135d8
leaq 0x8630(%rip), %rdi      # 0x134b0
leaq 0x3c3b(%rip), %rsi      # 0xeac2
movb $0x1, %al
callq 0x21a0
movq 0x8b63(%rip), %rdi      # 0x139f8
movl $0x3, %esi
xorl %edx, %edx
callq 0x21e0
cmpl $-0x1, %eax
je 0xaebe
movq 0x8b4b(%rip), %rdi      # 0x139f8
leaq 0x85fc(%rip), %rsi      # 0x134b0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x3d76
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x7b97
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: EScan
void EScan()
{
  int Shp;
  boolean Ok, Ship;

  Ok = true;
  waddstr(Cmdwin,"   Spock, scan the ");
  Shp = GetShp(&Ok, &Ship);
  if (Ships[0]->Dmge[(long)Snsr]) {
    NoSnsr();
    return;
  }
  if (Ship && Ok)
    Scan_(Shp);
  else
    BParam();
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
leaq 0xf(%rsp), %rbx
movb $0x1, (%rbx)
movq 0x8b00(%rip), %rdi      # 0x139f8
leaq 0x4868(%rip), %rsi      # 0xf767
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
leaq 0xe(%rsp), %rsi
movq %rbx, %rdi
callq 0x809a
movq 0x8a73(%rip), %rcx      # 0x13990
cmpb $0x0, 0xc1(%rcx)
je 0xaf30
addq $0x10, %rsp
popq %rbx
jmp 0x7c03
cmpb $0x0, 0xe(%rsp)
je 0xaf4a
cmpb $0x0, 0xf(%rsp)
je 0xaf4a
movl %eax, %edi
addq $0x10, %rsp
popq %rbx
jmp 0x7da1
addq $0x10, %rsp
popq %rbx
jmp 0x7b4f
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: Engin
void Engin()
{
  short I, FORLIM;

  if (Ships[0]->Dmge[(long)Engn]) {
    waddstr(Cmdwin,"   Detonate the Engineering section, Scotty!");
    Endln();
    Endln();
    waddstr(Cmdwin,"Scott:  ");
    if (Bombed) {
      sprintf(scrstr,"What section? It's already gone, %s!", Title);
      waddstr(Cmdwin,scrstr);
    }
    else {
      sprintf(scrstr,"Aye, %s! Detonating Engineering now!", Title);
      waddstr(Cmdwin,scrstr);
      for (I = 0; I < ObjCount; I++) {
	if (Objects[I] != NULL) {
	  if (Objects[I]->ObTyp == 10)
	    Objects[I]->Tim_Del = 10000.0;
	}
      }
      Bombed = true;
    }
    Endln();
    return;
  }
  waddstr(Cmdwin,"   Scotty, jettison the Engineering section!!");
  Endln();
  Endln();
  waddstr(Cmdwin,"Scott:  Aye, Captain (oh, me poor engines!)");
  Endln();
  Endln();
  Detach(0);
}

// Assembly:
pushq %rbx
movq 0x8a34(%rip), %rax      # 0x13990
cmpb $0x0, 0xc4(%rax)
movq 0x8a8e(%rip), %rdi      # 0x139f8
je 0xafe0
leaq 0x4808(%rip), %rsi      # 0xf77b
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
callq 0x3d76
movq 0x8a6a(%rip), %rdi      # 0x139f8
leaq 0x4813(%rip), %rsi      # 0xf7a8
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movq 0x8632(%rip), %rdx      # 0x135d8
cmpb $0x1, 0x8a8f(%rip)      # 0x13a3c
jne 0xb025
leaq 0x84fa(%rip), %rbx      # 0x134b0
leaq 0x47f4(%rip), %rsi      # 0xf7b1
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0x8a2a(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
jmp 0xb097
leaq 0x4814(%rip), %rsi      # 0xf7fb
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
callq 0x3d76
movq 0x89f6(%rip), %rdi      # 0x139f8
leaq 0x4820(%rip), %rsi      # 0xf829
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
callq 0x3d76
xorl %edi, %edi
popq %rbx
jmp 0x6a85
leaq 0x8484(%rip), %rbx      # 0x134b0
leaq 0x47a3(%rip), %rsi      # 0xf7d6
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0x89b4(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
movzbl 0x858a(%rip), %eax      # 0x135e2
testl %eax, %eax
je 0xb090
xorl %ecx, %ecx
leaq 0x858b(%rip), %rdx      # 0x135f0
movabsq $0x40c3880000000000, %rsi # imm = 0x40C3880000000000
movswq %cx, %rdi
movq (%rdx,%rdi,8), %rdi
testq %rdi, %rdi
je 0xb087
cmpw $0xa, 0x4a(%rdi)
jne 0xb087
movq %rsi, 0x30(%rdi)
incl %ecx
movswl %cx, %edi
cmpl %eax, %edi
jl 0xb06f
movb $0x1, 0x89a5(%rip)      # 0x13a3c
popq %rbx
jmp 0x3d76
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: Srndr
void Srndr()
{
  sprintf(scrstr,"%s:  Uhura, open a channel to the %ss.", Name, Enemy);
  SEndln();
  sprintf(scrstr,"Uhura:  Aye, %s.", Title);
  SEndln();
  sprintf(scrstr,"%s:  This is Captain %s of the U.S.S. %s. Will",
    Name, Name, Snams[0]);
  SEndln();
  waddstr(Cmdwin,"   you accept my unconditional surrender?");
  Endln();
  if (Win == 4) {
    sprintf(scrstr,"Spock:  %s, we have already surrendered.", Title);
    SEndln();
    return;
  }
  if (Ct[2]) {
    sprintf(scrstr,"Spock:  The %ss have already refused.", Enemy);
    SEndln();
  } else {
    if (Enemy == Romulan) {
      waddstr(Cmdwin,"Spock:  The Romulans have not been known to have taken");
      Endln();
      waddstr(Cmdwin,"   prisoners");
      Endln();
    }
    Ct[2]=1;
  }
}

// Assembly:
pushq %rbx
movq 0x8523(%rip), %rdx      # 0x135c8
movq 0x88d4(%rip), %rcx      # 0x13980
leaq 0x83fd(%rip), %rbx      # 0x134b0
leaq 0x479b(%rip), %rsi      # 0xf855
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0x892d(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
movq 0x84f4(%rip), %rdx      # 0x135d8
leaq 0x4791(%rip), %rsi      # 0xf87c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0x88fc(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
movq 0x84b3(%rip), %rcx      # 0x135c8
movq 0x8814(%rip), %r8       # 0x13930
leaq 0x476a(%rip), %rsi      # 0xf88d
movq %rbx, %rdi
movq %rcx, %rdx
xorl %eax, %eax
callq 0x21a0
movq 0x88c1(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
movq 0x88a8(%rip), %rdi      # 0x139f8
leaq 0x4765(%rip), %rsi      # 0xf8bc
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
cmpb $0x4, 0x847b(%rip)      # 0x135e8
jne 0xb186
movq 0x8462(%rip), %rdx      # 0x135d8
leaq 0x8333(%rip), %rbx      # 0x134b0
leaq 0x4762(%rip), %rsi      # 0xf8e6
jmp 0xb1a4
cmpb $0x0, 0x8459(%rip)      # 0x135e6
movq 0x87ec(%rip), %rdx      # 0x13980
je 0xb1c8
leaq 0x8313(%rip), %rbx      # 0x134b0
leaq 0x476b(%rip), %rsi      # 0xf90f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0x8843(%rip), %rdi      # 0x139f8
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
popq %rbx
jmp 0x3d76
cmpq 0x80f9(%rip), %rdx      # 0x132c8
jne 0xb20b
movq 0x8820(%rip), %rdi      # 0x139f8
leaq 0x4756(%rip), %rsi      # 0xf935
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
movq 0x8803(%rip), %rdi      # 0x139f8
leaq 0x4770(%rip), %rsi      # 0xf96c
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x3d76
movb $0x1, 0x83d4(%rip)      # 0x135e6
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/hyc[P]trek73c/trekx.c
// Function: EStop
void EStop()
{
  waddstr(Cmdwin,"Quit game");
  if (Yes())
    Stop = true;
  TCount = (-1);
}

// Assembly:
pushq %rax
movq 0x8255(%rip), %rdi      # 0x139f8
leaq 0x492c(%rip), %rsi      # 0x100d6
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2210
callq 0x7ad7
testb %al, %al
je 0xb7c4
movb $0x1, 0x8270(%rip)      # 0x13a34
movl $0xffffffff, 0x826a(%rip) # imm = 0xFFFFFFFF
popq %rax
retq