// File: /workspace/github_c_makefile_star2_O1/icebert[P]pblat/jkOwnLib/genoFind.c
// Function: gfFindClumpsWithQmask
struct gfClump *gfFindClumpsWithQmask(struct genoFind *gf, bioSeq *seq, 
	Bits *qMaskBits, int qMaskOffset,
	struct lm *lm, int *retHitCount)
/* Find clumps associated with one sequence soft-masking seq according to qMaskBits */
{
    struct gfClump *clumpList = NULL;
    struct gfHit *hitList;
    int minMatch = gf->minMatch;

    int cmpQuerySize;

    #ifdef OLD	/* stepSize makes this obsolete. */
    if (seq->size < gf->tileSize * (gf->minMatch+1))
         minMatch = 1;
    #endif /* OLD */

    hitList =  gfFindHitsWithQmask(gf, seq, qMaskBits, qMaskOffset, lm,
                                   retHitCount, NULL, 0, 0);
    cmpQuerySize = seq->size;
    clumpList = clumpHits(gf, hitList, minMatch);
    return clumpList;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %r15
movl 0x4(%rdi), %eax
movl %eax, 0x1c(%rsp)
subq $0x8, %rsp
xorl %ebx, %ebx
pushq %rbx
pushq %rbx
pushq %rbx
callq 0xe1c3
addq $0x20, %rsp
movq %rax, %r14
movq %rbx, 0x30(%rsp)
movl 0x8(%r15), %eax
movl %eax, 0x44(%rsp)
movl 0xc(%r15), %eax
movq %rax, 0x50(%rsp)
movzwl 0x32(%r15), %ecx
movq %r15, 0x38(%rsp)
cmpb $0x0, 0x28(%r15)
movl $0xfed4, %eax           # imm = 0xFED4
movl $0xff9c, %ebp           # imm = 0xFF9C
cmovel %eax, %ebp
movq %rbx, 0x20(%rsp)
movq %rcx, %rbx
leaq 0x8(,%rcx,8), %rdi
callq 0x2db04
movq %rax, 0x20(%rsp)
testq %r14, %r14
je 0xdea7
movq (%r14), %rax
movq 0x20(%rsp), %rcx
movzwl 0xe(%r14), %edx
movq (%rcx,%rdx,8), %rsi
movq %rsi, (%r14)
movq %r14, (%rcx,%rdx,8)
movq %rax, %r14
testq %rax, %rax
jne 0xde87
movq %rbx, %rax
movl %eax, %ebx
incl %eax
movq %rax, 0x58(%rsp)
xorl %r14d, %r14d
movq 0x20(%rsp), %rax
leaq (%rax,%r14,8), %r15
movq %r15, %rdi
callq 0xdbaf
movq %r15, 0x60(%rsp)
movq (%r15), %r13
testq %r13, %r13
je 0xdf78
xorl %eax, %eax
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %r13, %rcx
movq (%r13), %r13
testq %r15, %r15
je 0xdefe
movl 0x10(%rcx), %edx
subl 0x10(%r15), %edx
cmpl 0x44(%rsp), %edx
jbe 0xdefe
movq %rcx, %r13
jmp 0xdf14
movl 0xc(%rcx), %edx
cmpl %eax, %edx
cmoval %edx, %eax
movq %r15, (%rcx)
incl %r12d
movq %rcx, %r15
testq %r13, %r13
jne 0xdee0
cmpq %rbx, %r14
jae 0xdf3b
cmpl %ebp, %eax
jbe 0xdf3b
movq 0x20(%rsp), %rax
movq 0x8(%rax,%r14,8), %rsi
movq %r15, %rdi
callq 0x1fc95
movq 0x20(%rsp), %rcx
movq %rax, 0x8(%rcx,%r14,8)
jmp 0xdf61
cmpl 0x1c(%rsp), %r12d
jl 0xdf61
movl $0x38, %edi
callq 0x2dc95
movq 0x30(%rsp), %rcx
movq %rcx, (%rax)
movq %rax, 0x30(%rsp)
movl %r12d, 0x20(%rax)
movq %r15, 0x28(%rax)
xorl %eax, %eax
movl $0x0, %r12d
movl $0x0, %r15d
testq %r13, %r13
jne 0xdee0
movq 0x60(%rsp), %rax
movq $0x0, (%rax)
addl $0x10000, %ebp          # imm = 0x10000
incq %r14
cmpq 0x58(%rsp), %r14
jne 0xdeb6
movq 0x30(%rsp), %r15
movq $0x0, 0x28(%rsp)
movq 0x38(%rsp), %rax
movl 0xc(%rax), %ebp
cmpb $0x0, 0x28(%rax)
movl $0x12c, %eax            # imm = 0x12C
movl $0x64, %r14d
cmovel %eax, %r14d
movq %r15, 0x10(%rsp)
testq %r15, %r15
je 0xe107
xorl %ebx, %ebx
movq %rbx, 0x8(%rsp)
movq 0x28(%r15), %rax
movq %rax, 0x48(%rsp)
movl $0x0, 0x20(%r15)
movq %rbx, 0x28(%r15)
movq (%r15), %r15
leaq 0x48(%rsp), %rdi
leaq 0x1899(%rip), %rsi      # 0xf893
callq 0x1fd04
movq 0x48(%rsp), %r12
testq %r12, %r12
je 0xe0ae
movl 0xc(%r12), %eax
xorl %ebx, %ebx
movq %r12, %r13
addl %r14d, %eax
movq (%r12), %r12
cmpl %eax, 0xc(%r13)
jbe 0xe091
cmpl 0x1c(%rsp), %ebx
jge 0xe041
movq $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rax
movl $0x0, 0x20(%rax)
jmp 0xe08f
leaq 0x8(%rsp), %rdi
callq 0x1fcb3
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rdi
movq %rax, 0x28(%rdi)
movq $0x0, 0x8(%rsp)
movl %ebx, 0x20(%rdi)
movl %ebp, %esi
callq 0xf8b3
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xf92b
movl $0x38, %edi
callq 0x2dc95
movq %rax, 0x10(%rsp)
xorl %ebx, %ebx
movl 0xc(%r13), %eax
movq 0x8(%rsp), %rcx
movq %rcx, (%r13)
movq %r13, 0x8(%rsp)
incl %ebx
testq %r12, %r12
jne 0xe014
leaq 0x8(%rsp), %rdi
callq 0x1fcb3
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rdi
movq %rax, 0x28(%rdi)
cmpl 0x1c(%rsp), %ebx
jge 0xe0e4
testq %rdi, %rdi
je 0xdfc1
leaq 0x10(%rsp), %rdi
callq 0x2dd51
jmp 0xdfc1
movl %ebx, 0x20(%rdi)
movl %ebp, %esi
callq 0xf8b3
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xf92b
jmp 0xdfc1
movq 0x28(%rsp), %rbx
movq %rbx, 0x30(%rsp)
testq %rbx, %rbx
movq 0x50(%rsp), %r12
je 0xe193
leaq 0x1946(%rip), %r15      # 0xfa68
leaq 0x28(%rsp), %r14
movq 0x28(%rbx), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0xe18b
movq %r14, %rdi
movq %r15, %rsi
callq 0x1fd04
movq 0x28(%rsp), %rdx
movl 0x8(%rdx), %esi
leal (%rsi,%r12), %eax
movl %esi, %edi
negl %edi
xorl %ecx, %ecx
testq %rdx, %rdx
je 0xe184
movl 0x8(%rdx), %r8d
cmpl %eax, %r8d
jbe 0xe16d
addl %edi, %eax
addl %eax, %ecx
leal (%r8,%r12), %eax
movl %r8d, %esi
jmp 0xe17a
addl %r12d, %r8d
cmpl %eax, %r8d
cmoval %r8d, %eax
movl %esi, %r8d
movq (%rdx), %rdx
movl %r8d, %edi
negl %edi
jmp 0xe152
addl %eax, %ecx
addl %edi, %ecx
movl %ecx, 0x30(%rbx)
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0xe127
leaq 0x16ec(%rip), %rsi      # 0xf886
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x1fd04
leaq 0x20(%rsp), %rdi
callq 0x2dd51
movq (%rbx), %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq