// File: /workspace/github_c_makefile_star2_O3/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 0x17806
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 0x177f5
movslq (%r14), %rdi
callq 0x5880
movq %rax, %r15
movslq (%r14), %rdi
callq 0x5880
movq %rax, 0x108(%rsp)
movslq (%r14), %rdi
callq 0x5880
movq %rax, %r13
movq 0xf0(%rsp), %rbp
movq %rbp, %rdi
movq %r12, 0xf8(%rsp)
movl %r12d, %esi
movq %r15, %rdx
callq 0x5118
movq %rbp, %rdi
movl %r12d, %esi
movq 0x108(%rsp), %r12
movq %r12, %rdx
callq 0x514d
movq %rbp, %rdi
movq 0xf8(%rsp), %rsi
movq %r13, %rdx
callq 0x5182
movl (%r14), %ecx
testl %ecx, %ecx
jle 0x16e46
xorl %eax, %eax
movzbl (%r15,%rax), %ecx
addl $-0x42, %ecx
cmpl $0x6, %ecx
ja 0x16deb
btl %ecx, %ebx
jb 0x16df0
movb $0x43, (%r15,%rax)
movzbl (%r12,%rax), %ecx
cmpl $0x45, %ecx
je 0x16e04
cmpl $0x48, %ecx
je 0x16e04
movb $0x43, (%r12,%rax)
movzbl (%r13,%rax), %ecx
leal -0x42(%rcx), %edx
cmpl $0x6, %edx
ja 0x16e17
btl %edx, %ebx
jb 0x16e1f
movb $0x43, (%r13,%rax)
movb $0x43, %cl
cmpb $0x42, (%r15,%rax)
jne 0x16e30
movb $0x45, (%r15,%rax)
movb (%r13,%rax), %cl
cmpb $0x42, %cl
jne 0x16e3b
movb $0x45, (%r13,%rax)
incq %rax
movslq (%r14), %rcx
cmpq %rcx, %rax
jl 0x16dd9
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl $0x45, %r8d
movl $0x43, %r9d
callq 0x17ca9
cmpl $0x0, 0x1c(%rsp)
movq 0x8(%rsp), %rbx
je 0x16f19
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 0x167b8
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 0x167b8
addq $0x30, %rsp
movl $0x8, %esi
movl $0x1, %edx
leaq 0x4039(%rip), %rdi      # 0x1af50
jmp 0x16f2a
movl $0x5, %esi
movl $0x1, %edx
leaq 0x402f(%rip), %rdi      # 0x1af59
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 0x51fd
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 0x2c2f(%rip), %xmm0     # 0x19bdc
leaq 0xc0(%rsp), %r9
leaq 0xb8(%rsp), %rax
pushq %rax
callq 0x17818
addq $0x10, %rsp
movl (%r14), %ecx
subq $0x8, %rsp
movq %r12, %rdi
movl %ecx, %esi
movq %r15, %rdx
movl $0x45, %r8d
movss 0x2bf8(%rip), %xmm0     # 0x19bdc
leaq 0xc4(%rsp), %r9
leaq 0xbc(%rsp), %rax
pushq %rax
callq 0x17818
addq $0x10, %rsp
movl (%r14), %edx
movq %r13, %rdi
movq %r12, %rsi
movl $0x48, %ecx
leaq 0xd8(%rsp), %r8
callq 0x17d2c
movl (%r14), %edx
movq %r13, %rdi
movq %r12, %rsi
movl $0x45, %ecx
leaq 0xc0(%rsp), %r8
callq 0x17d2c
movl (%r14), %edx
movq %r15, %rdi
movq %r12, %rsi
movl $0x48, %ecx
leaq 0x40(%rsp), %rbx
movq %rbx, %r8
callq 0x17d2c
movl (%r14), %edx
movq %r15, %rdi
movq %r12, %rsi
movl $0x45, %ecx
leaq 0x28(%rsp), %r8
callq 0x17d2c
movl (%r14), %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x17def
movss %xmm0, 0x74(%rsp)
movl (%r14), %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x17def
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 0x16b55
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 0x16b55
addq $0x10, %rsp
movl %eax, 0x68(%rsp)
movq %rbx, %rdi
callq 0x17e27
movl %eax, 0x58(%rsp)
testl %eax, %eax
je 0x1712b
xorps %xmm0, %xmm0
cvtss2sd 0x50(%rsp), %xmm0
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x3e40(%rip), %rbx      # 0x1af5f
movq %rbx, %rsi
movb $0x1, %al
callq 0x2160
jmp 0x17150
movl $0x7, %esi
movl $0x1, %edx
leaq 0x3e32(%rip), %rdi      # 0x1af6e
movq 0x8(%rsp), %rbp
movq %rbp, %rcx
callq 0x2240
leaq 0x3e0f(%rip), %rbx      # 0x1af5f
xorps %xmm0, %xmm0
cvtss2sd 0x54(%rsp), %xmm0
movq %rbp, %rdi
movq %rbx, %rsi
movb $0x1, %al
callq 0x2160
leaq 0xd8(%rsp), %rdi
callq 0x17e27
movq %rbx, %rcx
movl %eax, %ebx
testl %eax, %eax
je 0x17199
xorps %xmm0, %xmm0
cvtss2sd 0xe8(%rsp), %xmm0
movq 0x8(%rsp), %rdi
movq %rcx, %rsi
movb $0x1, %al
callq 0x2160
jmp 0x171b4
movl $0x7, %esi
movl $0x1, %edx
leaq 0x3dc4(%rip), %rdi      # 0x1af6e
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 0x3d85(%rip), %rsi      # 0x1af5f
movb $0x1, %al
callq 0x2160
orb %bl, %bpl
jne 0x17211
movss 0x50(%rsp), %xmm0
subss 0xe8(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x3d5e(%rip), %rsi      # 0x1af66
movb $0x1, %al
callq 0x2160
jmp 0x1722f
movl $0x8, %esi
movl $0x1, %edx
leaq 0x3d4b(%rip), %rdi      # 0x1af6d
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x2240
movss 0x54(%rsp), %xmm0
subss 0xec(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0x3d2a(%rip), %rsi      # 0x1af76
movb $0x1, %al
callq 0x2160
leaq 0x28(%rsp), %rdi
callq 0x17e27
movl %eax, %ebp
testl %eax, %eax
je 0x1727f
xorps %xmm0, %xmm0
cvtss2sd 0x38(%rsp), %xmm0
movq %rbx, %rdi
leaq 0x3ce9(%rip), %rsi      # 0x1af5f
movb $0x1, %al
callq 0x2160
jmp 0x17298
movl $0x7, %esi
movl $0x1, %edx
leaq 0x3cde(%rip), %rdi      # 0x1af6e
movq %rbx, %rcx
callq 0x2240
leaq 0x3cc0(%rip), %rsi      # 0x1af5f
xorps %xmm0, %xmm0
cvtss2sd 0x3c(%rsp), %xmm0
movq %rbx, %rdi
movb $0x1, %al
callq 0x2160
leaq 0xc0(%rsp), %rdi
callq 0x17e27
movl %eax, %ebx
testl %eax, %eax
je 0x172e6
xorps %xmm0, %xmm0
cvtss2sd 0xd0(%rsp), %xmm0
movq 0x8(%rsp), %rdi
leaq 0x3c82(%rip), %rsi      # 0x1af5f
movb $0x1, %al
callq 0x2160
jmp 0x17301
movl $0x7, %esi
movl $0x1, %edx
leaq 0x3c77(%rip), %rdi      # 0x1af6e
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 0x3c3b(%rip), %rsi      # 0x1af5f
movb $0x1, %al
callq 0x2160
orb %bl, %bpl
jne 0x1735b
movss 0x38(%rsp), %xmm0
subss 0xd0(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x3c14(%rip), %rsi      # 0x1af66
movb $0x1, %al
callq 0x2160
jmp 0x17379
movl $0x8, %esi
movl $0x1, %edx
leaq 0x3c01(%rip), %rdi      # 0x1af6d
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 0x3bb5(%rip), %rsi      # 0x1af76
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 0x3b83(%rip), %rsi      # 0x1af7f
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 0x3abb(%rip), %rsi      # 0x1af9c
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 0x175a7
movl 0xa4(%rsp), %edx
movl 0xa0(%rsp), %ecx
movl 0x9c(%rsp), %r8d
movl 0x98(%rsp), %r9d
movq %rbx, %rdi
leaq 0x3a94(%rip), %rsi      # 0x1b005
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 0x3a8e(%rip), %rsi      # 0x1b02e
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 0x17628
xorl %eax, %eax
cmpb $0x48, (%r15,%rax)
jne 0x175fe
movb $0x48, 0x160(%rsp,%rax)
cmpb $0x48, (%r12,%rax)
jne 0x1760d
movb $0x48, 0x4f80(%rsp,%rax)
cmpb $0x48, (%r13,%rax)
jne 0x1761d
movb $0x48, 0x9da0(%rsp,%rax)
incq %rax
movslq (%r14), %rcx
cmpq %rcx, %rax
jl 0x175ef
leaq 0x160(%rsp), %rbp
movq %rbp, %rdi
leaq 0x9da0(%rsp), %rsi
leaq 0x4f80(%rsp), %rbx
movq %rbx, %rdx
callq 0x17f0d
movl (%r14), %edx
movq %rbp, %rdi
movq %rbx, %rsi
movl $0x48, %ecx
leaq 0x40(%rsp), %r8
callq 0x17d2c
movl 0x40(%rsp), %edx
movl 0x44(%rsp), %ecx
movl 0x48(%rsp), %r8d
movl 0x4c(%rsp), %r9d
movq 0x8(%rsp), %rdi
leaq 0x39d6(%rip), %rsi      # 0x1b057
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 0x17704
xorl %eax, %eax
cmpb $0x45, (%r15,%rax)
jne 0x176da
movb $0x45, 0x160(%rsp,%rax)
cmpb $0x45, (%r12,%rax)
jne 0x176e9
movb $0x45, 0x4f80(%rsp,%rax)
cmpb $0x45, (%r13,%rax)
jne 0x176f9
movb $0x45, 0x9da0(%rsp,%rax)
incq %rax
movslq (%r14), %rcx
cmpq %rcx, %rax
jl 0x176cb
leaq 0x160(%rsp), %rdi
leaq 0x9da0(%rsp), %rsi
leaq 0x4f80(%rsp), %rbp
movq %rbp, %rdx
callq 0x17f0d
movl (%r14), %edx
leaq 0x160(%rsp), %rdi
movq %rbp, %rsi
movl $0x45, %ecx
leaq 0x28(%rsp), %r8
callq 0x17d2c
movl 0x28(%rsp), %edx
movl 0x2c(%rsp), %ecx
movl 0x30(%rsp), %r8d
movl 0x34(%rsp), %r9d
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x391e(%rip), %rsi      # 0x1b080
xorl %eax, %eax
callq 0x2160
movl 0x84(%rsp), %ecx
movl 0x80(%rsp), %r8d
movq %rbp, %rdi
leaq 0x3927(%rip), %rsi      # 0x1b0a9
movl 0x6c(%rsp), %edx
xorl %eax, %eax
callq 0x2160
movl 0x7c(%rsp), %ecx
movl 0x78(%rsp), %r8d
movq %rbp, %rdi
leaq 0x3928(%rip), %rsi      # 0x1b0c8
movl 0x68(%rsp), %edx
xorl %eax, %eax
callq 0x2160
cvtss2sd 0x74(%rsp), %xmm0
cvtss2sd 0x70(%rsp), %xmm1
movq %rbp, %rdi
leaq 0x3926(%rip), %rsi      # 0x1b0e7
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 0x16d4c
addq $0xebc8, %rsp           # imm = 0xEBC8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq