// File: /workspace/github_c_makefile_star2_O2/josch[P]stride/measure.c
// Function: Measure
void Measure(CHAIN **Chain, int NChain, int El, COMMAND *Cmd, FILE *Out)
{

  QUALITY QualDssp_H, QualDssp_E, Qual_H, Qual_E;   
  int i, Cn, Flag1, Flag2;
  float Q2_, Q2_Dssp, O_, O_Dssp;
  float Content, AlphaCont, BetaCont, PerCor, PerCorDssp;
  int HelAlp, HelPI, Hel310, Sheet, Turn;
  int YYN_H, NYY_H, YNN_H, NNY_H, YYN_E, NYY_E, YNN_E, NNY_E;
  int Total_H, Better_H, Worse_H, Total_E, Better_E, Worse_E;
  char Tmp[3][MAX_RES], *Asn, *PdbAsn, *DsspAsn;
  CHAIN *c;


  for( Cn=0; Cn<NChain; Cn++ ) {

    c = Chain[Cn];

    if( !c->Valid )
      continue;

    Asn     = (char *)ckalloc(c->NRes*sizeof(char));
    PdbAsn  = (char *)ckalloc(c->NRes*sizeof(char));
    DsspAsn = (char *)ckalloc(c->NRes*sizeof(char));
    
    ExtractAsn(Chain,Cn,Asn);
    ExtractPdbAsn(Chain,Cn,PdbAsn);
    ExtractDsspAsn(Chain,Cn,DsspAsn);

    for( i=0; i<c->NRes; i++ ) {
      if( Asn[i] != 'H' && Asn[i] != 'E' && Asn[i] != 'B' )
	Asn[i] = 'C';
      if( PdbAsn[i] != 'H' && PdbAsn[i] != 'E' )
	PdbAsn[i] = 'C';
      if( DsspAsn[i] != 'H' && DsspAsn[i] != 'E' && DsspAsn[i] != 'B' )
	DsspAsn[i] = 'C';
      if( Asn[i] == 'B' )
	Asn[i] = 'E';
      if( DsspAsn[i] == 'B' )
	DsspAsn[i] = 'E';
    }

    CorrectAsnDouble(Asn,DsspAsn,PdbAsn,c->NRes,'E','C');


    if( El ) {
      FullElement(Asn,PdbAsn,DsspAsn,c->NRes,'H',4,'z',&YYN_H,&NYY_H,&YNN_H,&NNY_H);
      FullElement(Asn,PdbAsn,DsspAsn,c->NRes,'E',1,'y',&YYN_E,&NYY_E,&YNN_E,&NNY_E);
      fprintf(Out,"DIFF_EL ");
    }
    else
      fprintf(Out,"DIFF ");
    
    Content = SecStrContent(c,&HelAlp,&HelPI,&Hel310,&Sheet,&Turn);
    AlphaCont = (float)HelAlp/(float)c->NRes;
    BetaCont  = (float)Sheet/(float)c->NRes;
    
    Presnell(PdbAsn,c->NRes,DsspAsn,c->NRes,'E',0.5,&Q2_Dssp,&O_Dssp);
    Presnell(PdbAsn,c->NRes,Asn,c->NRes,'E',0.5,&Q2_,&O_);
    
    Difference(DsspAsn,PdbAsn,c->NRes,'H',&QualDssp_H);
    Difference(DsspAsn,PdbAsn,c->NRes,'E',&QualDssp_E);
    Difference(Asn,PdbAsn,c->NRes,'H',&Qual_H);
    Difference(Asn,PdbAsn,c->NRes,'E',&Qual_E);
    
    PerCor     = PercentCorrect(Asn,PdbAsn,c->NRes);
    PerCorDssp = PercentCorrect(DsspAsn,PdbAsn,c->NRes);
    
    Total_H = CompareElements(Asn,PdbAsn,DsspAsn,c->NRes,'H',&Better_H,&Worse_H);
    Total_E = CompareElements(Asn,PdbAsn,DsspAsn,c->NRes,'E',&Better_E,&Worse_E);
    
    if( (Flag1=AssessCorr(&Qual_H)) ) 
      fprintf(Out,"%6.4f ",Qual_H.Corr);
    else fprintf(Out,"  None ");
    fprintf(Out,"%6.4f ",Qual_H.Perc);
    
    if( (Flag2=AssessCorr(&QualDssp_H)) ) 
      fprintf(Out,"%6.4f ",QualDssp_H.Corr);
    else fprintf(Out,"  None ");
    fprintf(Out,"%6.4f ",QualDssp_H.Perc);
    
    if( Flag1 && Flag2 ) 
      fprintf(Out,"%7.4f ",Qual_H.Corr-QualDssp_H.Corr);
    else fprintf(Out,"   None ");
    fprintf(Out,"%7.4f | ",Qual_H.Perc-QualDssp_H.Perc);
    
    
    if( (Flag1=AssessCorr(&Qual_E)) ) 
      fprintf(Out,"%6.4f ",Qual_E.Corr);
    else fprintf(Out,"  None ");
    fprintf(Out,"%6.4f ",Qual_E.Perc);
    
    if( (Flag2=AssessCorr(&QualDssp_E)) ) 
      fprintf(Out,"%6.4f ",QualDssp_E.Corr);
    else fprintf(Out,"  None ");
    fprintf(Out,"%6.4f ",QualDssp_E.Perc);
    
    if( Flag1 && Flag2 ) 
      fprintf(Out,"%7.4f ",Qual_E.Corr-QualDssp_E.Corr);
    else fprintf(Out,"   None ");
    fprintf(Out,"%7.4f | ",Qual_E.Perc-QualDssp_E.Perc);
    
    fprintf(Out,"%6.4f %6.4f | %6.4f %6.4f | ",Q2_,Q2_Dssp,O_,O_Dssp);
    
    fprintf(Out,"%4d %4d %4d %4d | %4d %4d %4d %4d |%4d %4d %4d %4d |%4d %4d %4d %4d | %s%c %4d %4.2f | %5.3f %5.3f %5.3f",
	    Qual_H.TP,Qual_H.TN,Qual_H.FP,Qual_H.FN,
	    QualDssp_H.TP,QualDssp_H.TN,QualDssp_H.FP,QualDssp_H.FN,
	    Qual_E.TP,Qual_E.TN,Qual_E.FP,Qual_E.FN,
	    QualDssp_E.TP,QualDssp_E.TN,QualDssp_E.FP,QualDssp_E.FN,
	    c->File,c->Id,c->NRes,c->Resolution,Content,AlphaCont,BetaCont);
    
    if( El ) {
      fprintf(Out," FullH: YYN %2d NYY %2d YNN %2d NNY %2d ",YYN_H,NYY_H,YNN_H,NNY_H);
      fprintf(Out," FullE: YYN %2d NYY %2d YNN %2d NNY %2d ",YYN_E,NYY_E,YNN_E,NNY_E);
    }
    
    memset(Tmp[0],'C',c->NRes);
    memset(Tmp[1],'C',c->NRes);
    memset(Tmp[2],'C',c->NRes);
    
    for( i=0; i<c->NRes; i++ ) {
      if( Asn[i] == 'H' ) 
	Tmp[0][i] = Asn[i];
      if( PdbAsn[i] == 'H' )
	Tmp[1][i] = PdbAsn[i];
      if( DsspAsn[i] == 'H' )
	Tmp[2][i] = DsspAsn[i];
    }
    ExcludeObvious(Tmp[0],Tmp[2],Tmp[1],c->NRes);
    Difference(Tmp[0],Tmp[1],c->NRes,'H',&Qual_H);
    fprintf(Out," | ResH: YYN %3d NNY %3d YNN %3d NYY %3d",
	    Qual_H.TP,Qual_H.TN,Qual_H.FP,Qual_H.FN);
    
    memset(Tmp[0],'C',c->NRes);
    memset(Tmp[1],'C',c->NRes);
    memset(Tmp[2],'C',c->NRes);
    
    for( i=0; i<c->NRes; i++ ) {
      if( Asn[i] == 'E' ) 
	Tmp[0][i] = Asn[i];
      if( PdbAsn[i] == 'E' )
	Tmp[1][i] = PdbAsn[i];
      if( DsspAsn[i] == 'E' )
	Tmp[2][i] = DsspAsn[i];
    }
    ExcludeObvious(Tmp[0],Tmp[2],Tmp[1],c->NRes);
    Difference(Tmp[0],Tmp[1],c->NRes,'E',&Qual_E);
    fprintf(Out," | ResE: YYN %3d NNY %3d YNN %3d NYY %3d",
	    Qual_E.TP,Qual_E.TN,Qual_E.FP,Qual_E.FN);
    
    fprintf(Out," | ToH: %2d BtH: %2d WsH: %2d ",Total_H,Better_H,Worse_H);
    fprintf(Out," | ToE: %2d BtE: %2d WsE: %2d ",Total_E,Better_E,Worse_E);
    fprintf(Out,"PerCor %7.4f PerCorDssp %7.4f\n",PerCor,PerCorDssp);
    
    fprintf(Out,"\n");
    
/*   int Bound[MAX_ASSIGN][2], NElem; */
/*     if( !El ) {
 *       NElem = Boundaries(Asn,c->NRes,'H',Bound);
 *       for( i=0; i<NElem; i++ )
 * 	fprintf(Out,"HELIXSTRIDE %4d residues long in %s%c\n",
 * 		Bound[i][1]-Bound[i][0]+1,c->File,c->Id);
 * 
 *       NElem = Boundaries(Asn,c->NRes,'E',Bound);
 *       for( i=0; i<NElem; i++ )
 * 	fprintf(Out,"STRANDSTRIDE %4d residues long in %s%c\n",
 * 		Bound[i][1]-Bound[i][0]+1,c->File,c->Id);
 * 
 *       NElem = Boundaries(PdbAsn,c->NRes,'H',Bound);
 *       for( i=0; i<NElem; i++ )
 * 	fprintf(Out,"HELIXPDB %4d residues long in %s%c\n",
 * 		Bound[i][1]-Bound[i][0]+1,c->File,c->Id);
 * 
 *       NElem = Boundaries(PdbAsn,c->NRes,'E',Bound);
 *       for( i=0; i<NElem; i++ )
 * 	fprintf(Out,"STRANDPDB %4d residues long in %s%c\n",
 * 		Bound[i][1]-Bound[i][0]+1,c->File,c->Id);
 * 
 *       NElem = Boundaries(DsspAsn,c->NRes,'H',Bound);
 *       for( i=0; i<NElem; i++ )
 * 	fprintf(Out,"HELIXSDSSP %4d residues long in %s%c\n",
 * 		Bound[i][1]-Bound[i][0]+1,c->File,c->Id);
 * 
 *       NElem = Boundaries(DsspAsn,c->NRes,'E',Bound);
 *       for( i=0; i<NElem; i++ )
 * 	fprintf(Out,"STRANDDSSP %4d residues long in %s%c\n",
 * 		Bound[i][1]-Bound[i][0]+1,c->File,c->Id);
 *     }
 */
    free(Asn);
    free(PdbAsn);
    free(DsspAsn);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xebb8, %rsp           # imm = 0xEBB8
movl %edx, 0x14(%rsp)
movq %rdi, 0x20(%rsp)
xorl %eax, %eax
testl %esi, %esi
cmovlel %eax, %esi
movq %rsi, 0xf8(%rsp)
pushq $0x49
popq %rbx
xorl %ecx, %ecx
movq %r8, (%rsp)
cmpq 0xf8(%rsp), %rcx
je 0x17090
movq 0x20(%rsp), %rax
movq (%rax,%rcx,8), %r15
cmpl $0x0, 0x58(%r15)
je 0x17088
movslq (%r15), %rdi
movq %rcx, %r12
callq 0x50f4
movq %rax, %rbp
movslq (%r15), %rdi
callq 0x50f4
movq %rax, %r13
movslq (%r15), %rdi
callq 0x50f4
movq %rax, %r14
movq 0x20(%rsp), %rdi
movq %r12, 0xf0(%rsp)
movl %r12d, %esi
movq %rbp, %rdx
callq 0x49db
movq 0x20(%rsp), %rdi
movl %r12d, %esi
movq %r13, %rdx
callq 0x4a09
movq 0x20(%rsp), %rdi
pushq $0x45
popq %r12
movq 0xf0(%rsp), %rsi
movq %r14, %rdx
callq 0x4a37
xorl %eax, %eax
movslq (%r15), %rcx
cmpq %rcx, %rax
jge 0x16774
movzbl (%rbp,%rax), %ecx
addl $-0x42, %ecx
cmpl $0x6, %ecx
ja 0x16721
btl %ecx, %ebx
jb 0x16726
movb $0x43, (%rbp,%rax)
movzbl (%r13,%rax), %ecx
cmpl $0x45, %ecx
je 0x1673c
cmpl $0x48, %ecx
je 0x1673c
movb $0x43, (%r13,%rax)
movzbl (%r14,%rax), %ecx
leal -0x42(%rcx), %edx
cmpl $0x6, %edx
ja 0x1674e
btl %edx, %ebx
jb 0x16755
movb $0x43, (%r14,%rax)
movb $0x43, %cl
cmpb $0x42, (%rbp,%rax)
jne 0x16765
movb $0x45, (%rbp,%rax)
movb (%r14,%rax), %cl
cmpb $0x42, %cl
jne 0x1676f
movb $0x45, (%r14,%rax)
incq %rax
jmp 0x16707
movq %rbp, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl %r12d, %r8d
pushq $0x43
popq %r9
callq 0x174a3
cmpl $0x0, 0x14(%rsp)
je 0x1683b
movl (%r15), %ecx
subq $0x8, %rsp
movq %rbp, %rdi
movq %r13, %rsi
movq %r14, %rdx
pushq $0x48
popq %rbx
movl %ebx, %r8d
pushq $0x4
popq %r9
leaq 0xa0(%rsp), %rax
pushq %rax
leaq 0xac(%rsp), %rax
pushq %rax
leaq 0xb8(%rsp), %rax
pushq %rax
leaq 0xc4(%rsp), %rax
pushq %rax
pushq $0x7a
callq 0x16280
addq $0x30, %rsp
movl (%r15), %ecx
subq $0x8, %rsp
movq %rbp, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %r8d
pushq $0x1
popq %r9
leaq 0x90(%rsp), %rax
pushq %rax
leaq 0x9c(%rsp), %rax
pushq %rax
leaq 0xa8(%rsp), %rax
pushq %rax
leaq 0xb4(%rsp), %rax
pushq %rax
pushq $0x79
callq 0x16280
addq $0x30, %rsp
leaq 0x36d6(%rip), %rdi      # 0x19f00
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
movq (%rsp), %rcx
callq 0x2250
jmp 0x16854
leaq 0x36c7(%rip), %rdi      # 0x19f09
pushq $0x5
popq %rsi
pushq $0x1
popq %rdx
movq (%rsp), %rcx
callq 0x2250
pushq $0x48
popq %rbx
movq %r15, %rdi
leaq 0xac(%rsp), %rsi
leaq 0x14c(%rsp), %rdx
leaq 0x148(%rsp), %rcx
leaq 0xa8(%rsp), %r8
leaq 0x144(%rsp), %r9
callq 0x4aaf
movss %xmm0, 0x64(%rsp)
cvtsi2ssl 0xac(%rsp), %xmm0
movss %xmm0, 0x10(%rsp)
movl (%r15), %ecx
cvtsi2ssl 0xa8(%rsp), %xmm0
movss %xmm0, 0xc(%rsp)
subq $0x8, %rsp
movq %r13, %rdi
movl %ecx, %esi
movq %r14, %rdx
movl %ecx, 0x60(%rsp)
movl %r12d, %r8d
movss 0x2316(%rip), %xmm0     # 0x18bdc
leaq 0xc0(%rsp), %r9
leaq 0xb8(%rsp), %rax
pushq %rax
callq 0x170a2
popq %rcx
popq %rdx
movl (%r15), %ecx
subq $0x8, %rsp
movq %r13, %rdi
movl %ecx, %esi
movq %rbp, %rdx
movl %r12d, %r8d
movss 0x22e4(%rip), %xmm0     # 0x18bdc
leaq 0xc4(%rsp), %r9
leaq 0xbc(%rsp), %rax
pushq %rax
callq 0x170a2
popq %rcx
popq %rdx
movl (%r15), %edx
movq %r14, %rdi
movq %r13, %rsi
movl %ebx, %ecx
leaq 0xd8(%rsp), %r8
callq 0x1752d
movl (%r15), %edx
movq %r14, %rdi
movq %r13, %rsi
movl %r12d, %ecx
leaq 0xc0(%rsp), %r8
callq 0x1752d
movl (%r15), %edx
movq %rbp, %rdi
movq %r13, %rsi
movl %ebx, %ecx
leaq 0x40(%rsp), %r8
callq 0x1752d
movl (%r15), %edx
movq %rbp, %rdi
movq %r13, %rsi
movl %r12d, %ecx
leaq 0x28(%rsp), %r8
callq 0x1752d
movl (%r15), %edx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x175e0
movss %xmm0, 0x74(%rsp)
movl (%r15), %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x175e0
movss %xmm0, 0x70(%rsp)
movl (%r15), %ecx
subq $0x8, %rsp
movq %rbp, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %ebx, %r8d
leaq 0x8c(%rsp), %r9
leaq 0x88(%rsp), %rax
pushq %rax
callq 0x1651d
popq %rcx
popq %rdx
movl %eax, 0x6c(%rsp)
movl (%r15), %ecx
subq $0x8, %rsp
movq %rbp, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %r8d
leaq 0x84(%rsp), %r9
leaq 0x80(%rsp), %rax
pushq %rax
callq 0x1651d
popq %rcx
popq %rdx
movl %eax, 0x68(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x17619
movl %eax, 0x18(%rsp)
testl %eax, %eax
je 0x16a24
cvtss2sd 0x50(%rsp), %xmm0
movq (%rsp), %r12
movq %r12, %rdi
leaq 0x34f7(%rip), %rbx      # 0x19f0f
movq %rbx, %rsi
movb $0x1, %al
callq 0x2160
jmp 0x16a44
leaq 0x34f3(%rip), %rdi      # 0x19f1e
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
movq (%rsp), %r12
movq %r12, %rcx
callq 0x2250
leaq 0x34cb(%rip), %rbx      # 0x19f0f
cvtss2sd 0x54(%rsp), %xmm0
movq %r12, %rdi
movq %rbx, %rsi
movb $0x1, %al
callq 0x2160
leaq 0xd8(%rsp), %rdi
callq 0x17619
movq %rbx, %rcx
movl %eax, %ebx
testl %eax, %eax
je 0x16a86
cvtss2sd 0xe8(%rsp), %xmm0
movq (%rsp), %rdi
movq %rcx, %rsi
movb $0x1, %al
callq 0x2160
jmp 0x16a9c
leaq 0x3491(%rip), %rdi      # 0x19f1e
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
movq (%rsp), %rcx
callq 0x2250
movl 0x18(%rsp), %eax
testl %ebx, %ebx
sete %bl
testl %eax, %eax
sete %r12b
cvtss2sd 0xec(%rsp), %xmm0
movq (%rsp), %rdi
leaq 0x3450(%rip), %rsi      # 0x19f0f
movb $0x1, %al
callq 0x2160
orb %bl, %r12b
jne 0x16af5
movss 0x50(%rsp), %xmm0
subss 0xe8(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movq (%rsp), %rbx
movq %rbx, %rdi
leaq 0x342a(%rip), %rsi      # 0x19f16
movb $0x1, %al
callq 0x2160
jmp 0x16b0e
leaq 0x3421(%rip), %rdi      # 0x19f1d
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
movq (%rsp), %rbx
movq %rbx, %rcx
callq 0x2250
movss 0x54(%rsp), %xmm0
subss 0xec(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0x33fb(%rip), %rsi      # 0x19f26
movb $0x1, %al
callq 0x2160
leaq 0x28(%rsp), %rdi
callq 0x17619
movl %eax, %r12d
testl %eax, %eax
je 0x16b5c
cvtss2sd 0x38(%rsp), %xmm0
movq %rbx, %rdi
leaq 0x33bc(%rip), %rsi      # 0x19f0f
movb $0x1, %al
callq 0x2160
jmp 0x16b71
leaq 0x33bb(%rip), %rdi      # 0x19f1e
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x2250
leaq 0x3397(%rip), %rsi      # 0x19f0f
cvtss2sd 0x3c(%rsp), %xmm0
movq %rbx, %rdi
movb $0x1, %al
callq 0x2160
leaq 0xc0(%rsp), %rdi
callq 0x17619
movl %eax, %ebx
testl %eax, %eax
je 0x16bb8
cvtss2sd 0xd0(%rsp), %xmm0
movq (%rsp), %rdi
leaq 0x3360(%rip), %rsi      # 0x19f0f
movb $0x1, %al
callq 0x2160
jmp 0x16bce
leaq 0x335f(%rip), %rdi      # 0x19f1e
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
movq (%rsp), %rcx
callq 0x2250
testl %ebx, %ebx
sete %bl
testl %r12d, %r12d
sete %r12b
cvtss2sd 0xd4(%rsp), %xmm0
movq (%rsp), %rdi
leaq 0x3321(%rip), %rsi      # 0x19f0f
movb $0x1, %al
callq 0x2160
orb %bl, %r12b
jne 0x16c24
movss 0x38(%rsp), %xmm0
subss 0xd0(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movq (%rsp), %rbx
movq %rbx, %rdi
leaq 0x32fb(%rip), %rsi      # 0x19f16
movb $0x1, %al
callq 0x2160
jmp 0x16c3d
leaq 0x32f2(%rip), %rdi      # 0x19f1d
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
movq (%rsp), %rbx
movq %rbx, %rcx
callq 0x2250
cvtsi2ssl 0x58(%rsp), %xmm0
movss 0x10(%rsp), %xmm1
divss %xmm0, %xmm1
movss %xmm1, 0x10(%rsp)
movss 0xc(%rsp), %xmm1
divss %xmm0, %xmm1
movss %xmm1, 0xc(%rsp)
movss 0x3c(%rsp), %xmm0
subss 0xd4(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0x32a6(%rip), %rsi      # 0x19f26
movb $0x1, %al
callq 0x2160
cvtss2sd 0xbc(%rsp), %xmm0
cvtss2sd 0xb8(%rsp), %xmm1
cvtss2sd 0xb4(%rsp), %xmm2
cvtss2sd 0xb0(%rsp), %xmm3
movq %rbx, %rdi
leaq 0x327a(%rip), %rsi      # 0x19f2f
movb $0x4, %al
callq 0x2160
movl 0x40(%rsp), %edx
movl 0x44(%rsp), %ecx
movl 0x48(%rsp), %r8d
movl 0x4c(%rsp), %r9d
movl 0xd8(%rsp), %eax
movq %rax, 0x58(%rsp)
movl 0xdc(%rsp), %eax
movq %rax, 0x18(%rsp)
movl 0xe0(%rsp), %eax
movq %rax, 0x138(%rsp)
movl 0xe4(%rsp), %eax
movq %rax, 0x130(%rsp)
movl 0x28(%rsp), %eax
movq %rax, 0x128(%rsp)
movl 0x2c(%rsp), %eax
movq %rax, 0x120(%rsp)
movl 0x30(%rsp), %eax
movq %rax, 0x118(%rsp)
movl 0x34(%rsp), %eax
movq %rax, 0x110(%rsp)
movl 0xc0(%rsp), %eax
movq %rax, 0x108(%rsp)
movl 0xc4(%rsp), %eax
movq %rax, 0x100(%rsp)
movq %rbx, %rdi
movl 0xc8(%rsp), %ebx
cvtss2sd 0x50(%r15), %xmm0
cvtss2sd 0x64(%rsp), %xmm1
cvtss2sd 0x10(%rsp), %xmm2
cvtss2sd 0xc(%rsp), %xmm3
movl 0xcc(%rsp), %r12d
movsbl 0x40(%r15), %r10d
movl (%r15), %r11d
subq $0x8, %rsp
leaq 0x31bd(%rip), %rsi      # 0x19f4c
movb $0x4, %al
pushq %r11
pushq %r10
pushq 0x48(%r15)
pushq %r12
pushq %rbx
movq %rdi, %rbx
pushq 0x130(%rsp)
pushq 0x140(%rsp)
pushq 0x150(%rsp)
pushq 0x160(%rsp)
pushq 0x170(%rsp)
pushq 0x180(%rsp)
pushq 0x190(%rsp)
pushq 0x1a0(%rsp)
pushq 0x88(%rsp)
pushq 0xd0(%rsp)
callq 0x2160
addq $0x80, %rsp
cmpl $0x0, 0x14(%rsp)
je 0x16e56
movl 0xa4(%rsp), %edx
movl 0xa0(%rsp), %ecx
movl 0x9c(%rsp), %r8d
movl 0x98(%rsp), %r9d
movq %rbx, %rdi
leaq 0x3195(%rip), %rsi      # 0x19fb5
xorl %eax, %eax
callq 0x2160
movl 0x94(%rsp), %edx
movl 0x90(%rsp), %ecx
movl 0x8c(%rsp), %r8d
movl 0x88(%rsp), %r9d
movq %rbx, %rdi
leaq 0x318f(%rip), %rsi      # 0x19fde
xorl %eax, %eax
callq 0x2160
movslq (%r15), %rdx
leaq 0x150(%rsp), %rdi
pushq $0x43
popq %rbx
movl %ebx, %esi
callq 0x20f0
movslq (%r15), %rdx
leaq 0x4f70(%rsp), %rdi
movl %ebx, %esi
callq 0x20f0
movslq (%r15), %rdx
leaq 0x9d90(%rsp), %rdi
movl %ebx, %esi
callq 0x20f0
xorl %eax, %eax
movslq (%r15), %rcx
cmpq %rcx, %rax
jge 0x16ecc
cmpb $0x48, (%rbp,%rax)
jne 0x16ea8
movb $0x48, 0x150(%rsp,%rax)
cmpb $0x48, (%r13,%rax)
jne 0x16eb8
movb $0x48, 0x4f70(%rsp,%rax)
cmpb $0x48, (%r14,%rax)
jne 0x16ec7
movb $0x48, 0x9d90(%rsp,%rax)
incq %rax
jmp 0x16e91
leaq 0x150(%rsp), %r12
movq %r12, %rdi
leaq 0x9d90(%rsp), %rsi
leaq 0x4f70(%rsp), %rbx
movq %rbx, %rdx
callq 0x176f8
movl (%r15), %edx
movq %r12, %rdi
movq %rbx, %rsi
pushq $0x48
popq %rcx
leaq 0x40(%rsp), %r8
callq 0x1752d
movl 0x40(%rsp), %edx
movl 0x44(%rsp), %ecx
movl 0x48(%rsp), %r8d
movl 0x4c(%rsp), %r9d
movq (%rsp), %rdi
leaq 0x30e5(%rip), %rsi      # 0x1a007
xorl %eax, %eax
callq 0x2160
movslq (%r15), %rdx
movq %r12, %rdi
pushq $0x43
popq %r12
movl %r12d, %esi
callq 0x20f0
movslq (%r15), %rdx
movq %rbx, %rdi
movl %r12d, %esi
callq 0x20f0
movslq (%r15), %rdx
leaq 0x9d90(%rsp), %rdi
movl %r12d, %esi
callq 0x20f0
xorl %eax, %eax
pushq $0x49
popq %rbx
movslq (%r15), %rcx
cmpq %rcx, %rax
jge 0x16f9c
cmpb $0x45, (%rbp,%rax)
jne 0x16f78
movb $0x45, 0x150(%rsp,%rax)
cmpb $0x45, (%r13,%rax)
jne 0x16f88
movb $0x45, 0x4f70(%rsp,%rax)
cmpb $0x45, (%r14,%rax)
jne 0x16f97
movb $0x45, 0x9d90(%rsp,%rax)
incq %rax
jmp 0x16f61
leaq 0x150(%rsp), %rdi
leaq 0x9d90(%rsp), %rsi
leaq 0x4f70(%rsp), %r12
movq %r12, %rdx
callq 0x176f8
movl (%r15), %edx
leaq 0x150(%rsp), %rdi
movq %r12, %rsi
pushq $0x45
popq %rcx
leaq 0x28(%rsp), %r8
callq 0x1752d
movl 0x28(%rsp), %edx
movl 0x2c(%rsp), %ecx
movl 0x30(%rsp), %r8d
movl 0x34(%rsp), %r9d
movq (%rsp), %r12
movq %r12, %rdi
leaq 0x3039(%rip), %rsi      # 0x1a030
xorl %eax, %eax
callq 0x2160
movl 0x84(%rsp), %ecx
movl 0x80(%rsp), %r8d
movq %r12, %rdi
leaq 0x3042(%rip), %rsi      # 0x1a059
movl 0x6c(%rsp), %edx
xorl %eax, %eax
callq 0x2160
movl 0x7c(%rsp), %ecx
movl 0x78(%rsp), %r8d
movq %r12, %rdi
leaq 0x3043(%rip), %rsi      # 0x1a078
movl 0x68(%rsp), %edx
xorl %eax, %eax
callq 0x2160
cvtss2sd 0x74(%rsp), %xmm0
cvtss2sd 0x70(%rsp), %xmm1
movq %r12, %rdi
leaq 0x3041(%rip), %rsi      # 0x1a097
movb $0x2, %al
callq 0x2160
pushq $0xa
popq %rdi
movq %r12, %rsi
callq 0x2110
movq %rbp, %rdi
callq 0x2040
movq %r13, %rdi
callq 0x2040
movq %r14, %rdi
callq 0x2040
movq 0xf0(%rsp), %rcx
incq %rcx
jmp 0x1667e
addq $0xebb8, %rsp           # imm = 0xEBB8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq