// File: /workspace/github_c_makefile_star2_O0/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
subq $0x50, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq 0x10(%rbp), %rdi
callq 0x10a0
addq $0x14, %rax
movl %eax, -0x34(%rbp)
movslq -0x34(%rbp), %rdi
callq 0x1160
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
movslq -0x34(%rbp), %rdx
xorl %esi, %esi
callq 0x10e0
movq -0x50(%rbp), %rdi
movq 0x10(%rbp), %rsi
callq 0x1050
movq -0x50(%rbp), %rdi
leaq 0x14c35(%rip), %rsi     # 0x1731d
callq 0x11b0
movq -0x50(%rbp), %rdi
xorl %esi, %esi
callq 0x1180
cmpl $-0x1, %eax
jne 0x2719
movq -0x50(%rbp), %rsi
leaq 0x14b11(%rip), %rdi     # 0x17219
movb $0x0, %al
callq 0x10b0
movl $0x1, %edi
callq 0x11c0
movq -0x50(%rbp), %rdi
leaq 0x15248(%rip), %rsi     # 0x1796c
callq 0x1190
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x2750
movq -0x50(%rbp), %rsi
leaq 0x14af6(%rip), %rdi     # 0x17235
movb $0x0, %al
callq 0x10b0
movl $0x1, %edi
callq 0x11c0
movq -0x50(%rbp), %rdi
movslq -0x34(%rbp), %rdx
xorl %esi, %esi
callq 0x10e0
movq -0x50(%rbp), %rdi
movq 0x10(%rbp), %rsi
callq 0x1050
movq -0x50(%rbp), %rdi
leaq 0x14baf(%rip), %rsi     # 0x17326
callq 0x11b0
movq -0x50(%rbp), %rdi
xorl %esi, %esi
callq 0x1180
cmpl $-0x1, %eax
jne 0x27a8
movq -0x50(%rbp), %rsi
leaq 0x14a82(%rip), %rdi     # 0x17219
movb $0x0, %al
callq 0x10b0
movl $0x1, %edi
callq 0x11c0
movq -0x50(%rbp), %rdi
leaq 0x151b9(%rip), %rsi     # 0x1796c
callq 0x1190
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x27df
movq -0x50(%rbp), %rsi
leaq 0x14a67(%rip), %rdi     # 0x17235
movb $0x0, %al
callq 0x10b0
movl $0x1, %edi
callq 0x11c0
movq -0x50(%rbp), %rdi
callq 0x1030
movl $0x0, -0x34(%rbp)
cmpl $0x1e, -0x34(%rbp)
jge 0x286c
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movslq -0x34(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x18(%rbp), %rdx
movslq -0x34(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x8(%rbp), %rcx
movslq -0x34(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rcx
callq 0x1340
movq -0x48(%rbp), %rdi
movq -0x28(%rbp), %rsi
movslq -0x34(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x30(%rbp), %rdx
movslq -0x34(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x20(%rbp), %rcx
movslq -0x34(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rcx
callq 0x1340
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x27ef
movq -0x40(%rbp), %rdi
callq 0x1090
movq -0x48(%rbp), %rdi
callq 0x1090
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)