// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1808, %rsp           # imm = 0x1808
movq %rdx, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
movq %rsi, %r15
callq 0x4a65
testl %eax, %eax
je 0x10864
leaq 0x450(%rsp), %r12
movq %r12, %rdi
movq 0x8(%rsp), %rsi
callq 0x111b7
leaq 0x8b72(%rip), %rbx      # 0x19217
movq %r12, %rdi
movq %rbx, %rsi
movq 0x10(%rsp), %r14
movq %r14, %rdx
callq 0x111f1
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x111f1
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x111f1
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
movq %r15, 0x20(%rsp)
movq 0x104b7(%rip), %rax     # 0x20ba0
cmpb $0x0, (%rax)
je 0x10864
xorl %r14d, %r14d
cmpq 0x20(%rsp), %r14
je 0x1084e
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rax
cmpl $0x0, 0x58(%rax)
je 0x10846
movslq (%rax), %rdi
callq 0x50f4
movq %rax, %r15
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl %r14d, %esi
movq %rax, %rdx
callq 0x49db
movq %r14, 0x18(%rsp)
movq (%rbx,%r14,8), %rax
movl (%rax), %esi
movq 0x1045d(%rip), %rax     # 0x20ba0
movsbl (%rax), %edx
movq %r15, 0x28(%rsp)
movq %r15, %rdi
leaq 0x860(%rsp), %rcx
callq 0x47d8
movl %eax, %ecx
testl %eax, %eax
movl $0x0, %eax
cmovlel %eax, %ecx
movq %rcx, 0x30(%rsp)
xorl %r12d, %r12d
cmpq %r12, 0x30(%rsp)
je 0x10837
movq 0x1041f(%rip), %rax     # 0x20ba0
movsbl (%rax), %edi
callq 0x48b3
movq %rax, 0x38(%rsp)
movq 0x8(%rsp), %r14
movq 0x18(%rsp), %rbp
movq (%r14,%rbp,8), %rax
movq 0x68(%rax), %rcx
movslq 0x860(%rsp,%r12,8), %rdx
movq (%rcx,%rdx,8), %rbx
leaq 0xa(%rbx), %r13
addq $0x4, %rbx
movsbl 0x40(%rax), %edi
callq 0x4969
movsbl %al, %r15d
movq (%r14,%rbp,8), %rax
movq 0x68(%rax), %rcx
movslq 0x864(%rsp,%r12,8), %rdx
movq (%rcx,%rdx,8), %r14
leaq 0xa(%r14), %rbp
addq $0x4, %r14
movsbl 0x40(%rax), %edi
callq 0x4969
movsbl %al, %r10d
subq $0x8, %rsp
leaq 0x48(%rsp), %rdi
leaq 0x8f41(%rip), %rsi      # 0x1973b
movq 0x40(%rsp), %rdx
movq %r13, %rcx
movq %rbx, %r8
movl %r15d, %r9d
xorl %eax, %eax
pushq %r10
pushq %r14
pushq %rbp
callq 0x2230
addq $0x20, %rsp
leaq 0x450(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x111f1
incq %r12
jmp 0x1076f
movq 0x28(%rsp), %rdi
callq 0x2040
movq 0x18(%rsp), %r14
incq %r14
jmp 0x106f5
movq 0x1034b(%rip), %rax     # 0x20ba0
incq %rax
movq %rax, 0x10341(%rip)     # 0x20ba0
jmp 0x106e9
addq $0x1808, %rsp           # imm = 0x1808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq