LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/mijallen[P]SimpleHTTPServer/lib/libyaml/src/emitter.c
// Function: yaml_emitter_increase_indent
static int
yaml_emitter_increase_indent(yaml_emitter_t *emitter,
        int flow, int indentless)
{
    if (!PUSH(emitter, emitter->indents, emitter->indent))
        return 0;

    if (emitter->indent < 0) {
        emitter->indent = flow ? emitter->best_indent : 0;
    }
    else if (!indentless) {
        emitter->indent += emitter->best_indent;
    }

    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq 0xe0(%rdi), %rax
cmpq 0xd8(%rdi), %rax
jne 0x158f6
leaq 0xe0(%rbx), %r15
leaq 0xd8(%rbx), %rdx
leaq 0xd0(%rbx), %rdi
movq %r15, %rsi
callq 0x20e0
testl %eax, %eax
je 0x15931
movq (%r15), %rax
movl 0x100(%rbx), %ecx
leaq 0x4(%rax), %rdx
movq %rdx, 0xe0(%rbx)
movl %ecx, (%rax)
testl %ecx, %ecx
js 0x15924
movl $0x1, %eax
testl %ebp, %ebp
jne 0x15948
addl 0x80(%rbx), %ecx
movl %ecx, 0x100(%rbx)
jmp 0x15948
testl %r14d, %r14d
je 0x1593b
movl 0x80(%rbx), %eax
jmp 0x1593d
movl $0x1, (%rbx)
xorl %eax, %eax
jmp 0x15948
xorl %eax, %eax
movl %eax, 0x100(%rbx)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mijallen[P]SimpleHTTPServer/lib/libyaml/src/emitter.c
// Function: yaml_emitter_analyze_anchor
static int
yaml_emitter_analyze_anchor(yaml_emitter_t *emitter,
        yaml_char_t *anchor, int alias)
{
    size_t anchor_length;
    yaml_string_t string;
    
    anchor_length = strlen((char *)anchor);
    STRING_ASSIGN(string, anchor, anchor_length);

    if (string.start == string.end) {
        return yaml_emitter_set_emitter_error(emitter, alias ?
                "alias value must not be empty" :
                "anchor value must not be empty");
    }

    while (string.pointer != string.end) {
        if (!IS_ALPHA(string)) {
            return yaml_emitter_set_emitter_error(emitter, alias ?
                    "alias value must contain alphanumerical characters only" :
                    "anchor value must contain alphanumerical characters only");
        }
        MOVE(string);
    }

    emitter->anchor_data.anchor = string.start;
    emitter->anchor_data.anchor_length = string.end - string.start;
    emitter->anchor_data.alias = alias;

    return 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x20d0
testq %rax, %rax
je 0x15bef
xorl %ecx, %ecx
movzbl (%r14,%rcx), %edx
leal -0x30(%rdx), %esi
cmpb $0xa, %sil
jb 0x15bcc
movl %edx, %esi
andb $-0x21, %sil
addb $-0x41, %sil
cmpb $0x1a, %sil
jb 0x15bcc
cmpl $0x2d, %edx
je 0x15bcc
cmpl $0x5f, %edx
jne 0x15c01
incq %rcx
cmpq %rcx, %rax
jne 0x15ba4
movq %r14, 0x130(%rbx)
movq %rax, 0x138(%rbx)
movl %ebp, 0x140(%rbx)
movl $0x1, %eax
jmp 0x15c21
testl %ebp, %ebp
leaq 0x335a(%rip), %rax      # 0x18f52
leaq 0x3335(%rip), %rcx      # 0x18f34
jmp 0x15c11
testl %ebp, %ebp
leaq 0x339f(%rip), %rax      # 0x18fa9
leaq 0x3360(%rip), %rcx      # 0x18f71
cmoveq %rax, %rcx
movl $0x7, (%rbx)
movq %rcx, 0x8(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mijallen[P]SimpleHTTPServer/lib/libyaml/src/emitter.c
// Function: yaml_emitter_analyze_tag
static int
yaml_emitter_analyze_tag(yaml_emitter_t *emitter,
        yaml_char_t *tag)
{
    size_t tag_length;
    yaml_string_t string;
    yaml_tag_directive_t *tag_directive;

    tag_length = strlen((char *)tag);
    STRING_ASSIGN(string, tag, tag_length);

    if (string.start == string.end) {
        return yaml_emitter_set_emitter_error(emitter,
                "tag value must not be empty");
    }

    for (tag_directive = emitter->tag_directives.start;
            tag_directive != emitter->tag_directives.top; tag_directive ++) {
        size_t prefix_length = strlen((char *)tag_directive->prefix);
        if (prefix_length < (size_t)(string.end - string.start)
                && strncmp((char *)tag_directive->prefix, (char *)string.start,
                    prefix_length) == 0)
        {
            emitter->tag_data.handle = tag_directive->handle;
            emitter->tag_data.handle_length =
                strlen((char *)tag_directive->handle);
            emitter->tag_data.suffix = string.start + prefix_length;
            emitter->tag_data.suffix_length =
                (string.end - string.start) - prefix_length;
            return 1;
        }
    }

    emitter->tag_data.suffix = string.start;
    emitter->tag_data.suffix_length = string.end - string.start;

    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
movq %rsi, %rdi
callq 0x20d0
testq %rax, %rax
je 0x15caf
movq %rax, %r14
movq 0xe8(%rbx), %rbp
movq %rbx, 0x10(%rsp)
movq 0xf8(%rbx), %rbx
cmpq %rbx, %rbp
je 0x15c95
movq 0x8(%rbp), %r13
movq %r13, %rdi
callq 0x20d0
movq %r14, %r15
subq %rax, %r15
jbe 0x15c8f
movq %rax, %r12
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
callq 0x2050
testl %eax, %eax
je 0x15cc4
addq $0x10, %rbp
jmp 0x15c5f
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rcx, 0x158(%rax)
movq %r14, 0x160(%rax)
jmp 0x15cf6
movl $0x7, (%rbx)
leaq 0x3326(%rip), %rax      # 0x18fe2
movq %rax, 0x8(%rbx)
xorl %eax, %eax
jmp 0x15cfb
movq (%rbp), %rdi
movq 0x10(%rsp), %rbx
movq %rdi, 0x148(%rbx)
callq 0x20d0
movq %rax, 0x150(%rbx)
movq 0x8(%rsp), %rax
addq %r12, %rax
movq %rax, 0x158(%rbx)
movq %r15, 0x160(%rbx)
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/mijallen[P]SimpleHTTPServer/lib/libyaml/src/dumper.c
// Function: yaml_emitter_open
YAML_DECLARE(int)
yaml_emitter_open(yaml_emitter_t *emitter)
{
    yaml_event_t event;
    yaml_mark_t mark = { 0, 0, 0 };

    assert(emitter);            /* Non-NULL emitter object is required. */
    assert(!emitter->opened);   /* Emitter should not be opened yet. */

    STREAM_START_EVENT_INIT(event, YAML_ANY_ENCODING, mark, mark);

    if (!yaml_emitter_emit(emitter, &event)) {
        return 0;
    }

    emitter->opened = 1;

    return 1;
}

// Assembly:
pushq %rbx
subq $0x70, %rsp
testq %rdi, %rdi
je 0x15d72
movq %rdi, %rbx
cmpl $0x0, 0x190(%rdi)
jne 0x15d91
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
movq $0x0, 0x30(%rsi)
movl $0x1, (%rsi)
movups %xmm0, 0x38(%rsi)
movups %xmm0, 0x48(%rsi)
movups %xmm0, 0x58(%rsi)
movq %rbx, %rdi
callq 0x20f0
testl %eax, %eax
je 0x15d6a
movl $0x1, 0x190(%rbx)
movl $0x1, %eax
jmp 0x15d6c
xorl %eax, %eax
addq $0x70, %rsp
popq %rbx
retq
leaq 0x1464(%rip), %rdi      # 0x171dd
leaq 0x327e(%rip), %rsi      # 0x18ffe
leaq 0x3280(%rip), %rcx      # 0x19007
movl $0x43, %edx
callq 0x2100
leaq 0x3297(%rip), %rdi      # 0x1902f
leaq 0x325f(%rip), %rsi      # 0x18ffe
leaq 0x3261(%rip), %rcx      # 0x19007
movl $0x44, %edx
callq 0x2100
// File: /workspace/github_c_makefile_star2_O3/mijallen[P]SimpleHTTPServer/lib/libyaml/src/dumper.c
// Function: yaml_emitter_close
YAML_DECLARE(int)
yaml_emitter_close(yaml_emitter_t *emitter)
{
    yaml_event_t event;
    yaml_mark_t mark = { 0, 0, 0 };

    assert(emitter);            /* Non-NULL emitter object is required. */
    assert(emitter->opened);    /* Emitter should be opened. */

    if (emitter->closed) return 1;

    STREAM_END_EVENT_INIT(event, mark, mark);

    if (!yaml_emitter_emit(emitter, &event)) {
        return 0;
    }

    emitter->closed = 1;

    return 1;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
testq %rdi, %rdi
je 0x15e27
movq %rdi, %r14
cmpl $0x0, 0x190(%rdi)
je 0x15e46
movl $0x1, %ebx
cmpl $0x0, 0x194(%r14)
jne 0x15e1d
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
movq $0x0, 0x30(%rsi)
movl $0x2, (%rsi)
movups %xmm0, 0x38(%rsi)
movups %xmm0, 0x48(%rsi)
movups %xmm0, 0x58(%rsi)
movq %r14, %rdi
callq 0x20f0
testl %eax, %eax
je 0x15e1b
movl $0x1, 0x194(%r14)
jmp 0x15e1d
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
retq
leaq 0x13af(%rip), %rdi      # 0x171dd
leaq 0x31c9(%rip), %rsi      # 0x18ffe
leaq 0x3204(%rip), %rcx      # 0x19040
movl $0x5b, %edx
callq 0x2100
leaq 0x31e3(%rip), %rdi      # 0x19030
leaq 0x31aa(%rip), %rsi      # 0x18ffe
leaq 0x31e5(%rip), %rcx      # 0x19040
movl $0x5c, %edx
callq 0x2100
// File: /workspace/github_c_makefile_star2_O3/mijallen[P]SimpleHTTPServer/lib/libyaml/src/dumper.c
// Function: yaml_emitter_delete_document_and_anchors
static void
yaml_emitter_delete_document_and_anchors(yaml_emitter_t *emitter)
{
    int index;

    if (!emitter->anchors) {
        yaml_document_delete(emitter->document);
        emitter->document = NULL;
        return;
    }

    for (index = 0; emitter->document->nodes.start + index
            < emitter->document->nodes.top; index ++) {
        yaml_node_t node = emitter->document->nodes.start[index];
        if (!emitter->anchors[index].serialized) {
            yaml_free(node.tag);
            if (node.type == YAML_SCALAR_NODE) {
                yaml_free(node.data.scalar.value);
            }
        }
        if (node.type == YAML_SEQUENCE_NODE) {
            STACK_DEL(emitter, node.data.sequence.items);
        }
        if (node.type == YAML_MAPPING_NODE) {
            STACK_DEL(emitter, node.data.mapping.pairs);
        }
    }

    STACK_DEL(emitter, emitter->document->nodes);
    yaml_free(emitter->anchors);

    emitter->anchors = NULL;
    emitter->last_anchor_id = 0;
    emitter->document = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x198(%rdi)
movq 0x1a8(%rdi), %rdi
je 0x160bc
movq (%rdi), %rax
cmpq 0x10(%rdi), %rax
jae 0x160c3
movl $0x8, %r15d
movl $0x60, %r12d
movl (%rax), %ebp
movq 0x10(%rax), %r14
movq 0x198(%rbx), %rcx
cmpl $0x0, (%rcx,%r15)
je 0x160aa
andl $-0x2, %ebp
cmpl $0x2, %ebp
jne 0x16080
movq %r14, %rdi
callq 0x2140
movq 0x1a8(%rbx), %rcx
movq (%rcx), %rdi
leaq (%rdi,%r12), %rax
addq $0xc, %r15
leaq (%rdi,%r12), %rdx
addq $0x60, %rdx
addq $0x60, %r12
addq $-0x60, %rdx
cmpq 0x10(%rcx), %rdx
jb 0x1605c
jmp 0x160c6
movq 0x8(%rax), %rdi
callq 0x2140
decl %ebp
cmpl $0x3, %ebp
jb 0x16078
jmp 0x16080
callq 0x2110
jmp 0x160fc
movq %rax, %rdi
callq 0x2140
movq 0x1a8(%rbx), %rax
xorl %r14d, %r14d
movq %r14, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq 0x198(%rbx), %rdi
callq 0x2140
movq %r14, 0x198(%rbx)
movl $0x0, 0x1a0(%rbx)
movq $0x0, 0x1a8(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mijallen[P]SimpleHTTPServer/lib/libyaml/src/dumper.c
// Function: yaml_emitter_anchor_node
static void
yaml_emitter_anchor_node(yaml_emitter_t *emitter, int index)
{
    yaml_node_t *node = emitter->document->nodes.start + index - 1;
    yaml_node_item_t *item;
    yaml_node_pair_t *pair;

    emitter->anchors[index-1].references ++;

    if (emitter->anchors[index-1].references == 1) {
        switch (node->type) {
            case YAML_SEQUENCE_NODE:
                for (item = node->data.sequence.items.start;
                        item < node->data.sequence.items.top; item ++) {
                    yaml_emitter_anchor_node(emitter, *item);
                }
                break;
            case YAML_MAPPING_NODE:
                for (pair = node->data.mapping.pairs.start;
                        pair < node->data.mapping.pairs.top; pair ++) {
                    yaml_emitter_anchor_node(emitter, pair->key);
                    yaml_emitter_anchor_node(emitter, pair->value);
                }
                break;
            default:
                break;
        }
    }

    else if (emitter->anchors[index-1].references == 2) {
        emitter->anchors[index-1].anchor = (++ emitter->last_anchor_id);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x1a8(%rdi), %rax
movslq %esi, %rcx
leaq (%rcx,%rcx,2), %r14
shlq $0x5, %r14
addq (%rax), %r14
movq 0x198(%rdi), %rax
decl %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movl (%rax,%rcx,4), %edx
leal 0x1(%rdx), %esi
movl %esi, (%rax,%rcx,4)
cmpl $0x1, %edx
je 0x16178
testl %edx, %edx
jne 0x1618a
movl -0x60(%r14), %eax
cmpl $0x3, %eax
je 0x16190
cmpl $0x2, %eax
jne 0x1618a
movq -0x50(%r14), %r15
cmpq -0x40(%r14), %r15
jae 0x1618a
movl (%r15), %esi
movq %rbx, %rdi
callq 0x16110
addq $0x4, %r15
jmp 0x16161
movl 0x1a0(%rbx), %edx
incl %edx
movl %edx, 0x1a0(%rbx)
movl %edx, 0x4(%rax,%rcx,4)
popq %rbx
popq %r14
popq %r15
retq
movq -0x50(%r14), %r15
cmpq -0x40(%r14), %r15
jae 0x1618a
movl (%r15), %esi
movq %rbx, %rdi
callq 0x16110
movl 0x4(%r15), %esi
movq %rbx, %rdi
callq 0x16110
addq $0x8, %r15
jmp 0x16194
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32lc/KeccakP-800-opt32.c
// Function: KeccakP800_OverwriteBytes
void KeccakP800_OverwriteBytes(void *argState, const unsigned char *data, unsigned int offset, unsigned int length)
{
#if (PLATFORM_BYTE_ORDER == IS_LITTLE_ENDIAN)
#ifdef KeccakP800_useLaneComplementing
    unsigned int sizeLeft = length;
    unsigned int lanePosition = offset/4;
    unsigned int offsetInLane = offset%4;
    const unsigned char *curData = data;
    UINT32 *state = (UINT32*)argState;

    if ((sizeLeft > 0) && (offsetInLane != 0)) {
        unsigned int bytesInLane = 4 - offsetInLane;
        unsigned char laneComplement = (unsigned char)KeccakP800LaneComplement[lanePosition];
        if (bytesInLane > sizeLeft)
            bytesInLane = sizeLeft;
        sizeLeft -= bytesInLane;
        do {
            *(((unsigned char *)&state[lanePosition] + offsetInLane)) = *curData++ ^ laneComplement;
            ++offsetInLane;
        }
        while ( --bytesInLane != 0);
        lanePosition++;
    }

    while(sizeLeft >= 4) {
        state[lanePosition] = READ32_UNALIGNED( curData ) ^ KeccakP800LaneComplement[lanePosition];
        sizeLeft -= 4;
        lanePosition++;
        curData += 4;
    }

    if (sizeLeft > 0) {
        unsigned char laneComplement = (unsigned char)KeccakP800LaneComplement[lanePosition];
        unsigned int i;
        for ( i = 0; i < sizeLeft; ++i ) {
            *((unsigned char *)&state[lanePosition] + i) = *curData++ ^ laneComplement;
        }
    }
#else
    memcpy((unsigned char*)argState+offset, data, length);
#endif
#else
#error "Not yet implemented"
#endif
}

// Assembly:
pushq %rbx
movl %edx, %eax
shrl $0x2, %eax
testl %ecx, %ecx
sete %r8b
andl $0x3, %edx
sete %r9b
orb %r8b, %r9b
jne 0x9582
movl $0x4, %r8d
subl %edx, %r8d
leal (,%rax,4), %r9d
movq 0xdaaa(%rip), %r10      # 0x16ff0
movb (%r10,%r9), %r10b
cmpl %ecx, %r8d
movl %ecx, %r9d
cmovbl %r8d, %r9d
leal (%rdx,%rax,4), %edx
addq %rdi, %rdx
movl %ecx, %r11d
cmpq %r8, %r11
cmovbq %r11, %r8
xorl %r11d, %r11d
movb (%rsi,%r11), %bl
xorb %r10b, %bl
movb %bl, (%rdx,%r11)
incq %r11
cmpl %r11d, %r8d
jne 0x9567
subl %r9d, %ecx
incl %eax
addq %r11, %rsi
cmpl $0x4, %ecx
jb 0x95aa
movl %eax, %eax
movq 0xda60(%rip), %rdx      # 0x16ff0
movl (%rdx,%rax,4), %r8d
xorl (%rsi), %r8d
movl %r8d, (%rdi,%rax,4)
addl $-0x4, %ecx
incq %rax
addq $0x4, %rsi
cmpl $0x3, %ecx
ja 0x9590
testl %ecx, %ecx
je 0x95d5
movl %eax, %edx
movq 0xda39(%rip), %rax      # 0x16ff0
movb (%rax,%rdx,4), %al
leaq (%rdi,%rdx,4), %rdx
movl %ecx, %ecx
xorl %edi, %edi
movb (%rsi,%rdi), %r8b
xorb %al, %r8b
movb %r8b, (%rdx,%rdi)
incq %rdi
cmpq %rdi, %rcx
jne 0x95c2
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32lc/KeccakP-800-opt32.c
// Function: KeccakP800_ExtractBytes
void KeccakP800_ExtractBytes(const void *argState, unsigned char *data, unsigned int offset, unsigned int length)
{
#if (PLATFORM_BYTE_ORDER == IS_LITTLE_ENDIAN)
#ifdef KeccakP800_useLaneComplementing
    unsigned int sizeLeft = length;
    unsigned int lanePosition = offset/4;
    unsigned int offsetInLane = offset%4;
    unsigned char *curData = data;
    const UINT32 *state = (const UINT32*)argState;
    const UINT32 *pLaneComplement;

    state += lanePosition;
    pLaneComplement = KeccakP800LaneComplement + lanePosition;
    if ((sizeLeft > 0) && (offsetInLane != 0)) {
        unsigned int bytesInLane = 4 - offsetInLane;
        UINT32  lane = (*state++ ^ *pLaneComplement++) >> (offsetInLane * 8);
        if (bytesInLane > sizeLeft)
            bytesInLane = sizeLeft;
        sizeLeft -= bytesInLane;
        do {
            *curData++ = (unsigned char)lane;
            lane >>= 8;
        }
        while ( --bytesInLane != 0);
        lanePosition++;
    }

    while(sizeLeft >= 4) {
        WRITE32_UNALIGNED( curData, *state++ ^ *pLaneComplement++ );
        sizeLeft -= 4;
        curData += 4;
    }

    if (sizeLeft > 0) {
        UINT32  lane = *state ^ *pLaneComplement;
        unsigned int i;
        for ( i = 0; i < sizeLeft; ++i ) {
            *curData++ = (unsigned char)lane;
            lane >>= 8;
        }
    }
#else
    memcpy(data, (unsigned char*)argState+offset, length);
#endif
#else
#error "Not yet implemented"
#endif
}

// Assembly:
movl %edx, %eax
andl $-0x4, %eax
addq %rax, %rdi
addq 0xca12(%rip), %rax      # 0x16ff0
testl %ecx, %ecx
sete %r8b
andl $0x3, %edx
sete %r9b
orb %r8b, %r9b
jne 0xa629
movl $0x4, %r8d
subl %edx, %r8d
movl (%rax), %r9d
xorl (%rdi), %r9d
shll $0x3, %edx
shrxl %edx, %r9d, %edx
cmpl %ecx, %r8d
cmovael %ecx, %r8d
movl %r8d, %r9d
movb %dl, (%rsi)
incq %rsi
shrl $0x8, %edx
decl %r9d
jne 0xa611
addq $0x4, %rdi
addq $0x4, %rax
subl %r8d, %ecx
cmpl $0x4, %ecx
jb 0xa648
movl (%rax), %edx
xorl (%rdi), %edx
addq $0x4, %rax
addq $0x4, %rdi
movl %edx, (%rsi)
addl $-0x4, %ecx
addq $0x4, %rsi
cmpl $0x3, %ecx
ja 0xa62e
testl %ecx, %ecx
je 0xa661
movl (%rax), %eax
xorl (%rdi), %eax
movl %ecx, %ecx
xorl %edx, %edx
movb %al, (%rsi,%rdx)
shrl $0x8, %eax
incq %rdx
cmpl %edx, %ecx
jne 0xa654
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/controls.c
// Function: CheckKevKeys
void CheckKevKeys()
{
  int i = 0;
  tU32 *value;
  char s[128];

  value = KevKeyService();
  if (value[0] == 0) {
    return;
  }

  for (i = 0; gKev_keys[i].action_proc != 0; i++) {
    if (gKev_keys[i].code == value[0] && gKev_keys[i].code2 == value[1]) {
        break;
    }
  }

  if (gKev_keys[i].action_proc == 0) {
        return;
  }
  gKev_keys[i].action_proc(gKev_keys[i].num);
}

// Assembly:
pushq %rax
xorl %eax, %eax
callq 0x2588
movq (%rax), %rcx
testq %rcx, %rcx
je 0x241f
movq 0x8d59(%rip), %rdx      # 0xb150
testq %rdx, %rdx
je 0x241f
leaq 0x8d3d(%rip), %rsi      # 0xb140
cmpq %rcx, (%rsi)
jne 0x2412
movq 0x8(%rsi), %rdi
cmpq 0x8(%rax), %rdi
je 0x2421
movq 0x30(%rsi), %rdx
addq $0x20, %rsi
testq %rdx, %rdx
jne 0x2403
popq %rax
retq
movl 0x18(%rsi), %edi
popq %rax
jmpq *%rdx
nop
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/errors.c
// Function: FatalError
void FatalError (int pStr_index, ...) {
	char the_str[1024];
	char temp_str[1024];
	char *sub_pt;
	char *sub_str;
	int i;
	va_list ap;
	sub_pt = temp_str;

	va_start(ap, pStr_index);

	int read_timer = 0;
	gError_code = 0x20000000 + read_timer;
	strcpy(the_str, gError_messages[pStr_index-1]);
	sub_pt = temp_str;

	for (i = 0; i < strlen(the_str); i++) {
		if (the_str[i] == '%') {
			sub_str = va_arg(ap, char*);
			StripCR(sub_str);
			strcpy(sub_pt, sub_str);
			sub_pt += strlen(sub_str);
		} else {
			*sub_pt = the_str[i];
			sub_pt++;
		}
	}
	*sub_pt = 0;
	va_end(ap);
	PDFatalError(temp_str);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x8d8, %rsp            # imm = 0x8D8
leaq 0x20(%rsp), %r10
movq %rsi, 0x8(%r10)
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x248a
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)
movq %r10, 0x10(%rsp)
leaq 0x900(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
movl $0x20000000, 0x9674(%rip) # imm = 0x20000000
movslq %edi, %rax
leaq 0x9202(%rip), %rcx      # 0xb6c0
movq -0x8(%rcx,%rax,8), %rsi
leaq 0x4d0(%rsp), %rbx
movq %rbx, %rdi
callq 0x2070
cmpb $0x0, (%rbx)
je 0x255e
leaq 0xd0(%rsp), %rbx
xorl %r12d, %r12d
leaq 0x4d0(%rsp), %r14
movb 0x4d0(%rsp,%r12), %al
cmpb $0x25, %al
jne 0x2514
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x251d
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x252b
movb %al, (%rbx)
movl $0x1, %eax
jmp 0x2549
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %r15
movq %r15, %rdi
callq 0x27b8
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2070
movq %r15, %rdi
callq 0x20d0
addq %rax, %rbx
incq %r12
movq %r14, %rdi
callq 0x20d0
cmpq %r12, %rax
ja 0x24ef
jmp 0x2566
leaq 0xd0(%rsp), %rbx
movb $0x0, (%rbx)
leaq 0xd0(%rsp), %rdi
callq 0x2ced
addq $0x8d8, %rsp            # imm = 0x8D8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/main.c
// Function: main
int main(int argc, const char *argv[]) {
  if (argc > 1) {
    if (strcmp("-test", argv[1]) == 0) {
      return UnityMain(argc, argv, Tests_Run); 
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
cmpl $0x2, %edi
jl 0x2795
movq %rsi, %rbx
movl %edi, %ebp
movq 0x8(%rsi), %rsi
leaq 0x59dd(%rip), %rdi      # 0x8169
callq 0x2160
testl %eax, %eax
je 0x279e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x38db(%rip), %rdx      # 0x6080
movl %ebp, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5710
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/utility.c
// Function: StripCR
void StripCR (char *s) {
  char *pos;
  pos = s;
  while (*pos != 0) {
    if (*pos == '\r' || *pos == '\n') {
      *pos = 0;
      break;
    }
    pos++;
  }
}

// Assembly:
movzbl (%rdi), %eax
testl %eax, %eax
je 0x27d1
cmpl $0xd, %eax
je 0x27ce
cmpl $0xa, %eax
je 0x27ce
incq %rdi
jmp 0x27b8
movb $0x0, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/utility.c
// Function: EncodeFileWrapper
void EncodeFileWrapper (char *pThe_path) {
  int len = strlen(pThe_path);

  if (strcmp(&pThe_path[len - 4], ".TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "DKEYMAP0.TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "DKEYMAP1.TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "DKEYMAP2.TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "DKEYMAP3.TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "KEYMAP_0.TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "KEYMAP_1.TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "KEYMAP_2.TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "KEYMAP_3.TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "OPTIONS.TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "KEYNAMES.TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "KEYMAP.TXT") == 0) {
    return;
  }
  if (strcmp(pThe_path, "PATHS.TXT") == 0) {
    return;
  }

  EncodeFile(pThe_path);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x20d0
addl $-0x4, %eax
movslq %eax, %rdi
addq %rbx, %rdi
leaq 0x598c(%rip), %rsi      # 0x8177
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x5970(%rip), %rsi      # 0x816f
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x5966(%rip), %rsi      # 0x817c
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x595c(%rip), %rsi      # 0x8189
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x5952(%rip), %rsi      # 0x8196
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x5948(%rip), %rsi      # 0x81a3
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x593e(%rip), %rsi      # 0x81b0
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x5938(%rip), %rsi      # 0x81bd
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x5932(%rip), %rsi      # 0x81ca
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x592c(%rip), %rsi      # 0x81d7
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x5925(%rip), %rsi      # 0x81e3
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x591f(%rip), %rsi      # 0x81f0
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
leaq 0x5917(%rip), %rsi      # 0x81fb
movq %rbx, %rdi
callq 0x2160
testl %eax, %eax
je 0x28f9
movq %rbx, %rdi
popq %rbx
jmp 0x28fb
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/utility.c
// Function: EncodeLine2
void EncodeLine2(char *pS)
{
  int len;
  int seed;
  int i;
  int count;
  unsigned char c;
  char *key;

  len = strlen(pS);
  count = 0;
  key = gLong_key;
  while ( len > 0 && (pS[len - 1] == 13 || pS[len - 1] == 10))
  {
    --len;
    pS[len] = 0;
  }

  seed = len % 16;
  
  for ( i = 0; i < len; ++pS )
  {
    if ( count == 2 )
      key = gOther_long_key;
    if ( *pS == '/' )
    {
      ++count;
    }
    else {
      count = 0;
    }
    if ( *pS == '\t' ) {
      *pS = 0x80;
    }
    c = *pS - 0x20;
    if (!(c & 0x80)) {
      c = c ^ (key[seed] & 0x7F);
      c += 0x20;
    }
    seed += 7;
    seed = seed % 16;
    
    if ( c == 0x80 ) {
      c = '\t';
    }
    *pS = c;
    ++i;
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x20d0
testl %eax, %eax
jle 0x2b95
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movzbl -0x1(%rbx,%rax), %ecx
cmpl $0xd, %ecx
je 0x2ae7
cmpl $0xa, %ecx
jne 0x2afe
movb $0x0, -0x1(%rbx,%rax)
leaq -0x1(%rax), %rcx
cmpq $0x1, %rax
movq %rcx, %rax
jg 0x2ad8
jmp 0x2b95
testq %rax, %rax
jle 0x2b95
xorl %ecx, %ecx
leaq 0x8fc0(%rip), %rdx      # 0xbad0
leaq 0x8fc9(%rip), %rsi      # 0xbae0
movl $0x9, %edi
xorl %r8d, %r8d
movl %eax, %r9d
xorl %r10d, %r10d
leal 0xf(%r9), %r11d
testl %r9d, %r9d
cmovnsl %r9d, %r11d
andl $-0x10, %r11d
subl %r11d, %r9d
cmpl $0x2, %r10d
cmoveq %rsi, %rdx
movb (%rbx,%r8), %r11b
incl %r10d
cmpb $0x2f, %r11b
cmovnel %ecx, %r10d
cmpb $0x9, %r11b
jne 0x2b5e
movb $-0x80, (%rbx,%r8)
movb $0x60, %r11b
jmp 0x2b64
addb $-0x20, %r11b
js 0x2b79
movslq %r9d, %r14
movb (%rdx,%r14), %bpl
andb $0x7f, %bpl
xorb %r11b, %bpl
addb $0x20, %bpl
movl %ebp, %r11d
addl $0x7, %r9d
cmpb $-0x80, %r11b
movzbl %r11b, %r11d
cmovel %edi, %r11d
movb %r11b, (%rbx,%r8)
incq %r8
cmpl %r8d, %eax
jne 0x2b25
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/utility.c
// Function: DecodeLine2
void DecodeLine2(char *pS)
{
  int len;
  int seed;
  int i;
  int count;
  unsigned char c;
  char *key;

  len = strlen(pS);
  count = 0;
  key = gLong_key;
  while ( len > 0 && (pS[len - 1] == 13 || pS[len - 1] == 10))
  {
    --len;
    pS[len] = 0;
  }
  seed = len % 16;
  for ( i = 0; i < len; i++)
  {
    c = pS[i];
    if (i >= 2) {
      if (pS[i - 1] == '/' && pS[i - 2] == '/') {
        key = gOther_long_key;
      }
    }
    if (gEncryption_method == 1) 
    { 
      if ( c == '\t' ) {
        c = 0x80;
      }
      c -= 0x20;
      if (!(c & 0x80)) {
        c = (c ^ key[seed]) & 0x7f;
        c += 0x20;
      }
      seed += 7;
      seed = seed % 16;
      
      if ( c == 0x80 ) {
        c = '\t';
      }
    }
    else {
      if (c == '\t') {
        c = 0x9f;
      }
      c -= 0x20;
      c = (c ^ key[seed]) & 0x7f;
      c += 0x20;

      seed += 7;
      seed = seed % 16;
      
      if ( c == 0x9f ) {
        c = '\t';
      }
    }
    pS[i] = c;
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x20d0
testl %eax, %eax
jle 0x2ca5
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movzbl -0x1(%rbx,%rax), %ecx
cmpl $0xd, %ecx
je 0x2bc2
cmpl $0xa, %ecx
jne 0x2bd9
movb $0x0, -0x1(%rbx,%rax)
leaq -0x1(%rax), %rcx
cmpq $0x1, %rax
movq %rcx, %rax
jg 0x2bb3
jmp 0x2ca5
testq %rax, %rax
jle 0x2ca5
movl %eax, %ecx
leaq 0x8ee5(%rip), %rdx      # 0xbad0
xorl %esi, %esi
leaq 0x8eec(%rip), %rdi      # 0xbae0
movl $0x60, %r8d
movl $0x9, %r9d
movl $0x7f, %r10d
leal 0xf(%rax), %r11d
testl %eax, %eax
cmovnsl %eax, %r11d
cmpq $0x2, %rsi
jb 0x2c26
cmpb $0x2f, -0x1(%rbx,%rsi)
jne 0x2c26
cmpb $0x2f, -0x2(%rbx,%rsi)
cmoveq %rdi, %rdx
andl $-0x10, %r11d
subl %r11d, %eax
movb (%rbx,%rsi), %r14b
cmpl $0x1, 0x8e88(%rip)      # 0xbac0
jne 0x2c67
leal -0x20(%r14), %r11d
cmpb $0x9, %r14b
movzbl %r11b, %ebp
cmovel %r8d, %ebp
testb %bpl, %bpl
js 0x2c61
movslq %eax, %r11
movb (%rdx,%r11), %r11b
andb $0x7f, %r11b
xorb %bpl, %r11b
addb $0x20, %r11b
cmpb $-0x80, %r11b
jmp 0x2c8a
leal 0x60(%r14), %r11d
cmpb $0x9, %r14b
movzbl %r11b, %r11d
cmovel %r10d, %r11d
movslq %eax, %r14
xorb (%rdx,%r14), %r11b
andb $0x7f, %r11b
addb $0x20, %r11b
cmpb $-0x61, %r11b
movzbl %r11b, %r11d
cmovel %r9d, %r11d
addl $0x7, %eax
movb %r11b, (%rbx,%rsi)
incq %rsi
cmpq %rsi, %rcx
jne 0x2c06
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/log/zf_log.c
// Function: zf_log_write_mem_d
void _zf_log_write_mem_d(
        const char *const func, const char *const file, const unsigned line,
        const int lvl, const char *const tag,
        const void *const d, const unsigned d_sz,
        const char *const fmt, ...)
{
    const src_location src = {func, file, line};
    const mem_block mem = {d, d_sz};
    va_list va;
    va_start(va, fmt);
    _zf_log_write_imp(&global_spec, &src, &mem, lvl, tag, fmt, va);
    va_end(va);
}

// Assembly:
subq $0x108, %rsp            # imm = 0x108
testb %al, %al
je 0x3cb1
movaps %xmm0, 0x80(%rsp)
movaps %xmm1, 0x90(%rsp)
movaps %xmm2, 0xa0(%rsp)
movaps %xmm3, 0xb0(%rsp)
movaps %xmm4, 0xc0(%rsp)
movaps %xmm5, 0xd0(%rsp)
movaps %xmm6, 0xe0(%rsp)
movaps %xmm7, 0xf0(%rsp)
movq 0x118(%rsp), %rax
movl 0x110(%rsp), %r11d
leaq 0x38(%rsp), %r10
movq %rdi, (%r10)
movq %rsi, 0x8(%r10)
movl %edx, 0x10(%r10)
leaq 0x10(%rsp), %rdx
movq %r9, (%rdx)
movl %r11d, 0x8(%rdx)
leaq 0x50(%rsp), %rsi
leaq 0x20(%rsp), %rdi
movq %rsi, 0x10(%rdi)
leaq 0x120(%rsp), %rsi
movq %rsi, 0x8(%rdi)
movabsq $0x3000000030, %rsi     # imm = 0x3000000030
movq %rsi, (%rdi)
movq %rdi, (%rsp)
leaq 0x70a9(%rip), %rdi      # 0xadb8
movq %r10, %rsi
movq %rax, %r9
callq 0x2df1
addq $0x108, %rsp            # imm = 0x108
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityPrintNumberHex
void UnityPrintNumberHex(const UNITY_UINT number, const char nibbles_to_print)
{
    int nibble;
    char nibbles = nibbles_to_print;
    if ((unsigned)nibbles > (2 * sizeof(number)))
    {
        nibbles = 2 * sizeof(number);
    }

    while (nibbles > 0)
    {
        nibbles--;
        nibble = (int)(number >> (nibbles * 4)) & 0x0F;
        if (nibble <= 9)
        {
            UNITY_OUTPUT_CHAR((char)('0' + nibble));
        }
        else
        {
            UNITY_OUTPUT_CHAR((char)('A' - 10 + nibble));
        }
    }
}

// Assembly:
cmpl $0x11, %esi
movl $0x10, %eax
cmovbl %esi, %eax
testb %al, %al
jle 0x4005
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movzbl %al, %r15d
leaq -0x4(,%r15,4), %r14
incq %r15
movq %rbx, %rax
movl %r14d, %ecx
shrq %cl, %rax
andl $0xf, %eax
leal 0x37(%rax), %ecx
leal 0x30(%rax), %edi
cmpl $0xa, %eax
cmovael %ecx, %edi
callq 0x2040
decq %r15
addq $-0x4, %r14
cmpq $0x1, %r15
ja 0x3fd6
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.c
// Function: UnityPrintLen
void UnityPrintLen(const char* string, const UNITY_UINT32 length)
{
    const char* pch = string;

    if (pch != NULL)
    {
        while (*pch && (UNITY_UINT32)(pch - string) < length)
        {
            /* printable characters plus CR & LF are printed */
            if ((*pch <= 126) && (*pch >= 32))
            {
                UNITY_OUTPUT_CHAR(*pch);
            }
            /* write escaped carriage returns */
            else if (*pch == 13)
            {
                UNITY_OUTPUT_CHAR('\\');
                UNITY_OUTPUT_CHAR('r');
            }
            /* write escaped line feeds */
            else if (*pch == 10)
            {
                UNITY_OUTPUT_CHAR('\\');
                UNITY_OUTPUT_CHAR('n');
            }
            /* unprintable characters are shown as codes */
            else
            {
                UNITY_OUTPUT_CHAR('\\');
                UNITY_OUTPUT_CHAR('x');
                UnityPrintNumberHex((UNITY_UINT)*pch, 2);
            }
            pch++;
        }
    }
}

// Assembly:
testq %rdi, %rdi
je 0x40a6
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
movb (%rdi), %r12b
testb %r12b, %r12b
sete %al
testl %esi, %esi
sete %cl
orb %al, %cl
jne 0x409e
movl $0x1, %r15d
leal -0x20(%r12), %eax
movzbl %r12b, %ebp
cmpb $0x5e, %al
ja 0x4045
movl %ebp, %edi
jmp 0x4066
movl $0x5c, %edi
callq 0x2040
cmpb $0xa, %r12b
je 0x4061
cmpl $0xd, %ebp
jne 0x4082
movl $0x72, %edi
jmp 0x4066
movl $0x6e, %edi
callq 0x2040
movb (%r14,%r15), %r12b
testb %r12b, %r12b
je 0x409e
leaq 0x1(%r15), %rax
cmpl %ebx, %r15d
movq %rax, %r15
jb 0x4034
jmp 0x409e
movl $0x78, %edi
callq 0x2040
movsbq -0x1(%r14,%r15), %rdi
movl $0x2, %esi
callq 0x3fb0
jmp 0x406b
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityPrintNumberByStyle
void UnityPrintNumberByStyle(const UNITY_INT number, const UNITY_DISPLAY_STYLE_T style)
{
    if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
    {
        UnityPrintNumber(number);
    }
    else if ((style & UNITY_DISPLAY_RANGE_UINT) == UNITY_DISPLAY_RANGE_UINT)
    {
        UnityPrintNumberUnsigned((UNITY_UINT)number);
    }
    else
    {
        UNITY_OUTPUT_CHAR('0');
        UNITY_OUTPUT_CHAR('x');
        UnityPrintNumberHex((UNITY_UINT)number, (char)((style & 0xF) * 2));
    }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
testb $0x10, %bpl
jne 0x40e8
testb $0x20, %bpl
jne 0x40f6
movl $0x30, %edi
callq 0x2040
movl $0x78, %edi
callq 0x2040
addb %bpl, %bpl
andb $0x1e, %bpl
movzbl %bpl, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3fb0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4104
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4123
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityPrintNumberUnsigned
void UnityPrintNumberUnsigned(const UNITY_UINT number)
{
    UNITY_UINT divisor = 1;

    /* figure out initial divisor */
    while (number / divisor > 9)
    {
        divisor *= 10;
    }

    /* now mod and print, then divide divisor */
    do
    {
        UNITY_OUTPUT_CHAR((char)('0' + (number / divisor % 10)));
        divisor /= 10;
    } while (divisor > 0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x1, %r14d
cmpq $0xa, %rdi
jb 0x414c
addq %r14, %r14
leaq (%r14,%r14,4), %r14
movq %rbx, %rax
xorl %edx, %edx
divq %r14
cmpq $0x9, %rax
ja 0x4137
movabsq $-0x3333333333333333, %r15 # imm = 0xCCCCCCCCCCCCCCCD
movq %rbx, %rax
xorl %edx, %edx
divq %r14
movq %rax, %rdi
mulq %r15
shrq $0x3, %rdx
addl %edx, %edx
leal (%rdx,%rdx,4), %eax
subl %eax, %edi
orl $0x30, %edi
callq 0x2040
movq %r14, %rax
mulq %r15
shrq $0x3, %rdx
cmpq $0x9, %r14
movq %rdx, %r14
ja 0x4156
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.c
// Function: UnityTestResultsBegin
static void UnityTestResultsBegin(const char* file, const UNITY_LINE_TYPE line)
{
    UnityPrint(file);
    UNITY_OUTPUT_CHAR(':');
    UnityPrintNumber((UNITY_INT)line);
    UNITY_OUTPUT_CHAR(':');
    UnityPrint(Unity.CurrentTestName);
    UNITY_OUTPUT_CHAR(':');
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
callq 0x3f36
movl $0x3a, %edi
callq 0x2040
movq %rbx, %rdi
callq 0x4104
movl $0x3a, %edi
callq 0x2040
movq 0x7839(%rip), %rdi      # 0xbe48
callq 0x3f36
movl $0x3a, %edi
popq %rbx
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityAssertBits
void UnityAssertBits(const UNITY_INT mask,
                     const UNITY_INT expected,
                     const UNITY_INT actual,
                     const char* msg,
                     const UNITY_LINE_TYPE lineNumber)
{
    RETURN_IF_FAIL_OR_IGNORE;

    if ((mask & expected) != (mask & actual))
    {
        UnityTestResultsFailBegin(lineNumber);
        UnityPrint(UnityStrExpected);
        UnityPrintMask((UNITY_UINT)mask, (UNITY_UINT)expected);
        UnityPrint(UnityStrWas);
        UnityPrintMask((UNITY_UINT)mask, (UNITY_UINT)actual);
        UnityAddMsgIfSpecified(msg);
        UNITY_FAIL_AND_BAIL;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x785a(%rip), %rax      # 0xbe88
orq 0x784b(%rip), %rax      # 0xbe80
jne 0x464b
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
movq %rdx, %rax
xorq %rsi, %rax
testq %rdi, %rax
jne 0x4657
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rcx, %rbx
movq %r8, %rdi
callq 0x46b4
leaq 0x3cca(%rip), %rdi      # 0x8333
callq 0x3f36
movq %r15, %rdi
movq %r12, %rsi
callq 0x4190
leaq 0x3cbe(%rip), %rdi      # 0x833e
callq 0x3f36
movq %r15, %rdi
movq %r14, %rsi
callq 0x4190
movq %rbx, %rdi
callq 0x46db
movq $0x1, 0x77dd(%rip) # 0xbe80
leaq 0x77e6(%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: UnityAddMsgIfSpecified
static void UnityAddMsgIfSpecified(const char* msg)
{
    if (msg)
    {
        UnityPrint(UnityStrSpacer);
#ifndef UNITY_EXCLUDE_DETAILS
        if (Unity.CurrentDetail1)
        {
            UnityPrint(UnityStrDetail1Name);
            UnityPrint(Unity.CurrentDetail1);
            if (Unity.CurrentDetail2)
            {
                UnityPrint(UnityStrDetail2Name);
                UnityPrint(Unity.CurrentDetail2);
            }
            UnityPrint(UnityStrSpacer);
        }
#endif
        UnityPrint(msg);
    }
}

// Assembly:
testq %rdi, %rdi
je 0x4749
pushq %rbx
movq %rdi, %rbx
leaq 0x3d98(%rip), %rdi      # 0x8483
callq 0x3f36
cmpq $0x0, 0x7758(%rip)      # 0xbe50
je 0x4740
leaq 0x3d6d(%rip), %rdi      # 0x846e
callq 0x3f36
movq 0x7743(%rip), %rdi      # 0xbe50
callq 0x3f36
cmpq $0x0, 0x773e(%rip)      # 0xbe58
je 0x4734
leaq 0x3d55(%rip), %rdi      # 0x8478
callq 0x3f36
movq 0x7729(%rip), %rdi      # 0xbe58
callq 0x3f36
leaq 0x3d48(%rip), %rdi      # 0x8483
callq 0x3f36
movq %rbx, %rdi
popq %rbx
jmp 0x3f36
retq
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityAssertEqualNumber
void UnityAssertEqualNumber(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 (expected != actual)
    {
        UnityTestResultsFailBegin(lineNumber);
        UnityPrint(UnityStrExpected);
        UnityPrintNumberByStyle(expected, style);
        UnityPrint(UnityStrWas);
        UnityPrintNumberByStyle(actual, style);
        UnityAddMsgIfSpecified(msg);
        UNITY_FAIL_AND_BAIL;
    }
}

// Assembly:
cmpq %rsi, %rdi
je 0x4763
cmpq $0x0, 0x7729(%rip)      # 0xbe80
jne 0x4763
cmpq $0x0, 0x7727(%rip)      # 0xbe88
je 0x4764
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %r8d, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rcx, %rdi
callq 0x46b4
leaq 0x3bad(%rip), %rdi      # 0x8333
callq 0x3f36
movq %r15, %rdi
movl %ebp, %esi
callq 0x40a7
leaq 0x3ba2(%rip), %rdi      # 0x833e
callq 0x3f36
movq %r14, %rdi
movl %ebp, %esi
callq 0x40a7
movq %rbx, %rdi
callq 0x46db
movq $0x1, 0x76c2(%rip) # 0xbe80
leaq 0x76cb(%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: UnityAssertGreaterOrLessOrEqualNumber
void UnityAssertGreaterOrLessOrEqualNumber(const UNITY_INT threshold,
                                           const UNITY_INT actual,
                                           const UNITY_COMPARISON_T compare,
                                           const char *msg,
                                           const UNITY_LINE_TYPE lineNumber,
                                           const UNITY_DISPLAY_STYLE_T style)
{
    int failed = 0;
    RETURN_IF_FAIL_OR_IGNORE;

    if (threshold == actual && compare & UNITY_EQUAL_TO) return;
    if (threshold == actual) failed = 1;

    if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
    {
        if (actual > threshold && compare & UNITY_SMALLER_THAN) failed = 1;
        if (actual < threshold && compare & UNITY_GREATER_THAN) failed = 1;
    }
    else /* UINT or HEX */
    {
        if ((UNITY_UINT)actual > (UNITY_UINT)threshold && compare & UNITY_SMALLER_THAN) failed = 1;
        if ((UNITY_UINT)actual < (UNITY_UINT)threshold && compare & UNITY_GREATER_THAN) failed = 1;
    }

    if (failed)
    {
        UnityTestResultsFailBegin(lineNumber);
        UnityPrint(UnityStrExpected);
        UnityPrintNumberByStyle(actual, style);
        if (compare & UNITY_GREATER_THAN) UnityPrint(UnityStrGt);
        if (compare & UNITY_SMALLER_THAN) UnityPrint(UnityStrLt);
        if (compare & UNITY_EQUAL_TO)     UnityPrint(UnityStrOrEqual);
        UnityPrintNumberByStyle(threshold, style);
        UnityAddMsgIfSpecified(msg);
        UNITY_FAIL_AND_BAIL;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x76aa(%rip), %rax      # 0xbe88
orq 0x769b(%rip), %rax      # 0xbe80
jne 0x4878
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %r14
cmpq %rsi, %rdi
sete %al
testb %r15b, %al
jne 0x4878
movl %r9d, %ebp
movq %rcx, %rbx
xorl %eax, %eax
cmpq %r12, %r14
sete %al
testb $0x10, %bpl
jne 0x4854
movl %r15d, %edx
andl $0x2, %edx
shrl %edx
testb $0x4, %r15b
movl $0x1, %ecx
cmovel %eax, %ecx
cmpq %r14, %r12
cmovbel %eax, %ecx
setb %al
testb %dl, %al
je 0x4874
movq %r8, %rdi
callq 0x46b4
leaq 0x3af0(%rip), %rdi      # 0x8333
callq 0x3f36
movq %r12, %rdi
movl %ebp, %esi
callq 0x40a7
jmp 0x48a5
testb $0x2, %r15b
sete %dl
testb $0x4, %r15b
movl $0x1, %ecx
cmovel %eax, %ecx
cmpq %r14, %r12
cmovlel %eax, %ecx
setge %al
orb %dl, %al
je 0x4834
testl %ecx, %ecx
jne 0x4881
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r8, %rdi
callq 0x46b4
leaq 0x3aa3(%rip), %rdi      # 0x8333
callq 0x3f36
movq %r12, %rdi
movl %ebp, %esi
callq 0x40a7
testb $0x2, %r15b
je 0x48b1
leaq 0x3aa4(%rip), %rdi      # 0x8350
callq 0x3f36
testb $0x4, %r15b
je 0x48c3
leaq 0x3ab2(%rip), %rdi      # 0x8370
callq 0x3f36
testb $0x1, %r15b
je 0x48d5
leaq 0x3ab2(%rip), %rdi      # 0x8382
callq 0x3f36
movq %r14, %rdi
movl %ebp, %esi
callq 0x40a7
movq %rbx, %rdi
callq 0x46db
movq $0x1, 0x758e(%rip) # 0xbe80
leaq 0x7597(%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: UnityAssertEqualFloatArray
void UnityAssertEqualFloatArray(UNITY_PTR_ATTRIBUTE const UNITY_FLOAT* expected,
                                UNITY_PTR_ATTRIBUTE const UNITY_FLOAT* actual,
                                const UNITY_UINT32 num_elements,
                                const char* msg,
                                const UNITY_LINE_TYPE lineNumber,
                                const UNITY_FLAGS_T flags)
{
    UNITY_UINT32 elements = num_elements;
    UNITY_PTR_ATTRIBUTE const UNITY_FLOAT* ptr_expected = expected;
    UNITY_PTR_ATTRIBUTE const UNITY_FLOAT* ptr_actual = actual;

    RETURN_IF_FAIL_OR_IGNORE;

    if (elements == 0)
    {
        UnityPrintPointlessAndBail();
    }

    if (expected == actual)
    {
        return; /* Both are NULL or same pointer */
    }

    if (UnityIsOneArrayNull((UNITY_INTERNAL_PTR)expected, (UNITY_INTERNAL_PTR)actual, lineNumber, msg))
    {
        UNITY_FAIL_AND_BAIL;
    }

    while (elements--)
    {
        if (!UnityFloatsWithin(*ptr_expected * UNITY_FLOAT_PRECISION, *ptr_expected, *ptr_actual))
        {
            UnityTestResultsFailBegin(lineNumber);
            UnityPrint(UnityStrElement);
            UnityPrintNumberUnsigned(num_elements - elements - 1);
            UNITY_PRINT_EXPECTED_AND_ACTUAL_FLOAT((UNITY_DOUBLE)*ptr_expected, (UNITY_DOUBLE)*ptr_actual);
            UnityAddMsgIfSpecified(msg);
            UNITY_FAIL_AND_BAIL;
        }
        if (flags == UNITY_ARRAY_TO_ARRAY)
        {
            ptr_expected++;
        }
        ptr_actual++;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, (%rsp)
movq 0x737a(%rip), %rax      # 0xbe88
orq 0x736b(%rip), %rax      # 0xbe80
jne 0x4b87
movq %r8, %r12
movl %edx, %ebp
testl %edx, %edx
je 0x4c04
movq %rsi, %r14
movq %rdi, %r15
cmpq %rsi, %rdi
je 0x4b87
movl %r9d, %r13d
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq (%rsp), %rcx
callq 0x4aab
testl %eax, %eax
jne 0x4be8
xorl %ebx, %ebx
cmpl $0x1, %r13d
sete %bl
shll $0x2, %ebx
movl %ebp, %ebp
xorl %r13d, %r13d
movss (%r15), %xmm1
movaps %xmm1, %xmm0
mulss 0x3727(%rip), %xmm0     # 0x8294
movss (%r14,%r13,4), %xmm2
callq 0x4c1a
testl %eax, %eax
je 0x4b96
addq %rbx, %r15
incq %r13
cmpl %r13d, %ebp
jne 0x4b5d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x46b4
leaq 0x3822(%rip), %rdi      # 0x83c7
callq 0x3f36
movq %r13, %rdi
callq 0x4123
leaq 0x377a(%rip), %rdi      # 0x8333
callq 0x3f36
movss (%r15), %xmm0
callq 0x41dd
leaq 0x376f(%rip), %rdi      # 0x833e
callq 0x3f36
movss (%r14,%r13,4), %xmm0
callq 0x41dd
movq (%rsp), %rdi
callq 0x46db
movq $0x1, 0x728d(%rip) # 0xbe80
leaq 0x7296(%rip), %rdi      # 0xbe90
movl $0x1, %esi
callq 0x21d0
movq %r12, %rdi
callq 0x46b4
leaq 0x377d(%rip), %rdi      # 0x8390
callq 0x3f36
jmp 0x4bdf
// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityAssertFloatsWithin
void UnityAssertFloatsWithin(const UNITY_FLOAT delta,
                             const UNITY_FLOAT expected,
                             const UNITY_FLOAT actual,
                             const char* msg,
                             const UNITY_LINE_TYPE lineNumber)
{
    RETURN_IF_FAIL_OR_IGNORE;


    if (!UnityFloatsWithin(delta, expected, actual))
    {
        UnityTestResultsFailBegin(lineNumber);
        UNITY_PRINT_EXPECTED_AND_ACTUAL_FLOAT((UNITY_DOUBLE)expected, (UNITY_DOUBLE)actual);
        UnityAddMsgIfSpecified(msg);
        UNITY_FAIL_AND_BAIL;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x71d1(%rip), %rax      # 0xbe88
orq 0x71c2(%rip), %rax      # 0xbe80
jne 0x4ce5
movq %rsi, %r14
movq %rdi, %rbx
movss %xmm1, (%rsp)
movss (%rsp), %xmm1
movss %xmm2, 0x4(%rsp)
movss 0x4(%rsp), %xmm2
callq 0x4c1a
testl %eax, %eax
je 0x4ced
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
callq 0x46b4
leaq 0x3637(%rip), %rdi      # 0x8333
callq 0x3f36
movss (%rsp), %xmm0
callq 0x41dd
leaq 0x362c(%rip), %rdi      # 0x833e
callq 0x3f36
movss 0x4(%rsp), %xmm0
callq 0x41dd
movq %rbx, %rdi
callq 0x46db
movq $0x1, 0x714b(%rip) # 0xbe80
leaq 0x7154(%rip), %rdi      # 0xbe90
movl $0x1, %esi
callq 0x21d0