// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: getLoop
void getLoop(double hairpinLoopEntropies[30],double interiorLoopEntropies[30],double bulgeLoopEntropies[30],double hairpinLoopEnthalpies[30],double interiorLoopEnthalpies[30],double bulgeLoopEnthalpies[30],char *path)
{
        int k;
        FILE *sFile, *hFile;
        char *line;

        k=strlen(path)+20;
        line=(char *)malloc(k);
        memset(line,'\0',k);
        strcpy(line,path);
        strcat(line,"loops.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);
        }

        memset(line,'\0',k);
        strcpy(line,path);
        strcat(line,"loops.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);

        for (k = 0; k < 30; ++k)
        {
                readLoop(sFile, &interiorLoopEntropies[k], &bulgeLoopEntropies[k], &hairpinLoopEntropies[k]);
                readLoop(hFile, &interiorLoopEnthalpies[k], &bulgeLoopEnthalpies[k], &hairpinLoopEnthalpies[k]);
        }
        fclose(sFile);
        fclose(hFile);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, -0x60(%rbp)
movq %r8, -0x58(%rbp)
movq %rcx, -0x68(%rbp)
movq %rdx, -0x50(%rbp)
movq %rsi, %rbx
movq %rdi, -0x48(%rbp)
movq 0x10(%rbp), %r14
movq %r14, %rdi
callq 0x10b0
addl $0x14, %eax
movslq %eax, %r13
movq %r13, %rdi
callq 0x1190
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %r15
movq %r13, %rdx
callq 0x1100
movq %r12, %rdi
movq %r14, %r13
movq %r14, %rsi
callq 0x1050
movq %r12, %rdi
callq 0x10b0
movabsq $0x73642e73706f6f6c, %rcx # imm = 0x73642E73706F6F6C
movq %rcx, (%r12,%rax)
movb $0x0, 0x8(%r12,%rax)
movq %r12, %r14
movq %r12, %rdi
xorl %esi, %esi
callq 0x11b0
cmpl $-0x1, %eax
je 0x2450
leaq 0xbeb9(%rip), %rsi      # 0xe20e
movq %r14, %rdi
callq 0x11c0
testq %rax, %rax
je 0x2459
movq %rax, %r12
movq %rbx, -0x40(%rbp)
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1100
movq %r14, %rdi
movq %r13, %rsi
callq 0x1050
movq %r14, %rdi
callq 0x10b0
movabsq $0x68642e73706f6f6c, %rcx # imm = 0x68642E73706F6F6C
movq %rcx, (%r14,%rax)
movb $0x0, 0x8(%r14,%rax)
movq %r14, %rdi
xorl %esi, %esi
callq 0x11b0
cmpl $-0x1, %eax
je 0x2450
movq %r12, -0x38(%rbp)
movq -0x50(%rbp), %r15
leaq 0xbe4b(%rip), %rsi      # 0xe20e
movq %r14, %rdi
callq 0x11c0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2459
movq %r14, %rdi
callq 0x1030
xorl %r12d, %r12d
movq -0x40(%rbp), %r14
movq -0x48(%rbp), %r13
movq -0x38(%rbp), %rbx
leaq (%r14,%r12), %rsi
leaq (%r15,%r12), %rdx
leaq (%r12,%r13), %rcx
movq %rbx, %rdi
callq 0x136e
movq -0x58(%rbp), %rax
leaq (%rax,%r12), %rsi
movq -0x60(%rbp), %rax
leaq (%rax,%r12), %rdx
movq -0x68(%rbp), %rax
leaq (%rax,%r12), %rcx
movq -0x30(%rbp), %rdi
callq 0x136e
addq $0x8, %r12
cmpq $0xf0, %r12
jne 0x23ef
movq %rbx, %rdi
callq 0x10a0
movq -0x30(%rbp), %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10a0
leaq 0xbcb2(%rip), %rdi      # 0xe109
jmp 0x2460
leaq 0xbcc5(%rip), %rdi      # 0xe125
movq %r14, %rsi
xorl %eax, %eax
callq 0x10c0
movl $0x1, %edi
callq 0x11f0