LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/Cotix[P]cReddit/libreddit/user.c
// Function: redditUserLoggedLogin
EXPORT_SYMBOL RedditErrno redditUserLoggedLogin (RedditUserLogged *log, char *name, char *passwd)
{
    char loginInfo[4096];
    char tf[6];
    RedditErrno response = REDDIT_SUCCESS;

    TokenParserResult res;

    TokenIdent ids[] = {
        ADD_TOKEN_IDENT_FUNC("errors", handleErrorArray),
        ADD_TOKEN_IDENT_FUNC("cookie", handleCookie),
        {0}
    };

    /* If passwd or user isn't set then just exit */
    if (!(passwd) || !(name))
        return REDDIT_ERROR_USER;

    /* Remove any session cookie we may still have -- We'll get a new one after login
     * If you want to handle multiple-users logged on, make sure to switch out the global
     * state */
    redditRemoveCookie("reddit_session");

    sprintf(loginInfo, "api_type=json&rem=%s&user=%s&passwd=%s", trueFalseString(tf, log->stayLoggedOn), name, passwd);


    res = redditRunParser(REDDIT_API_LOGIN, loginInfo, ids, &response);

    if (res != TOKEN_PARSER_SUCCESS)
        response = REDDIT_ERROR_RESPONSE;

    if (response == REDDIT_SUCCESS)
        log->userState = REDDIT_USER_LOGGED_ON;
    else
        log->userState = REDDIT_USER_OFFLINE;

    return response;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10c0, %rsp           # imm = 0x10C0
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0x0, 0x4(%rsp)
leaq 0x39f1(%rip), %rsi      # 0x8d60
leaq 0x10(%rsp), %rdi
movl $0xa8, %edx
callq 0x2140
testq %r14, %r14
sete %cl
testq %r15, %r15
sete %dl
movl $0x4, %eax
orb %cl, %dl
jne 0x5404
leaq 0xf20(%rip), %rdi       # 0x62ba
callq 0x2180
movzbl 0x4(%rbx), %esi
leaq 0xa(%rsp), %rdi
callq 0x4551
leaq 0xf15(%rip), %rsi       # 0x62c9
xorl %ebp, %ebp
leaq 0xc0(%rsp), %r12
movq %r12, %rdi
movq %rax, %rdx
movq %r15, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x2230
leaq 0xf18(%rip), %rdi       # 0x62f0
leaq 0x10(%rsp), %rdx
leaq 0x4(%rsp), %rcx
movq %r12, %rsi
xorl %eax, %eax
callq 0x4d7a
testl %eax, %eax
je 0x53f8
movl $0x2, 0x4(%rsp)
movl 0x4(%rsp), %eax
movl %eax, %ecx
negl %ecx
sbbl %ebp, %ebp
movl %ebp, (%rbx)
addq $0x10c0, %rsp           # imm = 0x10C0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Cotix[P]cReddit/libreddit/user.c
// Function: redditUserLoggedUpdate
EXPORT_SYMBOL RedditErrno redditUserLoggedUpdate (RedditUserLogged *user)
{
    TokenParserResult res;
    char *kindStr = NULL;

    TokenIdent ids[] = {
        ADD_TOKEN_IDENT_STRING("kind", kindStr),
        ADD_TOKEN_IDENT_FUNC("data", userUpdateHelper),
        {0}
    };

    res = redditRunParser(REDDIT_API_ME, NULL, ids, &(user->userInfo));
    free(kindStr);

    if (res == TOKEN_PARSER_SUCCESS)
        return REDDIT_SUCCESS;
    else
        return REDDIT_ERROR_RESPONSE;

}

// Assembly:
pushq %r14
pushq %rbx
subq $0xb8, %rsp
xorl %eax, %eax
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
leaq 0xbec(%rip), %rcx       # 0x6106
leaq 0x10(%rsp), %rdx
movq %rcx, (%rdx)
movq $0x2, 0x8(%rdx)
movq %r14, 0x10(%rdx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdx)
movl $0x0, 0x28(%rdx)
movb $0x1, 0x2c(%rdx)
movq %rax, 0x30(%rdx)
leaq 0xbc0(%rip), %rcx       # 0x610b
movq %rcx, 0x38(%rdx)
movabsq $0x200000003, %rcx      # imm = 0x200000003
movq %rcx, 0x40(%rdx)
movups %xmm0, 0x48(%rdx)
movups %xmm0, 0x55(%rdx)
leaq 0x4f(%rip), %rcx        # 0x55bb
movq %rcx, 0x68(%rdx)
movaps %xmm0, 0x70(%rdx)
movaps %xmm0, 0x80(%rdx)
movaps %xmm0, 0x90(%rdx)
movq %rax, 0xa0(%rdx)
leaq 0x8(%rdi), %rcx
leaq 0xd81(%rip), %rdi       # 0x6315
xorl %esi, %esi
xorl %eax, %eax
callq 0x4d7a
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
movq (%r14), %rdi
callq 0x2040
addl %ebx, %ebx
movl %ebx, %eax
addq $0xb8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Cotix[P]cReddit/libreddit/user.c
// Function: userUpdateHelper
DEF_TOKEN_CALLBACK(userUpdateHelper)
{
    ARG_LIST_USER_UPDATE

    int i;
    for (i = 0; idents[i].name != NULL; i++) {
        if (strcmp(idents[i].name, "kind") == 0) {
            /*
             * Check contents of the name
             */
            if (idents[i].value != NULL && strcmp(*((char**)idents[i].value), "t2") == 0) {
                if (*user != NULL)
                    redditUserFree(*user);

                *user = redditGetUser(parser);
            }

            break;
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x55df
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x55eb
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%r14), %rdi
testq %rdi, %rdi
je 0x5651
movq (%rax), %r12
addq $0x38, %r14
leaq 0xb05(%rip), %r15       # 0x6106
movq %r15, %rsi
callq 0x2120
testl %eax, %eax
je 0x561b
movq (%r14), %rdi
addq $0x38, %r14
testq %rdi, %rdi
jne 0x5601
jmp 0x5651
movq -0x28(%r14), %rax
testq %rax, %rax
je 0x5651
movq (%rax), %rdi
leaq 0xd09(%rip), %rsi       # 0x6337
callq 0x2120
testl %eax, %eax
jne 0x5651
movq (%r12), %rdi
testq %rdi, %rdi
je 0x5645
callq 0x2080
movq %rbx, %rdi
callq 0x5091
movq %rax, (%r12)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: str2int
char str2int(char c)
{
	switch (c)
	{
		case 'A': case 'a': case '0':
			return 0;
		case 'C': case 'c': case '1':
			return 1;
		case 'G': case 'g': case '2':
			return 2;
		case 'T': case 't': case '3':
			return 3;
	}
	return 4;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
cmpl $0x46, %edi
jg 0x132f
leal -0x30(%rdi), %ecx
cmpl $0x3, %ecx
ja 0x1360
leaq 0xccde(%rip), %rdx      # 0xe004
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpl $0x62, %edi
jg 0x1345
cmpl $0x47, %edi
je 0x1358
cmpl $0x54, %edi
je 0x135c
cmpl $0x61, %edi
je 0x136c
jmp 0x136a
cmpl $0x74, %edi
je 0x135c
cmpl $0x67, %edi
je 0x1358
cmpl $0x63, %edi
jne 0x136a
movb $0x1, %al
jmp 0x136c
movb $0x2, %al
jmp 0x136c
movb $0x3, %al
jmp 0x136c
cmpl $0x41, %edi
je 0x136c
cmpl $0x43, %edi
je 0x1354
movb $0x4, %al
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: get_num_line
int get_num_line(char *path,int flag)
{
	FILE *fp;
	int i,size;
	char *line;

	i=strlen(path)+20;
        line=(char *)malloc(i);
        memset(line,'\0',i);
        strcpy(line,path);
	if(flag==0)
	        strcat(line,"triloop.ds");
	else
		strcat(line,"tetraloop.ds");

        if(access(line,0)==-1)
        {
                printf("Error! Don't have %s file!\n",line);
                exit(1);
        }
        fp=fopen(line,"r");
        if(fp==NULL)
        {
                printf("Error! Can't open the %s file!\n",line);
                exit(1);
        }

	size=0;
	while(fgets(line,i,fp)!=NULL)
		size++;
	return size;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r15d
movq %rdi, %r12
callq 0x10b0
movq %rax, %r14
addl $0x14, %r14d
movslq %r14d, %r13
movq %r13, %rdi
callq 0x1190
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x1100
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1050
movq %rbx, %rdi
callq 0x10b0
addq %rbx, %rax
testl %r15d, %r15d
je 0x2b89
movabsq $0x73642e706f6f6c, %rcx # imm = 0x73642E706F6F6C
movq %rcx, 0x5(%rax)
movabsq $0x6f6f6c6172746574, %rcx # imm = 0x6F6F6C6172746574
movq %rcx, (%rax)
jmp 0x2b9d
movabsq $0x2e706f6f6c697274, %rcx # imm = 0x2E706F6F6C697274
movq %rcx, (%rax)
movl $0x73642e, 0x7(%rax)    # imm = 0x73642E
movq %rbx, %rdi
xorl %esi, %esi
callq 0x11b0
cmpl $-0x1, %eax
je 0x2bf1
leaq 0xb65b(%rip), %rsi      # 0xe20e
movq %rbx, %rdi
callq 0x11c0
testq %rax, %rax
je 0x2bfa
movq %rax, %r15
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %r14d, %esi
movq %r15, %rdx
callq 0x1130
incl %r12d
testq %rax, %rax
jne 0x2bc9
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb511(%rip), %rdi      # 0xe109
jmp 0x2c01
leaq 0xb524(%rip), %rdi      # 0xe125
movq %rbx, %rsi
xorl %eax, %eax
callq 0x10c0
movl $0x1, %edi
callq 0x11f0
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: tableStartATS
void tableStartATS(double atp_value, double atpS[])
{
        int i, j;

        for (i = 0; i < 5; ++i)
                for (j = 0; j < 5; ++j)
                        atpS[i*5+j] = 0.00000000001;
        atpS[3] = atpS[15] = atp_value;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movabsq $0x3da5fd7fe1796495, %rcx # imm = 0x3DA5FD7FE1796495
movq %rdi, %rdx
xorl %esi, %esi
movq %rcx, (%rdx,%rsi,8)
incq %rsi
cmpq $0x5, %rsi
jne 0x3140
incq %rax
addq $0x28, %rdx
cmpq $0x5, %rax
jne 0x313e
movsd %xmm0, 0x78(%rdi)
movsd %xmm0, 0x18(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: initMatrix2
void initMatrix2(int Initint[],double enthalpyDPT[],double entropyDPT[],char numSeq1[])
{
	int i,j;
	for(i=1;i<=Initint[0];++i)
		for(j=i;j<=Initint[1];++j)
			if(j-i<4 || (numSeq1[i]+numSeq1[j]!=3))
			{
				enthalpyDPT[(i-1)*Initint[2]+j-1]=1.0*INFINITY;
				entropyDPT[(i-1)*Initint[2]+j-1]=-1.0;
			}
			else
			{
				enthalpyDPT[(i-1)*Initint[2]+j-1]=0.0;
				entropyDPT[(i-1)*Initint[2]+j-1]=-3224.0;
			}
}

// Assembly:
movl (%rdi), %eax
testl %eax, %eax
jle 0x3254
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movslq 0x4(%rdi), %r8
leal 0x1(%r8), %r9d
incq %rax
leaq 0x1(%rcx), %r10
decq %r9
movl $0x1, %r11d
xorl %ebx, %ebx
movsd 0xae69(%rip), %xmm0     # 0xe038
movsd 0xae51(%rip), %xmm1     # 0xe028
movsd 0xae61(%rip), %xmm2     # 0xe040
cmpq %r8, %r11
jg 0x323a
movl 0x8(%rdi), %r14d
imull %ebx, %r14d
addl %r11d, %r14d
xorl %r15d, %r15d
movaps %xmm1, %xmm3
movaps %xmm0, %xmm4
cmpq $0x4, %r15
jb 0x321d
movsbl (%rcx,%r11), %r12d
movsbl (%r10,%r15), %r13d
addl %r12d, %r13d
movaps %xmm1, %xmm3
movaps %xmm0, %xmm4
cmpl $0x3, %r13d
jne 0x321d
xorps %xmm3, %xmm3
movaps %xmm2, %xmm4
leal (%r14,%r15), %r12d
movslq %r12d, %r12
movsd %xmm3, -0x8(%rsi,%r12,8)
movsd %xmm4, -0x8(%rdx,%r12,8)
incq %r15
cmpq %r15, %r9
jne 0x31f2
incq %r11
incl %ebx
incq %r10
decq %r9
cmpq %rax, %r11
jne 0x31df
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: Ss
double Ss(int i,int j,int k,double stackEntropies[],int Initint[],char numSeq1[],char numSeq2[])
{
	if(k==2)
	{
		if(i>=j)
			return -1.0;
		if(i==Initint[0]||j==Initint[1]+1)
			return -1.0;

		if(i>Initint[0])
			i-=Initint[0];
		if(j>Initint[1])
			j-=Initint[1];
		return stackEntropies[numSeq1[i]*125+numSeq1[i+1]*25+numSeq2[j]*5+numSeq2[j-1]];
	}
	else
		return stackEntropies[numSeq1[i]*125+numSeq1[i+1]*25+numSeq2[j]*5+numSeq2[j+1]];
}

// Assembly:
movl $0x1, %eax
cmpl $0x2, %edx
jne 0x329a
movsd 0xadd1(%rip), %xmm0     # 0xe038
cmpl %esi, %edi
jge 0x32e3
movl (%r8), %eax
cmpl %edi, %eax
je 0x32e3
movl 0x4(%r8), %edx
leal 0x1(%rdx), %r8d
cmpl %esi, %r8d
je 0x32e3
xorl %r8d, %r8d
cmpl %edi, %eax
cmovgel %r8d, %eax
subl %eax, %edi
cmpl %esi, %edx
cmovll %edx, %r8d
subl %r8d, %esi
movq $-0x1, %rax
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rbp), %rdx
movslq %edi, %rdi
movsbq (%r9,%rdi), %r8
movsbq 0x1(%r9,%rdi), %rdi
movslq %esi, %rsi
leaq (%rdx,%rsi), %r9
movsbq (%rdx,%rsi), %rdx
movsbq (%rax,%r9), %rax
imulq $0x3e8, %r8, %rsi       # imm = 0x3E8
addq %rsi, %rcx
imulq $0xc8, %rdi, %rsi
addq %rcx, %rsi
leaq (%rdx,%rdx,4), %rcx
leaq (%rsi,%rcx,8), %rcx
movsd (%rcx,%rax,8), %xmm0
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: Hs
double Hs(int i,int j,int k,double stackEnthalpies[],int Initint[],char numSeq1[],char numSeq2[])
{
	if(k==2)
	{
		if(i>= j)
			return 1.0*INFINITY;
		if(i==Initint[0]||j==Initint[1]+1)
			return 1.0*INFINITY;

		if(i>Initint[0])
			i-=Initint[0];
		if(j>Initint[1])
			j-=Initint[1];
		if(fabs(stackEnthalpies[numSeq1[i]*125+numSeq1[i+1]*25+numSeq2[j]*5+numSeq2[j-1]])<999999999)
			return stackEnthalpies[numSeq1[i]*125+numSeq1[i+1]*25+numSeq2[j]*5+numSeq2[j-1]];
		else
			return 1.0*INFINITY;
	}
	else
		return stackEnthalpies[numSeq1[i]*125+numSeq1[i+1]*25+numSeq2[j]*5+numSeq2[j+1]];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rbp), %rax
cmpl $0x2, %edx
jne 0x338b
movsd 0xad2b(%rip), %xmm1     # 0xe028
cmpl %esi, %edi
jge 0x3385
movl (%r8), %edx
cmpl %edi, %edx
je 0x3385
movl 0x4(%r8), %r8d
leal 0x1(%r8), %r10d
cmpl %esi, %r10d
je 0x3385
xorl %r10d, %r10d
cmpl %edi, %edx
cmovgel %r10d, %edx
subl %edx, %edi
cmpl %esi, %r8d
cmovll %r8d, %r10d
subl %r10d, %esi
movslq %edi, %rdx
movsbq (%r9,%rdx), %rdi
movsbq 0x1(%r9,%rdx), %rdx
movslq %esi, %rsi
movsbq (%rax,%rsi), %r8
movsbq -0x1(%rax,%rsi), %rax
imulq $0x3e8, %rdi, %rsi      # imm = 0x3E8
addq %rsi, %rcx
imulq $0xc8, %rdx, %rdx
addq %rcx, %rdx
leaq (%r8,%r8,4), %rcx
leaq (%rdx,%rcx,8), %rcx
movsd (%rcx,%rax,8), %xmm0
movapd 0xad3d(%rip), %xmm2     # 0xe0b0
andpd %xmm0, %xmm2
movsd 0xacb1(%rip), %xmm3     # 0xe030
ucomisd %xmm2, %xmm3
ja 0x33c8
movapd %xmm1, %xmm0
jmp 0x33c8
movslq %edi, %rdx
movsbq (%r9,%rdx), %rdi
movsbq 0x1(%r9,%rdx), %rdx
movslq %esi, %rsi
movsbq (%rax,%rsi), %r8
movsbq 0x1(%rax,%rsi), %rax
imulq $0x3e8, %rdi, %rsi      # imm = 0x3E8
addq %rsi, %rcx
imulq $0xc8, %rdx, %rdx
addq %rcx, %rdx
leaq (%r8,%r8,4), %rcx
leaq (%rdx,%rcx,8), %rcx
movsd (%rcx,%rax,8), %xmm0
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: find_pos
int find_pos(char *ref,int ref_start,char *source,int length,int num)
{
	int flag,i,j;

	for(i=0;i<num;i++)
	{
		flag=0;
		for(j=0;j<length;j++)
		{
			if(ref[ref_start+j]!=source[i*length+j])
			{
				flag++;
				break;
			}
		}
		if(flag==0)
			return i;
	}
	return -1;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %r8d, %r8d
jle 0x3f55
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movslq %esi, %r9
movslq %ecx, %rsi
movl %r8d, %r8d
movl %esi, %r10d
addq %r9, %rdi
xorl %r9d, %r9d
testl %ecx, %ecx
jle 0x3f50
xorl %r11d, %r11d
movb (%rdi,%r11), %bl
cmpb (%rdx,%r11), %bl
jne 0x3f43
incq %r11
cmpq %r11, %r10
jne 0x3f2f
jmp 0x3f50
incq %r9
addq %rsi, %rdx
cmpq %r8, %r9
jne 0x3f28
jmp 0x3f53
movl %r9d, %eax
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: max5
int max5(double a,double b,double c,double d,double e)
{
	if(a>b&&a>c&&a>d&&a>e)
		return 1;
	else if(b>c&&b>d&&b>e)
		return 2;
	else if(c>d&&c>e)
		return 3;
	else if(d>e)
		return 4;
	else
		return 5;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
ucomisd %xmm1, %xmm0
jbe 0x45ce
ucomisd %xmm2, %xmm0
jbe 0x45ce
ucomisd %xmm3, %xmm0
jbe 0x45ce
movl $0x1, %eax
ucomisd %xmm4, %xmm0
ja 0x4602
ucomisd %xmm2, %xmm1
jbe 0x45e5
ucomisd %xmm3, %xmm1
jbe 0x45e5
movl $0x2, %eax
ucomisd %xmm4, %xmm1
ja 0x4602
ucomisd %xmm3, %xmm2
jbe 0x45f6
movl $0x3, %eax
ucomisd %xmm4, %xmm2
ja 0x4602
xorl %eax, %eax
ucomisd %xmm4, %xmm3
seta %al
xorl $0x5, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: newpush
int newpush(int store[],int i,int j,int mtrx,int total,int next)
{
        int k;
        for(k=total-1;k>=next;k--)
        {
                store[(k+1)*3]=store[k*3];
                store[(k+1)*3+1]=store[k*3+1];
                store[(k+1)*3+2]=store[k*3+2];
        }
        store[next*3]=i;                  
        store[next*3+1]=j;
        store[next*3+2]=mtrx;

        return total+1;           
}

// Assembly:
movl %r8d, %eax
cmpl %r9d, %r8d
jle 0x55f1
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movslq %eax, %r8
movslq %r9d, %r10
leaq (%r8,%r8,2), %r11
leaq (%rdi,%r11,4), %r11
decq %r8
movl -0xc(%r11), %ebx
movl %ebx, (%r11)
movq -0x8(%r11), %rbx
movq %rbx, 0x4(%r11)
addq $-0xc, %r11
cmpq %r10, %r8
jg 0x55d4
popq %rbx
popq %rbp
leal (%r9,%r9,2), %r8d
movslq %r8d, %r8
movl %esi, (%rdi,%r8,4)
movl %edx, 0x4(%rdi,%r8,4)
movl %ecx, 0x8(%rdi,%r8,4)
incl %eax
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: drawHairpin
double drawHairpin(int bp[],double mh,double ms,int Initint[])
{
        int i,N;

        N=0;
        if(fabs(ms)>999999999||fabs(mh)>999999999)
        {
		return 0.0;
        }
        else
        {
		for(i=1;i<Initint[0];++i)
		{
			if(bp[i-1]>0)
				N++;
                }
                return mh/(ms+(((N/2)-1)*-0.51986))-273.15;
        }
}

// Assembly:
movapd 0x6edc(%rip), %xmm3     # 0xe0b0
movapd %xmm0, %xmm2
andpd %xmm3, %xmm2
ucomisd 0x6e4c(%rip), %xmm2     # 0xe030
xorpd %xmm2, %xmm2
ja 0x7252
andpd %xmm1, %xmm3
ucomisd 0x6e3a(%rip), %xmm3     # 0xe030
ja 0x7252
movslq (%rsi), %rax
cmpq $0x2, %rax
jl 0x7229
decq %rax
xorl %edx, %edx
xorl %ecx, %ecx
xorl %esi, %esi
cmpl $0x0, (%rdi,%rdx,4)
setg %sil
addl %esi, %ecx
incq %rdx
cmpq %rdx, %rax
jne 0x7208
shrl %ecx
decl %ecx
xorps %xmm2, %xmm2
cvtsi2sd %ecx, %xmm2
jmp 0x7231
movsd 0x6e07(%rip), %xmm2     # 0xe038
pushq %rbp
movq %rsp, %rbp
mulsd 0x6e3b(%rip), %xmm2     # 0xe078
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
addsd 0x6e33(%rip), %xmm0     # 0xe080
movapd %xmm0, %xmm2
popq %rbp
movapd %xmm2, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: initMatrix
void initMatrix(int Initint[],double enthalpyDPT[],double entropyDPT[],char numSeq1[],char numSeq2[])
{
	int i,j;

	for(i=1;i<=Initint[0];++i)
	{
		for(j=1;j<=Initint[1];++j)
		{
			if(numSeq1[i]+numSeq2[j]!=3)
			{
				enthalpyDPT[(i-1)*Initint[2]+j-1]=1.0*INFINITY;
				entropyDPT[(i-1)*Initint[2]+j-1]=-1.0;
			}
			else
			{
				enthalpyDPT[(i-1)*Initint[2]+j-1]=0.0;
				entropyDPT[(i-1)*Initint[2]+j-1]=-3224.0;
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, -0x30(%rbp)
movl (%rdi), %eax
testl %eax, %eax
jle 0x7300
movq -0x30(%rbp), %rdi
movl 0x4(%rdi), %edi
movq %rdi, -0x38(%rbp)
leal 0x1(%rdi), %r10d
incq %rax
movl $0x1, %r11d
xorl %ebx, %ebx
movsd 0x6d94(%rip), %xmm0     # 0xe028
leaq 0x6e35(%rip), %r14      # 0xe0d0
cmpl $0x0, -0x38(%rbp)
jle 0x72f6
movq -0x30(%rbp), %rdi
movl 0x8(%rdi), %r15d
imull %ebx, %r15d
movl $0x1, %r12d
movsbl (%rcx,%r11), %r9d
movsbl (%r8,%r12), %edi
addl %r9d, %edi
xorl %r13d, %r13d
xorps %xmm1, %xmm1
cmpl $0x3, %edi
sete %r9b
je 0x72d2
movaps %xmm0, %xmm1
movb %r9b, %r13b
movsd (%r14,%r13,8), %xmm2
leal (%r15,%r12), %edi
movslq %edi, %rdi
movsd %xmm1, -0x8(%rsi,%rdi,8)
movsd %xmm2, -0x8(%rdx,%rdi,8)
incq %r12
cmpq %r12, %r10
jne 0x72b3
incq %r11
incl %ebx
cmpq %rax, %r11
jne 0x729b
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: drawDimer
double drawDimer(int *ps1,int *ps2,double H,double S,double Initdouble[],int Initint[])
{
        int i,N;

        if(fabs(Initdouble[3])>999999999)
                return 0.0;
        else
        {
                N=0;
                for(i=0;i<Initint[0];i++)
                {
                        if(ps1[i]>0)
                                ++N;
                }
                for(i=0;i<Initint[1];i++)
                {
                        if(ps2[i]>0)
                                ++N;
                }
                N=(N/2)-1;
                return (H/(S+(N*-0.51986)+Initdouble[2]))-273.15;
        }
}

// Assembly:
movsd 0x18(%rdx), %xmm3
andpd 0x564b(%rip), %xmm3     # 0xe0b0
xorpd %xmm2, %xmm2
ucomisd 0x55bf(%rip), %xmm3     # 0xe030
ja 0x8af8
movslq (%rcx), %r8
testq %r8, %r8
jle 0x8a9d
xorl %r9d, %r9d
xorl %eax, %eax
xorl %r10d, %r10d
cmpl $0x0, (%rdi,%r9,4)
setg %r10b
addl %r10d, %eax
incq %r9
cmpq %r9, %r8
jne 0x8a84
jmp 0x8a9f
xorl %eax, %eax
movslq 0x4(%rcx), %rcx
testq %rcx, %rcx
jle 0x8ac0
xorl %edi, %edi
xorl %r8d, %r8d
cmpl $0x0, (%rsi,%rdi,4)
setg %r8b
addl %r8d, %eax
incq %rdi
cmpq %rdi, %rcx
jne 0x8aaa
pushq %rbp
movq %rsp, %rbp
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
decl %ecx
xorps %xmm2, %xmm2
cvtsi2sd %ecx, %xmm2
mulsd 0x559a(%rip), %xmm2     # 0xe078
addsd %xmm1, %xmm2
addsd 0x10(%rdx), %xmm2
divsd %xmm2, %xmm0
addsd 0x558d(%rip), %xmm0     # 0xe080
movapd %xmm0, %xmm2
popq %rbp
movapd %xmm2, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: symmetry_thermo
int symmetry_thermo(char seq[])
{
        int i = 0;
        int seq_len=strlen(seq);
        int mp = seq_len/2;
        if(seq_len%2==1)
                return 0;          

        while(i<mp) 
        {
                if((seq[i]=='A'&&seq[seq_len-1-i]!='T')||(seq[i]=='T'&&seq[seq_len-1-i]!='A')||(seq[seq_len-1-i]=='A'&&seq[i]!='T')||(seq[seq_len-1-i]=='T'&&seq[i]!='A'))
                        return 0;   
                if((seq[i]=='C'&&seq[seq_len-1-i]!='G')||(seq[i]=='G'&&seq[seq_len-1-i]!='C')||(seq[seq_len-1-i]=='C'&&seq[i]!='G')||(seq[seq_len-1-i]=='G'&&seq[i]!='C'))
                        return 0;
		i++;
        }
        return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x10b0
movl %eax, %ecx
andl $0x80000001, %ecx       # imm = 0x80000001
cmpl $0x1, %ecx
jne 0x8b23
xorl %ecx, %ecx
jmp 0x8bf5
cmpl $0x2, %eax
jl 0x8bf0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
movl %ecx, %esi
shlq $0x20, %rax
addq %rdx, %rax
xorl %edi, %edi
movb (%rbx,%rdi), %r8b
cmpb $0x41, %r8b
jne 0x8b61
movq %rax, %rcx
sarq $0x20, %rcx
cmpb $0x54, (%rbx,%rcx)
jne 0x8b1c
cmpb $0x54, %r8b
jne 0x8b74
movq %rax, %rcx
sarq $0x20, %rcx
cmpb $0x41, (%rbx,%rcx)
jne 0x8b1c
cmpb $0x54, %r8b
setne %r14b
cmpb $0x41, %r8b
sete %r10b
movq %rax, %rcx
sarq $0x20, %rcx
movb (%rbx,%rcx), %r9b
cmpb $0x41, %r9b
sete %r15b
cmpb $0x54, %r9b
setne %r11b
xorl %ecx, %ecx
testb %r15b, %r14b
jne 0x8bf5
orb %r11b, %r10b
je 0x8bf5
cmpb $0x43, %r8b
jne 0x8bb7
cmpb $0x47, %r9b
jne 0x8bf5
cmpb $0x43, %r8b
setne %r11b
cmpb $0x47, %r8b
sete %r8b
cmpb $0x43, %r9b
setne %r10b
cmpb $0x47, %r9b
sete %r9b
testb %r9b, %r11b
jne 0x8bf5
xorb %r10b, %r8b
je 0x8bf5
incq %rdi
addq %rdx, %rax
cmpq %rdi, %rsi
jne 0x8b4a
movl $0x1, %ecx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: generate_primer
void generate_primer(char *seq,char primer[],int start,int length,int flag) //flag=0:plus
{
        int i;
        
        if(flag==0)
        {
                for(i=0;i<length;i++)
                        primer[i]=seq[start+i];
                primer[i]='\0';
        }
        else
        {
                for(i=0;i<length;i++)
                {
                        if((seq[start+length-1-i]=='A')||(seq[start+length-1-i]=='a'))
                                primer[i]='T';
                        else if((seq[start+length-1-i]=='T')||(seq[start+length-1-i]=='t'))
                                primer[i]='A';
                        else if((seq[start+length-1-i]=='C')||(seq[start+length-1-i]=='c'))
                                primer[i]='G';
                        else 
                                primer[i]='C';
                }
                primer[length]='\0';
        }
}

// Assembly:
testl %r8d, %r8d
je 0x996a
testl %ecx, %ecx
jle 0x9965
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movl %ecx, %eax
addl %ecx, %edx
decl %edx
xorl %r8d, %r8d
movabsq $0x100000001, %r9       # imm = 0x100000001
movabsq $0x400000004, %r10      # imm = 0x400000004
movabsq $0x8000000080000, %r11  # imm = 0x8000000080000
movslq %edx, %rbx
movzbl (%rdi,%rbx), %ebx
addl $-0x41, %ebx
cmpl $0x33, %ebx
ja 0x9953
btq %rbx, %r9
jb 0x994f
btq %rbx, %r10
jb 0x994b
btq %rbx, %r11
jae 0x9953
movb $0x41, %bl
jmp 0x9955
movb $0x47, %bl
jmp 0x9955
movb $0x54, %bl
jmp 0x9955
movb $0x43, %bl
movb %bl, (%rsi,%r8)
incq %r8
decl %edx
cmpq %r8, %rax
jne 0x9926
popq %rbx
popq %rbp
movslq %ecx, %rax
jmp 0x998a
testl %ecx, %ecx
jle 0x9988
movslq %edx, %rax
movl %ecx, %ecx
addq %rax, %rdi
xorl %eax, %eax
movb (%rdi,%rax), %dl
movb %dl, (%rsi,%rax)
incq %rax
cmpq %rax, %rcx
jne 0x9978
jmp 0x998a
xorl %eax, %eax
movb $0x0, (%rsi,%rax)
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: reverse
void reverse(char seq[],char rev[],int length)
{
	int i;

	for(i=0;i<length;i++)
        {
                if(seq[length-1-i]=='A')
                {
                        rev[i]='T';
                        continue;
                }
                if(seq[length-1-i]=='T')
                {
                        rev[i]='A';
                        continue;
                }
                if(seq[length-1-i]=='C')
                {
                        rev[i]='G';
                        continue;
                }
                rev[i]='C';
        }
        rev[i]='\0';
}

// Assembly:
testl %edx, %edx
jle 0x99d8
pushq %rbp
movq %rsp, %rbp
movl %edx, %ecx
leaq (%rcx,%rdi), %rdx
decq %rdx
xorl %eax, %eax
movzbl (%rdx), %edi
cmpl $0x41, %edi
je 0x99be
cmpl $0x43, %edi
je 0x99b9
cmpl $0x54, %edi
jne 0x99c3
movb $0x41, %dil
jmp 0x99c6
movb $0x47, %dil
jmp 0x99c6
movb $0x54, %dil
jmp 0x99c6
movb $0x43, %dil
movb %dil, (%rsi,%rax)
incq %rax
decq %rdx
cmpq %rax, %rcx
jne 0x99a2
popq %rbp
jmp 0x99da
xorl %eax, %eax
movb $0x0, (%rsi,%rax)
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: sort_merge
void sort_merge(int *store,int *temp,int *data,int start,int end)
{
        int middle;

        if(start<end)
        {
                middle=(start+end)/2;
                sort_merge(store,temp,data,start,middle);
                sort_merge(store,temp,data,(middle+1),end);
                merge(store,temp,data,start,end,middle);
        }
}

// Assembly:
cmpl %r8d, %ecx
jge 0xb72b
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movl %ecx, %r14d
leal (%rbx,%r14), %eax
movl %eax, %r15d
shrl $0x1f, %r15d
addl %eax, %r15d
sarl %r15d
movq %rdi, -0x30(%rbp)
movq %rsi, %r13
movq %rdx, %r12
movl %r15d, %r8d
callq 0xb6b3
leal 0x1(%r15), %ecx
movq -0x30(%rbp), %rdi
movq %r13, %rsi
movq %r12, %rdx
movl %ebx, %r8d
callq 0xb6b3
movq -0x30(%rbp), %rdi
movq %r13, %rsi
movq %r12, %rdx
movl %r14d, %ecx
movl %ebx, %r8d
movl %r15d, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb538
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: next_one
void next_one(struct Primer *first, struct ExoProbe *second)
{
	struct Primer *one;
	struct ExoProbe *two;

	one=first;
	two=second;
	
	while(two)
	{
		if(two->pos<=one->pos)
			two=two->next;
		else
			break;
	}
	while(one)
	{
		if(two==NULL)
			break;
		if(one->pos<two->pos)
		{
			one->other=two;
			one=one->next;
			continue;
		}
		while(two)
		{
			if(two->pos<=one->pos)
				two=two->next;
			else
			{
				one->other=two;
				break;
			}
		}
		one=one->next;
	}			
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rsi, %rsi
je 0xc970
movl (%rdi), %eax
cmpl %eax, (%rsi)
jg 0xc970
movq 0x18(%rsi), %rsi
testq %rsi, %rsi
jne 0xc963
testq %rsi, %rsi
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
je 0xc982
popq %rbp
retq
movl (%rsi), %ecx
movl (%rdi), %edx
cmpl %ecx, %edx
jge 0xc9a1
movq %rsi, 0x20(%rdi)
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
sete %dl
orb %al, %dl
testb $0x1, %dl
je 0xc984
jmp 0xc980
cmpl %edx, (%rsi)
jg 0xc9b0
movq 0x18(%rsi), %rsi
testq %rsi, %rsi
jne 0xc9a1
jmp 0xc9b4
movq %rsi, 0x20(%rdi)
movq 0x28(%rdi), %rdi
testq %rsi, %rsi
sete %al
testq %rdi, %rdi
je 0xc980
testq %rsi, %rsi
jne 0xc982
jmp 0xc980
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: check_add
int check_add(int F3_pos,int *best_par,int expect)
{
        int i,dis;

	for(i=0;i<expect;i++)
	{
		if(best_par[i]==-1) //the empty record
			return 1;
		dis=best_par[i]-F3_pos;
		if(abs(dis)<300)
			return 0;
	}
        return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x1, %eax
testl %edx, %edx
jle 0xdadb
movl %edx, %ecx
xorl %edx, %edx
movl (%rsi,%rdx,4), %r8d
cmpl $-0x1, %r8d
je 0xdadb
subl %edi, %r8d
movl %r8d, %r9d
negl %r9d
cmovsl %r8d, %r9d
cmpl $0x12b, %r9d            # imm = 0x12B
jbe 0xdad9
incq %rdx
cmpq %rdx, %rcx
jne 0xdaaf
jmp 0xdadb
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: how_manyPrimer
void how_manyPrimer(struct Primer *head,int common)
{
	struct Primer *p_primer;
	struct Node *p_node;
	int i,num,*list;

	list=(int *)malloc(common*sizeof(int));
	p_primer=head;
	while(p_primer)
	{
		p_node=p_primer->common;
		for(i=0;i<common;i++)
			list[i]=0;
		while(p_node)
		{
			list[p_node->gi]=1;
			p_node=p_node->next;
		}
		num=0;
                for(i=0;i<common;i++)
                        num=num+list[i];
		p_primer->total=num;
		p_primer=p_primer->next;
	}
	free(list);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movslq %esi, %rdi
shlq $0x2, %rdi
callq 0x1190
movq %rax, %r15
testq %r14, %r14
je 0xdb67
movl %ebx, %r13d
leaq (,%r13,4), %rax
movq %rax, -0x30(%rbp)
movq 0x30(%r14), %r12
testl %ebx, %ebx
jle 0xdb3d
movq %r15, %rdi
xorl %esi, %esi
movq -0x30(%rbp), %rdx
callq 0x1100
jmp 0xdb3d
movslq 0x4(%r12), %rax
movl $0x1, (%r15,%rax,4)
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0xdb2b
testl %ebx, %ebx
jle 0xdb58
xorl %ecx, %ecx
xorl %eax, %eax
addl (%r15,%rcx,4), %eax
incq %rcx
cmpq %rcx, %r13
jne 0xdb4a
jmp 0xdb5a
xorl %eax, %eax
movl %eax, 0x10(%r14)
movq 0x28(%r14), %r14
testq %r14, %r14
jne 0xdb13
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: how_manyProbe
void how_manyProbe(struct ExoProbe *head,int common)
{
        struct ExoProbe *p_primer;
        struct Node *p_node;
        int i,num,*list;

        list=(int *)malloc(common*sizeof(int));
        p_primer=head;
        while(p_primer)
        {
                p_node=p_primer->common;
                for(i=0;i<common;i++)
                        list[i]=0;
                while(p_node)
                {
                        list[p_node->gi]=1;
                        p_node=p_node->next;
                }
                num=0;
                for(i=0;i<common;i++)
                        num=num+list[i];
                p_primer->total=num;
                p_primer=p_primer->next;
        }
        free(list);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movslq %esi, %rdi
shlq $0x2, %rdi
callq 0x1190
movq %rax, %r15
testq %r14, %r14
je 0xdc07
movl %ebx, %r13d
leaq (,%r13,4), %rax
movq %rax, -0x30(%rbp)
movq 0x20(%r14), %r12
testl %ebx, %ebx
jle 0xdbdd
movq %r15, %rdi
xorl %esi, %esi
movq -0x30(%rbp), %rdx
callq 0x1100
jmp 0xdbdd
movslq 0x4(%r12), %rax
movl $0x1, (%r15,%rax,4)
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0xdbcb
testl %ebx, %ebx
jle 0xdbf8
xorl %ecx, %ecx
xorl %eax, %eax
addl (%r15,%rcx,4), %eax
incq %rcx
cmpq %rcx, %r13
jne 0xdbea
jmp 0xdbfa
xorl %eax, %eax
movl %eax, 0xc(%r14)
movq 0x18(%r14), %r14
testq %r14, %r14
jne 0xdbb3
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/jiqingxiaoxi[P]RPA/RPA.c
// Function: check_uniq
int check_uniq(struct Primer *F,struct Primer *R)
{
        struct Node *s_F,*s_R,*b_R;

//plus
	b_R=R->specific;
        for(s_F=F->specific;s_F;s_F=s_F->next)
        {
                if(s_F->plus!=1)
                        continue;
                for(s_R=b_R;s_R;s_R=s_R->next)
                {
			if(s_R->gi<s_F->gi)
			{
				b_R=s_R->next;
				continue;
			}
                        if(s_R->gi>s_F->gi)
                                break;
			if(s_R->pos<s_F->pos)
			{
				b_R=b_R->next;
                                continue;
                        }
			if(s_R->pos-s_F->pos>2000)
				break;
                        if(s_R->minus!=1)
                                continue;
			return 0;
                }
        }
//minus
	b_R=R->specific;
        for(s_F=F->specific;s_F;s_F=s_F->next)
        {
                if(s_F->minus!=1)
                        continue;
                for(s_R=b_R;s_R;s_R=s_R->next)
                {
                        if(s_R->gi<s_F->gi)
			{
				b_R=s_R->next;
                                continue;
			}
			if(s_R->gi>s_F->gi)
				break;
			if(s_R->pos>s_F->pos)
				break;
			if(s_R->pos-s_F->pos<-2000)
			{
                                b_R=b_R->next;
                                continue;
                        }
                        if(s_R->plus!=1)
                                continue;
			return 0;
                }
        }
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x38(%rsi), %rcx
movq 0x38(%rdi), %rax
testq %rax, %rax
je 0xdc80
movq %rcx, %rdx
cmpl $0x1, 0x8(%rax)
jne 0xdc77
testq %rdx, %rdx
je 0xdc77
movl 0x4(%rax), %esi
movq %rdx, %r8
movq %r8, %r9
cmpl %esi, 0x4(%r8)
jl 0xdc58
jg 0xdc77
movl (%r8), %r9d
subl (%rax), %r9d
jge 0xdc5e
movq %rdx, %r9
movq 0x10(%r9), %rdx
jmp 0xdc6e
cmpl $0x7d0, %r9d            # imm = 0x7D0
jg 0xdc77
cmpl $0x1, 0xc(%r8)
je 0xdcd8
movq 0x10(%r8), %r8
testq %r8, %r8
jne 0xdc42
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xdc31
movq 0x38(%rdi), %rdx
movl $0x1, %eax
testq %rdx, %rdx
je 0xdcda
cmpl $0x1, 0xc(%rdx)
jne 0xdcd2
testq %rcx, %rcx
je 0xdcd2
movl 0x4(%rdx), %esi
movq %rcx, %rdi
movq %rdi, %r8
cmpl %esi, 0x4(%rdi)
jl 0xdcbd
jg 0xdcd2
movl (%rdi), %r8d
subl (%rdx), %r8d
jg 0xdcd2
cmpl $0xfffff830, %r8d       # imm = 0xFFFFF830
jge 0xdcc3
movq %rcx, %r8
movq 0x10(%r8), %rcx
jmp 0xdcc9
cmpl $0x1, 0x8(%rdi)
je 0xdcd8
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
jne 0xdc9f
movq 0x10(%rdx), %rdx
jmp 0xdc89
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/richarddurbin[P]hash10x/hash10x.c
// Function: unpackFQB
void unpackFQB (U32 *u, char *s1, char *q1, char *s2, char *q2)
{
  char *s ; int i,j ;
  if ((s = s1))
    for (i =  0 ; i < 10 ; ++i) for (j = 16 ; j-- ; ) *s++ = (u[i] >> (2*j)) & 3 ;
  if ((s = q1))
    for (i = 10 ; i < 15 ; ++i) for (j = 32 ; j-- ; ) *s++ = (u[i] >> j) & 1 ;
  if ((s = s2))
    for (i = 15 ; i < 25 ; ++i) for (j = 16 ; j-- ; ) *s++ = (u[i] >> (2*j)) & 3 ;
  if ((s = q2))
    for (i = 25 ; i < 30 ; ++i) for (j = 32 ; j-- ; ) *s++ = (u[i] >> j) & 1 ;
}

// Assembly:
movq %rcx, %rax
testq %rsi, %rsi
je 0x1cd6
xorl %r9d, %r9d
movl $0x1e, %ecx
movl (%rdi,%r9,4), %r10d
shrl %cl, %r10d
andb $0x3, %r10b
movb %r10b, (%rsi)
incq %rsi
addl $-0x2, %ecx
cmpl $-0x2, %ecx
jne 0x1cb4
incq %r9
cmpq $0xa, %r9
jne 0x1caf
testq %rdx, %rdx
je 0x1d01
movl $0xa, %ecx
movl $0x1f, %esi
movl (%rdi,%rcx,4), %r9d
btl %esi, %r9d
setb (%rdx)
incq %rdx
addl $-0x1, %esi
jb 0x1ce5
incq %rcx
cmpq $0xf, %rcx
jne 0x1ce0
testq %rax, %rax
je 0x1d30
movl $0xf, %edx
movl $0x1e, %ecx
movl (%rdi,%rdx,4), %esi
shrl %cl, %esi
andb $0x3, %sil
movb %sil, (%rax)
incq %rax
addl $-0x2, %ecx
cmpl $-0x2, %ecx
jne 0x1d10
incq %rdx
cmpq $0x19, %rdx
jne 0x1d0b
testq %r8, %r8
je 0x1d5a
movl $0x19, %eax
movl $0x1f, %ecx
movl (%rdi,%rax,4), %edx
btl %ecx, %edx
setb (%r8)
incq %r8
addl $-0x1, %ecx
jb 0x1d3f
incq %rax
cmpq $0x1e, %rax
jne 0x1d3a
retq
// File: /workspace/github_c_makefile_star2_O1/richarddurbin[P]hash10x/hash10x.c
// Function: seqAddHashes
void seqAddHashes (char *s, int len, Array a, int readCount)
{
  SeqhashRCiterator *mi = moshRCiterator (hasher, s, len) ;
  U64 hash ; int pos ;
  while (moshRCnext (mi, &hash, &pos, 0))
    { HashTemp *h = arrayp(a,arrayMax(a),HashTemp) ;
      h->hash = hash ; h->read = readCount ; h->pos = pos ;
    }
  seqhashRCiteratorDestroy (mi) ;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movq %rdx, %r14
movl %esi, %edx
movq %rdi, %rsi
movq 0xe5ff(%rip), %rdi      # 0x10378
callq 0x7e1e
movq %rax, %r15
leaq 0x8(%rsp), %rsi
leaq 0x4(%rsp), %rdx
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x7fb0
testb %al, %al
je 0x1dd5
leaq 0x8(%rsp), %r12
leaq 0x4(%rsp), %r13
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x8f2b
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
movl %ebx, 0x8(%rax)
movl 0x4(%rsp), %ecx
movl %ecx, 0xc(%rax)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x7fb0
testb %al, %al
jne 0x1da3
movq %r15, %rdi
callq 0x1deb
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/richarddurbin[P]hash10x/hash10x.c
// Function: fillHashTable
void fillHashTable (void)
{
  int i, j ;
  long nHashes = 0 ;

  hashCodes = arrayCreate(hashNumber,U32*) ;
  arrayMax(hashCodes) = hashNumber ;
  
  U32 *count = arrp(hashDepth,1,U32) ;
  for (i = 1 ; i < hashNumber ; ++i, ++count)
    if (*count)
      { arr(hashCodes,i,U32*) = new(*count, U32) ;
	nHashes += *count ;
      }

  U32 *hashN = new0 (hashNumber, U32) ;
  for (i = 1 ; i < arrayMax(clusterBlocks) ; ++i)
    { ClusterBlock *b = arrp(clusterBlocks, i, ClusterBlock) ;
      ClusterHash *c = b->clusHash ;
      for (j = 0 ; j < b->nHash ; ++j, ++c)
	arr(hashCodes,c->hash,U32*)[hashN[c->hash]++] = i ;
    }
  fprintf (outFile, "  filled hash table: %ld hashes from %d barcodes in %d bins\n",
	  nHashes, arrayMax(clusterBlocks), hashNumber) ;
#ifdef CHECK
  for (i = 0 ; i < hashNumber ; ++i)
    if (hashN[i] != arr(hashDepth,i,U32))
      die ("hashN[%d] = %d != hashDepth[%d] = %d", i, hashN[i], i, arr(hashDepth,i,U32)) ;
#endif
  free (hashN) ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0xda2d(%rip), %edi      # 0x103a8
movl $0x8, %esi
callq 0x8c70
movq %rax, 0xda2c(%rip)      # 0x103b8
movl 0xda16(%rip), %ecx      # 0x103a8
movl %ecx, 0x18(%rax)
cmpl $0x2, %ecx
jb 0x29f9
movq 0xd9df(%rip), %rax      # 0x10380
movslq 0x14(%rax), %r14
addq 0x8(%rax), %r14
xorl %r12d, %r12d
xorl %ebx, %ebx
leaq 0x1(%r12), %r15
movl (%r14,%r12,4), %edi
testq %rdi, %rdi
je 0x29e6
shlq $0x2, %rdi
callq 0x94d0
movq 0xd9ec(%rip), %rcx      # 0x103b8
movq 0x8(%rcx), %rdx
movslq 0x14(%rcx), %rcx
movslq %r15d, %rsi
imulq %rcx, %rsi
movq %rax, (%rdx,%rsi)
movl (%r14,%r12,4), %eax
addq %rax, %rbx
movl 0xd9bc(%rip), %ecx      # 0x103a8
leal 0x1(%r15), %eax
movq %r15, %r12
cmpl %ecx, %eax
jb 0x29ae
jmp 0x29fb
xorl %ebx, %ebx
movl %ecx, %edi
movl $0x4, %esi
callq 0x94f8
movq %rax, %r14
movq 0xd977(%rip), %rax      # 0x10388
movl 0x18(%rax), %ecx
cmpl $0x2, %ecx
jl 0x2a7b
movq 0x8(%rax), %rdx
movl $0x1, %esi
movq 0xd98f(%rip), %rdi      # 0x103b8
movslq 0x14(%rax), %r8
movslq %esi, %rcx
imulq %r8, %rcx
cmpl $0x0, 0x4(%rdx,%rcx)
je 0x2a72
movq 0x10(%rdx,%rcx), %r8
movq 0x8(%rdi), %r9
xorl %r10d, %r10d
movl (%r8,%r10,8), %r11d
movl 0x14(%rdi), %r15d
imull %r11d, %r15d
movq (%r9,%r15), %r15
movl (%r14,%r11,4), %r12d
leal 0x1(%r12), %ebp
movl %ebp, (%r14,%r11,4)
movl %esi, (%r15,%r12,4)
incq %r10
cmpl 0x4(%rdx,%rcx), %r10d
jb 0x2a47
incl %esi
movl 0x18(%rax), %ecx
cmpl %ecx, %esi
jl 0x2a29
movq 0xd90e(%rip), %rdi      # 0x10390
movl 0xd91f(%rip), %r8d      # 0x103a8
leaq 0x7998(%rip), %rsi      # 0xa428
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1150
movq %r14, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1040
// File: /workspace/github_c_makefile_star2_O1/richarddurbin[P]hash10x/hash10x.c
// Function: hashDepthHist
void hashDepthHist (void)
{
  if (!arrayMax(hashDepth)) { fprintf (stderr, "  no hash list to print stats for\n") ; return ; }
  Array a = arrayCreate (1024, int) ;
  int i ;
  for (i = 0 ; i < arrayMax(hashDepth) ; ++i)
    ++array(a, arr(hashDepth, i, U32), int) ;
  histogramReport ("HASH_COUNT", a) ;
  arrayDestroy (a) ;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0xd5d4(%rip), %rax      # 0x10380
cmpl $0x0, 0x18(%rax)
je 0x2e1e
movl $0x400, %edi            # imm = 0x400
movl $0x4, %esi
callq 0x8c70
movq %rax, %rbx
movq 0xd5b5(%rip), %rax      # 0x10380
cmpl $0x0, 0x18(%rax)
jle 0x2e00
xorl %r14d, %r14d
movq 0x8(%rax), %rcx
movslq 0x14(%rax), %rax
movslq %r14d, %r14
imulq %r14, %rax
movl (%rcx,%rax), %esi
movq %rbx, %rdi
callq 0x8f2b
incl (%rax)
incl %r14d
movq 0xd586(%rip), %rax      # 0x10380
cmpl 0x18(%rax), %r14d
jl 0x2dd4
leaq 0x76f1(%rip), %rdi      # 0xa4f8
movq %rbx, %rsi
callq 0x2aaa
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x8dc9
callq 0x1577
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/richarddurbin[P]hash10x/hash10x.c
// Function: codeSizeHist
void codeSizeHist (void)
{
  if (!clusterBlocks || !arrayMax (clusterBlocks))
    { fprintf (stderr, "  no barcodes to print stats for\n") ; return ; }
  Array hashHist = arrayCreate (1024, int) ;
  Array clusterHist = arrayCreate (1024, int) ;
  int i ;
  for (i = 0 ; i < arrayMax(clusterBlocks) ; ++i)
    { ClusterBlock *b = arrp (clusterBlocks, i, ClusterBlock) ;
      ++array(hashHist, b->nHash, int) ;
      ++array(clusterHist, b->nSubCluster, int) ;
    }
  histogramReport ("CODE_SIZE", hashHist) ;
  if (arrayMax(clusterHist) > 1) histogramReport ("CODE_CLUSTER", clusterHist) ;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0xd54d(%rip), %rax      # 0x10388
testq %rax, %rax
je 0x2eec
cmpl $0x0, 0x18(%rax)
je 0x2eec
movl $0x400, %edi            # imm = 0x400
movl $0x4, %esi
callq 0x8c70
movq %rax, %r14
movl $0x400, %edi            # imm = 0x400
movl $0x4, %esi
callq 0x8c70
movq %rax, %rbx
movq 0xd50f(%rip), %rax      # 0x10388
cmpl $0x0, 0x18(%rax)
jle 0x2ebf
xorl %r15d, %r15d
movq 0x8(%rax), %r12
movslq 0x14(%rax), %r13
movslq %r15d, %r15
imulq %r15, %r13
movl 0x4(%r12,%r13), %esi
movq %r14, %rdi
callq 0x8f2b
incl (%rax)
movl 0x8(%r12,%r13), %esi
movq %rbx, %rdi
callq 0x8f2b
incl (%rax)
incl %r15d
movq 0xd4cf(%rip), %rax      # 0x10388
cmpl 0x18(%rax), %r15d
jl 0x2e82
leaq 0x765f(%rip), %rdi      # 0xa525
movq %r14, %rsi
callq 0x2aaa
cmpl $0x2, 0x18(%rbx)
jl 0x2ef1
leaq 0x7654(%rip), %rdi      # 0xa52f
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2aaa
callq 0x1593
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/richarddurbin[P]hash10x/hash10x.c
// Function: printArrayStats
void printArrayStats (Array a)
{
  int i, *ai = arrp(a,0,int), sum = 0, min = -1, max = arrayMax(a)-1 ;
  double total = 0 ;
  for (i = 0 ; i < arrayMax(a) ; ++i, ++ai)
    if (*ai)
      { sum += *ai ; total += *ai * i ;
	if (min == -1) min = i ;
      }
  fprintf (outFile, "  %d mean %.1f min %d max %d\n", sum, total/sum, min, max) ;
}

// Assembly:
movl 0x18(%rdi), %r8d
testl %r8d, %r8d
jle 0x2f3c
movq 0x8(%rdi), %rax
xorl %esi, %esi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorpd %xmm0, %xmm0
xorl %edx, %edx
movl (%rax,%rsi,4), %edi
testl %edi, %edi
je 0x2f32
addl %edi, %edx
imull %esi, %edi
xorps %xmm1, %xmm1
cvtsi2sd %edi, %xmm1
addsd %xmm1, %xmm0
cmpl $-0x1, %ecx
cmovel %esi, %ecx
incq %rsi
cmpl %esi, %r8d
jne 0x2f15
jmp 0x2f47
xorpd %xmm0, %xmm0
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %edx, %edx
decl %r8d
movq 0xd43f(%rip), %rdi      # 0x10390
xorps %xmm1, %xmm1
cvtsi2sd %edx, %xmm1
divsd %xmm1, %xmm0
leaq 0x75d9(%rip), %rsi      # 0xa53c
movb $0x1, %al
jmp 0x1150
// File: /workspace/github_c_makefile_star2_O1/richarddurbin[P]hash10x/hash10x.c
// Function: cribText
char* cribText (int x)
{ static char text[32] ;
  char *s = text ;
  s += sprintf (s, "%d", x) ;
  if (crib) s += sprintf (s, ":%s", cribTypeName[cribType[x]]) ;
  if (crib && cribType[x] > CRIB_ERR && cribType[x] < CRIB_MUL)
    s += sprintf (s, "_%d.%d", crib[x].chr, crib[x].pos) ;
  sprintf (s, "-%d", arr(hashDepth, x, U32)) ;
  return text ;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edi, %ebp
leaq 0xce97(%rip), %r14      # 0x103e0
leaq 0x6f62(%rip), %rsi      # 0xa4b2
movq %r14, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x1230
movslq %eax, %rbx
addq %r14, %rbx
cmpq $0x0, 0xce56(%rip)      # 0x103c0
movslq %ebp, %r14
je 0x359c
movq 0xce52(%rip), %rax      # 0x103c8
movzbl (%rax,%r14), %eax
leaq 0xb81e(%rip), %rcx      # 0xeda0
movq (%rcx,%rax,8), %rdx
leaq 0x7066(%rip), %rsi      # 0xa5f3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1230
cltq
addq %rax, %rbx
movq 0xce1d(%rip), %rax      # 0x103c0
testq %rax, %rax
je 0x35db
movq 0xce19(%rip), %rcx      # 0x103c8
movb (%rcx,%r14), %cl
decb %cl
cmpb $0x2, %cl
ja 0x35db
movswl (%rax,%r14,4), %edx
movzwl 0x2(%rax,%r14,4), %ecx
leaq 0x702b(%rip), %rsi      # 0xa5f7
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1230
cltq
addq %rax, %rbx
movq 0xcd9e(%rip), %rax      # 0x10380
movq 0x8(%rax), %rcx
movslq 0x14(%rax), %rax
imulq %r14, %rax
movl (%rcx,%rax), %edx
leaq 0x7006(%rip), %rsi      # 0xa5fe
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1230
leaq 0xcdd7(%rip), %rax      # 0x103e0
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/richarddurbin[P]hash10x/hash10x.c
// Function: hashWithinRangeBuild
BOOL hashWithinRangeBuild (int min, int max)
{ 
  if (hashWithinRange && min == hashRangeMin && max == hashRangeMax) return FALSE ;
  if (!hashWithinRange) hashWithinRange = new0 (hashNumber, BOOL) ;
  int i, n ;
  for (i = 0 ; i < hashNumber ; ++i)
    { n = arr(hashDepth, i, U32) ;
      if (n >= min && n < max) hashWithinRange[i] = TRUE ;
    }
  hashRangeMin = min ; hashRangeMax = max ;
  return TRUE ;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
movq 0xcde4(%rip), %rax      # 0x10400
testq %rax, %rax
je 0x3635
cmpl %ebp, 0xcde1(%rip)      # 0x10408
jne 0x3635
cmpl %ebx, 0xcddd(%rip)      # 0x1040c
jne 0x3635
xorl %eax, %eax
jmp 0x36ac
testq %rax, %rax
jne 0x3651
movl 0xcd68(%rip), %edi      # 0x103a8
movl $0x1, %esi
callq 0x94f8
movq %rax, 0xcdaf(%rip)      # 0x10400
cmpl $0x0, 0xcd50(%rip)      # 0x103a8
je 0x369e
movq 0xcd9f(%rip), %rax      # 0x10400
xorl %ecx, %ecx
movq 0xcd16(%rip), %rdx      # 0x10380
movq 0x8(%rdx), %rsi
movslq 0x14(%rdx), %rdx
movslq %ecx, %rdi
imulq %rdx, %rdi
movl (%rsi,%rdi), %edx
cmpl %ebp, %edx
setl %sil
cmpl %ebx, %edx
setge %dl
orb %sil, %dl
jne 0x3690
movb $0x1, (%rax,%rcx)
incq %rcx
movl 0xcd0f(%rip), %edx      # 0x103a8
cmpq %rdx, %rcx
jb 0x3663
movl %ebp, 0xcd64(%rip)      # 0x10408
movl %ebx, 0xcd62(%rip)      # 0x1040c
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq