// File: /workspace/github_c_makefile_star2_O0/josch[P]stride/report.c
// Function: ReportShort
void ReportShort(CHAIN **Chain, int NChain, FILE *Out, COMMAND *Cmd)
{
  
  register int Cn, i;
  BUFFER Bf, Tmp;
  char *Asn;
  static char *StrTypes = "HGIE";
  int Bound[MAX_ASSIGN][2], NStr;

  if( !ExistsSecStr(Chain,NChain) )
    return;

  PrepareBuffer(Bf,Chain);

  Glue(Bf,"REM",Out);
  Glue(Bf,"REM",Out);
  Glue(Bf,"REM",Out);

  for( ; *StrTypes!= '\0'; StrTypes++ ) {

    for( Cn=0; Cn<NChain; Cn++ ) {

      if( !Chain[Cn]->Valid )
	continue;

      Asn = (char *)ckalloc(Chain[Cn]->NRes*sizeof(char));
      ExtractAsn(Chain,Cn,Asn);
      NStr = Boundaries(Asn,Chain[Cn]->NRes,(*StrTypes),Bound);

      for( i=0; i<NStr; i++ ) {
	sprintf(Tmp,"LOC  %-10s   %3s  %4s %c      %3s   %4s %c",Translate(*StrTypes),
		Chain[Cn]->Rsd[Bound[i][0]]->ResType,
		Chain[Cn]->Rsd[Bound[i][0]]->PDB_ResNumb,
		SpaceToDash(Chain[Cn]->Id),
		Chain[Cn]->Rsd[Bound[i][1]]->ResType,
		Chain[Cn]->Rsd[Bound[i][1]]->PDB_ResNumb,
		SpaceToDash(Chain[Cn]->Id));
	Glue(Bf,Tmp,Out);
      }
      
      free(Asn);
    }    
  }

}

// Assembly:
subq $0x1858, %rsp           # imm = 0x1858
movq %rdi, 0x1850(%rsp)
movl %esi, 0x184c(%rsp)
movq %rdx, 0x1840(%rsp)
movq %rcx, 0x1838(%rsp)
movq 0x1850(%rsp), %rdi
movl 0x184c(%rsp), %esi
callq 0x6760
cmpl $0x0, %eax
jne 0x1c124
jmp 0x1c450
leaq 0x1420(%rsp), %rdi
movq 0x1850(%rsp), %rsi
callq 0x1d3d0
leaq 0x1420(%rsp), %rdi
movq 0x1840(%rsp), %rdx
leaq 0xffa1(%rip), %rsi      # 0x2c0f1
callq 0x1d430
leaq 0x1420(%rsp), %rdi
movq 0x1840(%rsp), %rdx
leaq 0xff85(%rip), %rsi      # 0x2c0f1
callq 0x1d430
leaq 0x1420(%rsp), %rdi
movq 0x1840(%rsp), %rdx
leaq 0xff69(%rip), %rsi      # 0x2c0f1
callq 0x1d430
movq 0x14a7c(%rip), %rax     # 0x30c10
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x1c450
movl $0x0, 0x1834(%rsp)
movl 0x1834(%rsp), %eax
cmpl 0x184c(%rsp), %eax
jge 0x1c437
movq 0x1850(%rsp), %rax
movslq 0x1834(%rsp), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x58(%rax)
jne 0x1c1de
jmp 0x1c421
movq 0x1850(%rsp), %rax
movslq 0x1834(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq (%rax), %rdi
shlq $0x0, %rdi
callq 0x7360
movq %rax, 0x1008(%rsp)
movq 0x1850(%rsp), %rdi
movl 0x1834(%rsp), %esi
movq 0x1008(%rsp), %rdx
callq 0x6610
movq 0x1008(%rsp), %rdi
movq 0x1850(%rsp), %rax
movslq 0x1834(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %esi
movq 0x149c9(%rip), %rax     # 0x30c10
movb (%rax), %al
leaq 0x60(%rsp), %rcx
movsbl %al, %edx
callq 0x61f0
movl %eax, 0x5c(%rsp)
movl $0x0, 0x1830(%rsp)
movl 0x1830(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jge 0x1c414
leaq 0x1010(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x14986(%rip), %rax     # 0x30c10
movsbl (%rax), %edi
callq 0x6400
movq %rax, 0x28(%rsp)
movq 0x1850(%rsp), %rax
movslq 0x1834(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x68(%rax), %rax
movslq 0x1830(%rsp), %rcx
movslq 0x60(%rsp,%rcx,8), %rcx
movq (%rax,%rcx,8), %rax
addq $0xa, %rax
movq %rax, 0x30(%rsp)
movq 0x1850(%rsp), %rax
movslq 0x1834(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x68(%rax), %rax
movslq 0x1830(%rsp), %rcx
movslq 0x60(%rsp,%rcx,8), %rcx
movq (%rax,%rcx,8), %rax
addq $0x4, %rax
movq %rax, 0x38(%rsp)
movq 0x1850(%rsp), %rax
movslq 0x1834(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x40(%rax), %edi
callq 0x6550
movsbl %al, %eax
movl %eax, 0x44(%rsp)
movq 0x1850(%rsp), %rax
movslq 0x1834(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x68(%rax), %rax
movslq 0x1830(%rsp), %rcx
movslq 0x64(%rsp,%rcx,8), %rcx
movq (%rax,%rcx,8), %rax
addq $0xa, %rax
movq %rax, 0x48(%rsp)
movq 0x1850(%rsp), %rax
movslq 0x1834(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x68(%rax), %rax
movslq 0x1830(%rsp), %rcx
movslq 0x64(%rsp,%rcx,8), %rcx
movq (%rax,%rcx,8), %rax
addq $0x4, %rax
movq %rax, 0x50(%rsp)
movq 0x1850(%rsp), %rax
movslq 0x1834(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x40(%rax), %edi
callq 0x6550
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movl 0x44(%rsp), %r9d
movq 0x48(%rsp), %r11
movq 0x50(%rsp), %r10
movsbl %al, %eax
leaq 0x10250(%rip), %rsi     # 0x2c61d
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x0, %al
callq 0x2200
leaq 0x1420(%rsp), %rdi
leaq 0x1010(%rsp), %rsi
movq 0x1840(%rsp), %rdx
callq 0x1d430
movl 0x1830(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1830(%rsp)
jmp 0x1c265
movq 0x1008(%rsp), %rdi
callq 0x2030
movl 0x1834(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1834(%rsp)
jmp 0x1c1ab
jmp 0x1c439
movq 0x147d0(%rip), %rax     # 0x30c10
addq $0x1, %rax
movq %rax, 0x147c5(%rip)     # 0x30c10
jmp 0x1c18d
addq $0x1858, %rsp           # imm = 0x1858
retq
nopl (%rax,%rax)