// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/jkOwnLib/gfClientLib.c
// Function: gfClientSeqList
bioSeq *gfClientSeqList(int fileCount, char *files[], 
	boolean isProt, boolean isTransDna, char *maskType, 
	float minRepDivergence, boolean showStatus)
/* From an array of .fa and .nib file names, create a
 * list of dnaSeqs, which are set up so that upper case is masked and lower case
 * is unmasked sequence. (This is the opposite of the input, but set so that
 * we can use lower case as our primary DNA sequence, which historically predates
 * our use of lower case masking.)  Protein sequence on the other hand is
 * all upper case. */

{
int i;
char *fileName;
bioSeq *seqList = NULL, *seq;
boolean doMask = (maskType != NULL);

unsigned faFastBufSize = 0;
DNA     *faFastBuf = NULL;

for (i=0; i<fileCount; ++i)
    {
    struct dnaSeq *list = NULL, sseq;
    ZeroVar(&sseq);
    fileName = files[i];
    if (nibIsFile(fileName))
	list = nibLoadAllMasked(NIB_MASK_MIXED|NIB_BASE_NAME, fileName);
    else if (twoBitIsSpec(fileName))
	list = twoBitLoadAll(fileName);
    else if (isProt)
      list = faReadAllPep(fileName, &faFastBuf, &faFastBufSize);
    else
      list = faReadAllMixed(fileName, &faFastBuf, &faFastBufSize);
    faFreeFastBuf(&faFastBuf, &faFastBufSize);
    

    /* If necessary mask sequence from file. */
    if (doMask)
	{
	maskNucSeqList(list, fileName, maskType, isTransDna, minRepDivergence);
	}
    else
        {
	/* If not masking send everything to proper case here. */
	for (seq = list; seq != NULL; seq = seq->next)
	    {
	    if (isProt)
		faToProtein(seq->dna, seq->size);
	    else
		faToDna(seq->dna, seq->size);
	    }
	}
    /* Move local list to end of bigger list. */
    seqList = slCat(seqList, list);
    }
if (showStatus)
    {
    /* Total up size and sequence count and report. */
    int count = 0; 
    unsigned long totalSize = 0;
    for (seq = seqList; seq != NULL; seq = seq->next)
        {
	totalSize += seq->size;
	count += 1;
	}
    printf("Loaded %lu letters in %d sequences\n", totalSize, count);
    }
return seqList;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movss %xmm0, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
movq $0x0, -0x40(%rbp)
cmpq $0x0, -0x20(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4c(%rbp)
movl $0x0, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0x15d5a
movq $0x0, -0x60(%rbp)
leaq -0x88(%rbp), %rdi
movl $0x28, %esi
callq 0x15de0
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x472b0
cmpl $0x0, %eax
je 0x15c6a
movq -0x38(%rbp), %rsi
movl $0x5, %edi
callq 0x46d30
movq %rax, -0x60(%rbp)
jmp 0x15cbd
movq -0x38(%rbp), %rdi
callq 0x5ad50
cmpl $0x0, %eax
je 0x15c87
movq -0x38(%rbp), %rdi
callq 0x5a650
movq %rax, -0x60(%rbp)
jmp 0x15cbb
cmpl $0x0, -0x14(%rbp)
je 0x15ca4
movq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x37890
movq %rax, -0x60(%rbp)
jmp 0x15cb9
movq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x378c0
movq %rax, -0x60(%rbp)
jmp 0x15cbb
jmp 0x15cbd
leaq -0x58(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x36da0
cmpl $0x0, -0x4c(%rbp)
je 0x15ceb
movq -0x60(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x20(%rbp), %rdx
movl -0x18(%rbp), %ecx
movss -0x24(%rbp), %xmm0
callq 0x15e10
jmp 0x15d3b
movq -0x60(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x15d39
cmpl $0x0, -0x14(%rbp)
je 0x15d16
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x48(%rbp), %rax
movl 0x18(%rax), %esi
callq 0x374d0
jmp 0x15d2a
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x48(%rbp), %rax
movl 0x18(%rax), %esi
callq 0x37540
jmp 0x15d2c
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x15cf3
jmp 0x15d3b
movq -0x40(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x2aa60
movq %rax, -0x40(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x15c13
cmpl $0x0, -0x28(%rbp)
je 0x15dd1
movl $0x0, -0x8c(%rbp)
movq $0x0, -0x98(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x15db6
movq -0x48(%rbp), %rax
movslq 0x18(%rax), %rax
addq -0x98(%rbp), %rax
movq %rax, -0x98(%rbp)
movl -0x8c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8c(%rbp)
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x15d7d
movq -0x98(%rbp), %rsi
movl -0x8c(%rbp), %edx
leaq 0xc21e7(%rip), %rdi     # 0xd7fb1
movb $0x0, %al
callq 0x6070
movq -0x40(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nop