// File: /workspace/github_c_makefile_star2_O0/asford[P]tmalign/./TMalign.h
// Function: sec_str(double, double, double, double, double, double)
int sec_str(double dis13, double dis14, double dis15, double dis24, double dis25, double dis35)
{
	int s=1;
	
	double delta=2.1;
	if(fabs(dis15-6.37)<delta)
	{
		if(fabs(dis14-5.18)<delta)
		{
			if(fabs(dis25-5.18)<delta)
			{
				if(fabs(dis13-5.45)<delta)
				{
					if(fabs(dis24-5.45)<delta)
					{
						if(fabs(dis35-5.45)<delta)
						{
							s=2; //helix						
							return s;
						}
					}
				}
			}
		}
	}

	delta=1.42;
	if(fabs(dis15-13)<delta)
	{
		if(fabs(dis14-10.4)<delta)
		{
			if(fabs(dis25-10.4)<delta)
			{
				if(fabs(dis13-6.1)<delta)
				{
					if(fabs(dis24-6.1)<delta)
					{
						if(fabs(dis35-6.1)<delta)
						{
							s=4; //strand
							return s;
						}
					}
				}
			}
		}
	}

	if(dis15 < 8)
	{
		s=3; //turn
	}	  


	return s;
}

// Assembly:
movsd %xmm0, -0x10(%rsp)
movsd %xmm1, -0x18(%rsp)
movsd %xmm2, -0x20(%rsp)
movsd %xmm3, -0x28(%rsp)
movsd %xmm4, -0x30(%rsp)
movsd %xmm5, -0x38(%rsp)
movl $0x1, -0x3c(%rsp)
movsd 0x180ffc(%rip), %xmm0   # 0x58c050
movsd %xmm0, -0x48(%rsp)
movsd -0x20(%rsp), %xmm1
movsd 0x180fe0(%rip), %xmm0   # 0x58c048
subsd %xmm0, %xmm1
movaps 0x1810cd(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b17b
movsd -0x18(%rsp), %xmm1
movsd 0x180fc3(%rip), %xmm0   # 0x58c058
subsd %xmm0, %xmm1
movaps 0x1810a0(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b179
movsd -0x30(%rsp), %xmm1
movsd 0x180f96(%rip), %xmm0   # 0x58c058
subsd %xmm0, %xmm1
movaps 0x181073(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b177
movsd -0x10(%rsp), %xmm1
movsd 0x180f71(%rip), %xmm0   # 0x58c060
subsd %xmm0, %xmm1
movaps 0x181046(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b175
movsd -0x28(%rsp), %xmm1
movsd 0x180f48(%rip), %xmm0   # 0x58c060
subsd %xmm0, %xmm1
movaps 0x18101d(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b173
movsd -0x38(%rsp), %xmm1
movsd 0x180f1f(%rip), %xmm0   # 0x58c060
subsd %xmm0, %xmm1
movaps 0x180ff4(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b171
movl $0x2, -0x3c(%rsp)
movl -0x3c(%rsp), %eax
movl %eax, -0x4(%rsp)
jmp 0x40b2c7
jmp 0x40b173
jmp 0x40b175
jmp 0x40b177
jmp 0x40b179
jmp 0x40b17b
movsd 0x180eed(%rip), %xmm0   # 0x58c070
movsd %xmm0, -0x48(%rsp)
movsd -0x20(%rsp), %xmm1
movsd 0x180ed1(%rip), %xmm0   # 0x58c068
subsd %xmm0, %xmm1
movaps 0x180f9e(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b2a7
movsd -0x18(%rsp), %xmm1
movsd 0x180eb4(%rip), %xmm0   # 0x58c078
subsd %xmm0, %xmm1
movaps 0x180f71(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b2a5
movsd -0x30(%rsp), %xmm1
movsd 0x180e87(%rip), %xmm0   # 0x58c078
subsd %xmm0, %xmm1
movaps 0x180f44(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b2a3
movsd -0x10(%rsp), %xmm1
movsd 0x180e62(%rip), %xmm0   # 0x58c080
subsd %xmm0, %xmm1
movaps 0x180f17(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b2a1
movsd -0x28(%rsp), %xmm1
movsd 0x180e39(%rip), %xmm0   # 0x58c080
subsd %xmm0, %xmm1
movaps 0x180eee(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b29f
movsd -0x38(%rsp), %xmm1
movsd 0x180e10(%rip), %xmm0   # 0x58c080
subsd %xmm0, %xmm1
movaps 0x180ec5(%rip), %xmm0   # 0x58c140
pand %xmm0, %xmm1
movsd -0x48(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x40b29d
movl $0x4, -0x3c(%rsp)
movl -0x3c(%rsp), %eax
movl %eax, -0x4(%rsp)
jmp 0x40b2c7
jmp 0x40b29f
jmp 0x40b2a1
jmp 0x40b2a3
jmp 0x40b2a5
jmp 0x40b2a7
movsd 0x180dd9(%rip), %xmm0   # 0x58c088
ucomisd -0x20(%rsp), %xmm0
jbe 0x40b2bf
movl $0x3, -0x3c(%rsp)
movl -0x3c(%rsp), %eax
movl %eax, -0x4(%rsp)
movl -0x4(%rsp), %eax
retq
nopl (%rax)