// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/single.c
// Function: candidate_primer
void candidate_primer(char *seq,int flag[],FILE *Primer,FILE *Probe,int Num[],float deltah[],float deltas[],int length,double stackEntropies[],double stackEnthalpies[],double stackint2Entropies[],double stackint2Enthalpies[],double dangleEntropies3[],double dangleEnthalpies3[],double dangleEntropies5[],double dangleEnthalpies5[],double hairpinLoopEntropies[],double interiorLoopEntropies[],double bulgeLoopEntropies[],double hairpinLoopEnthalpies[],double interiorLoopEnthalpies[],double bulgeLoopEnthalpies[],double tstackEntropies[],double tstackEnthalpies[],double tstack2Entropies[],double tstack2Enthalpies[],char *triloopEntropies1,char *triloopEnthalpies1,char *tetraloopEntropies1,char *tetraloopEnthalpies1,double *triloopEntropies2,double *triloopEnthalpies2,double *tetraloopEntropies2,double *tetraloopEnthalpies2,int numTriloops,int numTetraloops,double atpS[],double atpH[])
{
	int i,circle,check,plus,minus;
	char primer[60],rev[60];
	double secondary;
	float GC_content,Tm,G_content;

//primers
	for(circle=0;circle<length;circle++)
	{
		for(i=30;i<=35;i++)  //read length is from 18 to 25
		{
			if(circle+i>length)
				continue;
			check=words(seq,circle,i);
			if(check==0)
                                break;
			memset(primer,'\0',60);
			generate(seq,primer,circle,i);
			check=check_long_ploy(primer,i);
                        if(check==0)
                                break;
			GC_content=gc(primer,i);
			if(GC_content<30||GC_content>70)
				continue;
			Tm=tm(primer,deltah,deltas,i);
			reverse(primer,rev,i);
			plus=1;
			minus=1;
		//	plus=dimer(primer,i); //hui wen
		//	minus=dimer(rev,i);
			if((flag[4]==0)&&plus)
			{
				secondary=thal(primer,primer,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,1);
				if(secondary>Tm-10)
					plus=0;
			}
			if((flag[4]==0)&&plus)
			{
				secondary=thal(primer,primer,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,2);
				if(secondary>Tm-20)
                                        plus=0;
			}
			if((flag[4]==0)&&plus)
			{
				secondary=thal(primer,primer,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,4);
				if(secondary>Tm-20)
                                        plus=0;
			}

			if((flag[4]==0)&&minus)
                        {
                                secondary=thal(rev,rev,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,1);
                                if(secondary>Tm-20)
                                        minus=0;
                        }
                        if((flag[4]==0)&&minus)
                        {
                                secondary=thal(rev,rev,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,2);
                                if(secondary>Tm-20)
                                        minus=0;
                        }
                        if((flag[4]==0)&&minus)
                        {
                                secondary=thal(rev,rev,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,4);
                                if(secondary>Tm-20)
                                        minus=0;
                        }
	
			if(plus+minus==0)
                                continue;
			fprintf(Primer,"pos:%d\tlength:%d\t+:%d\t-:%d\t%0.2f\n",circle,i,plus,minus,Tm);
			Num[0]++;
		}
		if(flag[3]==1)
			continue;

		for(i=1;i<=5;i++) //dis between two Ts
		{
			if(circle+44+i>length)
				break;
			check=words(seq,circle,(45+i));
			if(check==0)
				break;
			memset(primer,'\0',60);
		//probe length=45+i
			generate(seq,primer,circle,(45+i));
			check=check_long_ploy(primer,(45+i));
			if(check==0)
				break;
		//Probe-plus
	                if((seq[circle+30-1]=='T')&&(seq[circle+30+i]=='T'))
			{
				check=check_G_C_Count(primer,(45+i));
				if(check==1)
					Tm=tm(primer,deltah,deltas,(45+i));
				if((check==1)&&(flag[4]==0))
				{
					secondary=thal(primer,primer,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,1);
					if(secondary>Tm-20)
						check=0;
					else
					{
						secondary=thal(primer,primer,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,2);
						if(secondary>Tm-20)
							check=0;
						else
						{
							secondary=thal(primer,primer,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,4);
							if(secondary>Tm-20)
								check=0;
						}
					}
				}
				if(check==1)
				{
					G_content=GContent(primer,(45+i));
					fprintf(Probe,"pos:%d\tlength:%d\t+:1\t-:0\t%0.2f\t%0.2f\n",circle,(45+i),Tm,G_content);
					Num[1]++;
				}
			}
		//Probe-minus
			if((seq[circle+15-1]=='A')&&(seq[circle+15+i]=='A'))
			{
                        //probe length=45+i
				reverse(primer,rev,(45+i));
				check=check_G_C_Count(rev,(45+i));
				if(check==0)
					continue;
				Tm=tm(rev,deltah,deltas,(45+i));
	                        if(flag[4]==0)
				{
					secondary=thal(rev,rev,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,1);
					if(secondary>Tm-20)
						continue;
					secondary=thal(rev,rev,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,2);
					if(secondary>Tm-20)
						continue;
					secondary=thal(rev,rev,stackEntropies,stackEnthalpies,stackint2Entropies,stackint2Enthalpies,dangleEntropies3,dangleEnthalpies3,dangleEntropies5,dangleEnthalpies5,hairpinLoopEntropies,interiorLoopEntropies,bulgeLoopEntropies,hairpinLoopEnthalpies,interiorLoopEnthalpies,bulgeLoopEnthalpies,tstackEntropies,tstackEnthalpies,tstack2Entropies,tstack2Enthalpies,triloopEntropies1,triloopEnthalpies1,tetraloopEntropies1,tetraloopEnthalpies1,triloopEntropies2,triloopEnthalpies2,tetraloopEntropies2,tetraloopEnthalpies2,numTriloops,numTetraloops,atpS,atpH,4);
					if(secondary>Tm-20)
						continue;
				}
				G_content=GContent(rev,(45+i));
				fprintf(Probe,"pos:%d\tlength:%d\t+:0\t-:1\t%0.2f\t%0.2f\n",circle,(45+i),Tm,G_content);
				Num[1]++;
			}
		}
	}
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %r9, -0x78(%rbp)
movq %r8, -0x70(%rbp)
movq %rcx, -0x80(%rbp)
movq %rdx, -0xd8(%rbp)
movq %rsi, -0x60(%rbp)
movq %rdi, -0x68(%rbp)
cmpl $0x0, 0x18(%rbp)
jle 0xad15
movq -0x68(%rbp), %r12
leaq 0x1e(%r12), %rax
movq %rax, -0xe8(%rbp)
leaq 0xf(%r12), %rax
movq %rax, -0xe0(%rbp)
xorl %ebx, %ebx
leaq -0x140(%rbp), %r14
movq -0x68(%rbp), %rax
addq %rbx, %rax
movq %rax, -0x88(%rbp)
movl $0x1e, %r13d
xorl %r15d, %r15d
movq %rbx, -0x48(%rbp)
leaq (%rbx,%r13), %rax
movl 0x18(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x9d40
incq %r13
incq %r15
cmpq $0x6, %r15
jne 0x9d23
jmp 0xa44b
movss %xmm2, -0x2c(%rbp)
leaq 0x1e(%r15), %rbx
movq $-0x1d, %rax
movb 0x1d(%r12,%rax), %cl
cmpb $0x4e, %cl
je 0x9d66
leaq 0x1(%rax), %rdx
cmpq %rax, %r15
movq %rdx, %rax
jne 0x9d50
cmpb $0x4e, %cl
je 0xa442
leaq -0x1e(%r15), %rax
negq %rax
cmpq $0x1e, %r15
movl $0x0, %edx
cmovbq %rax, %rdx
leaq (%rbx,%rbp), %rdi
addq $-0xd0, %rdi
xorl %esi, %esi
callq 0x10f0
leaq -0xd0(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq %rbx, %rdx
callq 0x1150
movb $0x0, -0xd0(%rbp,%r13)
movl $0x1, %eax
movq $-0x1d, %rcx
movb -0xd0(%rbp), %dl
movq -0x48(%rbp), %rbx
movss -0x2c(%rbp), %xmm2
movb -0xb2(%rbp,%rcx), %sil
cmpb %dl, %sil
jne 0x9de2
incl %eax
movl %edx, %esi
jmp 0x9df0
cmpl $0x5, %eax
movl $0x1, %eax
jg 0xa44b
incq %rcx
movl %esi, %edx
cmpq %rcx, %r15
jne 0x9dcf
cmpl $0x5, %eax
jg 0xa44b
leaq -0xd0(%rbp), %rdi
movl %r13d, %esi
callq 0x98ba
movss 0x22fa(%rip), %xmm1     # 0xc114
ucomiss %xmm0, %xmm1
ja 0x9e88
ucomiss 0x22f2(%rip), %xmm0     # 0xc118
movss -0x2c(%rbp), %xmm2
ja 0x9d2f
movq %r14, %rbx
leaq -0xd0(%rbp), %r14
movq %r14, %rdi
movq -0x78(%rbp), %rsi
movq 0x10(%rbp), %rdx
movl %r13d, %ecx
callq 0x992f
movss %xmm0, -0x2c(%rbp)
movq %r14, %rdi
movq %rbx, %rsi
movl %r13d, %edx
callq 0x9ac9
movq -0x60(%rbp), %rax
movl 0x10(%rax), %edx
movl $0x1, %r8d
movb $0x1, %bl
testl %edx, %edx
movl %edx, -0x38(%rbp)
je 0x9e92
movq 0x108(%rbp), %r14
movss -0x2c(%rbp), %xmm2
jmp 0x9f6b
movss -0x2c(%rbp), %xmm2
jmp 0x9d2f
subq $0x8, %rsp
movq %r14, %rdi
movq %r14, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x1
movq 0x108(%rbp), %r14
pushq %r14
pushq 0x100(%rbp)
movl 0xf8(%rbp), %eax
pushq %rax
movl 0xf0(%rbp), %eax
pushq %rax
pushq 0xe8(%rbp)
pushq 0xe0(%rbp)
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq 0xc8(%rbp)
pushq 0xc0(%rbp)
pushq 0xb8(%rbp)
pushq 0xb0(%rbp)
pushq 0xa8(%rbp)
pushq 0xa0(%rbp)
pushq 0x98(%rbp)
pushq 0x90(%rbp)
pushq 0x88(%rbp)
pushq 0x80(%rbp)
pushq 0x78(%rbp)
pushq 0x70(%rbp)
pushq 0x68(%rbp)
pushq 0x60(%rbp)
pushq 0x58(%rbp)
pushq 0x50(%rbp)
pushq 0x48(%rbp)
pushq 0x40(%rbp)
callq 0x8c5a
movl $0x1, %r8d
movl -0x38(%rbp), %edx
addq $0xe0, %rsp
movss -0x2c(%rbp), %xmm2
movaps %xmm2, %xmm1
addss 0x21c0(%rip), %xmm1     # 0xc11c
cvtss2sd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x9f6b
xorl %ebx, %ebx
xorl %r8d, %r8d
testl %edx, %edx
setne %al
xorb $0x1, %bl
orb %al, %bl
leaq -0xd0(%rbp), %rbx
jne 0xa052
subq $0x8, %rsp
movq %rbx, %rdi
movq %rbx, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x2
pushq %r14
pushq 0x100(%rbp)
movl 0xf8(%rbp), %eax
pushq %rax
movl 0xf0(%rbp), %eax
pushq %rax
pushq 0xe8(%rbp)
pushq 0xe0(%rbp)
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq 0xc8(%rbp)
pushq 0xc0(%rbp)
pushq 0xb8(%rbp)
pushq 0xb0(%rbp)
pushq 0xa8(%rbp)
pushq 0xa0(%rbp)
pushq 0x98(%rbp)
pushq 0x90(%rbp)
pushq 0x88(%rbp)
pushq 0x80(%rbp)
pushq 0x78(%rbp)
pushq 0x70(%rbp)
pushq 0x68(%rbp)
pushq 0x60(%rbp)
pushq 0x58(%rbp)
pushq 0x50(%rbp)
pushq 0x48(%rbp)
pushq 0x40(%rbp)
callq 0x8c5a
movl -0x38(%rbp), %edx
movss -0x2c(%rbp), %xmm2
addq $0xe0, %rsp
movaps %xmm2, %xmm1
addss 0x20e1(%rip), %xmm1     # 0xc120
cvtss2sd %xmm1, %xmm1
movl $0x1, %r8d
ucomisd %xmm1, %xmm0
jbe 0xa052
xorl %r8d, %r8d
testl %edx, %edx
setne %al
testl %r8d, %r8d
sete %cl
orb %al, %cl
jne 0xa135
subq $0x8, %rsp
movq %rbx, %rdi
movq %rbx, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x4
pushq %r14
pushq 0x100(%rbp)
movl 0xf8(%rbp), %eax
pushq %rax
movl 0xf0(%rbp), %eax
pushq %rax
pushq 0xe8(%rbp)
pushq 0xe0(%rbp)
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq 0xc8(%rbp)
pushq 0xc0(%rbp)
pushq 0xb8(%rbp)
pushq 0xb0(%rbp)
pushq 0xa8(%rbp)
pushq 0xa0(%rbp)
pushq 0x98(%rbp)
pushq 0x90(%rbp)
pushq 0x88(%rbp)
pushq 0x80(%rbp)
pushq 0x78(%rbp)
pushq 0x70(%rbp)
pushq 0x68(%rbp)
pushq 0x60(%rbp)
pushq 0x58(%rbp)
pushq 0x50(%rbp)
pushq 0x48(%rbp)
pushq 0x40(%rbp)
callq 0x8c5a
movl -0x38(%rbp), %edx
movss -0x2c(%rbp), %xmm2
addq $0xe0, %rsp
movaps %xmm2, %xmm1
addss 0x1ffe(%rip), %xmm1     # 0xc120
cvtss2sd %xmm1, %xmm1
movl $0x1, %r8d
ucomisd %xmm1, %xmm0
jbe 0xa135
xorl %r8d, %r8d
movl $0x1, %ebx
movb $0x1, %r14b
testl %edx, %edx
jne 0xa221
subq $0x8, %rsp
leaq -0x140(%rbp), %rdi
movq %rdi, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movl %r8d, -0x40(%rbp)
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x1
pushq 0x108(%rbp)
pushq 0x100(%rbp)
movl 0xf8(%rbp), %eax
pushq %rax
movl 0xf0(%rbp), %eax
pushq %rax
pushq 0xe8(%rbp)
pushq 0xe0(%rbp)
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq 0xc8(%rbp)
pushq 0xc0(%rbp)
pushq 0xb8(%rbp)
pushq 0xb0(%rbp)
pushq 0xa8(%rbp)
pushq 0xa0(%rbp)
pushq 0x98(%rbp)
pushq 0x90(%rbp)
pushq 0x88(%rbp)
pushq 0x80(%rbp)
pushq 0x78(%rbp)
pushq 0x70(%rbp)
pushq 0x68(%rbp)
pushq 0x60(%rbp)
pushq 0x58(%rbp)
pushq 0x50(%rbp)
pushq 0x48(%rbp)
pushq 0x40(%rbp)
callq 0x8c5a
movl -0x40(%rbp), %r8d
movl -0x38(%rbp), %edx
movss -0x2c(%rbp), %xmm2
addq $0xe0, %rsp
movaps %xmm2, %xmm1
addss 0x1f0e(%rip), %xmm1     # 0xc120
cvtss2sd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xa221
xorl %r14d, %r14d
xorl %ebx, %ebx
testl %edx, %edx
setne %al
xorb $0x1, %r14b
orb %al, %r14b
leaq -0x140(%rbp), %r14
jne 0xa312
subq $0x8, %rsp
movq %r14, %rdi
movq %r14, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movl %r8d, %ebx
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x2
pushq 0x108(%rbp)
pushq 0x100(%rbp)
movl 0xf8(%rbp), %eax
pushq %rax
movl 0xf0(%rbp), %eax
pushq %rax
pushq 0xe8(%rbp)
pushq 0xe0(%rbp)
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq 0xc8(%rbp)
pushq 0xc0(%rbp)
pushq 0xb8(%rbp)
pushq 0xb0(%rbp)
pushq 0xa8(%rbp)
pushq 0xa0(%rbp)
pushq 0x98(%rbp)
pushq 0x90(%rbp)
pushq 0x88(%rbp)
pushq 0x80(%rbp)
pushq 0x78(%rbp)
pushq 0x70(%rbp)
pushq 0x68(%rbp)
pushq 0x60(%rbp)
pushq 0x58(%rbp)
pushq 0x50(%rbp)
pushq 0x48(%rbp)
pushq 0x40(%rbp)
callq 0x8c5a
movl %ebx, %r8d
movl -0x38(%rbp), %edx
movss -0x2c(%rbp), %xmm2
addq $0xe0, %rsp
movaps %xmm2, %xmm1
addss 0x1e1f(%rip), %xmm1     # 0xc120
cvtss2sd %xmm1, %xmm1
movl $0x1, %ebx
ucomisd %xmm1, %xmm0
jbe 0xa312
xorl %ebx, %ebx
testl %edx, %edx
setne %al
testl %ebx, %ebx
sete %cl
orb %al, %cl
jne 0xa3f9
subq $0x8, %rsp
movq %r14, %rdi
movq %r14, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movl %r8d, %ebx
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x4
pushq 0x108(%rbp)
pushq 0x100(%rbp)
movl 0xf8(%rbp), %eax
pushq %rax
movl 0xf0(%rbp), %eax
pushq %rax
pushq 0xe8(%rbp)
pushq 0xe0(%rbp)
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq 0xc8(%rbp)
pushq 0xc0(%rbp)
pushq 0xb8(%rbp)
pushq 0xb0(%rbp)
pushq 0xa8(%rbp)
pushq 0xa0(%rbp)
pushq 0x98(%rbp)
pushq 0x90(%rbp)
pushq 0x88(%rbp)
pushq 0x80(%rbp)
pushq 0x78(%rbp)
pushq 0x70(%rbp)
pushq 0x68(%rbp)
pushq 0x60(%rbp)
pushq 0x58(%rbp)
pushq 0x50(%rbp)
pushq 0x48(%rbp)
pushq 0x40(%rbp)
callq 0x8c5a
movl %ebx, %r8d
movss -0x2c(%rbp), %xmm2
addq $0xe0, %rsp
movaps %xmm2, %xmm1
addss 0x1d38(%rip), %xmm1     # 0xc120
cvtss2sd %xmm1, %xmm1
movl $0x1, %ebx
ucomisd %xmm1, %xmm0
jbe 0xa3f9
xorl %ebx, %ebx
movl %ebx, %eax
orl %r8d, %eax
je 0xa439
xorps %xmm0, %xmm0
cvtss2sd %xmm2, %xmm0
movq -0xd8(%rbp), %rdi
leaq 0x1e00(%rip), %rsi      # 0xc215
movq -0x48(%rbp), %rdx
movl %r13d, %ecx
movl %ebx, %r9d
movq %rdx, %rbx
movb $0x1, %al
callq 0x1130
movss -0x2c(%rbp), %xmm2
movq -0x70(%rbp), %rax
incl (%rax)
jmp 0x9d2f
movq -0x48(%rbp), %rbx
jmp 0x9d2f
movq -0x48(%rbp), %rbx
movss -0x2c(%rbp), %xmm2
movq -0x60(%rbp), %rax
cmpl $0x1, 0xc(%rax)
jne 0xa46c
incq %rbx
incq %r12
movl 0x18(%rbp), %eax
cmpq %rax, %rbx
jne 0x9d08
jmp 0xad15
leaq 0x2c(%rbx), %rsi
movq -0xe8(%rbp), %rax
addq %rbx, %rax
movq %rax, -0xf8(%rbp)
movq -0xe0(%rbp), %rax
addq %rbx, %rax
movq %rax, -0xf0(%rbp)
movl $0x2e, %r15d
movl $0x1, %edi
xorl %r13d, %r13d
movq %rsi, -0x40(%rbp)
leal (%rsi,%rdi), %eax
cmpl 0x18(%rbp), %eax
jg 0xa455
leaq 0x2e(%r13), %rbx
leaq 0x2d(%rdi), %rax
movq %rax, -0x58(%rbp)
movq $-0x2d, %rax
movb 0x2d(%r12,%rax), %cl
cmpb $0x4e, %cl
je 0xa4d5
leaq 0x1(%rax), %rdx
cmpq %rax, %r13
movq %rdx, %rax
jne 0xa4bf
cmpb $0x4e, %cl
je 0xad0c
movq %rdi, -0x38(%rbp)
leaq -0xe(%r13), %rax
negq %rax
cmpq $0xe, %r13
movl $0x0, %edx
cmovbq %rax, %rdx
leaq (%rbx,%rbp), %rdi
addq $-0xd0, %rdi
xorl %esi, %esi
movss %xmm2, -0x2c(%rbp)
callq 0x10f0
leaq -0xd0(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq %rbx, %rdx
callq 0x1150
movss -0x2c(%rbp), %xmm2
movb $0x0, -0xd0(%rbp,%r15)
movl $0x1, %eax
movq $-0x2d, %rcx
movb -0xd0(%rbp), %dl
movq -0x48(%rbp), %rbx
movb -0xa2(%rbp,%rcx), %sil
cmpb %dl, %sil
jne 0xa55a
incl %eax
movl %edx, %esi
jmp 0xa568
cmpl $0x5, %eax
movl $0x1, %eax
jg 0xa455
incq %rcx
movl %esi, %edx
cmpq %rcx, %r13
jne 0xa547
cmpl $0x5, %eax
movq -0x38(%rbp), %rdi
jg 0xa455
movq -0x68(%rbp), %rax
cmpb $0x54, 0x1d(%rax,%rbx)
jne 0xa68a
movq -0xf8(%rbp), %rax
cmpb $0x54, (%rax,%rdi)
movq -0x40(%rbp), %rsi
jne 0xa68e
xorl %eax, %eax
xorl %ebx, %ebx
xorl %r14d, %r14d
movzbl -0xd0(%rbp,%rax), %ecx
cmpl $0x43, %ecx
je 0xa5c1
cmpl $0x47, %ecx
jne 0xa5c3
incl %r14d
jmp 0xa5c3
incl %ebx
incq %rax
cmpq %rax, %r15
jne 0xa5aa
cmpl %r14d, %ebx
jle 0xa5f3
leaq -0xd0(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq 0x10(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq 0x992f
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movaps %xmm0, %xmm2
cmpl %r14d, %ebx
jle 0xa79b
movq -0x60(%rbp), %rax
cmpl $0x0, 0x10(%rax)
movq -0x48(%rbp), %rbx
leaq -0x140(%rbp), %r14
movss %xmm2, -0x2c(%rbp)
je 0xa7ab
xorl %eax, %eax
xorl %ecx, %ecx
xorl %edx, %edx
cmpb $0x47, -0xd0(%rbp,%rax)
sete %dl
addl %edx, %ecx
incq %rax
cmpq %rax, %r15
jne 0xa61e
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movq -0x58(%rbp), %rcx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
mulsd 0x1a25(%rip), %xmm0     # 0xc078
xorps %xmm1, %xmm1
cvtsd2ss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm2, %xmm0
cvtss2sd %xmm1, %xmm1
movq -0x80(%rbp), %rdi
leaq 0x1bc7(%rip), %rsi      # 0xc237
movl %ebx, %edx
movb $0x2, %al
callq 0x1130
movss -0x2c(%rbp), %xmm2
movq -0x70(%rbp), %rax
incl 0x4(%rax)
jmp 0xaa86
movq -0x40(%rbp), %rsi
movq -0x68(%rbp), %rax
cmpb $0x41, 0xe(%rax,%rbx)
jne 0xacf4
movq -0xf0(%rbp), %rax
cmpb $0x41, (%rax,%rdi)
jne 0xacf4
movss %xmm2, -0x2c(%rbp)
leaq -0xd0(%rbp), %rdi
movq %r14, %rsi
movq -0x58(%rbp), %rdx
callq 0x9ac9
xorl %eax, %eax
xorl %ecx, %ecx
xorl %edx, %edx
movzbl -0x140(%rbp,%rax), %esi
cmpl $0x43, %esi
je 0xa6e2
cmpl $0x47, %esi
jne 0xa6e4
incl %edx
jmp 0xa6e4
incl %ecx
incq %rax
cmpq %rax, %r15
jne 0xa6cc
cmpl %edx, %ecx
movss -0x2c(%rbp), %xmm2
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdi
jle 0xacf4
movq %r14, %rdi
movq -0x78(%rbp), %rsi
movq 0x10(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq 0x992f
movaps %xmm0, %xmm2
movq -0x60(%rbp), %rax
cmpl $0x0, 0x10(%rax)
movss %xmm0, -0x2c(%rbp)
je 0xa8b4
xorl %eax, %eax
xorl %ecx, %ecx
xorl %edx, %edx
cmpb $0x47, -0x140(%rbp,%rax)
sete %dl
addl %edx, %ecx
incq %rax
cmpq %rax, %r15
jne 0xa72f
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movq -0x58(%rbp), %rcx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
mulsd 0x1914(%rip), %xmm0     # 0xc078
xorps %xmm1, %xmm1
cvtsd2ss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm2, %xmm0
cvtss2sd %xmm1, %xmm1
movq -0x80(%rbp), %rdi
leaq 0x1adc(%rip), %rsi      # 0xc25d
movl %ebx, %edx
movb $0x2, %al
callq 0x1130
movss -0x2c(%rbp), %xmm2
movq -0x70(%rbp), %rax
incl 0x4(%rax)
jmp 0xacec
movq -0x48(%rbp), %rbx
leaq -0x140(%rbp), %r14
jmp 0xa68e
subq $0x8, %rsp
leaq -0xd0(%rbp), %rdi
movq %rdi, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x1
movq 0x108(%rbp), %rbx
pushq %rbx
movq 0x100(%rbp), %rbx
pushq %rbx
movl 0xf8(%rbp), %ebx
pushq %rbx
movl 0xf0(%rbp), %eax
pushq %rax
movq 0xe8(%rbp), %rbx
pushq %rbx
movq 0xe0(%rbp), %rax
pushq %rax
movq 0xd8(%rbp), %rbx
pushq %rbx
movq 0xd0(%rbp), %rax
pushq %rax
movq 0xc8(%rbp), %rbx
pushq %rbx
movq 0xc0(%rbp), %rax
pushq %rax
movq 0xb8(%rbp), %rbx
pushq %rbx
movq 0xb0(%rbp), %rax
pushq %rax
movq 0xa8(%rbp), %rbx
pushq %rbx
movq 0xa0(%rbp), %rax
pushq %rax
movq 0x98(%rbp), %rbx
pushq %rbx
movq 0x90(%rbp), %rbx
pushq %rbx
movq 0x88(%rbp), %rbx
pushq %rbx
movq 0x80(%rbp), %rbx
pushq %rbx
movq 0x78(%rbp), %rbx
pushq %rbx
movq 0x70(%rbp), %rbx
pushq %rbx
movq 0x68(%rbp), %rbx
pushq %rbx
movq 0x60(%rbp), %rbx
pushq %rbx
movq 0x58(%rbp), %rbx
pushq %rbx
movq 0x50(%rbp), %rax
pushq %rax
movq 0x48(%rbp), %rax
pushq %rax
movq 0x40(%rbp), %rax
pushq %rax
callq 0x8c5a
movss -0x2c(%rbp), %xmm2
addq $0xe0, %rsp
movaps %xmm2, %xmm1
addss 0x1883(%rip), %xmm1     # 0xc120
cvtss2sd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xa9b9
movq -0x48(%rbp), %rbx
jmp 0xaa86
subq $0x8, %rsp
movq %r14, %rdi
movq %r14, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x1
movq 0x108(%rbp), %rbx
pushq %rbx
movq 0x100(%rbp), %rbx
pushq %rbx
movl 0xf8(%rbp), %eax
pushq %rax
movl 0xf0(%rbp), %eax
pushq %rax
movq 0xe8(%rbp), %rax
pushq %rax
movq 0xe0(%rbp), %rax
pushq %rax
movq 0xd8(%rbp), %rax
pushq %rax
movq 0xd0(%rbp), %rax
pushq %rax
movq 0xc8(%rbp), %rax
pushq %rax
movq 0xc0(%rbp), %rax
pushq %rax
movq 0xb8(%rbp), %rbx
pushq %rbx
movq 0xb0(%rbp), %rbx
pushq %rbx
movq 0xa8(%rbp), %rbx
pushq %rbx
movq 0xa0(%rbp), %rbx
pushq %rbx
movq 0x98(%rbp), %rbx
pushq %rbx
movq 0x90(%rbp), %rbx
pushq %rbx
movq 0x88(%rbp), %rbx
pushq %rbx
movq 0x80(%rbp), %rbx
pushq %rbx
movq 0x78(%rbp), %rax
pushq %rax
movq 0x70(%rbp), %rax
pushq %rax
movq 0x68(%rbp), %rax
pushq %rax
movq 0x60(%rbp), %rax
pushq %rax
movq 0x58(%rbp), %rax
pushq %rax
movq 0x50(%rbp), %rax
pushq %rax
movq 0x48(%rbp), %rax
pushq %rax
movq 0x40(%rbp), %rax
pushq %rax
callq 0x8c5a
movss -0x2c(%rbp), %xmm2
addq $0xe0, %rsp
movaps %xmm2, %xmm1
addss 0x177e(%rip), %xmm1     # 0xc120
cvtss2sd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xaa93
movq -0x48(%rbp), %rbx
jmp 0xacec
subq $0x8, %rsp
leaq -0xd0(%rbp), %rdi
movq %rdi, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x2
pushq 0x108(%rbp)
pushq 0x100(%rbp)
movl 0xf8(%rbp), %eax
pushq %rax
movl 0xf0(%rbp), %eax
pushq %rax
pushq 0xe8(%rbp)
pushq 0xe0(%rbp)
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq 0xc8(%rbp)
pushq 0xc0(%rbp)
pushq 0xb8(%rbp)
pushq 0xb0(%rbp)
pushq 0xa8(%rbp)
pushq 0xa0(%rbp)
pushq 0x98(%rbp)
pushq 0x90(%rbp)
pushq 0x88(%rbp)
pushq 0x80(%rbp)
pushq 0x78(%rbp)
pushq 0x70(%rbp)
pushq 0x68(%rbp)
pushq 0x60(%rbp)
pushq %rbx
pushq 0x50(%rbp)
pushq 0x48(%rbp)
pushq 0x40(%rbp)
movsd %xmm1, -0x50(%rbp)
callq 0x8c5a
movsd -0x50(%rbp), %xmm1
addq $0xe0, %rsp
ucomisd %xmm1, %xmm0
jbe 0xab5e
movq -0x48(%rbp), %rbx
movss -0x2c(%rbp), %xmm2
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdi
jmp 0xa68e
subq $0x8, %rsp
movq %r14, %rdi
movq %r14, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x2
pushq 0x108(%rbp)
pushq 0x100(%rbp)
movl 0xf8(%rbp), %eax
pushq %rax
movl 0xf0(%rbp), %eax
pushq %rax
pushq 0xe8(%rbp)
pushq 0xe0(%rbp)
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq 0xc8(%rbp)
pushq 0xc0(%rbp)
pushq 0xb8(%rbp)
pushq 0xb0(%rbp)
pushq 0xa8(%rbp)
pushq 0xa0(%rbp)
pushq 0x98(%rbp)
pushq 0x90(%rbp)
pushq 0x88(%rbp)
pushq %rbx
pushq 0x78(%rbp)
pushq 0x70(%rbp)
pushq 0x68(%rbp)
pushq 0x60(%rbp)
pushq 0x58(%rbp)
pushq 0x50(%rbp)
pushq 0x48(%rbp)
pushq 0x40(%rbp)
movsd %xmm1, -0x50(%rbp)
callq 0x8c5a
movsd -0x50(%rbp), %xmm1
addq $0xe0, %rsp
ucomisd %xmm1, %xmm0
jbe 0xac2f
movq -0x48(%rbp), %rbx
movss -0x2c(%rbp), %xmm2
jmp 0xacec
subq $0x8, %rsp
leaq -0xd0(%rbp), %rdi
movq %rdi, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x4
pushq 0x108(%rbp)
pushq 0x100(%rbp)
movl 0xf8(%rbp), %eax
pushq %rax
movl 0xf0(%rbp), %eax
pushq %rax
pushq 0xe8(%rbp)
pushq 0xe0(%rbp)
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq 0xc8(%rbp)
pushq 0xc0(%rbp)
pushq 0xb8(%rbp)
pushq 0xb0(%rbp)
pushq 0xa8(%rbp)
pushq 0xa0(%rbp)
pushq 0x98(%rbp)
pushq 0x90(%rbp)
pushq 0x88(%rbp)
pushq 0x80(%rbp)
pushq 0x78(%rbp)
pushq 0x70(%rbp)
pushq 0x68(%rbp)
pushq 0x60(%rbp)
pushq %rbx
pushq 0x50(%rbp)
pushq 0x48(%rbp)
pushq 0x40(%rbp)
callq 0x8c5a
addq $0xe0, %rsp
ucomisd -0x50(%rbp), %xmm0
movq -0x48(%rbp), %rbx
movss -0x2c(%rbp), %xmm2
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdi
jbe 0xa61a
jmp 0xa68e
subq $0x8, %rsp
movq %r14, %rdi
movq %r14, %rsi
movq 0x20(%rbp), %rdx
movq 0x28(%rbp), %rcx
movq 0x30(%rbp), %r8
movq 0x38(%rbp), %r9
pushq $0x4
pushq 0x108(%rbp)
pushq 0x100(%rbp)
movl 0xf8(%rbp), %eax
pushq %rax
movl 0xf0(%rbp), %eax
pushq %rax
pushq 0xe8(%rbp)
pushq 0xe0(%rbp)
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq 0xc8(%rbp)
pushq 0xc0(%rbp)
pushq 0xb8(%rbp)
pushq 0xb0(%rbp)
pushq 0xa8(%rbp)
pushq 0xa0(%rbp)
pushq 0x98(%rbp)
pushq 0x90(%rbp)
pushq 0x88(%rbp)
pushq %rbx
pushq 0x78(%rbp)
pushq 0x70(%rbp)
pushq 0x68(%rbp)
pushq 0x60(%rbp)
pushq 0x58(%rbp)
pushq 0x50(%rbp)
pushq 0x48(%rbp)
pushq 0x40(%rbp)
callq 0x8c5a
addq $0xe0, %rsp
ucomisd -0x50(%rbp), %xmm0
movq -0x48(%rbp), %rbx
movss -0x2c(%rbp), %xmm2
jbe 0xa72b
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdi
incq %rdi
incq %r13
incq %r15
cmpq $0x5, %r13
jne 0xa4a4
jmp 0xa455
movq -0x48(%rbp), %rbx
jmp 0xa455
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq