// File: /workspace/github_c_makefile_star2_O2/hyc[P]trek73c/trekx.c
// Function: Scan_
void Scan_(I)
int I;
{
  int J;
  Damages D;
  Char Ch;
  reg Srec *WITH;

  werase(Scnwin);
  sprintf(scrstr,"Damages to %s:\n", Snams[I]);
  mvwaddstr(Scnwin, 0, 0, scrstr);
  WITH = Ships[I];
  for (D = Comp; (long)D <= (long)Warp; D = (Damages)((long)D + 1)) {
    if (WITH->Dmge[(long)D]) {
      waddstr(Scnwin,DText[(long)D - (long)Comp]);
      waddch(Scnwin,'\n');
    }
  }
  sprintf(scrstr,"Survivors: %d\n", WITH->Crew);
  waddstr(Scnwin,scrstr);
  waddstr(Scnwin,"Phasers:");
  for (J = 0; J <= 3; J++) {
    if (WITH->Pstat[J] < 0)
      waddstr(Scnwin,"  --");
    else {
      sprintf(scrstr,"%4.0f", WITH->PChrg[J]);
      waddstr(Scnwin,scrstr);
    }
  }
  waddstr(Scnwin,"\n  Tubes:");
  for (J = 0; J <= 5; J++) {
    if (WITH->Tstat[J] < 0)
      waddstr(Scnwin,"  --");
    else {
      sprintf(scrstr,"%4d", WITH->Tengy[J]);
      waddstr(Scnwin,scrstr);
    }
  }
  waddstr(Scnwin,"\nShields:");
  for (J = 0; J <= 3; J++) {
    sprintf(scrstr,"%5.0f", WITH->Seff[J]);
    waddstr(Scnwin,scrstr);
  }
  sprintf(scrstr,"\n  Efficiency: %4.2f\n", WITH->Weff);
  waddstr(Scnwin,scrstr);
  sprintf(scrstr,"Regeneration: %0.0f\n", WITH->Regen);
  waddstr(Scnwin,scrstr);
  sprintf(scrstr,"Fuel Cur/Max: %0.0f/%d\n", Objects[I]->Fuel, WITH->Fcap);
  waddstr(Scnwin,scrstr);
  waddstr(Scnwin,"Press a key...");
  wrefresh(Scnwin);
  wgetch(Scnwin);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
movq 0xbca6(%rip), %rdi      # 0x12a00
callq 0x2080
movslq %ebx, %r14
leaq 0xbbb7(%rip), %rax      # 0x12920
movq (%rax,%r14,8), %rdx
leaq 0xb72c(%rip), %rbx      # 0x124a0
leaq 0x598a(%rip), %rsi      # 0xc705
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2190
movq 0xbc74(%rip), %rdi      # 0x12a00
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
cmpl $-0x1, %eax
je 0x6db0
movq 0xbc5f(%rip), %rdi      # 0x12a00
leaq 0xb6f8(%rip), %rsi      # 0x124a0
pushq $-0x1
popq %rdx
callq 0x2200
leaq 0xbbc9(%rip), %rax      # 0x12980
movq %r14, (%rsp)
movq (%rax,%r14,8), %r13
xorl %r15d, %r15d
leaq 0xb3f7(%rip), %r12      # 0x121c0
pushq $-0x1
popq %rbp
pushq $0xa
popq %r14
movl %r15d, %r15d
cmpq $0x3, %r15
ja 0x6e0a
cmpb $0x0, 0xc0(%r13,%r15)
je 0x6e05
movq 0xbc15(%rip), %rdi      # 0x12a00
movq (%r12,%r15,8), %rsi
movl %ebp, %edx
callq 0x2200
movq 0xbc03(%rip), %rdi      # 0x12a00
movl %r14d, %esi
callq 0x2150
incq %r15
jmp 0x6dd0
movswl 0x1a(%r13), %edx
leaq 0x58ff(%rip), %rsi      # 0xc715
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2190
movq 0xbbd9(%rip), %rdi      # 0x12a00
pushq $-0x1
popq %rbp
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2200
movq 0xbbc5(%rip), %rdi      # 0x12a00
leaq 0x58e2(%rip), %rsi      # 0xc724
movl %ebp, %edx
callq 0x2200
pushq $-0x8
popq %r15
leaq 0x6411(%rip), %r12      # 0xd265
leaq 0x5977(%rip), %r14      # 0xc7d2
testq %r15, %r15
je 0x6e9a
cmpw $0x0, 0xda(%r13,%r15)
movq %r12, %rsi
js 0x6e86
movsd 0x40(%r13,%r15,4), %xmm0
movq %rbx, %rdi
movq %r14, %rsi
movb $0x1, %al
callq 0x2190
movq %rbx, %rsi
movq 0xbb73(%rip), %rdi      # 0x12a00
movl %ebp, %edx
callq 0x2200
addq $0x2, %r15
jmp 0x6e5b
movq 0xbb5f(%rip), %rdi      # 0x12a00
leaq 0x5885(%rip), %rsi      # 0xc72d
pushq $-0x1
popq %rbx
movl %ebx, %edx
callq 0x2200
pushq $0x63
popq %rbp
leaq 0x63a9(%rip), %r12      # 0xd265
leaq 0xb5dd(%rip), %r14      # 0x124a0
leaq 0x586d(%rip), %r15      # 0xc737
cmpq $0x69, %rbp
je 0x6f05
cmpw $0x0, 0x4a(%r13,%rbp,2)
movq %r12, %rsi
js 0x6ef2
movswl (%r13,%rbp,2), %edx
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x2190
movq %r14, %rsi
movq 0xbb07(%rip), %rdi      # 0x12a00
movl %ebx, %edx
callq 0x2200
incq %rbp
jmp 0x6eca
movq 0xbaf4(%rip), %rdi      # 0x12a00
leaq 0x5828(%rip), %rsi      # 0xc73b
pushq $-0x1
popq %rbx
movl %ebx, %edx
callq 0x2200
pushq $0x14
popq %r12
leaq 0xb578(%rip), %r14      # 0x124a0
leaq 0x5816(%rip), %r15      # 0xc745
cmpq $0x18, %r12
je 0x6f5f
movsd (%r13,%r12,8), %xmm0
movq %r14, %rdi
movq %r15, %rsi
movb $0x1, %al
callq 0x2190
movq 0xbab0(%rip), %rdi      # 0x12a00
movq %r14, %rsi
movl %ebx, %edx
callq 0x2200
incq %r12
jmp 0x6f2f
movsd 0x8(%r13), %xmm0
leaq 0xb534(%rip), %rbx      # 0x124a0
leaq 0x57d8(%rip), %rsi      # 0xc74b
movq %rbx, %rdi
movb $0x1, %al
callq 0x2190
movq 0xba7c(%rip), %rdi      # 0x12a00
pushq $-0x1
popq %rbp
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2200
movsd (%r13), %xmm0
leaq 0x57c3(%rip), %rsi      # 0xc761
movq %rbx, %rdi
movb $0x1, %al
callq 0x2190
movq 0xba51(%rip), %rdi      # 0x12a00
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2200
leaq 0xb620(%rip), %rax      # 0x125e0
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd 0x20(%rax), %xmm0
movzbl 0x18(%r13), %edx
leaq 0x579d(%rip), %rsi      # 0xc776
movq %rbx, %rdi
movb $0x1, %al
callq 0x2190
movq 0xba16(%rip), %rdi      # 0x12a00
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2200
movq 0xba05(%rip), %rdi      # 0x12a00
leaq 0x578c(%rip), %rsi      # 0xc78e
movl %ebp, %edx
callq 0x2200
movq 0xb9f0(%rip), %rdi      # 0x12a00
callq 0x2180
movq 0xb9e4(%rip), %rdi      # 0x12a00
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x22f0