// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rdi
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 0x11b0
cmpl $-0x1, %eax
je 0x2cd9
movq %r15, -0x50(%rbp)
leaq 0xa6f5(%rip), %rsi      # 0xd23b
movq %rbx, -0x48(%rbp)
movq %rbx, %rdi
callq 0x11c0
testq %rax, %rax
je 0x2ce2
movq %rax, %r15
xorl %r13d, %r13d
movq %r15, %rdi
leaq 0xa68f(%rip), %rsi      # 0xd1fa
leaq -0x3c(%rbp), %rdx
leaq -0x32(%rbp), %rcx
xorl %eax, %eax
callq 0x1060
cmpl $-0x1, %eax
je 0x2bc4
xorl %ebx, %ebx
cmpq $0x5, %rbx
je 0x2b9a
movsbl -0x3c(%rbp,%rbx), %edi
callq 0x130c
movb %al, (%r12,%rbx)
incq %rbx
jmp 0x2b81
cmpb $0x69, -0x32(%rbp)
movsd 0xa482(%rip), %xmm0     # 0xd028
je 0x2bb1
leaq -0x32(%rbp), %rdi
callq 0x1090
movq -0x60(%rbp), %rax
movsd %xmm0, (%rax,%r13,8)
incq %r13
addq $0x5, %r12
jmp 0x2b61
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 0x11b0
cmpl $-0x1, %eax
je 0x2cd9
leaq 0xa5fd(%rip), %rsi      # 0xd23b
movq %rbx, %rdi
callq 0x11c0
testq %rax, %rax
je 0x2cef
movq %rax, %r12
movq %rbx, %rdi
callq 0x1030
leaq -0x32(%rbp), %r13
xorl %ebx, %ebx
movq %r12, %rdi
leaq 0xa590(%rip), %rsi      # 0xd1fa
leaq -0x3c(%rbp), %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x1060
cmpl $-0x1, %eax
je 0x2cc2
xorl %r15d, %r15d
cmpq $0x5, %r15
je 0x2c9a
movsbl -0x3c(%rbp,%r15), %edi
callq 0x130c
movb %al, (%r14,%r15)
incq %r15
jmp 0x2c80
cmpb $0x69, -0x32(%rbp)
movsd 0xa382(%rip), %xmm0     # 0xd028
je 0x2cb0
movq %r13, %rdi
callq 0x1090
movq -0x58(%rbp), %rax
movsd %xmm0, (%rax,%rbx,8)
incq %rbx
addq $0x5, %r14
jmp 0x2c60
movq %r12, %rdi
callq 0x10a0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa459(%rip), %rdi      # 0xd139
jmp 0x2cf6
leaq 0xa46c(%rip), %rdi      # 0xd155
movq -0x48(%rbp), %rsi
jmp 0x2cf9
leaq 0xa45f(%rip), %rdi      # 0xd155
movq %rbx, %rsi
xorl %eax, %eax
callq 0x10c0
pushq $0x1
popq %rdi
callq 0x11f0