// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/jkOwnLib/gfBlatLib.c
// Function: alignComponents
static boolean alignComponents(struct gfRange *combined, struct ssBundle *bun, 
	enum ffStringency stringency)
/* Align each piece of combined->components and put result in
 * bun->ffList. */
{
struct gfRange *range;
struct dnaSeq *qSeq = bun->qSeq, *tSeq = bun->genoSeq;
struct ssFfItem *ffi;
struct ffAli *ali;
int qStart, qEnd, tStart, tEnd;
int extra = 250;
boolean gotAny = FALSE;

for (range = combined->components; range != NULL; range = range->next)
    {
    /* Expand to include some extra sequence around range. */
    qStart = range->qStart - extra;
    tStart = range->tStart - extra;
    qEnd = range->qEnd + extra;
    tEnd = range->tEnd + extra;
    if (range == combined->components)
	{
        qStart -= extra;
	tStart -= extra;
	}
    if (range->next == NULL)
        {
	qEnd += extra;
	tEnd += extra;
	}
    if (qStart < combined->qStart) qStart = combined->qStart;
    if (tStart < combined->tStart) tStart = combined->tStart;
    if (qEnd > combined->qEnd) qEnd = combined->qEnd;
    if (tEnd > combined->tEnd) tEnd = combined->tEnd;
    ali = ffFind(qSeq->dna + qStart,
                 qSeq->dna + qEnd,
		 tSeq->dna + tStart - combined->tStart,
		 tSeq->dna + tEnd - combined->tStart,
		 stringency);
    if (ali != NULL)
        {
	AllocVar(ffi);
	ffi->ff = ali;
	slAddHead(&bun->ffList, ffi);
	gotAny = TRUE;
	}
    }
return gotAny;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
movl $0xfa, -0x54(%rbp)
movl $0x0, -0x58(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x121c0
movq -0x20(%rbp), %rax
movl 0x8(%rax), %eax
subl -0x54(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x20(%rbp), %rax
movl 0x20(%rax), %eax
subl -0x54(%rbp), %eax
movl %eax, -0x4c(%rbp)
movq -0x20(%rbp), %rax
movl 0xc(%rax), %eax
addl -0x54(%rbp), %eax
movl %eax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movl 0x24(%rax), %eax
addl -0x54(%rbp), %eax
movl %eax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x28(%rcx), %rax
jne 0x12098
movl -0x54(%rbp), %ecx
movl -0x44(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x44(%rbp)
movl -0x54(%rbp), %ecx
movl -0x4c(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x4c(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x120b4
movl -0x54(%rbp), %eax
addl -0x48(%rbp), %eax
movl %eax, -0x48(%rbp)
movl -0x54(%rbp), %eax
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
movl -0x44(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x120ca
movq -0x8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x44(%rbp)
movl -0x4c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x120e0
movq -0x8(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x4c(%rbp)
movl -0x48(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jle 0x120f6
movq -0x8(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x48(%rbp)
movl -0x50(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x24(%rcx), %eax
jle 0x1210c
movq -0x8(%rbp), %rax
movl 0x24(%rax), %eax
movl %eax, -0x50(%rbp)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdi
movslq -0x44(%rbp), %rax
addq %rax, %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
movslq -0x48(%rbp), %rax
addq %rax, %rsi
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rdx
movslq -0x4c(%rbp), %rax
addq %rax, %rdx
movq -0x8(%rbp), %rax
movslq 0x20(%rax), %rcx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rdx
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rcx
movslq -0x50(%rbp), %rax
addq %rax, %rcx
movq -0x8(%rbp), %rax
movslq 0x20(%rax), %r8
xorl %eax, %eax
subq %r8, %rax
addq %rax, %rcx
movl -0x14(%rbp), %r8d
callq 0xa600
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x121ae
movl $0x10, %edi
callq 0x40c50
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rdi
addq $0x8, %rdi
movq -0x38(%rbp), %rsi
callq 0x119b0
movl $0x1, -0x58(%rbp)
jmp 0x121b0
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x12035
movl -0x58(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)