// File: /workspace/github_c_makefile_star2_O0/josch[P]stride/report.c
// Function: ReportTurnTypes
void ReportTurnTypes(CHAIN **Chain, int NChain, FILE *Out, COMMAND *Cmd)
{

  register int Cn, Tn;
  BUFFER Bf, Tmp;
  TURN *t;

  Tn = 0;
  for( Cn=0; Cn<NChain; Cn++ )
    if( Chain[Cn]->Valid )
       Tn += Chain[Cn]->NAssignedTurn;

  if( !Tn ) return;

  PrepareBuffer(Bf,Chain);

  for( Cn=0; Cn<NChain; Cn++ ) {
    if( !Chain[Cn]->Valid )
      continue;
    for( Tn=0; Tn<Chain[Cn]->NAssignedTurn; Tn++ ) {
      t = Chain[Cn]->AssignedTurn[Tn];
      sprintf(Tmp,"LOC  %-11s  %3s  %4s %c      %3s   %4s %c",
	      Translate(t->TurnType),t->Res1,t->PDB_ResNumb1,
	      SpaceToDash(Chain[Cn]->Id),t->Res2,
	      t->PDB_ResNumb2,SpaceToDash(Chain[Cn]->Id));

      Glue(Bf,Tmp,Out);
    }
  }
}

// Assembly:
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rdi, 0x8a0(%rsp)
movl %esi, 0x89c(%rsp)
movq %rdx, 0x890(%rsp)
movq %rcx, 0x888(%rsp)
movl $0x0, 0x880(%rsp)
movl $0x0, 0x884(%rsp)
movl 0x884(%rsp), %eax
cmpl 0x89c(%rsp), %eax
jge 0x1c500
movq 0x8a0(%rsp), %rax
movslq 0x884(%rsp), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x58(%rax)
je 0x1c4eb
movq 0x8a0(%rsp), %rax
movslq 0x884(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movl 0x28(%rax), %eax
addl 0x880(%rsp), %eax
movl %eax, 0x880(%rsp)
jmp 0x1c4ed
movl 0x884(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x884(%rsp)
jmp 0x1c49c
cmpl $0x0, 0x880(%rsp)
jne 0x1c50f
jmp 0x1c6d8
leaq 0x470(%rsp), %rdi
movq 0x8a0(%rsp), %rsi
callq 0x1d3d0
movl $0x0, 0x884(%rsp)
movl 0x884(%rsp), %eax
cmpl 0x89c(%rsp), %eax
jge 0x1c6d8
movq 0x8a0(%rsp), %rax
movslq 0x884(%rsp), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x58(%rax)
jne 0x1c562
jmp 0x1c6c2
movl $0x0, 0x880(%rsp)
movl 0x880(%rsp), %eax
movq 0x8a0(%rsp), %rcx
movslq 0x884(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
cmpl 0x28(%rcx), %eax
jge 0x1c6c0
movq 0x8a0(%rsp), %rax
movslq 0x884(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x98(%rax), %rax
movslq 0x880(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x58(%rsp)
leaq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %rax
movsbl 0x1a(%rax), %edi
callq 0x6400
movq %rax, 0x28(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x58(%rsp), %rax
addq $0xc, %rax
movq %rax, 0x38(%rsp)
movq 0x8a0(%rsp), %rax
movslq 0x884(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x40(%rax), %edi
callq 0x6550
movsbl %al, %eax
movl %eax, 0x44(%rsp)
movq 0x58(%rsp), %rax
addq $0x6, %rax
movq %rax, 0x48(%rsp)
movq 0x58(%rsp), %rax
addq $0x12, %rax
movq %rax, 0x50(%rsp)
movq 0x8a0(%rsp), %rax
movslq 0x884(%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 0xff72(%rip), %rsi      # 0x2c5ee
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x0, %al
callq 0x2200
leaq 0x470(%rsp), %rdi
leaq 0x60(%rsp), %rsi
movq 0x890(%rsp), %rdx
callq 0x1d430
movl 0x880(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x880(%rsp)
jmp 0x1c56d
jmp 0x1c6c2
movl 0x884(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x884(%rsp)
jmp 0x1c52f
addq $0x8a8, %rsp            # imm = 0x8A8
retq