LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/compiler.c
// Function: end_scope
static void end_scope(void) {
    current->scope_depth--;

    while (current->local_count > 0 && current->locals[current->local_count - 1].depth > current->scope_depth) {
        free_register(current->locals[current->local_count - 1].reg);
        current->local_count--;
    }
}

// Assembly:
pushq %rax
movq 0xf79e(%rip), %rax      # 0x15588
decl 0x3008(%rax)
movq 0x3000(%rax), %rcx
testq %rcx, %rcx
je 0x5e36
imulq $0x30, %rcx, %rcx
movl -0x8(%rcx,%rax), %edx
cmpl 0x3008(%rax), %edx
jle 0x5e36
addq %rcx, %rax
addq $-0x30, %rax
movzbl 0x2e(%rax), %edi
callq 0x551c
movq 0xf765(%rip), %rax      # 0x15588
movq 0x3000(%rax), %rcx
decq %rcx
movq %rcx, 0x3000(%rax)
jmp 0x5df7
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/compiler.c
// Function: emit_stack_swap
static void emit_stack_swap(void) {
    int ret = alloc_register();

    if (ret < 0) {
        error_alloc_register();
        return;
    }

    uint8_t reg1 = (uint8_t) ret;

    ret = alloc_register();

    if (ret < 0) {
        free_register(reg1);
        error_alloc_register();
        return;
    }

    uint8_t reg2 = (uint8_t) ret;

    emit_stack_pop(reg1);
    emit_stack_pop(reg2);
    emit_stack_push(reg1);
    emit_stack_push(reg2);

    free_register(reg1);
    free_register(reg2);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
callq 0x54e1
testl %eax, %eax
js 0x5e90
movl %eax, %ebx
callq 0x54e1
testl %eax, %eax
js 0x5e88
movl %eax, %ebp
movzbl %bl, %ebx
movl %ebx, %edi
callq 0x5551
movzbl %bpl, %ebp
movl %ebp, %edi
callq 0x5551
movl %ebx, %edi
callq 0x54ce
movl %ebp, %edi
callq 0x54ce
movl %ebx, %edi
callq 0x551c
movl %ebp, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x551c
movzbl %bl, %edi
callq 0x551c
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5510
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/compiler.c
// Function: expression_statement
static void expression_statement(void) {
    expression();
    consume(TOKEN_SEMICOLON, "Expected ';' after expression");

    int ret = alloc_register();
    if (ret < 0) {
        error_alloc_register();
    } else {
        uint8_t reg = (uint8_t) ret;
        emit_stack_pop(reg);

        free_register(reg);
    }
}

// Assembly:
pushq %rbx
callq 0x52f0
leaq 0x2685(%rip), %rsi      # 0x852d
pushq $0x7
popq %rdi
callq 0x52f5
callq 0x54e1
testl %eax, %eax
js 0x5ecb
movzbl %al, %ebx
movl %ebx, %edi
callq 0x5551
movl %ebx, %edi
popq %rbx
jmp 0x551c
popq %rbx
jmp 0x5510
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/interpreter.c
// Function: main
int main(int argc, const char* argv[]) {
    init_vm();

    int ret = 0;

    if (argc == 1) {
        repl();
    } else {
        bool bytecode_input = false;

        for (int i = 1; i < argc; i++) {
            if (strcmp(argv[i], "--bytecode") == 0) {
                bytecode_input = true;
                break;
            }
        }

        const char* input_file = argv[argc - 1];

        InterpretResult result;
        if (bytecode_input) {
            result = run_bytecode_file(input_file);
        } else {
            result = run_source_file(input_file);
        }

        switch (result) {
            case INTERPRET_RUNTIME_ERROR:
                fprintf(stderr, "Runtime error\n");
                __attribute__((fallthrough));
            case INTERPRET_COMPILE_ERROR:
                fprintf(stderr, "Compile error\n");
                ret = 1;
                break;
            default:
                break;
        }
    }

    free_vm();
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rsi, %rbx
movl %edi, %ebp
callq 0x74a4
cmpl $0x1, %ebp
jne 0x61cf
leaq 0x10(%rsp), %rbx
andq $0x0, (%rbx)
leaq 0x8(%rsp), %r14
andq $0x0, (%r14)
movq 0xee20(%rip), %r15      # 0x14fd0
movq (%r15), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4150
testq %rax, %rax
js 0x622c
movq 0x10(%rsp), %rdi
callq 0x7df8
jmp 0x61b0
movslq %ebp, %r15
pushq $0x1
popq %r12
leaq 0x24f8(%rip), %r14      # 0x86d5
cmpq %r15, %r12
jge 0x6238
movq (%rbx,%r12,8), %rdi
movq %r14, %rsi
callq 0x40d0
incq %r12
testl %eax, %eax
jne 0x61dd
movq -0x8(%rbx,%r15,8), %rdi
leaq 0x8(%rsp), %r14
andq $0x0, (%r14)
pushq $0x1
popq %rdx
movq %r14, %rsi
callq 0x44bf
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x427c
movq (%r14), %rax
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
callq 0x7584
jmp 0x6258
pushq $0xa
popq %rdi
callq 0x4040
xorl %ebp, %ebp
jmp 0x626e
movq -0x8(%rbx,%r15,8), %rdi
leaq 0x10(%rsp), %r14
andq $0x0, (%r14)
movq %r14, %rsi
xorl %edx, %edx
callq 0x44bf
movq (%r14), %rdi
callq 0x7df8
movl %eax, %ebx
movq (%r14), %rdi
callq 0x4030
cmpl $0x1, %ebx
je 0x629e
xorl %ebp, %ebp
cmpl $0x2, %ebx
je 0x6282
callq 0x74e5
movl %ebp, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0xed67(%rip), %rax      # 0x14ff0
movq (%rax), %rcx
leaq 0x244d(%rip), %rdi      # 0x86e0
pushq $0xe
popq %rsi
pushq $0x1
popq %rdx
callq 0x4170
movq 0xed4b(%rip), %rax      # 0x14ff0
movq (%rax), %rcx
leaq 0x2440(%rip), %rdi      # 0x86ef
pushq $0xe
popq %rsi
pushq $0x1
popq %rdx
callq 0x4170
pushq $0x1
popq %rbp
jmp 0x626e
nop
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/memory.c
// Function: reallocate
void* reallocate(void* pointer, size_t old_size, size_t new_size) {
    (void) old_size;

    if (new_size == 0) {
        free(pointer);
        return NULL;
    }

    void* result = realloc(pointer, new_size);
    if (result == NULL) exit(1);
    return result;
}

// Assembly:
pushq %rax
testq %rdx, %rdx
je 0x62db
movq %rdx, %rsi
callq 0x4130
testq %rax, %rax
jne 0x62e2
pushq $0x1
popq %rdi
callq 0x4160
callq 0x4030
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/object.c
// Function: hash_string
static uint32_t hash_string(const char* key, size_t length) {
    uint32_t hash = 2166136261u;

    for (size_t i = 0; i < length; i++) {
        hash ^= (unsigned char) key[i];
        hash *= 16777619;
    }

    return hash;
}

// Assembly:
movl $0x811c9dc5, %eax       # imm = 0x811C9DC5
xorl %ecx, %ecx
cmpq %rcx, %rsi
je 0x6321
movzbl (%rdi,%rcx), %edx
xorl %edx, %eax
imull $0x1000193, %eax, %eax  # imm = 0x1000193
incq %rcx
jmp 0x630b
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/object.c
// Function: allocate_string
static ObjString* allocate_string(char* chars, size_t length, uint32_t hash) {
    ObjString* string = ALLOCATE_OBJ(ObjString, OBJ_STRING);
    string->length = length;
    string->chars = chars;
    string->hash = hash;
    return string;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
pushq $0x20
popq %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x62c0
andl $0x0, (%rax)
movq %r14, 0x8(%rax)
movq %r15, 0x10(%rax)
movl %ebx, 0x18(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/object.c
// Function: copy_string
ObjString* copy_string(const char* chars, size_t length) {
    uint32_t hash = hash_string(chars, length);

    char* heap_chars = ALLOCATE(char, length + 1);
    memcpy(heap_chars, chars, length);
    heap_chars[length] = '\0';

    return allocate_string(heap_chars, length, hash);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x6304
movl %eax, %ebp
leaq 0x1(%rbx), %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x62c0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4100
movb $0x0, (%r15,%rbx)
movq %r15, %rdi
movq %rbx, %rsi
movl %ebp, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6322
nop
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/opcodes.c
// Function: get_opcode_definition_by_name
const OpcodeDefinition* get_opcode_definition_by_name(char* name) {
    for (size_t i = 0; i < NUM_OPCODES; i++) {
        if (strcmp(opcodes[i].name, name) == 0) {
            return &opcodes[i];
        }
    }

    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x1fa, %r15d           # imm = 0x1FA
leaq 0x6b81(%rip), %rbx      # 0xcf60
decq %r15
je 0x63fa
movq 0x48(%rbx), %rdi
addq $0x40, %rbx
movq %r14, %rsi
callq 0x40d0
testl %eax, %eax
jne 0x63df
jmp 0x63fc
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/opcodes.c
// Function: get_opcode_arity
size_t get_opcode_arity(const OpcodeDefinition* opcode) {
    size_t arity = 0;

    for (size_t i = 0; i < OPCODE_MAX_ARITY; i++) {
        if (opcode->parameters[i] == T_NONE) {
            break;
        } else if (opcode->parameters[i] != T_ARGS && opcode->parameters[i] != T_IMED) {
            arity++;
        }
    }

    return arity;
}

// Assembly:
pushq $0x4
popq %rcx
xorl %eax, %eax
cmpq $0xf, %rcx
je 0x6444
movl (%rdi,%rcx,4), %edx
cmpl $0x1, %edx
je 0x643f
cmpl $0x9, %edx
je 0x643f
testl %edx, %edx
je 0x6444
incq %rax
incq %rcx
jmp 0x6425
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/qst.c
// Function: create_bin
QstBin* create_bin(
    uint32_t quest_number,
    uint32_t language,
    char* quest_name,
    char* short_description,
    char* long_description) {

    QstBin* bin = calloc(1, sizeof(QstBin));

    bin->quest_number = quest_number;
    bin->language = language;

    copy_to_wide_string(bin->quest_name, quest_name, 32);
    copy_to_wide_string(bin->short_description, short_description, 128);
    copy_to_wide_string(bin->long_description, long_description, 288);

    return bin;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movl %edi, %r12d
pushq $0x1
popq %rdi
movl $0x1250, %esi           # imm = 0x1250
callq 0x40c0
movq %rax, %r13
movl %r12d, 0x10(%rax)
movl %ebp, 0x14(%rax)
leaq 0x18(%rax), %rdi
pushq $0x20
popq %rdx
movq %r15, %rsi
callq 0x6a4a
leaq 0x58(%r13), %rdi
movl $0x80, %edx
movq %r14, %rsi
callq 0x6a4a
leaq 0x158(%r13), %rdi
movl $0x120, %edx            # imm = 0x120
movq %rbx, %rsi
callq 0x6a4a
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/qst.c
// Function: copy_to_wide_string
static void copy_to_wide_string(uint16_t* dst, char* src, size_t len) {
    size_t n = 0;
    while (*src != '\0' && n < len) {
        dst[n * 2] = (uint16_t) *src;
        n++;
        src++;
    }
}

// Assembly:
xorl %eax, %eax
movsbl (%rsi,%rax), %ecx
testw %cx, %cx
je 0x6a63
cmpq %rdx, %rax
jae 0x6a63
movw %cx, (%rdi,%rax,4)
incq %rax
jmp 0x6a4c
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/scanner.c
// Function: init_scanner
void init_scanner(const char* source) {
    scanner.start = source;
    scanner.current = source;
    scanner.line = 1;
    scanner.column = 1;
}

// Assembly:
movq %rdi, 0xebed(%rip)      # 0x15758
movq %rdi, 0xebee(%rip)      # 0x15760
pushq $0x1
popq %rax
movq %rax, 0xebec(%rip)      # 0x15768
movq %rax, 0xebed(%rip)      # 0x15770
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/scanner.c
// Function: make_token
static Token make_token(TokenType type) {
    Token token;

    token.type = type;
    token.start = scanner.start;
    token.length = (size_t) (scanner.current - scanner.start);
    token.line = scanner.line;
    token.column = scanner.column;

    return token;
}

// Assembly:
movq %rdi, %rax
movl %esi, (%rdi)
movq 0xe76f(%rip), %rcx      # 0x15758
movq %rcx, 0x8(%rdi)
movq 0xe76c(%rip), %rdx      # 0x15760
subq %rcx, %rdx
movq %rdx, 0x10(%rdi)
movups 0xe766(%rip), %xmm0     # 0x15768
movups %xmm0, 0x18(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/scanner.c
// Function: error_token
static Token error_token(const char* message) {
    Token token;

    token.type = TOKEN_ERROR;
    token.start = message;
    token.length = strlen(message);
    token.line = scanner.line;
    token.column = scanner.column;

    return token;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x29, (%rdi)
movq %rsi, 0x8(%rdi)
movq %rsi, %rdi
callq 0x4090
movq %rax, 0x10(%rbx)
movups 0xe740(%rip), %xmm0     # 0x15768
movups %xmm0, 0x18(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/scanner.c
// Function: check_keyword
static TokenType check_keyword(size_t start, size_t length, const char* rest, TokenType type) {
    if ((size_t) (scanner.current - scanner.start) == start + length &&
           memcmp(scanner.start + start, rest, length) == 0) {
        return type;
    }

    return TOKEN_IDENTIFIER;
}

// Assembly:
pushq %rbx
movl %ecx, %ebx
movq %rsi, %rax
movq 0xe722(%rip), %rsi      # 0x15760
movq 0xe713(%rip), %rcx      # 0x15758
subq %rcx, %rsi
leaq (%rax,%rdi), %r8
cmpq %r8, %rsi
jne 0x7066
addq %rdi, %rcx
movq %rcx, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x4120
testl %eax, %eax
je 0x7069
pushq $0x1a
popq %rbx
movl %ebx, %eax
popq %rbx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/table.c
// Function: table_get
bool table_get(Table* table, ObjString* key, Value* value) {
    if (table->count == 0) {
        return false;
    }

    Entry* entry = find_entry(table->entries, table->capacity, key);
    if (entry->key == NULL) {
        return false;
    }

    *value = entry->value;
    return true;
}

// Assembly:
cmpq $0x0, (%rdi)
je 0x70c8
pushq %rbx
movq %rdx, %rbx
movq %rsi, %rdx
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdi
callq 0x70cf
cmpq $0x0, (%rax)
je 0x70cb
movups 0x8(%rax), %xmm0
movups %xmm0, (%rbx)
movb $0x1, %al
jmp 0x70cd
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/table.c
// Function: find_entry
static Entry* find_entry(Entry* entries, size_t capacity, ObjString* key) {
    uint32_t index = key->hash % (uint32_t) capacity;
    Entry* tombstone = NULL;

    while (true) {
        Entry* entry = &entries[index];

        if (entry->key == NULL) {
            if (IS_NULL(entry->value)) {
                return tombstone != NULL ? tombstone : entry;
            } else {
                if (tombstone == NULL) {
                    tombstone = entry;
                }
            }
        } else if (strcmp(entry->key->chars, key->chars) == 0) {
            return entry;
        }

        index = (index + 1) % (uint32_t) capacity;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x18(%rdx), %r12d
xorl %ebp, %ebp
movl %r12d, %eax
xorl %edx, %edx
divl %r14d
movl %edx, %r12d
imulq $0x18, %r12, %rax
leaq (%r15,%rax), %r13
movq (%r15,%rax), %rax
testq %rax, %rax
je 0x7118
movq 0x10(%rax), %rdi
movq 0x10(%rbx), %rsi
callq 0x40d0
testl %eax, %eax
jne 0x7129
jmp 0x712e
testq %rbp, %rbp
cmoveq %r13, %rbp
cmpl $0x5, 0x8(%r13)
movq %rbp, %r13
je 0x712e
incl %r12d
jmp 0x70e9
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/table.c
// Function: table_set
bool table_set(Table* table, ObjString* key, Value value) {
    if (table->count + 1 > (double) table->capacity * TABLE_MAX_LOAD) {
        size_t capacity = GROW_CAPACITY(table->capacity);
        adjust_capacity(table, capacity);
    }

    Entry* entry = find_entry(table->entries, table->capacity, key);

    bool is_new_key = entry->key == NULL;
    if (is_new_key && IS_NULL(entry->value)) {
        table->count++;
    }

    entry->key = key;
    entry->value = value;

    return is_new_key;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rax
movq 0x8(%rdi), %rsi
incq %rax
movq %rax, %xmm0
movq 0x2ea0(%rip), %xmm1     # 0xa010
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x2ea4(%rip), %xmm2     # 0xa020
subpd %xmm2, %xmm0
movapd %xmm0, %xmm3
unpckhpd %xmm0, %xmm3            # xmm3 = xmm3[1],xmm0[1]
addsd %xmm0, %xmm3
movq %rsi, %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
subpd %xmm2, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x2e83(%rip), %xmm1     # 0xa030
ucomisd %xmm1, %xmm3
jbe 0x727f
movq %r14, 0x18(%rsp)
movl %ebp, 0xc(%rsp)
cmpq $0x8, %rsi
leaq (%rsi,%rsi), %r12
pushq $0x8
popq %r14
cmovbq %r14, %r12
imulq $0x18, %r12, %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x62c0
movq %rax, %r13
addq $0x10, %rax
movq %r12, 0x10(%rsp)
movq %r12, %rcx
subq $0x1, %rcx
jb 0x7207
andq $0x0, -0x10(%rax)
movl $0x5, -0x8(%rax)
andl $0x0, (%rax)
addq $0x18, %rax
jmp 0x71ec
movq %rbx, 0x20(%rsp)
andq $0x0, (%r15)
xorl %r12d, %r12d
movq 0x8(%r15), %rax
movq 0x10(%r15), %rbx
cmpq %rax, %r12
jae 0x7254
movq -0x8(%rbx,%r14), %rbp
testq %rbp, %rbp
je 0x724b
movq %r13, %rdi
movq 0x10(%rsp), %rsi
movq %rbp, %rdx
callq 0x70cf
movq %rbp, (%rax)
movupd (%rbx,%r14), %xmm0
movupd %xmm0, 0x8(%rax)
incq (%r15)
incq %r12
addq $0x18, %r14
jmp 0x7213
imulq $0x18, %rax, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x62c0
movq %r13, 0x10(%r15)
movq 0x10(%rsp), %rsi
movq %rsi, 0x8(%r15)
movq 0x20(%rsp), %rbx
movl 0xc(%rsp), %ebp
movq 0x18(%rsp), %r14
jmp 0x7283
movq 0x10(%r15), %r13
movq %r13, %rdi
movq %r14, %rdx
callq 0x70cf
movq (%rax), %rcx
testq %rcx, %rcx
jne 0x729f
cmpl $0x5, 0x8(%rax)
jne 0x729f
incq (%r15)
testq %rcx, %rcx
sete %cl
movq %r14, (%rax)
movl %ebp, 0x8(%rax)
movq %rbx, 0x10(%rax)
movl %ecx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/table.c
// Function: table_delete
bool table_delete(Table* table, ObjString* key) {
    if (table->count == 0) {
        return false;
    }

    Entry* entry = find_entry(table->entries, table->capacity, key);
    if (entry->key == NULL) {
        return false;
    }

    entry->key = NULL;
    entry->value = NULL_VAL;

    return true;
}

// Assembly:
cmpq $0x0, (%rdi)
je 0x72f0
pushq %rax
movq %rsi, %rdx
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdi
callq 0x70cf
cmpq $0x0, (%rax)
je 0x72f3
andq $0x0, (%rax)
movl $0x5, 0x8(%rax)
andl $0x0, 0x10(%rax)
movb $0x1, %al
jmp 0x72f5
xorl %eax, %eax
retq
xorl %eax, %eax
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/table.c
// Function: table_add_all
void table_add_all(Table* from, Table* to) {
    for (size_t i = 0; i < from->capacity; i++) {
        Entry* entry = &from->entries[i];
        if (entry->key != NULL) {
            table_set(to, entry->key, entry->value);
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x10
popq %r15
xorl %r12d, %r12d
cmpq 0x8(%r14), %r12
jae 0x733d
movq 0x10(%r14), %rax
movq -0x10(%rax,%r15), %rsi
testq %rsi, %rsi
je 0x7334
movl -0x8(%rax,%r15), %edx
movq (%rax,%r15), %rcx
movq %rbx, %rdi
callq 0x7140
incq %r12
addq $0x18, %r15
jmp 0x730f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/value.c
// Function: write_value_array
void write_value_array(ValueArray* array, Value value) {
    if (array->capacity < array->count + 1) {
        size_t old_capacity = array->capacity;
        array->capacity = GROW_CAPACITY(old_capacity);
        array->values = GROW_ARRAY(Value, array->values,
            old_capacity, array->capacity);
    }

    array->values[array->count] = value;
    array->count++;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq (%rdi), %rsi
movq 0x8(%rdi), %rcx
leaq 0x1(%rcx), %rax
cmpq %rax, %rsi
jae 0x73a1
leaq (%rsi,%rsi), %rax
cmpq $0x8, %rsi
pushq $0x8
popq %rdx
cmovaeq %rax, %rdx
movq %rdx, (%r14)
movq 0x10(%r14), %rdi
shlq $0x4, %rsi
shlq $0x4, %rdx
callq 0x62c0
movq %rax, 0x10(%r14)
movq 0x8(%r14), %rcx
jmp 0x73a5
movq 0x10(%r14), %rax
shlq $0x4, %rcx
movl %ebp, (%rax,%rcx)
movq %rbx, 0x8(%rax,%rcx)
incq 0x8(%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/value.c
// Function: print_value
void print_value(Value value) {
    switch (value.type) {
        case VAL_BOOLEAN:
            printf(AS_BOOLEAN(value) ? "true" : "false");
            break;
        case VAL_DWORD:
            printf("%d", AS_DWORD(value));
            break;
        case VAL_WORD:
            printf("%hd", AS_WORD(value));
            break;
        case VAL_BYTE:
            printf("%hhd", AS_BYTE(value));
            break;
        case VAL_FLOAT:
            printf("%f", AS_FLOAT(value));
            break;
        case VAL_NULL:
            printf("null");
            break;
        case VAL_STRING: {
            uint16_t* str = AS_STRING(value);
            while (*str != 0) {
                printf("%lc", (wchar_t) *str);
                str++;
            }
            break;
        }
        default:
            printf("Unknown value");
            break;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x6, %edi
ja 0x7446
movq %rsi, %rbx
movl %edi, %eax
leaq 0x2c46(%rip), %rcx      # 0xa038
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
testl %ebx, %ebx
leaq 0x2c55(%rip), %rax      # 0xa059
leaq 0x2c49(%rip), %rdi      # 0xa054
cmoveq %rax, %rdi
jmp 0x746d
movd %ebx, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x2c48(%rip), %rdi      # 0xa068
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x40a0
movswl %bx, %esi
leaq 0x2c27(%rip), %rdi      # 0xa05f
jmp 0x7458
movzbl %bl, %esi
leaq 0x2c1f(%rip), %rdi      # 0xa063
jmp 0x7458
leaq 0x2c23(%rip), %rdi      # 0xa070
jmp 0x746d
leaq 0xe54(%rip), %rdi       # 0x82aa
movl %ebx, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x40a0
leaq 0x2bfe(%rip), %rdi      # 0xa06b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x40a0
leaq 0x121d(%rip), %r14      # 0x869f
movzwl (%rbx), %esi
testl %esi, %esi
je 0x7499
movq %r14, %rdi
xorl %eax, %eax
callq 0x40a0
addq $0x2, %rbx
jmp 0x7482
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/vm.c
// Function: stack_push
void stack_push(Value value) {
    if (vm.stack_top - vm.stack >= STACK_SIZE) {
        fprintf(stderr, "VM: Stack overflow\n");
        return;
    }

    *vm.stack_top = value;
    vm.stack_top++;
}

// Assembly:
movq 0xf69b(%rip), %rax      # 0x16b88
leaq 0xe284(%rip), %rcx      # 0x15778
movq %rax, %rdx
subq %rcx, %rdx
addq $-0x1010, %rdx          # imm = 0xEFF0
cmpq $0xff1, %rdx            # imm = 0xFF1
jge 0x7519
movl %edi, (%rax)
movq %rsi, 0x8(%rax)
addq $0x10, 0xf670(%rip)     # 0x16b88
retq
movq 0xdad0(%rip), %rax      # 0x14ff0
movq (%rax), %rcx
leaq 0x2cbe(%rip), %rdi      # 0xa1e8
pushq $0x13
popq %rsi
pushq $0x1
popq %rdx
jmp 0x4170
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/vm.c
// Function: stack_pop
Value stack_pop() {
    if (--vm.stack_top < vm.stack) {
        fprintf(stderr, "VM: Stack underflow\n");
        vm.stack_top = vm.stack;
    }

    return *vm.stack_top;
}

// Assembly:
pushq %rbx
movq 0xf64b(%rip), %rcx      # 0x16b88
addq $-0x10, %rcx
movq %rcx, 0xf640(%rip)      # 0x16b88
leaq 0xf239(%rip), %rbx      # 0x16788
cmpq %rbx, %rcx
jb 0x755c
movl (%rcx), %eax
movq 0x8(%rcx), %rdx
popq %rbx
retq
movq 0xda8d(%rip), %rax      # 0x14ff0
movq (%rax), %rcx
leaq 0x2c8f(%rip), %rdi      # 0xa1fc
pushq $0x14
popq %rsi
pushq $0x1
popq %rdx
callq 0x4170
movq %rbx, 0xf609(%rip)      # 0x16b88
movq %rbx, %rcx
jmp 0x7554
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/vm.c
// Function: interpret_source
InterpretResult interpret_source(const char* source) {
    Chunk chunk;
    init_chunk(&chunk);

    if (!compile(source, &chunk)) {
        free_chunk(&chunk);
        return INTERPRET_COMPILE_ERROR;
    }

    InterpretResult result = interpret_bytecode(&chunk);
    free_chunk(&chunk);
    return result;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x427c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4dd1
testb %al, %al
je 0x7e2c
leaq 0x8(%rsp), %rdi
callq 0x7584
movl %eax, %ebx
jmp 0x7e2f
pushq $0x1
popq %rbx
leaq 0x8(%rsp), %rdi
callq 0x433b
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/vm.c
// Function: do_jump
static void do_jump(size_t label) {
    int32_t offset = vm.chunk->labels[label];

    if (offset < 0) {
        fprintf(stderr, "VM: Invalid jump target\n");
        return;
    }

    vm.ip = vm.chunk->code + offset;
}

// Assembly:
movq 0xd92e(%rip), %rax      # 0x15778
movq 0x38(%rax), %rcx
movslq (%rcx,%rdi,4), %rcx
testq %rcx, %rcx
js 0x7e63
addq 0x10(%rax), %rcx
movq %rcx, 0xd91e(%rip)      # 0x15780
retq
movq 0xd186(%rip), %rax      # 0x14ff0
movq (%rax), %rcx
leaq 0x23ee(%rip), %rdi      # 0xa262
pushq $0x18
popq %rsi
pushq $0x1
popq %rdx
jmp 0x4170
// File: /workspace/github_c_makefile_star2_O2/jtuu[P]quesler/src/vm.c
// Function: compare
static bool compare(uint16_t opcode, int32_t val1, int32_t val2) {
    switch (opcode) {
        case OP_JMP_EQ: __attribute__ ((fallthrough));
        case OP_JMPI_EQ:
            return val1 == val2;
        case OP_JMP_NEQ: __attribute__ ((fallthrough));
        case OP_JMPI_NEQ:
            return val1 != val2;
        case OP_JMP_GT: __attribute__ ((fallthrough));
        case OP_JMPI_GT:
            return val1 > val2;
        case OP_JMP_LT: __attribute__ ((fallthrough));
        case OP_JMPI_LT:
            return val1 < val2;
        case OP_JMP_GTE: __attribute__ ((fallthrough));
        case OP_JMPI_GTE:
            return val1 >= val2;
        case OP_JMP_LTE: __attribute__ ((fallthrough));
        case OP_JMPI_LTE:
            return val1 <= val2;
        default:
            fprintf(stderr, "VM: Invalid comparison opcode\n");
            break;
    }

    return false;
}

// Assembly:
addl $-0x2c, %edi
cmpl $0x13, %edi
ja 0x7ebb
leaq 0x230a(%rip), %rax      # 0xa198
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
cmpl %edx, %esi
sete %al
retq
cmpl %edx, %esi
setge %al
retq
cmpl %edx, %esi
setg %al
retq
cmpl %edx, %esi
setle %al
retq
cmpl %edx, %esi
setl %al
retq
cmpl %edx, %esi
setne %al
retq
pushq %rax
movq 0xd12d(%rip), %rax      # 0x14ff0
movq (%rax), %rcx
leaq 0x23ae(%rip), %rdi      # 0xa27b
pushq $0x1e
popq %rsi
pushq $0x1
popq %rdx
callq 0x4170
xorl %eax, %eax
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxRegexp.c
// Function: RegExec
int
RegExec(
Hax_Interp *interp,
regexp *prog,
char *string)
{
	Interp *iPtr = (Interp *) interp;
	char *s;

	/* Be paranoid... */
	if (prog == NULL || string == NULL) {
		RegError(interp, (char *) "NULL parameter");
		return(0);
	}

	/* Check validity of program. */
	if (UCHARAT(prog->program) != MAGIC) {
		RegError(interp, (char *) "corrupted program");
		return(0);
	}

	/* If there is a "must appear" string, look for it. */
	if (prog->regmust != NULL) {
		s = string;
		while ((s = strchr(s, prog->regmust[0])) != NULL) {
			if (strncmp(s, prog->regmust, prog->regmlen) == 0)
				break;	/* Found it. */
			s++;
		}
		if (s == NULL)	/* Not present. */
			return(0);
	}

	/* Mark beginning of line for ^ . */
	iPtr->regbol = string;

	/* Simplest case:  anchored match need be tried only once. */
	if (prog->reganch)
		return(RegTry(interp, prog, string));

	/* Messy cases:  unanchored match. */
	s = string;
	if (prog->regstart != '\0')
		/* We know what char it must start with. */
		while ((s = strchr(s, prog->regstart)) != NULL) {
			if (RegTry(interp, prog, s))
				return(1);
			s++;
		}
	else
		/* We don't -- general case. */
		do {
			if (RegTry(interp, prog, s))
				return(1);
		} while (*s++ != '\0');

	/* Failure. */
	return(0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
setne %al
testq %rdx, %rdx
setne %cl
testb %cl, %al
jne 0x4b2d
leaq 0xe5f2(%rip), %rsi      # 0x1311a
jmp 0x4baf
movq %rsi, %r14
cmpb $-0x64, 0xb4(%rsi)
jne 0x4ba8
movq %rdx, %r15
movq 0xa8(%r14), %r12
testq %r12, %r12
je 0x4b7b
movsbl (%r12), %ebp
movq %r15, %r13
movq %r13, %rdi
movl %ebp, %esi
callq 0x4250
testq %rax, %rax
je 0x4bb7
movq %rax, %r13
movslq 0xb0(%r14), %rdx
movq %rax, %rdi
movq %r12, %rsi
callq 0x40c0
incq %r13
testl %eax, %eax
jne 0x4b50
movq %r15, 0x2c0(%rbx)
cmpb $0x0, 0xa1(%r14)
je 0x4bca
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4c2f
leaq 0xe57a(%rip), %rsi      # 0x13129
movq %rbx, %rdi
callq 0x4220
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x0, 0xa0(%r14)
je 0x4c06
pushq $0x1
popq %rbp
movsbl 0xa0(%r14), %esi
movq %r15, %rdi
callq 0x4250
testq %rax, %rax
je 0x4bb7
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x4c2f
incq %r15
testl %eax, %eax
je 0x4bd7
jmp 0x4bb9
pushq $0x1
popq %r12
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x4c2f
testl %eax, %eax
jne 0x4c2a
cmpb $0x0, (%r15)
leaq 0x1(%r15), %r15
jne 0x4c0c
jmp 0x4bb9
movl %r12d, %ebp
jmp 0x4bb9
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxRegexp.c
// Function: RegTry
static int			/* 0 failure, 1 success */
RegTry(
Hax_Interp *interp,
regexp *prog,
char *string)
{
	Interp *iPtr = (Interp *) interp;
	int i;
	char **sp;
	char **ep;

	iPtr->reginput = string;
	iPtr->regstartp = prog->startp;
	iPtr->regendp = prog->endp;

	sp = prog->startp;
	ep = prog->endp;
	for (i = NSUBEXP; i > 0; i--) {
		*sp++ = NULL;
		*ep++ = NULL;
	}
	if (RegMatch(interp, prog->program + 1)) {
		prog->startp[0] = string;
		prog->endp[0] = iPtr->reginput;
		return(1);
	} else
		return(0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq %rdx, 0x2b8(%rdi)
movq %rsi, 0x2c8(%rdi)
leaq 0x50(%rsi), %rax
movq %rax, 0x2d0(%rdi)
xorl %eax, %eax
cmpl $0xa, %eax
je 0x4c6d
andq $0x0, (%rbx,%rax,8)
andq $0x0, 0x50(%rbx,%rax,8)
incq %rax
jmp 0x4c58
leaq 0xb5(%rbx), %rsi
movq %r15, %rdi
callq 0x53ca
testl %eax, %eax
je 0x4c93
movq %r14, (%rbx)
movq 0x2b8(%r15), %rax
movq %rax, 0x50(%rbx)
pushq $0x1
popq %rax
jmp 0x4c95
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxAssem.c
// Function: Hax_CreateCmdBuf
Hax_CmdBuf
Hax_CreateCmdBuf(
    Hax_Interp *interp)
{
    Interp *iPtr = (Interp *) interp;
    Hax_Memoryp *memoryp = iPtr->memoryp;
    CmdBuf *cbPtr;

    cbPtr = (CmdBuf *) ckalloc(memoryp, sizeof(CmdBuf));
    cbPtr->buffer = (char *) ckalloc(memoryp, CMD_BUF_SIZE);
    cbPtr->buffer[0] = '\0';
    cbPtr->bufSize = CMD_BUF_SIZE;
    cbPtr->bytesUsed = 0;
    return (Hax_CmdBuf) cbPtr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x280(%rdi), %rbx
leaq 0xdaf7(%rip), %r14      # 0x13222
pushq $0x10
popq %rsi
pushq $0x49
popq %rcx
movq %rbx, %rdi
movq %r14, %rdx
callq 0x44e0
movq %rax, %r15
pushq $0x64
popq %rsi
pushq $0x4a
popq %rcx
movq %rbx, %rdi
movq %r14, %rdx
callq 0x44e0
movq %rax, (%r15)
movb $0x0, (%rax)
movq $0x64, 0x8(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxAssem.c
// Function: Hax_AssembleCmd
char *
Hax_AssembleCmd(
    Hax_Interp *interp,
    Hax_CmdBuf buffer,		/* Token for a command buffer previously
				 * created by Hax_CreateCmdBuf.  */
    char *string		/* Bytes to be appended to command stream.
				 * Note:  if the string is zero length,
				 * then whatever is buffered will be
				 * considered to be a complete command
				 * regardless of whether parentheses are
				 * matched or not. */)
{
    Interp *iPtr = (Interp *) interp;
    Hax_Memoryp *memoryp = iPtr->memoryp;
    CmdBuf *cbPtr = (CmdBuf *) buffer;
    int length, totalLength, c;

    /*
     * If an empty string is passed in, just pretend the current
     * command is complete, whether it really is or not.
     */

    length = strlen(string);
    if (length == 0) {
	cbPtr->buffer[cbPtr->bytesUsed] = 0;
	cbPtr->bytesUsed = 0;
	return cbPtr->buffer;
    }

    /*
     * Add the new information to the buffer.  If the current buffer
     * isn't large enough, grow it by at least a factor of two, or
     * enough to hold the new text.
     */

    length = strlen(string);
    totalLength = cbPtr->bytesUsed + length + 1;
    if (totalLength > cbPtr->bufSize) {
	unsigned int newSize;
	char *newBuf;

	newSize = cbPtr->bufSize*2;
	if (newSize < totalLength) {
	    newSize = totalLength;
	}
	newBuf = (char *) ckalloc(memoryp, newSize);
	strcpy(newBuf, cbPtr->buffer);
	ckfree(memoryp, cbPtr->buffer);
	cbPtr->buffer = newBuf;
	cbPtr->bufSize = newSize;
    }
    strcpy(cbPtr->buffer+cbPtr->bytesUsed, string);
    cbPtr->bytesUsed += length;

    /*
     * See if there is now a complete command in the buffer.
     */

    c = cbPtr->buffer[cbPtr->bytesUsed-1];
    if ((c != '\n') && (c != ';')) {
	return NULL;
    }
    if (Hax_CommandComplete(cbPtr->buffer)) {
	cbPtr->bytesUsed = 0;
	return cbPtr->buffer;
    }
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq 0x280(%rdi), %r12
movq %rdx, %rdi
callq 0x41d0
movq %rax, %r15
testl %r15d, %r15d
je 0x57e1
movl 0x8(%rbx), %r13d
movl 0xc(%rbx), %eax
leal (%rax,%r15), %ecx
cmpl %r13d, %ecx
jge 0x57f1
movq (%rbx), %rbp
jmp 0x5843
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movb $0x0, (%rax,%rcx)
jmp 0x5879
incl %ecx
addl %r13d, %r13d
cmpl %ecx, %r13d
cmovbel %ecx, %r13d
leaq 0xda1e(%rip), %rdx      # 0x13222
movq %r12, %rdi
movq %r13, %rsi
movl $0xb8, %ecx
callq 0x44e0
movq %rax, %rbp
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x40f0
movq (%rbx), %rsi
movq %r12, %rdi
leaq 0xd9f3(%rip), %rdx      # 0x13222
movl $0xba, %ecx
callq 0x4280
movq %rbp, (%rbx)
movl %r13d, 0x8(%rbx)
movl 0xc(%rbx), %eax
movslq %eax, %rdi
addq %rbp, %rdi
movq %r14, %rsi
callq 0x40f0
movslq 0xc(%rbx), %rax
movslq %r15d, %rcx
addq %rax, %rcx
movl %ecx, 0xc(%rbx)
movq (%rbx), %rdi
movzbl -0x1(%rdi,%rcx), %eax
cmpl $0x3b, %eax
je 0x5870
cmpl $0xa, %eax
jne 0x5882
callq 0x4510
testl %eax, %eax
je 0x5882
andl $0x0, 0xc(%rbx)
movq (%rbx), %rax
jmp 0x5884
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxAssem.c
// Function: Hax_CommandComplete
int
Hax_CommandComplete(
    char *cmd			/* Command to check. */)
{
    char *p = cmd;

    p = cmd;
    while (1) {
	while (isspace(*p)) {
	    p++;
	}
	if (*p == 0) {
	    return 1;
	}
	p = HaxWordEnd(p, 0);
	if (*p == 0) {
	    return 0;
	}
	p++;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x4660
movq %rax, %rbx
pushq $0x1
popq %r15
xorl %ebp, %ebp
movq (%rbx), %rax
decq %r14
movsbq 0x1(%r14), %rcx
incq %r14
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x58b1
testb %cl, %cl
je 0x58d9
movq %r14, %rdi
xorl %esi, %esi
callq 0x41b0
leaq 0x1(%rax), %r14
cmpb $0x0, (%rax)
jne 0x58ab
jmp 0x58dc
movl %r15d, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxBasic.c
// Function: Hax_CreateCommand
void
Hax_CreateCommand(
    Hax_Interp *interp,		/* Token for command interpreter (returned
				 * by a previous call to Hax_CreateInterp). */
    char *cmdName,		/* Name of command. */
    Hax_CmdProc *proc,		/* Command procedure to associate with
				 * cmdName. */
    ClientData clientData,	/* Arbitrary one-word value to pass to proc. */
    Hax_CmdDeleteProc *deleteProc
				/* If not NULL, gives a procedure to call when
				 * this command is deleted. */)
{
    Interp *iPtr = (Interp *) interp;
    Hax_Memoryp *memoryp = iPtr->memoryp;
    Command *cmdPtr;
    Hax_HashEntry *hPtr;
    int newPtr;

    hPtr = Hax_CreateHashEntry(interp, &iPtr->commandTable, cmdName, &newPtr);
    if (!newPtr) {
	/*
	 * Command already exists:  delete the old one.
	 */

	cmdPtr = (Command *) Hax_GetHashValue(hPtr);
	if (cmdPtr->deleteProc != NULL) {
	    (*cmdPtr->deleteProc)(interp, cmdPtr->clientData);
	}
    } else {
	cmdPtr = (Command *) ckalloc(memoryp, sizeof(Command));
	Hax_SetHashValue(hPtr, cmdPtr);
    }
    cmdPtr->proc = proc;
    cmdPtr->clientData = clientData;
    cmdPtr->deleteProc = deleteProc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, 0x8(%rsp)
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rdx
movq %rdi, %r12
movq 0x280(%rdi), %r13
leaq 0x18(%rdi), %rsi
leaq 0x14(%rsp), %rbx
movq %rbx, %rcx
callq *0x60(%rdi)
movq %rax, %rbp
cmpl $0x0, (%rbx)
je 0x5d04
leaq 0xd555(%rip), %rdx      # 0x13240
pushq $0x18
popq %rsi
movq %r13, %rdi
movl $0x14f, %ecx            # imm = 0x14F
callq 0x44e0
movq %rax, %r13
movq %rax, 0x18(%rbp)
jmp 0x5d1a
movq 0x18(%rbp), %r13
movq 0x10(%r13), %rax
testq %rax, %rax
je 0x5d1a
movq 0x8(%r13), %rsi
movq %r12, %rdi
callq *%rax
movq %r15, (%r13)
movq %r14, 0x8(%r13)
movq 0x8(%rsp), %rax
movq %rax, 0x10(%r13)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxBasic.c
// Function: Hax_DeleteCommand
int
Hax_DeleteCommand(
    Hax_Interp *interp,		/* Token for command interpreter (returned
				 * by a previous call to Hax_CreateInterp). */
    char *cmdName		/* Name of command to remove. */)
{
    Interp *iPtr = (Interp *) interp;
    Hax_Memoryp *memoryp = iPtr->memoryp;
    Hax_HashEntry *hPtr;
    Command *cmdPtr;

    hPtr = Hax_FindHashEntry(&iPtr->commandTable, cmdName);
    if (hPtr == NULL) {
	return -1;
    }
    cmdPtr = (Command *) Hax_GetHashValue(hPtr);
    if (cmdPtr->deleteProc != NULL) {
	(*cmdPtr->deleteProc)(interp, cmdPtr->clientData);
    }
    ckfree(memoryp, (char *) cmdPtr);
    Hax_DeleteHashEntry(interp, hPtr);
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x280(%rdi), %r15
addq $0x18, %rdi
callq *0x58(%rbx)
testq %rax, %rax
je 0x5d99
movq %rax, %r14
movq 0x18(%rax), %r12
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x5d73
movq 0x8(%r12), %rsi
movq %rbx, %rdi
callq *%rax
leaq 0xd4c6(%rip), %rdx      # 0x13240
movq %r15, %rdi
movq %r12, %rsi
movl $0x17d, %ecx            # imm = 0x17D
callq 0x4280
movq %rbx, %rdi
movq %r14, %rsi
callq 0x42f0
xorl %eax, %eax
jmp 0x5d9c
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxBasic.c
// Function: Hax_AddErrorInfo
void
Hax_AddErrorInfo(
    Hax_Interp *interp,		/* Interpreter to which error information
				 * pertains. */
    char *message		/* Message to record. */)
{
    Interp *iPtr = (Interp *) interp;

    /*
     * If an error is already being logged, then the new errorInfo
     * is the concatenation of the old info and the new message.
     * If this is the first piece of info for the error, then the
     * new errorInfo is the concatenation of the message in
     * interp->result and the new message.
     */

    if (!(iPtr->flags & ERR_IN_PROGRESS)) {
	Hax_SetVar2(interp, (char *) "errorInfo", (char *) NULL,
		interp->result, HAX_GLOBAL_ONLY);
	iPtr->flags |= ERR_IN_PROGRESS;

	/*
	 * If the errorCode variable wasn't set by the code that generated
	 * the error, set it to "NONE".
	 */

	if (!(iPtr->flags & ERROR_CODE_SET)) {
	    (void) Hax_SetVar2(interp, (char *) "errorCode", (char *) NULL,
		    (char *) "NONE", HAX_GLOBAL_ONLY);
	}
    }
    Hax_SetVar2(interp, (char *) "errorInfo", (char *) NULL, message,
	    HAX_GLOBAL_ONLY|HAX_APPEND_VALUE);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testb $0x2, 0x1a0(%rdi)
jne 0x64df
movq (%r14), %rcx
leaq 0xcebd(%rip), %rsi      # 0x1335b
pushq $0x1
popq %r8
movq %r14, %rdi
xorl %edx, %edx
callq 0x40e0
movl 0x1a0(%r14), %eax
movl %eax, %ecx
orl $0x2, %ecx
movl %ecx, 0x1a0(%r14)
testb $0x8, %al
jne 0x64df
leaq 0xce9b(%rip), %rsi      # 0x13365
leaq 0xce9e(%rip), %rcx      # 0x1336f
pushq $0x1
popq %r8
movq %r14, %rdi
xorl %edx, %edx
callq 0x40e0
leaq 0xce75(%rip), %rsi      # 0x1335b
pushq $0x3
popq %r8
movq %r14, %rdi
xorl %edx, %edx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x40e0
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxBasic.c
// Function: Hax_CreateTrace
Hax_Trace
Hax_CreateTrace(
    Hax_Interp *interp,		/* Interpreter in which to create the trace. */
    int level,			/* Only call proc for commands at nesting level
				 * <= level (1 => top level). */
    Hax_CmdTraceProc *proc,	/* Procedure to call before executing each
				 * command. */
    ClientData clientData	/* Arbitrary one-word value to pass to proc. */)
{
    Trace *tracePtr;
    Interp *iPtr = (Interp *) interp;
    Hax_Memoryp *memoryp = iPtr->memoryp;

    tracePtr = (Trace *) ckalloc(memoryp, sizeof(Trace));
    tracePtr->level = level;
    tracePtr->proc = proc;
    tracePtr->clientData = clientData;
    tracePtr->nextPtr = iPtr->tracePtr;
    iPtr->tracePtr = tracePtr;

    return (Hax_Trace) tracePtr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
movq 0x280(%rdi), %rdi
leaq 0xcd22(%rip), %rdx      # 0x13240
pushq $0x20
popq %rsi
movl $0x34f, %ecx            # imm = 0x34F
callq 0x44e0
movl %ebp, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq 0x1a8(%r15), %rcx
movq %rcx, 0x18(%rax)
movq %rax, 0x1a8(%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxBasic.c
// Function: Hax_GlobalEval
int
Hax_GlobalEval(
    Hax_Interp *interp,		/* Interpreter in which to evaluate command. */
    char *command		/* Command to evaluate. */)
{
    Interp *iPtr = (Interp *) interp;
    int result;
    CallFrame *savedVarFramePtr;

    savedVarFramePtr = iPtr->varFramePtr;
    iPtr->varFramePtr = NULL;
    result = Hax_Eval(interp, NULL, command, 0, (char **) NULL);
    iPtr->varFramePtr = savedVarFramePtr;
    return result;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rdx
movq %rdi, %rbx
movq 0xc8(%rdi), %r14
andq $0x0, 0xc8(%rdi)
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45d0
movq %r14, 0xc8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxBasic.c
// Function: Hax_SetLibraryPath
void
Hax_SetLibraryPath(
    Hax_Interp *interp,
    char *path)
{
    Interp *iPtr = (Interp *) interp;
    Hax_Memoryp *memoryp = iPtr->memoryp;

    if (iPtr->libraryPath != NULL) {
	ckfree(memoryp, iPtr->libraryPath);
    }

    iPtr->libraryPath = (char *) ckalloc(memoryp, strlen(path) + 1);
    strcpy(iPtr->libraryPath, path);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x280(%rdi), %r15
movq 0x288(%rdi), %rsi
testq %rsi, %rsi
je 0x6811
leaq 0xca3c(%rip), %rdx      # 0x13240
movq %r15, %rdi
movl $0x45d, %ecx            # imm = 0x45D
callq 0x4280
movq %rbx, %rdi
callq 0x41d0
leaq 0x1(%rax), %rsi
leaq 0xca1c(%rip), %rdx      # 0x13240
movq %r15, %rdi
movl $0x460, %ecx            # imm = 0x460
callq 0x44e0
movq %rax, 0x288(%r14)
movq %rax, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x40f0
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxCkalloc.c
// Function: Hax_ValidateAllMemory
void
Hax_ValidateAllMemory (
    Hax_Memoryp *memoryp,
    char  *file,
    int    line)
{
    Memoryp *memCtx = (Memoryp *) memoryp;
    struct mem_header *memScanP;

    for (memScanP = memCtx->allocHead; memScanP != NULL;
	 memScanP = memScanP->flink)
        ValidateMemory (memCtx, memScanP, file, line, FALSE);

}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq %rdi, %r12
movq (%r12), %r12
testq %r12, %r12
je 0x687d
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x6889
addq $0x18, %r12
jmp 0x685b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxCkalloc.c
// Function: Hax_DumpActiveMemory
int
Hax_DumpActiveMemory (
    Hax_Memoryp *memoryp)
{
    Memoryp           *memCtx = (Memoryp *) memoryp;
    struct mem_header *memScanP;
    char              *address;

    for (memScanP = memCtx->allocHead; memScanP != NULL;
	 memScanP = memScanP->flink) {
        address = &memScanP->body [0];
        printf ("%p - %p  %7ld @ %s %d", address,
                 address + memScanP->length - 1, memScanP->length,
                 memScanP->file, memScanP->line);
        if (strcmp(memScanP->file, "haxHash.c") == 0 && memScanP->line == 514){
	    printf("\t|%s|", ((Hax_HashEntry *) address)->key.string);
	}
	(void) printf("\n");
    }
    return HAX_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0xca11(%rip), %r14      # 0x13448
leaq 0xca20(%rip), %r15      # 0x1345e
leaq 0xca23(%rip), %r12      # 0x13468
pushq $0xa
popq %rbp
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x6aa5
leaq 0x30(%rbx), %rsi
movq (%rbx), %rcx
movq 0x8(%rbx), %r8
leaq (%rbx,%rcx), %rdx
addq $0x2f, %rdx
movl 0x10(%rbx), %r9d
movq %r14, %rdi
xorl %eax, %eax
callq 0x4260
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x4330
testl %eax, %eax
jne 0x6a98
cmpl $0x202, 0x10(%rbx)      # imm = 0x202
jne 0x6a98
leaq 0x50(%rbx), %rsi
movq %r12, %rdi
xorl %eax, %eax
callq 0x4260
movl %ebp, %edi
callq 0x4060
addq $0x18, %rbx
jmp 0x6a48
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxCkalloc.c
// Function: dump_memory_info
static void
dump_memory_info(
    Memoryp *memoryp)
{
        printf("total mallocs             %10lld\n",
                memoryp->total_mallocs);
        printf("total frees               %10lld\n",
                memoryp->total_frees);
        printf("current packets allocated %10lu\n",
                memoryp->current_malloc_packets);
        printf("current bytes allocated   %10lu\n",
                memoryp->current_bytes_malloced);
        printf("maximum packets allocated %10lu\n",
                memoryp->maximum_malloc_packets);
        printf("maximum bytes allocated   %10lu\n",
                memoryp->maximum_bytes_malloced);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
leaq 0xc9ad(%rip), %rdi      # 0x135f8
xorl %eax, %eax
callq 0x4260
movq 0x10(%rbx), %rsi
leaq 0xc9bd(%rip), %rdi      # 0x1361a
xorl %eax, %eax
callq 0x4260
movq 0x28(%rbx), %rsi
leaq 0xc9cd(%rip), %rdi      # 0x1363c
xorl %eax, %eax
callq 0x4260
movq 0x18(%rbx), %rsi
leaq 0xc9dc(%rip), %rdi      # 0x1365d
xorl %eax, %eax
callq 0x4260
movq 0x30(%rbx), %rsi
leaq 0xc9eb(%rip), %rdi      # 0x1367e
xorl %eax, %eax
callq 0x4260
movq 0x20(%rbx), %rsi
leaq 0xc9fa(%rip), %rdi      # 0x1369f
xorl %eax, %eax
popq %rbx
jmp 0x4260