// File: /workspace/github_c_makefile_star2_O2/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 $0x28, %rsp
movq %r9, -0x50(%rbp)
movq %r8, -0x48(%rbp)
movq %rcx, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq %rsi, %r13
movq %rdi, %rbx
movq 0x10(%rbp), %r14
movq %r14, %rdi
callq 0x10b0
addl $0x14, %eax
movslq %eax, %r15
pushq $0x1
popq %rdi
movq %r15, %rsi
callq 0x1140
movq %rax, %r12
movq %rax, %rdi
movq %r14, -0x30(%rbp)
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, %rdi
xorl %esi, %esi
callq 0x11b0
cmpl $-0x1, %eax
je 0x2370
leaq 0xafae(%rip), %rsi      # 0xd23b
movq %r12, %rdi
callq 0x11c0
testq %rax, %rax
je 0x2379
movq %rax, %r14
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1100
movq %r12, %rdi
movq -0x30(%rbp), %rsi
callq 0x1050
movq %r12, %rdi
callq 0x10b0
movabsq $0x68642e73706f6f6c, %rcx # imm = 0x68642E73706F6F6C
movq %rcx, (%r12,%rax)
movb $0x0, 0x8(%r12,%rax)
movq %r12, %rdi
xorl %esi, %esi
callq 0x11b0
cmpl $-0x1, %eax
je 0x2370
leaq 0xaf4b(%rip), %rsi      # 0xd23b
movq %r12, %rdi
callq 0x11c0
testq %rax, %rax
je 0x2379
movq %rax, %r15
movq %r12, %rdi
callq 0x1030
xorl %r12d, %r12d
cmpq $0xf0, %r12
je 0x2352
leaq (%r12,%r13), %rsi
movq -0x38(%rbp), %rax
leaq (%rax,%r12), %rdx
leaq (%rbx,%r12), %rcx
movq %r14, %rdi
callq 0x1362
movq -0x48(%rbp), %rax
leaq (%rax,%r12), %rsi
movq -0x50(%rbp), %rax
leaq (%rax,%r12), %rdx
movq -0x40(%rbp), %rax
leaq (%rax,%r12), %rcx
movq %r15, %rdi
callq 0x1362
addq $0x8, %r12
jmp 0x230b
movq %r14, %rdi
callq 0x10a0
movq %r15, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10a0
leaq 0xadc2(%rip), %rdi      # 0xd139
jmp 0x2380
leaq 0xadd5(%rip), %rdi      # 0xd155
movq %r12, %rsi
xorl %eax, %eax
callq 0x10c0
pushq $0x1
popq %rdi
callq 0x11f0