// File: /workspace/github_c_makefile_star2_O0/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
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x10a0
movl %eax, -0x158(%rbp)
movl -0x158(%rbp), %eax
addl $0x14, %eax
movslq %eax, %rdi
callq 0x1160
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movl -0x158(%rbp), %eax
addl $0x14, %eax
movslq %eax, %rdx
xorl %esi, %esi
callq 0x10e0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x1050
movq -0x18(%rbp), %rdi
leaq 0x4365(%rip), %rsi      # 0x17e0b
callq 0x11b0
movq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x1180
cmpl $-0x1, %eax
jne 0x13ad7
movq -0x18(%rbp), %rsi
leaq 0x3ff4(%rip), %rdi      # 0x17aba
movb $0x0, %al
callq 0x10b0
movl $0x1, %edi
callq 0x11c0
movq -0x18(%rbp), %rdi
leaq 0x3e8a(%rip), %rsi      # 0x1796c
callq 0x1190
movq %rax, -0x180(%rbp)
cmpq $0x0, -0x180(%rbp)
jne 0x13b14
movq -0x18(%rbp), %rsi
leaq 0x4208(%rip), %rdi      # 0x17d0b
movb $0x0, %al
callq 0x10b0
movl $0x1, %edi
callq 0x11c0
movl $0x140, -0x15c(%rbp)    # imm = 0x140
movl $0x0, -0x158(%rbp)
leaq -0x150(%rbp), %rdi
xorl %esi, %esi
movl $0x12d, %edx            # imm = 0x12D
callq 0x10e0
movq -0x180(%rbp), %rdi
leaq -0x150(%rbp), %rdx
leaq 0x42cc(%rip), %rsi      # 0x17e1c
leaq -0x154(%rbp), %rcx
movb $0x0, %al
callq 0x1060
cmpl $-0x1, %eax
je 0x13c23
movslq -0x15c(%rbp), %rdi
callq 0x1160
movq %rax, -0x168(%rbp)
movl -0x154(%rbp), %ecx
movq -0x168(%rbp), %rax
movl %ecx, 0x130(%rax)
movq -0x168(%rbp), %rdi
leaq -0x150(%rbp), %rsi
callq 0x1050
movq -0x168(%rbp), %rax
movq $0x0, 0x138(%rax)
cmpl $0x0, -0x158(%rbp)
jne 0x13be8
movq -0x168(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x170(%rbp)
movl -0x158(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x158(%rbp)
jmp 0x13c0b
movq -0x168(%rbp), %rcx
movq -0x170(%rbp), %rax
movq %rcx, 0x138(%rax)
movq -0x168(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq -0x150(%rbp), %rdi
xorl %esi, %esi
movl $0x12d, %edx            # imm = 0x12D
callq 0x10e0
jmp 0x13b3b
movq -0x180(%rbp), %rdi
callq 0x1090
movl -0x154(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rdi
callq 0x1030
movq -0x178(%rbp), %rax
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
nopw %cs:(%rax,%rax)