// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/blatSrc/blat.c
// Function: performBigblat
void* performBigblat(void* args)
{
    int             id=*((int*)(((void**)args)[0]));
    int             queryCount=*((int*)(((void**)args)[1]));
    char            **queryFiles=(char**)(((void**)args)[2]);
    struct lineFile *lf=(struct lineFile *)(((void**)args)[3]);
    struct genoFind **gfs=(struct genoFind**)(((void**)args)[4]);
    struct hash     *t3Hash=(struct hash*)(((void**)args)[5]);
    int             isRc=*((int*)(((void**)args)[6]));
    boolean         qIsDna=*((boolean*)(((void**)args)[7]));
    FILE            *out=(FILE*)(((void**)args)[8]);
    boolean         transQuery=*((boolean*)(((void**)args)[9]));
    boolean         forceLower=*((boolean*)(((void**)args)[10]));
    boolean         forceUpper=*((boolean*)(((void**)args)[11]));
    boolean         maskUpper=*((boolean*)(((void**)args)[12]));
    boolean         toggle=*((boolean*)(((void**)args)[13]));
    struct gfOutput *gvo=(struct gfOutput *)(((void**)args)[14]);

    int             i;
    struct dnaSeq   trimmedSeq;

    unsigned        faFastBufSize = 0;
    DNA             *faFastBuf = NULL;

    ZeroVar(&trimmedSeq);
//for (i=0; i<queryCount; ++i)
    {
        aaSeq qSeq;
        qSeq.name=(char*)malloc(sizeof(char)*512);

        while (queryCount-- && faMixedSpeedReadNext(lf, &qSeq.dna, &qSeq.size, &qSeq.name, &faFastBuf, &faFastBufSize))
        {
            dotOut();
            /* Put it into right case and optionally mask on case. */
            if (forceLower)
                toLowerN(qSeq.dna, qSeq.size);
            else if (forceUpper)
                toUpperN(qSeq.dna, qSeq.size);
            else if (maskUpper)
            {
                if (toggle)
                    toggleCase(qSeq.dna, qSeq.size);
                upperToN(qSeq.dna, qSeq.size);
            }
            if (qSeq.size > qWarnSize)
            {
                warn("Query sequence %s has size %d, it might take a while.",
                     qSeq.name, qSeq.size);
            }
            trimSeq(&qSeq, &trimmedSeq);
            if (transQuery)
                transTripleSearch(&trimmedSeq, gfs, t3Hash, isRc, qIsDna, out, gvo);
            else
                tripleSearch(&trimmedSeq, gfs, t3Hash, isRc, out, gvo);
            gfOutputQuery(gvo, out);
        }
        free(qSeq.name);
        faFreeFastBuf(&faFastBuf, &faFastBufSize);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl (%rax), %eax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movl (%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movl (%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movl (%rax), %eax
movl %eax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movl (%rax), %eax
movl %eax, -0x54(%rbp)
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
movl (%rax), %eax
movl %eax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq 0x68(%rax), %rax
movl (%rax), %eax
movl %eax, -0x5c(%rbp)
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rax
movq %rax, -0x68(%rbp)
movl $0x0, -0x9c(%rbp)
movq $0x0, -0xa8(%rbp)
leaq -0x98(%rbp), %rdi
movl $0x28, %esi
callq 0x7500
movl $0x200, %edi            # imm = 0x200
callq 0x69c0
movq %rax, -0xc8(%rbp)
movl -0x18(%rbp), %ecx
movl %ecx, %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xd1(%rbp)
je 0x7f6e
movq -0x28(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
addq $0x10, %rsi
leaq -0xd0(%rbp), %rdx
addq $0x18, %rdx
leaq -0xd0(%rbp), %rcx
addq $0x8, %rcx
leaq -0xa8(%rbp), %r8
leaq -0x9c(%rbp), %r9
callq 0x37230
cmpl $0x0, %eax
setne %al
movb %al, -0xd1(%rbp)
movb -0xd1(%rbp), %al
testb $0x1, %al
jne 0x7f7d
jmp 0x8084
callq 0x7120
cmpl $0x0, -0x50(%rbp)
je 0x7f9c
movq -0xc0(%rbp), %rdi
movl -0xb8(%rbp), %esi
callq 0x2dc90
jmp 0x7fea
cmpl $0x0, -0x54(%rbp)
je 0x7fb6
movq -0xc0(%rbp), %rdi
movl -0xb8(%rbp), %esi
callq 0x2dc40
jmp 0x7fe8
cmpl $0x0, -0x58(%rbp)
je 0x7fe6
cmpl $0x0, -0x5c(%rbp)
je 0x7fd4
movq -0xc0(%rbp), %rdi
movl -0xb8(%rbp), %esi
callq 0x2dce0
movq -0xc0(%rbp), %rdi
movl -0xb8(%rbp), %esi
callq 0x33a10
jmp 0x7fe8
jmp 0x7fea
cmpl $0x4c4b40, -0xb8(%rbp)  # imm = 0x4C4B40
jle 0x8011
movq -0xc8(%rbp), %rsi
movl -0xb8(%rbp), %edx
leaq 0xcf543(%rip), %rdi     # 0xd754d
movb $0x0, %al
callq 0x358e0
leaq -0xd0(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x7260
cmpl $0x0, -0x4c(%rbp)
je 0x8053
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl -0x3c(%rbp), %ecx
movl -0x40(%rbp), %r8d
movq -0x48(%rbp), %r9
movq -0x68(%rbp), %rax
leaq -0x98(%rbp), %rdi
movq %rax, (%rsp)
callq 0x7d60
jmp 0x8072
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl -0x3c(%rbp), %ecx
movq -0x48(%rbp), %r8
movq -0x68(%rbp), %r9
leaq -0x98(%rbp), %rdi
callq 0x7d10
movq -0x68(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x17600
jmp 0x7f12
movq -0xc8(%rbp), %rdi
callq 0x6880
leaq -0xa8(%rbp), %rdi
leaq -0x9c(%rbp), %rsi
callq 0x36da0
movq -0x8(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq