// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/jkOwnLib/fuzzyFind.c
// Function: expandAlis
static struct ffAli *expandAlis(struct ffAli *ali, DNA *nStart, DNA *nEnd, DNA *hStart, DNA *hEnd,
                                int gapPenalty, int maxSkip, struct lm **ffMemPool)
/* Expand alignment to cover in-between tiles as well. */
{
    struct ffAli *a, *left, *right;
    DNA *ns, *ne, *hs, *he;
    boolean expanded = TRUE;

    while (expanded)
    {
        expanded = FALSE;
        /* Loop through expanding three times. */
        /* First just expand through N's that don't require an insertion/deletion. */
        for (a = ali; a != NULL; a = a->right)
        {
            if ((left = a->left) != NULL)
            {
                ns = left->nEnd;
                hs = left->hEnd;
            }
            else
            {
                ns = nStart;
                hs = hStart;
            }
            if ((right = a->right) != NULL)
            {
                ne = right->nStart;
                he = right->hStart;
            }
            else
            {
                ne = nEnd;
                he = hEnd;
            }
            expanded |= expandThroughNLeft(a, ns, ne, hs, he);
            expanded |= expandThroughNRight(a, ns, ne, hs, he);
        }
        /* Second do other expansion that doesn't require an insertion/deletion. */
        for (a = ali; a != NULL; a = a->right)
        {
            if ((left = a->left) != NULL)
            {
                ns = left->nEnd;
                hs = left->hEnd;
            }
            else
            {
                ns = nStart;
                hs = hStart;
            }
            if ((right = a->right) != NULL)
            {
                ne = right->nStart;
                he = right->hStart;
            }
            else
            {
                ne = nEnd;
                he = hEnd;
            }
            expanded |= expandLeft(a, ns, ne, hs, he, 0, gapPenalty, maxSkip, ffMemPool);
            expanded |= expandRight(a, ns, ne, hs, he, 0, gapPenalty, maxSkip, ffMemPool);
        }
        /* Finally do insertion/deletion. */
        for (a = ali; a != NULL; a = a->right)
        {
            if ((left = a->left) != NULL)
            {
                ns = left->nEnd;
                hs = left->hEnd;
            }
            else
            {
                ns = nStart;
                hs = hStart;
            }
            if ((right = a->right) != NULL)
            {
                ne = right->nStart;
                he = right->hStart;
            }
            else
            {
                ne = nEnd;
                he = hEnd;
            }
            expanded |= expandLeft(a, ns, ne, hs, he, 1, gapPenalty, maxSkip, ffMemPool);
            expanded |= expandRight(a, ns, ne, hs, he, 1, gapPenalty, maxSkip, ffMemPool);
        }
        while (ali->left)
            ali = ali->left;
    }
    return ali;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq 0x18(%rbp), %rax
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movl $0x1, -0x6c(%rbp)
cmpl $0x0, -0x6c(%rbp)
je 0xb085
movl $0x0, -0x6c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0xae3b
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0xada0
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x40(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x60(%rbp)
jmp 0xadb0
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0xaddc
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x68(%rbp)
jmp 0xadec
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %r8
callq 0x9840
orl -0x6c(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x38(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %r8
callq 0x96e0
orl -0x6c(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0xad6a
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0xaf4e
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0xae79
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x40(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x60(%rbp)
jmp 0xae89
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0xaeb5
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x68(%rbp)
jmp 0xaec5
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %r8
movl -0x2c(%rbp), %r11d
movl 0x10(%rbp), %r10d
movq 0x18(%rbp), %rax
xorl %r9d, %r9d
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0xc020
orl -0x6c(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x38(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %r8
movl -0x2c(%rbp), %r11d
movl 0x10(%rbp), %r10d
movq 0x18(%rbp), %rax
xorl %r9d, %r9d
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0xc330
orl -0x6c(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0xae43
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0xb067
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0xaf8c
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x40(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x60(%rbp)
jmp 0xaf9c
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0xafc8
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x68(%rbp)
jmp 0xafd8
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %r8
movl -0x2c(%rbp), %r11d
movl 0x10(%rbp), %r10d
movq 0x18(%rbp), %rax
movl $0x1, %r9d
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0xc020
orl -0x6c(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x38(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %r8
movl -0x2c(%rbp), %r11d
movl 0x10(%rbp), %r10d
movq 0x18(%rbp), %rax
movl $0x1, %r9d
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0xc330
orl -0x6c(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0xaf56
jmp 0xb069
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
je 0xb080
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0xb069
jmp 0xad51
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)