LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashAddN
struct hashEl *hashAddN(struct hash *hash, char *name, int nameSize, void *val)
/* Add name of given size to hash (no need to be zero terminated) */
{
struct hashEl *el;
if (hash->lm) 
    el = lmAlloc(hash->lm, sizeof(*el));
else
    AllocVar(el);
el->hashVal = hashString(name);
int hashVal = el->hashVal & hash->mask;
if (hash->lm)
    {
    el->name = lmAlloc(hash->lm, nameSize+1);
    memcpy(el->name, name, nameSize);
    }
else
    el->name = cloneStringZ(name, nameSize);
el->val = val;
el->next = hash->table[hashVal];
hash->table[hashVal] = el;
hash->elCount += 1;
if (hash->autoExpand && hash->elCount > (int)(hash->size * hash->expansionFactor))
    {
    /* double the size */
    hashResize(hash, digitsBaseTwo(hash->size));
    }
return el;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movl %edx, %r13d
movq %rsi, %r12
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
testq %rdi, %rdi
je 0xbe94
movl $0x20, %esi
callq 0xebe9
jmp 0xbe9e
movl $0x20, %edi
callq 0xf07d
movq %rax, %r14
movb (%r12), %dl
testb %dl, %dl
je 0xbec3
leaq 0x1(%r12), %rcx
xorl %eax, %eax
movsbl %dl, %edx
leal (%rax,%rax,8), %eax
addl %edx, %eax
movb (%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0xbeb0
jmp 0xbec5
xorl %eax, %eax
movl %eax, 0x18(%r14)
andl 0x8(%rbx), %eax
movslq %eax, %rbp
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xbef8
leal 0x1(%r13), %eax
movslq %eax, %rsi
callq 0xebe9
movq %rax, 0x8(%r14)
movslq %r13d, %rdx
movq %rax, %rdi
movq %r12, %rsi
callq 0x34a0
jmp 0xbf07
movq %r12, %rdi
movl %r13d, %esi
callq 0x642f
movq %rax, 0x8(%r14)
movq %r15, 0x10(%r14)
movq 0x10(%rbx), %rax
movq (%rax,%rbp,8), %rcx
movq %rcx, (%r14)
movq %r14, (%rax,%rbp,8)
movl 0x28(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x28(%rbx)
cmpl $0x0, 0x2c(%rbx)
je 0xbf4d
movslq 0x1c(%rbx), %rdi
cvtsi2ss %edi, %xmm0
mulss 0x30(%rbx), %xmm0
cvttss2si %xmm0, %ecx
cmpl %ecx, %eax
jl 0xbf4d
callq 0xf673
movq %rbx, %rdi
movl %eax, %esi
callq 0xbf5f
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashResize
void hashResize(struct hash *hash, int powerOfTwoSize)
/* Resize the hash to a new size */
{
int oldHashSize = hash->size;
struct hashEl **oldTable = hash->table;

if (powerOfTwoSize == 0)
    powerOfTwoSize = 12;
assert(powerOfTwoSize <= hashMaxSize && powerOfTwoSize > 0);
hash->powerOfTwoSize = powerOfTwoSize;
hash->size = (1<<powerOfTwoSize);
hash->mask = hash->size-1;

AllocArray(hash->table, hash->size);

int i;
struct hashEl *hel, *next;
for (i=0; i<oldHashSize; ++i)
    {
    for (hel = oldTable[i]; hel != NULL; hel = next)
	{
	next = hel->next;
	int hashVal = hel->hashVal & hash->mask;
	hel->next = hash->table[hashVal];
	hash->table[hashVal] = hel;
	}
    }
/* restore original list order */
for (i=0; i<hash->size; ++i)
    {
    struct hashEl *hel = hash->table[i];
    if (hel != NULL && hel->next != NULL)	    
	slReverse(&hash->table[i]);
    }
freeMem(oldTable);
hash->numResizes++;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
movl $0xc, %ecx
cmovnel %esi, %ecx
cmpl $0x1d, %ecx
jae 0xc030
movq %rdi, %rbx
movl 0x1c(%rdi), %r15d
movq 0x10(%rdi), %r14
movl %ecx, 0x18(%rdi)
movl $0x1, %edi
shll %cl, %edi
movl %edi, 0x1c(%rbx)
leal -0x1(%rdi), %eax
movl %eax, 0x8(%rbx)
shlq $0x3, %rdi
callq 0xeeec
movq %rax, 0x10(%rbx)
testl %r15d, %r15d
jle 0xbfe2
xorl %eax, %eax
movq (%r14,%rax,8), %rcx
testq %rcx, %rcx
je 0xbfda
movslq 0x8(%rbx), %rdx
movq (%rcx), %rsi
movslq 0x18(%rcx), %rdi
andq %rdx, %rdi
movq 0x10(%rbx), %r8
movq (%r8,%rdi,8), %r9
movq %r9, (%rcx)
movq %rcx, (%r8,%rdi,8)
movq %rsi, %rcx
testq %rsi, %rsi
jne 0xbfb9
incq %rax
cmpq %r15, %rax
jne 0xbfac
cmpl $0x0, 0x1c(%rbx)
jle 0xc019
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x10(%rbx), %rdi
movq (%rdi,%r15), %rax
testq %rax, %rax
je 0xc009
cmpq $0x0, (%rax)
je 0xc009
addq %r15, %rdi
callq 0x673b
incq %r12
movslq 0x1c(%rbx), %rax
addq $0x8, %r15
cmpq %rax, %r12
jl 0xbfee
movq %r14, %rdi
callq 0xf129
incl 0x34(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0xdb7c(%rip), %rdi      # 0x19bb3
leaq 0xdba9(%rip), %rsi      # 0x19be7
leaq 0xdbcb(%rip), %rcx      # 0x19c10
movl $0x17e, %edx            # imm = 0x17E
callq 0x32e0
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashRemove
void *hashRemove(struct hash *hash, char *name)
/* Remove item of the given name from hash table. 
 * Returns value of removed item, or NULL if not in the table.
 * If their are multiple entries for name, the last one added
 * is removed (LIFO behavior).
 */
{
struct hashEl *hel;
void *ret;
struct hashEl **pBucket = &hash->table[hashString(name)&hash->mask];
for (hel = *pBucket; hel != NULL; hel = hel->next)
    if (sameString(hel->name, name))
        break;
if (hel == NULL)
    return NULL;
ret = hel->val;
if (slRemoveEl(pBucket, hel))
    {
    hash->elCount -= 1;
    if (!hash->lm)
	freeHashEl(hel);
    }
return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rdi), %rax
movb (%rsi), %sil
testb %sil, %sil
je 0xc0c3
leaq 0x1(%r14), %rdx
xorl %ecx, %ecx
movsbl %sil, %esi
leal (%rcx,%rcx,8), %ecx
addl %esi, %ecx
movb (%rdx), %sil
incq %rdx
testb %sil, %sil
jne 0xc0ad
jmp 0xc0c5
xorl %ecx, %ecx
andl 0x8(%rbx), %ecx
leaq (%rax,%rcx,8), %r13
xorl %r15d, %r15d
movq %r13, %r12
movq (%r12), %r12
testq %r12, %r12
je 0xc11c
movq 0x8(%r12), %rdi
movq %r14, %rsi
callq 0x3440
testl %eax, %eax
jne 0xc0d2
movq 0x10(%r12), %r15
movq %r13, %rdi
movq %r12, %rsi
callq 0x6966
testl %eax, %eax
je 0xc11c
decl 0x28(%rbx)
cmpq $0x0, 0x20(%rbx)
jne 0xc11c
movq 0x8(%r12), %rdi
callq 0xf129
movq %r12, %rdi
callq 0xf129
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashMustFindVal
void *hashMustFindVal(struct hash *hash, char *name)
/* Lookup name in hash and return val.  Abort if not found. */
{
struct hashEl *hel = hashLookup(hash, name);
if (hel == NULL)
    errAbort("hashMustFindVal: '%s' not found", name);
return hel->val;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq 0xbd98
movq %rax, %r14
testq %rax, %rax
jne 0xc293
leaq 0xd8e9(%rip), %rdi      # 0x19b72
movq %rbx, %rsi
xorl %eax, %eax
callq 0xb8d7
movq 0x10(%r14), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashMustFindName
char *hashMustFindName(struct hash *hash, char *name)
/* Return name as stored in hash table (in hel->name). 
 * Abort if not found. */
{
struct hashEl *hel = hashLookup(hash, name);
if (hel == NULL)
    errAbort("hashMustFindName: '%s' not found", name);
return hel->name;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq 0xbd98
movq %rax, %r14
testq %rax, %rax
jne 0xc320
leaq 0xd87c(%rip), %rdi      # 0x19b92
movq %rbx, %rsi
xorl %eax, %eax
callq 0xb8d7
movq 0x8(%r14), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashIncInt
void hashIncInt(struct hash *hash, char *name)
/* Increment integer value in hash */
{
struct hashEl *hel = hashLookup(hash, name);
if (hel == NULL)
  {
  hashAddInt(hash, name, 1);
  }
else
  {
  hel->val = ((char *)hel->val)+1;
  /* The much simpler ++hel->val works for gnu C, but really adding one to a void pointer
   * I think is not well defined. */
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0xbd98
testq %rax, %rax
je 0xc377
incq 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
callq 0x3200
movl $0x1, %ecx
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xbe68
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashIntSum
long long hashIntSum(struct hash *hash)
/* Return sum of all the ints in a hash of ints. */
{
long long sum = 0;
int i;
struct hashEl *hel;
for (i=0; i<hash->size; ++i)
    {
    for (hel = hash->table[i]; hel != NULL; hel = hel->next)
	{
	int num = ptToInt(hel->val);
	sum += (long long)num;
	}
    }
return sum;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x0, 0x1c(%rdi)
jle 0xc3df
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %r14d, %r14d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %r12
testq %r12, %r12
je 0xc3d1
movq 0x10(%r12), %rdi
callq 0xfc4a
cltq
addq %rax, %r14
movq (%r12), %r12
jmp 0xc3b7
incq %r15
movslq 0x1c(%rbx), %rax
cmpq %rax, %r15
jl 0xc3af
jmp 0xc3e2
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: newHashExt
struct hash *newHashExt(int powerOfTwoSize, boolean useLocalMem)
/* Returns new hash table. Uses local memory optionally. */
{
struct hash *hash = needMem(sizeof(*hash));
int memBlockPower = 16;
if (powerOfTwoSize == 0)
    powerOfTwoSize = 12;
assert(powerOfTwoSize <= hashMaxSize && powerOfTwoSize > 0);
hash->powerOfTwoSize = powerOfTwoSize;
hash->size = (1<<powerOfTwoSize);
/* Make size of memory block for allocator vary between
 * 256 bytes and 64k depending on size of table. */
if (powerOfTwoSize < 8)
    memBlockPower = 8;
else if (powerOfTwoSize < 16)
    memBlockPower = powerOfTwoSize;
if (useLocalMem) 
    hash->lm = lmInit(1<<memBlockPower);
hash->mask = hash->size-1;
AllocArray(hash->table, hash->size);
hash->autoExpand = TRUE;
hash->expansionFactor = defaultExpansionFactor;   /* Expand when elCount > size*expansionFactor */
return hash;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movl %edi, %r14d
movl $0x38, %edi
callq 0xf07d
testl %r14d, %r14d
movl $0xc, %ecx
cmovnel %r14d, %ecx
cmpl $0x1d, %ecx
jae 0xc47c
movq %rax, %rbx
movl $0x1, %eax
shll %cl, %eax
movl %ecx, 0x18(%rbx)
movl $0x1, %edi
movl %eax, 0x1c(%rbx)
testl %ebp, %ebp
je 0xc44f
cmpl $0x10, %ecx
movl $0x10, %eax
cmovll %ecx, %eax
cmpl $0x9, %eax
movl $0x8, %ecx
cmovgel %eax, %ecx
shll %cl, %edi
callq 0xeae4
movq %rax, 0x20(%rbx)
movslq 0x1c(%rbx), %rdi
leal -0x1(%rdi), %eax
movl %eax, 0x8(%rbx)
shlq $0x3, %rdi
callq 0xeeec
movq %rax, 0x10(%rbx)
movabsq $0x3f80000000000001, %rax # imm = 0x3F80000000000001
movq %rax, 0x2c(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0xd730(%rip), %rdi      # 0x19bb3
leaq 0xd75d(%rip), %rsi      # 0x19be7
leaq 0xd75d(%rip), %rcx      # 0x19bee
movl $0x164, %edx            # imm = 0x164
callq 0x32e0
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashFromSlNameList
struct hash *hashFromSlNameList(void *list)
/* Create a hash out of a list of slNames or any kind of list where the */
/* first field is the next pointer and the second is the name. */
{
struct hash *hash = NULL;
struct slName *namedList = list, *item;
if (!list)
    return NULL;
hash = newHash(0);
for (item = namedList; item != NULL; item = item->next)
    hashAdd(hash, item->name, item);
return hash;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0xc4dd
movq %rdi, %rbx
xorl %edi, %edi
movl $0x1, %esi
callq 0xc3f1
movq %rax, %r14
leaq 0x8(%rbx), %r15
movq %r15, %rdi
callq 0x3200
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %edx
movq %rbx, %rcx
callq 0xbe68
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0xc4b7
jmp 0xc4e0
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashTraverseEls
void hashTraverseEls(struct hash *hash, void (*func)(struct hashEl *hel))
/* Apply func to every element of hash with hashEl as parameter. */
{
int i;
struct hashEl *hel;
for (i=0; i<hash->size; ++i)
    {
    for (hel = hash->table[i]; hel != NULL; hel = hel->next)
	func(hel);
    }
}

// Assembly:
cmpl $0x0, 0x1c(%rdi)
jle 0xc52e
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r12d, %r12d
movq 0x10(%r14), %rax
movq (%rax,%r12,8), %r15
testq %r15, %r15
je 0xc517
movq %r15, %rdi
callq *%rbx
movq (%r15), %r15
jmp 0xc508
incq %r12
movslq 0x1c(%r14), %rax
cmpq %rax, %r12
jl 0xc500
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashTraverseVals
void hashTraverseVals(struct hash *hash, void (*func)(void *val))
/* Apply func to every element of hash with hashEl->val as parameter. */
{
int i;
struct hashEl *hel;
for (i=0; i<hash->size; ++i)
    {
    for (hel = hash->table[i]; hel != NULL; hel = hel->next)
	func(hel->val);
    }
}

// Assembly:
cmpl $0x0, 0x1c(%rdi)
jle 0xc577
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movq 0x10(%r14), %rax
movq (%rax,%r15,8), %r12
testq %r12, %r12
je 0xc560
movq 0x10(%r12), %rdi
callq *%rbx
movq (%r12), %r12
jmp 0xc54e
incq %r15
movslq 0x1c(%r14), %rax
cmpq %rax, %r15
jl 0xc546
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashElFindVal
void *hashElFindVal(struct hashEl *list, char *name)
/* Look up name in hashEl list and return val or NULL if not found. */
{
struct hashEl *el;
for (el = list; el != NULL; el = el->next)
    {
    if (strcmp(el->name, name) == 0)
        return el->val;
    }
return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0xc5ca
movq %rsi, %r15
movq %rdi, %r14
xorl %ebx, %ebx
movq 0x8(%r14), %rdi
movq %r15, %rsi
callq 0x3440
testl %eax, %eax
je 0xc5ce
movq (%r14), %r14
testq %r14, %r14
jne 0xc5b0
jmp 0xc5d2
xorl %ebx, %ebx
jmp 0xc5d2
movq 0x10(%r14), %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashElListHash
struct hashEl *hashElListHash(struct hash *hash)
/* Return a list of all elements of hash.   Free return with hashElFreeList. */
{
int i;
struct hashEl *hel, *dupe, *list = NULL;
for (i=0; i<hash->size; ++i)
    {
    for (hel = hash->table[i]; hel != NULL; hel = hel->next)
	{
	dupe = CloneVar(hel);
	slAddHead(&list, dupe);
	}
    }
return list;
}

// Assembly:
cmpl $0x0, 0x1c(%rdi)
jle 0xc63a
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0xc61c
movl $0x20, %esi
movq %r14, %rdi
callq 0x6408
movq %r12, (%rax)
movq (%r14), %r14
movq %rax, %r12
testq %r14, %r14
jne 0xc5ff
jmp 0xc61f
movq %r12, %rax
incq %r15
movslq 0x1c(%rbx), %rcx
movq %rax, %r12
cmpq %rcx, %r15
jl 0xc5f2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashFirst
struct hashCookie hashFirst(struct hash *hash)
/* Return an object to use by hashNext() to traverse the hash table.
 * The first call to hashNext will return the first entry in the table. */
{
struct hashCookie cookie;
cookie.hash = hash;
cookie.idx = 0;
cookie.nextEl = NULL;

/* find first entry */
for (cookie.idx = 0;
     (cookie.idx < hash->size) && (hash->table[cookie.idx] == NULL);
     cookie.idx++)
    continue;  /* empty body */
if (cookie.idx < hash->size)
    cookie.nextEl = hash->table[cookie.idx];
return cookie;
}

// Assembly:
movq %rdi, %rax
movq %rsi, (%rdi)
movl $0x0, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
movslq 0x1c(%rsi), %rcx
testq %rcx, %rcx
setg %r8b
jle 0xc677
movq 0x10(%rsi), %rdi
cmpq $0x0, (%rdi)
je 0xc67d
xorl %edx, %edx
jmp 0xc69f
xorl %ecx, %ecx
movl %ecx, 0x8(%rax)
retq
leaq -0x1(%rcx), %r8
xorl %r9d, %r9d
cmpq %r9, %r8
je 0xc679
leaq 0x1(%r9), %rdx
cmpq $0x0, 0x8(%rdi,%r9,8)
movq %rdx, %r9
je 0xc684
cmpq %rcx, %rdx
setb %r8b
movl %edx, 0x8(%rax)
testb %r8b, %r8b
je 0xc6b5
movq 0x10(%rsi), %rcx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
movq %rcx, 0x10(%rax)
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashNext
struct hashEl* hashNext(struct hashCookie *cookie)
/* Return the next entry in the hash table, or NULL if no more. Do not modify
 * hash table while this is being used. */
{
/* NOTE: if hashRemove were coded to track the previous entry during the
 * search and then use it to do the remove, it would be possible to
 * remove the entry returned by this method */
struct hashEl *retEl = cookie->nextEl;
if (retEl == NULL)
    return NULL;  /* no more */

/* find next entry */
cookie->nextEl = retEl->next;
if (cookie->nextEl == NULL)
    {
    for (cookie->idx++; (cookie->idx < cookie->hash->size)
             && (cookie->hash->table[cookie->idx] == NULL); cookie->idx++)
        continue;  /* empty body */
    if (cookie->idx < cookie->hash->size)
        cookie->nextEl = cookie->hash->table[cookie->idx];
    }
return retEl;
}

// Assembly:
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0xc723
pushq %rbx
movq (%rax), %rcx
movq %rcx, 0x10(%rdi)
testq %rcx, %rcx
jne 0xc72b
movslq 0x8(%rdi), %rcx
movq (%rdi), %rsi
movslq 0x1c(%rsi), %r8
movq %rcx, %rdx
shlq $0x20, %rdx
movq %rcx, %r11
incq %r11
movabsq $0x100000000, %r9       # imm = 0x100000000
cmpq %r8, %r11
jge 0xc726
movq %r11, %r10
movq 0x10(%rsi), %rbx
incl %ecx
addq %r9, %rdx
incq %r11
cmpq $0x0, (%rbx,%r10,8)
je 0xc6ee
movl %ecx, 0x8(%rdi)
cmpq %r8, %r10
jge 0xc72b
movq 0x10(%rsi), %rcx
sarq $0x1d, %rdx
movq (%rcx,%rdx), %rcx
movq %rcx, 0x10(%rdi)
jmp 0xc72b
xorl %eax, %eax
retq
incl %ecx
movl %ecx, 0x8(%rdi)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: freeHash
void freeHash(struct hash **pHash)
/* Free up hash table. */
{
struct hash *hash = *pHash;
if (hash == NULL)
    return;
if (hash->lm)
    lmCleanup(&hash->lm);
else
    {
    int i;
    struct hashEl *hel, *next;
    for (i=0; i<hash->size; ++i)
	{
	for (hel = hash->table[i]; hel != NULL; hel = next)
	    {
	    next = hel->next;
	    freeHashEl(hel);
	    }
	}
    }
freeMem(hash->table);
freez(pHash);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdi), %r15
testq %r15, %r15
je 0xc77d
movq %rdi, %rbx
cmpq $0x0, 0x20(%r15)
je 0xc787
leaq 0x20(%r15), %rdi
callq 0xeb8b
jmp 0xc7c6
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
cmpl $0x0, 0x1c(%r15)
jle 0xc7c6
xorl %r12d, %r12d
movq 0x10(%r15), %rax
movq (%rax,%r12,8), %r14
testq %r14, %r14
je 0xc7ba
movq (%r14), %r13
movq 0x8(%r14), %rdi
callq 0xf129
movq %r14, %rdi
callq 0xf129
movq %r13, %r14
testq %r13, %r13
jne 0xc79e
incq %r12
movslq 0x1c(%r15), %rax
cmpq %rax, %r12
jl 0xc791
movq 0x10(%r15), %rdi
callq 0xf129
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xf139
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: freeHashAndVals
void freeHashAndVals(struct hash **pHash)
/* Free up hash table and all values associated with it.
 * (Just calls freeMem on each hel->val) */
{
struct hash *hash;
if ((hash = *pHash) != NULL)
    {
    hashTraverseVals(hash, freeMem);
    freeHash(pHash);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r14
testq %r14, %r14
je 0xc839
movq %rdi, %rbx
cmpl $0x0, 0x1c(%r14)
jle 0xc826
xorl %r15d, %r15d
movq 0x10(%r14), %rax
movq (%rax,%r15,8), %r12
testq %r12, %r12
je 0xc81a
movq 0x10(%r12), %rdi
callq 0xf129
movq (%r12), %r12
jmp 0xc805
incq %r15
movslq 0x1c(%r14), %rax
cmpq %rax, %r15
jl 0xc7fd
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc757
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashFreeWithVals
void hashFreeWithVals(struct hash **pHash, void (freeFunc)())
/* Free up hash table and all values associated with it. freeFunc is a
 * function to free an entry, should take a pointer to a pointer to an
 * entry. */
{
struct hash *hash = *pHash;
if (hash != NULL)
    {
    struct hashCookie cookie = hashFirst(hash);
    struct hashEl *hel;
    while ((hel = hashNext(&cookie)) != NULL)
        freeFunc(&hel->val);
    hashFree(pHash);
    }
}

// Assembly:
movq (%rdi), %rax
testq %rax, %rax
je 0xc908
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rax, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movslq 0x1c(%rax), %rcx
testq %rcx, %rcx
jle 0xc88f
movq 0x10(%rax), %rax
cmpq $0x0, (%rax)
je 0xc897
movb $0x1, %cl
xorl %edx, %edx
jmp 0xc8b7
xorl %ecx, %ecx
movl %ecx, 0x10(%rsp)
jmp 0xc8ca
leaq -0x1(%rcx), %rsi
xorl %edi, %edi
cmpq %rdi, %rsi
je 0xc891
leaq 0x1(%rdi), %rdx
cmpq $0x0, 0x8(%rax,%rdi,8)
movq %rdx, %rdi
je 0xc89d
cmpq %rcx, %rdx
setb %cl
movl %edx, 0x10(%rsp)
testb %cl, %cl
je 0xc8ca
movl %edx, %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
leaq 0x8(%rsp), %rdi
callq 0xc6b6
testq %rax, %rax
je 0xc8f7
leaq 0x8(%rsp), %r15
addq $0x10, %rax
movq %rax, %rdi
xorl %eax, %eax
callq *%r14
movq %r15, %rdi
callq 0xc6b6
testq %rax, %rax
jne 0xc8de
movq %rbx, %rdi
callq 0xc757
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashFreeList
void hashFreeList(struct hash **pList)
/* Free up a list of hashes. */
{
struct hash *el, *next;

for (el = *pList; el != NULL; el = next)
    {
    next = el->next;
    hashFree(&el);
    }
*pList = NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %r15
movq %r15, 0x8(%rsp)
testq %r15, %r15
je 0xc93c
leaq 0x8(%rsp), %r14
movq (%r15), %r15
movq %r14, %rdi
callq 0xc757
movq %r15, 0x8(%rsp)
testq %r15, %r15
jne 0xc927
movq $0x0, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashHisto
void hashHisto(struct hash *hash, char *fname)
/* Output bucket usage counts to a file for producing a histogram  */
{
FILE* fh = mustOpen(fname, "w");
int i;

for (i=0; i<hash->size; ++i)
    fprintf(fh, "%d\n", bucketLen(hash->table[i]));
carefulClose(&fh);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rax
movq %rdi, %rbx
leaq 0xd0c0(%rip), %rsi      # 0x19a23
movq %rax, %rdi
callq 0x9532
movq %rax, 0x8(%rsp)
cmpl $0x0, 0x1c(%rbx)
jle 0xc9b9
leaq 0xd2d2(%rip), %r14      # 0x19c4f
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0xc99e
xorl %edx, %edx
incl %edx
movq (%rax), %rax
testq %rax, %rax
jne 0xc994
movq 0x8(%rsp), %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x3470
incq %r15
movslq 0x1c(%rbx), %rax
cmpq %rax, %r15
jl 0xc980
leaq 0x8(%rsp), %rdi
callq 0x9bbc
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashPrintStats
void hashPrintStats(struct hash *hash, char *label, FILE *fh)
/* print statistic about a hash table */
{
// count up usage
int i, occupiedCnt = 0, maxBucket = 0;
for (i=0; i<hash->size; ++i)
    {
    if (hash->table[i] != NULL)
        occupiedCnt++;
    int sz = bucketLen(hash->table[i]);
    maxBucket = max(maxBucket, sz);
    }

fprintf(fh, "hashTable\t%s\n", label);
fprintf(fh, "tableSize\t%d\t%d\n", hash->size, hash->powerOfTwoSize);
fprintf(fh, "numElements\t%d\n", hash->elCount);
fprintf(fh, "occupied\t%d\t%0.4f\n", occupiedCnt, ((hash->size == 0) ? 0.0 : ((float)occupiedCnt)/hash->size));
fprintf(fh, "maxBucket\t%d\n", maxBucket);
fprintf(fh, "numResizes\t%d\n", hash->numResizes);
fprintf(fh, "\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %rdx
movq %rdi, %r14
movslq 0x1c(%rdi), %rax
testq %rax, %rax
jle 0xca2b
movq 0x10(%r14), %rcx
xorl %esi, %esi
xorl %ebp, %ebp
xorl %r15d, %r15d
movq (%rcx,%rsi,8), %r9
xorl %edi, %edi
movl $0x0, %r8d
testq %r9, %r9
setne %r10b
je 0xca14
xorl %r8d, %r8d
incl %r8d
movq (%r9), %r9
testq %r9, %r9
jne 0xca09
movb %r10b, %dil
addl %edi, %r15d
cmpl %r8d, %ebp
cmovlel %r8d, %ebp
incq %rsi
cmpq %rax, %rsi
jne 0xc9f1
jmp 0xca30
xorl %r15d, %r15d
xorl %ebp, %ebp
leaq 0xd1fd(%rip), %rsi      # 0x19c34
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3470
movl 0x18(%r14), %ecx
movl 0x1c(%r14), %edx
leaq 0xd1f2(%rip), %rsi      # 0x19c42
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3470
movl 0x28(%r14), %edx
leaq 0xd1ee(%rip), %rsi      # 0x19c53
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3470
movl 0x1c(%r14), %eax
xorps %xmm0, %xmm0
testl %eax, %eax
je 0xca8e
xorps %xmm0, %xmm0
cvtsi2ss %r15d, %xmm0
cvtsi2ss %eax, %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0xd1ce(%rip), %rsi      # 0x19c63
movq %rbx, %rdi
movl %r15d, %edx
movb $0x1, %al
callq 0x3470
leaq 0xd1cd(%rip), %rsi      # 0x19c76
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x3470
movl 0x34(%r14), %edx
leaq 0xd1c4(%rip), %rsi      # 0x19c84
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3470
movl $0xa, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x33a0
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashToRaString
char *hashToRaString(struct hash *hash)
/* Convert hash to string in ra format. */
{
struct hashEl *el, *list = hashElListHash(hash);
struct dyString *dy = dyStringNew(0);
slSort(&list, hashElCmp);
for (el = list; el != NULL; el = el->next)
   {
   dyStringAppend(dy, el->name);
   dyStringAppendC(dy, ' ');
   dyStringAppend(dy, el->val);
   dyStringAppendC(dy, '\n');
   }
hashElFreeList(&list);
return dyStringCannibalize(&dy);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
callq 0xc5db
leaq 0x8(%rsp), %rbx
movq %rax, (%rbx)
xorl %edi, %edi
callq 0xaf38
movq %rax, (%rsp)
leaq -0x5cd(%rip), %rsi      # 0xc578
movq %rbx, %rdi
callq 0x678c
movq (%rbx), %rbx
testq %rbx, %rbx
je 0xcb8d
movq (%rsp), %rdi
movq 0x8(%rbx), %rsi
callq 0xb18d
movq (%rsp), %rdi
movl $0x20, %esi
callq 0xb0c7
movq (%rsp), %rdi
movq 0x10(%rbx), %rsi
callq 0xb18d
movq (%rsp), %rdi
movl $0xa, %esi
callq 0xb0c7
jmp 0xcb4d
leaq 0x8(%rsp), %rdi
callq 0x675e
movq %rsp, %rdi
callq 0xaf94
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/hash.c
// Function: hashNumEntries
int hashNumEntries(struct hash *hash)
/* count the number of entries in a hash */
{
int n = 0, i;
for (i=0; i<hash->size; ++i)
    n += bucketLen(hash->table[i]);
return n;
}

// Assembly:
movslq 0x1c(%rdi), %rcx
testq %rcx, %rcx
jle 0xcbdf
movq 0x10(%rdi), %rdx
xorl %esi, %esi
xorl %eax, %eax
movq (%rdx,%rsi,8), %rdi
movl $0x0, %r8d
testq %rdi, %rdi
je 0xcbd3
xorl %r8d, %r8d
incl %r8d
movq (%rdi), %rdi
testq %rdi, %rdi
jne 0xcbc8
addl %r8d, %eax
incq %rsi
cmpq %rcx, %rsi
jne 0xcbb6
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: getFileNameFromHdrSig
char *getFileNameFromHdrSig(char *m)
/* Check if header has signature of supported compression stream,
   and return a phoney filename for it, or NULL if no sig found. */
{
char buf[20];
char *ext=NULL;
if (startsWith("\x1f\x8b",m)) ext = "gz";
else if (startsWith("\x1f\x9d\x90",m)) ext = "Z";
else if (startsWith("BZ",m)) ext = "bz2";
else if (startsWith("PK\x03\x04",m)) ext = "zip";
if (ext==NULL)
    return NULL;
safef(buf, sizeof(buf), "somefile.%s", ext);
return cloneString(buf);
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0xd0c1(%rip), %rdi      # 0x19cb4
movq %rbx, %rsi
callq 0x8214
testl %eax, %eax
je 0xcc08
leaq 0xd814(%rip), %rcx      # 0x1a41a
jmp 0xcc3e
leaq 0xd0a8(%rip), %rdi      # 0x19cb7
movq %rbx, %rsi
callq 0x8214
testl %eax, %eax
je 0xcc24
leaq 0xd7fc(%rip), %rcx      # 0x1a41e
jmp 0xcc3e
leaq 0xd090(%rip), %rdi      # 0x19cbb
movq %rbx, %rsi
callq 0x8214
testl %eax, %eax
je 0xcc6f
leaq 0xd7e3(%rip), %rcx      # 0x1a421
xorl %eax, %eax
testb %al, %al
je 0xcc48
xorl %eax, %eax
jmp 0xcc69
leaq 0xd074(%rip), %rdx      # 0x19cc3
movq %rsp, %rbx
movq %rbx, %rdi
movl $0x14, %esi
xorl %eax, %eax
callq 0xa2ce
movq %rbx, %rdi
callq 0x647e
addq $0x20, %rsp
popq %rbx
retq
leaq 0xd048(%rip), %rdi      # 0x19cbe
movq %rbx, %rsi
callq 0x8214
xorl %ecx, %ecx
testl %eax, %eax
sete %al
leaq 0xd79a(%rip), %rdx      # 0x1a426
cmovneq %rdx, %rcx
jmp 0xcc40
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileSetMetaDataOutput
void lineFileSetMetaDataOutput(struct lineFile *lf, FILE *f)
/* set file to write meta data to,
 * should be called before reading from input file */
{
struct metaOutput *meta = NULL;
if (lf == NULL)
    return;
AllocVar(meta);
meta->next = NULL;
meta->metaFile = f;
slAddHead(&lf->metaOutput, meta);
}

// Assembly:
testq %rdi, %rdi
je 0xccc8
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x10, %edi
callq 0xf07d
movq $0x0, (%rax)
movq %r14, 0x8(%rax)
movq 0x50(%rbx), %rcx
movq %rcx, (%rax)
movq %rax, 0x50(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileDecompress
struct lineFile *lineFileDecompress(char *fileName, bool zTerm)
/* open a linefile with decompression */
{
struct pipeline *pl;
struct lineFile *lf;
char *testName = NULL;
char *testbytes = NULL;    /* the header signatures for .gz, .bz2, .Z,
			    * .zip are all 2-4 bytes only */
if (fileName==NULL)
  return NULL;
testbytes=headerBytes(fileName,4);
if (!testbytes)
    return NULL;  /* avoid error from pipeline */
testName=getFileNameFromHdrSig(testbytes);
freez(&testbytes);
if (!testName)
    return NULL;  /* avoid error from pipeline */
pl = pipelineOpen1(getDecompressor(fileName), pipelineRead, fileName, NULL);
lf = lineFileAttach(fileName, zTerm, pipelineFd(pl));
lf->pl = pl;
return lf;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq $0x0, 0x8(%rsp)
testq %rdi, %rdi
je 0xcdb8
movl %esi, %ebp
movq %rdi, %rbx
movq $0x0, (%rsp)
xorl %esi, %esi
xorl %eax, %eax
callq 0x35b0
testl %eax, %eax
js 0xcd5a
movl %eax, %r14d
movl $0x5, %edi
callq 0xf07d
movq %rax, (%rsp)
movl $0x4, %edx
movl %r14d, %edi
movq %rax, %rsi
callq 0x33d0
cmpl $0x3, %eax
jg 0xcd4a
movq %rsp, %rdi
callq 0xf139
jmp 0xcd52
movq (%rsp), %rax
movb $0x0, 0x4(%rax)
movl %r14d, %edi
callq 0x3350
movq (%rsp), %rdi
movq %rdi, 0x8(%rsp)
testq %rdi, %rdi
je 0xcdb8
callq 0xcbe4
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0xf139
testq %r14, %r14
je 0xcdb8
movq %rbx, %rdi
callq 0xcdc3
movq %rax, %rdi
movl $0x1, %esi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x1228b
movq %rax, %r14
movq %rax, %rdi
callq 0x122ce
movsbl %bpl, %esi
movq %rbx, %rdi
movl %eax, %edx
callq 0xcea6
movq %r14, 0x48(%rax)
jmp 0xcdba
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: getDecompressor
static char **getDecompressor(char *fileName)
/* if a file is compressed, return the command to decompress the
 * approriate format, otherwise return NULL */
{
static char *GZ_READ[] = {"gzip", "-dc", NULL};
static char *Z_READ[] = {"gzip", "-dc", NULL};
static char *BZ2_READ[] = {"bzip2", "-dc", NULL};
static char *ZIP_READ[] = {"gzip", "-dc", NULL};

char **result = NULL;
char *fileNameDecoded = cloneString(fileName);
if (startsWith("http://" , fileName)
 || startsWith("https://", fileName)
 || startsWith("ftp://",   fileName))
    cgiDecode(fileName, fileNameDecoded, strlen(fileName));

if      (endsWith(fileNameDecoded, ".gz"))
    result = GZ_READ;
else if (endsWith(fileNameDecoded, ".Z"))
    result = Z_READ;
else if (endsWith(fileNameDecoded, ".bz2"))
    result = BZ2_READ;
else if (endsWith(fileNameDecoded, ".zip"))
    result = ZIP_READ;

freeMem(fileNameDecoded);
return result;

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x647e
movq %rax, %rbx
leaq 0xd628(%rip), %rdi      # 0x1a401
movq %r14, %rsi
callq 0x8214
testl %eax, %eax
jne 0xce0b
leaq 0xd61d(%rip), %rdi      # 0x1a409
movq %r14, %rsi
callq 0x8214
testl %eax, %eax
jne 0xce0b
leaq 0xd613(%rip), %rdi      # 0x1a412
movq %r14, %rsi
callq 0x8214
testl %eax, %eax
je 0xce20
movq %r14, %rdi
callq 0x3200
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
callq 0x13805
leaq 0xd5f2(%rip), %rsi      # 0x1a419
movq %rbx, %rdi
callq 0x84b9
testl %eax, %eax
je 0xce3c
leaq 0x1a696(%rip), %r14     # 0x274d0
jmp 0xce93
leaq 0xd5da(%rip), %rsi      # 0x1a41d
movq %rbx, %rdi
callq 0x84b9
testl %eax, %eax
je 0xce58
leaq 0x1a69a(%rip), %r14     # 0x274f0
jmp 0xce93
leaq 0xd5c1(%rip), %rsi      # 0x1a420
movq %rbx, %rdi
callq 0x84b9
testl %eax, %eax
je 0xce74
leaq 0x1a69e(%rip), %r14     # 0x27510
jmp 0xce93
leaq 0xd5aa(%rip), %rsi      # 0x1a425
movq %rbx, %rdi
callq 0x84b9
xorl %r14d, %r14d
testl %eax, %eax
leaq 0x1a6a1(%rip), %rax     # 0x27530
cmovneq %rax, %r14
movq %rbx, %rdi
callq 0xf129
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileAttach
struct lineFile *lineFileAttach(char *fileName, bool zTerm, int fd)
/* Wrap a line file around an open'd file. */
{
struct lineFile *lf;
AllocVar(lf);
lf->fileName = cloneString(fileName);
lf->fd = fd;
lf->bufSize = 64*1024;
lf->zTerm = zTerm;
lf->buf = needMem(lf->bufSize+1);
return lf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movl $0xa0, %edi
callq 0xf07d
movq %rax, %r15
movq %r14, %rdi
callq 0x647e
movq %rax, 0x8(%r15)
movl %ebx, 0x10(%r15)
movl $0x10000, 0x14(%r15)    # imm = 0x10000
movb %bpl, 0x34(%r15)
movl $0x10001, %edi          # imm = 0x10001
callq 0xf07d
movq %rax, 0x40(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileDecompressFd
struct lineFile *lineFileDecompressFd(char *name, bool zTerm, int fd)
/* open a linefile with decompression from a file or socket descriptor */
{
struct pipeline *pl;
struct lineFile *lf;
pl = pipelineOpenFd1(getDecompressor(name), pipelineRead, fd, STDERR_FILENO);
lf = lineFileAttach(name, zTerm, pipelineFd(pl));
lf->pl = pl;
return lf;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
callq 0xcdc3
movq %rax, %rdi
movl $0x1, %esi
movl %ebx, %edx
movl $0x2, %ecx
callq 0x1226c
movq %rax, %rbx
movq %rax, %rdi
callq 0x122ce
movq %r14, %rdi
movl %ebp, %esi
movl %eax, %edx
callq 0xcea6
movq %rbx, 0x48(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileDecompressMem
struct lineFile *lineFileDecompressMem(bool zTerm, char *mem, long size)
/* open a linefile with decompression from a memory stream */
{
struct pipeline *pl;
struct lineFile *lf;
char *fileName = getFileNameFromHdrSig(mem);
if (fileName==NULL)
  return NULL;
pl = pipelineOpenMem1(getDecompressor(fileName), pipelineRead, mem, size, STDERR_FILENO);
lf = lineFileAttach(fileName, zTerm, pipelineFd(pl));
lf->pl = pl;
return lf;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movl %edi, %ebx
movq %rsi, %rdi
callq 0xcbe4
testq %rax, %rax
je 0xcf9c
movq %rax, %r14
movq %rax, %rdi
callq 0xcdc3
movq %rax, %rdi
movl $0x1, %esi
movq %r12, %rdx
movq %r15, %rcx
movl $0x2, %r8d
callq 0x122aa
movq %rax, %r15
movq %rax, %rdi
callq 0x122ce
movsbl %bl, %esi
movq %r14, %rdi
movl %eax, %edx
callq 0xcea6
movq %r15, 0x48(%rax)
jmp 0xcf9e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileOnString
struct lineFile *lineFileOnString(char *name, bool zTerm, char *s)
/* Wrap a line file object around string in memory. This buffer
 * have zeroes written into it and be freed when the line file
 * is closed. */
{
struct lineFile *lf;
AllocVar(lf);
lf->fileName = cloneString(name);
lf->fd = -1;
lf->bufSize = lf->bytesInBuf = strlen(s);
lf->zTerm = zTerm;
lf->buf = s;
return lf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0xa0, %edi
callq 0xf07d
movq %rax, %r15
movq %r14, %rdi
callq 0x647e
movq %rax, 0x8(%r15)
movl $0xffffffff, 0x10(%r15) # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x3200
movl %eax, 0x20(%r15)
movl %eax, 0x14(%r15)
movb %bpl, 0x34(%r15)
movq %rbx, 0x40(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileMayOpen
struct lineFile *lineFileMayOpen(char *fileName, bool zTerm)
/* Try and open up a lineFile. */
{
if (sameString(fileName, "stdin"))
    return lineFileStdin(zTerm);
else if (getDecompressor(fileName) != NULL)
    return lineFileDecompress(fileName, zTerm);
else
    {
    int fd = open(fileName, O_RDONLY);
    if (fd == -1)
        return NULL;
    return lineFileAttach(fileName, zTerm, fd);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0xe306(%rip), %rsi      # 0x1b3be
callq 0x3440
testl %eax, %eax
je 0xd0e0
movq %r14, %rdi
callq 0xcdc3
testq %rax, %rax
je 0xd0fb
movsbl %bl, %esi
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xcce6
movq 0x19ee9(%rip), %rax     # 0x26fd0
movq (%rax), %rdi
callq 0x34e0
movsbl %bl, %esi
leaq 0xe2c5(%rip), %rdi      # 0x1b3be
jmp 0xd112
movq %r14, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x35b0
cmpl $-0x1, %eax
je 0xd120
movsbl %bl, %esi
movq %r14, %rdi
movl %eax, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xcea6
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileOpen
struct lineFile *lineFileOpen(char *fileName, bool zTerm)
/* Open up a lineFile or die trying. */
{
struct lineFile *lf = lineFileMayOpen(fileName, zTerm);
if (lf == NULL)
    errAbort("Couldn't open %s , %s", fileName, strerror(errno));
return lf;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0xd0a8
movq %rax, %rbx
testq %rax, %rax
jne 0xd15e
callq 0x30c0
movl (%rax), %edi
callq 0x3720
leaq 0xcce8(%rip), %rdi      # 0x19e39
movq %r14, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xb8d7
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileSeek
void lineFileSeek(struct lineFile *lf, off_t offset, int whence)
/* Seek to read next line from given position. */
{
noTabixSupport(lf, "lineFileSeek");
if (lf->checkSupport)
    lf->checkSupport(lf, "lineFileSeek");
if (lf->pl != NULL)
    errnoAbort("Can't lineFileSeek on a compressed file: %s", lf->fileName);
lf->reuse = FALSE;
if (whence == SEEK_SET && offset >= lf->bufOffsetInFile
	&& offset < lf->bufOffsetInFile + lf->bytesInBuf)
    {
    lf->lineStart = lf->lineEnd = offset - lf->bufOffsetInFile;
    }
else
    {
    lf->lineStart = lf->lineEnd = lf->bytesInBuf = 0;
    if ((lf->bufOffsetInFile = lseek(lf->fd, offset, whence)) == -1)
	errnoAbort("Couldn't lineFileSeek %s", lf->fileName);
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x88(%rdi), %rax
testq %rax, %rax
je 0xd192
leaq 0xccc2(%rip), %rsi      # 0x19e4f
movq %rbx, %rdi
callq *%rax
cmpq $0x0, 0x48(%rbx)
je 0xd1ab
movq 0x8(%rbx), %rsi
leaq 0xccb8(%rip), %rdi      # 0x19e5c
xorl %eax, %eax
callq 0xba00
movb $0x0, 0x3c(%rbx)
testl %ebp, %ebp
jne 0xd1d5
movq 0x18(%rbx), %rax
cmpq %rax, %r14
jl 0xd1d5
movslq 0x20(%rbx), %rcx
addq %rax, %rcx
cmpq %r14, %rcx
jle 0xd1d5
subl %eax, %r14d
movl %r14d, 0x30(%rbx)
movl %r14d, 0x2c(%rbx)
jmp 0xd1fb
movl $0x0, 0x20(%rbx)
movq $0x0, 0x2c(%rbx)
movl 0x10(%rbx), %edi
movq %r14, %rsi
movl %ebp, %edx
callq 0x3700
movq %rax, 0x18(%rbx)
cmpq $-0x1, %rax
je 0xd200
popq %rbx
popq %r14
popq %rbp
retq
movq 0x8(%rbx), %rsi
leaq 0xcc7d(%rip), %rdi      # 0x19e88
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0xba00
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileLongNetRead
int lineFileLongNetRead(int fd, char *buf, int size)
/* Keep reading until either get no new characters or
 * have read size */
{
int oneSize, totalRead = 0;

while (size > 0)
    {
    oneSize = read(fd, buf, size);
    if (oneSize <= 0)
        break;
    totalRead += oneSize;
    buf += oneSize;
    size -= oneSize;
    }
return totalRead;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testl %edx, %edx
jle 0xd265
movl %edx, %ebp
movq %rsi, %r14
movl %edi, %r15d
xorl %ebx, %ebx
movl %ebp, %edx
movl %r15d, %edi
movq %r14, %rsi
callq 0x33d0
testl %eax, %eax
jle 0xd267
addl %eax, %ebx
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
addq %rcx, %r14
subl %eax, %ebp
jg 0xd241
jmp 0xd267
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: metaDataAdd
static void metaDataAdd(struct lineFile *lf, char *line)
/* write a line of metaData to output file
 * internal function called by lineFileNext */
{
struct metaOutput *meta = NULL;

if (lf->isMetaUnique)
    {
    /* suppress repetition of comments */
    if (hashLookup(lf->metaLines, line))
        {
        return;
        }
    hashAdd(lf->metaLines, line, NULL);
    }
for (meta = lf->metaOutput ; meta != NULL ; meta = meta->next)
    if (line != NULL && meta->metaFile != NULL)
        fprintf(meta->metaFile,"%s\n", line);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x0, 0x58(%rdi)
je 0xd651
movq 0x60(%r14), %rdi
movq %rbx, %rsi
callq 0xbd98
testq %rax, %rax
jne 0xd684
movq 0x60(%r14), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xc04f
movq 0x50(%r14), %r15
testq %r15, %r15
je 0xd684
leaq 0xc5dd(%rip), %r14      # 0x19c3e
testq %rbx, %rbx
je 0xd67c
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0xd67c
movq %r14, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3470
movq (%r15), %r15
testq %r15, %r15
jne 0xd661
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: determineNlType
static void determineNlType(struct lineFile *lf, char *buf, int bufSize)
/* determine type of newline used for the file, assumes buffer not empty */
{
char *c = buf;
if (bufSize==0) return;
if (lf->nlType != nlt_undet) return;  /* if already determined just exit */
lf->nlType = nlt_unix;  /* start with default of unix lf type */
while (c < buf+bufSize)
    {
    if (*c=='\r')
	{
    	lf->nlType = nlt_mac;
	if (++c < buf+bufSize)
    	    if (*c == '\n')
    		lf->nlType = nlt_dos;
	return;
	}
    if (*(c++) == '\n')
	{
	return;
	}
    }
}

// Assembly:
testl %edx, %edx
je 0xd694
cmpl $0x0, 0x38(%rdi)
je 0xd695
retq
movl $0x1, 0x38(%rdi)
movslq %edx, %rax
addq %rsi, %rax
incq %rsi
leaq -0x1(%rsi), %rcx
cmpq %rax, %rcx
jae 0xd694
movb (%rcx), %cl
cmpb $0xd, %cl
je 0xd6bf
incq %rsi
cmpb $0xa, %cl
jne 0xd6a5
jmp 0xd694
movl $0x3, 0x38(%rdi)
cmpq %rax, %rsi
jae 0xd694
cmpb $0xa, (%rsi)
jne 0xd694
movl $0x2, 0x38(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileVaAbort
void lineFileVaAbort(struct lineFile *lf, char *format, va_list args)
/* Print file name, line number, and error message, and abort. */
{
struct dyString *dy = dyStringNew(0);
dyStringPrintf(dy,  "Error line %d of %s: ", lf->lineIx, lf->fileName);
dyStringVaPrintf(dy, format, args);
errAbort("%s", dy->string);
dyStringFree(&dy);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %edi, %edi
callq 0xaf38
movq %rsp, %rbx
movq %rax, (%rbx)
movl 0x28(%r12), %edx
movq 0x8(%r12), %rcx
leaq 0xc7cb(%rip), %rsi      # 0x19ed2
movq %rax, %rdi
xorl %eax, %eax
callq 0xb2d2
movq (%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0xb200
movq (%rbx), %rax
movq 0x8(%rax), %rsi
leaq 0xbe7f(%rip), %rdi      # 0x195ac
xorl %eax, %eax
callq 0xb8d7
movq %rbx, %rdi
callq 0xaf75
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileClose
void lineFileClose(struct lineFile **pLf)
/* Close up a line file. */
{
struct lineFile *lf;
if ((lf = *pLf) != NULL)
    {
    if (lf->pl != NULL)
        {
        pipelineWait(lf->pl);
        pipelineFree(&lf->pl);
        }
    else if (lf->fd > 0 && lf->fd != fileno(stdin))
	{
	close(lf->fd);
	freeMem(lf->buf);
	}
#ifdef USE_TABIX
    else if (lf->tabix != NULL)
	{
	if (lf->tabixIter != NULL)
	    ti_iter_destroy(lf->tabixIter);
	ti_close(lf->tabix);
	}
#endif // USE_TABIX
    if (lf->closeCallBack)
        lf->closeCallBack(lf);
    freeMem(lf->fileName);
    metaDataFree(lf);
    freez(pLf);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq (%rdi), %r14
testq %r14, %r14
je 0xd872
movq %rdi, %rbx
movq 0x48(%r14), %rdi
testq %rdi, %rdi
je 0xd87d
leaq 0x48(%r14), %r15
callq 0x123ad
movq %r15, %rdi
callq 0x11de8
movq 0x98(%r14), %rax
testq %rax, %rax
je 0xd83d
movq %r14, %rdi
callq *%rax
movq 0x8(%r14), %rdi
callq 0xf129
cmpb $0x0, 0x58(%r14)
je 0xd860
cmpq $0x0, 0x60(%r14)
je 0xd860
addq $0x60, %r14
movq %r14, %rdi
callq 0xc757
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xf139
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl 0x10(%r14), %ebp
testl %ebp, %ebp
jle 0xd82c
movq 0x19744(%rip), %rax     # 0x26fd0
movq (%rax), %rdi
callq 0x34e0
cmpl %eax, %ebp
je 0xd82c
movl 0x10(%r14), %edi
callq 0x3350
movq 0x40(%r14), %rdi
callq 0xf129
jmp 0xd82c
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileCloseList
void lineFileCloseList(struct lineFile **pList)
/* Close up a list of line files. */
{
struct lineFile *el, *next;

for (el = *pList; el != NULL; el = next)
    {
    next = el->next;
    lineFileClose(&el);
    }
*pList = NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %r15
movq %r15, 0x8(%rsp)
testq %r15, %r15
je 0xd8df
leaq 0x8(%rsp), %r14
movq (%r15), %r15
movq %r14, %rdi
callq 0xd800
movq %r15, 0x8(%rsp)
testq %r15, %r15
jne 0xd8ca
movq $0x0, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileNextReal
boolean lineFileNextReal(struct lineFile *lf, char **retStart)
/* Fetch next line from file that is not blank and
 * does not start with a '#'. */
{
char *s, c;
while (lineFileNext(lf, retStart, NULL))
    {
    s = skipLeadingSpaces(*retStart);
    c = s[0];
    if (c != 0 && c != '#')
        return TRUE;
    }
return FALSE;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
xorl %edx, %edx
callq 0xd274
testl %eax, %eax
je 0xdc2b
movq (%rbx), %rdi
callq 0x7cb1
movzbl (%rax), %eax
cmpl $0x23, %eax
je 0xdc1a
testl %eax, %eax
jne 0xdc25
xorl %r15d, %r15d
movq %r14, %rdi
movq %rbx, %rsi
jmp 0xdbfb
movl $0x1, %r15d
movl %r15d, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/JimKent[P]linearSat/lib/linefile.c
// Function: lineFileNextFullReal
boolean lineFileNextFullReal(struct lineFile *lf, char **retStart)
// Fetch next line from file that is not blank and does not start with a '#'.
// Continuation lines (ending in '\') are joined into a single line.
{
while (lineFileNextFull(lf, retStart, NULL, NULL, NULL))
    {
    char *clippedText = skipLeadingSpaces(*retStart);
    if (clippedText[0] != '\0' && clippedText[0] != '#')
        return TRUE;
    }
return FALSE;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xd96e
testl %eax, %eax
je 0xdc77
movq (%rbx), %rdi
callq 0x7cb1
movzbl (%rax), %eax
cmpl $0x23, %eax
je 0xdc66
testl %eax, %eax
jne 0xdc71
xorl %r15d, %r15d
movq %r14, %rdi
movq %rbx, %rsi
jmp 0xdc42
movl $0x1, %r15d
movl %r15d, %eax
popq %rbx
popq %r14
popq %r15
retq