LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/parse.c
// Function: parse_term
ast_node* parse_term(parse_state* state, scope* sc) {
    token* tok = (void*)0;

    ast_node* node = parse_factor(state, sc);

    if (state->current_token->type == _EQUALS) {
        token* tok = state->current_token;
        parse_eat(state, _EQUALS);
        ast_node* assign_node = (ast_node*)  init_ast_node_binop(tok, node, parse_expr(state, sc));
        ast_node_set_scope((ast_node*) assign_node, (struct scope*) sc);
        return assign_node;
    } 

    while (
            state->current_token->type == _OP_MULTIPLY ||
            state->current_token->type == _OP_DIVIDE
          ) {
        tok = state->current_token;

        if (tok->type == _OP_MULTIPLY) {
            parse_eat(state, _OP_MULTIPLY);
        } else if (tok->type == _OP_DIVIDE) {
            parse_eat(state, _OP_DIVIDE);
        }

        // this probably wont work since `node` is of pointer type ast_node*
        node = (ast_node*) init_ast_node_binop(tok, node, parse_factor(state, sc));
        ast_node_set_scope((ast_node*) node, (struct scope*) sc);
    }

    return (ast_node*) node;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
callq 0x3eb2
movq %rax, %r14
movq 0x8(%r15), %r12
cmpl $0x1b, (%r12)
jne 0x41c8
movq %r15, %rdi
movl $0x1b, %esi
callq 0x3816
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3904
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1318
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x12cb
jmp 0x421f
movq 0x8(%r15), %r12
movl (%r12), %esi
leal -0x7(%rsi), %eax
cmpl $0x1, %eax
ja 0x421f
leal -0x7(%rsi), %eax
cmpl $0x1, %eax
ja 0x41e8
movq %r15, %rdi
callq 0x3816
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3eb2
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1318
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x12cb
movq 0x8(%r15), %r12
movl (%r12), %esi
leal -0x7(%rsi), %eax
cmpl $0x2, %eax
jb 0x41d8
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/parse.c
// Function: parse_statement
ast_node* parse_statement(parse_state* state, scope* sc) {
    if (state->current_token->type == _INTERPRETER_INSTR) {
        return (ast_node*) parse_interpreter_instr(state, sc);
    } else if (state->current_token->type == _RETURN) {
        return (ast_node*) parse_return(state, sc);
    } else if (state->current_token->type == _TYPE_COMPONENT) {
        return (ast_node*) parse_component(state, sc);
    } else if (state->current_token->type == _IF) {
        return (ast_node*) parse_if(state, sc);
    } else if (state->current_token->type == _WHILE) {
        return (ast_node*) parse_while(state, sc);
    } else if (state->current_token->type == _FOREACH) {
        return (ast_node*) parse_foreach(state, sc);
    } else if (state->current_token->type == _DATA_TYPE) {
        return (ast_node*) parse_variable_definition(state, sc);
    } else if (state->current_token->type == _TYPE_FUNCTION) {
        return (ast_node*) parse_function_definition(state, sc);
    }  else if (state->current_token->type == _FUNCTION_CALL) {
        return (ast_node*) parse_function_call(state, sc);
    } else if (state->current_token->type == _ID || state->current_token->type == _INTEGER || state->current_token->type == _FLOAT) {
        return parse_expr(state, sc);
    } else {
        return (void*)0;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rax
movl (%rax), %eax
cmpl $0x1b, %eax
jle 0x4258
leal -0x1c(%rax), %ecx
cmpl $0xb, %ecx
ja 0x426b
leaq 0x1137(%rip), %rax      # 0x5380
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
popq %rbp
jmp 0x3e10
cmpl $0x10, %eax
jg 0x427b
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0x428b
popq %rbp
jmp 0x3904
cmpl $0x2f, %eax
je 0x42b2
cmpl $0x30, %eax
jne 0x4296
popq %rbp
jmp 0x4402
cmpl $0x11, %eax
je 0x42ac
cmpl $0x12, %eax
jne 0x4296
popq %rbp
jmp 0x3d08
cmpl $0x4, %eax
jne 0x4296
popq %rbp
jmp 0x4344
xorl %eax, %eax
popq %rbp
retq
popq %rbp
jmp 0x42b8
popq %rbp
jmp 0x3bac
popq %rbp
jmp 0x3aef
popq %rbp
jmp 0x3aab
popq %rbp
jmp 0x406f
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/parse.c
// Function: parse_interpreter_instr
ast_node_interpreter_instr* parse_interpreter_instr(parse_state* state, scope* sc) {
    token* tok = state->current_token;
    char* instruction_name = tok->value;

    // TODO: make this better, give the user some information about which
    // instruction name that was unknown.
    if (strcmp(instruction_name, "include") != 0)
        error_in_parser("Unknown instruction name");

    parse_eat(state, _INTERPRETER_INSTR);
    char* instruction_value = state->current_token->value;
    parse_eat(state, _STRING);

    ast_node_interpreter_instr* instr = init_ast_node_interpreter_instr(
        tok,
        instruction_name,
        instruction_value        
    );
    
    ast_node_set_scope((ast_node*) instr, (struct scope*)sc);

    return instr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r12
movq 0x8(%rdi), %r14
movq 0x8(%r14), %r15
leaq 0x1124(%rip), %rsi      # 0x53ff
movq %r15, %rdi
callq 0x10c0
testl %eax, %eax
je 0x42f3
leaq 0x1119(%rip), %rdi      # 0x5407
callq 0x1b5a
movq %r12, %rdi
movl $0x20, %esi
callq 0x3816
movq 0x8(%r12), %rax
movq 0x8(%rax), %r13
movq %r12, %rdi
movl $0x3, %esi
callq 0x3816
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x15f4
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x12cb
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/parse.c
// Function: parse_variable_definition
ast_node_variable_definition* parse_variable_definition(parse_state* state, scope* sc) {
    char* data_type_name = state->current_token->value;
    int data_type = name_to_data_type(data_type_name);
    ast_node* value;

    parse_eat(state, _DATA_TYPE);

    if (data_type == _DATA_TYPE_VECTOR) {
        parse_eat(state, _LESS_THAN);
        //char* vector_data_type_name = state->current_token->value;
        parse_eat(state, _DATA_TYPE);
        //int vector_data_type = name_to_data_type(vector_data_type_name);
        parse_eat(state, _LARGER_THAN);
    }

    token* tok = state->current_token;
    parse_eat(state, _ID);

    if (state->current_token->type == _EQUALS) {
        parse_eat(state, _EQUALS);
        value = parse_expr(state, sc);
    } else {
        value = (ast_node*) init_ast_node_empty((void*)0);
    }

    ast_node_variable_definition* definition = init_ast_node_variable_definition(
        tok,
        data_type,
        value
    );

    ast_node_set_scope((ast_node*)definition, (struct scope*) sc);

    return definition;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
movq 0x8(%rdi), %rax
movq 0x8(%rax), %rdi
callq 0x17f4
movl %eax, %r14d
movq %r15, %rdi
movl $0x4, %esi
callq 0x3816
cmpl $0x2e, %r14d
jne 0x439f
movq %r15, %rdi
movl $0x16, %esi
callq 0x3816
movq %r15, %rdi
movl $0x4, %esi
callq 0x3816
movq %r15, %rdi
movl $0x17, %esi
callq 0x3816
movq 0x8(%r15), %r12
movq %r15, %rdi
movl $0x1, %esi
callq 0x3816
movq 0x8(%r15), %rax
cmpl $0x1b, (%rax)
jne 0x43d3
movq %r15, %rdi
movl $0x1b, %esi
callq 0x3816
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3904
jmp 0x43da
xorl %edi, %edi
callq 0x1458
movq %r12, %rdi
movl %r14d, %esi
movq %rax, %rdx
callq 0x16f4
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x12cb
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/parse.c
// Function: parse_function_definition
ast_node_function_definition* parse_function_definition(parse_state* state, scope* sc) {
    parse_eat(state, _TYPE_FUNCTION);

    char* data_type_name = state->current_token->value;
    int data_type = name_to_data_type(data_type_name);
    ast_node_compound* body;
    ss_vector* args = ss_init_vector(sizeof(ast_node));

    parse_eat(state, _DATA_TYPE);
    token* tok = state->current_token;
    parse_eat(state, _ID);

    if (state->current_token->type == _LPAREN) {
        parse_eat(state, _LPAREN);
       
        ss_vector_append(args, (ast_node*) parse_variable_definition(state, sc));

        while (state->current_token->type == _COMMA) {
            parse_eat(state, _COMMA);
            ss_vector_append(args, (ast_node*) parse_variable_definition(state, sc));
        }
    }

    parse_eat(state, _LBRACE);
    body = parse_compound(state, sc);
    parse_eat(state, _RBRACE);

    ast_node_function_definition* definition = init_ast_node_function_definition(
        tok,
        data_type,
        args,
        body 
    );

    ast_node_set_scope((ast_node*) definition, (struct scope*)sc);

    return definition;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x30, %esi
callq 0x3816
movq 0x8(%r14), %rax
movq 0x8(%rax), %rdi
callq 0x17f4
movl %eax, -0x2c(%rbp)
movl $0x18, %edi
callq 0x4948
movq %rax, %r12
movq %r14, %rdi
movl $0x4, %esi
callq 0x3816
movq 0x8(%r14), %r13
movq %r14, %rdi
movl $0x1, %esi
callq 0x3816
movq 0x8(%r14), %rax
cmpl $0xc, (%rax)
jne 0x449a
movq %r14, %rdi
movl $0xc, %esi
callq 0x3816
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4344
movq %r12, %rdi
movq %rax, %rsi
callq 0x497c
movq 0x8(%r14), %rax
cmpl $0x10, (%rax)
jne 0x449a
movq %r14, %rdi
movl $0x10, %esi
jmp 0x446c
movq %r14, %rdi
movl $0xe, %esi
callq 0x3816
movq %r14, %rdi
movq %rbx, %rsi
callq 0x44fd
xorl %edi, %edi
movq %rax, %rsi
callq 0x13e8
movq %rax, %r15
movq %r14, %rdi
movl $0xf, %esi
callq 0x3816
movq %r13, %rdi
movl -0x2c(%rbp), %esi
movq %r12, %rdx
movq %r15, %rcx
callq 0x1534
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x12cb
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/parse.c
// Function: parse_statement_list
ss_vector* parse_statement_list(parse_state* state, scope* sc) {
    ss_vector* nodes = ss_init_vector(sizeof(ast_node));

    ss_vector_append(nodes, parse_statement(state, sc));

    while (state->current_token->type == _SEMI) {
        parse_eat(state, _SEMI);

        ast_node* next_statement = parse_statement(state, sc);

        if (!next_statement)
            break;

        ss_vector_append(nodes, next_statement);
    }

    return nodes;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x18, %edi
callq 0x4948
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x422b
movq %r15, %rdi
movq %rax, %rsi
callq 0x497c
movq 0x8(%r14), %rax
cmpl $0x14, (%rax)
jne 0x4556
movq %r14, %rdi
movl $0x14, %esi
callq 0x3816
movq %r14, %rdi
movq %rbx, %rsi
callq 0x422b
testq %rax, %rax
jne 0x4525
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/scope.c
// Function: init_scope
scope* init_scope() {
    scope* sc;
    sc = malloc(sizeof(scope));
    sc->variables = ss_init_vector(sizeof(ast_node_variable_definition));
    sc->functions = ss_init_vector(sizeof(ast_node_function_definition));
    sc->components = ss_init_vector(sizeof(ast_node_component));

    return sc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl $0x18, %edi
callq 0x10e0
movq %rax, %rbx
movl $0x30, %edi
callq 0x4948
movq %rax, (%rbx)
movl $0x40, %edi
callq 0x4948
movq %rax, 0x8(%rbx)
movl $0x38, %edi
callq 0x4948
movq %rax, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/scope.c
// Function: delete_variable_definition
void delete_variable_definition(scope* sc, char* name) {
    ast_node_variable_definition* definition = (void*)0;

    for (int i = 0; i < sc->variables->size; i++) {
        definition = (ast_node_variable_definition*) sc->variables->items[i];

        if (strcmp(definition->tok->value, name) == 0) {
            free(sc->variables->items[i]);
            sc->variables->size -=1;
        } else {
            definition = (void*)0;
        }
    } 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq (%rdi), %rax
cmpq $0x0, (%rax)
je 0x4805
movq %rsi, %rbx
movq %rdi, %r14
xorl %r12d, %r12d
movq 0x8(%rax), %rax
movq (%rax,%r12,8), %r15
movq 0x18(%r15), %rax
movq 0x8(%rax), %rdi
movq %rbx, %rsi
callq 0x10c0
testl %eax, %eax
jne 0x47fa
movq %r15, %rdi
callq 0x1030
movq (%r14), %rax
decq (%rax)
incq %r12
movq (%r14), %rax
cmpq %r12, (%rax)
ja 0x47d0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/scope.c
// Function: get_variable_definition
ast_node_variable_definition* get_variable_definition(scope* sc, char* name) {
    ast_node_variable_definition* definition = (void*)0;

    for (int i = 0; i < sc->variables->size; i++) {
        definition = (ast_node_variable_definition*) sc->variables->items[i];

        if (strcmp(definition->tok->value, name) == 0) {
            break;
        } else {
            definition = (void*)0;
        }
    }

    return definition;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x486d
movq %rsi, %rbx
movq 0x8(%rax), %r12
xorl %r13d, %r13d
movq (%r12,%r13,8), %r14
movq 0x18(%r14), %rax
movq 0x8(%rax), %rdi
movq %rbx, %rsi
callq 0x10c0
testl %eax, %eax
je 0x4870
incq %r13
cmpq %r13, %r15
jne 0x484d
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/scope.c
// Function: get_function_definition
ast_node_function_definition* get_function_definition(scope* sc, char* name) {
    ast_node_function_definition* definition = (void*)0;

    for (int i = 0; i < sc->functions->size; i++) {
        definition = (ast_node_function_definition*) sc->functions->items[i];

        if (definition) {
            if (definition->tok) {
                if (definition->tok->value) {
        if (strcmp(definition->tok->value, name) == 0) {
            break;
        } else {
            definition = (void*)0;
        }
            }
        }
        }
    }

    return definition;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x48da
movq %rsi, %rbx
movq 0x8(%rax), %r12
xorl %r13d, %r13d
movq (%r12,%r13,8), %r14
testq %r14, %r14
je 0x48cd
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x48d0
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0x48d0
movq %rbx, %rsi
callq 0x10c0
testl %eax, %eax
je 0x48dd
xorl %r14d, %r14d
incq %r13
cmpq %r13, %r15
jne 0x48a6
jmp 0x48dd
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/scope.c
// Function: get_component
ast_node_component* get_component(scope* sc, char* name) {
    ast_node_component* component = (void*)0;

    for (int i = 0; i < sc->components->size; i++) {
        component = (ast_node_component*) sc->components->items[i];

        if (strcmp(component->tok->value, name) == 0) {
            break;
        } else {
            component = (void*)0;
        }
    }

    return component;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x4933
movq %rsi, %rbx
movq 0x8(%rax), %r12
xorl %r13d, %r13d
movq (%r12,%r13,8), %r14
movq 0x18(%r14), %rax
movq 0x8(%rax), %rdi
movq %rbx, %rsi
callq 0x10c0
testl %eax, %eax
je 0x4936
incq %r13
cmpq %r13, %r15
jne 0x4913
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/ss_vector.c
// Function: ss_init_vector
ss_vector* ss_init_vector(size_t item_size) {
    ss_vector* vector;
    vector = malloc(sizeof(ss_vector));
    vector->size = 0;
    vector->items = calloc(0, item_size);

    return vector;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x10, %edi
callq 0x10e0
movq %rax, %r14
movq $0x0, (%rax)
xorl %edi, %edi
movq %rbx, %rsi
callq 0x10b0
movq %rax, 0x8(%r14)
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/ss_vector.c
// Function: ss_vector_free
void ss_vector_free(ss_vector* vec) {
    for (int i = 0; i < vec->size; i++)
        free(vec->items[i]);

    free(vec->items);
    free(vec);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x49dd
xorl %r14d, %r14d
movq 0x8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x1030
incq %r14
cmpq %r14, (%rbx)
ja 0x49c8
movq 0x8(%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1030
nop
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/strutils.c
// Function: char_to_string
char* char_to_string(char c) {
    char* str;
    str = malloc(sizeof(char) * 2);
    str[0] = c;
    str[1] = '\0';

    return str;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
movl $0x2, %edi
callq 0x10e0
movb %bl, (%rax)
movb $0x0, 0x1(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/strutils.c
// Function: is_integer
int is_integer(char* str) {
    for (int i = 0; i < strlen(str); i++)
        if (!isdigit(str[i]))
            return 0;

    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1090
testq %rax, %rax
sete %r15b
je 0x4a68
movq %rax, %r14
callq 0x1170
movq (%rax), %rax
movsbq (%rbx), %rcx
testb $0x8, 0x1(%rax,%rcx,2)
je 0x4a68
movl $0x1, %edx
movq %rdx, %rcx
cmpq %rdx, %r14
je 0x4a61
movsbq (%rbx,%rcx), %rsi
leaq 0x1(%rcx), %rdx
testb $0x8, 0x1(%rax,%rsi,2)
jne 0x4a49
cmpq %rcx, %r14
setbe %r15b
movzbl %r15b, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/sebbekarlsson[P]cola/src/token.c
// Function: init_token
token* init_token(tokentype type, char* value) {
    token* tok;
    tok = malloc(sizeof(token));
    tok->type = type;
    tok->value = value;

    return tok;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %r14d
movl $0x10, %edi
callq 0x10e0
movl %r14d, (%rax)
movq %rbx, 0x8(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: print_msg
BEH_DECL(print_msg)
{
	CONS* text = map_get(MINE, ATOM("message"));

	DBUG_ENTER("print_msg");
	if (atomp(text)) {
		printf("%s", atom_str(text));
	}
	printf("%s\n", cons_to_str(WHAT));
	DBUG_RETURN;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq %rax, %r14
leaq 0x11893(%rip), %rdi     # 0x14004
callq 0xea8c
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
leaq 0x1187f(%rip), %rax     # 0x1400c
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x18bee(%rip), %rax     # 0x1b388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x41, 0xc(%rdi)
leaq 0x1434f(%rip), %rcx     # 0x16b04
movq %rcx, 0x10(%rdi)
leaq 0x18970(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
movl %r14d, %eax
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x27f1
movq %r14, %rdi
callq 0xeaf9
leaq 0x1310d(%rip), %rdi     # 0x158f4
movq %rax, %rsi
xorl %eax, %eax
callq 0x20e0
movq 0x30(%rbx), %rdi
callq 0x11655
movq %rax, %rdi
callq 0xb5ac
movq %rax, %rdi
callq 0x20a0
movq %rsp, %rdi
movl $0x46, 0xc(%rdi)
callq 0x134a7
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: label_msg
BEH_DECL(label_msg)
{
	CONS* state = MINE;
	CONS* label = map_get(state, ATOM("label"));
	CONS* ctx = map_get(state, ATOM("ctx"));
	CONS* cont = map_get(state, cont_symbol);

	DBUG_ENTER("label_msg");
	assert(!nilp(label));
	SEND(cont, map_put(ctx, label, WHAT));
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq %rax, %r12
leaq 0x117cc(%rip), %rdi     # 0x14016
callq 0xea8c
movq %r12, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
leaq 0x117b6(%rip), %rdi     # 0x1401c
callq 0xea8c
movq %r12, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r15
movq 0x188be(%rip), %rsi     # 0x1b140
movq %r12, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r12
leaq 0x117bb(%rip), %rax     # 0x14051
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x18ae5(%rip), %rax     # 0x1b388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x54, 0xc(%rdi)
leaq 0x14246(%rip), %rcx     # 0x16b04
movq %rcx, 0x10(%rdi)
leaq 0x18867(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
cmpq 0x186e3(%rip), %r14     # 0x1afc0
je 0x291f
movq 0x30(%rbx), %rdi
callq 0x11655
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x11afc
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0xa327
movq %rsp, %rdi
movl $0x57, 0xc(%rdi)
callq 0x134a7
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x116fa(%rip), %rdi     # 0x14020
leaq 0x11700(%rip), %rsi     # 0x1402d
leaq 0x11702(%rip), %rcx     # 0x14036
movl $0x55, %edx
callq 0x2100
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: unlabel_msg
BEH_DECL(unlabel_msg)
{
	CONS* state = MINE;
	CONS* label = map_get(state, ATOM("label"));
	CONS* cont = map_get(state, cont_symbol);
	CONS* value = map_get(WHAT, label);

	DBUG_ENTER("unlabel_msg");
	assert(!nilp(label));
	SEND(cont, value);
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq %rax, %r15
leaq 0x116af(%rip), %rdi     # 0x14016
callq 0xea8c
movq %r15, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
movq 0x187bd(%rip), %rsi     # 0x1b140
movq %r15, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x11655
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r12
leaq 0x1169f(%rip), %rax     # 0x1404f
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x189cb(%rip), %rax     # 0x1b388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x65, 0xc(%rdi)
leaq 0x1412c(%rip), %rcx     # 0x16b04
movq %rcx, 0x10(%rdi)
leaq 0x1874d(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
cmpq 0x185c9(%rip), %r14     # 0x1afc0
je 0x2a22
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0xa327
movq %rsp, %rdi
movl $0x68, 0xc(%rdi)
callq 0x134a7
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x115f7(%rip), %rdi     # 0x14020
leaq 0x115fd(%rip), %rsi     # 0x1402d
leaq 0x11624(%rip), %rcx     # 0x1405b
movl $0x66, %edx
callq 0x2100
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: apply_expr
BEH_DECL(apply_expr)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* state = MINE;
	CONS* form = map_get(state, form_symbol);
	CONS* cont = map_get(state, cont_symbol);
	CONS* env = map_get(state, env_symbol);
	
	DBUG_ENTER("apply_expr");
	if (actorp(expr)) {
		msg = NIL;
		msg = map_put(msg, env_symbol, env);
		msg = map_put(msg, cont_symbol, cont);
		msg = map_put(msg, expr_symbol, form);
		SEND(expr, msg);
	} else {	/* error */
		/* FIXME: consider the meaning of non-actor applications, such as numbers */
		SEND(an_error, ATOM("apply: actor required"));
		SEND(cont, map_put(NIL, expr_symbol, undefined_symbol));
	}
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq 0x186e7(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq %rax, %r13
movq 0x186c7(%rip), %rsi     # 0x1b150
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r12
movq 0x186a3(%rip), %rsi     # 0x1b140
movq %r13, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r15
movq 0x186a7(%rip), %rsi     # 0x1b158
movq %r13, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r13
leaq 0x115b1(%rip), %rax     # 0x14076
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x188b4(%rip), %rax     # 0x1b388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x78, 0xc(%rdi)
leaq 0x14015(%rip), %rcx     # 0x16b04
movq %rcx, 0x10(%rdi)
leaq 0x18636(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
movl %r14d, %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x2b54
movq 0x1863f(%rip), %rsi     # 0x1b158
leaq 0x187d8(%rip), %rdi     # 0x1b2f8
movq %r13, %rdx
callq 0x11afc
movq 0x18611(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq %r15, %rdx
callq 0x11afc
movq 0x18607(%rip), %rsi     # 0x1b148
movq %rax, %rdi
movq %r12, %rdx
callq 0x11afc
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x2b95
movq 0x18605(%rip), %r14     # 0x1b160
leaq 0x1151f(%rip), %rdi     # 0x14081
callq 0xea8c
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xa327
movq 0x185cc(%rip), %rsi     # 0x1b148
movq 0x185e5(%rip), %rdx     # 0x1b168
leaq 0x1876e(%rip), %rdi     # 0x1b2f8
callq 0x11afc
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xa327
leaq 0x8(%rsp), %rdi
movl $0x84, 0xc(%rdi)
callq 0x134a7
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: apply_reduce
BEH_DECL(apply_reduce)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* state = MINE;
	CONS* cont = map_get(state, cont_symbol);
	CONS* env = map_get(state, env_symbol);
	
	DBUG_ENTER("apply_reduce");
	DBUG_PRINT("", ("expr=%s", cons_to_str(expr)));
	msg = NIL;
	msg = map_put(msg, env_symbol, env);
	msg = map_put(msg, cont_symbol, cont);
	msg = map_put(msg, expr_symbol, expr);
	SEND(a_reduce, msg);
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq 0x180b2(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq %rax, %r12
movq 0x18082(%rip), %rsi     # 0x1b140
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r15
movq 0x18086(%rip), %rsi     # 0x1b158
movq %r12, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r12
leaq 0x11055(%rip), %rax     # 0x1413b
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x18295(%rip), %rbp     # 0x1b388
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0xd8, 0xc(%rdi)
leaq 0x139f5(%rip), %r13     # 0x16b04
movq %r13, 0x10(%rdi)
leaq 0x18016(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
leaq 0x18802(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x3173
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x12a94
testl %eax, %eax
je 0x3173
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0xd9, 0xc(%rax)
movq %r14, %rdi
callq 0xb5ac
leaq 0x1142c(%rip), %rdi     # 0x14595
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
movq 0x17fde(%rip), %rsi     # 0x1b158
leaq 0x18177(%rip), %rdi     # 0x1b2f8
movq %r12, %rdx
callq 0x11afc
movq 0x17fb0(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq %r15, %rdx
callq 0x11afc
movq 0x17fa6(%rip), %rsi     # 0x1b148
movq %rax, %rdi
movq %r14, %rdx
callq 0x11afc
movq 0x17fcc(%rip), %rsi     # 0x1b180
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa327
movq %rsp, %rdi
movl $0xdf, 0xc(%rdi)
callq 0x134a7
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: reduce_reduce
BEH_DECL(reduce_reduce)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* cont = map_get(msg, cont_symbol);
	CONS* env = map_get(msg, env_symbol);

	DBUG_ENTER("reduce_reduce");
	if (consp(expr)) {
		CONS* state;
		CONS* actor;

		/* evaluate first argument and send to apply actor */
		state = NIL;
		state = map_put(state, env_symbol, env);
		state = map_put(state, cont_symbol, cont);
		actor = ACTOR(apply_reduce, state);
		msg = NIL;
		msg = map_put(msg, env_symbol, env);
		msg = map_put(msg, cont_symbol, actor);
		msg = map_put(msg, expr_symbol, car(expr));
		SEND(a_reduce, msg);
	} else {	/* error */
		SEND(an_error, ATOM("reduce: illegal argument"));
		msg = NIL;
		msg = map_put(msg, expr_symbol, undefined_symbol);
		SEND(cont, msg);
	}
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq %rax, %r12
movq 0x17f48(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
movq 0x17f2c(%rip), %rsi     # 0x1b140
movq %r12, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r15
movq 0x17f30(%rip), %rsi     # 0x1b158
movq %r12, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r12
leaq 0x10f0c(%rip), %rax     # 0x14148
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x1813d(%rip), %rax     # 0x1b388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0xf0, 0xc(%rdi)
leaq 0x1389e(%rip), %rcx     # 0x16b04
movq %rcx, 0x10(%rdi)
leaq 0x17ebf(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
testq %r14, %r14
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
je 0x32d5
movq 0x17eca(%rip), %r14     # 0x1b160
leaq 0x10eb9(%rip), %rdi     # 0x14156
callq 0xea8c
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xa327
movq 0x17e91(%rip), %rsi     # 0x1b148
movq 0x17eaa(%rip), %rdx     # 0x1b168
leaq 0x18033(%rip), %rdi     # 0x1b2f8
callq 0x11afc
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x3363
movq 0x17e7c(%rip), %rsi     # 0x1b158
leaq 0x18015(%rip), %r13     # 0x1b2f8
movq %r13, %rdi
movq %r12, %rdx
callq 0x11afc
movq 0x17e4b(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq %r15, %rdx
callq 0x11afc
leaq -0x292(%rip), %rsi      # 0x3075
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa24a
movq %rax, %r15
movq 0x17e3c(%rip), %rsi     # 0x1b158
movq %r13, %rdi
movq %r12, %rdx
callq 0x11afc
movq 0x17e12(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq %r15, %rdx
callq 0x11afc
movq %rax, %r15
movq 0x17e05(%rip), %r12     # 0x1b148
movq %r14, %rdi
callq 0x115b6
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x11afc
movq 0x17e20(%rip), %rsi     # 0x1b180
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa327
leaq 0x8(%rsp), %rdi
movl $0x105, 0xc(%rdi)       # imm = 0x105
callq 0x134a7
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: reduce_literal
BEH_DECL(reduce_literal)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* cont = map_get(msg, cont_symbol);
/*	CONS* env = map_get(msg, env_symbol); */
	
	DBUG_ENTER("reduce_literal");
	expr = car(expr);
	DBUG_PRINT("", ("expr=%s", cons_to_str(expr)));
	SEND(cont, map_put(NIL, expr_symbol, expr));
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq %rax, %r14
movq 0x17d9b(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r15
movq 0x17d7f(%rip), %rsi     # 0x1b140
movq %r14, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
leaq 0x10d9a(%rip), %rax     # 0x1416f
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x17fa4(%rip), %r13     # 0x1b388
movq (%r13), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x113, 0xc(%rdi)       # imm = 0x113
leaq 0x13704(%rip), %r12     # 0x16b04
movq %r12, 0x10(%rdi)
leaq 0x17d25(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
movq %r15, %rdi
callq 0x115b6
movq %rax, %r15
leaq 0x18506(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x346f
movq (%r13), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12a94
testl %eax, %eax
je 0x346f
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x115, 0xc(%rax)       # imm = 0x115
movq %r15, %rdi
callq 0xb5ac
leaq 0x11130(%rip), %rdi     # 0x14595
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
movq 0x17cd2(%rip), %rsi     # 0x1b148
leaq 0x17e7b(%rip), %rdi     # 0x1b2f8
movq %r15, %rdx
callq 0x11afc
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xa327
leaq 0x8(%rsp), %rdi
movl $0x117, 0xc(%rdi)       # imm = 0x117
callq 0x134a7
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: reduce_and_apply
BEH_DECL(reduce_and_apply)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* cont = map_get(msg, cont_symbol);
	CONS* env = map_get(msg, env_symbol);
	CONS* state = MINE;
	CONS* beh = map_get(state, beh_symbol);
	CONS* apply;

	DBUG_ENTER("reduce_and_apply");
	assert(funcp(beh));
	state = NIL;
	state = map_put(state, env_symbol, env);
	state = map_put(state, cont_symbol, cont);
	apply = ACTOR(MK_BEH(beh), state);
	msg = NIL;
	msg = map_put(msg, env_symbol, env);
	msg = map_put(msg, cont_symbol, apply);
	msg = map_put(msg, expr_symbol, expr);
	SEND(a_reduce_args, msg);
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq %rax, %r15
movq 0x17c72(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
movq 0x17c56(%rip), %rsi     # 0x1b140
movq %r15, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r12
movq 0x17c5a(%rip), %rsi     # 0x1b158
movq %r15, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq 0x17c65(%rip), %rsi     # 0x1b188
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r13
leaq 0x10c47(%rip), %rax     # 0x1417e
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x17e44(%rip), %rax     # 0x1b388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x129, 0xc(%rdi)       # imm = 0x129
leaq 0x135a5(%rip), %rcx     # 0x16b04
movq %rcx, 0x10(%rdi)
leaq 0x17bc6(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
movl %r13d, %eax
notl %eax
testb $0x3, %al
jne 0x362a
movq 0x17bcd(%rip), %rsi     # 0x1b158
leaq 0x17d66(%rip), %rbp     # 0x1b2f8
movq %rbp, %rdi
movq %r15, %rdx
callq 0x11afc
movq 0x17b9c(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq %r12, %rdx
callq 0x11afc
sarq $0x2, %r13
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0xa24a
movq %rax, %r12
movq 0x17b8d(%rip), %rsi     # 0x1b158
movq %rbp, %rdi
movq %r15, %rdx
callq 0x11afc
movq 0x17b63(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq %r12, %rdx
callq 0x11afc
movq 0x17b59(%rip), %rsi     # 0x1b148
movq %rax, %rdi
movq %r14, %rdx
callq 0x11afc
movq 0x17b8f(%rip), %rsi     # 0x1b190
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa327
movq %rsp, %rdi
movl $0x134, 0xc(%rdi)       # imm = 0x134
callq 0x134a7
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10b5e(%rip), %rdi     # 0x1418f
leaq 0x109f5(%rip), %rsi     # 0x1402d
leaq 0x10b5b(%rip), %rcx     # 0x1419a
movl $0x12a, %edx            # imm = 0x12A
callq 0x2100
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: eval_list
BEH_DECL(eval_list)	/* FIXME:  this is a NO-OP, we should probably just use reduce_seq() directly */
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* state = MINE;
	CONS* cont = map_get(state, cont_symbol);
/*	CONS* env = map_get(state, env_symbol); */
	
	DBUG_ENTER("eval_list");
	DBUG_PRINT("", ("value=%s", cons_to_str(expr)));
	SEND(cont, map_put(NIL, expr_symbol, expr));
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq 0x17adf(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq 0x17ab2(%rip), %rsi     # 0x1b140
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r15
leaq 0x10b18(%rip), %rax     # 0x141ba
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x17cd7(%rip), %r13     # 0x1b388
movq (%r13), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x143, 0xc(%rdi)       # imm = 0x143
leaq 0x13437(%rip), %r12     # 0x16b04
movq %r12, 0x10(%rdi)
leaq 0x17a58(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
leaq 0x18244(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x3731
movq (%r13), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12a94
testl %eax, %eax
je 0x3731
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x144, 0xc(%rax)       # imm = 0x144
movq %r14, %rdi
callq 0xb5ac
leaq 0x10a9d(%rip), %rdi     # 0x141c4
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
movq 0x17a10(%rip), %rsi     # 0x1b148
leaq 0x17bb9(%rip), %rdi     # 0x1b2f8
movq %r14, %rdx
callq 0x11afc
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xa327
leaq 0x8(%rsp), %rdi
movl $0x146, 0xc(%rdi)       # imm = 0x146
callq 0x134a7
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: eval_first
BEH_DECL(eval_first)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* state = MINE;
	CONS* cont = map_get(state, cont_symbol);
/*	CONS* env = map_get(state, env_symbol); */
	
	DBUG_ENTER("eval_first");
	if (consp(expr) && consp(car(expr))) {
		CONS* p = car(expr);

		if (nilp(p)) {
			expr = NIL;
		} else {
			expr = car(p);
		}
	} else {	/* error */
		SEND(an_error, ATOM("first: list required"));
		expr = undefined_symbol;
	}
	DBUG_PRINT("", ("value=%s", cons_to_str(expr)));
	SEND(cont, map_put(NIL, expr_symbol, expr));
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq 0x179b4(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r12
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq 0x17987(%rip), %rsi     # 0x1b140
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
leaq 0x10a00(%rip), %rax     # 0x141cd
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x17bac(%rip), %r13     # 0x1b388
movq (%r13), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x158, 0xc(%rdi)       # imm = 0x158
leaq 0x1330c(%rip), %r15     # 0x16b04
movq %r15, 0x10(%rdi)
leaq 0x1792d(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
testq %r12, %r12
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x383e
movq %r12, %rdi
callq 0x115b6
testq %rax, %rax
je 0x383e
movq %r12, %rdi
callq 0x115b6
testb $0x3, %al
je 0x38f5
movq 0x1791b(%rip), %r12     # 0x1b160
leaq 0x1098c(%rip), %rdi     # 0x141d8
callq 0xea8c
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0xa327
movq 0x17902(%rip), %r12     # 0x1b168
leaq 0x180c3(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x38b2
movq (%r13), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0x12a94
testl %eax, %eax
je 0x38b2
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x165, 0xc(%rax)       # imm = 0x165
movq %r12, %rdi
callq 0xb5ac
leaq 0x1091c(%rip), %rdi     # 0x141c4
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
movq 0x1788f(%rip), %rsi     # 0x1b148
leaq 0x17a38(%rip), %rdi     # 0x1b2f8
movq %r12, %rdx
callq 0x11afc
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xa327
leaq 0x8(%rsp), %rdi
movl $0x167, 0xc(%rdi)       # imm = 0x167
callq 0x134a7
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r12, %rdi
callq 0x115b6
leaq 0x179f4(%rip), %r12     # 0x1b2f8
cmpq %r12, %rax
je 0x3866
movq %rax, %rdi
callq 0x115b6
movq %rax, %r12
jmp 0x3866
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: eval_rest
BEH_DECL(eval_rest)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* state = MINE;
	CONS* cont = map_get(state, cont_symbol);
/*	CONS* env = map_get(state, env_symbol); */
	
	DBUG_ENTER("eval_rest");
	if (consp(expr) && consp(car(expr))) {
		CONS* p = car(expr);

		if (nilp(p)) {
			expr = NIL;
		} else {
			expr = cdr(p);
		}
	} else {	/* error */
		SEND(an_error, ATOM("rest: list required"));
		expr = undefined_symbol;
	}
	DBUG_PRINT("", ("value=%s", cons_to_str(expr)));
	SEND(cont, map_put(NIL, expr_symbol, expr));
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq 0x1780b(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r12
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq 0x177de(%rip), %rsi     # 0x1b140
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
leaq 0x10877(%rip), %rax     # 0x141ed
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x17a03(%rip), %r13     # 0x1b388
movq (%r13), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x179, 0xc(%rdi)       # imm = 0x179
leaq 0x13163(%rip), %r15     # 0x16b04
movq %r15, 0x10(%rdi)
leaq 0x17784(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
testq %r12, %r12
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x39e7
movq %r12, %rdi
callq 0x115b6
testq %rax, %rax
je 0x39e7
movq %r12, %rdi
callq 0x115b6
testb $0x3, %al
je 0x3a9e
movq 0x17772(%rip), %r12     # 0x1b160
leaq 0x10802(%rip), %rdi     # 0x141f7
callq 0xea8c
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0xa327
movq 0x17759(%rip), %r12     # 0x1b168
leaq 0x17f1a(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x3a5b
movq (%r13), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0x12a94
testl %eax, %eax
je 0x3a5b
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x186, 0xc(%rax)       # imm = 0x186
movq %r12, %rdi
callq 0xb5ac
leaq 0x10773(%rip), %rdi     # 0x141c4
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
movq 0x176e6(%rip), %rsi     # 0x1b148
leaq 0x1788f(%rip), %rdi     # 0x1b2f8
movq %r12, %rdx
callq 0x11afc
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xa327
leaq 0x8(%rsp), %rdi
movl $0x188, 0xc(%rdi)       # imm = 0x188
callq 0x134a7
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r12, %rdi
callq 0x115b6
leaq 0x1784b(%rip), %r12     # 0x1b2f8
cmpq %r12, %rax
je 0x3a0f
movq %rax, %rdi
callq 0x11655
movq %rax, %r12
jmp 0x3a0f
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: eval_prepend
BEH_DECL(eval_prepend)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* state = MINE;
	CONS* cont = map_get(state, cont_symbol);
/*	CONS* env = map_get(state, env_symbol); */
	
	DBUG_ENTER("eval_prepend");
	expr = cons(car(expr), car(cdr(expr)));
	DBUG_PRINT("", ("value=%s", cons_to_str(expr)));
	SEND(cont, map_put(NIL, expr_symbol, expr));
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq 0x17661(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq 0x17634(%rip), %rsi     # 0x1b140
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
leaq 0x106eb(%rip), %rax     # 0x1420b
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x1785b(%rip), %rbp     # 0x1b388
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x197, 0xc(%rdi)       # imm = 0x197
leaq 0x12fbb(%rip), %r12     # 0x16b04
movq %r12, 0x10(%rdi)
leaq 0x175dc(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
movq %r15, %rdi
callq 0x115b6
movq %rax, %r13
movq %r15, %rdi
callq 0x11655
movq %rax, %rdi
callq 0x115b6
movq %r13, %rdi
movq %rax, %rsi
callq 0x11594
movq %rax, %r15
leaq 0x17d9f(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x3bd6
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12a94
testl %eax, %eax
je 0x3bd6
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0x199, 0xc(%rax)       # imm = 0x199
movq %r15, %rdi
callq 0xb5ac
leaq 0x105f8(%rip), %rdi     # 0x141c4
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
movq 0x1756b(%rip), %rsi     # 0x1b148
leaq 0x17714(%rip), %rdi     # 0x1b2f8
movq %r15, %rdx
callq 0x11afc
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xa327
movq %rsp, %rdi
movl $0x19b, 0xc(%rdi)       # imm = 0x19B
callq 0x134a7
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: eval_listp
BEH_DECL(eval_listp)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* state = MINE;
	CONS* cont = map_get(state, cont_symbol);
/*	CONS* env = map_get(state, env_symbol); */
	
	DBUG_ENTER("eval_listp");
	expr = consp(car(expr)) ? true_symbol : false_symbol;
	DBUG_PRINT("", ("value=%s", cons_to_str(expr)));
	SEND(cont, map_put(NIL, expr_symbol, expr));
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq 0x17510(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r12
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq 0x174e3(%rip), %rsi     # 0x1b140
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
leaq 0x105a7(%rip), %rax     # 0x14218
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x17708(%rip), %r13     # 0x1b388
movq (%r13), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x1ad, 0xc(%rdi)       # imm = 0x1AD
leaq 0x12e68(%rip), %r15     # 0x16b04
movq %r15, 0x10(%rdi)
leaq 0x17489(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
movq %r12, %rdi
callq 0x115b6
testq %rax, %rax
je 0x3cd0
movq %r12, %rdi
callq 0x115b6
testb $0x3, %al
setne %al
jmp 0x3cd2
movb $0x1, %al
leaq 0x17497(%rip), %rcx     # 0x1b170
leaq 0x17498(%rip), %rdx     # 0x1b178
testb %al, %al
cmoveq %rcx, %rdx
movq (%rdx), %r12
leaq 0x17c40(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x3d35
movq (%r13), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0x12a94
testl %eax, %eax
je 0x3d35
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x1af, 0xc(%rax)       # imm = 0x1AF
movq %r12, %rdi
callq 0xb5ac
leaq 0x10499(%rip), %rdi     # 0x141c4
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
movq 0x1740c(%rip), %rsi     # 0x1b148
leaq 0x175b5(%rip), %rdi     # 0x1b2f8
movq %r12, %rdx
callq 0x11afc
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xa327
leaq 0x8(%rsp), %rdi
movl $0x1b1, 0xc(%rdi)       # imm = 0x1B1
callq 0x134a7
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq