// File: /workspace/github_c_makefile_star2_O3/jiqingxiaoxi[P]RPA/RPA.c
// Function: getTriloop
void getTriloop(char *triloopEntropies1,char *triloopEnthalpies1,double *triloopEntropies2,double *triloopEnthalpies2,char *path)
{
        FILE *sFile, *hFile;
        int i,turn;
        char *line,seq[10],value[10];
        
        i=strlen(path)+20;
        line=(char *)malloc(i);
        memset(line,'\0',i);
        strcpy(line,path);
        strcat(line,"triloop.ds");
        if(access(line,0)==-1)
        {
                printf("Error! Don't have %s file!\n",line);
                exit(1);
        }
        sFile=fopen(line,"r");
        if(sFile==NULL)
        {
                printf("Error! Can't open the %s file!\n",line);
                exit(1);
        }
	
	turn=0;
        while(fscanf(sFile,"%s\t%s\n",seq,value)!=EOF)
        {
		for (i=0;i<5;i++)
			triloopEntropies1[5*turn+i]=str2int(seq[i]);
		if(value[0]=='i')
			triloopEntropies2[turn]=1.0*INFINITY;
		else
			triloopEntropies2[turn]=atof(value);
		turn++;
        }
        fclose(sFile);

	i=strlen(path)+20;
        memset(line,'\0',i);
        strcpy(line,path);
        strcat(line,"triloop.dh");
        if(access(line,0)==-1)
        {
                printf("Error! Don't have %s file!\n",line);
                exit(1);
        }
        hFile=fopen(line,"r");
        if(hFile==NULL)
        {
                printf("Error! Can't open the %s file!\n",line);
                exit(1);
        }
        free(line);

	turn=0;
        while(fscanf(hFile,"%s\t%s\n",seq,value)!=EOF)
        {
		for(i=0;i<5;i++)
			triloopEnthalpies1[turn*5+i]=str2int(seq[i]);
		if(value[0]=='i')
			triloopEnthalpies2[turn]=1.0*INFINITY;
		else
			triloopEnthalpies2[turn]=atof(value);
		turn++;
        }
        fclose(hFile);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r15
movq %rcx, -0x58(%rbp)
movq %rdx, -0x60(%rbp)
movq %rsi, %r14
movq %rdi, %r12
movq %r8, %rdi
callq 0x10b0
addl $0x14, %eax
movslq %eax, %rsi
movl $0x1, %edi
callq 0x1140
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
callq 0x1050
movq %rbx, %rdi
callq 0x10b0
movabsq $0x2e706f6f6c697274, %rcx # imm = 0x2E706F6F6C697274
movq %rcx, (%rbx,%rax)
movl $0x73642e, 0x7(%rbx,%rax) # imm = 0x73642E
movq %rbx, %rdi
xorl %esi, %esi
callq 0x11c0
cmpl $-0x1, %eax
je 0x2de4
movq %r15, -0x50(%rbp)
leaq 0xb5fe(%rip), %rsi      # 0xe21b
movq %rbx, -0x48(%rbp)
movq %rbx, %rdi
callq 0x11d0
testq %rax, %rax
je 0x2ded
movq %rax, %r15
leaq 0xb59e(%rip), %rsi      # 0xe1da
leaq -0x3c(%rbp), %rdx
leaq -0x32(%rbp), %rcx
movq %rax, %rdi
xorl %eax, %eax
callq 0x1060
cmpl $-0x1, %eax
je 0x2cb5
xorl %r13d, %r13d
xorl %ebx, %ebx
movsbl -0x3c(%rbp,%rbx), %edi
callq 0x131c
movb %al, (%r12,%rbx)
incq %rbx
cmpq $0x5, %rbx
jne 0x2c58
cmpb $0x69, -0x32(%rbp)
movsd 0xb39d(%rip), %xmm0     # 0xe018
je 0x2c86
leaq -0x32(%rbp), %rdi
callq 0x1090
movq -0x60(%rbp), %rax
movsd %xmm0, (%rax,%r13,8)
incq %r13
movq %r15, %rdi
leaq 0xb53d(%rip), %rsi      # 0xe1da
leaq -0x3c(%rbp), %rdx
leaq -0x32(%rbp), %rcx
xorl %eax, %eax
callq 0x1060
addq $0x5, %r12
cmpl $-0x1, %eax
jne 0x2c56
movq %r15, %rdi
callq 0x10a0
movq -0x50(%rbp), %r15
movq %r15, %rdi
callq 0x10b0
shlq $0x20, %rax
movabsq $0x1400000000, %rdx     # imm = 0x1400000000
addq %rax, %rdx
sarq $0x20, %rdx
movq -0x48(%rbp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1100
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1050
movq %rbx, %rdi
callq 0x10b0
movabsq $0x2e706f6f6c697274, %rcx # imm = 0x2E706F6F6C697274
movq %rcx, (%rbx,%rax)
movl $0x68642e, 0x7(%rbx,%rax) # imm = 0x68642E
movq %rbx, %rdi
xorl %esi, %esi
callq 0x11c0
cmpl $-0x1, %eax
je 0x2de4
leaq 0xb4ec(%rip), %rsi      # 0xe21b
movq %rbx, %rdi
callq 0x11d0
testq %rax, %rax
je 0x2dfa
movq %rax, %r12
movq %rbx, %rdi
callq 0x1030
leaq 0xb488(%rip), %rsi      # 0xe1da
leaq -0x3c(%rbp), %rdx
leaq -0x32(%rbp), %rcx
movq %r12, %rdi
xorl %eax, %eax
callq 0x1060
cmpl $-0x1, %eax
je 0x2dcd
leaq -0x32(%rbp), %r13
xorl %ebx, %ebx
xorl %r15d, %r15d
movsbl -0x3c(%rbp,%r15), %edi
callq 0x131c
movb %al, (%r14,%r15)
incq %r15
cmpq $0x5, %r15
jne 0x2d72
cmpb $0x69, -0x32(%rbp)
movsd 0xb282(%rip), %xmm0     # 0xe018
je 0x2da0
movq %r13, %rdi
callq 0x1090
movq -0x58(%rbp), %rax
movsd %xmm0, (%rax,%rbx,8)
incq %rbx
movq %r12, %rdi
leaq 0xb424(%rip), %rsi      # 0xe1da
leaq -0x3c(%rbp), %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x1060
addq $0x5, %r14
cmpl $-0x1, %eax
jne 0x2d6f
movq %r12, %rdi
callq 0x10a0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb32e(%rip), %rdi      # 0xe119
jmp 0x2e01
leaq 0xb341(%rip), %rdi      # 0xe135
movq -0x48(%rbp), %rsi
jmp 0x2e04
leaq 0xb334(%rip), %rdi      # 0xe135
movq %rbx, %rsi
xorl %eax, %eax
callq 0x10c0
movl $0x1, %edi
callq 0x1200