// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq 0xc9ee(%rip), %rdi      # 0x15a00
callq 0x2090
movslq -0x4(%rbp), %rcx
leaq 0xc8fe(%rip), %rax      # 0x15920
movq (%rax,%rcx,8), %rdx
leaq 0xc473(%rip), %rdi      # 0x154a0
leaq 0x77cd(%rip), %rsi      # 0x10801
movb $0x0, %al
callq 0x2190
movq 0xc9be(%rip), %rdi      # 0x15a00
xorl %edx, %edx
movl %edx, %esi
callq 0x21d0
cmpl $-0x1, %eax
jne 0x9052
jmp 0x906a
movq 0xc9a7(%rip), %rdi      # 0x15a00
leaq 0xc440(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movslq -0x4(%rbp), %rcx
leaq 0xc90b(%rip), %rax      # 0x15980
movq (%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
cmpq $0x3, %rax
jg 0x90e2
movq -0x18(%rbp), %rax
movl -0xc(%rbp), %ecx
cmpb $0x0, 0xc0(%rax,%rcx)
je 0x90d4
movq 0xc95b(%rip), %rdi      # 0x15a00
movl -0xc(%rbp), %eax
movl %eax, %ecx
subq $0x0, %rcx
leaq 0xc10b(%rip), %rax      # 0x151c0
movq (%rax,%rcx,8), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xc936(%rip), %rdi      # 0x15a00
movl $0xa, %esi
callq 0x2150
jmp 0x90d6
movl -0xc(%rbp), %eax
addq $0x1, %rax
movl %eax, -0xc(%rbp)
jmp 0x9084
movq -0x18(%rbp), %rax
movswl 0x1a(%rax), %edx
leaq 0xc3af(%rip), %rdi      # 0x154a0
leaq 0x7719(%rip), %rsi      # 0x10811
movb $0x0, %al
callq 0x2190
movq 0xc8fa(%rip), %rdi      # 0x15a00
leaq 0xc393(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xc8e2(%rip), %rdi      # 0x15a00
leaq 0x76fb(%rip), %rsi      # 0x10820
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movl $0x0, -0x8(%rbp)
cmpl $0x3, -0x8(%rbp)
jg 0x91b3
movq -0x18(%rbp), %rax
movslq -0x8(%rbp), %rcx
movswl 0xd2(%rax,%rcx,2), %eax
cmpl $0x0, %eax
jge 0x916b
movq 0xc8a8(%rip), %rdi      # 0x15a00
leaq 0x8202(%rip), %rsi      # 0x11361
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
jmp 0x91a6
movq -0x18(%rbp), %rax
movslq -0x8(%rbp), %rcx
movsd 0x20(%rax,%rcx,8), %xmm0
leaq 0xc320(%rip), %rdi      # 0x154a0
leaq 0x7747(%rip), %rsi      # 0x108ce
movb $0x1, %al
callq 0x2190
movq 0xc86b(%rip), %rdi      # 0x15a00
leaq 0xc304(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
jmp 0x91a8
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x9136
movq 0xc846(%rip), %rdi      # 0x15a00
leaq 0x7668(%rip), %rsi      # 0x10829
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movl $0x0, -0x8(%rbp)
cmpl $0x5, -0x8(%rbp)
jg 0x9251
movq -0x18(%rbp), %rax
movslq -0x8(%rbp), %rcx
movswl 0x110(%rax,%rcx,2), %eax
cmpl $0x0, %eax
jge 0x9207
movq 0xc80c(%rip), %rdi      # 0x15a00
leaq 0x8166(%rip), %rsi      # 0x11361
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
jmp 0x9244
movq -0x18(%rbp), %rax
movslq -0x8(%rbp), %rcx
movswl 0xc6(%rax,%rcx,2), %edx
leaq 0xc282(%rip), %rdi      # 0x154a0
leaq 0x760e(%rip), %rsi      # 0x10833
movb $0x0, %al
callq 0x2190
movq 0xc7cd(%rip), %rdi      # 0x15a00
leaq 0xc266(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
jmp 0x9246
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x91d2
movq 0xc7a8(%rip), %rdi      # 0x15a00
leaq 0x75d8(%rip), %rsi      # 0x10837
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movl $0x0, -0x8(%rbp)
cmpl $0x3, -0x8(%rbp)
jg 0x92bf
movq -0x18(%rbp), %rax
movslq -0x8(%rbp), %rcx
movsd 0xa0(%rax,%rcx,8), %xmm0
leaq 0xc212(%rip), %rdi      # 0x154a0
leaq 0x75ac(%rip), %rsi      # 0x10841
movb $0x1, %al
callq 0x2190
movq 0xc75d(%rip), %rdi      # 0x15a00
leaq 0xc1f6(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x9270
movq -0x18(%rbp), %rax
movsd 0x8(%rax), %xmm0
leaq 0xc1d1(%rip), %rdi      # 0x154a0
leaq 0x7571(%rip), %rsi      # 0x10847
movb $0x1, %al
callq 0x2190
movq 0xc71c(%rip), %rdi      # 0x15a00
leaq 0xc1b5(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq -0x18(%rbp), %rax
movsd (%rax), %xmm0
leaq 0xc19c(%rip), %rdi      # 0x154a0
leaq 0x7552(%rip), %rsi      # 0x1085d
movb $0x1, %al
callq 0x2190
movq 0xc6e7(%rip), %rdi      # 0x15a00
leaq 0xc180(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movslq -0x4(%rbp), %rcx
leaq 0xc2ab(%rip), %rax      # 0x155e0
movq (%rax,%rcx,8), %rax
movsd 0x20(%rax), %xmm0
movq -0x18(%rbp), %rax
movzbl 0x18(%rax), %edx
leaq 0xc153(%rip), %rdi      # 0x154a0
leaq 0x751e(%rip), %rsi      # 0x10872
movb $0x1, %al
callq 0x2190
movq 0xc69e(%rip), %rdi      # 0x15a00
leaq 0xc137(%rip), %rsi      # 0x154a0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xc686(%rip), %rdi      # 0x15a00
leaq 0x7509(%rip), %rsi      # 0x1088a
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2200
movq 0xc66e(%rip), %rdi      # 0x15a00
callq 0x2180
movq 0xc662(%rip), %rdi      # 0x15a00
callq 0x22f0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)