// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movl %r8d, %r13d
movl %ecx, %ebp
movl %edx, %ebx
movl %esi, 0xc(%rsp)
movl %edi, 0x8(%rsp)
movl 0x50(%rsp), %r12d
movl %edx, %edi
movl %r12d, %esi
callq 0xa988
testl %ebp, %ebp
cmovel %ebx, %ebp
pushq $0x58
popq %rdi
callq 0x28bb0
movq %rax, %r15
testl %r12d, %r12d
je 0xae7b
leal -0x5(%rbx), %eax
xorl %r14d, %r14d
cmpl $0x6, %ebx
cmovgel %eax, %r14d
movl %ebx, %edi
subl %r14d, %edi
callq 0xa978
jmp 0xae9b
leal -0xc(%rbx), %eax
xorl %r14d, %r14d
cmpl $0xd, %ebx
cmovgel %eax, %r14d
movl %ebx, %ecx
subl %r14d, %ecx
addl %ecx, %ecx
pushq $0x1
popq %rax
shll %cl, %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x18(%r15)
movl %eax, 0x14(%r15)
movl %r14d, 0x2c(%r15)
movl %ebx, 0xc(%r15)
movl %ebp, 0x10(%r15)
movb %r12b, 0x28(%r15)
movl 0x58(%rsp), %ecx
movb %cl, 0x29(%r15)
movslq %eax, %r12
leaq (,%r12,8), %rdi
callq 0x28b29
xorl %ecx, %ecx
testl %r14d, %r14d
setne %cl
movl $0x3fffffff, %ebp       # imm = 0x3FFFFFFF
cmovel %r13d, %ebp
movq %rax, 0x48(%r15,%rcx,8)
shlq $0x2, %r12
movq %r12, %rdi
callq 0x28b29
movq %rax, 0x38(%r15)
movl 0x8(%rsp), %ecx
movl %ecx, 0x4(%r15)
movl 0xc(%rsp), %ecx
movl %ecx, 0x8(%r15)
movl %ebp, (%r15)
movq 0x10(%rsp), %r12
testq %r12, %r12
je 0xaf3d
testl %r14d, %r14d
je 0xaf21
leaq 0x71cae(%rip), %rdi     # 0x7cbc4
xorl %eax, %eax
callq 0x223fb
movq 0x38(%r15), %rax
movq %r12, %rdi
movq %rax, %rsi
movl %ebx, %edx
movl %ebp, %ecx
callq 0x11af0
movq 0x38(%r15), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x11c0b
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq