LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x77ac(%rip), %r15      # 0xefa0
xorl %r12d, %r12d
movq 0x8(%r12,%r15), %rdi
movq %r14, %rsi
callq 0x40d0
testl %eax, %eax
je 0x7817
addq $0x40, %r12
cmpq $0x7e40, %r12           # imm = 0x7E40
jne 0x77f7
jmp 0x781d
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_O1/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 0x7862
cmpl $0x9, %edx
je 0x7862
testl %edx, %edx
je 0x786b
incq %rax
incq %rcx
cmpq $0xf, %rcx
jne 0x784e
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x7ee6
xorl %ecx, %ecx
movsbl %dl, %edx
movw %dx, 0x18(%rax,%rcx,4)
cmpq $0x1e, %rcx
ja 0x7ee6
movb 0x1(%r15,%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0x7ecc
movb (%r14), %dl
testb %dl, %dl
je 0x7f09
xorl %ecx, %ecx
movsbl %dl, %edx
movw %dx, 0x58(%rax,%rcx,4)
cmpq $0x7e, %rcx
ja 0x7f09
movb 0x1(%r14,%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0x7eef
movb (%rbx), %dl
testb %dl, %dl
je 0x7f30
xorl %ecx, %ecx
movsbl %dl, %edx
movw %dx, 0x158(%rax,%rcx,4)
cmpq $0x11e, %rcx            # imm = 0x11E
ja 0x7f30
movb 0x1(%rbx,%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0x7f11
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jtuu[P]quesler/src/qst.c
// Function: chunk_to_bin
void chunk_to_bin(Chunk* chunk, QstBin* bin) {
    bin->object_code_len = chunk->count;
    bin->object_code = malloc(bin->object_code_len);
    memcpy(bin->object_code, chunk->code, bin->object_code_len);

    bin->function_offset_table_len = chunk->labels_count;
    bin->function_offset_table = malloc(bin->function_offset_table_len * 4);
    memcpy(bin->function_offset_table, chunk->labels, bin->function_offset_table_len * 4);

    bin->bin_size = (uint32_t) (BIN_MINIMUM_SIZE + bin->object_code_len + bin->function_offset_table_len * 4);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %r14
movq %r14, 0x1230(%rsi)
movq %r14, %rdi
callq 0x4110
movq %rax, 0x1238(%rbx)
movq 0x10(%r15), %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0x4100
movq 0x40(%r15), %r12
movq %r12, 0x1240(%rbx)
shlq $0x2, %r12
movq %r12, %rdi
callq 0x4110
movq %rax, 0x1248(%rbx)
movq 0x38(%r15), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x4100
leal (%r14,%r12), %eax
addl $0x122c, %eax           # imm = 0x122C
movl %eax, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/jtuu[P]quesler/src/qst.c
// Function: bin_to_chunk
void bin_to_chunk(QstBin* bin, Chunk* chunk) {
    chunk->count = bin->object_code_len;
    chunk->code = malloc(chunk->count);
    memcpy(chunk->code, bin->object_code, chunk->count);

    chunk->labels_count = bin->function_offset_table_len;
    chunk->labels = malloc(chunk->labels_count * 4);
    memcpy(chunk->labels, bin->function_offset_table, chunk->labels_count * 4);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x1230(%rdi), %r15
movq %r15, (%rsi)
movq %r15, %rdi
callq 0x4110
movq %rax, 0x10(%rbx)
movq 0x1238(%r14), %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x4100
movq 0x1240(%r14), %r15
movq %r15, 0x40(%rbx)
shlq $0x2, %r15
movq %r15, %rdi
callq 0x4110
movq %rax, 0x38(%rbx)
movq 0x1248(%r14), %rsi
movq %rax, %rdi
movq %r15, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x4100
// File: /workspace/github_c_makefile_star2_O1/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, 0xf719(%rip)      # 0x17758
movq %rdi, 0xf71a(%rip)      # 0x17760
movl $0x1, %eax
movq %rax, 0xf716(%rip)      # 0x17768
movq %rax, 0xf717(%rip)      # 0x17770
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rdi, %rax
movq 0xf109(%rip), %rdx      # 0x17760
movq 0xf10a(%rip), %rsi      # 0x17768
incq %rdx
movq %rdx, %rcx
movzbl -0x1(%rdx), %edi
cmpl $0xa, %edi
je 0x8678
testl %edi, %edi
je 0x86ae
cmpl $0x22, %edi
jne 0x8682
jmp 0x8691
incq %rsi
movq %rsi, 0xf0e6(%rip)      # 0x17768
movq %rdx, 0xf0d7(%rip)      # 0x17760
incq %rcx
incq %rdx
jmp 0x8664
movq %rdx, 0xf0c8(%rip)      # 0x17760
movl $0x1b, (%rax)
movq 0xf0b3(%rip), %rdx      # 0x17758
movq %rdx, 0x8(%rax)
subq %rdx, %rcx
jmp 0x86c4
movl $0x29, (%rax)
leaq 0x393a(%rip), %rcx      # 0xbff5
movq %rcx, 0x8(%rax)
movl $0x13, %ecx
movq %rcx, 0x10(%rax)
movq 0xf099(%rip), %rcx      # 0x17768
movq %rcx, 0x18(%rax)
movq 0xf096(%rip), %rcx      # 0x17770
movq %rcx, 0x20(%rax)
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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 0x874b
pushq %rbx
movq %rdx, %rbx
movq %rsi, %rdx
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdi
callq 0x874e
movq %rax, %rcx
cmpq $0x0, (%rax)
setne %al
je 0x8749
movups 0x8(%rcx), %xmm0
movups %xmm0, (%rbx)
movb $0x1, %al
popq %rbx
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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), %eax
xorl %r13d, %r13d
xorl %edx, %edx
divl %r14d
movl %edx, %ebp
movl %ebp, %eax
leaq (%rax,%rax,2), %rax
leaq (%r15,%rax,8), %r12
movq (%r12), %rax
testq %rax, %rax
je 0x879b
movq 0x10(%rax), %rdi
movq 0x10(%rbx), %rsi
callq 0x40d0
testl %eax, %eax
jne 0x87b8
xorl %eax, %eax
movq %r12, (%rsp)
jmp 0x87c5
testq %r13, %r13
movq %r13, %rcx
cmoveq %r12, %rcx
cmpl $0x5, 0x8(%r12)
jne 0x87b5
xorl %eax, %eax
movq %rcx, (%rsp)
jmp 0x87c5
movq %rcx, %r13
incl %ebp
movl %ebp, %eax
xorl %edx, %edx
divl %r14d
movb $0x1, %al
movl %edx, %ebp
testb %al, %al
jne 0x876f
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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), %rcx
movq 0x8(%rdi), %rax
incq %rcx
movq %rcx, %xmm0
movq 0x3804(%rip), %xmm1     # 0xc010
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x3808(%rip), %xmm2     # 0xc020
subpd %xmm2, %xmm0
movapd %xmm0, %xmm3
unpckhpd %xmm0, %xmm3            # xmm3 = xmm3[1],xmm0[1]
addsd %xmm0, %xmm3
movq %rax, %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 0x37e7(%rip), %xmm1     # 0xc030
ucomisd %xmm1, %xmm3
jbe 0x8942
movq %r14, 0x18(%rsp)
movl %ebp, 0x14(%rsp)
movq %rbx, 0x20(%rsp)
leaq (%rax,%rax), %rcx
cmpq $0x8, %rax
movl $0x8, %r12d
cmovaeq %rcx, %r12
leaq (,%r12,8), %rax
leaq (%rax,%rax,2), %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x76c4
movq %rax, 0x8(%rsp)
testq %r12, %r12
je 0x88bc
movq 0x8(%rsp), %rax
addq $0x10, %rax
movq %r12, %rcx
movq $0x0, -0x10(%rax)
movl $0x5, -0x8(%rax)
movl $0x0, (%rax)
addq $0x18, %rax
decq %rcx
jne 0x889e
movq $0x0, (%r15)
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x8914
movl $0x8, %ebp
xorl %r14d, %r14d
movq 0x10(%r15), %r13
movq -0x8(%r13,%rbp), %rbx
testq %rbx, %rbx
je 0x8904
movq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x874e
movq %rbx, (%rax)
movupd (%r13,%rbp), %xmm0
movupd %xmm0, 0x8(%rax)
incq (%r15)
incq %r14
movq 0x8(%r15), %rax
addq $0x18, %rbp
cmpq %rax, %r14
jb 0x88d4
movq 0x10(%r15), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
xorl %edx, %edx
callq 0x76c4
movq 0x8(%rsp), %rax
movq %rax, 0x10(%r15)
movq %r12, 0x8(%r15)
movq 0x20(%rsp), %rbx
movl 0x14(%rsp), %ebp
movq 0x18(%rsp), %r14
movq 0x8(%r15), %rsi
movq 0x10(%r15), %rdi
movq %r14, %rdx
callq 0x874e
movq (%rax), %rcx
testq %rcx, %rcx
jne 0x8963
cmpl $0x5, 0x8(%rax)
jne 0x8963
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_O1/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 0x89c3
pushq %rax
movq %rsi, %rdx
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdi
callq 0x874e
movq %rax, %rcx
cmpq $0x0, (%rax)
setne %al
je 0x89be
movq $0x0, (%rcx)
movl $0x5, 0x8(%rcx)
movl $0x0, 0x10(%rcx)
movb $0x1, %al
addq $0x8, %rsp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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:
cmpq $0x0, 0x8(%rdi)
je 0x8a1b
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), %rax
movq -0x10(%rax,%r15), %rsi
testq %rsi, %rsi
je 0x8a03
movl -0x8(%rax,%r15), %edx
movq (%rax,%r15), %rcx
movq %rbx, %rdi
callq 0x87dc
incq %r12
addq $0x18, %r15
cmpq 0x8(%r14), %r12
jb 0x89e4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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), %rax
incq %rax
cmpq %rax, %rsi
jae 0x8a6f
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 0x76c4
movq %rax, 0x10(%r14)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
shlq $0x4, %rax
movl %ebp, (%rcx,%rax)
movq %rbx, 0x8(%rcx,%rax)
incq 0x8(%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
movq %rsi, (%rsp)
cmpl $0x6, %edi
ja 0x8b1d
movl %edi, %eax
leaq 0x3570(%rip), %rcx      # 0xc038
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x0, (%rsp)
leaq 0x357d(%rip), %rax      # 0xc059
leaq 0x3571(%rip), %rdi      # 0xc054
cmoveq %rax, %rdi
jmp 0x8b45
cvtss2sd (%rsp), %xmm0
leaq 0x3573(%rip), %rdi      # 0xc068
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4090
movswl (%rsp), %esi
leaq 0x3551(%rip), %rdi      # 0xc05f
jmp 0x8b30
movzbl (%rsp), %esi
leaq 0x3548(%rip), %rdi      # 0xc063
jmp 0x8b30
leaq 0x354c(%rip), %rdi      # 0xc070
jmp 0x8b45
movl (%rsp), %esi
leaq 0x177a(%rip), %rdi      # 0xa2aa
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4090
leaq 0x3526(%rip), %rdi      # 0xc06b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4090
movq %rsi, %rbx
movzwl (%rsi), %eax
testw %ax, %ax
je 0x8b82
addq $0x2, %rbx
leaq 0x1b36(%rip), %r14      # 0xa69f
movzwl %ax, %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x4090
movzwl (%rbx), %eax
addq $0x2, %rbx
testw %ax, %ax
jne 0x8b69
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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 0xffb2(%rip), %rax      # 0x18b88
leaq 0xeb9b(%rip), %rcx      # 0x17778
movq %rax, %rdx
subq %rcx, %rdx
addq $-0x1010, %rdx          # imm = 0xEFF0
cmpq $0xff1, %rdx            # imm = 0xFF1
jge 0x8c02
movl %edi, (%rax)
movq %rsi, 0x8(%rax)
addq $0x10, 0xff87(%rip)     # 0x18b88
retq
pushq %rax
callq 0x4365
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rax
movq 0xff73(%rip), %rax      # 0x18b88
addq $-0x10, %rax
movq %rax, 0xff68(%rip)      # 0x18b88
leaq 0xfb61(%rip), %rcx      # 0x18788
cmpq %rcx, %rax
jb 0x8c3b
movq 0xff55(%rip), %rcx      # 0x18b88
movl (%rcx), %eax
movq 0x8(%rcx), %rdx
popq %rcx
retq
callq 0x4381
jmp 0x8c2c
// File: /workspace/github_c_makefile_star2_O1/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 0x454c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5a2c
movl $0x1, %ebx
testb %al, %al
je 0x957e
leaq 0x8(%rsp), %rdi
callq 0x8c42
movl %eax, %ebx
leaq 0x8(%rsp), %rdi
callq 0x4627
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xe1df(%rip), %rax      # 0x17778
movq 0x38(%rax), %rcx
movslq (%rcx,%rdi,4), %rcx
testq %rcx, %rcx
js 0x95b2
addq 0x10(%rax), %rcx
movq %rcx, 0xe1cf(%rip)      # 0x17780
retq
pushq %rax
callq 0x4424
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x95f9
leaq 0x2bcc(%rip), %rax      # 0xc198
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 0x4440
xorl %eax, %eax
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4b94
leaq 0x10588(%rip), %rsi     # 0x1511a
jmp 0x4c05
movq %rsi, %r14
cmpb $-0x64, 0xb4(%rsi)
jne 0x4bfe
movq %rdx, %r15
movq %rdi, (%rsp)
movq 0xa8(%r14), %r12
testq %r12, %r12
je 0x4c1d
movsbl (%r12), %r13d
movq %r15, %rdi
movl %r13d, %esi
callq 0x4250
xorl %ebp, %ebp
testq %rax, %rax
je 0x4c0c
movq %rax, %rbx
movslq 0xb0(%r14), %rbp
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x40c0
testl %eax, %eax
je 0x4c1d
incq %rbx
movq %rbx, %rdi
movl %r13d, %esi
callq 0x4250
movq %rax, %rbx
testq %rax, %rax
jne 0x4bd4
jmp 0x4c0a
leaq 0x10524(%rip), %rsi     # 0x15129
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 0x4c4f
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 0x4cd2
cmpb $0x0, 0xa0(%r14)
je 0x4ca5
movsbl 0xa0(%r14), %esi
movq %r15, %rdi
callq 0x4250
xorl %ebp, %ebp
testq %rax, %rax
je 0x4c0c
movq %rax, %rbx
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4cd2
testl %eax, %eax
jne 0x4cc8
incq %rbx
movsbl 0xa0(%r14), %esi
movq %rbx, %rdi
callq 0x4250
movq %rax, %rbx
testq %rax, %rax
jne 0x4c73
jmp 0x4c0c
xorl %ebp, %ebp
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x4cd2
testl %eax, %eax
jne 0x4cc8
cmpb $0x0, (%r15)
leaq 0x1(%r15), %r15
jne 0x4ca7
jmp 0x4c0c
movl $0x1, %ebp
jmp 0x4c0c
// File: /workspace/github_c_makefile_star2_O1/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)
movl $0xb, %eax
xorl %ecx, %ecx
movq %rsi, %rdx
movq %rcx, (%rdx)
movq %rcx, 0x50(%rdx)
addq $0x8, %rdx
decl %eax
cmpl $0x1, %eax
ja 0x4d03
leaq 0xb5(%rbx), %rsi
movq %r15, %rdi
callq 0x57a7
testl %eax, %eax
je 0x4d3d
movq %r14, (%rbx)
movq 0x2b8(%r15), %rax
movq %rax, 0x50(%rbx)
movl $0x1, %eax
jmp 0x4d3f
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/haxlang[P]hax/haxRegexp.c
// Function: RegTail
static void
RegTail(
Hax_Interp *interp,
char *p,
char *val)
{
	Interp *iPtr = (Interp *) interp;
	char *scan;
	char *temp;
	int offset;

	if (p == &iPtr->regdummy)
		return;

	/* Find last node. */
	scan = p;
	for (;;) {
		temp = RegNext(interp, scan);
		if (temp == NULL)
			break;
		scan = temp;
	}

	if (OP(scan) == BACK)
		offset = scan - val;
	else
		offset = val - scan;
	*(scan+1) = (offset>>8)&0377;
	*(scan+2) = offset&0377;
}

// Assembly:
addq $0x2a4, %rdi            # imm = 0x2A4
cmpq %rsi, %rdi
je 0x57a6
movq %rsi, %rax
cmpq %rsi, %rdi
je 0x5783
movzwl 0x1(%rax), %ecx
rolw $0x8, %cx
testw %cx, %cx
je 0x5783
movzwl %cx, %ecx
cmpb $0x7, (%rax)
movl %ecx, %ecx
jne 0x5787
movq %rax, %rsi
subq %rcx, %rsi
jmp 0x578d
xorl %esi, %esi
jmp 0x578d
addq %rax, %rcx
movq %rcx, %rsi
testq %rsi, %rsi
jne 0x575c
movl %eax, %ecx
subl %edx, %ecx
subl %eax, %edx
cmpb $0x7, (%rax)
cmovel %ecx, %edx
rolw $0x8, %dx
movw %dx, 0x1(%rax)
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xf603(%rip), %r14      # 0x15222
movl $0x10, %esi
movq %rbx, %rdi
movq %r14, %rdx
movl $0x49, %ecx
callq 0x44c0
movq %rax, %r15
movl $0x64, %esi
movq %rbx, %rdi
movq %r14, %rdx
movl $0x4a, %ecx
callq 0x44c0
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_O1/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 0x5d69
movl 0xc(%rbx), %eax
addl %r15d, %eax
movl 0x8(%rbx), %r13d
cmpl %r13d, %eax
jl 0x5d2e
incl %eax
addl %r13d, %r13d
cmpl %eax, %r13d
cmovbel %eax, %r13d
leaq 0xf530(%rip), %rdx      # 0x15222
movq %r12, %rdi
movq %r13, %rsi
movl $0xb8, %ecx
callq 0x44c0
movq %rax, %rbp
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x40f0
movq (%rbx), %rsi
movq %r12, %rdi
leaq 0xf505(%rip), %rdx      # 0x15222
movl $0xba, %ecx
callq 0x4280
movq %rbp, (%rbx)
movl %r13d, 0x8(%rbx)
movslq 0xc(%rbx), %rdi
addq (%rbx), %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 0x5d5c
cmpl $0xa, %eax
jne 0x5d65
callq 0x44f0
testl %eax, %eax
jne 0x5d74
xorl %eax, %eax
jmp 0x5d7e
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movb $0x0, (%rax,%rcx)
movl $0x0, 0xc(%rbx)
movq (%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4640
movq %rax, %rbx
xorl %ebp, %ebp
movq (%rbx), %rax
decq %r14
movsbq 0x1(%r14), %rcx
incq %r14
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x5da4
testb %cl, %cl
je 0x5dcc
movq %r14, %rdi
xorl %esi, %esi
callq 0x41b0
leaq 0x1(%rax), %r14
cmpb $0x0, (%rax)
jne 0x5d9e
jmp 0x5dd1
movl $0x1, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x6230
leaq 0xf02b(%rip), %rdx      # 0x15240
movl $0x18, %esi
movq %r13, %rdi
movl $0x14f, %ecx            # imm = 0x14F
callq 0x44c0
movq %rax, %r13
movq %rax, 0x18(%rbp)
jmp 0x6246
movq 0x18(%rbp), %r13
movq 0x10(%r13), %rax
testq %rax, %rax
je 0x6246
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_O1/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 0x62c5
movq %rax, %r14
movq 0x18(%rax), %r12
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x629f
movq 0x8(%r12), %rsi
movq %rbx, %rdi
callq *%rax
leaq 0xef9a(%rip), %rdx      # 0x15240
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 0x62ca
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x6b8b
movq (%r14), %rcx
leaq 0xe815(%rip), %rsi      # 0x1535b
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 0x6b8b
leaq 0xe7f1(%rip), %rsi      # 0x15365
leaq 0xe7f4(%rip), %rcx      # 0x1536f
movq %r14, %rdi
xorl %edx, %edx
movl $0x1, %r8d
callq 0x40e0
leaq 0xe7c9(%rip), %rsi      # 0x1535b
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_O1/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 0xe674(%rip), %rdx      # 0x15240
movl $0x20, %esi
movl $0x34f, %ecx            # imm = 0x34F
callq 0x44c0
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_O1/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 0x45b0
movq %r14, 0xc8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x6ea4
leaq 0xe3a9(%rip), %rdx      # 0x15240
movq %r15, %rdi
movl $0x45d, %ecx            # imm = 0x45D
callq 0x4280
movq %rbx, %rdi
callq 0x41d0
leaq 0x1(%rax), %rsi
leaq 0xe389(%rip), %rdx      # 0x15240
movq %r15, %rdi
movl $0x460, %ecx            # imm = 0x460
callq 0x44c0
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_O1/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 0x7147
leaq 0xe373(%rip), %rbx      # 0x15448
leaq 0xe382(%rip), %r14      # 0x1545e
leaq 0xe385(%rip), %r15      # 0x15468
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 0x4310
testl %eax, %eax
jne 0x7133
cmpl $0x202, 0x10(%r12)      # imm = 0x202
jne 0x7133
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 0x70e3
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xe303(%rip), %rdi      # 0x155f8
xorl %eax, %eax
callq 0x4260
movq 0x10(%rbx), %rsi
leaq 0xe313(%rip), %rdi      # 0x1561a
xorl %eax, %eax
callq 0x4260
movq 0x28(%rbx), %rsi
leaq 0xe323(%rip), %rdi      # 0x1563c
xorl %eax, %eax
callq 0x4260
movq 0x18(%rbx), %rsi
leaq 0xe332(%rip), %rdi      # 0x1565d
xorl %eax, %eax
callq 0x4260
movq 0x30(%rbx), %rsi
leaq 0xe341(%rip), %rdi      # 0x1567e
xorl %eax, %eax
callq 0x4260
movq 0x20(%rbx), %rsi
leaq 0xe350(%rip), %rdi      # 0x1569f
xorl %eax, %eax
popq %rbx
jmp 0x4260
// File: /workspace/github_c_makefile_star2_O1/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 0x7385
leaq 0xe17e(%rip), %rdi      # 0x154f7
movq %r15, %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0x4140
cmpl $0x0, 0x40(%rbx)
je 0x73a6
movq -0x30(%r14), %rdx
leaq 0xe18e(%rip), %rdi      # 0x15524
movq %r14, %rsi
movq %r15, %rcx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x4260
leaq -0x30(%r14), %r12
cmpl $0x0, 0x48(%rbx)
je 0x73d1
movq (%rbx), %r13
testq %r13, %r13
je 0x73d1
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
movl %ebp, %ecx
xorl %r8d, %r8d
callq 0x6f1d
movq 0x18(%r13), %r13
jmp 0x73b3
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %ebp, %ecx
movl $0x1, %r8d
callq 0x6f1d
incq 0x10(%rbx)
decq 0x28(%rbx)
movq -0x30(%r14), %rax
subq %rax, 0x18(%rbx)
movq -0x18(%r14), %rax
testq %rax, %rax
je 0x7408
movq -0x10(%r14), %rcx
movq %rcx, 0x20(%rax)
movq -0x10(%r14), %rcx
testq %rcx, %rcx
je 0x7415
movq %rax, 0x18(%rcx)
cmpq %r12, (%rbx)
jne 0x7421
movq -0x18(%r14), %rax
movq %rax, (%rbx)
movq %r12, %rdi
callq 0x4670
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_O1/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 0x44c0
movq %rax, %rbp
movslq %r15d, %rdx
movq %rax, %rdi
movq %r12, %rsi
callq 0x43a0
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_O1/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 $0x50, %edi
callq 0x4410
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
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
nop
// File: /workspace/github_c_makefile_star2_O1/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 0x7ad1
movq (%r15), %rdx
leaq 0xddbf(%rip), %rsi      # 0x15874
leaq 0xde4e(%rip), %rcx      # 0x1590a
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x4500
movl $0x1, %r14d
jmp 0x7b20
movq 0x8(%r15), %rdx
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45b0
movl %eax, %ebp
cmpl $0x3, %r12d
jne 0x7b05
movq 0x10(%r15), %rsi
movq (%rbx), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x4450
testq %rax, %rax
je 0x7b2c
movq %rbx, %rdi
callq 0x42d0
movq (%rbx), %rdi
leaq 0xd7fc(%rip), %rsi      # 0x15313
movl %ebp, %edx
xorl %eax, %eax
callq 0x45d0
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xddeb(%rip), %rsi      # 0x1591e
movq %rbx, %rdi
xorl %edx, %edx
callq 0x44e0
jmp 0x7ac9
// File: /workspace/github_c_makefile_star2_O1/haxlang[P]hax/haxCmdAH.c
// Function: Hax_ConcatCmd
int
Hax_ConcatCmd(
    ClientData dummy,			/* Not used. */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    if (argc == 1) {
	Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		" arg ?arg ...?\"", (char *) NULL);
	return HAX_ERROR;
    }

    interp->result = Hax_Concat(interp, argc-1, argv+1);
    interp->freeProc = (Hax_FreeProc *) free;
    return HAX_OK;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
cmpl $0x1, %edx
jne 0x7b6d
movq (%rcx), %rdx
leaq 0xdd22(%rip), %rsi      # 0x15874
leaq 0xe9b3(%rip), %rcx      # 0x1650c
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x4500
movl $0x1, %eax
jmp 0x7b90
decl %edx
addq $0x8, %rcx
movq %rbx, %rdi
movl %edx, %esi
movq %rcx, %rdx
callq 0x4660
movq %rax, (%rbx)
movq 0x14416(%rip), %rax     # 0x1bfa0
movq %rax, 0x8(%rbx)
xorl %eax, %eax
popq %rbx
retq