LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/Cotix[P]cReddit/libreddit/token.c
// Function: writeToParser
static size_t writeToParser(void *contents, size_t size, size_t nmemb, void *userp)
{
    size_t realsize = size * nmemb;
    TokenParser *parser = (TokenParser*)userp;

    parser->block->memory = rrealloc(parser->block->memory, parser->block->size + realsize + 1);

    memcpy(parser->block->memory + parser->block->size, contents, realsize);
    parser->block->size += realsize;
    parser->block->memory[parser->block->size] = 0;

    return realsize;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %r14
movq %rdx, %rbx
movq %rdi, %r15
imulq %rsi, %rbx
movq (%rcx), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rax
leaq (%rbx,%rax), %rsi
incq %rsi
callq 0x34f5
movq (%r14), %rcx
movq %rax, (%rcx)
addq 0x8(%rcx), %rax
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2180
movq (%r14), %rax
movq 0x8(%rax), %rcx
addq %rbx, %rcx
movq %rcx, 0x8(%rax)
movq (%rax), %rax
movb $0x0, (%rax,%rcx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Cotix[P]cReddit/libreddit/token.c
// Function: redditParseEscCodesGeneric
static void *redditParseEscCodesGeneric (const void *text, int len, int wide)
{
    struct charParser parser;

    if (len == 0)
        return NULL;

    parser.wide = wide;
    parser.text = text;
    parser.cur = 0;
    parser.offset = 0;

    if (wide)
        parser.new_text = rmalloc((len + 1) * sizeof(wchar_t));
    else
        parser.new_text = rmalloc((len + 1) * sizeof(char));

    for (parser.cur = 0; parser.cur < len; parser.cur++)
        parseChar(&parser);

    if (wide)
        ((wchar_t*)(parser.new_text))[parser.offset] = L'\0';
    else
        ((char*)(parser.new_text))[parser.offset] = '\0';

    return parser.new_text;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
xorl %r12d, %r12d
testl %esi, %esi
je 0x4c92
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movslq %esi, %rax
leaq 0x1(%rax), %rcx
testl %edx, %edx
leaq 0x4(,%rax,4), %rdi
cmoveq %rcx, %rdi
callq 0x34e0
movq %rax, %r10
leaq 0x1(%r14), %rax
movq %rax, 0x8(%rsp)
xorl %r13d, %r13d
movslq %r12d, %r15
cmpl %ebp, %r13d
jge 0x4c87
movslq %r13d, %rax
movsbl (%r14,%rax), %edi
cmpl $0x5c, %edi
jne 0x4bd7
movzbl 0x1(%r14,%rax), %ecx
incq %rax
cmpl $0x22, %ecx
je 0x4c4a
cmpl $0x75, %ecx
je 0x4c0c
cmpl $0x6e, %ecx
jne 0x4c7d
testl %ebx, %ebx
je 0x4c75
movl $0xa, (%r10,%r15,4)
jmp 0x4c7a
testl %ebx, %ebx
je 0x4c06
movq %r12, 0x10(%rsp)
movq %r14, %r12
movl %ebp, %r14d
movl %ebx, %ebp
movq %r10, %rbx
callq 0x2210
movq %rbx, %r10
movl %ebp, %ebx
movl %r14d, %ebp
movq %r12, %r14
movq 0x10(%rsp), %r12
movl %eax, (%r10,%r15,4)
jmp 0x4c60
movb %dil, (%r10,%r15)
jmp 0x4c60
testl %ebx, %ebx
je 0x4c68
addq 0x8(%rsp), %rax
xorl %edx, %edx
pushq $0xc
popq %rcx
pushq $0x3
popq %rsi
testl %esi, %esi
js 0x4c58
movsbl (%rax), %edi
leal -0x30(%rdi), %r8d
movl %edi, %r9d
andl $0xf, %r9d
addl $0x9, %r9d
cmpl $0x3a, %edi
cmovll %r8d, %r9d
shll %cl, %r9d
orl %r9d, %edx
decl %esi
incq %rax
addl $-0x4, %ecx
jmp 0x4c1d
testl %ebx, %ebx
je 0x4c6e
movl $0x22, (%r10,%r15,4)
jmp 0x4c7a
addl $0x5, %r13d
movl %edx, (%r10,%r15,4)
incl %r12d
movl %r13d, %eax
jmp 0x4c7d
addl $0x5, %r13d
jmp 0x4c63
movb $0x22, (%r10,%r15)
jmp 0x4c7a
movb $0xa, (%r10,%r15)
incl %r12d
incl %eax
movl %eax, %r13d
jmp 0x4b89
testl %ebx, %ebx
je 0x4c97
andl $0x0, (%r10,%r15,4)
jmp 0x4c9c
xorl %r10d, %r10d
jmp 0x4c9c
movb $0x0, (%r10,%r15)
movq %r10, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/Cotix[P]cReddit/libreddit/user.c
// Function: redditUserNew
EXPORT_SYMBOL RedditUser *redditUserNew()
{
    RedditUser *log = rmalloc(sizeof(RedditUser));

    memset(log, 0, sizeof(RedditUser));
    log->commentKarma = -1;
    log->linkKarma    = -1;

    return log;
}

// Assembly:
pushq %rax
pushq $0x28
popq %rdi
callq 0x34e0
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
andq $0x0, 0x20(%rax)
orq $-0x1, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/Cotix[P]cReddit/libreddit/user.c
// Function: redditUserFree
EXPORT_SYMBOL void redditUserFree (RedditUser *log)
{
    if (log == NULL)
        return ;
    free(log->name);
    free(log->id);
    free(log->modhash);
    free(log);
}

// Assembly:
testq %rdi, %rdi
je 0x4cfb
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2050
movq 0x10(%rbx), %rdi
callq 0x2050
movq 0x8(%rbx), %rdi
callq 0x2050
movq %rbx, %rdi
popq %rbx
jmp 0x2050
retq
// File: /workspace/github_c_makefile_star2_O2/Cotix[P]cReddit/libreddit/user.c
// Function: redditUserLoggedNew
EXPORT_SYMBOL RedditUserLogged *redditUserLoggedNew()
{
    RedditUserLogged *user = rmalloc(sizeof(RedditUserLogged));

    user->userInfo     = redditUserNew();
    user->stayLoggedOn = false;
    user->userState    = REDDIT_USER_OFFLINE;

    return user;
}

// Assembly:
pushq %rbx
pushq $0x10
popq %rdi
callq 0x34e0
movq %rax, %rbx
callq 0x20b0
movq %rax, 0x8(%rbx)
movb $0x0, 0x4(%rbx)
orl $-0x1, (%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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
andl $0x0, 0x4(%rsp)
leaq 0x3d59(%rip), %rsi      # 0x8d60
leaq 0x10(%rsp), %rdi
movl $0xa8, %edx
callq 0x2180
testq %r14, %r14
sete %al
testq %r15, %r15
sete %cl
orb %al, %cl
jne 0x5089
leaq 0x1287(%rip), %rdi      # 0x62b4
callq 0x21c0
movzbl 0x4(%rbx), %esi
leaq 0xa(%rsp), %rdi
callq 0x431a
leaq 0x127c(%rip), %rsi      # 0x62c3
xorl %ebp, %ebp
leaq 0xc0(%rsp), %r12
movq %r12, %rdi
movq %rax, %rdx
movq %r15, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x2290
leaq 0x127f(%rip), %rdi      # 0x62ea
leaq 0x10(%rsp), %rdx
leaq 0x4(%rsp), %rcx
movq %r12, %rsi
xorl %eax, %eax
callq 0x4ac0
testl %eax, %eax
jne 0x508e
movl 0x4(%rsp), %eax
jmp 0x5091
pushq $0x4
popq %rax
jmp 0x5099
pushq $0x2
popq %rax
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_O2/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
leaq 0x8(%rsp), %r14
andq $0x0, (%r14)
leaq 0xf74(%rip), %rax       # 0x6106
leaq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq $0x2, 0x8(%rdx)
movq %r14, 0x10(%rdx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdx)
andl $0x0, 0x28(%rdx)
movb $0x1, 0x2c(%rdx)
andq $0x0, 0x30(%rdx)
leaq 0xf4a(%rip), %rax       # 0x610b
movq %rax, 0x38(%rdx)
movabsq $0x200000003, %rax      # imm = 0x200000003
movq %rax, 0x40(%rdx)
movups %xmm0, 0x48(%rdx)
movups %xmm0, 0x55(%rdx)
leaq 0x50(%rip), %rax        # 0x5232
movq %rax, 0x68(%rdx)
movaps %xmm0, 0x70(%rdx)
movaps %xmm0, 0x80(%rdx)
movaps %xmm0, 0x90(%rdx)
andq $0x0, 0xa0(%rdx)
leaq 0x8(%rdi), %rcx
leaq 0x1104(%rip), %rdi      # 0x630f
xorl %esi, %esi
xorl %eax, %eax
callq 0x4ac0
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
movq (%r14), %rdi
callq 0x2050
addl %ebx, %ebx
movl %ebx, %eax
addq $0xb8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5256
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x5262
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %r12
leaq 0xe9a(%rip), %r15       # 0x6106
movq (%r14), %rdi
testq %rdi, %rdi
je 0x52bb
movq %r15, %rsi
callq 0x2160
addq $0x38, %r14
testl %eax, %eax
jne 0x526c
movq -0x28(%r14), %rax
testq %rax, %rax
je 0x52bb
movq (%rax), %rax
cmpb $0x74, (%rax)
jne 0x52bb
cmpb $0x32, 0x1(%rax)
jne 0x52bb
cmpb $0x0, 0x2(%rax)
jne 0x52bb
movq (%r12), %rdi
testq %rdi, %rdi
je 0x52af
callq 0x2090
movq %rbx, %rdi
callq 0x4d39
movq %rax, (%r12)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
leal -0x30(%rdi), %ecx
cmpl $0x3, %ecx
jbe 0x1346
cmpl $0x41, %edi
je 0x1360
cmpl $0x43, %edi
je 0x1356
cmpl $0x47, %edi
je 0x135a
cmpl $0x54, %edi
je 0x135e
cmpl $0x61, %edi
je 0x1360
cmpl $0x74, %edi
je 0x135e
cmpl $0x67, %edi
je 0x135a
cmpl $0x63, %edi
je 0x1356
movb $0x4, %al
jmp 0x1360
leaq 0xbcb7(%rip), %rdx      # 0xd004
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movb $0x1, %al
jmp 0x1360
movb $0x2, %al
jmp 0x1360
movb $0x3, %al
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jiqingxiaoxi[P]RPA/RPA.c
// Function: readLoop
void readLoop(FILE *file,double *v1,double *v2,double *v3)
{
	char *line,*p,*q;

	line=(char *)malloc(200);
	memset(line,'\0',200);
	fgets(line,200,file);

	p = line;
	while (isspace(*p)) 
		p++;
	while (isdigit(*p)) 
		p++;
	while (isspace(*p)) 
		p++;

	q = p;
	while (!isspace(*q)) 
		q++;

	*q = '\0';
	q++;
	if (!strcmp(p, "inf"))
		*v1 =1.0*INFINITY;
        else 
                sscanf(p, "%lf", v1);
        while (isspace(*q))
                q++;

        p = q;
        while (!isspace(*p))
                p++;
        *p = '\0';
        p++;
        if (!strcmp(q, "inf"))
                *v2 =1.0*INFINITY;
        else 
                sscanf(q, "%lf", v2);
        while (isspace(*p))
                p++;

        q = p;
        while (!isspace(*q) && (*q != '\0'))
                q++;
        *q = '\0';
        if (!strcmp(p, "inf"))
                *v3 =1.0*INFINITY;
        else 
                sscanf(p, "%lf", v3);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movq %rsi, %r15
movq %rdi, %rbx
pushq $0x1
popq %rdi
movl $0xc8, %esi
callq 0x1140
movq %rax, %r14
movq %rax, %rdi
movl $0xc8, %esi
movq %rbx, %rdx
callq 0x1130
callq 0x1200
movq %rax, %r12
movq (%rax), %rax
addq $-0x5, %r14
movsbq 0x5(%r14), %rcx
incq %r14
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x13b0
movsbq 0x4(%r14), %rcx
incq %r14
testb $0x8, 0x1(%rax,%rcx,2)
jne 0x13bf
movsbq 0x3(%r14), %rcx
incq %r14
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x13ce
leaq 0x2(%r14), %rbx
movsbq 0x2(%r14), %rcx
incq %r14
testb $0x20, 0x1(%rax,%rcx,2)
je 0x13e1
movb $0x0, 0x1(%r14)
leaq 0xbd2c(%rip), %rsi      # 0xd128
movq %rbx, %rdi
callq 0x1150
movabsq $0x7ff0000000000000, %r13 # imm = 0x7FF0000000000000
testl %eax, %eax
je 0x1428
leaq 0xbd13(%rip), %rsi      # 0xd12c
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x11a0
jmp 0x142b
movq %r13, (%r15)
movq (%r12), %rax
movsbq 0x2(%r14), %rcx
incq %r14
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x142f
leaq 0x1(%r14), %rbx
movsbq 0x1(%r14), %rcx
incq %r14
testb $0x20, 0x1(%rax,%rcx,2)
je 0x1442
movb $0x0, (%r14)
leaq 0xbccc(%rip), %rsi      # 0xd128
movq %rbx, %rdi
callq 0x1150
testl %eax, %eax
je 0x147f
leaq 0xbcbd(%rip), %rsi      # 0xd12c
movq %rbx, %rdi
movq -0x30(%rbp), %rdx
xorl %eax, %eax
callq 0x11a0
jmp 0x1486
movq -0x30(%rbp), %rax
movq %r13, (%rax)
movq (%r12), %rax
movsbq 0x1(%r14), %rcx
incq %r14
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x148a
movq %r14, %rcx
movsbq (%rcx), %rdx
incq %rcx
testq %rdx, %rdx
je 0x14b4
movzwl (%rax,%rdx,2), %edx
andl $0x2000, %edx           # imm = 0x2000
je 0x149c
movb $0x0, -0x1(%rcx)
leaq 0xbc69(%rip), %rsi      # 0xd128
movq %r14, %rdi
callq 0x1150
testl %eax, %eax
je 0x14ee
leaq 0xbc5a(%rip), %rsi      # 0xd12c
movq %r14, %rdi
movq -0x38(%rbp), %rdx
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11a0
movq -0x38(%rbp), %rax
movq %r13, (%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
movl %esi, %r15d
movq %rdi, %r12
callq 0x10b0
movq %rax, %r14
addl $0x14, %r14d
movslq %r14d, %rsi
pushq $0x1
popq %rdi
callq 0x1140
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
callq 0x1050
movq %rbx, %rdi
callq 0x10b0
addq %rbx, %rax
testl %r15d, %r15d
je 0x2a42
movabsq $0x73642e706f6f6c, %rcx # imm = 0x73642E706F6F6C
movq %rcx, 0x5(%rax)
movabsq $0x6f6f6c6172746574, %rcx # imm = 0x6F6F6C6172746574
movq %rcx, (%rax)
jmp 0x2a56
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 0x2aa2
leaq 0xa7cf(%rip), %rsi      # 0xd23b
movq %rbx, %rdi
callq 0x11c0
testq %rax, %rax
je 0x2aab
movq %rax, %r15
pushq $-0x1
popq %r12
movq %rbx, %rdi
movl %r14d, %esi
movq %r15, %rdx
callq 0x1130
incl %r12d
testq %rax, %rax
jne 0x2a80
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa690(%rip), %rdi      # 0xd139
jmp 0x2ab2
leaq 0xa6a3(%rip), %rdi      # 0xd155
movq %rbx, %rsi
xorl %eax, %eax
callq 0x10c0
pushq $0x1
popq %rdi
callq 0x11f0
// File: /workspace/github_c_makefile_star2_O2/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
cmpq $0x5, %rax
je 0x2f87
xorl %esi, %esi
cmpq $0x5, %rsi
je 0x2f7e
movq %rcx, (%rdx,%rsi,8)
incq %rsi
jmp 0x2f6f
incq %rax
addq $0x28, %rdx
jmp 0x2f67
movsd %xmm0, 0x78(%rdi)
movsd %xmm0, 0x18(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jiqingxiaoxi[P]RPA/RPA.c
// Function: tableStartATH
void tableStartATH(double atp_value,double atpH[])
{
        int i, j;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movq %rdi, %rcx
cmpq $0x5, %rax
je 0x2fbd
xorl %edx, %edx
cmpq $0x5, %rdx
je 0x2fb4
andq $0x0, (%rcx,%rdx,8)
incq %rdx
jmp 0x2fa4
incq %rax
addq $0x28, %rcx
jmp 0x2f9c
movsd %xmm0, 0x78(%rdi)
movsd %xmm0, 0x18(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl (%rdi), %eax
xorl %r8d, %r8d
testl %eax, %eax
cmovlel %r8d, %eax
movl %eax, -0x2c(%rbp)
leaq 0x1(%rcx), %r9
movabsq $0x1, %r10
movsd 0xa046(%rip), %xmm0     # 0xd040
movsd 0xa026(%rip), %xmm1     # 0xd028
movsd 0xa02e(%rip), %xmm2     # 0xd038
xorl %r11d, %r11d
cmpl -0x2c(%rbp), %r11d
je 0x3092
movl 0x4(%rdi), %ebx
cmpl %r11d, %ebx
cmovlel %r11d, %ebx
leal -0x1(%r10), %r14d
addq %r8, %rbx
xorl %r15d, %r15d
movl %r10d, %r12d
cmpq %r15, %rbx
je 0x3081
cmpq $0x3, %r15
ja 0x303b
movl 0x8(%rdi), %r13d
jmp 0x305d
movsbl (%rcx,%r10), %r13d
movsbl (%r9,%r15), %eax
addl %r13d, %eax
movl 0x8(%rdi), %r13d
cmpl $0x3, %eax
jne 0x305d
imull %r14d, %r13d
xorps %xmm3, %xmm3
movaps %xmm2, %xmm4
jmp 0x3067
imull %r14d, %r13d
movaps %xmm1, %xmm3
movaps %xmm0, %xmm4
addl %r12d, %r13d
movslq %r13d, %rax
movsd %xmm3, -0x8(%rsi,%rax,8)
movsd %xmm4, -0x8(%rdx,%rax,8)
incl %r12d
incq %r15
jmp 0x302a
incq %r10
incl %r11d
decq %r8
incq %r9
jmp 0x300d
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
cmpl $0x2, %edx
jne 0x30e6
movsd 0x9f96(%rip), %xmm0     # 0xd040
cmpl %esi, %edi
jge 0x3138
movl (%r8), %eax
cmpl %edi, %eax
je 0x3138
movl 0x4(%r8), %edx
leal 0x1(%rdx), %r8d
cmpl %esi, %r8d
je 0x3138
xorl %r8d, %r8d
cmpl %edi, %eax
cmovgel %r8d, %eax
subl %eax, %edi
cmpl %esi, %edx
cmovll %edx, %r8d
subl %r8d, %esi
movabsq $-0x1, %rax
jmp 0x30f0
movabsq $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
imulq $0x28, %rdx, %rcx
addq %rsi, %rcx
movsd (%rcx,%rax,8), %xmm0
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x31db
movsd 0x9ed6(%rip), %xmm1     # 0xd028
cmpl %esi, %edi
jge 0x31d5
movl (%r8), %edx
cmpl %edi, %edx
je 0x31d5
movl 0x4(%r8), %r8d
leal 0x1(%r8), %r10d
cmpl %esi, %r10d
je 0x31d5
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
imulq $0x28, %r8, %rsi
addq %rdx, %rsi
addq %rcx, %rsi
movsd (%rsi,%rax,8), %xmm0
movapd 0x9f1d(%rip), %xmm2     # 0xd0e0
andpd %xmm0, %xmm2
movsd 0x9e61(%rip), %xmm3     # 0xd030
ucomisd %xmm2, %xmm3
ja 0x3217
movapd %xmm1, %xmm0
jmp 0x3217
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
imulq $0x28, %r8, %rcx
addq %rdx, %rcx
movsd (%rcx,%rax,8), %xmm0
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movslq %esi, %r9
xorl %esi, %esi
testl %ecx, %ecx
movl $0x0, %r10d
cmovgl %ecx, %r10d
movslq %ecx, %rcx
testl %r8d, %r8d
cmovlel %esi, %r8d
addq %rdi, %r9
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %r8, %rsi
je 0x3d30
xorl %edi, %edi
cmpq %rdi, %r10
je 0x3d2e
movb (%r9,%rdi), %r11b
leaq 0x1(%rdi), %rbx
cmpb (%rdx,%rdi), %r11b
movq %rbx, %rdi
je 0x3d10
incq %rsi
addq %rcx, %rdx
jmp 0x3d09
movl %esi, %eax
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4335
ucomisd %xmm2, %xmm0
jbe 0x4335
ucomisd %xmm3, %xmm0
jbe 0x4335
ucomisd %xmm4, %xmm0
jbe 0x4335
movl $0x1, %eax
jmp 0x436d
ucomisd %xmm2, %xmm1
jbe 0x434e
ucomisd %xmm3, %xmm1
jbe 0x434e
ucomisd %xmm4, %xmm1
jbe 0x434e
movl $0x2, %eax
jmp 0x436d
ucomisd %xmm3, %xmm2
jbe 0x4361
ucomisd %xmm4, %xmm2
jbe 0x4361
movl $0x3, %eax
jmp 0x436d
xorl %eax, %eax
ucomisd %xmm4, %xmm3
seta %al
xorl $0x5, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movl %r8d, %eax
movslq %r8d, %r8
movslq %r9d, %r10
imulq $0xc, %r8, %r11
addq %rdi, %r11
cmpq %r10, %r8
jle 0x52e5
decq %r8
movl -0xc(%r11), %ebx
movl %ebx, (%r11)
movq -0x8(%r11), %rbx
movq %rbx, 0x4(%r11)
addq $-0xc, %r11
jmp 0x52c8
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
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x6be6(%rip), %xmm3     # 0xd0e0
movapd %xmm0, %xmm2
andpd %xmm3, %xmm2
ucomisd 0x6b26(%rip), %xmm2     # 0xd030
xorpd %xmm2, %xmm2
ja 0x656d
andpd %xmm1, %xmm3
ucomisd 0x6b14(%rip), %xmm3     # 0xd030
ja 0x656d
movslq (%rsi), %rcx
xorl %eax, %eax
movabsq $0x1, %rdx
cmpq %rcx, %rdx
jge 0x6544
xorl %esi, %esi
cmpl $0x0, -0x4(%rdi,%rdx,4)
setg %sil
addl %esi, %eax
incq %rdx
jmp 0x652d
pushq %rbp
movq %rsp, %rbp
shrl %eax
decl %eax
cvtsi2sd %eax, %xmm2
mulsd 0x6b20(%rip), %xmm2     # 0xd078
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
addsd 0x6b18(%rip), %xmm0     # 0xd080
movapd %xmm0, %xmm2
popq %rbp
movapd %xmm2, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O2/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
movl (%rdi), %eax
xorl %r9d, %r9d
testl %eax, %eax
cmovlel %r9d, %eax
incl %eax
movabsq $0x1, %r14
movsd 0x6a8a(%rip), %xmm0     # 0xd028
leaq 0x6b5b(%rip), %r11      # 0xd100
xorl %ebx, %ebx
cmpq %rax, %r14
je 0x6625
movl 0x4(%rdi), %r15d
testl %r15d, %r15d
movl $0x0, %r9d
cmovlel %r9d, %r15d
negq %r15
movabsq $0x1, %r12
leaq (%r15,%r12), %r9
cmpq $0x1, %r9
je 0x661e
movsbl (%rcx,%r14), %r9d
movsbl (%r8,%r12), %r10d
addl %r9d, %r10d
xorl %r13d, %r13d
xorps %xmm1, %xmm1
cmpl $0x3, %r10d
sete %r9b
je 0x65f4
movaps %xmm0, %xmm1
movb %r9b, %r13b
movsd (%r11,%r13,8), %xmm2
movl 0x8(%rdi), %r9d
imull %ebx, %r9d
addl %r12d, %r9d
movslq %r9d, %r9
movsd %xmm1, -0x8(%rsi,%r9,8)
movsd %xmm2, -0x8(%rdx,%r9,8)
incq %r12
jmp 0x65ca
incq %r14
incl %ebx
jmp 0x65a7
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x554b(%rip), %xmm3     # 0xd0e0
xorpd %xmm2, %xmm2
ucomisd 0x548f(%rip), %xmm3     # 0xd030
ja 0x7c1b
movl (%rcx), %r8d
xorl %r9d, %r9d
testl %r8d, %r8d
cmovlel %r9d, %r8d
xorl %eax, %eax
cmpq %r9, %r8
je 0x7bcb
xorl %r10d, %r10d
cmpl $0x0, (%rdi,%r9,4)
setg %r10b
addl %r10d, %eax
incq %r9
jmp 0x7bb2
movl 0x4(%rcx), %ecx
xorl %edi, %edi
testl %ecx, %ecx
cmovlel %edi, %ecx
cmpq %rdi, %rcx
je 0x7bed
xorl %r8d, %r8d
cmpl $0x0, (%rsi,%rdi,4)
setg %r8b
addl %r8d, %eax
incq %rdi
jmp 0x7bd5
pushq %rbp
movq %rsp, %rbp
shrl %eax
decl %eax
cvtsi2sd %eax, %xmm2
mulsd 0x5477(%rip), %xmm2     # 0xd078
addsd %xmm1, %xmm2
addsd 0x10(%rdx), %xmm2
divsd %xmm2, %xmm0
addsd 0x546a(%rip), %xmm0     # 0xd080
movapd %xmm0, %xmm2
popq %rbp
movapd %xmm2, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
pushq %rax
movq %rdi, %rbx
callq 0x10b0
movq %rax, %rcx
andl $0x80000001, %eax       # imm = 0x80000001
cmpl $0x1, %eax
jne 0x7c46
xorl %edx, %edx
movl %edx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
pushq $0x2
popq %rsi
movl %ecx, %eax
cltd
idivl %esi
xorl %esi, %esi
testl %eax, %eax
cmovlel %esi, %eax
movabsq $-0x100000000, %rdi     # imm = 0xFFFFFFFF00000000
shlq $0x20, %rcx
addq %rdi, %rcx
pushq $0x1
popq %r8
cmpq %rsi, %rax
je 0x7d0d
movzbl (%rbx,%rsi), %r9d
movq %rcx, %r11
sarq $0x20, %r11
movb $0x1, %r10b
cmpl $0x41, %r9d
jne 0x7c91
cmpb $0x54, (%rbx,%r11)
je 0x7ca6
jmp 0x7c3b
cmpl $0x54, %r9d
jne 0x7ca6
xorl %r10d, %r10d
cmpb $0x41, (%rbx,%r11)
movl $0x0, %edx
jne 0x7c3d
movzbl (%rbx,%r11), %edx
cmpl $0x54, %edx
je 0x7ccb
cmpl $0x41, %edx
jne 0x7cd6
xorl %edx, %edx
testb %r10b, %r10b
jne 0x7c3d
orl $0x4, %r9d
cmpl $0x47, %r9d
jne 0x7d02
jmp 0x7c3d
cmpl $0x41, %r9d
je 0x7d02
jmp 0x7c3b
cmpl $0x47, %r9d
je 0x7cec
cmpl $0x43, %r9d
jne 0x7cf6
cmpl $0x47, %edx
je 0x7d02
jmp 0x7c3b
cmpl $0x43, %edx
je 0x7d02
jmp 0x7c3b
orl $0x4, %edx
cmpl $0x47, %edx
je 0x7c3b
incq %rsi
addq %rdi, %rcx
jmp 0x7c6a
movl %r8d, %edx
jmp 0x7c3d
// File: /workspace/github_c_makefile_star2_O2/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:
xorl %eax, %eax
testl %ecx, %ecx
cmovgl %ecx, %eax
testl %r8d, %r8d
je 0x8bda
pushq %rbp
movq %rsp, %rbp
pushq %rbx
addl %ecx, %edx
decl %edx
xorl %r8d, %r8d
movabsq $0x100000001, %r9       # imm = 0x100000001
movabsq $0x400000004, %r10      # imm = 0x400000004
movabsq $0x8000000080000, %r11  # imm = 0x8000000080000
cmpq %r8, %rax
je 0x8bd0
movslq %edx, %rbx
movzbl (%rdi,%rbx), %ebx
addl $-0x41, %ebx
cmpl $0x33, %ebx
ja 0x8bc3
btq %rbx, %r9
jb 0x8bbf
btq %rbx, %r10
jb 0x8bbb
btq %rbx, %r11
jae 0x8bc3
movb $0x41, %bl
jmp 0x8bc5
movb $0x47, %bl
jmp 0x8bc5
movb $0x54, %bl
jmp 0x8bc5
movb $0x43, %bl
movb %bl, (%rsi,%r8)
incq %r8
decl %edx
jmp 0x8b91
movslq %ecx, %rax
popq %rbx
popq %rbp
movb $0x0, (%rsi,%rax)
retq
movslq %edx, %rcx
addq %rcx, %rdi
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x8bd5
movb (%rdi,%rcx), %dl
movb %dl, (%rsi,%rcx)
incq %rcx
jmp 0x8be2
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
testl %edx, %edx
movl $0x0, %ecx
cmovgl %edx, %ecx
decl %edx
cmpq %rax, %rcx
je 0x8c3e
movslq %edx, %r8
movzbl (%rdi,%r8), %r8d
cmpl $0x41, %r8d
je 0x8c2d
cmpl $0x43, %r8d
je 0x8c28
cmpl $0x54, %r8d
jne 0x8c32
movb $0x41, %r8b
jmp 0x8c35
movb $0x47, %r8b
jmp 0x8c35
movb $0x54, %r8b
jmp 0x8c35
movb $0x43, %r8b
movb %r8b, (%rsi,%rax)
incq %rax
jmp 0x8c02
movb $0x0, (%rsi,%rcx)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebx
cmpl %r8d, %ecx
jge 0xa695
movl %ecx, %r14d
movq %rdx, %r8
movq %rsi, %r12
movq %rdi, %r13
leal (%rbx,%r14), %eax
pushq $0x2
popq %rcx
cltd
idivl %ecx
movl %eax, %r15d
movq %r8, %rdx
movl %r14d, %ecx
movq %r8, -0x30(%rbp)
movl %eax, %r8d
movq %r15, -0x38(%rbp)
callq 0xa60e
leal 0x1(%r15), %ecx
movq %r13, %rdi
movq %r12, %rsi
movq -0x30(%rbp), %r15
movq %r15, %rdx
movl %ebx, %r8d
callq 0xa60e
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r14d, %ecx
movl %ebx, %r8d
movq -0x38(%rbp), %r9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa518
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jiqingxiaoxi[P]RPA/RPA.c
// Function: read_list
struct INFO *read_list(char *path,int common_num[])
{
        char *in,name[301];
        int turn,i,size;
        struct INFO *new_primer,*p_primer,*head;
        FILE *fp;

	i=strlen(path);
	in=(char *)malloc(i+20);
	memset(in,'\0',i+20);
	strcpy(in,path);
	strcat(in,"-common_list.txt");
        if(access(in,0)==-1)
        {
                printf("Error! Don't have the %s file!\n",in);
                exit(1);
        }
        fp=fopen(in,"r");
        if(fp==NULL)
        {
                printf("Error: can't open the %s file!\n",in);
                exit(1);
        }
        
        size=sizeof(struct INFO);
        i=0;
        memset(name,'\0',301);
        while(fscanf(fp,"%s\t%d\n",name,&turn)!=EOF)
        {
                new_primer=(struct INFO *)malloc(size);
                new_primer->turn=turn;
                strcpy(new_primer->name,name);
                new_primer->next=NULL;

                if(i==0)
                {
                        head=new_primer;
                        p_primer=new_primer;
                        i++;
                }
                else
                {
                        p_primer->next=new_primer;
                        p_primer=new_primer;
                }
                memset(name,'\0',301);
        }
        fclose(fp);
	common_num[0]=turn;
	free(in);
	return head;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rsi, %r14
movq %rdi, %rbx
callq 0x10b0
addl $0x14, %eax
movslq %eax, %rsi
pushq $0x1
popq %rdi
callq 0x1140
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1050
movq %r15, %rdi
callq 0x10b0
movups 0x2163(%rip), %xmm0     # 0xd5c0
movups %xmm0, (%r15,%rax)
movb $0x0, 0x10(%r15,%rax)
movq %r15, %rdi
xorl %esi, %esi
callq 0x11b0
cmpl $-0x1, %eax
je 0xb54c
movq %r14, -0x40(%rbp)
leaq 0x1db5(%rip), %rsi      # 0xd23b
movq %r15, -0x38(%rbp)
movq %r15, %rdi
callq 0x11c0
testq %rax, %rax
je 0xb558
movq %rax, %r15
movb $0x1, %bl
leaq -0x180(%rbp), %r13
movq %r12, -0x48(%rbp)
movl $0x12d, %edx            # imm = 0x12D
movq %r13, %rdi
xorl %esi, %esi
callq 0x1100
movq %r15, %rdi
leaq 0x210d(%rip), %rsi      # 0xd5d1
movq %r13, %rdx
leaq -0x2c(%rbp), %rcx
xorl %eax, %eax
callq 0x1060
cmpl $-0x1, %eax
je 0xb51c
movl $0x140, %edi            # imm = 0x140
callq 0x1190
movq %rax, %r14
movl -0x2c(%rbp), %eax
movl %eax, 0x130(%r14)
movq %r14, %rdi
movq %r13, %rsi
callq 0x1050
andq $0x0, 0x138(%r14)
testb $0x1, %bl
jne 0xb515
movq %r14, 0x138(%r12)
xorl %ebx, %ebx
movq %r14, %r12
jmp 0xb4ab
xorl %ebx, %ebx
movq %r14, %r12
jmp 0xb4a7
movq %r15, %rdi
callq 0x10a0
movl -0x2c(%rbp), %eax
movq -0x40(%rbp), %rcx
movl %eax, (%rcx)
movq -0x38(%rbp), %rdi
callq 0x1030
movq -0x48(%rbp), %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1d1c(%rip), %rdi      # 0xd26f
movq %r15, %rsi
jmp 0xb563
leaq 0x1f61(%rip), %rdi      # 0xd4c0
movq -0x38(%rbp), %rsi
xorl %eax, %eax
callq 0x10c0
pushq $0x1
popq %rdi
callq 0x11f0
// File: /workspace/github_c_makefile_star2_O2/jiqingxiaoxi[P]RPA/RPA.c
// Function: check_common
int check_common(struct Primer *F,struct Primer *R,int *result,int common)
{
        int dis,num,i;
	struct Node *c_F,*c_R,*b_R;

	for(i=0;i<common;i++)
		result[i]=0;
//plus
	b_R=R->common;
	for(c_F=F->common;c_F;c_F=c_F->next)
	{
		if(c_F->plus!=1)
			continue;
		if(result[c_F->gi])
			continue;
		for(c_R=b_R;c_R;c_R=c_R->next)
		{
			if(c_R->gi<c_F->gi)
			{
				b_R=c_R->next;
				continue;
			}
			if(c_R->gi>c_F->gi)
				break;
			if(c_R->minus!=1)
				continue;
			if(c_R->pos+R->len-c_F->pos<100)
			{
				b_R=c_R->next;
				continue;
			}
			if(c_R->pos+R->len-c_F->pos>200)
				break;
			result[c_F->gi]=1;
			break;
		}
	}
//minus
	b_R=R->common;
        for(c_F=F->common;c_F;c_F=c_F->next)
        {
                if(c_F->minus!=1)
                        continue;
                if(result[c_F->gi])
                        continue;  //this GI can common

                for(c_R=b_R;c_R;c_R=c_R->next)
                {
			if(c_R->gi<c_F->gi)
                        {
                                b_R=c_R->next;
                                continue;
                        }
                        if(c_R->gi>c_F->gi)
                                break;
                        if(c_R->plus!=1)
                                continue;
			if(c_F->pos+F->len-c_R->pos<100)
				break;
			if(c_F->pos+F->len-c_R->pos>200)
			{
				b_R=c_R->next;
				continue;
			}
			result[c_F->gi]=1;
			break;
                }
        }
	num=0;
	for(i=0;i<common;i++)
	{
		num=num+result[i];
	}
	return num;
}

// Assembly:
xorl %eax, %eax
testl %ecx, %ecx
cmovlel %eax, %ecx
cmpq %rax, %rcx
je 0xb5cd
andl $0x0, (%rdx,%rax,4)
incq %rax
jmp 0xb5bf
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x30(%rsi), %r8
leaq 0x30(%rdi), %rax
movq %rax, %r9
movq %r8, %r10
movq (%r9), %r9
testq %r9, %r9
je 0xb6ae
cmpl $0x1, 0x8(%r9)
jne 0xb600
movslq 0x4(%r9), %r11
cmpl $0x0, (%rdx,%r11,4)
je 0xb60a
addq $0x10, %r9
jmp 0xb5e2
movq 0x10(%rbx), %r10
movq %r10, %rbx
testq %rbx, %rbx
je 0xb600
movl 0x4(%rbx), %r14d
cmpl %r11d, %r14d
jl 0xb606
cmpl %r11d, %r14d
jg 0xb600
cmpl $0x1, 0xc(%rbx)
je 0xb62c
movq 0x10(%rbx), %rbx
jmp 0xb60d
movl 0x4(%rsi), %r14d
addl (%rbx), %r14d
subl (%r9), %r14d
cmpl $0x64, %r14d
jl 0xb606
cmpl $0xc8, %r14d
ja 0xb600
movl $0x1, (%rdx,%r11,4)
jmp 0xb600
cmpl $0x1, 0xc(%rax)
jne 0xb65f
movslq 0x4(%rax), %rsi
cmpl $0x0, (%rdx,%rsi,4)
je 0xb669
addq $0x10, %rax
jmp 0xb6ae
movq 0x10(%r9), %r8
movq %r8, %r9
testq %r9, %r9
je 0xb65f
movl 0x4(%r9), %r10d
cmpl %esi, %r10d
jl 0xb665
cmpl %esi, %r10d
jg 0xb65f
cmpl $0x1, 0x8(%r9)
je 0xb68c
movq 0x10(%r9), %r9
jmp 0xb66c
movl 0x4(%rdi), %r10d
addl (%rax), %r10d
subl (%r9), %r10d
cmpl $0x64, %r10d
jl 0xb65f
cmpl $0xc8, %r10d
ja 0xb665
movl $0x1, (%rdx,%rsi,4)
jmp 0xb65f
movq (%rax), %rax
testq %rax, %rax
jne 0xb64f
xorl %esi, %esi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
cmpq %rsi, %rcx
je 0xb6cb
addl (%rdx,%rsi,4), %eax
incq %rsi
jmp 0xb6be
retq
// File: /workspace/github_c_makefile_star2_O2/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
xorl %ecx, %ecx
testl %edx, %edx
cmovlel %ecx, %edx
movl $0x1, %eax
cmpq %rcx, %rdx
je 0xc551
movl (%rsi,%rcx,4), %r8d
cmpl $-0x1, %r8d
je 0xc551
subl %edi, %r8d
movl %r8d, %r9d
negl %r9d
cmovsl %r8d, %r9d
incq %rcx
cmpl $0x12b, %r9d            # imm = 0x12B
ja 0xc527
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
movq %rdi, %rbx
movslq %esi, %r14
leaq (,%r14,4), %rdi
callq 0x1190
xorl %ecx, %ecx
testl %r14d, %r14d
cmovlel %ecx, %r14d
testq %rbx, %rbx
je 0xc5bd
movq 0x30(%rbx), %rcx
xorl %edx, %edx
cmpq %rdx, %r14
je 0xc59e
andl $0x0, (%rax,%rdx,4)
incq %rdx
jmp 0xc581
movslq 0x4(%rcx), %rdx
movl $0x1, (%rax,%rdx,4)
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xc58f
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rcx, %r14
je 0xc5b4
addl (%rax,%rcx,4), %edx
incq %rcx
jmp 0xc5a7
movl %edx, 0x10(%rbx)
movq 0x28(%rbx), %rbx
jmp 0xc576
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
movq %rdi, %rbx
movslq %esi, %r14
leaq (,%r14,4), %rdi
callq 0x1190
xorl %ecx, %ecx
testl %r14d, %r14d
cmovlel %ecx, %r14d
testq %rbx, %rbx
je 0xc633
movq 0x20(%rbx), %rcx
xorl %edx, %edx
cmpq %rdx, %r14
je 0xc614
andl $0x0, (%rax,%rdx,4)
incq %rdx
jmp 0xc5f7
movslq 0x4(%rcx), %rdx
movl $0x1, (%rax,%rdx,4)
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xc605
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rcx, %r14
je 0xc62a
addl (%rax,%rcx,4), %edx
incq %rcx
jmp 0xc61d
movl %edx, 0xc(%rbx)
movq 0x18(%rbx), %rbx
jmp 0xc5ec
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/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
addq $0x38, %rdi
movq %rdi, %rax
movq %rcx, %rdx
movq (%rax), %rax
testq %rax, %rax
je 0xc6a5
cmpl $0x1, 0x8(%rax)
jne 0xc69f
movq %rdx, %rsi
testq %rdx, %rdx
je 0xc69c
movl 0x4(%rax), %r9d
movq %rdx, %r8
cmpl %r9d, 0x4(%rdx)
jl 0xc681
jg 0xc69c
movl (%rdx), %r8d
subl (%rax), %r8d
jge 0xc687
movq %rsi, %r8
movq 0x10(%r8), %rsi
jmp 0xc696
cmpl $0x7d0, %r8d            # imm = 0x7D0
jg 0xc69c
cmpl $0x1, 0xc(%rdx)
je 0xc6fb
movq 0x10(%rdx), %rdx
jmp 0xc662
movq %rsi, %rdx
addq $0x10, %rax
jmp 0xc651
movl $0x1, %eax
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xc6fd
cmpl $0x1, 0xc(%rdi)
jne 0xc6f5
movq %rcx, %rdx
testq %rcx, %rcx
je 0xc6f2
movl 0x4(%rdi), %r8d
movq %rcx, %rsi
cmpl %r8d, 0x4(%rcx)
jl 0xc6e0
jg 0xc6f2
movl (%rcx), %esi
subl (%rdi), %esi
jg 0xc6f2
cmpl $0xfffff830, %esi       # imm = 0xFFFFF830
jge 0xc6e6
movq %rdx, %rsi
movq 0x10(%rsi), %rdx
jmp 0xc6ec
cmpl $0x1, 0x8(%rcx)
je 0xc6fb
movq 0x10(%rcx), %rcx
jmp 0xc6bb
movq %rdx, %rcx
addq $0x10, %rdi
jmp 0xc6aa
xorl %eax, %eax
popq %rbp
retq