// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/blatSrc/blat.c
// Function: searchOneIndex
void searchOneIndex(int fileCount, char *files[], struct lineFile *lf[], struct genoFind *gf,
                    boolean isProt, struct hash *maskHash, FILE *out[], struct gfOutput *gvo[],
                    boolean showStatus)
/* Search all sequences in all files against single genoFind index. */
{
    int        i;
    pthread_t* thd=(pthread_t*)malloc(sizeof(pthread_t)*threads);
    void***    args=(void***)malloc(sizeof(void*)*threads);
    int*       id=(int*)malloc(sizeof(int)*threads);

    for (i=0; i<threads; i++)
    {
        args[i]=(void**)malloc(sizeof(void*)*10);
        args[i][1]=&fileCount;
        args[i][2]=files;
        args[i][4]=gf;
        args[i][5]=&isProt;
        args[i][6]=maskHash;
        args[i][8]=&showStatus;

        id[i]=i;
        args[i][0]=&(id[i]);
        args[i][3]=lf[i];
        args[i][7]=out[i];
        args[i][9]=gvo[i];
        if (pthread_create(&(thd[i]), NULL, performSearch, (void*)(args[i])) != 0)
        {
            printf("Failed to create threads\n");
            return;
        }
    }

    for (i=0; i<threads; i++)
        pthread_join(thd[i], NULL);
    free(thd);
    for (i=0; i<threads; i++)
        free(args[i]);
    free(args);
    free(id);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl 0x20(%rbp), %eax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
movslq 0xfddcf(%rip), %rdi     # 0x105760
shlq $0x3, %rdi
callq 0x69c0
movq %rax, -0x40(%rbp)
movslq 0xfddbb(%rip), %rdi     # 0x105760
shlq $0x3, %rdi
callq 0x69c0
movq %rax, -0x48(%rbp)
movslq 0xfdda7(%rip), %rdi     # 0x105760
shlq $0x2, %rdi
callq 0x69c0
movq %rax, -0x50(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl 0xfdd8a(%rip), %eax     # 0x105760
jge 0x7b40
movl $0x50, %edi
callq 0x69c0
movq %rax, %rdx
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
leaq -0x4(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rcx
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rcx
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, 0x20(%rax)
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
leaq -0x24(%rbp), %rcx
movq %rcx, 0x28(%rax)
movq -0x30(%rbp), %rcx
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, 0x30(%rax)
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
leaq 0x20(%rbp), %rcx
movq %rcx, 0x40(%rax)
movl -0x34(%rbp), %edx
movq -0x50(%rbp), %rax
movslq -0x34(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x50(%rbp), %rcx
movslq -0x34(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rcx
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, 0x18(%rax)
movq 0x10(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, 0x38(%rax)
movq 0x18(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, 0x48(%rax)
movq -0x40(%rbp), %rdi
movslq -0x34(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
xorl %eax, %eax
movl %eax, %esi
leaq -0x5e3(%rip), %rdx      # 0x7530
callq 0x6dc0
cmpl $0x0, %eax
je 0x7b30
leaq 0xcfaf7(%rip), %rdi     # 0xd761b
movb $0x0, %al
callq 0x6070
jmp 0x7bbb
jmp 0x7b32
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x79cd
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl 0xfdc10(%rip), %eax     # 0x105760
jge 0x7b72
movq -0x40(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x6610
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x7b47
movq -0x40(%rbp), %rdi
callq 0x6880
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl 0xfdbd5(%rip), %eax     # 0x105760
jge 0x7ba9
movq -0x48(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x6880
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x7b82
movq -0x48(%rbp), %rdi
callq 0x6880
movq -0x50(%rbp), %rdi
callq 0x6880
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)