LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: cpFile
void cpFile(int s, int d)
/* Copy from source file to dest until reach end of file. */
{
int bufSize = 64*1024, readSize;
char *buf = needMem(bufSize);

for (;;)
    {
    readSize = read(s, buf, bufSize);
    if (readSize > 0)
        mustWriteFd(d, buf, readSize);
    if (readSize <= 0)
        break;
    }
freeMem(buf);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movl %edi, %ebp
movl $0x10000, %edi          # imm = 0x10000
callq 0xee10
movq %rax, %r14
movl $0x10000, %edx          # imm = 0x10000
movl %ebp, %edi
movq %rax, %rsi
callq 0x33d0
testl %eax, %eax
jle 0xf9d5
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %ebx, %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0x97d0
movl $0x10000, %edx          # imm = 0x10000
movl %ebp, %edi
movq %r14, %rsi
jmp 0xf9ae
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0xeebc
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: parseQuotedString
boolean parseQuotedString( char *in, char *out, char **retNext)
/* Read quoted string from in (which should begin with first quote).
 * Write unquoted string to out, which may be the same as in.
 * Return pointer to character past end of string in *retNext. 
 * Return FALSE if can't find end. */
{
char c, *s = in;
int quoteChar = *s++;
boolean escaped = FALSE;

for (;;)
   {
   c = *s++;
   if (c == 0)
       {
       warn("Unmatched %c", quoteChar);
       return FALSE;
       }
   if (escaped)
       {
       if (c == '\\' || c == quoteChar)
          *out++ = c;
       else
          {
	  *out++ = '\\';
	  *out++ = c;
	  }
       escaped = FALSE;
       }
   else
       {
       if (c == '\\')
           escaped = TRUE;
       else if (c == quoteChar)
           break;
       else
           *out++ = c;
       }
   }
*out = 0;
if (retNext != NULL)
    *retNext = s;
return TRUE;
}

// Assembly:
pushq %rbx
movq %rsi, %rax
movsbl (%rdi), %esi
movb 0x1(%rdi), %cl
testb %cl, %cl
je 0xfaa7
addq $0x2, %rdi
xorl %r8d, %r8d
testl %r8d, %r8d
je 0xfa82
cmpb $0x5c, %cl
sete %r8b
cmpb %sil, %cl
sete %r10b
orb %r8b, %r10b
leaq 0x1(%rax), %r9
testb %r10b, %r10b
jne 0xfa96
movb $0x5c, (%rax)
movq %rax, %r8
addq $0x2, %r8
movq %r9, %rax
movq %r8, %r9
jmp 0xfa96
movl $0x1, %r8d
cmpb $0x5c, %cl
je 0xfa9e
cmpb %sil, %cl
je 0xfabb
leaq 0x1(%rax), %r9
movb %cl, (%rax)
xorl %r8d, %r8d
movq %r9, %rax
movb (%rdi), %cl
incq %rdi
testb %cl, %cl
jne 0xfa51
leaq 0xad9c(%rip), %rdi      # 0x1a84a
xorl %ebx, %ebx
xorl %eax, %eax
callq 0xb41e
movl %ebx, %eax
popq %rbx
retq
movb $0x0, (%rax)
movl $0x1, %ebx
testq %rdx, %rdx
je 0xfab7
movq %rdi, (%rdx)
jmp 0xfab7
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: nextQuotedWord
char *nextQuotedWord(char **pLine)
/* Generalization of nextWord.  Returns next quoted
 * string or if no quotes next word.  Updates *pLine
 * to point past word that is returned. Does not return
 * quotes. */
{
char *line, c;
line = skipLeadingSpaces(*pLine);
if (line == NULL || line[0] == 0)
    return NULL;
c = *line;
if (c == '"' || c == '\'')
    {
    if (!parseQuotedString(line, line, pLine))
        return NULL;
    return line;
    }
else
    {
    return nextWord(pLine);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x7b0d
testq %rax, %rax
je 0xfb0d
movq %rax, %rbx
movzbl (%rax), %eax
testl %eax, %eax
je 0xfb0d
cmpl $0x27, %eax
je 0xfaf5
cmpl $0x22, %eax
jne 0xfb1a
movq %rbx, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xfa3c
xorl %ecx, %ecx
testl %eax, %eax
cmoveq %rcx, %rbx
jmp 0xfb0f
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7292
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: makeEscapedString
char *makeEscapedString(char *in, char toEscape)
/* Return string that is a copy of in, but with all
 * toEscape characters preceded by '\' 
 * When done freeMem result. */
{
int newSize = strlen(in) + countChars(in, toEscape);
char *out = needMem(newSize+1);
escCopy(in, out, toEscape, '\\');
return out;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
callq 0x3200
movq %rax, %r15
movq %r14, %rdi
movl %ebx, %esi
callq 0x8906
addl %r15d, %eax
incl %eax
movslq %eax, %rdi
callq 0xee10
movq %rax, %rcx
movb (%r14), %dl
cmpb %bl, %dl
jne 0xfb7a
movb $0x5c, (%rcx)
incq %rcx
incq %r14
movb %dl, (%rcx)
incq %rcx
testb %dl, %dl
jne 0xfb6d
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: makeQuotedString
char *makeQuotedString(char *in, char quoteChar)
/* Create a string surrounded by quoteChar, with internal
 * quoteChars escaped.  freeMem result when done. */
{
int newSize = 2 + strlen(in) + countChars(in, quoteChar);
char *out = needMem(newSize+1);
out[0] = quoteChar;
escCopy(in, out+1, quoteChar, '\\');
out[newSize-1] = quoteChar;
return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
callq 0x3200
movq %rax, %r15
movq %r14, %rdi
movl %ebx, %esi
callq 0x8906
leal (%r15,%rax), %ebp
addl $0x2, %ebp
addl %r15d, %eax
addl $0x3, %eax
movslq %eax, %rdi
callq 0xee10
movb %bl, (%rax)
movq %rax, %rcx
movb (%r14), %dl
cmpb %bl, %dl
jne 0xfbd5
movb $0x5c, 0x1(%rcx)
addq $0x2, %rcx
jmp 0xfbd8
incq %rcx
incq %r14
movb %dl, (%rcx)
testb %dl, %dl
jne 0xfbc4
movslq %ebp, %rcx
movb %bl, -0x1(%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: hashThisEqThatLine
struct hash *hashThisEqThatLine(char *line, int lineIx, boolean firstStartsWithLetter)
/* Return a symbol table from a line of form:
 *   1-this1=val1 2-this='quoted val2' var3="another val" 
 * If firstStartsWithLetter is true, then the left side of the equals must start with
 * a letter. */
{
char *dupe = cloneString(line);
char *s = dupe, c;
char *var, *val;
struct hash *hash = newHash(8);

for (;;)
    {
    if ((var = skipLeadingSpaces(s)) == NULL)
        break;

    if ((c = *var) == 0)
        break;
    if (firstStartsWithLetter && !isalpha(c))
	errAbort("line %d of custom input: variable needs to start with letter '%s'", lineIx, var);
    val = strchr(var, '=');
    if (val == NULL)
        {
        errAbort("line %d of var %s in custom input: %s \n missing = in var/val pair", lineIx, var, line);
        }
    *val++ = 0;
    c = *val;
    if (c == '\'' || c == '"')
        {
	if (!parseQuotedString(val, val, &s))
	    errAbort("line %d of input: missing closing %c", lineIx, c);
	}
    else
	{
	s = skipToSpaces(val);
	if (s != NULL) *s++ = 0;
	}
    hashAdd(hash, var, cloneString(val));
    }
freez(&dupe);
return hash;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, 0x8(%rsp)
callq 0x6402
movq %rax, %r12
movq %rax, 0x10(%rsp)
movq %rax, (%rsp)
movl $0x8, %edi
movl $0x1, %esi
callq 0xc1ee
movq %rax, %r15
movq %r12, %rdi
callq 0x7b0d
testq %rax, %rax
je 0xfd2e
movq %rax, %r12
movsbq (%r12), %r14
testq %r14, %r14
je 0xfd2e
testl %ebx, %ebx
je 0xfc76
callq 0x37a0
movq (%rax), %rax
testb $0x4, 0x1(%rax,%r14,2)
jne 0xfc76
leaq 0xabed(%rip), %rdi      # 0x1a857
movl %ebp, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0xb6c8
movq %r12, %rdi
movl $0x3d, %esi
callq 0x3260
movq %rax, %r13
testq %rax, %rax
jne 0xfca3
leaq 0xac07(%rip), %rdi      # 0x1a899
movl %ebp, %esi
movq %r12, %rdx
movq 0x8(%rsp), %rcx
xorl %eax, %eax
callq 0xb6c8
movq %r13, %rax
incq %r13
movb $0x0, (%rax)
movzbl 0x1(%rax), %r14d
cmpl $0x27, %r14d
je 0xfcbd
cmpl $0x22, %r14d
jne 0xfce5
movq %r13, %rdi
movq %r13, %rsi
movq %rsp, %rdx
callq 0xfa3c
testl %eax, %eax
jne 0xfd03
movsbl %r14b, %edx
leaq 0xac01(%rip), %rdi      # 0x1a8db
movl %ebp, %esi
xorl %eax, %eax
callq 0xb6c8
jmp 0xfd03
movq %r13, %rdi
callq 0x8dcc
movq %rax, (%rsp)
testq %rax, %rax
je 0xfd03
movq %rax, %rcx
incq %rcx
movq %rcx, (%rsp)
movb $0x0, (%rax)
movq %r13, %rdi
callq 0x6402
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0xbe46
movq (%rsp), %rdi
callq 0x7b0d
movq %rax, %r12
testq %rax, %rax
jne 0xfc41
leaq 0x10(%rsp), %rdi
callq 0xeecc
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: stringToSlNames
struct slName *stringToSlNames(char *string)
/* Convert string to a list of slNames separated by
 * white space, but allowing multiple words in quotes.
 * Quotes if any are stripped.  */
{
struct slName *list = NULL, *name;
char *dupe = cloneString(string);
char c, *s = dupe, *e;

for (;;)
    {
    if ((s = skipLeadingSpaces(s)) == NULL)
        break;
    if ((c = *s) == 0)
        break;
    if (c == '\'' || c == '"')
        {
	if (!parseQuotedString(s, s, &e))
	    errAbort("missing closing %c in %s", c, string);
	}
    else
        {
	e = skipToSpaces(s);
	if (e != NULL) *e++ = 0;
	}
    name = slNameNew(s);
    slAddHead(&list, name);
    s = e;
    }
freeMem(dupe);
slReverse(&list);
return list;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq $0x0, 0x10(%rsp)
callq 0x6402
movq %rax, %r14
movq %rax, %rdi
callq 0x7b0d
testq %rax, %rax
je 0xfe1a
movq %rax, %r13
leaq 0x8(%rsp), %r15
xorl %r12d, %r12d
movzbl (%r13), %ebp
cmpl $0x22, %ebp
je 0xfdc7
cmpl $0x27, %ebp
je 0xfdc7
testl %ebp, %ebp
je 0xfe1a
movq %r13, %rdi
callq 0x8dcc
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0xfdee
movq %rax, %rcx
incq %rcx
movq %rcx, 0x8(%rsp)
movb $0x0, (%rax)
jmp 0xfdee
movq %r13, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0xfa3c
testl %eax, %eax
jne 0xfdee
movsbl %bpl, %esi
leaq 0xab1c(%rip), %rdi      # 0x1a900
movq %rbx, %rdx
xorl %eax, %eax
callq 0xb6c8
movq %r13, %rdi
callq 0x6cb2
movq %rax, %rbp
movq %r12, (%rax)
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %rdi
callq 0x7b0d
movq %rax, %r13
movq %rbp, %r12
testq %rax, %rax
jne 0xfd92
movq %r14, %rdi
callq 0xeebc
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x66bb
movq (%rbx), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: charSepToSlNames
struct slName *charSepToSlNames(char *string, char c)
/* Convert character-separated list of items to slName list. 
 * Note that the last occurence of c is optional.  (That
 * is for a comma-separated list a,b,c and a,b,c, are
 * equivalent. */
{
struct slName *list = NULL, *el;
char *s, *e;

s = string;
while (s != NULL && s[0] != 0)
    {
    e = strchr(s, c);
    if (e == NULL)
        {
	el = slNameNew(s);
	slAddHead(&list, el);
	break;
	}
    else
        {
	el = slNameNewN(s, e - s);
	slAddHead(&list, el);
	s = e+1;
	}
    }
slReverse(&list);
return list;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq $0x0, (%rsp)
testq %rdi, %rdi
je 0xfeab
movq %rdi, %rbx
cmpb $0x0, (%rdi)
je 0xfeab
movsbl %sil, %ebp
xorl %r15d, %r15d
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3260
testq %rax, %rax
je 0xfe9c
movq %rax, %r14
movl %r14d, %esi
subl %ebx, %esi
movq %rbx, %rdi
callq 0x6cf3
movq %r15, (%rax)
movq %rax, (%rsp)
movq %r14, %rbx
incq %rbx
cmpb $0x0, 0x1(%r14)
movq %rax, %r15
jne 0xfe64
jmp 0xfeab
movq %rbx, %rdi
callq 0x6cb2
movq %r15, (%rax)
movq %rax, (%rsp)
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x66bb
movq (%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: sprintWithGreekByte
void sprintWithGreekByte(char *s, int slength, long long size)
/* Numbers formatted with PB, TB, GB, MB, KB, B */
{
char *greek[] = {"B", "KB", "MB", "GB", "TB", "PB"};
int i = 0;
long long d = 1;
while ((size/d) >= 1024)
    {
    ++i;
    d *= 1024;
    }
double result = ((double)size)/d;
if (result < 10)
    safef(s,slength,"%3.1f %s",((double)size)/d, greek[i]);
else
    safef(s,slength,"%3.0f %s",((double)size)/d, greek[i]);
}

// Assembly:
movq %rdx, %rcx
cmpq $0x400, %rdx            # imm = 0x400
jl 0x1011d
movl $0x1, %r9d
xorl %r8d, %r8d
shlq $0xa, %r9
movq %rcx, %rax
xorl %edx, %edx
divq %r9
incq %r8
cmpq $0x3ff, %rax            # imm = 0x3FF
jg 0x100ff
cvtsi2sd %r9, %xmm1
jmp 0x10128
movsd 0x7eeb(%rip), %xmm1     # 0x18010
xorl %r8d, %r8d
cvtsi2sd %rcx, %xmm0
divsd %xmm1, %xmm0
leaq 0xa8d4(%rip), %rax      # 0x1aa0c
movslq (%rax,%r8,4), %rcx
addq %rax, %rcx
movsd 0xa6a1(%rip), %xmm1     # 0x1a7e8
ucomisd %xmm0, %xmm1
leaq 0xa830(%rip), %rax      # 0x1a982
leaq 0xa832(%rip), %rdx      # 0x1a98b
cmovaq %rax, %rdx
movb $0x1, %al
jmp 0xa0ca
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: shuffleArrayOfChars
void shuffleArrayOfChars(char *array, int arraySize)
/* Shuffle array of characters of given size given number of times. */
{
char c;
int i, randIx;

/* Randomly permute an array using the method from Cormen, et al */
for (i=0; i<arraySize; ++i)
    {
    randIx = i + (rand() % (arraySize - i));
    c = array[i];
    array[i] = array[randIx];
    array[randIx] = c;
    }
}

// Assembly:
testl %esi, %esi
jle 0x10197
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, %r14d
callq 0x3780
cltd
idivl %r14d
movb (%rbx), %al
movslq %edx, %rcx
movb (%rbx,%rcx), %dl
movb %dl, (%rbx)
movb %al, (%rbx,%rcx)
incq %rbx
decq %r14
jne 0x10172
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: shuffleArrayOfPointers
void shuffleArrayOfPointers(void *pointerArray, int arraySize)
/* Shuffle array of pointers of given size given number of times. */
{
void **array = pointerArray, *pt;
int i, randIx;

/* Randomly permute an array using the method from Cormen, et al */
for (i=0; i<arraySize; ++i)
    {
    randIx = i + (rand() % (arraySize - i));
    pt = array[i];
    array[i] = array[randIx];
    array[randIx] = pt;
    }
}

// Assembly:
testl %esi, %esi
jle 0x101d6
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl %esi, %r14d
xorl %r15d, %r15d
callq 0x3780
cltd
idivl %r14d
movq (%rbx,%r15,8), %rax
movslq %edx, %rcx
addq %r15, %rcx
movq (%rbx,%rcx,8), %rdx
movq %rdx, (%rbx,%r15,8)
movq %rax, (%rbx,%rcx,8)
incq %r15
decq %r14
jne 0x101aa
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: shuffleList
void shuffleList(void *pList)
/* Randomize order of slList.  Usage:
 *     randomizeList(&list)
 * where list is a pointer to a structure that
 * begins with a next field. */
{
struct slList **pL = (struct slList **)pList;
struct slList *list = *pL;
int count;
count = slCount(list);
if (count > 1)
    {
    struct slList *el;
    struct slList **array;
    int i;
    array = needLargeMem(count * sizeof(*array));
    for (el = list, i=0; el != NULL; el = el->next, i++)
        array[i] = el;
    for (i=0; i<4; ++i)
        shuffleArrayOfPointers(array, count);
    list = NULL;
    for (i=0; i<count; ++i)
        {
        array[i]->next = list;
        list = array[i];
        }
    freeMem(array);
    slReverse(&list);
    *pL = list;       
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %r15
movq %r15, %rdi
callq 0x65f4
cmpl $0x2, %eax
jl 0x1026e
movl %eax, %ebp
movl %eax, %r12d
leaq (,%r12,8), %rdi
callq 0xec18
movq %rax, %r14
testq %r15, %r15
je 0x10222
movq %r14, %rax
movq %r15, (%rax)
movq (%r15), %r15
addq $0x8, %rax
testq %r15, %r15
jne 0x10213
movl $0x4, %r15d
movq %r14, %rdi
movl %ebp, %esi
callq 0x10198
decl %r15d
jne 0x10228
xorl %eax, %eax
xorl %ecx, %ecx
movq (%r14,%rcx,8), %rdx
movq %rax, (%rdx)
movq (%r14,%rcx,8), %rax
movq %rax, 0x8(%rsp)
incq %rcx
cmpq %rcx, %r12
jne 0x1023b
movq %r14, %rdi
callq 0xeebc
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x66bb
movq (%r14), %rax
movq %rax, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: stripCommas
char *stripCommas(char *position)
/* make a new string with commas stripped out */
{
char *newPos = cloneString(position);
char *nPtr = newPos;

if (position == NULL)
    return NULL;
while((*nPtr = *position++))
    if (*nPtr != ',')
	nPtr++;

return newPos;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x6402
testq %rbx, %rbx
je 0x102a2
movq %rax, %rcx
movzbl (%rbx), %edx
incq %rbx
movb %dl, (%rcx)
cmpl $0x2c, %edx
je 0x1028c
testl %edx, %edx
je 0x102a4
incq %rcx
jmp 0x1028c
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: dotForUser
void dotForUser()
/* Write out a dot every _dotForUserMod times this is called. */
{
static int dot = -10;
/* Check to see if dot has been initialized. */
if(dot == - 10)
    dot = _dotForUserMod;

if (--dot <= 0)
    {
    putc('.', stderr);
    fflush(stderr);
    dot = _dotForUserMod;
    }
}

// Assembly:
movl 0x172cd(%rip), %eax     # 0x275a4
cmpl $-0xa, %eax
jne 0x102e2
movl 0x172be(%rip), %eax     # 0x275a0
leal -0x1(%rax), %ecx
movl %ecx, 0x172b9(%rip)     # 0x275a4
cmpl $0x1, %eax
jg 0x1031a
pushq %rbx
movq 0x16d00(%rip), %rbx     # 0x26ff8
movq (%rbx), %rsi
movl $0x2e, %edi
callq 0x3430
movq (%rbx), %rdi
callq 0x3520
movl 0x1728d(%rip), %eax     # 0x275a0
movl %eax, 0x1728b(%rip)     # 0x275a4
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: spaceToUnderbar
void spaceToUnderbar(char *s)
/* Convert white space to underbar. */
{
char c;
while ((c = *s) != 0)
    {
    if (isspace(c))
        *s = '_';
    ++s;
    }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movb (%rdi), %bpl
testb %bpl, %bpl
je 0x1034e
movq %rdi, %rbx
callq 0x37a0
incq %rbx
movq (%rax), %rcx
movsbq %bpl, %rdx
testb $0x20, 0x1(%rcx,%rdx,2)
je 0x10343
movb $0x5f, -0x1(%rbx)
movb (%rbx), %bpl
incq %rbx
testb %bpl, %bpl
jne 0x10331
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: printVmPeak
void printVmPeak()
/* print to stderr peak Vm memory usage (if /proc/ business exists) */
{
pid_t pid = getpid();
char temp[256];
safef(temp, sizeof(temp), "/proc/%d/status", (int) pid);
struct lineFile *lf = lineFileMayOpen(temp, TRUE);
if (lf)
    {
    char *line;
    while (lineFileNextReal(lf, &line))
	{
	if (stringIn("VmPeak", line))
	    {
	    fprintf(stderr, "# pid=%d: %s\n", pid, line);
	    break;
	    }
	}
    lineFileClose(&lf);
    }
else
    fprintf(stderr, "# printVmPeak: %s - not available\n", temp);
fflush(stderr);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
callq 0x31b0
movl %eax, %ebx
leaq 0xa64f(%rip), %rdx      # 0x1a9c2
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
movl %eax, %ecx
xorl %eax, %eax
callq 0xa0ca
movq %r14, %rdi
movl $0x1, %esi
callq 0xce77
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x10417
movq %rax, %r14
movq %rsp, %r15
leaq 0xa625(%rip), %r12      # 0x1a9d2
movq %r14, %rdi
movq %r15, %rsi
callq 0xd937
testl %eax, %eax
je 0x103ed
movq (%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x3760
testq %rax, %rax
je 0x103ad
movq 0x16c21(%rip), %rax     # 0x26ff8
movq (%rax), %rdi
leaq 0xa5f8(%rip), %rsi      # 0x1a9d9
movl %ebx, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0x3470
leaq 0x8(%rsp), %rdi
callq 0xd560
movq 0x16bfa(%rip), %rax     # 0x26ff8
movq (%rax), %rdi
callq 0x3520
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x16bda(%rip), %rax     # 0x26ff8
movq (%rax), %rdi
leaq 0xa5bf(%rip), %rsi      # 0x1a9e7
leaq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0x3470
jmp 0x103f7
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/obscure.c
// Function: nameInCommaList
boolean nameInCommaList(char *name, char *commaList)
/* Return TRUE if name is in comma separated list. */
{
if (commaList == NULL)
    return FALSE;
int nameLen = strlen(name);
for (;;)
    {
    char c = *commaList;
    if (c == 0)
        return FALSE;
    if (memcmp(name, commaList, nameLen) == 0)
        {
	c = commaList[nameLen];
	if (c == 0 || c == ',')
	    return TRUE;
	}
    commaList = strchr(commaList, ',');
    if (commaList == NULL)
        return FALSE;
    commaList += 1;
    }
}

// Assembly:
testq %rsi, %rsi
je 0x1049e
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
cmpb $0x0, (%rsi)
je 0x10496
movq %rdi, %rbx
callq 0x3200
movslq %eax, %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3550
testl %eax, %eax
jne 0x10478
movzbl (%r14,%r15), %ecx
movl $0x1, %eax
testl %ecx, %ecx
je 0x10498
cmpl $0x2c, %ecx
je 0x10498
movq %r14, %rdi
movl $0x2c, %esi
callq 0x3260
testq %rax, %rax
je 0x10496
movq %rax, %r14
incq %r14
cmpb $0x0, 0x1(%rax)
jne 0x10453
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
xorl %eax, %eax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/options.c
// Function: optionVal
char *optionVal(char *name, char *defaultVal)
/* Return named option if in options hash, otherwise default. */
{
char *ret;
/* if a optionSpec was used, make sure this option is not a multi option */
if(optionSpecification != NULL) 
    {
    struct optionSpec *spec = matchingOption(name, optionSpecification);
    if(spec != NULL && (spec->flags & OPTION_MULTI))    
        errAbort("ERROR: optionVal cannot be used to get the value of an OPTION_MULTI");
    }

ret = optGet(name);
if (ret == NULL)
     ret = defaultVal;
return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x16ea2(%rip), %r15     # 0x278f0
testq %r15, %r15
je 0x10a8e
movq (%r15), %rdi
testq %rdi, %rdi
je 0x10a8e
addq $0x10, %r15
movq %r14, %rsi
callq 0x3440
testl %eax, %eax
je 0x10a79
movq (%r15), %rdi
addq $0x10, %r15
testq %rdi, %rdi
jne 0x10a5f
jmp 0x10a8e
testb $0x40, -0x8(%r15)
je 0x10a8e
leaq 0x9f9d(%rip), %rdi      # 0x1aa24
xorl %eax, %eax
callq 0xb6c8
movq %r14, %rdi
callq 0x10aa3
testq %rax, %rax
cmoveq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/options.c
// Function: optionInt
int optionInt(char *name, int defaultVal)
/* Return integer value of named option, or default value
 * if not set. */
{
char *s = optGet(name);
char *valEnd;
long lval;
if (s == NULL)
    return defaultVal;
if (sameString(s,"on"))
    return defaultVal;
lval = strtol(s, &valEnd, 10);  // use strtol since strtoi does not exist
if ((*s == '\0') || (*valEnd != '\0'))
    errAbort("value of -%s is not a valid integer: \"%s\"", name, s);
if (lval > INT_MAX)
    errAbort("value of -%s is is too large: %ld, integer maximum is %d", name, lval, INT_MAX);
if (lval < INT_MIN)
    errAbort("value of -%s is is too small: %ld, integer minimum is %d", name, lval, INT_MIN);
return lval;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
callq 0x10aa3
testq %rax, %rax
je 0x10b82
movq %rax, %r15
cmpb $0x6f, (%rax)
jne 0x10b03
cmpb $0x6e, 0x1(%r15)
jne 0x10b03
cmpb $0x0, 0x2(%r15)
je 0x10b82
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movl $0xa, %edx
callq 0x3490
movq %rax, %rbx
cmpb $0x0, (%r15)
je 0x10b28
movq 0x8(%rsp), %rax
cmpb $0x0, (%rax)
je 0x10b3c
leaq 0x9f39(%rip), %rdi      # 0x1aa68
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xb6c8
movl $0x80000000, %eax       # imm = 0x80000000
cmpq %rax, %rbx
jl 0x10b5a
leaq 0x9f45(%rip), %rdi      # 0x1aa92
movq %r14, %rsi
movq %rbx, %rdx
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x10b7b
movabsq $-0x80000001, %rax      # imm = 0xFFFFFFFF7FFFFFFF
cmpq %rax, %rbx
jg 0x10b82
leaq 0x9f5b(%rip), %rdi      # 0x1aacb
movq %r14, %rsi
movq %rbx, %rdx
movl $0x80000000, %ecx       # imm = 0x80000000
xorl %eax, %eax
callq 0xb6c8
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/options.c
// Function: optionLongLong
long long optionLongLong(char *name, long long defaultVal)
/* Return long long value of named option, or default value
 * if not set. */
{
char *s = optGet(name);
char *valEnd;
long long val;
if (s == NULL)
    return defaultVal;
if (sameString(s,"on"))
    return defaultVal;
val = strtoll(s, &valEnd, 10);
if ((*s == '\0') || (*valEnd != '\0'))
    errAbort("value of -%s is not a valid long long: \"%s\"", name, s);
return val;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x10aa3
testq %rax, %rax
je 0x10bf6
movq %rax, %r15
cmpb $0x6f, (%rax)
jne 0x10bbd
cmpb $0x6e, 0x1(%r15)
jne 0x10bbd
cmpb $0x0, 0x2(%r15)
je 0x10bf6
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movl $0xa, %edx
callq 0x3460
movq %rax, %rbx
cmpb $0x0, (%r15)
je 0x10be2
movq 0x8(%rsp), %rax
cmpb $0x0, (%rax)
je 0x10bf6
leaq 0x9f1b(%rip), %rdi      # 0x1ab04
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xb6c8
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/options.c
// Function: optionFloat
float optionFloat(char *name, float defaultVal)
/* Return floating point value or default value if not set. */
{
char *s = optGet(name);
char *valEnd;
float val;
if (s == NULL)
    return defaultVal;

val = strtod(s, &valEnd);
if ((*s == '\0') || (*valEnd != '\0'))
    errAbort("value of -%s is not a valid float: \"%s\"", name, s);
return val;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movss %xmm0, 0xc(%rsp)
movq %rdi, %rbx
callq 0x10aa3
testq %rax, %rax
je 0x10c5b
movq %rax, %r14
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x3160
cvtsd2ss %xmm0, %xmm0
cmpb $0x0, (%r14)
movss %xmm0, 0xc(%rsp)
je 0x10c47
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
je 0x10c5b
leaq 0x9ee2(%rip), %rdi      # 0x1ab30
movq %rbx, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0xb6c8
movss 0xc(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/options.c
// Function: optionMultiVal
struct slName *optionMultiVal(char *name, struct slName *defaultVal)
/* Return named option if in options hash, otherwise default. */
{
struct slName *ret;
if(optionSpecification == NULL)
    errAbort("ERROR: optionMultiVal can only be used after optionInit is called "
             "with a non-NULL optionSpecs");

ret = hashFindVal(options, name);
if (ret == NULL)
     ret = defaultVal;
return ret;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, 0x16c75(%rip)     # 0x278f0
jne 0x10c8b
leaq 0x9ed4(%rip), %rdi      # 0x1ab58
xorl %eax, %eax
callq 0xb6c8
movq 0x16c56(%rip), %rdi     # 0x278e8
movq %r14, %rsi
callq 0xc0b1
testq %rax, %rax
cmoveq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/options.c
// Function: optionDouble
double optionDouble(char *name, double defaultVal)
/* Return double value or default value if not set */
{
char *s = optGet(name);
char *valEnd;
double val;
if (s == NULL)
    return defaultVal;

val = strtod(s, &valEnd);
if ((*s == '\0') || (*valEnd != '\0'))
    errAbort("value of -%s is not a valid double: \"%s\"", name, s);
return val;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
callq 0x10aa3
testq %rax, %rax
je 0x10cfd
movq %rax, %r14
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x3160
cmpb $0x0, (%r14)
movsd %xmm0, 0x8(%rsp)
je 0x10ce9
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
je 0x10cfd
leaq 0x9ec6(%rip), %rdi      # 0x1abb6
movq %rbx, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0xb6c8
movsd 0x8(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: freeSpaceOnFileSystem
long long freeSpaceOnFileSystem(char *path)
/* Given a path to a file or directory on a file system,  return free space
 * in bytes. */
{
struct statvfs fi;
int err = statvfs(path,&fi);
if (err < 0)
    errnoAbort("freeSpaceOnFileSystem could not statvfs");
return (long long)fi.f_bsize * fi.f_bavail;
}

// Assembly:
subq $0x78, %rsp
leaq 0x8(%rsp), %rsi
callq 0x37b0
testl %eax, %eax
jns 0x10daa
leaq 0x9fd4(%rip), %rdi      # 0x1ad77
xorl %eax, %eax
callq 0xb7f4
movq 0x28(%rsp), %rax
imulq 0x8(%rsp), %rax
addq $0x78, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: clock1000
long clock1000()
/* A millisecond clock. */
{
struct timeval tv;
static long origSec;
gettimeofday(&tv, NULL);
if (origSec == 0)
    origSec = tv.tv_sec;
return (tv.tv_sec-origSec)*1000 + tv.tv_usec / 1000;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsp, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x32d0
movq 0x16b2d(%rip), %rax     # 0x27900
movq (%rbx), %rcx
testq %rax, %rax
jne 0x10de5
movq %rcx, 0x16b1e(%rip)     # 0x27900
movq %rcx, %rax
subq %rax, %rcx
movabsq $0x20c49ba5e353f7cf, %rax # imm = 0x20C49BA5E353F7CF
imulq 0x8(%rsp)
imulq $0x3e8, %rcx, %rcx      # imm = 0x3E8
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rdx, %rax
addq %rcx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: listDir
struct slName *listDir(char *dir, char *pattern)
/* Return an alphabetized list of all files that match 
 * the wildcard pattern in directory. */
{
struct slName *list = NULL, *name;
struct dirent *de;
DIR *d;

if ((d = opendir(dir)) == NULL)
    return NULL;
while ((de = readdir(d)) != NULL)
    {
    char *fileName = de->d_name;
    if (differentString(fileName, ".") && differentString(fileName, ".."))
	{
	if (pattern == NULL || wildMatch(pattern, fileName))
	    {
	    name = newSlName(fileName);
	    slAddHead(&list, name);
	    }
	}
    }
closedir(d);
slNameSort(&list);
return list;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq $0x0, (%rsp)
callq 0x31d0
testq %rax, %rax
je 0x10f76
movq %rax, %r14
movq %rax, %rdi
callq 0x35e0
testq %rax, %rax
je 0x10f5e
movq %rax, %r15
xorl %r12d, %r12d
cmpb $0x2e, 0x13(%r15)
jne 0x10f24
cmpb $0x0, 0x14(%r15)
je 0x10f4e
cmpb $0x2e, 0x14(%r15)
jne 0x10f24
cmpb $0x0, 0x15(%r15)
je 0x10f4e
addq $0x13, %r15
testq %rbx, %rbx
je 0x10f3c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x12d41
testl %eax, %eax
je 0x10f4e
movq %r15, %rdi
callq 0x6cb2
movq %r12, (%rax)
movq %rax, (%rsp)
movq %rax, %r12
movq %r14, %rdi
callq 0x35e0
movq %rax, %r15
testq %rax, %rax
jne 0x10f08
movq %r14, %rdi
callq 0x3380
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x6e13
movq (%rbx), %rax
jmp 0x10f78
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: listDirRegEx
struct slName *listDirRegEx(char *dir, char *regEx, int flags)
/* Return an alphabetized list of all files that match 
 * the regular expression pattern in directory.
 * See REGCOMP(3) for flags (e.g. REG_ICASE)  */
{
struct slName *list = NULL, *name;
struct dirent *de;
DIR *d;
regex_t re;
int err = regcomp(&re, regEx, flags | REG_NOSUB);
if(err)
    errAbort("regcomp failed; err: %d", err);

if ((d = opendir(dir)) == NULL)
    return NULL;
while ((de = readdir(d)) != NULL)
    {
    char *fileName = de->d_name;
    if (differentString(fileName, ".") && differentString(fileName, ".."))
	{
	if (!regexec(&re, fileName, 0, NULL, 0))
	    {
	    name = newSlName(fileName);
	    slAddHead(&list, name);
	    }
	}
    }
closedir(d);
regfree(&re);
slNameSort(&list);
return list;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
movq $0x0, 0x8(%rsp)
orl $0x8, %edx
leaq 0x10(%rsp), %rdi
callq 0x3390
testl %eax, %eax
je 0x10fba
leaq 0x9e4b(%rip), %rdi      # 0x1adfc
movl %eax, %esi
xorl %eax, %eax
callq 0xb6c8
movq %rbx, %rdi
callq 0x31d0
testq %rax, %rax
je 0x11062
movq %rax, %rbx
movq %rax, %rdi
callq 0x35e0
testq %rax, %rax
je 0x1103e
movq %rax, %r15
leaq 0x10(%rsp), %r14
cmpb $0x2e, 0x13(%r15)
jne 0x10fff
cmpb $0x0, 0x14(%r15)
je 0x1102e
cmpb $0x2e, 0x14(%r15)
jne 0x10fff
cmpb $0x0, 0x15(%r15)
je 0x1102e
addq $0x13, %r15
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3540
testl %eax, %eax
jne 0x1102e
movq %r15, %rdi
callq 0x6cb2
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
callq 0x35e0
movq %rax, %r15
testq %rax, %rax
jne 0x10fe3
movq %rbx, %rdi
callq 0x3380
leaq 0x10(%rsp), %rdi
callq 0x31f0
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x6e13
movq (%rbx), %rax
jmp 0x11064
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: makeDir
boolean makeDir(char *dirName)
/* Make dir.  Returns TRUE on success.  Returns FALSE
 * if failed because directory exists.  Prints error
 * message and aborts on other error. */
{
int err;
if ((err = mkdir(dirName, 0777)) < 0)
    {
    if (errno != EEXIST)
	{
	perror("");
	errAbort("Couldn't make directory %s", dirName);
	}
    return FALSE;
    }
return TRUE;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x30f0
movl $0x1, %ebp
testl %eax, %eax
jns 0x11100
callq 0x30c0
xorl %ebp, %ebp
cmpl $0x11, (%rax)
jne 0x11109
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x8bc2(%rip), %rdi      # 0x19cd2
callq 0x3640
leaq 0x9cf8(%rip), %rdi      # 0x1ae14
xorl %ebp, %ebp
movq %rbx, %rsi
xorl %eax, %eax
callq 0xb6c8
jmp 0x11100
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: getHost
char *getHost()
/* Return host name. */
{
static char *hostName = NULL;
static char buf[128];
if (hostName == NULL)
    {
    hostName = getenv("HTTP_HOST");
    if (hostName == NULL)
        {
	hostName = getenv("HOST");
	if (hostName == NULL)
	    {
	    if (hostName == NULL)
		{
		static struct utsname unamebuf;
		if (uname(&unamebuf) >= 0)
		    hostName = unamebuf.nodename;
		else
		    hostName = "unknown";
		}
	    }
        }
    strncpy(buf, hostName, sizeof(buf));
    chopSuffix(buf);
    hostName = buf;
    }
return hostName;
}

// Assembly:
pushq %rbx
movq 0x1680f(%rip), %rbx     # 0x27b10
testq %rbx, %rbx
jne 0x11383
leaq 0x9b59(%rip), %rdi      # 0x1ae66
callq 0x3040
movq %rax, 0x167f7(%rip)     # 0x27b10
testq %rax, %rax
jne 0x1135d
leaq 0x9b62(%rip), %rdi      # 0x1ae87
callq 0x3040
movq %rax, 0x167df(%rip)     # 0x27b10
testq %rax, %rax
jne 0x1135d
leaq 0x16863(%rip), %rdi     # 0x27ba0
callq 0x32c0
testl %eax, %eax
leaq 0x16896(%rip), %rcx     # 0x27be1
leaq 0x9b1e(%rip), %rax      # 0x1ae70
cmovnsq %rcx, %rax
movq %rax, 0x167b3(%rip)     # 0x27b10
leaq 0x167bc(%rip), %rbx     # 0x27b20
movl $0x80, %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x30d0
movq %rbx, %rdi
callq 0x9900
movq %rbx, 0x1678d(%rip)     # 0x27b10
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: semiUniqName
char *semiUniqName(char *base)
/* Figure out a name likely to be unique.
 * Name will have no periods.  Returns a static
 * buffer, so best to clone result unless using
 * immediately. */
{
int pid = getpid();
int num = time(NULL)&0xFFFFF;
char host[512];
strcpy(host, getHost());
char *s = strchr(host, '.');
if (s != NULL)
     *s = 0;
subChar(host, '-', '_');
subChar(host, ':', '_');
static char name[PATH_LEN];
safef(name, sizeof(name), "%s_%s_%x_%x",
	base, host, pid, num);
return name;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rdi, %rbx
callq 0x31b0
movl %eax, %ebp
xorl %edi, %edi
callq 0x34d0
movq %rax, %r14
callq 0x112f9
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x30e0
movq %r15, %rdi
movl $0x2e, %esi
callq 0x3260
testq %rax, %rax
je 0x11413
movb $0x0, (%rax)
andl $0xfffff, %r14d         # imm = 0xFFFFF
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x3200
movq %r15, %rdi
movl %eax, %esi
movl $0x2d, %edx
movl $0x5f, %ecx
callq 0x87b3
movq %r15, %rdi
callq 0x3200
movq %r15, %rdi
movl %eax, %esi
movl $0x3a, %edx
movl $0x5f, %ecx
callq 0x87b3
movl %r14d, (%rsp)
leaq 0x1694e(%rip), %r14     # 0x27db0
leaq 0x9a23(%rip), %rdx      # 0x1ae8c
movq %r14, %rdi
movl $0x200, %esi            # imm = 0x200
movq %rbx, %rcx
movq %r15, %r8
movl %ebp, %r9d
xorl %eax, %eax
callq 0xa0ca
movq %r14, %rax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: rTempName
char *rTempName(char *dir, char *base, char *suffix)
/* Make a temp name that's almost certainly unique. */
{
char *x;
static char fileName[PATH_LEN];
int i;
char *lastSlash = (lastChar(dir) == '/' ? "" : "/");
for (i=0;;++i)
    {
    x = semiUniqName(base);
    safef(fileName, sizeof(fileName), "%s%s%s%d%s",
    	dir, lastSlash, x, i, suffix);
    if (!fileExists(fileName))
        break;
    }
return fileName;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x8325
cmpb $0x2f, %al
leaq 0x881e(%rip), %rax      # 0x19cd2
leaq 0x9a4c(%rip), %r12      # 0x1af07
cmoveq %rax, %r12
leaq 0x16aea(%rip), %r13     # 0x27fb0
xorl %ebp, %ebp
movq %r14, %rdi
callq 0x113c8
movq %r13, %rdi
movl $0x200, %esi            # imm = 0x200
leaq 0x99b9(%rip), %rdx      # 0x1ae98
movq %r15, %rcx
movq %r12, %r8
leaq 0x168c4(%rip), %r9      # 0x27db0
xorl %eax, %eax
pushq %rbx
pushq %rbp
callq 0xa0ca
addq $0x10, %rsp
movq %r13, %rdi
callq 0x9efa
incl %ebp
testl %eax, %eax
jne 0x114c8
leaq 0x16aa2(%rip), %rax     # 0x27fb0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: getUser
char *getUser()
/* Get user name */
{
uid_t uid = geteuid();
struct passwd *pw = getpwuid(uid);
if (pw == NULL)
    errnoAbort("getUser: can't get user name for uid %d", (int)uid);
return pw->pw_name;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x3310
movl %eax, %ebx
movl %eax, %edi
callq 0x31e0
movq %rax, %r14
testq %rax, %rax
jne 0x1174d
leaq 0x97e7(%rip), %rdi      # 0x1af2b
movl %ebx, %esi
xorl %eax, %eax
callq 0xb7f4
movq (%r14), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: mustFork
int mustFork()
/* Fork or abort. */
{
int childId = fork();
if (childId == -1)
    errnoAbort("mustFork: Unable to fork");
return childId;
}

// Assembly:
pushq %rbx
callq 0x3750
movl %eax, %ebx
cmpl $-0x1, %eax
jne 0x11773
leaq 0x97e7(%rip), %rdi      # 0x1af53
xorl %eax, %eax
callq 0xb7f4
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: rawKeyIn
int rawKeyIn()
/* Read in an unbuffered, unechoed character from keyboard. */
{
struct termios attr;
tcflag_t old;
char c;

/* Set terminal to non-echoing non-buffered state. */
if (tcgetattr(STDIN_FILENO, &attr) != 0)
    errAbort("Couldn't do tcgetattr");
old = attr.c_lflag;
attr.c_lflag &= ~ICANON;
attr.c_lflag &= ~ECHO;
if (tcsetattr(STDIN_FILENO, TCSANOW, &attr) == -1)
    errAbort("Couldn't do tcsetattr");

/* Read one byte */
if (read(STDIN_FILENO,&c,1) != 1)
   errnoAbort("rawKeyIn: I/O error");

/* Put back terminal to how it was. */
attr.c_lflag = old;
if (tcsetattr(STDIN_FILENO, TCSANOW, &attr) == -1)
    errAbort("Couldn't do tcsetattr2");
return c;
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
leaq 0x4(%rsp), %rsi
xorl %edi, %edi
callq 0x3620
testl %eax, %eax
je 0x1179a
leaq 0x97d9(%rip), %rdi      # 0x1af6c
xorl %eax, %eax
callq 0xb6c8
leaq 0x4(%rsp), %rdx
movl 0xc(%rdx), %ebx
movl %ebx, %eax
andl $-0xb, %eax
movl %eax, 0xc(%rdx)
xorl %edi, %edi
xorl %esi, %esi
callq 0x3630
cmpl $-0x1, %eax
jne 0x117c6
leaq 0x97c3(%rip), %rdi      # 0x1af82
xorl %eax, %eax
callq 0xb6c8
leaq 0x3(%rsp), %rsi
movl $0x1, %edx
xorl %edi, %edi
callq 0x33d0
cmpq $0x1, %rax
je 0x117eb
leaq 0x97b4(%rip), %rdi      # 0x1af98
xorl %eax, %eax
callq 0xb7f4
leaq 0x4(%rsp), %rdx
movl %ebx, 0xc(%rdx)
xorl %edi, %edi
xorl %esi, %esi
callq 0x3630
cmpl $-0x1, %eax
jne 0x1180f
leaq 0x97a4(%rip), %rdi      # 0x1afac
xorl %eax, %eax
callq 0xb6c8
movsbl 0x3(%rsp), %eax
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: vaDumpStack
void vaDumpStack(char *format, va_list args)
/* debugging function to run the pstack program on the current process. In
 * prints a message, following by a new line, and then the stack track.  Just
 * prints errors to stderr rather than aborts. For debugging purposes
 * only.  */
{
static boolean inDumpStack = FALSE;  // don't allow re-entry if called from error handler
if (inDumpStack)
    return;
inDumpStack = TRUE;

fflush(stdout);  // clear buffer before forking
vfprintf(stderr, format, args);
fputc('\n', stderr);
fflush(stderr);
pid_t ppid = getpid();
pid_t pid = fork();
if (pid < 0)
    {
    perror("can't fork pstack");
    return;
    }
if (pid == 0)
    execPStack(ppid);
int wstat;
if (waitpid(pid, &wstat, 0) < 0)
    perror("waitpid on pstack failed");
else
    {
    if (WIFEXITED(wstat))
        {
        if (WEXITSTATUS(wstat) != 0)
            fprintf(stderr, "pstack failed\n");
        }
    else if (WIFSIGNALED(wstat))
        fprintf(stderr, "pstack signaled %d\n", WTERMSIG(wstat));
    }
inDumpStack = FALSE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
cmpb $0x0, 0x16946(%rip)     # 0x281b0
je 0x11877
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %rbx
movq %rdi, %r14
movb $0x1, 0x1692c(%rip)     # 0x281b0
movq 0x1573d(%rip), %rax     # 0x26fc8
movq (%rax), %rdi
callq 0x3520
movq 0x1575e(%rip), %r15     # 0x26ff8
movq (%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3670
movq (%r15), %rsi
movl $0xa, %edi
callq 0x33a0
movq (%r15), %rdi
callq 0x3520
callq 0x31b0
movl %eax, %ebp
callq 0x3750
testl %eax, %eax
js 0x119a4
movl %eax, %ebx
jne 0x11950
movslq %ebp, %rcx
leaq 0x9794(%rip), %rdx      # 0x1b073
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movl $0x20, %esi
xorl %eax, %eax
callq 0xa0ca
leaq 0x96e9(%rip), %rax      # 0x1afe3
movq %rax, (%rsp)
movq %r14, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x2, %edi
movl $0x1, %esi
callq 0x3240
testl %eax, %eax
jns 0x1192d
leaq 0x9751(%rip), %rdi      # 0x1b077
xorl %eax, %eax
callq 0xb6c8
leaq 0x96af(%rip), %rdi      # 0x1afe3
movq %rsp, %r14
movq %r14, %rsi
callq 0x3690
movq (%r14), %rsi
leaq 0x973a(%rip), %rdi      # 0x1b083
xorl %eax, %eax
callq 0xb6c8
leaq 0x20(%rsp), %rsi
movl %ebx, %edi
xorl %edx, %edx
callq 0x3610
testl %eax, %eax
js 0x119ba
movl 0x20(%rsp), %eax
movl %eax, %edx
andl $0x7f, %edx
je 0x11991
movl %edx, %eax
shll $0x18, %eax
addl $0x1000000, %eax        # imm = 0x1000000
cmpl $0x2000000, %eax        # imm = 0x2000000
jl 0x11998
movq (%r15), %rdi
leaq 0x968a(%rip), %rsi      # 0x1b012
xorl %eax, %eax
callq 0x3470
jmp 0x11998
testl $0xff00, %eax           # imm = 0xFF00
jne 0x119c8
movb $0x0, 0x16811(%rip)     # 0x281b0
jmp 0x1186c
leaq 0x962d(%rip), %rdi      # 0x1afd8
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3640
leaq 0x9629(%rip), %rdi      # 0x1afea
callq 0x3640
jmp 0x11998
callq 0x380f
jmp 0x11998
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/osunix.c
// Function: maybeTouchFile
boolean maybeTouchFile(char *fileName)
/* If file exists, set its access and mod times to now.  If it doesn't exist, create it.
 * Return FALSE if we have a problem doing so (e.g. when qateam is gdb'ing and code tries 
 * to touch some file owned by www). */
{
if (fileExists(fileName))
    {
    struct utimbuf ut;
    ut.actime = ut.modtime = clock1();
    int ret = utime(fileName, &ut);
    if (ret != 0)
	{
	warn("utime(%s) failed (ownership?)", fileName);
	return FALSE;
	}
    }
else
    {
    FILE *f = fopen(fileName, "w");
    if (f == NULL)
	return FALSE;
    else
	carefulClose(&f);
    }
return TRUE;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r14
callq 0x9efa
testl %eax, %eax
je 0x11aa9
xorl %ebx, %ebx
movq %rsp, %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x32d0
movq (%r15), %rax
leaq 0x10(%rsp), %rsi
movq %rax, 0x8(%rsi)
movq %rax, (%rsi)
movq %r14, %rdi
callq 0x3050
testl %eax, %eax
je 0x11ac9
leaq 0x9589(%rip), %rdi      # 0x1b026
movq %r14, %rsi
xorl %eax, %eax
callq 0xb41e
jmp 0x11ad2
leaq 0x7f83(%rip), %rsi      # 0x19a33
movq %r14, %rdi
callq 0x3480
movq %rax, (%rsp)
testq %rax, %rax
je 0x11ad0
movq %rsp, %rdi
callq 0x99bb
movl $0x1, %ebx
jmp 0x11ad2
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/pipeline.c
// Function: pipelineFree
void pipelineFree(struct pipeline **plPtr)
/* free a pipeline object */
{
struct pipeline *pl = *plPtr;
if (pl != NULL)
    {
    struct plProc *proc = pl->procs;
    while (proc != NULL)
        {
        struct plProc *delProc = proc;
        proc = proc->next;
        plProcFree(delProc);
        }
    freez(&pl->procName);
    freez(&pl->stdioBuf);
    freez(plPtr);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x11bd1
movq %rdi, %rbx
movq (%r14), %r15
testq %r15, %r15
je 0x11bab
movq (%r15), %r12
movq 0x10(%r15), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x11b93
movl $0x8, %r13d
callq 0xeebc
movq 0x10(%r15), %rax
movq (%rax,%r13), %rdi
addq $0x8, %r13
testq %rdi, %rdi
jne 0x11b7d
movq %rax, %rdi
callq 0xeebc
movq %r15, %rdi
callq 0xeebc
movq %r12, %r15
testq %r12, %r12
jne 0x11b68
leaq 0x10(%r14), %rdi
callq 0xeecc
addq $0x28, %r14
movq %r14, %rdi
callq 0xeecc
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xeecc
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/pipeline.c
// Function: pipelineOpenFd
struct pipeline *pipelineOpenFd(char ***cmds, unsigned opts,
                                int otherEndFd, int stderrFd)
/* Create a pipeline from an array of commands.  See pipeline.h for
 * full documentation. */
{
struct pipeline *pl;

checkOpts(opts);
pl = pipelineNew(cmds, opts);
if (opts & pipelineRead)
    pipelineStartRead(pl, otherEndFd, stderrFd, NULL, 0);
else
    pipelineStartWrite(pl, otherEndFd, stderrFd);
return pl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %rbx
movl %esi, %edi
callq 0x11c58
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11c90
movq %rax, %rbx
movq %rax, %rdi
testb $0x1, %r15b
jne 0x11c3b
addq $0x18, %rdi
callq 0x12382
leaq 0x4(%rsp), %r15
movl %eax, (%r15)
movq %rbx, %rdi
movl %eax, %esi
movl %r14d, %edx
movl %ebp, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x123b6
movq %r15, %rdi
callq 0x11f36
jmp 0x11c4a
movl %r14d, %esi
movl %ebp, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x11dc6
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/pipeline.c
// Function: checkOpts
static void checkOpts(unsigned opts)
/* check option set for consistency */
{
if (((opts & (pipelineRead|pipelineWrite)) == 0)
    || ((opts & (pipelineRead|pipelineWrite)) == (pipelineRead|pipelineWrite)))
    errAbort("must specify one of pipelineRead or pipelineWrite to pipelineOpen");
if ((opts & pipelineAppend) && ((opts & pipelineWrite) == 0))
    errAbort("pipelineAppend is valid only in conjunction with pipelineWrite");
}

// Assembly:
pushq %rbx
movl %edi, %ebx
movl %edi, %eax
andl $0x3, %eax
cmpl $0x3, %eax
je 0x11c69
testl %eax, %eax
jne 0x11c77
leaq 0x953b(%rip), %rdi      # 0x1b1ab
xorl %eax, %eax
callq 0xb6c8
andl $0x12, %ebx
cmpl $0x10, %ebx
jne 0x11c8e
leaq 0x9567(%rip), %rdi      # 0x1b1ed
xorl %eax, %eax
popq %rbx
jmp 0xb6c8
popq %rbx
retq