// File: /workspace/github_c_makefile_star2_O1/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, %ebx
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, 0xc(%rsp)
movl %edi, 0x8(%rsp)
movl 0x50(%rsp), %r13d
movl %edx, %edi
movl %r13d, %esi
callq 0xc786
testl %ebp, %ebp
cmovel %r14d, %ebp
movl $0x58, %edi
callq 0x2dc95
movq %rax, %r12
testl %r13d, %r13d
je 0xcd6b
leal -0x5(%r14), %eax
xorl %r15d, %r15d
cmpl $0x6, %r14d
cmovgel %eax, %r15d
movl %r14d, %ecx
subl %r15d, %ecx
movl $0x14, %eax
cmpl $0x2, %ecx
jl 0xcd64
cmpl $0x6, %r14d
movl $0x5, %eax
cmovgel %r14d, %eax
negl %eax
leal (%r14,%rax), %ecx
addl $0x6, %ecx
movl $0x14, %eax
shll $0x2, %eax
leal (%rax,%rax,4), %eax
decl %ecx
cmpl $0x2, %ecx
jg 0xcd57
movl %eax, 0x14(%r12)
jmp 0xcd96
leal -0xc(%r14), %eax
xorl %r15d, %r15d
cmpl $0xd, %r14d
cmovgel %eax, %r15d
movl %r14d, %ecx
subl %r15d, %ecx
addl %ecx, %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, 0x14(%r12)
leal -0x1(%rax), %ecx
movl %ecx, 0x18(%r12)
movl %r15d, 0x2c(%r12)
movl %r14d, 0xc(%r12)
movl %ebp, 0x10(%r12)
movb %r13b, 0x28(%r12)
movl 0x58(%rsp), %ecx
movb %cl, 0x29(%r12)
movslq %eax, %r13
leaq (,%r13,8), %rdi
callq 0x2dc0e
xorl %ecx, %ecx
testl %r15d, %r15d
setg %cl
movl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
cmovgl %edx, %ebx
movq %rax, 0x48(%r12,%rcx,8)
shlq $0x2, %r13
movq %r13, %rdi
callq 0x2dc0e
movq %rax, 0x38(%r12)
movl 0x8(%rsp), %eax
movl %eax, 0x4(%r12)
movl 0xc(%rsp), %eax
movl %eax, 0x8(%r12)
movl %ebx, (%r12)
movq 0x10(%rsp), %r13
testq %r13, %r13
je 0xce3d
testl %r15d, %r15d
jle 0xce1c
leaq 0x80dcf(%rip), %rdi     # 0x8dbe4
xorl %eax, %eax
callq 0x26b6f
movq 0x38(%r12), %rsi
movq %r13, %rdi
movl %r14d, %edx
movl %ebx, %ecx
callq 0x1474c
movq 0x38(%r12), %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0x14891
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq