// File: /workspace/github_c_makefile_star2_O0/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 $0xec18, %rsp           # imm = 0xEC18
movq %rdi, 0xec10(%rsp)
movl %esi, 0xec0c(%rsp)
movl %edx, 0xec08(%rsp)
movq %rcx, 0xec00(%rsp)
movq %r8, 0xebf8(%rsp)
movl $0x0, 0xeb90(%rsp)
movl 0xeb90(%rsp), %eax
cmpl 0xec0c(%rsp), %eax
jge 0x288ab
movq 0xec10(%rsp), %rax
movslq 0xeb90(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
cmpl $0x0, 0x58(%rax)
jne 0x278b5
jmp 0x28895
movq 0x90(%rsp), %rax
movslq (%rax), %rdi
shlq $0x0, %rdi
callq 0x7360
movq %rax, 0xa8(%rsp)
movq 0x90(%rsp), %rax
movslq (%rax), %rdi
shlq $0x0, %rdi
callq 0x7360
movq %rax, 0xa0(%rsp)
movq 0x90(%rsp), %rax
movslq (%rax), %rdi
shlq $0x0, %rdi
callq 0x7360
movq %rax, 0x98(%rsp)
movq 0xec10(%rsp), %rdi
movl 0xeb90(%rsp), %esi
movq 0xa8(%rsp), %rdx
callq 0x6610
movq 0xec10(%rsp), %rdi
movl 0xeb90(%rsp), %esi
movq 0xa0(%rsp), %rdx
callq 0x6680
movq 0xec10(%rsp), %rdi
movl 0xeb90(%rsp), %esi
movq 0x98(%rsp), %rdx
callq 0x66f0
movl $0x0, 0xeb94(%rsp)
movl 0xeb94(%rsp), %eax
movq 0x90(%rsp), %rcx
cmpl (%rcx), %eax
jge 0x27af5
movq 0xa8(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x48, %eax
je 0x279de
movq 0xa8(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x45, %eax
je 0x279de
movq 0xa8(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x42, %eax
je 0x279de
movq 0xa8(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movb $0x43, (%rax,%rcx)
movq 0xa0(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x48, %eax
je 0x27a24
movq 0xa0(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x45, %eax
je 0x27a24
movq 0xa0(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movb $0x43, (%rax,%rcx)
movq 0x98(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x48, %eax
je 0x27a83
movq 0x98(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x45, %eax
je 0x27a83
movq 0x98(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x42, %eax
je 0x27a83
movq 0x98(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movb $0x43, (%rax,%rcx)
movq 0xa8(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x42, %eax
jne 0x27ab0
movq 0xa8(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movb $0x45, (%rax,%rcx)
movq 0x98(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x42, %eax
jne 0x27add
movq 0x98(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movb $0x45, (%rax,%rcx)
jmp 0x27adf
movl 0xeb94(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xeb94(%rsp)
jmp 0x27968
movq 0xa8(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
movq 0x90(%rsp), %rax
movl (%rax), %ecx
movl $0x45, %r8d
movl $0x43, %r9d
callq 0x292c0
cmpl $0x0, 0xec08(%rsp)
je 0x27c2a
movq 0xa8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rax
movl (%rax), %ecx
movl $0x48, %r8d
movl $0x4, %r9d
leaq 0xeb4c(%rsp), %rbx
leaq 0xeb48(%rsp), %r11
leaq 0xeb44(%rsp), %r10
leaq 0xeb40(%rsp), %rax
movl $0x7a, (%rsp)
movq %rbx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x270a0
movq 0xa8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rax
movl (%rax), %ecx
movl $0x45, %r8d
movl $0x1, %r9d
leaq 0xeb3c(%rsp), %rbx
leaq 0xeb38(%rsp), %r11
leaq 0xeb34(%rsp), %r10
leaq 0xeb30(%rsp), %rax
movl $0x79, (%rsp)
movq %rbx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x270a0
movq 0xebf8(%rsp), %rdi
leaq 0x513b(%rip), %rsi      # 0x2cd5c
movb $0x0, %al
callq 0x2140
jmp 0x27c40
movq 0xebf8(%rsp), %rdi
leaq 0x512c(%rip), %rsi      # 0x2cd65
movb $0x0, %al
callq 0x2140
movq 0x90(%rsp), %rdi
leaq 0xeb60(%rsp), %rsi
leaq 0xeb5c(%rsp), %rdx
leaq 0xeb58(%rsp), %rcx
leaq 0xeb54(%rsp), %r8
leaq 0xeb50(%rsp), %r9
callq 0x6800
movss %xmm0, 0xeb74(%rsp)
cvtsi2ssl 0xeb60(%rsp), %xmm0
movq 0x90(%rsp), %rax
cvtsi2ssl (%rax), %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0xeb70(%rsp)
cvtsi2ssl 0xeb54(%rsp), %xmm0
movq 0x90(%rsp), %rax
cvtsi2ssl (%rax), %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0xeb6c(%rsp)
movq 0xa0(%rsp), %rdi
movq 0x90(%rsp), %rax
movl (%rax), %esi
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rax
movl (%rax), %ecx
movl $0x45, %r8d
movss 0x5064(%rip), %xmm0     # 0x2cd58
leaq 0xeb80(%rsp), %r9
leaq 0xeb78(%rsp), %rax
movq %rax, (%rsp)
callq 0x288c0
movq 0xa0(%rsp), %rdi
movq 0x90(%rsp), %rax
movl (%rax), %esi
movq 0xa8(%rsp), %rdx
movq 0x90(%rsp), %rax
movl (%rax), %ecx
movl $0x45, %r8d
movss 0x5019(%rip), %xmm0     # 0x2cd58
leaq 0xeb84(%rsp), %r9
leaq 0xeb7c(%rsp), %rax
movq %rax, (%rsp)
callq 0x288c0
movq 0x98(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x90(%rsp), %rax
movl (%rax), %edx
movl $0x48, %ecx
leaq 0xebe0(%rsp), %r8
callq 0x294c0
movq 0x98(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x90(%rsp), %rax
movl (%rax), %edx
movl $0x45, %ecx
leaq 0xebc8(%rsp), %r8
callq 0x294c0
movq 0xa8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x90(%rsp), %rax
movl (%rax), %edx
movl $0x48, %ecx
leaq 0xebb0(%rsp), %r8
callq 0x294c0
movq 0xa8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x90(%rsp), %rax
movl (%rax), %edx
movl $0x45, %ecx
leaq 0xeb98(%rsp), %r8
callq 0x294c0
movq 0xa8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x90(%rsp), %rax
movl (%rax), %edx
callq 0x296f0
movss %xmm0, 0xeb68(%rsp)
movq 0x98(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x90(%rsp), %rax
movl (%rax), %edx
callq 0x296f0
movss %xmm0, 0xeb64(%rsp)
movq 0xa8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rax
movl (%rax), %ecx
movl $0x48, %r8d
leaq 0xeb28(%rsp), %r9
leaq 0xeb24(%rsp), %rax
movq %rax, (%rsp)
callq 0x27570
movl %eax, 0xeb2c(%rsp)
movq 0xa8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rax
movl (%rax), %ecx
movl $0x45, %r8d
leaq 0xeb1c(%rsp), %r9
leaq 0xeb18(%rsp), %rax
movq %rax, (%rsp)
callq 0x27570
movl %eax, 0xeb20(%rsp)
leaq 0xebb0(%rsp), %rdi
callq 0x29770
movl %eax, 0xeb8c(%rsp)
cmpl $0x0, %eax
je 0x27f26
movq 0xebf8(%rsp), %rdi
movss 0xebc0(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4e4e(%rip), %rsi      # 0x2cd6b
movb $0x1, %al
callq 0x2140
jmp 0x27f3c
movq 0xebf8(%rsp), %rdi
leaq 0x4e45(%rip), %rsi      # 0x2cd7a
movb $0x0, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movss 0xebc4(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4e13(%rip), %rsi      # 0x2cd6b
movb $0x1, %al
callq 0x2140
leaq 0xebe0(%rsp), %rdi
callq 0x29770
movl %eax, 0xeb88(%rsp)
cmpl $0x0, %eax
je 0x27f9d
movq 0xebf8(%rsp), %rdi
movss 0xebf0(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4dd7(%rip), %rsi      # 0x2cd6b
movb $0x1, %al
callq 0x2140
jmp 0x27fb3
movq 0xebf8(%rsp), %rdi
leaq 0x4dce(%rip), %rsi      # 0x2cd7a
movb $0x0, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movss 0xebf4(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4d9c(%rip), %rsi      # 0x2cd6b
movb $0x1, %al
callq 0x2140
cmpl $0x0, 0xeb8c(%rsp)
je 0x28018
cmpl $0x0, 0xeb88(%rsp)
je 0x28018
movq 0xebf8(%rsp), %rdi
movss 0xebc0(%rsp), %xmm0
subss 0xebf0(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4d63(%rip), %rsi      # 0x2cd72
movb $0x1, %al
callq 0x2140
jmp 0x2802e
movq 0xebf8(%rsp), %rdi
leaq 0x4d52(%rip), %rsi      # 0x2cd79
movb $0x0, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movss 0xebc4(%rsp), %xmm0
subss 0xebf4(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4d2f(%rip), %rsi      # 0x2cd82
movb $0x1, %al
callq 0x2140
leaq 0xeb98(%rsp), %rdi
callq 0x29770
movl %eax, 0xeb8c(%rsp)
cmpl $0x0, %eax
je 0x28098
movq 0xebf8(%rsp), %rdi
movss 0xeba8(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4cdc(%rip), %rsi      # 0x2cd6b
movb $0x1, %al
callq 0x2140
jmp 0x280ae
movq 0xebf8(%rsp), %rdi
leaq 0x4cd3(%rip), %rsi      # 0x2cd7a
movb $0x0, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movss 0xebac(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4ca1(%rip), %rsi      # 0x2cd6b
movb $0x1, %al
callq 0x2140
leaq 0xebc8(%rsp), %rdi
callq 0x29770
movl %eax, 0xeb88(%rsp)
cmpl $0x0, %eax
je 0x2810f
movq 0xebf8(%rsp), %rdi
movss 0xebd8(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4c65(%rip), %rsi      # 0x2cd6b
movb $0x1, %al
callq 0x2140
jmp 0x28125
movq 0xebf8(%rsp), %rdi
leaq 0x4c5c(%rip), %rsi      # 0x2cd7a
movb $0x0, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movss 0xebdc(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4c2a(%rip), %rsi      # 0x2cd6b
movb $0x1, %al
callq 0x2140
cmpl $0x0, 0xeb8c(%rsp)
je 0x2818a
cmpl $0x0, 0xeb88(%rsp)
je 0x2818a
movq 0xebf8(%rsp), %rdi
movss 0xeba8(%rsp), %xmm0
subss 0xebd8(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4bf1(%rip), %rsi      # 0x2cd72
movb $0x1, %al
callq 0x2140
jmp 0x281a0
movq 0xebf8(%rsp), %rdi
leaq 0x4be0(%rip), %rsi      # 0x2cd79
movb $0x0, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movss 0xebac(%rsp), %xmm0
subss 0xebdc(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4bbd(%rip), %rsi      # 0x2cd82
movb $0x1, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movss 0xeb84(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movss 0xeb80(%rsp), %xmm1
cvtss2sd %xmm1, %xmm1
movss 0xeb7c(%rsp), %xmm2
cvtss2sd %xmm2, %xmm2
movss 0xeb78(%rsp), %xmm3
cvtss2sd %xmm3, %xmm3
leaq 0x4b7c(%rip), %rsi      # 0x2cd8b
movb $0x4, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movl 0xebb0(%rsp), %edx
movl 0xebb4(%rsp), %ecx
movl 0xebb8(%rsp), %r8d
movl 0xebbc(%rsp), %r9d
movl 0xebe0(%rsp), %eax
movl 0xebe4(%rsp), %esi
movl %esi, 0x78(%rsp)
movl 0xebe8(%rsp), %esi
movl %esi, 0x7c(%rsp)
movl 0xebec(%rsp), %esi
movl %esi, 0x80(%rsp)
movl 0xeb98(%rsp), %esi
movl %esi, 0x84(%rsp)
movl 0xeb9c(%rsp), %esi
movl %esi, 0x88(%rsp)
movl 0xeba0(%rsp), %r13d
movl 0xeba4(%rsp), %r12d
movl 0xebc8(%rsp), %r15d
movl 0xebcc(%rsp), %r14d
movl 0xebd0(%rsp), %ebp
movl 0xebd4(%rsp), %ebx
movq 0x90(%rsp), %rsi
movq 0x48(%rsi), %r11
movq 0x90(%rsp), %rsi
movsbl 0x40(%rsi), %r10d
movq 0x90(%rsp), %rsi
movl (%rsi), %esi
movl %esi, 0x8c(%rsp)
movq 0x90(%rsp), %rsi
movss 0x50(%rsi), %xmm0
cvtss2sd %xmm0, %xmm0
movss 0xeb74(%rsp), %xmm1
cvtss2sd %xmm1, %xmm1
movss 0xeb70(%rsp), %xmm2
cvtss2sd %xmm2, %xmm2
movss 0xeb6c(%rsp), %xmm3
cvtss2sd %xmm3, %xmm3
leaq 0x4a8e(%rip), %rsi      # 0x2cda8
movl %eax, (%rsp)
movl 0x78(%rsp), %eax
movl %eax, 0x8(%rsp)
movl 0x7c(%rsp), %eax
movl %eax, 0x10(%rsp)
movl 0x80(%rsp), %eax
movl %eax, 0x18(%rsp)
movl 0x84(%rsp), %eax
movl %eax, 0x20(%rsp)
movl 0x88(%rsp), %eax
movl %eax, 0x28(%rsp)
movl 0x8c(%rsp), %eax
movl %r13d, 0x30(%rsp)
movl %r12d, 0x38(%rsp)
movl %r15d, 0x40(%rsp)
movl %r14d, 0x48(%rsp)
movl %ebp, 0x50(%rsp)
movl %ebx, 0x58(%rsp)
movq %r11, 0x60(%rsp)
movl %r10d, 0x68(%rsp)
movl %eax, 0x70(%rsp)
movb $0x4, %al
callq 0x2140
cmpl $0x0, 0xec08(%rsp)
je 0x283f8
movq 0xebf8(%rsp), %rdi
movl 0xeb4c(%rsp), %edx
movl 0xeb48(%rsp), %ecx
movl 0xeb44(%rsp), %r8d
movl 0xeb40(%rsp), %r9d
leaq 0x4a54(%rip), %rsi      # 0x2ce11
movb $0x0, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movl 0xeb3c(%rsp), %edx
movl 0xeb38(%rsp), %ecx
movl 0xeb34(%rsp), %r8d
movl 0xeb30(%rsp), %r9d
leaq 0x4a49(%rip), %rsi      # 0x2ce3a
movb $0x0, %al
callq 0x2140
leaq 0xb0(%rsp), %rdi
movq 0x90(%rsp), %rax
movslq (%rax), %rdx
movl $0x43, %esi
callq 0x20e0
leaq 0xb0(%rsp), %rdi
addq $0x4e20, %rdi           # imm = 0x4E20
movq 0x90(%rsp), %rax
movslq (%rax), %rdx
movl $0x43, %esi
callq 0x20e0
leaq 0xb0(%rsp), %rdi
addq $0x9c40, %rdi           # imm = 0x9C40
movq 0x90(%rsp), %rax
movslq (%rax), %rdx
movl $0x43, %esi
callq 0x20e0
movl $0x0, 0xeb94(%rsp)
movl 0xeb94(%rsp), %eax
movq 0x90(%rsp), %rcx
cmpl (%rcx), %eax
jge 0x28548
movq 0xa8(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x48, %eax
jne 0x284ba
movq 0xa8(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movb (%rax,%rcx), %cl
movslq 0xeb94(%rsp), %rax
movb %cl, 0xb0(%rsp,%rax)
movq 0xa0(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x48, %eax
jne 0x284f5
movq 0xa0(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movb (%rax,%rcx), %cl
movslq 0xeb94(%rsp), %rax
movb %cl, 0x4ed0(%rsp,%rax)
movq 0x98(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x48, %eax
jne 0x28530
movq 0x98(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movb (%rax,%rcx), %cl
movslq 0xeb94(%rsp), %rax
movb %cl, 0x9cf0(%rsp,%rax)
jmp 0x28532
movl 0xeb94(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xeb94(%rsp)
jmp 0x28468
leaq 0xb0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
addq $0x9c40, %rsi           # imm = 0x9C40
leaq 0xb0(%rsp), %rdx
addq $0x4e20, %rdx           # imm = 0x4E20
movq 0x90(%rsp), %rax
movl (%rax), %ecx
callq 0x29920
leaq 0xb0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
addq $0x4e20, %rsi           # imm = 0x4E20
movq 0x90(%rsp), %rax
movl (%rax), %edx
movl $0x48, %ecx
leaq 0xebb0(%rsp), %r8
callq 0x294c0
movq 0xebf8(%rsp), %rdi
movl 0xebb0(%rsp), %edx
movl 0xebb4(%rsp), %ecx
movl 0xebb8(%rsp), %r8d
movl 0xebbc(%rsp), %r9d
leaq 0x4886(%rip), %rsi      # 0x2ce63
movb $0x0, %al
callq 0x2140
leaq 0xb0(%rsp), %rdi
movq 0x90(%rsp), %rax
movslq (%rax), %rdx
movl $0x43, %esi
callq 0x20e0
leaq 0xb0(%rsp), %rdi
addq $0x4e20, %rdi           # imm = 0x4E20
movq 0x90(%rsp), %rax
movslq (%rax), %rdx
movl $0x43, %esi
callq 0x20e0
leaq 0xb0(%rsp), %rdi
addq $0x9c40, %rdi           # imm = 0x9C40
movq 0x90(%rsp), %rax
movslq (%rax), %rdx
movl $0x43, %esi
callq 0x20e0
movl $0x0, 0xeb94(%rsp)
movl 0xeb94(%rsp), %eax
movq 0x90(%rsp), %rcx
cmpl (%rcx), %eax
jge 0x28734
movq 0xa8(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x45, %eax
jne 0x286a6
movq 0xa8(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movb (%rax,%rcx), %cl
movslq 0xeb94(%rsp), %rax
movb %cl, 0xb0(%rsp,%rax)
movq 0xa0(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x45, %eax
jne 0x286e1
movq 0xa0(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movb (%rax,%rcx), %cl
movslq 0xeb94(%rsp), %rax
movb %cl, 0x4ed0(%rsp,%rax)
movq 0x98(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x45, %eax
jne 0x2871c
movq 0x98(%rsp), %rax
movslq 0xeb94(%rsp), %rcx
movb (%rax,%rcx), %cl
movslq 0xeb94(%rsp), %rax
movb %cl, 0x9cf0(%rsp,%rax)
jmp 0x2871e
movl 0xeb94(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xeb94(%rsp)
jmp 0x28654
leaq 0xb0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
addq $0x9c40, %rsi           # imm = 0x9C40
leaq 0xb0(%rsp), %rdx
addq $0x4e20, %rdx           # imm = 0x4E20
movq 0x90(%rsp), %rax
movl (%rax), %ecx
callq 0x29920
leaq 0xb0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
addq $0x4e20, %rsi           # imm = 0x4E20
movq 0x90(%rsp), %rax
movl (%rax), %edx
movl $0x45, %ecx
leaq 0xeb98(%rsp), %r8
callq 0x294c0
movq 0xebf8(%rsp), %rdi
movl 0xeb98(%rsp), %edx
movl 0xeb9c(%rsp), %ecx
movl 0xeba0(%rsp), %r8d
movl 0xeba4(%rsp), %r9d
leaq 0x46c3(%rip), %rsi      # 0x2ce8c
movb $0x0, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movl 0xeb2c(%rsp), %edx
movl 0xeb28(%rsp), %ecx
movl 0xeb24(%rsp), %r8d
leaq 0x46c0(%rip), %rsi      # 0x2ceb5
movb $0x0, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movl 0xeb20(%rsp), %edx
movl 0xeb1c(%rsp), %ecx
movl 0xeb18(%rsp), %r8d
leaq 0x46b3(%rip), %rsi      # 0x2ced4
movb $0x0, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
movss 0xeb68(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movss 0xeb64(%rsp), %xmm1
cvtss2sd %xmm1, %xmm1
leaq 0x46a2(%rip), %rsi      # 0x2cef3
movb $0x2, %al
callq 0x2140
movq 0xebf8(%rsp), %rdi
leaq 0x34fc(%rip), %rsi      # 0x2bd63
movb $0x0, %al
callq 0x2140
movq 0xa8(%rsp), %rdi
callq 0x2030
movq 0xa0(%rsp), %rdi
callq 0x2030
movq 0x98(%rsp), %rdi
callq 0x2030
movl 0xeb90(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xeb90(%rsp)
jmp 0x27872
addq $0xec18, %rsp           # imm = 0xEC18
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)