// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: check_structure
int check_structure(char Forward[],char Reverse[],float Tm1,float Tm2,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[])
{
	float threshold;
	double TH;
	char rev1[60],rev2[60];

	if(Tm1>Tm2)
		threshold=Tm2-10;
	else
		threshold=Tm1-10;

	TH=thal(Forward,Reverse,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(TH>threshold)
		return 0;

	TH=thal(Forward,Reverse,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(TH>threshold)
		return 0;

	TH=thal(Forward,Reverse,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,3);
	if(TH>threshold)
		return 0;

	reverse(Reverse,rev1,strlen(Reverse));
	reverse(Forward,rev2,strlen(Forward));
	TH=thal(rev1,rev2,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(TH>threshold)
		return 0;

	TH=thal(rev1,rev2,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,3);
	if((float)TH>threshold)
		return 0;

	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r13
movl 0xc8(%rbp), %r10d
movl 0xc0(%rbp), %eax
minss %xmm0, %xmm1
addss 0x46d8(%rip), %xmm1     # 0xe0f0
movss %xmm1, -0x2c(%rbp)
subq $0x8, %rsp
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
pushq $0x1
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq %r10
pushq %rax
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)
pushq 0x38(%rbp)
pushq 0x30(%rbp)
pushq 0x28(%rbp)
pushq 0x20(%rbp)
pushq 0x18(%rbp)
pushq 0x10(%rbp)
callq 0x8c02
addq $0xe0, %rsp
xorps %xmm1, %xmm1
cvtss2sd -0x2c(%rbp), %xmm1
xorl %r14d, %r14d
ucomisd %xmm1, %xmm0
ja 0x9d97
subq $0x8, %rsp
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq -0x38(%rbp), %r8
movq -0x40(%rbp), %r9
pushq $0x2
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
movl 0xc8(%rbp), %eax
pushq %rax
movl 0xc0(%rbp), %eax
pushq %rax
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)
pushq 0x38(%rbp)
pushq 0x30(%rbp)
pushq 0x28(%rbp)
pushq 0x20(%rbp)
pushq 0x18(%rbp)
pushq 0x10(%rbp)
movsd %xmm1, -0x48(%rbp)
callq 0x8c02
addq $0xe0, %rsp
ucomisd -0x48(%rbp), %xmm0
ja 0x9d97
subq $0x8, %rsp
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq -0x38(%rbp), %r8
movq -0x40(%rbp), %r9
pushq $0x3
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
movl 0xc8(%rbp), %eax
pushq %rax
movl 0xc0(%rbp), %eax
pushq %rax
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)
pushq 0x38(%rbp)
pushq 0x30(%rbp)
pushq 0x28(%rbp)
pushq 0x20(%rbp)
pushq 0x18(%rbp)
pushq 0x10(%rbp)
callq 0x8c02
movsd -0x48(%rbp), %xmm1
addq $0xe0, %rsp
ucomisd %xmm1, %xmm0
ja 0x9d97
movq %rbx, %rdi
callq 0x10b0
leaq -0x90(%rbp), %rsi
movq %rbx, %rdi
movl %eax, %edx
callq 0x998f
movq %r13, %rdi
callq 0x10b0
leaq -0xd0(%rbp), %rbx
movq %r13, %rdi
movq %rbx, %rsi
movl %eax, %edx
callq 0x998f
subq $0x8, %rsp
leaq -0x90(%rbp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq -0x38(%rbp), %r8
movq -0x40(%rbp), %r9
pushq $0x2
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
movl 0xc8(%rbp), %eax
pushq %rax
movl 0xc0(%rbp), %eax
pushq %rax
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)
pushq 0x38(%rbp)
pushq 0x30(%rbp)
pushq 0x28(%rbp)
pushq 0x20(%rbp)
pushq 0x18(%rbp)
pushq 0x10(%rbp)
callq 0x8c02
addq $0xe0, %rsp
ucomisd -0x48(%rbp), %xmm0
ja 0x9d97
subq $0x8, %rsp
leaq -0x90(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
movq %r12, %rdx
movq %r15, %rcx
movq -0x38(%rbp), %r8
movq -0x40(%rbp), %r9
pushq $0x3
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
movl 0xc8(%rbp), %eax
pushq %rax
movl 0xc0(%rbp), %eax
pushq %rax
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)
pushq 0x38(%rbp)
pushq 0x30(%rbp)
pushq 0x28(%rbp)
pushq 0x20(%rbp)
pushq 0x18(%rbp)
pushq 0x10(%rbp)
callq 0x8c02
addq $0xe0, %rsp
cvtsd2ss %xmm0, %xmm0
xorl %r14d, %r14d
ucomiss -0x2c(%rbp), %xmm0
setbe %r14b
movl %r14d, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq