// File: /workspace/github_c_makefile_star2_O1/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 $0xebc8, %rsp           # imm = 0xEBC8
movl %edx, 0x1c(%rsp)
movq %rdi, 0xf0(%rsp)
testl %esi, %esi
jle 0x17958
movl %esi, %eax
movq %rax, 0x100(%rsp)
movl $0x49, %ebx
xorl %r12d, %r12d
movq %r8, 0x8(%rsp)
movq 0xf0(%rsp), %rax
movq (%rax,%r12,8), %r14
cmpl $0x0, 0x58(%r14)
je 0x17947
movslq (%r14), %rdi
callq 0x595c
movq %rax, %r15
movslq (%r14), %rdi
callq 0x595c
movq %rax, 0x108(%rsp)
movslq (%r14), %rdi
callq 0x595c
movq %rax, %r13
movq 0xf0(%rsp), %rbp
movq %rbp, %rdi
movq %r12, 0xf8(%rsp)
movl %r12d, %esi
movq %r15, %rdx
callq 0x51f0
movq %rbp, %rdi
movl %r12d, %esi
movq 0x108(%rsp), %r12
movq %r12, %rdx
callq 0x5225
movq %rbp, %rdi
movq 0xf8(%rsp), %rsi
movq %r13, %rdx
callq 0x525a
movl (%r14), %ecx
testl %ecx, %ecx
jle 0x16f92
xorl %eax, %eax
movzbl (%r15,%rax), %ecx
addl $-0x42, %ecx
cmpl $0x6, %ecx
ja 0x16f3b
btl %ecx, %ebx
jb 0x16f40
movb $0x43, (%r15,%rax)
movzbl (%r12,%rax), %ecx
cmpl $0x45, %ecx
je 0x16f54
cmpl $0x48, %ecx
je 0x16f54
movb $0x43, (%r12,%rax)
movzbl (%r13,%rax), %ecx
addl $-0x42, %ecx
cmpl $0x6, %ecx
ja 0x16f67
btl %ecx, %ebx
jb 0x16f6d
movb $0x43, (%r13,%rax)
cmpb $0x42, (%r15,%rax)
jne 0x16f79
movb $0x45, (%r15,%rax)
cmpb $0x42, (%r13,%rax)
jne 0x16f87
movb $0x45, (%r13,%rax)
incq %rax
movslq (%r14), %rcx
cmpq %rcx, %rax
jl 0x16f29
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl $0x45, %r8d
movl $0x43, %r9d
callq 0x17df9
cmpl $0x0, 0x1c(%rsp)
movq 0x8(%rsp), %rbx
je 0x17065
movl (%r14), %ecx
subq $0x8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movl $0x48, %r8d
movl $0x4, %r9d
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 0x16990
addq $0x30, %rsp
movl (%r14), %ecx
subq $0x8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movl $0x45, %r8d
movl $0x1, %r9d
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 0x16990
addq $0x30, %rsp
movl $0x8, %esi
movl $0x1, %edx
leaq 0x3ee5(%rip), %rdi      # 0x1af48
jmp 0x17076
movl $0x5, %esi
movl $0x1, %edx
leaq 0x3edb(%rip), %rdi      # 0x1af51
movq %rbx, %rcx
callq 0x2240
movq %r14, %rdi
leaq 0xac(%rsp), %rsi
leaq 0x15c(%rsp), %rdx
leaq 0x158(%rsp), %rcx
leaq 0xa8(%rsp), %r8
leaq 0x154(%rsp), %r9
callq 0x52d5
movss %xmm0, 0x64(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssl 0xac(%rsp), %xmm0
movss %xmm0, 0x18(%rsp)
movl (%r14), %ecx
xorps %xmm0, %xmm0
cvtsi2ssl 0xa8(%rsp), %xmm0
movss %xmm0, 0x14(%rsp)
subq $0x8, %rsp
movq %r12, %rdi
movl %ecx, %esi
movq %r13, %rdx
movl %ecx, 0x28(%rsp)
movl $0x45, %r8d
movss 0x2ad3(%rip), %xmm0     # 0x19bcc
leaq 0xc0(%rsp), %r9
leaq 0xb8(%rsp), %rax
pushq %rax
callq 0x1796a
addq $0x10, %rsp
movl (%r14), %ecx
subq $0x8, %rsp
movq %r12, %rdi
movl %ecx, %esi
movq %r15, %rdx
movl $0x45, %r8d
movss 0x2a9c(%rip), %xmm0     # 0x19bcc
leaq 0xc4(%rsp), %r9
leaq 0xbc(%rsp), %rax
pushq %rax
callq 0x1796a
addq $0x10, %rsp
movl (%r14), %edx
movq %r13, %rdi
movq %r12, %rsi
movl $0x48, %ecx
leaq 0xd8(%rsp), %r8
callq 0x17e85
movl (%r14), %edx
movq %r13, %rdi
movq %r12, %rsi
movl $0x45, %ecx
leaq 0xc0(%rsp), %r8
callq 0x17e85
movl (%r14), %edx
movq %r15, %rdi
movq %r12, %rsi
movl $0x48, %ecx
leaq 0x40(%rsp), %rbx
movq %rbx, %r8
callq 0x17e85
movl (%r14), %edx
movq %r15, %rdi
movq %r12, %rsi
movl $0x45, %ecx
leaq 0x28(%rsp), %r8
callq 0x17e85
movl (%r14), %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x17f48
movss %xmm0, 0x74(%rsp)
movl (%r14), %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x17f48
movss %xmm0, 0x70(%rsp)
movl (%r14), %ecx
subq $0x8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movl $0x48, %r8d
leaq 0x8c(%rsp), %r9
leaq 0x88(%rsp), %rax
pushq %rax
callq 0x16cda
addq $0x10, %rsp
movl %eax, 0x6c(%rsp)
movl (%r14), %ecx
subq $0x8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movl $0x45, %r8d
leaq 0x84(%rsp), %r9
leaq 0x80(%rsp), %rax
pushq %rax
callq 0x16cda
addq $0x10, %rsp
movl %eax, 0x68(%rsp)
movq %rbx, %rdi
callq 0x17f80
movl %eax, 0x58(%rsp)
testl %eax, %eax
je 0x17277
xorps %xmm0, %xmm0
cvtss2sd 0x50(%rsp), %xmm0
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x3cec(%rip), %rbx      # 0x1af57
movq %rbx, %rsi
movb $0x1, %al
callq 0x2160
jmp 0x1729c
movl $0x7, %esi
movl $0x1, %edx
leaq 0x3cde(%rip), %rdi      # 0x1af66
movq 0x8(%rsp), %rbp
movq %rbp, %rcx
callq 0x2240
leaq 0x3cbb(%rip), %rbx      # 0x1af57
xorps %xmm0, %xmm0
cvtss2sd 0x54(%rsp), %xmm0
movq %rbp, %rdi
movq %rbx, %rsi
movb $0x1, %al
callq 0x2160
leaq 0xd8(%rsp), %rdi
callq 0x17f80
movq %rbx, %rcx
movl %eax, %ebx
testl %eax, %eax
je 0x172e5
xorps %xmm0, %xmm0
cvtss2sd 0xe8(%rsp), %xmm0
movq 0x8(%rsp), %rdi
movq %rcx, %rsi
movb $0x1, %al
callq 0x2160
jmp 0x17300
movl $0x7, %esi
movl $0x1, %edx
leaq 0x3c70(%rip), %rdi      # 0x1af66
movq 0x8(%rsp), %rcx
callq 0x2240
testl %ebx, %ebx
sete %bl
cmpl $0x0, 0x58(%rsp)
sete %bpl
xorps %xmm0, %xmm0
cvtss2sd 0xec(%rsp), %xmm0
movq 0x8(%rsp), %rdi
leaq 0x3c31(%rip), %rsi      # 0x1af57
movb $0x1, %al
callq 0x2160
orb %bl, %bpl
jne 0x1735d
movss 0x50(%rsp), %xmm0
subss 0xe8(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x3c0a(%rip), %rsi      # 0x1af5e
movb $0x1, %al
callq 0x2160
jmp 0x1737b
movl $0x8, %esi
movl $0x1, %edx
leaq 0x3bf7(%rip), %rdi      # 0x1af65
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x2240
movss 0x54(%rsp), %xmm0
subss 0xec(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0x3bd6(%rip), %rsi      # 0x1af6e
movb $0x1, %al
callq 0x2160
leaq 0x28(%rsp), %rdi
callq 0x17f80
movl %eax, %ebp
testl %eax, %eax
je 0x173cb
xorps %xmm0, %xmm0
cvtss2sd 0x38(%rsp), %xmm0
movq %rbx, %rdi
leaq 0x3b95(%rip), %rsi      # 0x1af57
movb $0x1, %al
callq 0x2160
jmp 0x173e4
movl $0x7, %esi
movl $0x1, %edx
leaq 0x3b8a(%rip), %rdi      # 0x1af66
movq %rbx, %rcx
callq 0x2240
leaq 0x3b6c(%rip), %rsi      # 0x1af57
xorps %xmm0, %xmm0
cvtss2sd 0x3c(%rsp), %xmm0
movq %rbx, %rdi
movb $0x1, %al
callq 0x2160
leaq 0xc0(%rsp), %rdi
callq 0x17f80
movl %eax, %ebx
testl %eax, %eax
je 0x17432
xorps %xmm0, %xmm0
cvtss2sd 0xd0(%rsp), %xmm0
movq 0x8(%rsp), %rdi
leaq 0x3b2e(%rip), %rsi      # 0x1af57
movb $0x1, %al
callq 0x2160
jmp 0x1744d
movl $0x7, %esi
movl $0x1, %edx
leaq 0x3b23(%rip), %rdi      # 0x1af66
movq 0x8(%rsp), %rcx
callq 0x2240
testl %ebx, %ebx
sete %bl
testl %ebp, %ebp
sete %bpl
xorps %xmm0, %xmm0
cvtss2sd 0xd4(%rsp), %xmm0
movq 0x8(%rsp), %rdi
leaq 0x3ae7(%rip), %rsi      # 0x1af57
movb $0x1, %al
callq 0x2160
orb %bl, %bpl
jne 0x174a7
movss 0x38(%rsp), %xmm0
subss 0xd0(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x3ac0(%rip), %rsi      # 0x1af5e
movb $0x1, %al
callq 0x2160
jmp 0x174c5
movl $0x8, %esi
movl $0x1, %edx
leaq 0x3aad(%rip), %rdi      # 0x1af65
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x2240
movl 0x20(%rsp), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movss 0x18(%rsp), %xmm1
divss %xmm0, %xmm1
movss %xmm1, 0x18(%rsp)
movss 0x14(%rsp), %xmm1
divss %xmm0, %xmm1
movss %xmm1, 0x14(%rsp)
movss 0x3c(%rsp), %xmm0
subss 0xd4(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0x3a61(%rip), %rsi      # 0x1af6e
movb $0x1, %al
callq 0x2160
xorps %xmm0, %xmm0
cvtss2sd 0xbc(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtss2sd 0xb8(%rsp), %xmm1
cvtss2sd 0xb4(%rsp), %xmm2
cvtss2sd 0xb0(%rsp), %xmm3
movq %rbx, %rdi
leaq 0x3a2f(%rip), %rsi      # 0x1af77
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, 0x20(%rsp)
movl 0xdc(%rsp), %eax
movq %rax, 0x58(%rsp)
movl 0xe0(%rsp), %eax
movq %rax, 0x148(%rsp)
movl 0xe4(%rsp), %eax
movq %rax, 0x140(%rsp)
movl 0x28(%rsp), %eax
movq %rax, 0x138(%rsp)
movl 0x2c(%rsp), %eax
movq %rax, 0x130(%rsp)
movl 0x30(%rsp), %eax
movq %rax, 0x128(%rsp)
movl 0x34(%rsp), %eax
movq %rax, 0x120(%rsp)
movl 0xc0(%rsp), %eax
movq %rax, 0x118(%rsp)
movl 0xc4(%rsp), %eax
movq %rax, 0x110(%rsp)
movq %rbx, %rdi
movl 0xc8(%rsp), %ebx
xorps %xmm0, %xmm0
cvtss2sd 0x50(%r14), %xmm0
xorps %xmm1, %xmm1
cvtss2sd 0x64(%rsp), %xmm1
xorps %xmm2, %xmm2
cvtss2sd 0x18(%rsp), %xmm2
xorps %xmm3, %xmm3
cvtss2sd 0x14(%rsp), %xmm3
movl 0xcc(%rsp), %ebp
movsbl 0x40(%r14), %r10d
movl (%r14), %r11d
subq $0x8, %rsp
leaq 0x3967(%rip), %rsi      # 0x1af94
movb $0x4, %al
pushq %r11
pushq %r10
pushq 0x48(%r14)
pushq %rbp
pushq %rbx
movq %rdi, %rbx
pushq 0x140(%rsp)
pushq 0x150(%rsp)
pushq 0x160(%rsp)
pushq 0x170(%rsp)
pushq 0x180(%rsp)
pushq 0x190(%rsp)
pushq 0x1a0(%rsp)
pushq 0x1b0(%rsp)
pushq 0xc8(%rsp)
pushq 0x98(%rsp)
callq 0x2160
addq $0x80, %rsp
cmpl $0x0, 0x1c(%rsp)
je 0x176f3
movl 0xa4(%rsp), %edx
movl 0xa0(%rsp), %ecx
movl 0x9c(%rsp), %r8d
movl 0x98(%rsp), %r9d
movq %rbx, %rdi
leaq 0x3940(%rip), %rsi      # 0x1affd
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 0x393a(%rip), %rsi      # 0x1b026
xorl %eax, %eax
callq 0x2160
movslq (%r14), %rdx
leaq 0x160(%rsp), %rdi
movl $0x43, %esi
callq 0x20f0
movslq (%r14), %rdx
leaq 0x4f80(%rsp), %rdi
movl $0x43, %esi
callq 0x20f0
movslq (%r14), %rdx
leaq 0x9da0(%rsp), %rdi
movl $0x43, %esi
callq 0x20f0
movl (%r14), %ecx
testl %ecx, %ecx
jle 0x17777
xorl %eax, %eax
movb (%r15,%rax), %cl
cmpb $0x48, %cl
jne 0x1774b
movb %cl, 0x160(%rsp,%rax)
movb (%r12,%rax), %cl
cmpb $0x48, %cl
jne 0x1775b
movb %cl, 0x4f80(%rsp,%rax)
movb (%r13,%rax), %cl
cmpb $0x48, %cl
jne 0x1776c
movb %cl, 0x9da0(%rsp,%rax)
incq %rax
movslq (%r14), %rcx
cmpq %rcx, %rax
jl 0x1773b
leaq 0x160(%rsp), %rbp
movq %rbp, %rdi
leaq 0x9da0(%rsp), %rsi
leaq 0x4f80(%rsp), %rbx
movq %rbx, %rdx
callq 0x18076
movl (%r14), %edx
movq %rbp, %rdi
movq %rbx, %rsi
movl $0x48, %ecx
leaq 0x40(%rsp), %r8
callq 0x17e85
movl 0x40(%rsp), %edx
movl 0x44(%rsp), %ecx
movl 0x48(%rsp), %r8d
movl 0x4c(%rsp), %r9d
movq 0x8(%rsp), %rdi
leaq 0x387f(%rip), %rsi      # 0x1b04f
xorl %eax, %eax
callq 0x2160
movslq (%r14), %rdx
movq %rbp, %rdi
movl $0x43, %esi
callq 0x20f0
movslq (%r14), %rdx
movq %rbx, %rdi
movl $0x43, %esi
callq 0x20f0
movslq (%r14), %rdx
leaq 0x9da0(%rsp), %rdi
movl $0x43, %esi
callq 0x20f0
movl (%r14), %ecx
testl %ecx, %ecx
movl $0x49, %ebx
jle 0x17856
xorl %eax, %eax
movb (%r15,%rax), %cl
cmpb $0x45, %cl
jne 0x1782a
movb %cl, 0x160(%rsp,%rax)
movb (%r12,%rax), %cl
cmpb $0x45, %cl
jne 0x1783a
movb %cl, 0x4f80(%rsp,%rax)
movb (%r13,%rax), %cl
cmpb $0x45, %cl
jne 0x1784b
movb %cl, 0x9da0(%rsp,%rax)
incq %rax
movslq (%r14), %rcx
cmpq %rcx, %rax
jl 0x1781a
leaq 0x160(%rsp), %rdi
leaq 0x9da0(%rsp), %rsi
leaq 0x4f80(%rsp), %rbp
movq %rbp, %rdx
callq 0x18076
movl (%r14), %edx
leaq 0x160(%rsp), %rdi
movq %rbp, %rsi
movl $0x45, %ecx
leaq 0x28(%rsp), %r8
callq 0x17e85
movl 0x28(%rsp), %edx
movl 0x2c(%rsp), %ecx
movl 0x30(%rsp), %r8d
movl 0x34(%rsp), %r9d
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x37c4(%rip), %rsi      # 0x1b078
xorl %eax, %eax
callq 0x2160
movl 0x84(%rsp), %ecx
movl 0x80(%rsp), %r8d
movq %rbp, %rdi
leaq 0x37cd(%rip), %rsi      # 0x1b0a1
movl 0x6c(%rsp), %edx
xorl %eax, %eax
callq 0x2160
movl 0x7c(%rsp), %ecx
movl 0x78(%rsp), %r8d
movq %rbp, %rdi
leaq 0x37ce(%rip), %rsi      # 0x1b0c0
movl 0x68(%rsp), %edx
xorl %eax, %eax
callq 0x2160
cvtss2sd 0x74(%rsp), %xmm0
cvtss2sd 0x70(%rsp), %xmm1
movq %rbp, %rdi
leaq 0x37cc(%rip), %rsi      # 0x1b0df
movb $0x2, %al
callq 0x2160
movl $0xa, %edi
movq %rbp, %rsi
callq 0x2110
movq %r15, %rdi
callq 0x2040
movq %r12, %rdi
callq 0x2040
movq %r13, %rdi
callq 0x2040
movq 0xf8(%rsp), %r12
incq %r12
cmpq 0x100(%rsp), %r12
jne 0x16e9c
addq $0xebc8, %rsp           # imm = 0xEBC8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq