LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x89fc
cmpl $0x1, %ebp
jne 0x74dd
xorl %ebx, %ebx
leaq 0x10(%rsp), %rdi
movq %rbx, (%rdi)
leaq 0x8(%rsp), %rsi
movq %rbx, (%rsi)
movq 0xfb38(%rip), %r12      # 0x16fd0
movq (%r12), %rdx
callq 0x4150
testq %rax, %rax
js 0x74ce
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %r15
movq 0x10(%rsp), %rdi
callq 0x9353
movq (%r12), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4150
testq %rax, %rax
jns 0x74b0
movl $0xa, %edi
callq 0x4040
jmp 0x757f
jle 0x7507
movl %ebp, %r15d
movl $0x1, %r12d
leaq 0x320a(%rip), %r14      # 0xa6f9
movq (%rbx,%r12,8), %rdi
movq %r14, %rsi
callq 0x40d0
testl %eax, %eax
je 0x752f
incq %r12
cmpq %r12, %r15
jne 0x74ef
movslq %ebp, %rax
movq -0x8(%rbx,%rax,8), %rdi
leaq 0x10(%rsp), %rbx
movq $0x0, (%rbx)
movq %rbx, %rsi
xorl %edx, %edx
callq 0x47a6
movq (%rbx), %rdi
callq 0x9353
jmp 0x7569
movq -0x8(%rbx,%r15,8), %rdi
leaq 0x8(%rsp), %rbx
movq $0x0, (%rbx)
movq %rbx, %rsi
movl $0x1, %edx
callq 0x47a6
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x453c
movq (%rbx), %rax
movq %rax, 0x10(%r14)
movq %r14, %rdi
callq 0x8aae
movl %eax, %ebp
movq (%rbx), %rdi
callq 0x4030
cmpl $0x1, %ebp
je 0x7598
xorl %ebx, %ebx
cmpl $0x2, %ebp
je 0x7593
callq 0x8a3e
movl %ebx, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x430a
callq 0x432c
movl $0x1, %ebx
jmp 0x757f
// File: /workspace/github_c_makefile_star2_O3/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 0x75c1
movq %rdx, %rsi
callq 0x4130
testq %rax, %rax
jne 0x75c8
movl $0x1, %edi
callq 0x4160
callq 0x4030
xorl %eax, %eax
popq %rcx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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
movl $0x811c9dc5, %ebp       # imm = 0x811C9DC5
testq %rsi, %rsi
je 0x7648
xorl %eax, %eax
movzbl (%r14,%rax), %ecx
xorl %ebp, %ecx
imull $0x1000193, %ecx, %ebp  # imm = 0x1000193
incq %rax
cmpq %rax, %rbx
jne 0x7633
leaq 0x1(%rbx), %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x75a4
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4100
movb $0x0, (%r15,%rbx)
movl $0x20, %edx
xorl %edi, %edi
xorl %esi, %esi
callq 0x75a4
movl $0x0, (%rax)
movq %rbx, 0x8(%rax)
movq %r15, 0x10(%rax)
movl %ebp, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/jtuu[P]quesler/src/opcodes.c
// Function: get_opcode_definition
const OpcodeDefinition* get_opcode_definition(Opcode opcode) {
    for (size_t i = 0; i < NUM_OPCODES; i++) {
        if (opcodes[i].opcode == opcode) {
            return &opcodes[i];
        }
    }

    return NULL;
}

// Assembly:
xorl %eax, %eax
leaq 0x78ff(%rip), %rcx      # 0xefa0
xorl %edx, %edx
movzwl (%rdx,%rcx), %esi
cmpl %edi, %esi
je 0x76b9
addq $0x40, %rdx
cmpq $0x7e40, %rdx           # imm = 0x7E40
jne 0x76a3
retq
addq %rdx, %rcx
movq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
xorl %ebx, %ebx
leaq 0x78cc(%rip), %r15      # 0xefa0
xorl %r12d, %r12d
movq 0x8(%r12,%r15), %rdi
movq %r14, %rsi
callq 0x40d0
testl %eax, %eax
je 0x76f7
addq $0x40, %r12
cmpq $0x7e40, %r12           # imm = 0x7E40
jne 0x76d7
jmp 0x76fd
addq %r12, %r15
movq %r15, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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:
movl $0x4, %ecx
xorl %eax, %eax
movl (%rdi,%rcx,4), %edx
cmpl $0x1, %edx
je 0x7742
cmpl $0x9, %edx
je 0x7742
testl %edx, %edx
je 0x774b
incq %rax
incq %rcx
cmpq $0xf, %rcx
jne 0x772e
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movl %edi, %r12d
movl $0x1, %edi
movl $0x1250, %esi           # imm = 0x1250
callq 0x40c0
movl %r12d, 0x10(%rax)
movl %ebp, 0x14(%rax)
movb (%r15), %dl
testb %dl, %dl
je 0x7d86
xorl %ecx, %ecx
movsbl %dl, %edx
movw %dx, 0x18(%rax,%rcx,4)
cmpq $0x1e, %rcx
ja 0x7d86
movb 0x1(%r15,%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0x7d6c
movb (%r14), %dl
testb %dl, %dl
je 0x7da9
xorl %ecx, %ecx
movsbl %dl, %edx
movw %dx, 0x58(%rax,%rcx,4)
cmpq $0x7e, %rcx
ja 0x7da9
movb 0x1(%r14,%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0x7d8f
movb (%rbx), %dl
testb %dl, %dl
je 0x7dd0
xorl %ecx, %ecx
movsbl %dl, %edx
movw %dx, 0x158(%rax,%rcx,4)
cmpq $0x11e, %rcx            # imm = 0x11E
ja 0x7dd0
movb 0x1(%rbx,%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0x7db1
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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, 0xf879(%rip)      # 0x17758
movq %rdi, 0xf87a(%rip)      # 0x17760
movl $0x1, %eax
movq %rax, 0xf876(%rip)      # 0x17768
movq %rax, 0xf877(%rip)      # 0x17770
retq
// File: /workspace/github_c_makefile_star2_O3/jtuu[P]quesler/src/scanner.c
// Function: string
static Token string(void) {
    while (peek() != '"' && !is_at_end()) {
        if (peek() == '\n') {
            scanner.line++;
        }

        advance();
    }

    if (is_at_end()) {
        return error_token("Unterminated string");
    }

    advance();
    return make_token(TOKEN_STRING);
}

// Assembly:
movq 0xf27b(%rip), %rdx      # 0x17760
movq 0xf27c(%rip), %rax      # 0x17768
incq %rdx
movq %rdx, %rcx
movzbl -0x1(%rdx), %esi
cmpl $0xa, %esi
je 0x8506
testl %esi, %esi
je 0x853c
cmpl $0x22, %esi
jne 0x8510
jmp 0x851f
incq %rax
movq %rax, 0xf258(%rip)      # 0x17768
movq %rdx, 0xf249(%rip)      # 0x17760
incq %rcx
incq %rdx
jmp 0x84f2
movq %rdx, 0xf23a(%rip)      # 0x17760
movl $0x1b, (%rdi)
movq 0xf225(%rip), %rdx      # 0x17758
movq %rdx, 0x8(%rdi)
subq %rdx, %rcx
jmp 0x8552
movl $0x29, (%rdi)
leaq 0x3adc(%rip), %rcx      # 0xc025
movq %rcx, 0x8(%rdi)
movl $0x13, %ecx
movq %rcx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq 0xf20f(%rip), %rax      # 0x17770
movq %rax, 0x20(%rdi)
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x85cd
pushq %rbx
movq %rdx, %rbx
movq %rsi, %rdx
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdi
callq 0x85d4
cmpq $0x0, (%rax)
je 0x85d0
movups 0x8(%rax), %xmm0
movups %xmm0, (%rbx)
movb $0x1, %al
jmp 0x85d2
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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
leaq (%r12,%r12,2), %rax
leaq (%r15,%rax,8), %r13
movq (%r13), %rax
testq %rax, %rax
je 0x861d
movq 0x10(%rax), %rdi
movq 0x10(%rbx), %rsi
callq 0x40d0
testl %eax, %eax
jne 0x862e
jmp 0x8633
testq %rbp, %rbp
cmoveq %r13, %rbp
cmpl $0x5, 0x8(%r13)
movq %rbp, %r13
je 0x8633
incl %r12d
jmp 0x85ee
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_O3/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), %r12
incq %rax
movq %rax, %xmm0
movq 0x39cb(%rip), %xmm1     # 0xc040
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x39cf(%rip), %xmm2     # 0xc050
subpd %xmm2, %xmm0
movapd %xmm0, %xmm3
unpckhpd %xmm0, %xmm3            # xmm3 = xmm3[1],xmm0[1]
addsd %xmm0, %xmm3
movq %r12, %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 0x39ae(%rip), %xmm1     # 0xc060
ucomisd %xmm1, %xmm3
jbe 0x8798
leaq (%r12,%r12), %rax
cmpq $0x8, %r12
movl $0x8, %r12d
cmovaeq %rax, %r12
leaq (,%r12,8), %rax
leaq (%rax,%rax,2), %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x75a4
movq %rax, %r13
testq %r12, %r12
je 0x8710
leaq 0x10(%r13), %rax
movq %r12, %rcx
movq $0x0, -0x10(%rax)
movl $0x5, -0x8(%rax)
movl $0x0, (%rax)
addq $0x18, %rax
decq %rcx
jne 0x86f2
movq $0x0, (%r15)
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x879e
movq %r13, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movl %ebp, 0xc(%rsp)
movq %rbx, 0x20(%rsp)
movl $0x8, %ebp
xorl %r14d, %r14d
movq 0x10(%r15), %r13
movq -0x8(%r13,%rbp), %rbx
testq %rbx, %rbx
je 0x876f
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x85d4
movq %rbx, (%rax)
movupd (%r13,%rbp), %xmm0
movupd %xmm0, 0x8(%rax)
incq (%r15)
movq 0x8(%r15), %rax
incq %r14
addq $0x18, %rbp
cmpq %rax, %r14
jb 0x873b
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
movq 0x20(%rsp), %rbx
movl 0xc(%rsp), %ebp
movq 0x18(%rsp), %r14
movq 0x10(%rsp), %r13
jmp 0x87a0
movq 0x10(%r15), %r13
jmp 0x87b3
xorl %esi, %esi
movq 0x10(%r15), %rdi
xorl %edx, %edx
callq 0x75a4
movq %r13, 0x10(%r15)
movq %r12, 0x8(%r15)
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x85d4
movq (%rax), %rcx
testq %rcx, %rcx
jne 0x87d2
cmpl $0x5, 0x8(%rax)
jne 0x87d2
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_O3/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 0x8829
pushq %rax
movq %rsi, %rdx
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdi
callq 0x85d4
cmpq $0x0, (%rax)
je 0x882c
movq $0x0, (%rax)
movl $0x5, 0x8(%rax)
movl $0x0, 0x10(%rax)
movb $0x1, %al
jmp 0x882e
xorl %eax, %eax
retq
xorl %eax, %eax
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/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:
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x888d
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x10, %r15d
xorl %r12d, %r12d
movq 0x10(%r14), %rcx
movq -0x10(%rcx,%r15), %rsi
testq %rsi, %rsi
je 0x8876
movl -0x8(%rcx,%r15), %edx
movq (%rcx,%r15), %rcx
movq %rbx, %rdi
callq 0x8645
movq 0x8(%r14), %rax
incq %r12
addq $0x18, %r15
cmpq %rax, %r12
jb 0x8853
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x88ea
leaq (%rsi,%rsi), %rax
cmpq $0x8, %rsi
movl $0x8, %edx
cmovaeq %rax, %rdx
movq %rdx, (%r14)
movq 0x10(%r14), %rdi
shlq $0x4, %rsi
shlq $0x4, %rdx
callq 0x75a4
movq %rax, 0x10(%r14)
movq 0x8(%r14), %rcx
jmp 0x88ee
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_O3/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 0x8992
movq %rsi, %rbx
movl %edi, %eax
leaq 0x372a(%rip), %rcx      # 0xc068
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
testl %ebx, %ebx
leaq 0x3739(%rip), %rax      # 0xc089
leaq 0x372d(%rip), %rdi      # 0xc084
cmoveq %rax, %rdi
jmp 0x89b9
movd %ebx, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x372c(%rip), %rdi      # 0xc098
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4090
movswl %bx, %esi
leaq 0x370b(%rip), %rdi      # 0xc08f
jmp 0x89a4
movzbl %bl, %esi
leaq 0x3703(%rip), %rdi      # 0xc093
jmp 0x89a4
leaq 0x3707(%rip), %rdi      # 0xc0a0
jmp 0x89b9
leaq 0x192c(%rip), %rdi      # 0xa2ce
movl %ebx, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4090
leaq 0x36e2(%rip), %rdi      # 0xc09b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4090
movzwl (%rbx), %eax
testw %ax, %ax
je 0x89f3
addq $0x2, %rbx
leaq 0x1ce9(%rip), %r14      # 0xa6c3
movzwl %ax, %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x4090
movzwl (%rbx), %eax
addq $0x2, %rbx
testw %ax, %ax
jne 0x89da
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x10142(%rip), %rax     # 0x18b88
leaq 0xed2b(%rip), %rcx      # 0x17778
movq %rax, %rdx
subq %rcx, %rdx
addq $-0x1010, %rdx          # imm = 0xEFF0
cmpq $0xff1, %rdx            # imm = 0xFF1
jge 0x8a72
movl %edi, (%rax)
movq %rsi, 0x8(%rax)
addq $0x10, 0x10117(%rip)    # 0x18b88
retq
pushq %rax
callq 0x434e
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x10103(%rip), %rcx     # 0x18b88
addq $-0x10, %rcx
movq %rcx, 0x100f8(%rip)     # 0x18b88
leaq 0xfcf1(%rip), %rbx      # 0x18788
cmpq %rbx, %rcx
jb 0x8aa4
movl (%rcx), %eax
movq 0x8(%rcx), %rdx
popq %rbx
retq
callq 0x436a
movq %rbx, %rcx
jmp 0x8a9c
// File: /workspace/github_c_makefile_star2_O3/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 0x453c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5a1b
movl $0x1, %ebx
testb %al, %al
je 0x938a
leaq 0x8(%rsp), %rdi
callq 0x8aae
movl %eax, %ebx
leaq 0x8(%rsp), %rdi
callq 0x461e
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xe3d3(%rip), %rax      # 0x17778
movq 0x38(%rax), %rcx
movslq (%rcx,%rdi,4), %rcx
testq %rcx, %rcx
js 0x93be
addq 0x10(%rax), %rcx
movq %rcx, 0xe3c3(%rip)      # 0x17780
retq
pushq %rax
callq 0x440d
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x9405
leaq 0x2df0(%rip), %rax      # 0xc1c8
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
callq 0x4429
xorl %eax, %eax
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/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
testq %rsi, %rsi
setne %al
testq %rdx, %rdx
setne %cl
testb %cl, %al
jne 0x4baf
leaq 0xf56d(%rip), %rsi      # 0x1411a
jmp 0x4c20
movq %rsi, %r14
cmpb $-0x64, 0xb4(%rsi)
jne 0x4c19
movq %rdx, %r15
movq %rdi, (%rsp)
movq 0xa8(%r14), %r12
testq %r12, %r12
je 0x4c38
movsbl (%r12), %r13d
movq %r15, %rdi
movl %r13d, %esi
callq 0x4250
xorl %ebp, %ebp
testq %rax, %rax
je 0x4c27
movq %rax, %rbx
movslq 0xb0(%r14), %rbp
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x40c0
testl %eax, %eax
je 0x4c38
incq %rbx
movq %rbx, %rdi
movl %r13d, %esi
callq 0x4250
movq %rax, %rbx
testq %rax, %rax
jne 0x4bef
jmp 0x4c25
leaq 0xf509(%rip), %rsi      # 0x14129
callq 0x4220
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rsp), %r12
movq %r15, 0x2c0(%r12)
cmpb $0x0, 0xa1(%r14)
je 0x4c67
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4ce4
movsbl 0xa0(%r14), %esi
testl %esi, %esi
je 0x4cb7
movq %r15, %rdi
callq 0x4250
xorl %ebp, %ebp
testq %rax, %rax
je 0x4c27
movq %rax, %rbx
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4ce4
testl %eax, %eax
jne 0x4cda
incq %rbx
movsbl 0xa0(%r14), %esi
movq %rbx, %rdi
callq 0x4250
movq %rax, %rbx
testq %rax, %rax
jne 0x4c85
jmp 0x4c27
xorl %ebp, %ebp
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x4ce4
testl %eax, %eax
jne 0x4cda
cmpb $0x0, (%r15)
leaq 0x1(%r15), %r15
jne 0x4cb9
jmp 0x4c27
movl $0x1, %ebp
jmp 0x4c27
// File: /workspace/github_c_makefile_star2_O3/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
xorps %xmm0, %xmm0
movups %xmm0, (%rbx,%rax,8)
movups %xmm0, 0x50(%rbx,%rax,8)
addq $0x2, %rax
cmpq $0xa, %rax
jne 0x4d10
leaq 0xb5(%rbx), %rsi
movq %r15, %rdi
callq 0x571a
testl %eax, %eax
je 0x4d4b
movq %r14, (%rbx)
movq 0x2b8(%r15), %rax
movq %rax, 0x50(%rbx)
movl $0x1, %eax
jmp 0x4d4d
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xe6c7(%rip), %r14      # 0x14222
movl $0x10, %esi
movq %rbx, %rdi
movq %r14, %rdx
movl $0x49, %ecx
callq 0x44d0
movq %rax, %r15
movl $0x64, %esi
movq %rbx, %rdi
movq %r14, %rdx
movl $0x4a, %ecx
callq 0x44d0
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_O3/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 0x5c1d
movl 0x8(%rbx), %r13d
movl 0xc(%rbx), %eax
leal (%rax,%r15), %ecx
cmpl %r13d, %ecx
jge 0x5c2d
movq (%rbx), %rbp
jmp 0x5c7f
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movb $0x0, (%rax,%rcx)
jmp 0x5cb5
incl %ecx
addl %r13d, %r13d
cmpl %ecx, %r13d
cmovbel %ecx, %r13d
leaq 0xe5e2(%rip), %rdx      # 0x14222
movq %r12, %rdi
movq %r13, %rsi
movl $0xb8, %ecx
callq 0x44d0
movq %rax, %rbp
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x40f0
movq (%rbx), %rsi
movq %r12, %rdi
leaq 0xe5b7(%rip), %rdx      # 0x14222
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 0x5cac
cmpl $0xa, %eax
jne 0x5cc1
callq 0x4500
testl %eax, %eax
je 0x5cc1
movl $0x0, 0xc(%rbx)
movq (%rbx), %rax
jmp 0x5cc3
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_O3/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 %r14
pushq %rbx
movq %rdi, %r14
callq 0x4650
movq %rax, %rbx
xorl %ebp, %ebp
movq (%rbx), %rax
decq %r14
movsbq 0x1(%r14), %rcx
incq %r14
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x5ce9
testb %cl, %cl
je 0x5d11
movq %r14, %rdi
xorl %esi, %esi
callq 0x41b0
leaq 0x1(%rax), %r14
cmpb $0x0, (%rax)
jne 0x5ce3
jmp 0x5d16
movl $0x1, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/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 0x6174
leaq 0xe0e7(%rip), %rdx      # 0x14240
movl $0x18, %esi
movq %r13, %rdi
movl $0x14f, %ecx            # imm = 0x14F
callq 0x44d0
movq %rax, %r13
movq %rax, 0x18(%rbp)
jmp 0x618a
movq 0x18(%rbp), %r13
movq 0x10(%r13), %rax
testq %rax, %rax
je 0x618a
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_O3/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 0x6209
movq %rax, %r14
movq 0x18(%rax), %r12
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x61e3
movq 0x8(%r12), %rsi
movq %rbx, %rdi
callq *%rax
leaq 0xe056(%rip), %rdx      # 0x14240
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 0x620e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x6a13
movq (%r14), %rcx
leaq 0xd98d(%rip), %rsi      # 0x1435b
movq %r14, %rdi
xorl %edx, %edx
movl $0x1, %r8d
callq 0x40e0
movl 0x1a0(%r14), %eax
movl %eax, %ecx
orl $0x2, %ecx
movl %ecx, 0x1a0(%r14)
testb $0x8, %al
jne 0x6a13
leaq 0xd969(%rip), %rsi      # 0x14365
leaq 0xd96c(%rip), %rcx      # 0x1436f
movq %r14, %rdi
xorl %edx, %edx
movl $0x1, %r8d
callq 0x40e0
leaq 0xd941(%rip), %rsi      # 0x1435b
movq %r14, %rdi
xorl %edx, %edx
movq %rbx, %rcx
movl $0x3, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x40e0
// File: /workspace/github_c_makefile_star2_O3/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 0xd7ec(%rip), %rdx      # 0x14240
movl $0x20, %esi
movl $0x34f, %ecx            # imm = 0x34F
callq 0x44d0
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_O3/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
movq $0x0, 0xc8(%rdi)
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45c0
movq %r14, 0xc8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x6d50
leaq 0xd4fd(%rip), %rdx      # 0x14240
movq %r15, %rdi
movl $0x45d, %ecx            # imm = 0x45D
callq 0x4280
movq %rbx, %rdi
callq 0x41d0
leaq 0x1(%rax), %rsi
leaq 0xd4dd(%rip), %rdx      # 0x14240
movq %r15, %rdi
movl $0x460, %ecx            # imm = 0x460
callq 0x44d0
movq %rax, 0x288(%r14)
movq %rax, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x40f0
nop
// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r12
testq %r12, %r12
je 0x7016
leaq 0xd4a4(%rip), %rbx      # 0x14448
leaq 0xd4b3(%rip), %r14      # 0x1445e
leaq 0xd4b6(%rip), %r15      # 0x14468
leaq 0x30(%r12), %rsi
movq (%r12), %rcx
movq 0x8(%r12), %r8
leaq (%r12,%rcx), %rdx
addq $0x2f, %rdx
movl 0x10(%r12), %r9d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4260
movq 0x8(%r12), %rdi
movq %r14, %rsi
callq 0x4320
testl %eax, %eax
jne 0x7002
cmpl $0x202, 0x10(%r12)      # imm = 0x202
jne 0x7002
leaq 0x50(%r12), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x4260
movl $0xa, %edi
callq 0x4060
movq 0x18(%r12), %r12
testq %r12, %r12
jne 0x6fb2
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xd41e(%rip), %rdi      # 0x145f8
xorl %eax, %eax
callq 0x4260
movq 0x10(%rbx), %rsi
leaq 0xd42e(%rip), %rdi      # 0x1461a
xorl %eax, %eax
callq 0x4260
movq 0x28(%rbx), %rsi
leaq 0xd43e(%rip), %rdi      # 0x1463c
xorl %eax, %eax
callq 0x4260
movq 0x18(%rbx), %rsi
leaq 0xd44d(%rip), %rdi      # 0x1465d
xorl %eax, %eax
callq 0x4260
movq 0x30(%rbx), %rsi
leaq 0xd45c(%rip), %rdi      # 0x1467e
xorl %eax, %eax
callq 0x4260
movq 0x20(%rbx), %rsi
leaq 0xd46b(%rip), %rdi      # 0x1469f
xorl %eax, %eax
popq %rbx
jmp 0x4260
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxCkalloc.c
// Function: Hax_DbCkfree
int
Hax_DbCkfree(
    Hax_Memoryp *memoryp,
    void        *ptr,
    char        *file,
    int          line)
{
    Memoryp *memCtx = (Memoryp *) memoryp;
    struct mem_header *memp;

    if (ptr == NULL) {
	Hax_Panic ((char *) "Cannot free memory at addres 0x0, %s line %d",
	    file, line);
    }

    /*
     * Since header ptr is zero, body offset will be size
     */
    memp = (struct mem_header *)(((char *) ptr) -
	offsetof(struct mem_header, body));

    if (memCtx->alloc_tracing)
        printf("ckfree %p %lu %s %d\n", memp->body,
                memp->length, file, line);

    if (memCtx->validate_memory)
        Hax_ValidateAllMemory (memoryp, file, line);

    ValidateMemory (memCtx, memp, file, line, TRUE);

    memCtx->total_frees++;
    memCtx->current_malloc_packets--;
    memCtx->current_bytes_malloced -= memp->length;

    /*
     * Delink from allocated list
     */
    if (memp->flink != NULL)
        memp->flink->blink = memp->blink;
    if (memp->blink != NULL)
        memp->blink->flink = memp->flink;
    if (memCtx->allocHead == memp)
        memCtx->allocHead = memp->flink;
    free((char *) memp);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
jne 0x726a
leaq 0xd299(%rip), %rdi      # 0x144f7
movq %r15, %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0x4140
cmpl $0x0, 0x40(%rbx)
je 0x728b
movq -0x30(%r14), %rdx
leaq 0xd2a9(%rip), %rdi      # 0x14524
movq %r14, %rsi
movq %r15, %rcx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x4260
leaq -0x30(%r14), %r12
cmpl $0x0, 0x48(%rbx)
je 0x72b6
movq (%rbx), %r13
testq %r13, %r13
je 0x72b6
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
movl %ebp, %ecx
xorl %r8d, %r8d
callq 0x6dc9
movq 0x18(%r13), %r13
jmp 0x7298
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %ebp, %ecx
movl $0x1, %r8d
callq 0x6dc9
incq 0x10(%rbx)
decq 0x28(%rbx)
movq -0x30(%r14), %rax
subq %rax, 0x18(%rbx)
movq -0x18(%r14), %rax
movq -0x10(%r14), %rcx
testq %rax, %rax
je 0x72ed
movq %rcx, 0x20(%rax)
testq %rcx, %rcx
je 0x72f6
movq %rax, 0x18(%rcx)
cmpq %r12, (%rbx)
jne 0x7302
movq -0x18(%r14), %rax
movq %rax, (%rbx)
movq %r12, %rdi
callq 0x4680
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_O3/haxlang[P]hax/haxCkalloc.c
// Function: Hax_DbCkrealloc
void *
Hax_DbCkrealloc(
    Hax_Memoryp *memoryp,
    void *ptr,
    unsigned long int size,
    char *file,
    int line)
{
    void *newPtr;

    newPtr = Hax_DbCkalloc(memoryp, size, file, line);
    memcpy(newPtr, ptr, (int) size);
    Hax_DbCkfree(memoryp, ptr, file, line);
    return newPtr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
callq 0x44d0
movq %rax, %rbp
movslq %r15d, %rdx
movq %rax, %rdi
movq %r12, %rsi
callq 0x43b0
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x4280
movq %rbp, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxCkalloc.c
// Function: Hax_CreateMemoryManagement
Hax_Memoryp *
Hax_CreateMemoryManagement(
    int break_on_malloc,
    int trace_on_at_malloc,
    int alloc_tracing,
    int init_malloced_bodies,
    int validate_memory)
{
    Memoryp *memoryp;

    memoryp = (Memoryp *) malloc(sizeof(Memoryp));
    memset(memoryp, 0, sizeof(Memoryp));

    memoryp->break_on_malloc = break_on_malloc;
    memoryp->trace_on_at_malloc = trace_on_at_malloc;
    memoryp->alloc_tracing = alloc_tracing;
    memoryp->init_malloced_bodies = init_malloced_bodies;
    memoryp->validate_memory = validate_memory;

    return (Hax_Memoryp *) memoryp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r15d
movl %edi, %r12d
movl $0x1, %edi
movl $0x50, %esi
callq 0x4300
movl %r12d, 0x38(%rax)
movl %r15d, 0x3c(%rax)
movl %r14d, 0x40(%rax)
movl %ebp, 0x44(%rax)
movl %ebx, 0x48(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxCmdAH.c
// Function: Hax_CatchCmd
int
Hax_CatchCmd(
    ClientData dummy,			/* Not used. */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    int result;

    if ((argc != 2) && (argc != 3)) {
	Hax_AppendResult(interp, "wrong # args: should be \"",
		argv[0], " command ?varName?\"", (char *) NULL);
	return HAX_ERROR;
    }
    result = Hax_Eval(interp, NULL, argv[1], 0, (char **) NULL);
    if (argc == 3) {
	if (Hax_SetVar(interp, argv[2], interp->result, 0) == NULL) {
	    Hax_SetResult(interp,
		    (char *) "couldn't save command result in variable",
		    HAX_STATIC);
	    return HAX_ERROR;
	}
    }
    Hax_ResetResult(interp);
    sprintf(interp->result, "%d", result);
    return HAX_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %rbx
leal -0x4(%r12), %eax
cmpl $-0x3, %eax
ja 0x791c
movq (%r15), %rdx
leaq 0xcf60(%rip), %rsi      # 0x14860
leaq 0xcfef(%rip), %rcx      # 0x148f6
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x4510
movl $0x1, %r14d
jmp 0x796b
movq 0x8(%r15), %rdx
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45c0
movl %eax, %ebp
cmpl $0x3, %r12d
jne 0x7950
movq 0x10(%r15), %rsi
movq (%rbx), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x4460
testq %rax, %rax
je 0x7977
movq %rbx, %rdi
callq 0x42d0
movq (%rbx), %rdi
leaq 0xc9b1(%rip), %rsi      # 0x14313
movl %ebp, %edx
xorl %eax, %eax
callq 0x45e0
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xcf8c(%rip), %rsi      # 0x1490a
movq %rbx, %rdi
xorl %edx, %edx
callq 0x44f0
jmp 0x7914