// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/jkOwnLib/genoFind.c
// Function: gfNewEmpty
static struct genoFind *gfNewEmpty(int minMatch, int maxGap, 
	int tileSize, int stepSize, int maxPat,
	char *oocFile, boolean isPep, boolean allowOneMismatch)
/* Return an empty pattern space. oocFile parameter may be NULL*/
{
struct genoFind *gf;
int tileSpaceSize;
int segSize = 0;

gfCheckTileSize(tileSize, isPep);
if (stepSize == 0)
    stepSize = tileSize;
AllocVar(gf);
if (isPep)
    {
    if (tileSize > 5)
        {
	segSize = tileSize - 5;
	}
    tileSpaceSize = gf->tileSpaceSize = gfPowerOf20(tileSize-segSize);
    }
else
    {
    int seedBitSize;
    if (tileSize > 12)
        {
	segSize = tileSize - 12;
	}
    seedBitSize = (tileSize-segSize)*2;
    tileSpaceSize = gf->tileSpaceSize = (1<<seedBitSize);
    gf->tileMask = tileSpaceSize-1;
    }
gf->segSize = segSize;
gf->tileSize = tileSize;
gf->stepSize = stepSize;
gf->isPep = isPep;
gf->allowOneMismatch = allowOneMismatch;
if (segSize > 0)
    {
    gf->endLists = needHugeZeroedMem(tileSpaceSize * sizeof(gf->endLists[0]));
    maxPat = BIGNUM;	/* Don't filter out overused on the big ones.  It is
                         * unnecessary and would be quite complex. */
    }
else
    {
    gf->lists = needHugeZeroedMem(tileSpaceSize * sizeof(gf->lists[0]));
    }
gf->listSizes = needHugeZeroedMem(tileSpaceSize * sizeof(gf->listSizes[0]));
gf->minMatch = minMatch;
gf->maxGap = maxGap;
gf->maxPat = maxPat;
if (oocFile != NULL)
    {
    if (segSize > 0)
        errAbort("Don't yet support ooc on large tile sizes");
    oocMaskCounts(oocFile, gf->listSizes, tileSize, maxPat);
    oocMaskSimpleRepeats(gf->listSizes, tileSize, maxPat);
    }
return gf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r15
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, 0x4(%rsp)
movl %edi, (%rsp)
movl 0x40(%rsp), %r12d
testl %r12d, %r12d
je 0xcca0
leal -0x9(%r14), %eax
cmpl $-0x6, %eax
jae 0xccdb
leaq 0x80d4d(%rip), %rdi     # 0x8d9eb
jmp 0xccb4
leal -0x13(%r14), %eax
cmpl $-0xd, %eax
jae 0xcdd8
leaq 0x80d60(%rip), %rdi     # 0x8da14
xorl %eax, %eax
callq 0x26e94
testl %ebp, %ebp
cmovel %r14d, %ebp
movl $0x58, %edi
callq 0x2dff4
movq %rax, %r13
movl %r12d, %esi
testl %r12d, %r12d
jne 0xccf1
jmp 0xcdee
testl %ebp, %ebp
cmovel %r14d, %ebp
movl $0x58, %edi
callq 0x2dff4
movq %rax, %r13
movl %r12d, %esi
leal -0x5(%r14), %eax
xorl %r12d, %r12d
cmpl $0x6, %r14d
cmovgel %eax, %r12d
movl %r14d, %ecx
subl %r12d, %ecx
movl $0x14, %eax
cmpl $0x2, %ecx
jl 0xcdd2
cmpl $0x6, %r14d
movl $0x5, %ecx
cmovgel %r14d, %ecx
movl %r14d, %eax
subl %ecx, %eax
addl $0x7, %eax
andl $-0x4, %eax
negl %ecx
addl %r14d, %ecx
addl $0x3, %ecx
movd %ecx, %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa 0x80c3b(%rip), %xmm1    # 0x8d980
movl $0x4, %ecx
movdqa 0x80c3e(%rip), %xmm3    # 0x8d990
movdqa %xmm1, %xmm2
pmuludq %xmm3, %xmm1
pshufd $0xe8, %xmm1, %xmm1     # xmm1 = xmm1[0,2,2,3]
pshufd $0xf5, %xmm2, %xmm4     # xmm4 = xmm2[1,1,3,3]
pmuludq %xmm3, %xmm4
pshufd $0xe8, %xmm4, %xmm4     # xmm4 = xmm4[0,2,2,3]
punpckldq %xmm4, %xmm1    # xmm1 = xmm1[0],xmm4[0],xmm1[1],xmm4[1]
movl %ecx, %edx
addl $-0x4, %ecx
addl %eax, %edx
addl $-0x4, %edx
cmpl $0x4, %edx
jne 0xcd52
negl %ecx
movd %ecx, %xmm3
pshufd $0x0, %xmm3, %xmm3      # xmm3 = xmm3[0,0,0,0]
por 0x80c0d(%rip), %xmm3    # 0x8d9a0
movdqa 0x80c15(%rip), %xmm4    # 0x8d9b0
pxor %xmm4, %xmm0
pxor %xmm4, %xmm3
pcmpgtd %xmm0, %xmm3
pand %xmm3, %xmm2
pandn %xmm1, %xmm3
por %xmm2, %xmm3
pshufd $0xee, %xmm3, %xmm0     # xmm0 = xmm3[2,3,2,3]
pshufd $0xff, %xmm3, %xmm1     # xmm1 = xmm3[3,3,3,3]
pshufd $0xf5, %xmm3, %xmm2     # xmm2 = xmm3[1,1,3,3]
pmuludq %xmm1, %xmm2
pmuludq %xmm3, %xmm0
pmuludq %xmm2, %xmm0
movd %xmm0, %eax
movl %eax, 0x14(%r13)
jmp 0xce17
testl %ebp, %ebp
cmovel %r14d, %ebp
movl $0x58, %edi
callq 0x2dff4
movq %rax, %r13
movl %r12d, %esi
leal -0xc(%r14), %eax
xorl %r12d, %r12d
cmpl $0xd, %r14d
cmovgel %eax, %r12d
movl %r14d, %ecx
subl %r12d, %ecx
addl %ecx, %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, 0x14(%r13)
leal -0x1(%rax), %ecx
movl %ecx, 0x18(%r13)
movl %r12d, 0x2c(%r13)
movl %r14d, 0xc(%r13)
movl %ebp, 0x10(%r13)
movb %sil, 0x28(%r13)
movl 0x48(%rsp), %ecx
movb %cl, 0x29(%r13)
movslq %eax, %rbp
leaq (,%rbp,8), %rdi
callq 0x2df6d
xorl %ecx, %ecx
testl %r12d, %r12d
setg %cl
movl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
cmovgl %edx, %ebx
movq %rax, 0x48(%r13,%rcx,8)
shlq $0x2, %rbp
movq %rbp, %rdi
callq 0x2df6d
movq %rax, 0x38(%r13)
movl (%rsp), %ecx
movl %ecx, 0x4(%r13)
movl 0x4(%rsp), %ecx
movl %ecx, 0x8(%r13)
movl %ebx, (%r13)
testq %r15, %r15
je 0xceb1
testl %r12d, %r12d
jle 0xce93
leaq 0x80dac(%rip), %rdi     # 0x8dc34
xorl %eax, %eax
callq 0x26e94
movq 0x38(%r13), %rax
movq %r15, %rdi
movq %rax, %rsi
movl %r14d, %edx
movl %ebx, %ecx
callq 0x147f8
movq 0x38(%r13), %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0x1493d
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq