LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityAssertNumbersWithin
void UnityAssertNumbersWithin(const UNITY_UINT delta,
                              const UNITY_INT expected,
                              const UNITY_INT actual,
                              const char* msg,
                              const UNITY_LINE_TYPE lineNumber,
                              const UNITY_DISPLAY_STYLE_T style)
{
    RETURN_IF_FAIL_OR_IGNORE;

    if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
    {
        if (actual > expected)
        {
            Unity.CurrentTestFailed = (((UNITY_UINT)actual - (UNITY_UINT)expected) > delta);
        }
        else
        {
            Unity.CurrentTestFailed = (((UNITY_UINT)expected - (UNITY_UINT)actual) > delta);
        }
    }
    else
    {
        if ((UNITY_UINT)actual > (UNITY_UINT)expected)
        {
            Unity.CurrentTestFailed = (((UNITY_UINT)actual - (UNITY_UINT)expected) > delta);
        }
        else
        {
            Unity.CurrentTestFailed = (((UNITY_UINT)expected - (UNITY_UINT)actual) > delta);
        }
    }

    if (Unity.CurrentTestFailed)
    {
        UnityTestResultsFailBegin(lineNumber);
        UnityPrint(UnityStrDelta);
        UnityPrintNumberByStyle((UNITY_INT)delta, style);
        UnityPrint(UnityStrExpected);
        UnityPrintNumberByStyle(expected, style);
        UnityPrint(UnityStrWas);
        UnityPrintNumberByStyle(actual, style);
        UnityAddMsgIfSpecified(msg);
        UNITY_FAIL_AND_BAIL;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x700b(%rip), %rax      # 0xbe88
orq 0x6ffc(%rip), %rax      # 0xbe80
jne 0x4eba
movl %r9d, %ebp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq %rdx, %rax
testb $0x10, %bpl
jne 0x4ec3
subq %r15, %rax
ja 0x4ea9
movq %r15, %rax
subq %r14, %rax
xorl %ecx, %ecx
cmpq %r12, %rax
seta %cl
movq %rcx, 0x6fc8(%rip)      # 0xbe80
ja 0x4eca
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
subq %r15, %rax
jle 0x4ea3
jmp 0x4ea9
movq %r8, %rdi
callq 0x46b4
leaq 0x3557(%rip), %rdi      # 0x8430
callq 0x3f36
movq %r12, %rdi
movl %ebp, %esi
callq 0x40a7
leaq 0x3444(%rip), %rdi      # 0x8333
callq 0x3f36
movq %r15, %rdi
movl %ebp, %esi
callq 0x40a7
leaq 0x3439(%rip), %rdi      # 0x833e
callq 0x3f36
movq %r14, %rdi
movl %ebp, %esi
callq 0x40a7
movq %rbx, %rdi
callq 0x46db
movq $0x1, 0x6f59(%rip) # 0xbe80
leaq 0x6f62(%rip), %rdi      # 0xbe90
movl $0x1, %esi
callq 0x21d0
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityAssertEqualString
void UnityAssertEqualString(const char* expected,
                            const char* actual,
                            const char* msg,
                            const UNITY_LINE_TYPE lineNumber)
{
    UNITY_UINT32 i;

    RETURN_IF_FAIL_OR_IGNORE;

    /* if both pointers not null compare the strings */
    if (expected && actual)
    {
        for (i = 0; expected[i] || actual[i]; i++)
        {
            if (expected[i] != actual[i])
            {
                Unity.CurrentTestFailed = 1;
                break;
            }
        }
    }
    else
    { /* handle case of one pointers being null (if both null, test should pass) */
        if (expected != actual)
        {
            Unity.CurrentTestFailed = 1;
        }
    }

    if (Unity.CurrentTestFailed)
    {
        UnityTestResultsFailBegin(lineNumber);
        UnityPrintExpectedAndActualStrings(expected, actual);
        UnityAddMsgIfSpecified(msg);
        UNITY_FAIL_AND_BAIL;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x6f41(%rip), %rax      # 0xbe88
orq 0x6f32(%rip), %rax      # 0xbe80
jne 0x4fc8
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %dl
orb %al, %dl
jne 0x4fc3
xorl %eax, %eax
movl %eax, %esi
movb (%r15,%rsi), %dl
movb (%r14,%rsi), %sil
movl %edx, %edi
orb %sil, %dil
je 0x4fc8
incl %eax
cmpb %sil, %dl
je 0x4f6b
movl $0x1, %r12d
movq %r12, 0x6ef0(%rip)      # 0xbe80
movq %rcx, %rdi
callq 0x46b4
movq %r15, %rdi
movq %r14, %rsi
callq 0x4fd4
movq %rbx, %rdi
callq 0x46db
movq %r12, 0x6ece(%rip)      # 0xbe80
leaq 0x6ed7(%rip), %rdi      # 0xbe90
movl $0x1, %esi
callq 0x21d0
cmpq %r14, %r15
jne 0x4f83
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityPrintExpectedAndActualStrings
static void UnityPrintExpectedAndActualStrings(const char* expected, const char* actual)
{
    UnityPrint(UnityStrExpected);
    if (expected != NULL)
    {
        UNITY_OUTPUT_CHAR('\'');
        UnityPrint(expected);
        UNITY_OUTPUT_CHAR('\'');
    }
    else
    {
        UnityPrint(UnityStrNull);
    }
    UnityPrint(UnityStrWas);
    if (actual != NULL)
    {
        UNITY_OUTPUT_CHAR('\'');
        UnityPrint(actual);
        UNITY_OUTPUT_CHAR('\'');
    }
    else
    {
        UnityPrint(UnityStrNull);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x334e(%rip), %rdi      # 0x8333
callq 0x3f36
testq %r14, %r14
je 0x500d
movl $0x27, %edi
callq 0x2040
movq %r14, %rdi
callq 0x3f36
movl $0x27, %edi
callq 0x2040
jmp 0x5019
leaq 0x34f5(%rip), %rdi      # 0x8509
callq 0x3f36
leaq 0x331e(%rip), %rdi      # 0x833e
callq 0x3f36
testq %rbx, %rbx
je 0x504d
movl $0x27, %edi
callq 0x2040
movq %rbx, %rdi
callq 0x3f36
movl $0x27, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2040
leaq 0x34b5(%rip), %rdi      # 0x8509
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3f36
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityAssertEqualStringLen
void UnityAssertEqualStringLen(const char* expected,
                               const char* actual,
                               const UNITY_UINT32 length,
                               const char* msg,
                               const UNITY_LINE_TYPE lineNumber)
{
    UNITY_UINT32 i;

    RETURN_IF_FAIL_OR_IGNORE;

    /* if both pointers not null compare the strings */
    if (expected && actual)
    {
        for (i = 0; (i < length) && (expected[i] || actual[i]); i++)
        {
            if (expected[i] != actual[i])
            {
                Unity.CurrentTestFailed = 1;
                break;
            }
        }
    }
    else
    { /* handle case of one pointers being null (if both null, test should pass) */
        if (expected != actual)
        {
            Unity.CurrentTestFailed = 1;
        }
    }

    if (Unity.CurrentTestFailed)
    {
        UnityTestResultsFailBegin(lineNumber);
        UnityPrintExpectedAndActualStringsLen(expected, actual, length);
        UnityAddMsgIfSpecified(msg);
        UNITY_FAIL_AND_BAIL;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x6e19(%rip), %rax      # 0xbe88
orq 0x6e0a(%rip), %rax      # 0xbe80
jne 0x50be
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x50b9
testl %ebp, %ebp
je 0x50be
movl %ebp, %eax
xorl %ecx, %ecx
movb (%r15,%rcx), %dl
movb (%r14,%rcx), %sil
movl %edx, %edi
orb %sil, %dil
je 0x50be
cmpb %sil, %dl
jne 0x50c7
incq %rcx
cmpq %rcx, %rax
jne 0x509b
jmp 0x50be
cmpq %r14, %r15
jne 0x50c7
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %r12d
movq %r12, 0x6dac(%rip)      # 0xbe80
movq %r8, %rdi
callq 0x46b4
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x5109
movq %rbx, %rdi
callq 0x46db
movq %r12, 0x6d88(%rip)      # 0xbe80
leaq 0x6d91(%rip), %rdi      # 0xbe90
movl $0x1, %esi
callq 0x21d0
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityPrintExpectedAndActualStringsLen
static void UnityPrintExpectedAndActualStringsLen(const char* expected,
                                                  const char* actual,
                                                  const UNITY_UINT32 length)
{
    UnityPrint(UnityStrExpected);
    if (expected != NULL)
    {
        UNITY_OUTPUT_CHAR('\'');
        UnityPrintLen(expected, length);
        UNITY_OUTPUT_CHAR('\'');
    }
    else
    {
        UnityPrint(UnityStrNull);
    }
    UnityPrint(UnityStrWas);
    if (actual != NULL)
    {
        UNITY_OUTPUT_CHAR('\'');
        UnityPrintLen(actual, length);
        UNITY_OUTPUT_CHAR('\'');
    }
    else
    {
        UnityPrint(UnityStrNull);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x3216(%rip), %rdi      # 0x8333
callq 0x3f36
testq %r15, %r15
je 0x5147
movl $0x27, %edi
callq 0x2040
movq %r15, %rdi
movl %ebx, %esi
callq 0x4006
movl $0x27, %edi
callq 0x2040
jmp 0x5153
leaq 0x33bb(%rip), %rdi      # 0x8509
callq 0x3f36
leaq 0x31e4(%rip), %rdi      # 0x833e
callq 0x3f36
testq %r14, %r14
je 0x5187
movl $0x27, %edi
callq 0x2040
movq %r14, %rdi
movl %ebx, %esi
callq 0x4006
movl $0x27, %edi
popq %rbx
popq %r14
popq %r15
jmp 0x2040
leaq 0x337b(%rip), %rdi      # 0x8509
popq %rbx
popq %r14
popq %r15
jmp 0x3f36
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityFail
void UnityFail(const char* msg, const UNITY_LINE_TYPE line)
{
    RETURN_IF_FAIL_OR_IGNORE;

    UnityTestResultsBegin(Unity.TestFile, line);
    UnityPrint(UnityStrFail);
    if (msg != NULL)
    {
        UNITY_OUTPUT_CHAR(':');

#ifndef UNITY_EXCLUDE_DETAILS
        if (Unity.CurrentDetail1)
        {
            UnityPrint(UnityStrDetail1Name);
            UnityPrint(Unity.CurrentDetail1);
            if (Unity.CurrentDetail2)
            {
                UnityPrint(UnityStrDetail2Name);
                UnityPrint(Unity.CurrentDetail2);
            }
            UnityPrint(UnityStrSpacer);
        }
#endif
        if (msg[0] != ' ')
        {
            UNITY_OUTPUT_CHAR(' ');
        }
        UnityPrint(msg);
    }

    UNITY_FAIL_AND_BAIL;
}

// Assembly:
movq 0x69ca(%rip), %rax      # 0xbe88
orq 0x69bb(%rip), %rax      # 0xbe80
je 0x54c8
retq
pushq %rbx
movq %rdi, %rbx
movq 0x696d(%rip), %rdi      # 0xbe40
callq 0x45e3
leaq 0x2f8a(%rip), %rdi      # 0x8469
callq 0x3f36
testq %rbx, %rbx
je 0x555a
movl $0x3a, %edi
callq 0x2040
cmpq $0x0, 0x6955(%rip)      # 0xbe50
je 0x5543
leaq 0x2f6a(%rip), %rdi      # 0x846e
callq 0x3f36
movq 0x6940(%rip), %rdi      # 0xbe50
callq 0x3f36
cmpq $0x0, 0x693b(%rip)      # 0xbe58
je 0x5537
leaq 0x2f52(%rip), %rdi      # 0x8478
callq 0x3f36
movq 0x6926(%rip), %rdi      # 0xbe58
callq 0x3f36
leaq 0x2f45(%rip), %rdi      # 0x8483
callq 0x3f36
cmpb $0x20, (%rbx)
je 0x5552
movl $0x20, %edi
callq 0x2040
movq %rbx, %rdi
callq 0x3f36
movq $0x1, 0x691b(%rip) # 0xbe80
leaq 0x6924(%rip), %rdi      # 0xbe90
movl $0x1, %esi
callq 0x21d0
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityIgnore
void UnityIgnore(const char* msg, const UNITY_LINE_TYPE line)
{
    RETURN_IF_FAIL_OR_IGNORE;

    UnityTestResultsBegin(Unity.TestFile, line);
    UnityPrint(UnityStrIgnore);
    if (msg != NULL)
    {
        UNITY_OUTPUT_CHAR(':');
        UNITY_OUTPUT_CHAR(' ');
        UnityPrint(msg);
    }
    UNITY_IGNORE_AND_BAIL;
}

// Assembly:
movq 0x690b(%rip), %rax      # 0xbe88
orq 0x68fc(%rip), %rax      # 0xbe80
je 0x5587
retq
pushq %rbx
movq %rdi, %rbx
movq 0x68ae(%rip), %rdi      # 0xbe40
callq 0x45e3
leaq 0x2ee8(%rip), %rdi      # 0x8486
callq 0x3f36
testq %rbx, %rbx
je 0x55c4
movl $0x3a, %edi
callq 0x2040
movl $0x20, %edi
callq 0x2040
movq %rbx, %rdi
callq 0x3f36
movq $0x1, 0x68b9(%rip) # 0xbe88
leaq 0x68ba(%rip), %rdi      # 0xbe90
movl $0x1, %esi
callq 0x21d0
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityDefaultTestRun
void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int FuncLineNum)
{
    Unity.CurrentTestName = FuncName;
    Unity.CurrentTestLineNumber = (UNITY_LINE_TYPE)FuncLineNum;
    Unity.NumberOfTests++;
    UNITY_CLR_DETAILS();
    if (TEST_PROTECT())
    {
        setUp();
        Func();
    }
    if (TEST_PROTECT())
    {
        tearDown();
    }
    UnityConcludeTest();
}

// Assembly:
pushq %rbx
movq %rsi, 0x6860(%rip)      # 0xbe48
movslq %edx, %rax
movq %rax, 0x686e(%rip)      # 0xbe60
incq 0x686f(%rip)            # 0xbe68
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x684a(%rip)     # 0xbe50
leaq 0x6883(%rip), %rdi      # 0xbe90
callq 0x2150
testl %eax, %eax
jne 0x561d
callq 0x3f30
callq *%rbx
leaq 0x686c(%rip), %rdi      # 0xbe90
callq 0x2150
testl %eax, %eax
jne 0x5632
callq 0x3f31
callq 0x4585
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityEnd
int UnityEnd(void)
{
    UNITY_PRINT_EOL();
    UnityPrint(UnityStrBreaker);
    UNITY_PRINT_EOL();
    UnityPrintNumber((UNITY_INT)(Unity.NumberOfTests));
    UnityPrint(UnityStrResultsTests);
    UnityPrintNumber((UNITY_INT)(Unity.TestFailures));
    UnityPrint(UnityStrResultsFailures);
    UnityPrintNumber((UNITY_INT)(Unity.TestIgnores));
    UnityPrint(UnityStrResultsIgnored);
    UNITY_PRINT_EOL();
    if (Unity.TestFailures == 0U)
    {
        UnityPrint(UnityStrOk);
    }
    else
    {
        UnityPrint(UnityStrFail);
#ifdef UNITY_DIFFERENTIATE_FINAL_FAIL
        UNITY_OUTPUT_CHAR('E'); UNITY_OUTPUT_CHAR('D');
#endif
    }
    UNITY_PRINT_EOL();
    UNITY_FLUSH_CALL();
    UNITY_OUTPUT_COMPLETE();
    return (int)(Unity.TestFailures);
}

// Assembly:
pushq %rax
movl $0xa, %edi
callq 0x2040
leaq 0x2e13(%rip), %rdi      # 0x8490
callq 0x3f36
movl $0xa, %edi
callq 0x2040
movq 0x67d5(%rip), %rdi      # 0xbe68
callq 0x4104
leaq 0x2e09(%rip), %rdi      # 0x84a8
callq 0x3f36
movq 0x67c5(%rip), %rdi      # 0xbe70
callq 0x4104
leaq 0x2df9(%rip), %rdi      # 0x84b0
callq 0x3f36
movq 0x67b5(%rip), %rdi      # 0xbe78
callq 0x4104
leaq 0x2dec(%rip), %rdi      # 0x84bb
callq 0x3f36
movl $0xa, %edi
callq 0x2040
cmpq $0x0, 0x678a(%rip)      # 0xbe70
leaq 0x2dd8(%rip), %rax      # 0x84c5
leaq 0x2d75(%rip), %rdi      # 0x8469
cmoveq %rax, %rdi
callq 0x3f36
movl $0xa, %edi
callq 0x2040
movl 0x6763(%rip), %eax      # 0xbe70
popq %rcx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity_fixture.c
// Function: UnityMain
int UnityMain(int argc, const char* argv[], void (*runAllTests)(void))
{
    int result = UnityGetCommandLineOptions(argc, argv);
    unsigned int r;
    if (result != 0)
        return result;

    for (r = 0; r < UnityFixture.RepeatCount; r++)
    {
        UnityBegin(argv[0]);
        announceTestRun(r);
        runAllTests();
        if (!UnityFixture.Verbose) UNITY_PRINT_EOL();
        UnityEnd();
    }

    return (int)Unity.TestFailures;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
callq 0x57be
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x57b4
cmpl $0x0, 0x682a(%rip)      # 0xbf64
je 0x57aa
xorl %r15d, %r15d
leaq 0x2e4e(%rip), %r12      # 0x8594
leaq 0x2e51(%rip), %r13      # 0x859e
movq (%r14), %rdi
callq 0x5639
movq %r12, %rdi
callq 0x3f36
incq %r15
movq %r15, %rdi
callq 0x4123
movq %r13, %rdi
callq 0x3f36
movl 0x67ee(%rip), %edi      # 0xbf64
callq 0x4123
movl $0xa, %edi
callq 0x2040
callq *%rbx
cmpl $0x0, 0x67d2(%rip)      # 0xbf60
jne 0x579a
movl $0xa, %edi
callq 0x2040
callq 0x566b
movl 0x67bf(%rip), %eax      # 0xbf64
cmpq %rax, %r15
jb 0x574d
leaq 0x668f(%rip), %rax      # 0xbe40
movl 0x30(%rax), %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity_fixture.c
// Function: UnityTestRunner
void UnityTestRunner(unityfunction* setup,
                     unityfunction* testBody,
                     unityfunction* teardown,
                     const char* printableName,
                     const char* group,
                     const char* name,
                     const char* file,
                     unsigned int line)
{
    if (testSelected(name) && groupSelected(group))
    {
        Unity.TestFile = file;
        Unity.CurrentTestName = printableName;
        Unity.CurrentTestLineNumber = line;
        if (!UnityFixture.Verbose)
            UNITY_OUTPUT_CHAR('.');
        else
        {
            UnityPrint(printableName);
        #ifndef UNITY_REPEAT_TEST_NAME
            Unity.CurrentTestName = NULL;
        #endif
        }

        Unity.NumberOfTests++;
        UnityMalloc_StartTest();
        UnityPointer_Init();

        UNITY_EXEC_TIME_START();

        if (TEST_PROTECT())
        {
            setup();
            testBody();
        }
        if (TEST_PROTECT())
        {
            teardown();
        }
        if (TEST_PROTECT())
        {
            UnityPointer_UndoAllSets();
            if (!Unity.CurrentTestFailed)
                UnityMalloc_EndTest();
        }
        UnityConcludeFixtureTest();
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %r13
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x662b(%rip), %rsi      # 0xbf68
testq %rsi, %rsi
je 0x5953
movq %r9, %rdi
callq 0x2240
testq %rax, %rax
je 0x5a77
movq 0x6616(%rip), %rsi      # 0xbf70
testq %rsi, %rsi
je 0x5970
movq %r13, %rdi
callq 0x2240
testq %rax, %rax
je 0x5a77
movl 0x38(%rsp), %eax
movq 0x30(%rsp), %rcx
leaq 0x64c0(%rip), %r13      # 0xbe40
movq %rcx, (%r13)
movq %r12, 0x8(%r13)
movl %eax, %eax
movq %rax, 0x20(%r13)
cmpl $0x0, 0x65cb(%rip)      # 0xbf60
je 0x59a9
movq %r12, %rdi
callq 0x3f36
movq $0x0, 0x8(%r13)
jmp 0x59b3
movl $0x2e, %edi
callq 0x2040
incq 0x28(%r13)
xorl %eax, %eax
movl %eax, 0x65b9(%rip)      # 0xbf78
movl $0xffffffff, 0x6153(%rip) # imm = 0xFFFFFFFF
movl %eax, 0x65ad(%rip)      # 0xbf7c
leaq 0x50(%r13), %r12
movq %r12, %rdi
callq 0x2150
testl %eax, %eax
jne 0x59e5
callq *%r15
callq *%r14
movq %r12, %rdi
callq 0x2150
testl %eax, %eax
jne 0x59f3
callq *%rbx
movq %r12, %rdi
callq 0x2150
testl %eax, %eax
jne 0x5a72
movslq 0x6576(%rip), %rax      # 0xbf7c
testq %rax, %rax
jle 0x5a48
leaq 0x1(%rax), %rcx
shlq $0x4, %rax
leaq 0x6566(%rip), %rdx      # 0xbf80
addq %rdx, %rax
addq $-0x8, %rax
movq -0x8(%rax), %rdx
movq (%rax), %rsi
movq %rsi, (%rdx)
movq %rcx, %rdx
decq %rdx
addq $-0x10, %rax
movq %rdx, %rcx
cmpq $0x1, %rdx
ja 0x5a21
movl $0x0, 0x6534(%rip)      # 0xbf7c
cmpq $0x0, 0x40(%r13)
jne 0x5a72
movl $0xffffffff, 0x60c3(%rip) # imm = 0xFFFFFFFF
cmpl $0x0, 0x6518(%rip)      # 0xbf78
je 0x5a72
movq 0x20(%r13), %rsi
leaq 0x2aab(%rip), %rdi      # 0x8518
callq 0x54b7
callq 0x5b11
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity_fixture.c
// Function: UnityPointer_UndoAllSets
void UnityPointer_UndoAllSets(void)
{
    while (pointer_index > 0)
    {
        pointer_index--;
        *(pointer_store[pointer_index].pointer) =
            pointer_store[pointer_index].old_value;
    }
}

// Assembly:
movslq 0x64d4(%rip), %rax      # 0xbf7c
testq %rax, %rax
jle 0x5ae5
leaq 0x1(%rax), %rcx
movq %rax, %rdx
shlq $0x4, %rdx
leaq 0x64c1(%rip), %rsi      # 0xbf80
addq %rsi, %rdx
addq $-0x8, %rdx
movq -0x8(%rdx), %rsi
movq (%rdx), %rdi
movq %rdi, (%rsi)
decq %rcx
decl %eax
addq $-0x10, %rdx
cmpq $0x1, %rcx
ja 0x5ac6
movl %eax, 0x6497(%rip)      # 0xbf7c
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity_fixture.c
// Function: UnityIgnoreTest
void UnityIgnoreTest(const char* printableName, const char* group, const char* name)
{
    if (testSelected(name) && groupSelected(group))
    {
        Unity.NumberOfTests++;
        Unity.TestIgnores++;
        if (!UnityFixture.Verbose)
            UNITY_OUTPUT_CHAR('!');
        else
        {
            UnityPrint(printableName);
            UNITY_PRINT_EOL();
        }
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x63fc(%rip), %rsi      # 0xbf68
testq %rsi, %rsi
je 0x5b7e
movq %rdx, %rdi
callq 0x2240
testq %rax, %rax
je 0x5bbe
movq 0x63eb(%rip), %rsi      # 0xbf70
testq %rsi, %rsi
je 0x5b97
movq %r14, %rdi
callq 0x2240
testq %rax, %rax
je 0x5bbe
leaq 0x62a2(%rip), %rax      # 0xbe40
incq 0x28(%rax)
incq 0x38(%rax)
cmpl $0x0, 0x63b3(%rip)      # 0xbf60
je 0x5bc6
movq %rbx, %rdi
callq 0x3f36
movl $0xa, %edi
jmp 0x5bcb
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x21, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity_fixture.c
// Function: unity_free
void unity_free(void* mem)
{
    int overrun;

    if (mem == NULL)
    {
        return;
    }

    overrun = isOverrun(mem);
    release_memory(mem);
    if (overrun)
    {
        UNITY_TEST_FAIL(Unity.CurrentTestLineNumber, "Buffer overrun detected during free()");
    }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x5c96
leaq -0x10(%rdi), %rbx
cmpq $0x0, -0x8(%rdi)
je 0x5c55
decl 0x632d(%rip)            # 0xbf78
movq %rbx, %rdi
callq 0x2030
jmp 0x5c79
addq -0x10(%rdi), %rdi
leaq 0x2943(%rip), %rsi      # 0x85a3
callq 0x2160
movl %eax, %ebp
decl 0x630b(%rip)            # 0xbf78
movq %rbx, %rdi
callq 0x2030
testl %ebp, %ebp
je 0x5c96
leaq 0x61c0(%rip), %rax      # 0xbe40
movq 0x20(%rax), %rsi
leaq 0x289e(%rip), %rdi      # 0x8529
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x54b7
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity_fixture.c
// Function: unity_realloc
void* unity_realloc(void* oldMem, size_t size)
{
    Guard* guard = (Guard*)oldMem;
    void* newMem;

    if (oldMem == NULL) return unity_malloc(size);

    guard--;
    if (isOverrun(oldMem))
    {
        release_memory(oldMem);
        UNITY_TEST_FAIL(Unity.CurrentTestLineNumber, "Buffer overrun detected during realloc()");
    }

    if (size == 0)
    {
        release_memory(oldMem);
        return NULL;
    }

    if (guard->size >= size) return oldMem;

#ifdef UNITY_EXCLUDE_STDLIB_MALLOC /* Optimization if memory is expandable */
    if (oldMem == unity_heap + heap_index - guard->size - sizeof(end) &&
        heap_index + size - guard->size <= UNITY_INTERNAL_HEAP_SIZE_BYTES)
    {
        release_memory(oldMem);    /* Not thread-safe, like unity_heap generally */
        return unity_malloc(size); /* No memcpy since data is in place */
    }
#endif
    newMem = unity_malloc(size);
    if (newMem == NULL) return NULL; /* Do not release old memory */
    memcpy(newMem, oldMem, guard->size);
    release_memory(oldMem);
    return newMem;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
testq %rdi, %rdi
je 0x5d59
movq %rdi, %rbx
leaq -0x10(%rdi), %r14
cmpq $0x0, -0x8(%rdi)
jne 0x5cf8
movq -0x10(%rbx), %rdi
addq %rbx, %rdi
leaq 0x28b4(%rip), %rsi      # 0x85a3
callq 0x2160
testl %eax, %eax
je 0x5d1d
decl 0x627a(%rip)            # 0xbf78
movq %r14, %rdi
callq 0x2030
leaq 0x6133(%rip), %rax      # 0xbe40
movq 0x20(%rax), %rsi
leaq 0x2837(%rip), %rdi      # 0x854f
callq 0x54b7
testq %r15, %r15
je 0x5d66
cmpq %r15, (%r14)
jae 0x5d76
movq %r15, %rdi
callq 0x5bde
testq %rax, %rax
je 0x5d74
movq %rax, %r15
movq -0x10(%rbx), %rdx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21a0
decl 0x622c(%rip)            # 0xbf78
movq %r14, %rdi
callq 0x2030
movq %r15, %rbx
jmp 0x5d76
movq %r15, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x5bde
decl 0x620c(%rip)            # 0xbf78
movq %r14, %rdi
callq 0x2030
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity_fixture.c
// Function: UnityPointer_Set
void UnityPointer_Set(void** pointer, void* newValue, UNITY_LINE_TYPE line)
{
    if (pointer_index >= UNITY_MAX_POINTERS)
    {
        UNITY_TEST_FAIL(line, "Too many pointers set");
    }
    else
    {
        pointer_store[pointer_index].pointer = pointer;
        pointer_store[pointer_index].old_value = *pointer;
        *pointer = newValue;
        pointer_index++;
    }
}

// Assembly:
movslq 0x61f6(%rip), %rax      # 0xbf7c
cmpq $0x5, %rax
jl 0x5d9b
leaq 0x27e5(%rip), %rdi      # 0x8578
movq %rdx, %rsi
jmp 0x54b7
movq %rax, %rcx
shlq $0x4, %rcx
leaq 0x61d7(%rip), %rdx      # 0xbf80
movq %rdi, (%rcx,%rdx)
movq (%rdi), %r8
movq %r8, 0x8(%rcx,%rdx)
movq %rsi, (%rdi)
incl %eax
movl %eax, 0x61bc(%rip)      # 0xbf7c
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/tests.c
// Function: Tests_Run
void Tests_Run() {
  zf_log_set_output_level(ZF_LOG_DEBUG);
  RUN_TEST_GROUP(controls);
  RUN_TEST_GROUP(utility);
  RUN_TEST_GROUP(input);
  RUN_TEST_GROUP(errors);
}

// Assembly:
pushq %rax
movl $0x2, %edi
callq 0x2d3a
callq 0x5e80
callq 0x61ba
callq 0x603f
popq %rax
jmp 0x5f29
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/st.c
// Function: goDoIt
static void goDoIt(const char *text)
{
    object process, stack, method;

    method = newMethod();
    incr(method);
    setInstanceVariables(nilobj);
    parse(method, text, false);

    process = allocObject(processSize);
    incr(process);
    stack = allocObject(50);
    incr(stack);

    /* make a process */
    basicAtPut(process, stackInProcess, stack);
    basicAtPut(process, stackTopInProcess, newInteger(10));
    basicAtPut(process, linkPtrInProcess, newInteger(2));

    /* put argument on stack */
    basicAtPut(stack, 1, nilobj); /* argument */
    /* now make a linkage area in stack */
    basicAtPut(stack, 2, nilobj); /* previous link */
    basicAtPut(stack, 3, nilobj); /* context object (nil = stack) */
    basicAtPut(stack, 4, newInteger(1)); /* return point */
    basicAtPut(stack, 5, method); /* method */
    basicAtPut(stack, 6, newInteger(1)); /* byte offset */

    /* now go execute it */
    while (execute(process, 15000))
        fprintf(stderr, "..");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x3b1d
movswl %ax, %ebp
movl %ebp, %edi
callq 0x2eda
xorl %edi, %edi
callq 0x68e4
movl %ebp, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x69b2
movl $0x3, %edi
callq 0x2d09
movl %eax, 0x4(%rsp)
movswl %ax, %r14d
movl %r14d, %edi
callq 0x2eda
movl $0x32, %edi
callq 0x2d09
movswl %ax, %r15d
movl %r15d, %edi
callq 0x2eda
movl %r14d, %eax
shrl %eax
movswq %ax, %rbx
shlq $0x4, %rbx
leaq 0xb755(%rip), %r13      # 0xe240
movq 0x8(%r13,%rbx), %rax
movw %r15w, (%rax)
movl %r15d, %edi
callq 0x2eda
movl $0xa, %edi
callq 0x3130
movq 0x8(%r13,%rbx), %rcx
movw %ax, 0x2(%rcx)
movswl %ax, %edi
callq 0x2eda
movl $0x2, %edi
callq 0x3130
movq 0x8(%r13,%rbx), %rcx
movw %ax, 0x4(%rcx)
movswl %ax, %edi
callq 0x2eda
shrl %r15d
movswq %r15w, %r15
shlq $0x4, %r15
movq 0x8(%r13,%r15), %rax
movw %r12w, (%rax)
xorl %edi, %edi
callq 0x2eda
movq 0x8(%r13,%r15), %rax
movw %r12w, 0x2(%rax)
xorl %edi, %edi
callq 0x2eda
movq 0x8(%r13,%r15), %rax
movw %r12w, 0x4(%rax)
xorl %edi, %edi
callq 0x2eda
movl $0x1, %edi
callq 0x3130
movq 0x8(%r13,%r15), %rcx
movw %ax, 0x6(%rcx)
movswl %ax, %edi
callq 0x2eda
movq 0x8(%r13,%r15), %rax
movw %bp, 0x8(%rax)
movl %ebp, %edi
callq 0x2eda
movl $0x1, %edi
callq 0x3130
movq 0x8(%r13,%r15), %rcx
movw %ax, 0xa(%rcx)
movswl %ax, %edi
callq 0x2eda
movl %r14d, %edi
movl $0x3a98, %esi           # imm = 0x3A98
callq 0x3be5
testl %eax, %eax
jne 0x2bd5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x4(%rsp), %edi
callq 0x250a
jmp 0x2bc6
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/memory.c
// Function: setFreeLists
void setFreeLists()
{
    int i, size;
    register int z;
    register struct objectStruct *p;

    objectFreeList[0] = nilobj;

    for (z = ObjectTableMax - 1; z > 0; z--)
    {
        if (objectTable[z].referenceCount == 0)
        {
            /* Unreferenced, so do a sort of sysDecr: */
            p = &objectTable[z];
            size = p->size;
            if (size < 0)
                size = ((-size) + 1) / 2;
            p->STclass = objectFreeList[size];
            objectFreeList[size] = z;
            for (i = size; i > 0;)
                p->memory[--i] = nilobj;
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movw $0x0, 0xa663(%rip)      # 0xd2a0
movl $0x1964, %ebx           # imm = 0x1964
leaq 0x24c2f(%rip), %r14     # 0x27878
leaq 0xa650(%rip), %r15      # 0xd2a0
cmpw $0x0, -0x6(%r14)
jne 0x2c8f
movswl -0x4(%r14), %ecx
movl $0x1, %eax
subl %ecx, %eax
shrl %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
movzwl (%r15,%rax,2), %ecx
movw %cx, -0x8(%r14)
leal -0x1(%rbx), %ecx
movw %cx, (%r15,%rax,2)
testl %eax, %eax
jle 0x2c8f
movq (%r14), %rdi
leaq (%rax,%rax), %rdx
xorl %esi, %esi
callq 0x20d0
decq %rbx
addq $-0x10, %r14
cmpq $0x1, %rbx
ja 0x2c50
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/memory.c
// Function: mBlockAlloc
object *mBlockAlloc(int memorySize)
{
    object *objptr;

    if (currentMemoryPosition + memorySize >= MemoryBlockSize)
    {

        /* we toss away space here.  Space-Frugal users may want to
         fix this by making a new object of size
         MemoryBlockSize - currentMemoryPositon - 1
         and putting it on the free list, but I think
         the savings is potentially small */

        memoryBlock = (object *) calloc((unsigned) MemoryBlockSize,
                                        sizeof(object));
        if (!memoryBlock)
            sysError("out of memory", "malloc failed");
        currentMemoryPosition = 0;
    }
    objptr = (object *) &memoryBlock[currentMemoryPosition];
    currentMemoryPosition += memorySize;
    return (objptr);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movl 0x24bd1(%rip), %r14d    # 0x27880
leal (%r14,%rbx), %eax
cmpl $0x1770, %eax           # imm = 0x1770
jl 0x2ceb
movl $0x1770, %edi           # imm = 0x1770
movl $0x2, %esi
callq 0x2150
movq %rax, 0x24bb8(%rip)     # 0x27888
xorl %r14d, %r14d
testq %rax, %rax
jne 0x2ceb
leaq 0x6451(%rip), %rdi      # 0x9130
leaq 0x6458(%rip), %rsi      # 0x913e
callq 0x4dec
movslq %r14d, %rcx
leaq (%rcx,%rcx), %rax
addq 0x24b8f(%rip), %rax     # 0x27888
addl %ebx, %ecx
movl %ecx, 0x24b7f(%rip)     # 0x27880
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/memory.c
// Function: allocStr
object allocStr(register const char *str)
{
    register object newSym;
    newSym = allocByte(1 + strlen(str));
    strcpy(charPtr(newSym), str);
    return (newSym);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x20a0
movq %rax, %r14
addl $0x2, %eax
shrl $0x1f, %eax
leal (%r14,%rax), %edi
addl $0x2, %edi
sarl %edi
callq 0x2d09
movswl %ax, %ebp
notl %r14d
movl %ebp, %eax
shrl %eax
movswq %ax, %rax
shlq $0x4, %rax
leaq 0xb38f(%rip), %rcx      # 0xe240
movw %r14w, 0x4(%rax,%rcx)
movw %bp, 0x249d2(%rip)      # 0x27890
movq 0x8(%rax,%rcx), %rdi
movq %rbx, %rsi
callq 0x2050
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/memory.c
// Function: sysDecr
void sysDecr(object z)
{
    register struct objectStruct *p;
    register int i;
    int size;

    p = &objectTable[z >> 1];
    if (p->referenceCount < 0)
    {
        fprintf(stderr, "object %d\n", z);
        sysError("negative reference count", "");
    }
    decr(p->STclass);
    size = p->size;
    if (size < 0)
        size = ((-size) + 1) / 2;
    p->STclass = objectFreeList[size];
    objectFreeList[size] = z >> 1;
    if (size > 0)
    {
        if (p->size > 0)
            for (i = size; i;)
                decr(p->memory[--i]);
        for (i = size; i > 0;)
            p->memory[--i] = nilobj;
    }
    p->size = size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebp
sarl %ebp
movslq %ebp, %rax
shlq $0x4, %rax
leaq 0xb2ec(%rip), %rcx      # 0xe240
leaq (%rcx,%rax), %rbx
cmpw $0x0, 0x2(%rax,%rcx)
js 0x2fda
movswl (%rbx), %edi
callq 0x2f00
movswl 0x4(%rbx), %eax
movl $0x1, %r14d
subl %eax, %r14d
shrl %r14d
testl %eax, %eax
cmovnsl %eax, %r14d
leaq 0xa31b(%rip), %rcx      # 0xd2a0
movzwl (%rcx,%r14,2), %edx
movw %dx, (%rbx)
movw %bp, (%rcx,%r14,2)
testl %r14d, %r14d
jle 0x2fca
testw %ax, %ax
jle 0x2fb3
movq %r14, %r15
movq 0x8(%rbx), %rax
movswl -0x2(%rax,%r15,2), %edi
callq 0x2f00
decq %r15
jne 0x2f9f
movq 0x8(%rbx), %rdi
leal -0x1(%r14), %eax
leaq 0x2(,%rax,2), %rdx
xorl %esi, %esi
callq 0x20d0
movw %r14w, 0x4(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x2585
jmp 0x2f60
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/memory.c
// Function: byteAtPut
void byteAtPut(object z, int i, int x)
{
    byte *bp;

    if (isInteger(z))
        sysError("indexing integer", "byteAtPut");
    else if ((i <= 0) || (i > 2 * -sizeField(z)))
    {
        fprintf(stderr, "index %d size %d\n", i, sizeField(z));
        sysError("index out of range", "byteAtPut");
    }
    else
    {
        bp = bytePtr(z);
        bp[i - 1] = x;
    }
}

// Assembly:
testl $0x8001, %edi           # imm = 0x8001
je 0x2fff
leaq 0x61bf(%rip), %rdi      # 0x91b2
leaq 0x61c9(%rip), %rsi      # 0x91c3
jmp 0x4dec
movl %edi, %eax
movzwl %ax, %edi
shrl %edi
testl %esi, %esi
jle 0x303f
movl %edi, %r8d
shll $0x4, %r8d
leaq 0xb228(%rip), %rcx      # 0xe240
movswl 0x4(%r8,%rcx), %r8d
addl %r8d, %r8d
negl %r8d
cmpl %esi, %r8d
jl 0x303f
movw %ax, 0x24860(%rip)      # 0x27890
shll $0x4, %edi
movq 0x8(%rdi,%rcx), %rax
movl %esi, %ecx
movb %dl, -0x1(%rax,%rcx)
retq
pushq %rax
callq 0x25b4
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/memory.c
// Function: visit
void visit(register object x)
{
    int i, s;
    object *p;

    if (x && !isInteger(x))
    {
        if (++(objectTable[x >> 1].referenceCount) == 1)
        {
            /* then it's the first time we've visited it, so: */
            visit(objectTable[x >> 1].STclass);
            s = sizeField(x);
            if (s > 0)
            {
                p = objectTable[x >> 1].memory;
                for (i = s; i; --i)
                    visit(*p++);
            }
        }
    }
}

// Assembly:
testw %di, %di
sete %al
testl $0x8001, %edi           # imm = 0x8001
setne %cl
orb %al, %cl
jne 0x307d
andl $0xfffe, %edi           # imm = 0xFFFE
leaq 0xb1d6(%rip), %rax      # 0xe240
movzwl 0x2(%rax,%rdi,8), %ecx
movl %ecx, %edx
incl %edx
movw %dx, 0x2(%rax,%rdi,8)
testw %cx, %cx
je 0x307e
retq
pushq %r15
pushq %r14
pushq %rbx
leaq (%rax,%rdi,8), %r14
movswl (%r14), %edi
callq 0x304a
movzwl 0x4(%r14), %ebx
testw %bx, %bx
jle 0x30b3
movq 0x8(%r14), %r14
xorl %r15d, %r15d
movswl (%r14,%r15,2), %edi
callq 0x304a
incq %r15
cmpl %r15d, %ebx
jne 0x30a1
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/memory.c
// Function: objectCount
int objectCount()
{
    register int i, j;
    j = 0;
    for (i = 0; i < ObjectTableMax; i++)
        if (objectTable[i].referenceCount > 0)
            j++;
    return j;
}

// Assembly:
pxor %xmm0, %xmm0
movl $0x32, %eax
leaq 0xb177(%rip), %rcx      # 0xe240
movdqa 0x604f(%rip), %xmm2     # 0x9120
pxor %xmm1, %xmm1
movzwl -0x30(%rax,%rcx), %edx
movd %edx, %xmm3
pinsrw $0x1, -0x20(%rax,%rcx), %xmm3
pinsrw $0x2, -0x10(%rax,%rcx), %xmm3
pinsrw $0x3, (%rax,%rcx), %xmm3
pcmpgtw %xmm0, %xmm3
punpcklwd %xmm3, %xmm3    # xmm3 = xmm3[0,0,1,1,2,2,3,3]
pand %xmm2, %xmm3
paddd %xmm3, %xmm1
addq $0x40, %rax
cmpq $0x19672, %rax          # imm = 0x19672
jne 0x30d5
pshufd $0xee, %xmm1, %xmm0     # xmm0 = xmm1[2,3,2,3]
paddd %xmm1, %xmm0
pshufd $0x55, %xmm0, %xmm1     # xmm1 = xmm0[1,1,1,1]
paddd %xmm0, %xmm1
movd %xmm1, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/names.c
// Function: nameTableInsert
void nameTableInsert(object dict, int hash, object key, object value)
{
    object table, link, nwLink, nextLink, tablentry;

    /* first get the hash table */
    table = basicAt(dict, 1);

    if (sizeField(table) < 3)
        sysError("attempt to insert into", "too small name table");
    else
    {
        hash = 3 * (hash % (sizeField(table) / 3));
        tablentry = basicAt(table, hash+1);
        if ((tablentry == nilobj) || (tablentry == key))
        {
            basicAtPut(table, hash+1, key);
            basicAtPut(table, hash+2, value);
        }
        else
        {
            nwLink = newLink(key, value);
            incr(nwLink);
            link = basicAt(table, hash+3);
            if (link == nilobj)
            {
                basicAtPut(table, hash+3, nwLink);
            }
            else
                while (1)
                    if (basicAt(link,1) == key)
                    {
                        basicAtPut(link, 2, value);
                        break;
                    }
                    else if ((nextLink = basicAt(link, 3)) == nilobj)
                    {
                        basicAtPut(link, 3, nwLink);
                        break;
                    }
                    else
                        link = nextLink;
            decr(nwLink);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
shrl %edi
movswq %di, %rax
shlq $0x4, %rax
leaq 0xb0e8(%rip), %r12      # 0xe240
movq 0x8(%r12,%rax), %rax
movswl (%rax), %eax
shrl %eax
movswq %ax, %r13
shlq $0x4, %r13
movzwl 0x4(%r12,%r13), %eax
cmpw $0x2, %ax
jg 0x3197
leaq 0x6062(%rip), %rdi      # 0x91df
leaq 0x6072(%rip), %rsi      # 0x91f6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4dec
movl %ecx, %ebx
movl %edx, %ebp
addq %r12, %r13
movzwl %ax, %eax
imull $0xaaab, %eax, %ecx     # imm = 0xAAAB
shrl $0x11, %ecx
movl %esi, %eax
cltd
idivl %ecx
leal (%rdx,%rdx,2), %ecx
movq 0x8(%r13), %rax
movslq %ecx, %r14
movzwl (%rax,%r14,2), %ecx
testw %cx, %cx
setne %dl
cmpw %bp, %cx
setne %cl
testb %cl, %dl
jne 0x31fb
movw %bp, (%rax,%r14,2)
movswl %bp, %edi
callq 0x2eda
movq 0x8(%r13), %rax
movw %bx, 0x2(%rax,%r14,2)
movswl %bx, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2eda
movswl %bp, %edi
movswl %bx, %esi
callq 0x3aa1
movl %eax, %r15d
movswl %ax, %edi
movl %edi, 0x4(%rsp)
callq 0x2eda
movq 0x8(%r13), %rcx
movzwl 0x4(%rcx,%r14,2), %eax
testw %ax, %ax
je 0x3249
cwtl
shrl %eax
movswq %ax, %rax
shlq $0x4, %rax
movq 0x8(%r12,%rax), %rcx
cmpw %bp, (%rcx)
je 0x3251
movzwl 0x4(%rcx), %eax
testw %ax, %ax
jne 0x3224
movw %r15w, 0x4(%rcx)
jmp 0x3258
movw %r15w, 0x4(%rcx,%r14,2)
jmp 0x3258
movw %bx, 0x2(%rcx)
movl %ebx, %r15d
movswl %r15w, %edi
callq 0x2eda
movl 0x4(%rsp), %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2f00
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/names.c
// Function: hashEachElement
object hashEachElement(object dict, register int hash, int(*fun)(object))
{
    object table, key, value, link;
    register object *hp;
    int tablesize;

    table = basicAt(dict, 1);

    /* now see if table is valid */
    if ((tablesize = sizeField(table)) < 3)
        sysError("system error", "lookup on null table");
    else
    {
        hash = 1 + (3 * (hash % (tablesize / 3)));
        hp = sysMemPtr(table) + (hash - 1);
        key = *hp++; /* table at: hash */
        value = *hp++; /* table at: hash + 1 */
        if ((key != nilobj) && (*fun)(key))
            return value;
        for (link = *hp; link != nilobj; link = *hp)
        {
            hp = sysMemPtr(link);
            key = *hp++; /* link at: 1 */
            value = *hp++; /* link at: 2 */
            if ((key != nilobj) && (*fun)(key))
                return value;
        }
    }
    return nilobj;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
shrl %edi
movswq %di, %rax
shlq $0x4, %rax
leaq 0xafaf(%rip), %r14      # 0xe240
movq 0x8(%r14,%rax), %rax
movswl (%rax), %eax
shrl %eax
movswq %ax, %rcx
shlq $0x4, %rcx
movzwl 0x4(%r14,%rcx), %eax
cmpw $0x2, %ax
jg 0x32c6
leaq 0x5f55(%rip), %rdi      # 0x920b
leaq 0x5f5b(%rip), %rsi      # 0x9218
callq 0x4dec
xorl %ebp, %ebp
jmp 0x3300
movq %rdx, %rbx
addq %r14, %rcx
movzwl %ax, %eax
imull $0xaaab, %eax, %edi     # imm = 0xAAAB
shrl $0x11, %edi
movl %esi, %eax
cltd
idivl %edi
leal (%rdx,%rdx,2), %eax
movq 0x8(%rcx), %r15
movslq %eax, %r12
movzwl (%r15,%r12,2), %eax
testw %ax, %ax
je 0x330b
movzwl 0x2(%r15,%r12,2), %ebp
movswl %ax, %edi
callq *%rbx
testl %eax, %eax
je 0x330b
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movzwl 0x4(%r15,%r12,2), %eax
testw %ax, %ax
je 0x32c2
cwtl
shrl %eax
movswq %ax, %rax
shlq $0x4, %rax
movq 0x8(%r14,%rax), %r15
movzwl (%r15), %eax
testw %ax, %ax
je 0x333d
movzwl 0x2(%r15), %ebp
movswl %ax, %edi
callq *%rbx
testl %eax, %eax
jne 0x3300
movzwl 0x4(%r15), %eax
jmp 0x3311
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/names.c
// Function: strHash
int strHash(const char *str)
{
    register int hash;
    register const char *p;

    hash = 0;
    for (p = str; *p; p++)
        hash += *p;
    if (hash < 0)
        hash = -hash;
    /* make sure it can be a smalltalk integer */
    if (hash > 16384)
        hash >>= 2;
    return hash;
}

// Assembly:
movb (%rdi), %cl
testb %cl, %cl
je 0x335f
incq %rdi
xorl %eax, %eax
movsbl %cl, %ecx
addl %ecx, %eax
movb (%rdi), %cl
incq %rdi
testb %cl, %cl
jne 0x334f
jmp 0x3361
xorl %eax, %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
movl %ecx, %eax
shrl $0x2, %eax
cmpl $0x4001, %ecx           # imm = 0x4001
cmovbl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/names.c
// Function: globalKey
object globalKey(const char *str)
{
    objBuffer = nilobj;
    charBuffer = str;
    hashEachElement(symbols, strHash(str), strTest);
    return objBuffer;
}

// Assembly:
pushq %rax
movw $0x0, 0x2451f(%rip)     # 0x278a0
movq %rdi, 0x24520(%rip)     # 0x278a8
leaq 0x24505(%rip), %rax     # 0x27894
movzwl (%rax), %eax
movb (%rdi), %dl
testb %dl, %dl
je 0x33ad
incq %rdi
xorl %ecx, %ecx
movsbl %dl, %edx
addl %edx, %ecx
movb (%rdi), %dl
incq %rdi
testb %dl, %dl
jne 0x339d
jmp 0x33af
xorl %ecx, %ecx
movl %ecx, %edx
negl %edx
cmovsl %ecx, %edx
movl %edx, %esi
shrl $0x2, %esi
cmpl $0x4001, %edx           # imm = 0x4001
cmovbl %edx, %esi
movswl %ax, %edi
leaq 0xe(%rip), %rdx         # 0x33dc
callq 0x3278
movzwl 0x244c6(%rip), %eax     # 0x278a0
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/names.c
// Function: initCommonSymbols
void initCommonSymbols()
{
    int i;

    trueobj = globalSymbol("true");
    falseobj = globalSymbol("false");
    for (i = 0; unStrs[i]; i++)
        unSyms[i] = newSymbol(unStrs[i]);
    for (i = 0; binStrs[i]; i++)
        binSyms[i] = newSymbol(binStrs[i]);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x243e4(%rip), %rbx     # 0x27894
movswl (%rbx), %edi
leaq 0x5c2d(%rip), %rsi      # 0x90e7
callq 0x345c
leaq 0x24b0c(%rip), %rcx     # 0x27fd2
movw %ax, (%rcx)
movswl (%rbx), %edi
leaq 0x5c19(%rip), %rsi      # 0x90ec
callq 0x345c
leaq 0x24af5(%rip), %rcx     # 0x27fd4
movw %ax, (%rcx)
movq 0x9c57(%rip), %rdi      # 0xd140
testq %rdi, %rdi
je 0x3516
xorl %ebx, %ebx
leaq 0x243b9(%rip), %r14     # 0x278b0
leaq 0x9c42(%rip), %r15      # 0xd140
callq 0x379b
movw %ax, (%rbx,%r14)
movq 0x8(%r15,%rbx,4), %rdi
addq $0x2, %rbx
testq %rdi, %rdi
jne 0x34fe
movq 0x9c73(%rip), %rdi      # 0xd190
testq %rdi, %rdi
je 0x354a
xorl %ebx, %ebx
leaq 0x243a5(%rip), %r14     # 0x278d0
leaq 0x9c5e(%rip), %r15      # 0xd190
callq 0x379b
movw %ax, (%rbx,%r14)
movq 0x8(%r15,%rbx,4), %rdi
addq $0x2, %rbx
testq %rdi, %rdi
jne 0x3532
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/news.c
// Function: getClass
object getClass(register object obj)
{
    if (isInteger(obj))
    {
        if (intClass == nilobj)
            intClass = globalSymbol("Integer");
        return (intClass);
    }
    return (classField(obj));
}

// Assembly:
pushq %rbx
movl %edi, %ebx
callq 0x2ed2
testl %eax, %eax
je 0x35a0
movzwl 0x24390(%rip), %eax     # 0x2790c
testw %ax, %ax
jne 0x35b8
leaq 0x2430c(%rip), %rax     # 0x27894
movswl (%rax), %edi
leaq 0x5d69(%rip), %rsi      # 0x92fb
callq 0x345c
movw %ax, 0x2436e(%rip)      # 0x2790c
jmp 0x35b8
movswl %bx, %eax
shrl %eax
movswq %ax, %rax
shlq $0x4, %rax
leaq 0xac8c(%rip), %rcx      # 0xe240
movzwl (%rcx,%rax), %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/news.c
// Function: newArray
object newArray(int size)
{
    object newObj;

    newObj = allocObject(size);
    if (arrayClass == nilobj)
        arrayClass = globalSymbol("Array");
    setClass(newObj, arrayClass);
    return newObj;
}

// Assembly:
pushq %rbx
callq 0x2d09
movl %eax, %ebx
movzwl 0x24345(%rip), %eax     # 0x2790e
testw %ax, %ax
jne 0x35eb
leaq 0x242bf(%rip), %rax     # 0x27894
movswl (%rax), %edi
leaq 0x5adf(%rip), %rsi      # 0x90be
callq 0x345c
movw %ax, 0x24323(%rip)      # 0x2790e
movswl %bx, %ecx
shrl %ecx
movswq %cx, %rcx
shlq $0x4, %rcx
leaq 0xac41(%rip), %rdx      # 0xe240
movw %ax, (%rdx,%rcx)
movswl %ax, %edi
callq 0x2eda
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/news.c
// Function: newChar
object newChar(int value)
{
    object newobj;

    newobj = allocObject(1);
    basicAtPut(newobj, 1, newInteger(value));
    setClass(newobj, globalSymbol("Char"));
    return (newobj);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebp
movl $0x1, %edi
callq 0x2d09
movswl %ax, %ebx
movl %ebp, %edi
callq 0x3130
movl %ebx, %ecx
shrl %ecx
movswq %cx, %r14
shlq $0x4, %r14
leaq 0xab78(%rip), %r15      # 0xe240
movq 0x8(%r15,%r14), %rcx
movw %ax, (%rcx)
movswl %ax, %edi
callq 0x2eda
leaq 0x241b5(%rip), %rax     # 0x27894
movswl (%rax), %edi
leaq 0x5c20(%rip), %rsi      # 0x9309
callq 0x345c
movw %ax, (%r15,%r14)
movswl %ax, %edi
callq 0x2eda
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/afi-lambda[P]a_little_smalltalk/src/news.c
// Function: newClass
object newClass(const char *name)
{
    object newObj, nameObj;

    newObj = allocObject(classSize);
    setClass(newObj, globalSymbol("Class"));

    /* now make name */
    nameObj = newSymbol(name);
    basicAtPut(newObj, nameInClass, nameObj);

    /* now put in global symbols table */
    nameTableInsert(symbols, strHash(name), nameObj, newObj);

    return newObj;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x5, %edi
callq 0x2d09
movl %eax, %ebp
leaq 0x2416e(%rip), %r15     # 0x27894
movswl (%r15), %edi
leaq 0x597e(%rip), %rsi      # 0x90af
callq 0x345c
movswl %bp, %ebp
movl %ebp, %ecx
shrl %ecx
movswq %cx, %r14
shlq $0x4, %r14
leaq 0xaaf4(%rip), %r12      # 0xe240
movw %ax, (%r12,%r14)
movswl %ax, %edi
callq 0x2eda
movq %rbx, %rdi
callq 0x379b
movq 0x8(%r12,%r14), %rcx
movw %ax, (%rcx)
movswl %ax, %r14d
movl %r14d, %edi
callq 0x2eda
movswl (%r15), %r15d
movq %rbx, %rdi
callq 0x3344
movl %r15d, %edi
movl %eax, %esi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x313c
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq