// File: /workspace/github_c_makefile_star2_O3/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 %r8, %r12
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r13
movl 0xc8(%rbp), %eax
movl 0xc0(%rbp), %r10d
minss %xmm0, %xmm1
addss 0x496a(%rip), %xmm1     # 0xe100
movss %xmm1, -0x2c(%rbp)
subq $0x8, %rsp
movq %r9, -0x40(%rbp)
pushq $0x1
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
pushq %rax
pushq %r10
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 0x8827
addq $0xe0, %rsp
xorps %xmm1, %xmm1
cvtss2sd -0x2c(%rbp), %xmm1
xorl %eax, %eax
ucomisd %xmm1, %xmm0
ja 0x9bea
subq $0x8, %rsp
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %r12, %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, -0x38(%rbp)
callq 0x8827
addq $0xe0, %rsp
ucomisd -0x38(%rbp), %xmm0
jbe 0x98da
xorl %eax, %eax
jmp 0x9bea
subq $0x8, %rsp
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %r12, %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 0x8827
addq $0xe0, %rsp
ucomisd -0x38(%rbp), %xmm0
movl $0x0, %eax
ja 0x9bea
movq %r15, -0x48(%rbp)
movq -0x40(%rbp), %r15
movq %rbx, %rdi
callq 0x10b0
testl %eax, %eax
jle 0x99d9
leaq -0xd0(%rbp), %rcx
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, %rdx
movzbl -0x1(%rbx,%rdx), %esi
cmpl $0x41, %esi
je 0x99c4
cmpl $0x43, %esi
je 0x99bf
cmpl $0x54, %esi
jne 0x99c9
movb $0x41, %sil
jmp 0x99cc
movb $0x47, %sil
jmp 0x99cc
movb $0x54, %sil
jmp 0x99cc
movb $0x43, %sil
movb %sil, (%rcx)
incq %rcx
decq %rdx
jne 0x99a6
jmp 0x99db
xorl %eax, %eax
movb $0x0, -0xd0(%rbp,%rax)
movq %r13, %rdi
callq 0x10b0
testl %eax, %eax
jle 0x9a47
leaq -0x90(%rbp), %rdi
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, %r8
movq %r15, %rbx
movq 0xb0(%rbp), %r10
movq 0xb8(%rbp), %r11
movq -0x48(%rbp), %rdx
movzbl -0x1(%r13,%r8), %esi
cmpl $0x41, %esi
je 0x9a32
cmpl $0x43, %esi
je 0x9a2d
cmpl $0x54, %esi
jne 0x9a37
movb $0x41, %sil
jmp 0x9a3a
movb $0x47, %sil
jmp 0x9a3a
movb $0x54, %sil
jmp 0x9a3a
movb $0x43, %sil
movb %sil, (%rdi)
incq %rdi
decq %r8
jne 0x9a13
jmp 0x9a5e
xorl %eax, %eax
movq %r15, %rbx
movq 0xb0(%rbp), %r10
movq 0xb8(%rbp), %r11
movq -0x48(%rbp), %rdx
movq %r14, -0x50(%rbp)
movb $0x0, -0x90(%rbp,%rax)
subq $0x8, %rsp
leaq -0xd0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movq %r14, %rcx
movq %rdx, %r14
movq %r12, %r8
movq %rbx, %r9
pushq $0x2
movq 0xd8(%rbp), %rax
pushq %rax
movq 0xd0(%rbp), %rax
pushq %rax
movl 0xc8(%rbp), %eax
pushq %rax
movl 0xc0(%rbp), %eax
pushq %rax
pushq %r11
pushq %r10
movq 0xa8(%rbp), %rax
pushq %rax
movq 0xa0(%rbp), %rax
pushq %rax
movq 0x98(%rbp), %rax
pushq %rax
movq 0x90(%rbp), %rax
pushq %rax
movq 0x88(%rbp), %rax
pushq %rax
movq 0x80(%rbp), %rax
pushq %rax
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
movq 0x38(%rbp), %rax
pushq %rax
movq 0x30(%rbp), %rax
pushq %rax
movq 0x28(%rbp), %rax
pushq %rax
movq 0x20(%rbp), %rax
pushq %rax
movq 0x18(%rbp), %rax
pushq %rax
movq 0x10(%rbp), %rax
pushq %rax
movq %r10, %r15
movq %r11, %r13
callq 0x8827
addq $0xe0, %rsp
ucomisd -0x38(%rbp), %xmm0
movl $0x0, %eax
ja 0x9bea
subq $0x8, %rsp
leaq -0xd0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movq %r14, %rdx
movq -0x50(%rbp), %rcx
movq %r12, %r8
movq %rbx, %r9
pushq $0x3
pushq 0xd8(%rbp)
pushq 0xd0(%rbp)
movl 0xc8(%rbp), %eax
pushq %rax
movl 0xc0(%rbp), %eax
pushq %rax
pushq %r13
pushq %r15
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 0x8827
addq $0xe0, %rsp
cvtsd2ss %xmm0, %xmm0
xorl %eax, %eax
ucomiss -0x2c(%rbp), %xmm0
setbe %al
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq