LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/bytecd.c
// Function: checkCommand
void checkCommand(ccInt theCmd)      // checks bread-and-butter operators
{
    if (theCmd == define_equate)  pcCodePtr++;
    if ((theCmd == code_number) || (theCmd == substitute_code))  {
        if ((rightArgs[theCmd] != no_arg) && (errCode == passed))  checkBytecodeArg(rightArgs[theCmd]);
        if ((leftArgs[theCmd] != no_arg) && (errCode == passed))  checkBytecodeArg(leftArgs[theCmd]);     }
    else  {
        if ((leftArgs[theCmd] != no_arg) && (errCode == passed))  checkBytecodeArg(leftArgs[theCmd]);
        if ((rightArgs[theCmd] != no_arg) && (errCode == passed))  checkBytecodeArg(rightArgs[theCmd]);     }
}

// Assembly:
pushq %rbx
cmpl $0x8, %edi
jne 0x15e10
addq $0x4, 0xfa08(%rip)      # 0x25818
leal -0x25(%rdi), %ecx
movl 0xf95f(%rip), %eax      # 0x25778
cmpl $0x1, %ecx
ja 0x15e4b
testl %eax, %eax
sete %al
movl %edi, %ebx
leaq 0xda04(%rip), %rcx      # 0x23830
movsbl (%rbx,%rcx), %edi
cmpl $0x5, %edi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x15e42
callq 0x15da6
leaq 0xda27(%rip), %rax      # 0x23870
jmp 0x15e77
testl %eax, %eax
sete %al
movslq %edi, %rbx
leaq 0xda16(%rip), %rcx      # 0x23870
movsbl (%rbx,%rcx), %edi
cmpl $0x5, %edi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x15e70
callq 0x15da6
leaq 0xd9b9(%rip), %rax      # 0x23830
movb (%rbx,%rax), %al
cmpb $0x5, %al
je 0x15e90
cmpl $0x0, 0xf8f3(%rip)      # 0x25778
jne 0x15e90
movsbl %al, %edi
popq %rbx
jmp 0x15da6
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/bytecd.c
// Function: checkInteger
void checkInteger(ccInt theCmd)          // checks commands that have integer constants
{
    pcCodePtr++;
    if (pcCodePtr >= endCodePtr)  {  pcCodePtr = endCodePtr;  setError(code_overflow_err, pcCodePtr);  }
    
    if ((leftArgs[theCmd] != no_arg) && (errCode == passed))  checkBytecodeArg(leftArgs[theCmd]);
    if ((rightArgs[theCmd] != no_arg) && (errCode == passed))  checkBytecodeArg(rightArgs[theCmd]);
}

// Assembly:
pushq %rbx
movl %edi, %ebx
movq 0xf90f(%rip), %rax      # 0x25818
addq $0x4, %rax
movq %rax, 0xf904(%rip)      # 0x25818
movq 0xf90d(%rip), %rsi      # 0x25828
cmpq %rsi, %rax
jb 0x15f31
movq %rsi, 0xf8f1(%rip)      # 0x25818
movl $0x13, %edi
callq 0xd1a9
movslq %ebx, %rbx
leaq 0xd935(%rip), %rax      # 0x23870
movsbl (%rbx,%rax), %edi
cmpl $0x5, %edi
je 0x15f52
cmpl $0x0, 0xf82d(%rip)      # 0x25778
jne 0x15f52
callq 0x15da6
leaq 0xd8d7(%rip), %rax      # 0x23830
movsbl (%rbx,%rax), %edi
cmpl $0x5, %edi
je 0x15f71
cmpl $0x0, 0xf80f(%rip)      # 0x25778
jne 0x15f71
popq %rbx
jmp 0x15da6
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/bytecd.c
// Function: checkString
void checkString(ccInt theCmd)    // checks inlined strings
{
    ccInt sizeofStrings = *pcCodePtr;
    if (sizeofStrings < 0)  {  setError(illegal_command_err, pcCodePtr);  return;  }
    
    sizeofStrings += align(sizeofStrings);
    
    pcCodePtr++;
    
    if (pcCodePtr + (ccInt) ceil(1.*sizeofStrings/sizeof(ccInt)) >= endCodePtr)      // step over the width of the string
        {  pcCodePtr = endCodePtr;  setError(code_overflow_err, pcCodePtr);  return;  }
    pcCodePtr += (ccInt) ceil(1.*sizeofStrings/sizeof(ccInt));
}

// Assembly:
pushq %rbx
movq 0xf86d(%rip), %rsi      # 0x25818
movl (%rsi), %ebx
testl %ebx, %ebx
js 0x16000
movl %ebx, %edi
callq 0xd936
addl %ebx, %eax
movq 0xf857(%rip), %rbx      # 0x25818
leaq 0x4(%rbx), %rcx
movq %rcx, 0xf84c(%rip)      # 0x25818
cvtsi2sd %eax, %xmm0
mulsd 0x5040(%rip), %xmm0     # 0x1b018
callq 0x8070
cvttsd2si %xmm0, %eax
cltq
leaq (%rbx,%rax,4), %rax
addq $0x4, %rax
movq 0xf836(%rip), %rsi      # 0x25828
cmpq %rsi, %rax
jae 0x16007
movq %rax, 0xf81a(%rip)      # 0x25818
popq %rbx
retq
movl $0x12, %edi
jmp 0x16013
movq %rsi, 0xf80a(%rip)      # 0x25818
movl $0x13, %edi
popq %rbx
jmp 0xd1a9
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/bytecd.c
// Function: checkJump
void checkJump(ccInt theCmd)     // cheks conditional/unconditional jumps
{
    ccInt rtrn, jumpOffset = *pcCodePtr;
    
    if (pcCodePtr + jumpOffset >= endCodePtr)  {  setError(bad_jump_err, pcCodePtr);  return;  }
    
    
        // Add the jump position to checkBytecode()'s jumpList.
    
    rtrn = addElements(&jumpList, 1, ccFalse);
    if (rtrn != passed)  {  setError(out_of_memory_err, pcCodePtr);  return;  }
    rtrn = addElements(&jumpFromList, 1, ccFalse);
    if (rtrn != passed)  {  setError(out_of_memory_err, pcCodePtr);  return;  }
    *(ccInt **) findElement(&jumpList, jumpList.elementNum) = pcCodePtr + jumpOffset;
    *(ccInt **) findElement(&jumpFromList, jumpFromList.elementNum) = pcCodePtr;
    
    pcCodePtr++;
    if (pcCodePtr >= endCodePtr)  {  pcCodePtr = endCodePtr;  setError(code_overflow_err, pcCodePtr);  return;  }
    
    if ((rightArgs[theCmd] != no_arg) && (errCode == passed))  checkBytecodeArg(rightArgs[theCmd]);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0xf7ef(%rip), %rsi      # 0x25818
movslq (%rsi), %r14
leaq (%rsi,%r14,4), %rax
cmpq 0xf7f1(%rip), %rax      # 0x25828
jae 0x1605b
movl %edi, %ebx
leaq 0xf946(%rip), %rdi      # 0x25988
movl $0x1, %esi
xorl %edx, %edx
callq 0x8b6a
testl %eax, %eax
je 0x16062
movq 0xf7bf(%rip), %rsi      # 0x25818
jmp 0x16080
movl $0x15, %edi
jmp 0x16085
leaq 0xf93f(%rip), %rdi      # 0x259a8
movl $0x1, %esi
xorl %edx, %edx
callq 0x8b6a
movq 0xf79c(%rip), %rsi      # 0x25818
testl %eax, %eax
je 0x16091
movl $0x1, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xd1a9
leaq (%rsi,%r14,4), %r14
movl 0xf8ed(%rip), %esi      # 0x25988
leaq 0xf8e6(%rip), %rdi      # 0x25988
callq 0x90da
movq %r14, (%rax)
movq 0xf767(%rip), %r14      # 0x25818
movl 0xf8f1(%rip), %esi      # 0x259a8
leaq 0xf8ea(%rip), %rdi      # 0x259a8
callq 0x90da
movq %r14, (%rax)
movq 0xf74b(%rip), %rax      # 0x25818
addq $0x4, %rax
movq %rax, 0xf740(%rip)      # 0x25818
movq 0xf749(%rip), %rsi      # 0x25828
cmpq %rsi, %rax
jae 0x1610c
movslq %ebx, %rax
leaq 0xd742(%rip), %rcx      # 0x23830
movsbl (%rax,%rcx), %edi
cmpl $0x5, %edi
je 0x1611d
cmpl $0x0, 0xf67a(%rip)      # 0x25778
jne 0x1611d
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x15da6
movq %rsi, 0xf705(%rip)      # 0x25818
movl $0x13, %edi
jmp 0x16085
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/bytecd.c
// Function: checkIndices
void checkIndices(ccInt theCmd)     // checks array operators [] of various sorts
{
    if (theCmd == type_array)  checkBytecodeArg(data_arg);
    if ((leftArgs[theCmd] != no_arg) && (errCode == passed))  checkBytecodeArg(leftArgs[theCmd]);
    if ((rightArgs[theCmd] != no_arg) && (errCode == passed))  checkBytecodeArg(rightArgs[theCmd]);
    
    if (theCmd != type_array)  {
        checkBytecodeArg(data_arg);
        if (((theCmd == step_to_indices) || (theCmd == insert_indices)) && (errCode == passed))  {
            checkBytecodeArg(data_arg);     }   }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
cmpl $0x2e, %edi
jne 0x1613a
movl $0x2, %edi
callq 0x15da6
movslq %ebx, %r14
leaq 0xd72c(%rip), %rax      # 0x23870
movsbl (%r14,%rax), %edi
cmpl $0x5, %edi
je 0x1615c
cmpl $0x0, 0xf623(%rip)      # 0x25778
jne 0x1615c
callq 0x15da6
leaq 0xd6cd(%rip), %rax      # 0x23830
movsbl (%r14,%rax), %edi
cmpl $0x5, %edi
je 0x1617b
cmpl $0x0, 0xf604(%rip)      # 0x25778
jne 0x1617b
callq 0x15da6
cmpl $0x2e, %ebx
jne 0x16188
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x2, %edi
callq 0x15da6
addl $-0xd, %ebx
testl $0xfffffffb, %ebx       # imm = 0xFFFFFFFB
jne 0x16180
cmpl $0x0, 0xf5d4(%rip)      # 0x25778
jne 0x16180
movl $0x2, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x15da6
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/bytecd.c
// Function: runBytecode
void runBytecode()
{
    while ((*pcCodePtr != end_of_script) && (*pcCodePtr != code_marker))   {
        callSentenceStartFunction();
        if (errCode != passed)  return;         }
    
    pcCodePtr++;         // over the 0 or code marker
}

// Assembly:
pushq %rbx
leaq 0xe1c0(%rip), %rbx      # 0x24390
movq 0xf641(%rip), %rax      # 0x25818
movslq (%rax), %rcx
addq $0x4, %rax
testl $0xfffffffb, %ecx       # imm = 0xFFFFFFFB
je 0x161fb
movq %rax, 0xf62b(%rip)      # 0x25818
callq *(%rbx,%rcx,8)
cmpl $0x0, 0xf581(%rip)      # 0x25778
je 0x161d0
jmp 0x16202
movq %rax, 0xf616(%rip)      # 0x25818
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/bytecd.c
// Function: loadStringRegister
void loadStringRegister(variable *sourceVar, ccInt sourceOffset)
{
    window *stringCharsWindow = LL_member(sourceVar, sourceOffset + 1)->memberWindow;
    ccInt rtrn = resizeLinkedList(&stringRegister, stringCharsWindow->width, ccFalse);
    if (rtrn != passed)  setError(rtrn, pcCodePtr-1);
    
    copyElements(&(stringCharsWindow->variable_ptr->mem.data), stringCharsWindow->offset+1, &stringRegister, 1, stringRegister.elementNum);
}

// Assembly:
pushq %rbx
addq $0x10, %rdi
incl %esi
callq 0x911c
movq (%rax), %rbx
movl 0x1c(%rbx), %esi
leaq 0xf50a(%rip), %rdi      # 0x257d8
xorl %edx, %edx
callq 0x8b7e
testl %eax, %eax
je 0x162eb
movq 0xf538(%rip), %rsi      # 0x25818
addq $-0x4, %rsi
movl %eax, %edi
callq 0xd1a9
movq 0x10(%rbx), %rdi
addq $0x10, %rdi
movl 0x18(%rbx), %esi
incl %esi
movl 0xf4d9(%rip), %r8d      # 0x257d8
leaq 0xf4d2(%rip), %rdx      # 0x257d8
movl $0x1, %ecx
popq %rbx
jmp 0x8821
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: cclib_load
void cclib_load()
{
    window *fileNameWindow;
    linkedlist *fileNameLL;
    ccInt rtrn;
    char *fileString;
    
    
        // get the name of the file (arg 1)
    
    if (numBIF_args() != 1)  {  setError(wrong_argument_count_err, pcCodePtr-1);  return;  }
    
    fileNameWindow = getBIFstringArg(1);
    if (errCode != passed)  return;
    fileNameLL = &(fileNameWindow->variable_ptr->mem.data);
    
    
        // copy the file name, plus a null terminator, into a separate buffer
    
    fileString = (char *) malloc(fileNameWindow->width+1);
    if (fileString == NULL)  {  setError(out_of_memory_err, pcCodePtr-1);  return;  }
    getElements(fileNameLL, fileNameWindow->offset+1, fileNameWindow->width, fileString);
    fileString[fileNameWindow->width] = 0;
    
    
        // try to open the file; throw an error if unsuccessful
    
    rtrn = loadFile(fileString, &stringRegister, ccFalse);
    if (rtrn != passed)  setError(rtrn, pcCodePtr-1);
    
    free((void *) fileString);      // clean up
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
callq 0x1926a
cmpl $0x1, %eax
jne 0x17981
movl $0x1, %edi
callq 0x19452
leaq 0xddf0(%rip), %r13      # 0x25760
cmpl $0x0, 0x18(%r13)
je 0x179a6
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xddd8(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x2d, %edi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xd1a9
movq %rax, %r14
movq 0x10(%rax), %r12
movslq 0x1c(%rax), %r15
leaq 0x1(%r15), %rdi
callq 0x81d0
testq %rax, %rax
je 0x17a17
movq %rax, %rbx
addq $0x10, %r12
movl 0x18(%r14), %esi
incl %esi
movq %r12, %rdi
movl %r15d, %edx
movq %rax, %rcx
callq 0x8fee
movslq 0x1c(%r14), %rax
movb $0x0, (%rbx,%rax)
leaq 0x78(%r13), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x19507
testl %eax, %eax
je 0x17a06
movq 0xb8(%r13), %rsi
addq $-0x4, %rsi
movl %eax, %edi
callq 0xd1a9
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x81c0
movq 0xb8(%r13), %rsi
addq $-0x4, %rsi
movl $0x1, %edi
jmp 0x17998
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: cclib_input
void cclib_input()
{
    ccInt counter, bytesRead, rtrn;
    const ccInt fileReadBufferSize = 1000;
    char charBuffer[1001], *readRetrn;
    ccBool done;
    
    if (numBIF_args() != 0)  {  cclib_print();  }
    
    rtrn = resizeLinkedList(&stringRegister, 0, ccFalse);
    if (rtrn != passed)  {  setError(out_of_memory_err, pcCodePtr-1);  return;  }
    
    
        // loop until all of the data has been read
    
    done = ccFalse;
    do  {
        
            // load the data into the inlined buffer (on the stack)
        
        bytesRead = fileReadBufferSize;
        readRetrn = fgets(charBuffer, fileReadBufferSize+1, stdin);
        if (readRetrn == NULL)  {  setError(IO_error, pcCodePtr-1);  break;  }
        for (counter = 0; counter < fileReadBufferSize; counter++)  {
            if (*(charBuffer+counter) == '\n')  {
                done = ccTrue;
                bytesRead = counter;    // don't include the terminator
                break;
        }   }
        
        
            // copy from the buffer into the string register
        
        rtrn = addElements(&stringRegister, bytesRead, ccFalse);         // will be contiguous if spareRoom = 0
        if (rtrn != passed)  {  setError(out_of_memory_err, pcCodePtr-1);  return;  }
        setElements(&stringRegister, stringRegister.elementNum-bytesRead+1, stringRegister.elementNum, charBuffer);
    }  while (!done);
    
    defragmentLinkedList(&stringRegister);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3f8, %rsp            # imm = 0x3F8
callq 0x1926a
testl %eax, %eax
je 0x17bd0
callq 0x17ccd
leaq 0xdb89(%rip), %r12      # 0x25760
leaq 0x78(%r12), %rbx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x8b7e
testl %eax, %eax
je 0x17c13
movq 0xb8(%r12), %rsi
addq $-0x4, %rsi
movl $0x1, %edi
addq $0x3f8, %rsp            # imm = 0x3F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xd1a9
xorl %ebp, %ebp
movq 0xa3b4(%rip), %r13      # 0x21fd0
movq %rsp, %r14
movq (%r13), %rdx
movq %r14, %rdi
movl $0x3e9, %esi            # imm = 0x3E9
callq 0x8210
testq %rax, %rax
je 0x17c85
xorl %r15d, %r15d
cmpb $0xa, (%rsp,%r15)
je 0x17c53
incq %r15
cmpq $0x3e8, %r15            # imm = 0x3E8
jne 0x17c38
movl $0x3e8, %r15d           # imm = 0x3E8
jmp 0x17c56
movb $0x1, %bpl
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x8b6a
testl %eax, %eax
jne 0x17ca5
movl 0x78(%r12), %edx
movl %edx, %esi
subl %r15d, %esi
incl %esi
movq %rbx, %rdi
movq %r14, %rcx
callq 0x8f0d
testb %bpl, %bpl
je 0x17c1f
jmp 0x17c9b
movq 0xb8(%r12), %rsi
addq $-0x4, %rsi
movl $0x31, %edi
callq 0xd1a9
movq %rbx, %rdi
callq 0x8bb7
jmp 0x17cbb
movq 0xb8(%r12), %rsi
addq $-0x4, %rsi
movl $0x1, %edi
callq 0xd1a9
addq $0x3f8, %rsp            # imm = 0x3F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: cclib_top
void cclib_top()
{
    view viewToTop;
    
    if (numBIF_args() != 1)  {  setError(wrong_argument_count_err, pcCodePtr-1);  return;  }
    
    
        // get the argument variable
    
    viewToTop.windowPtr = getBIFmember(1);
    if (viewToTop.windowPtr == NULL)  {  setError(void_member_err, pcCodePtr-1);  return;  }
    if (viewToTop.windowPtr->variable_ptr->type < string_type)  {  setError(not_composite_err, pcCodePtr-1);  return;  }
    viewToTop.offset = viewToTop.windowPtr->offset;
    
    intRegister = numMemberIndices(&viewToTop);
}

// Assembly:
subq $0x18, %rsp
callq 0x1926a
cmpl $0x1, %eax
jne 0x18737
movl $0x1, %edi
callq 0x192b4
movq %rax, (%rsp)
testq %rax, %rax
je 0x18750
movq 0x10(%rax), %rcx
cmpl $0x3, 0xc0(%rcx)
jg 0x18770
leaq 0xd03b(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x24, %edi
jmp 0x18767
leaq 0xd022(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x2d, %edi
jmp 0x18767
leaq 0xd009(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x1a, %edi
addq $0x18, %rsp
jmp 0xd1a9
movl 0x18(%rax), %eax
movq %rsp, %rdi
movl %eax, 0x8(%rdi)
callq 0xf172
leaq 0xcfdb(%rip), %rcx      # 0x25760
movl %eax, 0x6c(%rcx)
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: cclib_size
void cclib_size()
{
    view viewToSize;
    ccInt dataSize = 0, sizeofStrings = 0, ssMode, numArgs = numBIF_args();
    ccBool trueSize = ccFalse;
    
    
        // read in the arguments
        // optional arg 2:  whether or not to double-count overlapping memory
    
    if ((numArgs != 1) && (numArgs != 2))  {  setError(wrong_argument_count_err, pcCodePtr-1);  return;  }
    
    viewToSize.windowPtr = getBIFmember(1);
    
    if (numArgs == 2)  {
        trueSize = getBIFboolArg(2);
        if (errCode != passed)  return;     }


        // calculate the size
    
    if (viewToSize.windowPtr != NULL)  {
        viewToSize.offset = viewToSize.windowPtr->offset;
        viewToSize.width = viewToSize.windowPtr->width;
        
        if (!trueSize)  sizeView(&viewToSize, &dataSize, &sizeofStrings);
        else  {
        for (ssMode = 1; ssMode <= 3; ssMode++)  {
            storageSizeView(&viewToSize, (void *) &dataSize, (void *) &ssMode);
        }}
        
        intRegister = dataSize+sizeofStrings;       }
    
    else  intRegister = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
xorl %eax, %eax
movl %eax, 0x4(%rsp)
movl %eax, 0xc(%rsp)
callq 0x1926a
movl %eax, %ebx
leal -0x3(%rbx), %eax
cmpl $-0x3, %eax
ja 0x187d6
leaq 0xcfa9(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x2d, %edi
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xd1a9
movl $0x1, %edi
callq 0x192b4
movq %rax, 0x10(%rsp)
xorl %ebp, %ebp
movl $0x0, %eax
cmpl $0x2, %ebx
jne 0x18808
movl $0x2, %edi
callq 0x195ff
leaq 0xcf5e(%rip), %rcx      # 0x25760
cmpl $0x0, 0x18(%rcx)
jne 0x1887f
movq 0x10(%rsp), %rcx
testq %rcx, %rcx
je 0x18875
movl 0x18(%rcx), %edx
movl %edx, 0x18(%rsp)
movl 0x1c(%rcx), %ecx
movl %ecx, 0x1c(%rsp)
testb %al, %al
je 0x18859
leaq 0x8(%rsp), %rbx
movl $0x1, (%rbx)
leaq 0x10(%rsp), %r14
leaq 0x4(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xd946
movl 0x8(%rsp), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x8(%rsp)
cmpl $0x3, %eax
jl 0x18839
jmp 0x1886d
leaq 0x10(%rsp), %rdi
leaq 0x4(%rsp), %rsi
leaq 0xc(%rsp), %rdx
callq 0xd661
movl 0xc(%rsp), %ebp
addl 0x4(%rsp), %ebp
leaq 0xcee4(%rip), %rax      # 0x25760
movl %ebp, 0x6c(%rax)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: doMath
void doMath(ccFloat(MathFunction)(ccFloat argument))
{
    if (numBIF_args() != 1)  {  setError(wrong_argument_count_err, pcCodePtr-1);  return;  }
    
    doubleRegister = getBIFnumArg(1, -DBL_MAX, DBL_MAX);
    if (errCode != passed)  return;
    
    doubleRegister = MathFunction(doubleRegister);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1926a
cmpl $0x1, %eax
jne 0x196d0
movsd 0x270e(%rip), %xmm0     # 0x1bda8
movsd 0x270e(%rip), %xmm1     # 0x1bdb0
movl $0x1, %edi
callq 0x19324
leaq 0xc0ad(%rip), %r14      # 0x25760
movsd %xmm0, 0x70(%r14)
cmpl $0x0, 0x18(%r14)
jne 0x196c8
callq *%rbx
movsd %xmm0, 0x70(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xc089(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x2d, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xd1a9
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: cclib_type
void cclib_type()
{
    window *hostWindow;
    ccInt numArgs = numBIF_args();


        // get the variable (arg 1)
    
    if ((numArgs < 1) || (numArgs > 2))  {  setError(wrong_argument_count_err, pcCodePtr-1);  return;  }
    hostWindow = getBIFmember(1);
    if (hostWindow == NULL)  {  setError(void_member_err, pcCodePtr-1);  return;  }
    
    
        // return the requested piece of information
    
    if (numArgs == 1)  intRegister = hostWindow->variable_ptr->type;
    
    else if (hostWindow->variable_ptr->type == composite_type)  {
        ccInt memberIndex = getBIFnumArg(2, 1., (ccFloat) hostWindow->variable_ptr->mem.members.elementNum);
        if (errCode == passed)  {
            intRegister = LL_member(hostWindow->variable_ptr, memberIndex)->type;
    }   }
    
    else  setError(not_composite_err, pcCodePtr-1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x1926a
movl %eax, %r14d
leal -0x3(%r14), %eax
cmpl $-0x3, %eax
ja 0x18dfc
leaq 0xc979(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x2d, %edi
jmp 0x18ea4
movl $0x1, %edi
callq 0x192b4
testq %rax, %rax
je 0x18e2a
movq %rax, %rbx
movq 0x10(%rax), %rax
movl 0xc0(%rax), %ecx
cmpl $0x1, %r14d
jne 0x18e43
leaq 0xc93b(%rip), %rax      # 0x25760
movl %ecx, 0x6c(%rax)
jmp 0x18e85
leaq 0xc92f(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x1a, %edi
jmp 0x18ea4
cmpl $0x5, %ecx
jne 0x18e8d
cvtsi2sdl 0x10(%rax), %xmm1
movsd 0x21b3(%rip), %xmm0     # 0x1b008
movl $0x2, %edi
callq 0x19324
leaq 0xc8fa(%rip), %r14      # 0x25760
cmpl $0x0, 0x18(%r14)
jne 0x18e85
cvttsd2si %xmm0, %esi
movq 0x10(%rbx), %rdi
addq $0x10, %rdi
callq 0x911c
movl 0x10(%rax), %eax
movl %eax, 0x6c(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xc8cc(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x24, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xd1a9
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: cclib_member_ID
void cclib_member_ID()
{
    window *hostWindow;
    ccInt memberIndex, memberNumber, entryOffset, rtrn;
    member *soughtMember;
    
    if (numBIF_args() != 2)  {  setError(wrong_argument_count_err, pcCodePtr-1);  return;  }
    
    
        // get the variable containing the member (arg 1)
    
    hostWindow = getBIFmember(1);
    if (hostWindow == NULL)  {  setError(void_member_err, pcCodePtr-1);  return;  }
    if (hostWindow->variable_ptr->type < composite_type)  {  setError(type_mismatch_err, pcCodePtr-1);  return;  }
    
    
        // get the member index -- arg 2
    
    memberIndex = (ccInt) getBIFnumArg(2, 1., (ccFloat) hostWindow->variable_ptr->mem.members.elementNum);
    if (errCode != passed)  return;
    rtrn = findMemberIndex(hostWindow->variable_ptr, 0, memberIndex, &soughtMember, &memberNumber, &entryOffset, ccFalse);
    if (rtrn != passed)  {  setError(rtrn, pcCodePtr-1);  return;  }
    
    
        // return the ID number
    
    intRegister = soughtMember->memberID;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
callq 0x1926a
cmpl $0x2, %eax
jne 0x18ef9
movl $0x1, %edi
callq 0x192b4
testq %rax, %rax
je 0x18f12
movq %rax, %rbx
movq 0x10(%rax), %rax
cmpl $0x4, 0xc0(%rax)
jg 0x18f35
leaq 0xc879(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x11, %edi
jmp 0x18f29
leaq 0xc860(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x2d, %edi
jmp 0x18f29
leaq 0xc847(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x1a, %edi
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0xd1a9
cvtsi2sdl 0x10(%rax), %xmm1
movsd 0x20c6(%rip), %xmm0     # 0x1b008
movl $0x2, %edi
callq 0x19324
leaq 0xc80d(%rip), %r14      # 0x25760
cmpl $0x0, 0x18(%r14)
jne 0x18fa3
cvttsd2si %xmm0, %edx
movq 0x10(%rbx), %rdi
movl $0x0, (%rsp)
leaq 0x8(%rsp), %rcx
leaq 0x14(%rsp), %r8
leaq 0x10(%rsp), %r9
xorl %esi, %esi
callq 0xf043
testl %eax, %eax
je 0x18f97
movq 0xb8(%r14), %rsi
addq $-0x4, %rsi
movl %eax, %edi
callq 0xd1a9
jmp 0x18fa3
movq 0x8(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x6c(%r14)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: springCleaning
void springCleaning()
{
    if (numBIF_args() == 0)  combVariables();
    
    else if (numBIF_args() == 1)  {
        window *theWindow = getBIFmember(1);
        ccInt loopMember;
        
        if (theWindow == NULL)  {  setError(void_member_err, pcCodePtr-1);  return;  }
        if (theWindow->variable_ptr->type != composite_type)  {  setError(not_composite_err, pcCodePtr-1);  return;  }
        
        for (loopMember = theWindow->variable_ptr->mem.members.elementNum; loopMember >= 1; loopMember--)  {
        if (LL_member(theWindow->variable_ptr, loopMember)->ifHidden)  {
            removeMember(theWindow->variable_ptr, loopMember);
            if (errCode != passed)  return;
    }   }}
    
    else  {  setError(wrong_argument_count_err, pcCodePtr-1);  return;  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
callq 0x1926a
testl %eax, %eax
je 0x1920a
callq 0x1926a
cmpl $0x1, %eax
jne 0x19213
movl $0x1, %edi
callq 0x192b4
testq %rax, %rax
je 0x1922c
movq %rax, %rbx
movq 0x10(%rax), %rax
cmpl $0x5, 0xc0(%rax)
jne 0x19245
movl 0x10(%rax), %ebp
testl %ebp, %ebp
jle 0x19265
leaq 0xc58d(%rip), %r14      # 0x25760
movq 0x10(%rbx), %rdi
addq $0x10, %rdi
movl %ebp, %esi
callq 0x911c
cmpb $0x0, 0x40(%rax)
je 0x19201
movq 0x10(%rbx), %rdi
movl %ebp, %esi
callq 0xf9cd
cmpl $0x0, 0x18(%r14)
jne 0x19265
cmpl $0x1, %ebp
jg 0x19206
jmp 0x19265
cmpl $0x2, %ebp
jl 0x19265
decl %ebp
jmp 0x191d3
popq %rbx
popq %r14
popq %rbp
jmp 0xf520
leaq 0xc546(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x2d, %edi
jmp 0x1925c
leaq 0xc52d(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x1a, %edi
jmp 0x1925c
leaq 0xc514(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x24, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0xd1a9
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: numBIF_args
ccInt numBIF_args()
{
    variable *BIFargsVariable = BIF_argsView.windowPtr->variable_ptr;
    ccInt counter, visibleMemberCounter = 0;
    
    for (counter = 1; counter <= BIFargsVariable->mem.members.elementNum; counter++)   {
    if (!(LL_member(BIFargsVariable, counter)->ifHidden))   {
        visibleMemberCounter++;
    }}
    
    return visibleMemberCounter;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
leaq 0xc4eb(%rip), %rax      # 0x25760
movq 0x178(%rax), %rax
movq 0x10(%rax), %rbx
cmpl $0x0, 0x10(%rbx)
jle 0x192ab
addq $0x10, %rbx
xorl %r14d, %r14d
xorl %ebp, %ebp
incl %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x911c
cmpb $0x1, 0x40(%rax)
adcl $0x0, %ebp
cmpl (%rbx), %r14d
jl 0x1928f
jmp 0x192ad
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: getBIFmember
window *getBIFmember(ccInt soughtMemberIndex)
{
    variable *BIFargsVariable = BIF_argsView.windowPtr->variable_ptr;
    ccInt counter, memberCounter = 0;
    member *loopMember;
    
    for (counter = 1; counter <= BIFargsVariable->mem.members.elementNum; counter++)   {
        loopMember = LL_member(BIFargsVariable, counter);
        if (!loopMember->ifHidden)  {
            memberCounter++;
            if (memberCounter == soughtMemberIndex)  {
                if (loopMember->memberWindow == NULL)  return NULL;
                else if (loopMember->memberWindow->jamStatus == unjammed)  return NULL;
                else  return loopMember->memberWindow;
    }   }   }
    
    return NULL;    // should never happen
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0xc49d(%rip), %rax      # 0x25760
movq 0x178(%rax), %rax
movq 0x10(%rax), %r14
xorl %ebx, %ebx
cmpl $0x0, 0x10(%r14)
jle 0x19304
movl %edi, %ebp
addq $0x10, %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
incl %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x911c
cmpb $0x0, 0x40(%rax)
jne 0x192ff
incl %r12d
cmpl %ebp, %r12d
je 0x19310
cmpl (%r14), %r15d
jl 0x192e3
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq (%rax), %rax
xorl %ebx, %ebx
testq %rax, %rax
je 0x19304
cmpb $0x2, 0x20(%rax)
cmovneq %rax, %rbx
jmp 0x19304
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: getBIFnumArg
ccFloat getBIFnumArg(ccInt argNum, ccFloat argMin, ccFloat argMax)
{
    window *argWindow = getBIFmember(argNum);
    
    if (argWindow == NULL)  setError(void_member_err, pcCodePtr-1);
    else if ((argWindow->variable_ptr->type == bool_type) || (argWindow->variable_ptr->type > double_type))
        setError(not_a_number_err, pcCodePtr-1);
    else if (argWindow->width != 1)  setError(multiple_indices_not_allowed_err, pcCodePtr-1);
    
    else  {
        loadDoubleRegister(argWindow->variable_ptr, argWindow->offset);
        if (!((doubleRegister >= argMin) && (doubleRegister <= argMax)))  setError(out_of_range_err, pcCodePtr-1);     }
    
    return doubleRegister;
}

// Assembly:
subq $0x18, %rsp
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, 0x10(%rsp)
callq 0x192b4
testq %rax, %rax
je 0x1939b
movq 0x10(%rax), %rcx
movl 0xc0(%rcx), %edx
testl %edx, %edx
sete %sil
cmpl $0x4, %edx
setge %dl
orb %sil, %dl
movl $0x29, %edi
jne 0x193a0
movl $0x1f, %edi
cmpl $0x1, 0x1c(%rax)
jne 0x193a0
movl 0x18(%rax), %esi
movq %rcx, %rdi
callq 0x15822
leaq 0xc3e5(%rip), %rax      # 0x25760
movsd 0x70(%rax), %xmm0
ucomisd 0x10(%rsp), %xmm0
movl $0x2, %edi
jb 0x193a0
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x193b7
jmp 0x193a0
movl $0x1a, %edi
leaq 0xc3b9(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
callq 0xd1a9
leaq 0xc3a2(%rip), %rax      # 0x25760
movsd 0x70(%rax), %xmm0
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: getCompilerString
char *getCompilerString(window *stringsWindow, ccInt windowOffset, ccInt whichCommand)
{
    window *charsWindow = LL_member(stringsWindow->variable_ptr, windowOffset+whichCommand+1)->memberWindow;
    linkedlist *charsLL = &(charsWindow->variable_ptr->mem.data);
    
    char *stringCopy = (char *) malloc(charsWindow->width+1);
    if (stringCopy == NULL)  setError(out_of_memory_err, pcCodePtr-1);
    else  {
        getElements(charsLL, charsWindow->offset+1, charsWindow->offset+charsWindow->width, (void *) stringCopy);
        stringCopy[charsWindow->width] = 0;     }
    
    return stringCopy;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rdi
addq $0x10, %rdi
addl %edx, %esi
incl %esi
callq 0x911c
movq (%rax), %r12
movq 0x10(%r12), %r15
movslq 0x1c(%r12), %r14
leaq 0x1(%r14), %rdi
callq 0x81d0
movq %rax, %rbx
testq %rax, %rax
je 0x19427
addq $0x10, %r15
movl 0x18(%r12), %eax
leal 0x1(%rax), %esi
addl %eax, %r14d
movq %r15, %rdi
movl %r14d, %edx
movq %rbx, %rcx
callq 0x8fee
movslq 0x1c(%r12), %rax
movb $0x0, (%rbx,%rax)
jmp 0x19443
leaq 0xc332(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x1, %edi
callq 0xd1a9
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: getBIFstringArg
window *getBIFstringArg(ccInt argNum)
{
    window *argWindow = getBIFmember(argNum);
    variable *argVar;
    
    if (argWindow == NULL)  {  setError(void_member_err, pcCodePtr-1);  return NULL;  }
    argVar = argWindow->variable_ptr;
    
    if (argVar->type == string_type)  {
        if (argWindow->width != 1)  setError(multiple_indices_not_allowed_err, pcCodePtr-1);
        else  return LL_member(argVar, argWindow->offset+1)->memberWindow;     }
    
    else if ((argVar->type == array_type) && (argVar->arrayDepth == 1) && (argVar->eventualType == char_type))  {
        return LL_member(argVar, 1)->memberWindow;     }
    
    else if (argVar->type == char_type)  {
        return argWindow;     }
    
    else  setError(string_expected_err, pcCodePtr-1);
    
    return NULL;   
}

// Assembly:
pushq %rax
callq 0x192b4
testq %rax, %rax
je 0x1948b
movq 0x10(%rax), %rdi
movl 0xc0(%rdi), %ecx
cmpl $0x1, %ecx
je 0x19505
cmpl $0x6, %ecx
je 0x194a4
cmpl $0x4, %ecx
jne 0x194ce
cmpl $0x1, 0x1c(%rax)
jne 0x194e7
addq $0x10, %rdi
movl 0x18(%rax), %esi
incl %esi
jmp 0x194bf
leaq 0xc2ce(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x1a, %edi
jmp 0x194fe
cmpl $0x1, 0xc8(%rdi)
jne 0x194c9
cmpl $0x1, 0xc4(%rdi)
jne 0x194c9
addq $0x10, %rdi
movl $0x1, %esi
callq 0x911c
movq (%rax), %rax
jmp 0x19505
cmpl $0x1, %ecx
je 0x19505
leaq 0xc28b(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x25, %edi
jmp 0x194fe
leaq 0xc272(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x1f, %edi
callq 0xd1a9
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: loadFile
ccInt loadFile(char *fileString, linkedlist *textString, ccBool addFinalNull)
{
    ccInt fileSize, LLsize, bytesRead, rtrn;
    FILE *fileToRead;
    
    
        // try to open the file; throw an error if unsuccessful
    
    fileToRead = fopen(fileString, "rb");
    if (fileToRead == NULL)  return IO_error;
    
    
        // get the size of the file
    
    fseek(fileToRead, 0, SEEK_END);
    fileSize = (ccInt) ftell(fileToRead);
    rewind(fileToRead);
    
    
        // allocate memory and read the file
    
    LLsize = fileSize;
    if (addFinalNull)  LLsize++;
    rtrn = resizeLinkedList(textString, LLsize, ccFalse);
    if (rtrn == passed)  rtrn = defragmentLinkedList(textString);
    if (rtrn != passed)  return rtrn;
    
    if (fileSize > 0)    {
        bytesRead = (ccInt) fread(element(textString, 1), 1, (size_t) fileSize, fileToRead);
        if (bytesRead != fileSize)  {
            fclose(fileToRead);
            return IO_error;
    }   }
    
    rtrn = fclose(fileToRead);
    if (rtrn != 0)  rtrn = IO_error;
    
    if (addFinalNull)  *LL_Char(textString, LLsize) = 0;
    
    return rtrn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
leaq 0x28f6(%rip), %rsi      # 0x1be14
callq 0x81b0
movl $0x31, %r13d
testq %rax, %rax
je 0x195ed
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x8190
movq %r14, %rdi
callq 0x8030
movq %rax, %r12
movq %r14, %rdi
callq 0x8060
cmpb $0x1, %bpl
movl %r12d, %r15d
sbbl $-0x1, %r15d
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x8b7e
movl %eax, %r13d
testl %eax, %eax
jne 0x19581
movq %rbx, %rdi
callq 0x8bb7
movl %eax, %r13d
testl %r13d, %r13d
jne 0x195ed
testl %r12d, %r12d
jle 0x195b6
movq %rbx, %rdi
movl $0x1, %esi
callq 0x911c
movl %r12d, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl $0x1, %esi
movq %rax, %rdi
movq %r14, %rcx
callq 0x81f0
cmpl %r12d, %eax
jne 0x195df
movq %r14, %rdi
callq 0x8170
testl %eax, %eax
movl $0x31, %r13d
cmovel %eax, %r13d
testb %bpl, %bpl
je 0x195ed
movq %rbx, %rdi
movl %r15d, %esi
callq 0x911c
movb $0x0, (%rax)
jmp 0x195ed
movq %r14, %rdi
callq 0x8170
movl $0x31, %r13d
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: getBIFboolArg
ccBool getBIFboolArg(ccInt argNum)
{
    window *argWindow = getBIFmember(argNum);
    
    if (argWindow == NULL)  setError(void_member_err, pcCodePtr-1);
    else if (argWindow->variable_ptr->type != bool_type)  setError(type_mismatch_err, pcCodePtr-1);
    else if (argWindow->width != 1)  setError(multiple_indices_not_allowed_err, pcCodePtr-1);
    
    else  loadBoolRegister(argWindow->variable_ptr, argWindow->offset);
    
    return boolRegister;
}

// Assembly:
pushq %rax
callq 0x192b4
testq %rax, %rax
je 0x19630
movq 0x10(%rax), %rdi
cmpl $0x0, 0xc0(%rdi)
je 0x19649
leaq 0xc142(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x11, %edi
jmp 0x19670
leaq 0xc129(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x1a, %edi
jmp 0x19670
cmpl $0x1, 0x1c(%rax)
jne 0x19659
movl 0x18(%rax), %esi
callq 0x1623b
jmp 0x19675
leaq 0xc100(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x1f, %edi
callq 0xd1a9
leaq 0xc0e4(%rip), %rax      # 0x25760
movb 0x68(%rax), %al
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ciclib.c
// Function: writeBIFintArg
void writeBIFintArg(ccInt argNum, ccInt theNum)
{
    window *argWindow = getBIFmember(argNum);
    
    if (argWindow == NULL)  return;
    else if (argWindow->variable_ptr->type > double_type)  setError(type_mismatch_err, pcCodePtr-1);
    else if (argWindow->width != 1)  setError(multiple_indices_not_allowed_err, pcCodePtr-1);
    
    else  {
        doubleRegister = (ccFloat) theNum;
        saveDoubleRegister(argWindow->variable_ptr, argWindow->offset);   }
}

// Assembly:
pushq %rbx
movl %esi, %ebx
callq 0x192b4
testq %rax, %rax
je 0x1975b
movq 0x10(%rax), %rdi
cmpl $0x4, 0xc0(%rdi)
jl 0x1975d
leaq 0xc017(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x11, %edi
jmp 0x19793
popq %rbx
retq
cmpl $0x1, 0x1c(%rax)
jne 0x1977c
cvtsi2sd %ebx, %xmm0
leaq 0xbff2(%rip), %rcx      # 0x25760
movsd %xmm0, 0x70(%rcx)
movl 0x18(%rax), %esi
popq %rbx
jmp 0x1628e
leaq 0xbfdd(%rip), %rax      # 0x25760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
movl $0x1f, %edi
popq %rbx
jmp 0xd1a9
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/userfn.c
// Function: callMinMax
ccInt callMinMax(ccInt argc, char **argv)
{
    ccInt c1, listTop, *bestIdx, mult;
    ccFloat *theList, *bestValue;
    arg_info *argInfo = (arg_info *) argv[argc];
    
    getArgs(argc, argv, &theList, byValue(&mult), &bestIdx, &bestValue);
    listTop = argInfo[0].argIndices;
    
    *bestIdx = 1;
    *bestValue = mult * theList[0];
    
    for (c1 = 0; c1 < argInfo[0].argIndices; c1++)  {
    if (mult*theList[c1] > *bestValue)  {
        *bestIdx = c1 + 1;
        *bestValue = mult * theList[c1];
    }}
    
    return passed;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movslq %edi, %rdi
movq (%rsi,%rdi,8), %r12
leaq 0x18(%rsp), %r13
movq %r13, (%rsp)
leaq 0x20(%rsp), %rbx
leaq 0x14(%rsp), %r14
leaq 0x28(%rsp), %r15
movq %rbx, %rdx
xorl %ecx, %ecx
movq %r14, %r8
movq %r15, %r9
xorl %eax, %eax
callq 0x19adb
movq (%r15), %rax
movl $0x1, (%rax)
cvtsi2sdl (%r14), %xmm0
movq (%rbx), %rcx
mulsd (%rcx), %xmm0
movq (%r13), %rdx
movsd %xmm0, (%rdx)
cmpl $0x0, 0x4(%r12)
jle 0x19886
movsd (%rdx), %xmm0
xorl %esi, %esi
xorps %xmm2, %xmm2
cvtsi2sdl 0x14(%rsp), %xmm2
movsd (%rcx,%rsi,8), %xmm1
mulsd %xmm1, %xmm2
ucomisd %xmm0, %xmm2
jbe 0x19879
leal 0x1(%rsi), %edi
movl %edi, (%rax)
xorps %xmm0, %xmm0
cvtsi2sdl 0x14(%rsp), %xmm0
mulsd %xmm0, %xmm1
movsd %xmm1, (%rdx)
movapd %xmm1, %xmm0
incq %rsi
movslq 0x4(%r12), %rdi
cmpq %rdi, %rsi
jl 0x19847
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/userfn.c
// Function: callSum
ccInt callSum(ccInt argc, char **argv)
{
    ccInt c1;
    ccFloat *theList, *theSum;
    arg_info *argInfo = (arg_info *) argv[argc];
    
    getArgs(argc, argv, &theList, &theSum);
    
    *theSum = 0.;
    for (c1 = 0; c1 < argInfo[0].argIndices; c1++)  *theSum += theList[c1];
    
    return passed;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movslq %edi, %rdi
movq (%rsi,%rdi,8), %r14
leaq 0x8(%rsp), %rdx
leaq 0x10(%rsp), %rbx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x19adb
movq (%rbx), %rax
movq $0x0, (%rax)
movslq 0x4(%r14), %rcx
testq %rcx, %rcx
jle 0x198e7
movq 0x8(%rsp), %rdx
movsd (%rax), %xmm0
xorl %esi, %esi
addsd (%rdx,%rsi,8), %xmm0
movsd %xmm0, (%rax)
incq %rsi
cmpq %rsi, %rcx
jne 0x198d6
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/userfn.c
// Function: callMakeLinkList
ccInt callMakeLinkList(ccInt argc, char **argv)
{
    ccInt *linkList, firstIndex, direction, cl;
    ccFloat *sortingList;
    arg_info *argInfo = (arg_info *) argv[argc];
    
    getArgs(argc, argv, &sortingList, &linkList, byValue(&direction));
    
    for (cl = 0; cl < argInfo[0].argIndices; cl++)  linkList[cl] = -1;
    
    firstIndex = makeLinkList(0, argInfo[0].argIndices-1, direction, sortingList, linkList);
    
    return firstIndex;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movslq %edi, %rdi
movq (%rsi,%rdi,8), %rbx
leaq 0x18(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0xc(%rsp), %r9
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x19adb
movl 0x4(%rbx), %esi
testl %esi, %esi
jle 0x19937
movq 0x10(%rsp), %rax
xorl %ecx, %ecx
movl $0xffffffff, (%rax,%rcx,4) # imm = 0xFFFFFFFF
incq %rcx
movslq 0x4(%rbx), %rsi
cmpq %rsi, %rcx
jl 0x19924
decl %esi
movl 0xc(%rsp), %edx
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %r8
xorl %edi, %edi
callq 0x19c58
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/userfn.c
// Function: getArgs
void getArgs(ccInt argc, char **argv, ...)
{
    ccInt loopArg;
    va_list theArgs;
    char **nextarg;
    arg_info *myArgInfo = (arg_info *) argv[argc];
    
    va_start(theArgs, argv);
    for (loopArg = 0; loopArg < argc; loopArg++)  {
        nextarg = va_arg(theArgs, char **);
        if (nextarg != NULL)
            *nextarg = argv[loopArg];
        else  {
            nextarg = va_arg(theArgs, char **);
            if (nextarg == NULL)  {
                loopArg = ((ccInt) va_arg(theArgs, int)) - 1;
                if (loopArg < -1)  break;       }
            else  {
                size_t numBytes = (size_t) myArgInfo[loopArg].argIndices*typeSizes[myArgInfo[loopArg].argType];
                if (numBytes > 0)  memcpy((void *) nextarg, (void *) argv[loopArg], numBytes);
    }   }   }
    va_end(theArgs);
    
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd0, %rsp
movq %rsi, %rbx
leaq 0x20(%rsp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0x19b3d
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movslq %edi, %rax
movq (%rbx,%rax,8), %r14
movq %rsi, 0x10(%rsp)
leaq 0x100(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movabsq $0x3000000010, %rcx     # imm = 0x3000000010
movq %rcx, (%rsp)
testl %eax, %eax
jle 0x19c48
movl %edi, %ebp
xorl %r12d, %r12d
leaq 0x21b8(%rip), %r15      # 0x1bd30
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x19b91
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x19b9f
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rax
testq %rax, %rax
je 0x19bbe
movl %r12d, %ecx
movq (%rbx,%rcx,8), %rcx
movq %rcx, (%rax)
incl %r12d
cmpl %ebp, %r12d
jl 0x19b78
jmp 0x19c48
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x19bd7
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x19be5
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rdi
testq %rdi, %rdi
je 0x19c11
movl %r12d, %eax
movslq 0x4(%r14,%rax,8), %rcx
movslq (%r14,%rax,8), %rdx
movslq (%r15,%rdx,4), %rdx
imulq %rcx, %rdx
testq %rdx, %rdx
je 0x19bb1
movq (%rbx,%rax,8), %rsi
callq 0x8110
jmp 0x19bb1
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x19c2a
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x19c38
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl (%rax), %r12d
testl %r12d, %r12d
js 0x19c48
decl %r12d
jmp 0x19bb1
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/userfn.c
// Function: makeLinkList
ccInt makeLinkList(const ccInt left, const ccInt right, const ccInt direction, const ccFloat *sortingList, ccInt *linklist)
{
    ccInt middle, first, toWrite, side, nextSide, idx[2];
    
    if (right > left)  {
        
        middle = floor((right + left)/2);
        idx[0] = makeLinkList(left, middle, direction, sortingList, linklist);
        idx[1] = makeLinkList(middle + 1, right, direction, sortingList, linklist);
        
        if ((sortingList[idx[0]] - sortingList[idx[1]])*direction <= 0)  side = 0;
        else  side = 1;
        
        first = toWrite = idx[side];
        idx[side] = linklist[idx[side]];
        
        while ((idx[0] != -1) && (idx[1] != -1))  {
            
            if ((sortingList[idx[0]] - sortingList[idx[1]])*direction <= 0)  nextSide = 0;
            else  nextSide = 1;
            
            if (side != nextSide)  {
                linklist[toWrite] = idx[nextSide];
                side = nextSide;       }
            
            toWrite = idx[side];
            idx[side] = linklist[idx[side]];    }
        
        linklist[toWrite] = idx[1-side];
        
        return first;    }
        
    else  return left;
}

// Assembly:
cmpl %edi, %esi
jle 0x19d70
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movl %edx, %ebp
movl %esi, %r15d
leal (%r15,%rdi), %eax
movl %eax, %r12d
shrl $0x1f, %r12d
addl %eax, %r12d
sarl %r12d
movl %r12d, %esi
callq 0x19c58
movl %eax, %r13d
movl %eax, (%rsp)
incl %r12d
movl %r12d, %edi
movl %r15d, %esi
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x19c58
movl %eax, 0x4(%rsp)
movslq %r13d, %rcx
movsd (%r14,%rcx,8), %xmm2
cltq
subsd (%r14,%rax,8), %xmm2
cvtsi2sd %ebp, %xmm0
mulsd %xmm0, %xmm2
xorpd %xmm1, %xmm1
xorl %eax, %eax
ucomisd %xmm2, %xmm1
setb %al
movslq (%rsp,%rax,4), %rdi
movl (%rbx,%rdi,4), %ecx
movl %ecx, (%rsp,%rax,4)
movl (%rsp), %edx
movl 0x4(%rsp), %esi
cmpl $-0x1, %edx
setne %cl
cmpl $-0x1, %esi
setne %r8b
andb %cl, %r8b
movl %edi, %ecx
cmpb $0x1, %r8b
jne 0x19d52
movslq %edx, %rdx
movsd (%r14,%rdx,8), %xmm2
movslq %esi, %rdx
subsd (%r14,%rdx,8), %xmm2
mulsd %xmm0, %xmm2
xorl %edx, %edx
ucomisd %xmm2, %xmm1
setb %dl
cmpl %edx, %eax
je 0x19d35
xorl %eax, %eax
ucomisd %xmm2, %xmm1
setb %al
movl (%rsp,%rax,4), %eax
movslq %ecx, %rcx
movl %eax, (%rbx,%rcx,4)
movl %edx, %eax
movl %eax, %edx
movslq (%rsp,%rdx,4), %rcx
movl (%rbx,%rcx,4), %esi
movl %esi, (%rsp,%rdx,4)
movl (%rsp), %edx
cmpl $-0x1, %edx
je 0x19d52
movl 0x4(%rsp), %esi
cmpl $-0x1, %esi
jne 0x19cfe
movl $0x1, %edx
subl %eax, %edx
movl (%rsp,%rdx,4), %eax
movslq %ecx, %rcx
movl %eax, (%rbx,%rcx,4)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
movl %edi, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ccmain.c
// Function: runCicada
ccInt runCicada(ccInt argc, char **argv)
{
    ccInt rtrn;
    
    cc_compile_global_struct hold_compile_globals = cc_compile_globals;
    cc_interpret_global_struct hold_interpret_globals = cc_interpret_globals;
    cc_bytecode_global_struct hold_bytecode_globals = cc_bytecode_globals;
    
    rtrn = cicadaMain(argc, argv);
    
    cc_compile_globals = hold_compile_globals;
    cc_interpret_globals = hold_interpret_globals;
    cc_bytecode_globals = hold_bytecode_globals;
    
    return rtrn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x388, %rsp            # imm = 0x388
movq %rsi, %r13
movl %edi, %ebp
leaq 0xb50f(%rip), %rbx      # 0x252a0
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movaps %xmm0, (%rsp)
leaq 0xb900(%rip), %rsi      # 0x256a8
leaq 0x20(%rsp), %r14
movl $0xb8, %edx
movq %r14, %rdi
callq 0x8110
leaq 0xb99f(%rip), %r15      # 0x25760
leaq 0xd8(%rsp), %r12
movl $0x2b0, %edx            # imm = 0x2B0
movq %r12, %rdi
movq %r15, %rsi
callq 0x8110
movl %ebp, %edi
movq %r13, %rsi
callq 0x19e2d
movl %eax, %ebp
movaps (%rsp), %xmm0
movups %xmm0, (%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
movl $0xb8, %edx
leaq 0xb8a7(%rip), %rdi      # 0x256a8
movq %r14, %rsi
callq 0x8110
movl $0x2b0, %edx            # imm = 0x2B0
movq %r15, %rdi
movq %r12, %rsi
callq 0x8110
movl %ebp, %eax
addq $0x388, %rsp            # imm = 0x388
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/ccmain.c
// Function: cleanUp
void cleanUp()
{
    derefCodeList(&codeRegister);
    
    deletePLL(&VariableList);
    deletePLL(&MasterCodeList);
    deleteStack(&PCStack);
    deleteLinkedList(&codeRegister);
    deleteLinkedList(&(GL_Object.arrayDimList));
    deleteLinkedList(&stringRegister);
    
    return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0xaf8c(%rip), %rbx      # 0x25760
leaq 0x98(%rbx), %r14
movq %r14, %rdi
callq 0x1507c
leaq 0xaebe(%rip), %r15      # 0x256a8
leaq 0x48(%r15), %rdi
callq 0x91cd
movq %r15, %rdi
callq 0x91cd
addq $0x90, %r15
movq %r15, %rdi
callq 0x9469
movq %r14, %rdi
callq 0x847e
leaq 0xe0(%rbx), %rdi
callq 0x847e
addq $0x78, %rbx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x847e
nop