LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/compiler.c
// Function: compiler_new
compiler_t *compiler_new(void)
{
    compiler_t *c = malloc(sizeof(compiler_t));
    c->error = string_new();
    /* Environment */
    c->env = env_new(env_empty_new());
    c->init_env = elo_extend_env(env_new(env_empty_new()));
    c->global_env = c->init_env;

    c->label_table = hash_table_new(hash_str, comp_str);
    c->rts = hash_table_new(hash_str, comp_str);
    compiler_setrt(c, "begin", compiler_do_begin);
    compiler_setrt(c, "set", compiler_do_set);
    compiler_setrt(c, "if", compiler_do_if);
    compiler_setrt(c, "lambda", compiler_do_lambda);
    compiler_setrt(c, "dget", compiler_do_dget);
    compiler_setrt(c, "dset", compiler_do_dset);
    compiler_setrt(c, "define", compiler_do_define);
    compiler_setrt(c, "&", compiler_do_refof);
    compiler_setrt(c, "valof", compiler_do_valof);
    compiler_setrt(c, "trace", compiler_do_trace);
    c->counter = 0;
    return c;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl $0x38, %edi
callq 0x20e0
movq %rax, %rbx
callq 0x60b7
movq %rax, 0x30(%rbx)
callq 0x55f4
movq %rax, %rdi
callq 0x55f7
movq %rax, 0x8(%rbx)
callq 0x55f4
movq %rax, %rdi
callq 0x55f7
movq %rax, %rdi
callq 0x36fc
movq %rax, 0x18(%rbx)
movq %rax, 0x10(%rbx)
leaq 0x1353(%rip), %r14      # 0x5e8f
leaq 0x137a(%rip), %r15      # 0x5ebd
movq %r14, %rdi
movq %r15, %rsi
callq 0x5d50
movq %rax, 0x20(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x5d50
movq %rax, %r14
movq %rax, 0x28(%rbx)
leaq 0x2836(%rip), %rsi      # 0x73a1
leaq 0xdd(%rip), %rdx        # 0x4c4f
movq %rax, %rdi
callq 0x5db0
leaq 0x282e(%rip), %rsi      # 0x73af
leaq 0x139(%rip), %rdx       # 0x4cc1
movq %r14, %rdi
callq 0x5db0
leaq 0x2807(%rip), %rsi      # 0x739e
leaq 0x24e(%rip), %rdx       # 0x4dec
movq %r14, %rdi
callq 0x5db0
leaq 0x27fa(%rip), %rsi      # 0x73a7
leaq 0x310(%rip), %rdx       # 0x4ec4
movq %r14, %rdi
callq 0x5db0
leaq 0x27f0(%rip), %rsi      # 0x73b3
leaq 0x3f5(%rip), %rdx       # 0x4fbf
movq %r14, %rdi
callq 0x5db0
leaq 0x27d5(%rip), %rsi      # 0x73ae
leaq 0x405(%rip), %rdx       # 0x4fe5
movq %r14, %rdi
callq 0x5db0
leaq 0x27c9(%rip), %rsi      # 0x73b8
leaq 0x433(%rip), %rdx       # 0x5029
movq %r14, %rdi
callq 0x5db0
leaq 0x27ba(%rip), %rsi      # 0x73bf
leaq 0x481(%rip), %rdx       # 0x508d
movq %r14, %rdi
callq 0x5db0
leaq 0x27a6(%rip), %rsi      # 0x73c1
leaq 0x4b4(%rip), %rdx       # 0x50d6
movq %r14, %rdi
callq 0x5db0
leaq 0x2796(%rip), %rsi      # 0x73c7
leaq 0x4ca(%rip), %rdx       # 0x5102
movq %r14, %rdi
callq 0x5db0
movl $0x0, (%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/compiler.c
// Function: compiler_do_begin
static int compiler_do_begin(compiler_t *comp, ast_t *body, ins_t *ins)
{
    while (body->kind == AST_CONS && AST_CONS_CDR(body)->kind != AST_END_OF_CONS) {
        ast_t *expr = AST_CONS_CAR(body);
        if (compiler_do(comp, expr, ins) == ERR)
            return ERR;
        ins_push(ins, bc_pop_new());
        body = AST_CONS_CDR(body);
    }
    return compiler_do(comp, AST_CONS_CAR(body), ins);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x1, (%r14)
jne 0x4ca8
movq 0x18(%r14), %rax
cmpl $0x2, (%rax)
je 0x4ca8
movq 0x10(%r14), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5172
movl %eax, %ebp
testl %eax, %eax
je 0x4c97
callq 0x47d0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x62ba
movq 0x18(%r14), %r14
testl %ebp, %ebp
jne 0x4c5f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r14), %rsi
movq %r15, %rdi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5172
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/compiler.c
// Function: compiler_do_set
static int compiler_do_set(compiler_t *comp, ast_t *body, ins_t *ins)
{
    ast_t *var = AST_CONS_CAR(body);
    ast_t *expr = AST_CONS_CAR( AST_CONS_CDR(body) );
    if (is_valof_form(var)) {
        if (compiler_do(comp, expr, ins) == ERR)
            return ERR;
        if (compiler_do(comp, AST_CONS_CADR(var), ins) == ERR)
            return ERR;
        ins_push(ins, bc_aset_new());
        return OK;
    }

    bytecode_t *bc = NULL;
    int i = 0, j = 0;
    char *name = AST_IDENT_NAME(var);
    if (env_locate(comp->env, name, &i, &j) == OK) {
        /* In the current lexical environment */
        bc = bc_set_new(i, j, name);
    } else if (env_locate(comp->global_env, name, &i, &j) == OK) {
        /* In the global environment */
        bc = bc_gset_new(i, j, name);
    } else {
        /* Define in current lexical environment */
        env_push(comp->env, name, NULL, NULL, NULL);
        bc = bc_set_new(-1, -1, name);
    }
    if (compiler_do(comp, expr, ins) == ERR)
        return ERR;
    ins_push(ins, bc);
    return OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %r12
movq 0x18(%rsi), %rax
movq 0x10(%rax), %r15
movq %r12, %rdi
callq 0x5b4d
testl %eax, %eax
je 0x4d2f
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x5172
xorl %ebp, %ebp
testl %eax, %eax
je 0x4ddd
movq 0x18(%r12), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x5172
testl %eax, %eax
je 0x4ddd
callq 0x466d
movq %rbx, %rdi
movq %rax, %rsi
jmp 0x4dcf
xorl %eax, %eax
leaq 0xc(%rsp), %rdx
movl %eax, (%rdx)
leaq 0x8(%rsp), %rcx
movl %eax, (%rcx)
movq 0x10(%r12), %rax
movq (%rax), %r12
movq 0x8(%r14), %rdi
movq %r12, %rsi
callq 0x5719
cmpl $0x1, %eax
jne 0x4d62
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
jmp 0x4dac
movq 0x10(%r14), %rdi
leaq 0xc(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r12, %rsi
callq 0x5719
cmpl $0x1, %eax
jne 0x4d8f
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
movq %r12, %rdx
callq 0x473f
jmp 0x4db4
movq 0x8(%r14), %rdi
movq %r12, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x5634
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r12, %rdx
callq 0x484f
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x5172
testl %eax, %eax
je 0x4ddb
movq %rbx, %rdi
movq %r12, %rsi
callq 0x62ba
movl $0x1, %ebp
jmp 0x4ddd
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/compiler.c
// Function: compiler_do_if
static int compiler_do_if(compiler_t *comp, ast_t *body, ins_t *ins)
{
    ast_t *pred = AST_CONS_CAR(body);
    ast_t *p = AST_CONS_CAR( AST_CONS_CDR(body) );
    ast_t *e = AST_CONS_CAR( AST_CONS_CDR( AST_CONS_CDR(body) ) );
    if (compiler_do(comp, pred, ins) == ERR)
        return ERR;
    bytecode_t *label_else = compiler_mklabel(comp);
    bytecode_t *label_end = compiler_mklabel(comp);
    ins_push(ins, bc_fjump_new(label_else));
    if (compiler_do(comp, p, ins) == ERR)
        return ERR;
    ins_push(ins, bc_jump_new(label_end));
    ins_push(ins, label_else);
    if (compiler_do(comp, e, ins) == ERR)
        return ERR;
    ins_push(ins, label_end);
    ins_push(ins, bc_nope_new());
    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %rax
movq 0x18(%rsi), %rcx
movq 0x10(%rcx), %r15
movq 0x18(%rcx), %rcx
movq 0x10(%rcx), %r12
movq %rax, %rsi
callq 0x5172
xorl %ebp, %ebp
testl %eax, %eax
je 0x4eb3
movq %r12, (%rsp)
movq %r14, %rdi
callq 0x5433
movq %rax, %r13
movq %r14, %rdi
callq 0x5433
movq %rax, %r12
movq %r13, %rdi
callq 0x46df
movq %rbx, %rdi
movq %rax, %rsi
callq 0x62ba
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x5172
testl %eax, %eax
je 0x4eb3
movq %r12, %rdi
callq 0x476b
movq %rbx, %rdi
movq %rax, %rsi
callq 0x62ba
movq %rbx, %rdi
movq %r13, %rsi
callq 0x62ba
movq %r14, %rdi
movq (%rsp), %rsi
movq %rbx, %rdx
callq 0x5172
testl %eax, %eax
je 0x4eb3
movq %rbx, %rdi
movq %r12, %rsi
callq 0x62ba
callq 0x47bd
movq %rbx, %rdi
movq %rax, %rsi
callq 0x62ba
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/compiler.c
// Function: compiler_do_lambda
static int compiler_do_lambda(compiler_t *comp, ast_t *body, ins_t *ins)
{
    ast_t *pars = AST_CONS_CAR(body);
    body = AST_CONS_CDR(body);
    int arity = compiler_extend_scope(comp, pars);
    ins_t *code = ins_new();
    ins_push(code, bc_args_new(arity));
    if (compiler_do_begin(comp, body, code) == ERR) {
        compiler_exit_scope(comp);
        return ERR;
    }
    ins_push(code, bc_return_new());
    compiler_exit_scope(comp);
    code = compiler_assemby(comp, code);
    value_t *f = value_ucf_new(arity, code);
    ins_push(ins, bc_push_new(f));
    ins_push(ins, bc_func_new());
    return OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %r13
movq 0x18(%rsi), %r12
movq 0x8(%rdi), %rdi
callq 0x55f7
movq %rax, 0x8(%r14)
xorl %r15d, %r15d
cmpl $0x1, (%r13)
jne 0x4f1e
xorl %r15d, %r15d
movq 0x10(%r13), %rax
movq 0x8(%r14), %rdi
movq 0x10(%rax), %rax
movq (%rax), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x5634
movq 0x18(%r13), %r13
incl %r15d
cmpl $0x1, (%r13)
je 0x4ef5
callq 0x6282
movq %rax, %r13
movl %r15d, %edi
callq 0x4655
movq %r13, %rdi
movq %rax, %rsi
callq 0x62ba
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x4c4f
testl %eax, %eax
je 0x4fa7
callq 0x483c
movq %r13, %rdi
movq %rax, %rsi
callq 0x62ba
movq 0x8(%r14), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%r14)
movq %r14, %rdi
movq %r13, %rsi
callq 0x5375
movl %r15d, %edi
movq %rax, %rsi
callq 0x26dd
movq %rax, %rdi
callq 0x47f6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x62ba
callq 0x4700
movq %rbx, %rdi
movq %rax, %rsi
callq 0x62ba
movl $0x1, %eax
jmp 0x4fb5
movq 0x8(%r14), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%r14)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/compiler.c
// Function: compiler_do_dset
static int compiler_do_dset(compiler_t *comp, ast_t *body, ins_t *ins)
{
    ast_t *var = AST_CONS_CAR(body);
    ast_t *expr = AST_CONS_CAR( AST_CONS_CDR(body) );
    if (compiler_do(comp, expr, ins) == ERR)
        return ERR;
    ins_push(ins, bc_dset_new(AST_IDENT_NAME(var)));
    return OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq 0x10(%rsi), %r14
movq 0x18(%rsi), %rax
movq 0x10(%rax), %rsi
callq 0x5172
testl %eax, %eax
je 0x501f
movq 0x10(%r14), %rax
movq (%rax), %rdi
callq 0x46c5
movq %rbx, %rdi
movq %rax, %rsi
callq 0x62ba
movl $0x1, %eax
jmp 0x5021
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/compiler.c
// Function: compiler_do_define
static int compiler_do_define(compiler_t *comp, ast_t *body, ins_t *ins)
{
    /* 构造符合set语法的表达式并再次编译 */
    ast_t *name = AST_CONS_CAR(body);
    ast_t *lpart = AST_CONS_CDR(body);
    ast_t *lexpr = ast_cons_new(ast_ident_new("lambda"), lpart);
    ast_t *sexpr = ast_cons_new(name, ast_cons_new(lexpr, ast_eoc_new()));
    return compiler_do_set(comp, sexpr, ins);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %r15
movq 0x18(%rsi), %r12
leaq 0x2361(%rip), %rdi      # 0x73a7
callq 0x59b3
movq %rax, %rdi
movq %r12, %rsi
callq 0x5963
movq %rax, %r12
callq 0x598d
movq %r12, %rdi
movq %rax, %rsi
callq 0x5963
movq %r15, %rdi
movq %rax, %rsi
callq 0x5963
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4cc1
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/compiler.c
// Function: compiler_do_refof
static int compiler_do_refof(compiler_t *comp, ast_t *body, ins_t *ins)
{
    ast_t *var = AST_CONS_CAR(body);
    if (var->kind != AST_IDENTIFIER) {
        string_printf(comp->error, "Line %d, column %d: Operand of & must be an identifier", var->line, var->column);
        return ERR;
    }
    ins_push(ins, bc_addr_new(AST_IDENT_NAME(var)));
    return OK;
}

// Assembly:
pushq %rbx
movq 0x10(%rsi), %rax
cmpl $0x4, (%rax)
jne 0x50b8
movq %rdx, %rbx
movq 0x10(%rax), %rax
movq (%rax), %rdi
callq 0x4624
movq %rbx, %rdi
movq %rax, %rsi
callq 0x62ba
movl $0x1, %ebx
jmp 0x50d2
movq 0x30(%rdi), %rdi
movl 0x4(%rax), %edx
movl 0x8(%rax), %ecx
leaq 0x2331(%rip), %rsi      # 0x73fa
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x6197
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/compiler.c
// Function: compiler_do_trace
static int compiler_do_trace(compiler_t *comp, ast_t *body, ins_t *ins)
{
    ast_t *expr = AST_CONS_CAR(body);
    if (compiler_do(comp, expr, ins) == ERR)
        return ERR;
    ident_t *id = NULL;
    if (expr->kind == AST_IDENTIFIER)
        id = ident_intern(AST_IDENT_NAME(expr));
    ins_push(ins, bc_trace_new(id));
    return OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq 0x10(%rsi), %r14
movq %r14, %rsi
callq 0x5172
testl %eax, %eax
je 0x5130
cmpl $0x4, (%r14)
jne 0x5134
movq 0x10(%r14), %rax
movq (%rax), %rdi
callq 0x28f8
movq %rax, %rdi
jmp 0x5136
xorl %eax, %eax
jmp 0x514b
xorl %edi, %edi
callq 0x487b
movq %rbx, %rdi
movq %rax, %rsi
callq 0x62ba
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/compiler.c
// Function: compiler_mklabel
static bytecode_t *compiler_mklabel(compiler_t *comp)
{
    char name[32] = {0};
    snprintf(name, sizeof(name), "LABEL%d", comp->counter);
    bytecode_t *label = bc_label_new(name);
    comp->counter++;
    return label;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movl (%rdi), %ecx
leaq 0x22f5(%rip), %rdx      # 0x774a
movl $0x20, %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x2050
movq %r14, %rdi
callq 0x478c
incl (%rbx)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/parser.c
// Function: parser_getast
ast_kind_t parser_getast(parser_t *parser, ast_t **ast)
{
    lexer_t *l = parser->lexer;
    token_t token = lexer_gettoken(l);
    switch (token) {
        case TOKEN_EOF:
            return AST_END_OF_FILE;
        case TOKEN_IDENTIFIER:
            return parser_getidentifier(parser, ast);
        case TOKEN_INTEGER:
            return parser_getinteger(parser, ast);
        case TOKEN_LEFT_PAREN:
            return parser_getcons(parser, ast);
        case TOKEN_RIGHT_PAREN:
            return AST_RIGHT_PAREN;
        case TOKEN_INVALID:
            if (ast != NULL)
                *ast = ast_invalid_new();
            return AST_INVALID;
        default :
            fprintf(stderr, "Unknown token: %d", token);
            exit(1);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rdi
callq 0x5bd9
cmpl $0x5, %eax
ja 0x553f
movl %eax, %eax
leaq 0x22df(%rip), %rcx      # 0x7794
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %ebx, %ebx
testq %r14, %r14
je 0x5537
callq 0x5950
movq %rax, (%r14)
jmp 0x5537
movq %r15, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x5546
movl $0x4, %ebx
testq %r14, %r14
je 0x5537
movq (%r15), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
callq 0x59b3
jmp 0x5517
movl $0x5, %ebx
testq %r14, %r14
je 0x5537
movq (%r15), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
callq 0x2120
movl %eax, %edi
callq 0x59ec
movq %rax, (%r14)
movq (%r15), %rcx
movl 0x18(%rcx), %edx
movl %edx, 0x4(%rax)
movl 0x1c(%rcx), %ecx
movl %ecx, 0x8(%rax)
jmp 0x5537
movl $0x3, %ebx
jmp 0x5537
movl $0x6, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
movl %eax, %edi
callq 0x2203
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/parser.c
// Function: parser_getcons
static ast_kind_t parser_getcons(parser_t *parser, ast_t **ast)
{
    int line = parser->lexer->tk_line;
    int column = parser->lexer->tk_column;

    ast_t *car = NULL;
    ast_kind_t kind = parser_getast(parser, &car);
    if (kind == AST_INVALID) {
        if (ast != NULL)
            *ast = car;
        return AST_INVALID;
    }
    if (kind == AST_RIGHT_PAREN) {
        if (ast != NULL)
            *ast = ast_eoc_new();
        return AST_END_OF_CONS;
    }
    ast_t *cdr = NULL;
    if (parser_getcons(parser, &cdr) == AST_INVALID) {
        if (ast != NULL)
            *ast = cdr;
        return AST_INVALID;
    }
    if (ast != NULL) {
        *ast = ast_cons_new(car, cdr);
        (*ast)->line = line;
        (*ast)->column = column;
    }
    return AST_CONS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movl 0x18(%rax), %r15d
movl 0x1c(%rax), %r12d
leaq 0x8(%rsp), %rsi
movq $0x0, (%rsi)
callq 0x5490
cmpl $0x6, %eax
je 0x558b
testl %eax, %eax
jne 0x559c
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x55e5
movq 0x8(%rsp), %rax
jmp 0x55e2
movl $0x2, %ebp
testq %rbx, %rbx
je 0x55e5
callq 0x598d
jmp 0x55e2
movq %rsp, %rsi
movq $0x0, (%rsi)
movq %r14, %rdi
callq 0x5546
testl %eax, %eax
je 0x55d7
movl $0x1, %ebp
testq %rbx, %rbx
je 0x55e5
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
callq 0x5963
movq %rax, (%rbx)
movl %r15d, 0x4(%rax)
movl %r12d, 0x8(%rax)
jmp 0x55e5
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x55e5
movq (%rsp), %rax
movq %rax, (%rbx)
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/env.c
// Function: env_new
env_t *env_new(env_t *outer)
{
    env_t *env = malloc(sizeof(env_t));
    vector_init(&env->data);
    env->outer = outer;
    return env;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x20, %edi
callq 0x20e0
movq %rax, %r14
movq %rax, %rdi
callq 0x6270
movq %rbx, 0x18(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/env.c
// Function: env_push
void env_push(env_t *env, const char *name, value_t *value, int *index, int *offset)
{
    if (index != NULL)
        *index = 0;
    if (offset != NULL)
        *offset = env->data.count;
    binding_t *b = binding_new(name, value);
    vector_push(&env->data, (intptr_t)b);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testq %rcx, %rcx
je 0x564d
movl $0x0, (%rcx)
testq %r8, %r8
je 0x5659
movl 0x10(%r14), %eax
movl %eax, (%r8)
movl $0x10, %edi
callq 0x20e0
movq %r15, (%rax)
movq %rbx, 0x8(%rax)
movq %r14, %rdi
movq %rax, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x62ba
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/env.c
// Function: env_set
void env_set(env_t *env, const char *name, value_t *value)
{
    for (int i = 0; i < env->data.count; i++) {
        binding_t *b = (binding_t *)vector_ref(&env->data, i);
        if (b->name != NULL && strcmp(b->name, name) == 0) {
            b->value = value;
            return;
        }
    }
    binding_t *b = binding_new(name, value);
    vector_push(&env->data, (intptr_t)b);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
cmpq $0x0, 0x10(%rdi)
setne %bpl
je 0x56e6
xorl %r12d, %r12d
movq %r14, %rdi
movq %r12, %rsi
callq 0x637e
movq (%rax), %rdi
testq %rdi, %rdi
je 0x56be
movq %rax, %r13
movq %r15, %rsi
callq 0x20c0
testl %eax, %eax
je 0x56cd
incq %r12
cmpq %r12, 0x10(%r14)
seta %bpl
ja 0x569c
jmp 0x56e6
movq %rbx, 0x8(%r13)
testb $0x1, %bpl
je 0x56e6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20e0
movq %r15, (%rax)
movq %rbx, 0x8(%rax)
movq %r14, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x62ba
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/env.c
// Function: env_locate
int env_locate(env_t *env, const char *name, int *index, int *offset)
{
    int i = 0;
    while (!env_isempty(env)) {
        for (int j = 0; j < env->data.count; j++) {
            binding_t *b = (binding_t *)vector_ref(&env->data, j);
            if (b->name != NULL && strcmp(b->name, name) == 0) {
                if (index != NULL)
                    *index = i;
                if (offset != NULL)
                    *offset = j;
                return OK;
            }
        }
        env = env->outer;
        i++;
    }
    return ERR;
}

// Assembly:
testq %rdi, %rdi
je 0x57a3
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebp, %ebp
cmpq $0x0, 0x10(%r12)
je 0x576f
xorl %r13d, %r13d
movq %r12, %rdi
movq %r13, %rsi
callq 0x637e
movq (%rax), %rdi
testq %rdi, %rdi
je 0x5765
movq %r15, %rsi
callq 0x20c0
testl %eax, %eax
je 0x577f
incq %r13
cmpq %r13, 0x10(%r12)
ja 0x5746
movq 0x18(%r12), %r12
incl %ebp
testq %r12, %r12
jne 0x573b
xorl %eax, %eax
jmp 0x5794
testq %r14, %r14
je 0x5787
movl %ebp, (%r14)
movl $0x1, %eax
testq %rbx, %rbx
je 0x5794
movl %r13d, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/env.c
// Function: env_update
int env_update(env_t *env, int index, int offset, value_t *value)
{
    for (int i = 0; i < index && env != NULL; i++)
        env = env->outer;
    if (env == NULL || offset > env->data.count - 1)
        return ERR;
    binding_t *b = (binding_t *)vector_ref(&env->data, offset);
    b->value = value;
    return OK;
}

// Assembly:
pushq %rbx
movq %rcx, %rbx
testl %esi, %esi
setle %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x57cd
movl $0x1, %eax
movq 0x18(%rdi), %rdi
cmpl %esi, %eax
jge 0x57cd
incl %eax
testq %rdi, %rdi
jne 0x57be
xorl %eax, %eax
testq %rdi, %rdi
je 0x57f1
movslq %edx, %rsi
movq 0x10(%rdi), %rcx
decq %rcx
cmpq %rsi, %rcx
jb 0x57f1
callq 0x637e
movq %rbx, 0x8(%rax)
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/env.c
// Function: env_get
value_t *env_get(env_t *env, const char *name)
{
    while (!env_isempty(env)) {
        for (int i = 0; i < env->data.count; i++) {
            binding_t *b = (binding_t *)vector_ref(&env->data, i);
            if (b->name != NULL && strcmp(b->name, name) == 0)
                return b->value;
        }
        env = env->outer;
    }
    return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x5869
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
cmpq $0x0, 0x10(%r15)
setne %bpl
je 0x5856
xorl %r12d, %r12d
movq %r15, %rdi
movq %r12, %rsi
callq 0x637e
movq (%rax), %rdi
movb $0x1, %bl
testq %rdi, %rdi
je 0x5845
movq %rax, %r13
movq %r14, %rsi
callq 0x20c0
testl %eax, %eax
jne 0x5845
movq 0x8(%r13), %rax
movq %rax, (%rsp)
xorl %ebx, %ebx
testb %bl, %bl
je 0x5856
incq %r12
cmpq %r12, 0x10(%r15)
seta %bpl
ja 0x5817
testb $0x1, %bpl
jne 0x586c
movq 0x18(%r15), %r15
testq %r15, %r15
jne 0x5809
xorl %eax, %eax
jmp 0x5870
xorl %eax, %eax
retq
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/Liutos[P]Eloquent/env.c
// Function: env_ref
value_t *env_ref(env_t *env, int index, int offset)
{
    for (int i = 0; i < index && env != NULL; i++)
        env = env->outer;
    if (env == NULL || offset > env->data.count - 1)
        return NULL;
    binding_t *b = (binding_t *)vector_ref(&env->data, offset);
    return (value_t *)b->value;
}

// Assembly:
pushq %rax
testl %esi, %esi
setle %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x58a3
movl $0x1, %eax
movq 0x18(%rdi), %rdi
cmpl %esi, %eax
jge 0x58a3
incl %eax
testq %rdi, %rdi
jne 0x5894
testq %rdi, %rdi
je 0x58b7
movslq %edx, %rsi
movq 0x10(%rdi), %rax
decq %rax
cmpq %rsi, %rax
jae 0x58bb
xorl %eax, %eax
jmp 0x58c4
callq 0x637e
movq 0x8(%rax), %rax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/ast.c
// Function: ast_cons_new
ast_t *ast_cons_new(ast_t *car, ast_t *cdr)
{
    ast_t *a = ast_alloc(AST_CONS);
    a->u.cons_val.car = car;
    a->u.cons_val.cdr = cdr;
    return a;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x20, %edi
callq 0x20e0
movl $0x1, (%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/ast.c
// Function: ast_ident_new
ast_t *ast_ident_new(const char *id)
{
    ast_t *a = ast_alloc(AST_IDENTIFIER);
    a->u.ident_val = string_new();
    string_assign(a->u.ident_val, id);
    return a;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x20, %edi
callq 0x20e0
movq %rax, %r14
movl $0x4, (%rax)
callq 0x60b7
movq %rax, 0x10(%r14)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6142
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/ast.c
// Function: ast_free
void ast_free(ast_t *a)
{
    switch (a->kind) {
        case AST_CONS:
            ast_free(a->u.cons_val.car);
            ast_free(a->u.cons_val.cdr);
            break;
        case AST_IDENTIFIER:
            string_free(a->u.ident_val);
            break;
        default :;
    }
    free(a);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %eax
cmpl $0x4, %eax
je 0x5a28
cmpl $0x1, %eax
jne 0x5a31
movq 0x10(%rbx), %rdi
callq 0x5a04
movq 0x18(%rbx), %rdi
callq 0x5a04
jmp 0x5a31
movq 0x10(%rbx), %rdi
callq 0x60ec
movq %rbx, %rdi
popq %rbx
jmp 0x2030
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/ast.c
// Function: ast_print
void ast_print(ast_t *a, FILE *output)
{
    switch (a->kind) {
        case AST_CONS:
            ast_print_cons(a, output);
            break;
        case AST_END_OF_CONS:
            fprintf(output, "()");
            break;
        case AST_IDENTIFIER:
            fprintf(output, "%s", a->u.ident_val->text);
            break;
        case AST_INTEGER:
            fprintf(output, "%d", AST_INT_VALUE(a));
            break;
        default :
            fprintf(stderr, "Don't know how to print: %d", a->kind);
            exit(1);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl (%rdi), %eax
leal -0x1(%rax), %ecx
cmpl $0x4, %ecx
ja 0x5b07
movq %rsi, %rbx
leaq 0x1d69(%rip), %rdx      # 0x77c0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x10(%rdi), %r15
movq 0x18(%rdi), %r14
movl $0x28, %edi
movq %rbx, %rsi
callq 0x20a0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5a3a
cmpl $0x2, (%r14)
je 0x5aaa
leaq 0x167d(%rip), %rdi      # 0x710a
movl $0x3, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2140
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5a3a
movl $0x29, %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x20a0
movq 0x10(%rdi), %rax
movq (%rax), %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x2070
movl 0x10(%rdi), %edx
leaq 0x1c6d(%rip), %rsi      # 0x7747
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x20d0
leaq 0x15d3(%rip), %rdi      # 0x70c3
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
popq %rbx
popq %r14
popq %r15
jmp 0x2140
movl %eax, %edi
callq 0x2226
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/ast.c
// Function: ast_cons_length
int ast_cons_length(ast_t *cons)
{
    assert(cons->kind == AST_CONS || cons->kind == AST_END_OF_CONS);
    int i = 0;
    while (cons->kind != AST_END_OF_CONS) {
        i++;
        cons = AST_CONS_CDR(cons);
    }
    return i;
}

// Assembly:
pushq %rax
movl (%rdi), %eax
decl %eax
cmpl $0x1, %eax
ja 0x5b2e
xorl %eax, %eax
cmpl $0x2, (%rdi)
je 0x5b2c
xorl %eax, %eax
incl %eax
movq 0x18(%rdi), %rdi
cmpl $0x2, (%rdi)
jne 0x5b21
popq %rcx
retq
leaq 0x1cbb(%rip), %rdi      # 0x77f0
leaq 0x1cec(%rip), %rsi      # 0x7828
leaq 0x1ceb(%rip), %rcx      # 0x782e
movl $0x72, %edx
callq 0x2060
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/ast.c
// Function: is_valof_form
int is_valof_form(ast_t *expr)
{
    if (expr->kind == AST_CONS
            && AST_CONS_CAR(expr)->kind == AST_IDENTIFIER
            && strcmp(AST_IDENT_NAME( AST_CONS_CAR(expr) ), "valof") == 0
            && AST_CONS_CADR(expr)->kind == AST_IDENTIFIER)
        return 1;
    else
        return 0;
}

// Assembly:
pushq %rbx
cmpl $0x1, (%rdi)
jne 0x5b88
movq %rdi, %rbx
movq 0x10(%rdi), %rax
cmpl $0x4, (%rax)
jne 0x5b88
movq 0x10(%rax), %rax
movq (%rax), %rdi
leaq 0x1854(%rip), %rsi      # 0x73c1
callq 0x20c0
testl %eax, %eax
jne 0x5b88
movq 0x18(%rbx), %rax
movq 0x10(%rax), %rcx
movl $0x1, %eax
cmpl $0x4, (%rcx)
je 0x5b8a
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/lexer.c
// Function: lexer_new
lexer_t *lexer_new(FILE *src)
{
    lexer_t *l = malloc(sizeof(lexer_t));
    l->src = src;
    l->text = string_new();
    l->tk_line = l->line = 1;
    l->tk_column = l->column = 0;
    return l;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x20, %edi
callq 0x20e0
movq %rax, %r14
movq %rbx, (%rax)
callq 0x60b7
movq %rax, 0x8(%r14)
movaps 0x1c9d(%rip), %xmm0     # 0x7850
movups %xmm0, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/lexer.c
// Function: lexer_gettoken
token_t lexer_gettoken(lexer_t *l)
{
    int c = lexer_getc(l);
    switch (c) {
        case EOF: return TOKEN_EOF;
        case ' ': case '\n': case '\t': return lexer_gettoken(l);
        case '(': return TOKEN_LEFT_PAREN;
        case ')': return TOKEN_RIGHT_PAREN;
        case ';':
            lexer_skip_comment(l);
            return lexer_gettoken(l);
        default :
            if (isdigit(c))
                return lexer_getinteger(l, c);
            else
                return lexer_getidentifier(l, c);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq %rbx, %rdi
callq 0x5d2e
movl %eax, %r14d
cmpl $0x1f, %eax
jle 0x5c02
cmpl $0x28, %r14d
jg 0x5c0d
cmpl $0x20, %r14d
je 0x5be4
jmp 0x5c37
leal -0x9(%r14), %eax
cmpl $0x2, %eax
jb 0x5be4
jmp 0x5c27
cmpl $0x3b, %r14d
jne 0x5c47
movq %rbx, %rdi
callq 0x5d2e
cmpl $-0x1, %eax
je 0x5be4
cmpl $0xa, %eax
jne 0x5c13
jmp 0x5be4
cmpl $-0x1, %r14d
jne 0x5c57
movl $0x1, %eax
jmp 0x5d1a
cmpl $0x28, %r14d
jne 0x5c57
movl $0x4, %eax
jmp 0x5d1a
cmpl $0x29, %r14d
jne 0x5c57
movl $0x5, %eax
jmp 0x5d1a
callq 0x2150
movq %rax, %r15
movq (%rax), %rax
movslq %r14d, %rcx
movzwl (%rax,%rcx,2), %ebp
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %rax
movq %rax, 0x18(%rbx)
callq 0x617b
btl $0xb, %ebp
jb 0x5cd7
movabsq $0x60000000001, %r12    # imm = 0x60000000001
movq 0x8(%rbx), %rdi
movsbl %r14b, %esi
callq 0x6101
movq %rbx, %rdi
callq 0x5d2e
movl %eax, %r14d
movq (%r15), %rax
movslq %r14d, %rcx
movzwl (%rax,%rcx,2), %eax
btl $0xd, %eax
jb 0x5d23
movl %r14d, %eax
incl %eax
cmpl $0x2a, %eax
ja 0x5c8a
btq %rax, %r12
jae 0x5c8a
decl 0x14(%rbx)
movq (%rbx), %rsi
movl %r14d, %edi
callq 0x2100
movl $0x2, %eax
jmp 0x5d1a
movq 0x8(%rbx), %rdi
movsbl %r14b, %esi
callq 0x6101
movq %rbx, %rdi
callq 0x5d2e
movl %eax, %r14d
movq (%r15), %rax
movslq %r14d, %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0x5cd7
cmpl $0xa, %r14d
jne 0x5d07
decl 0x10(%rbx)
jmp 0x5d0a
decl 0x14(%rbx)
movq (%rbx), %rsi
movl %r14d, %edi
callq 0x2100
movl $0x3, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0xa, %r14d
jne 0x5cc2
decl 0x10(%rbx)
jmp 0x5cc5
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/lexer.c
// Function: lexer_getc
static int lexer_getc(lexer_t *l)
{
    int c = fgetc(l->src);
    if (c == '\n') {
        l->line++;
        l->column = 0;
    } else
        l->column++;
    return c;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2090
cmpl $0xa, %eax
jne 0x5d4b
incl 0x10(%rbx)
movl $0x0, 0x14(%rbx)
jmp 0x5d4e
incl 0x14(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/hash_table.c
// Function: hash_table_new
hash_table_t *hash_table_new(hash_func_t hash_func, comp_func_t comp_func)
{
#define TABLE_SIZE 11
    hash_table_t *tbl = malloc(sizeof(hash_table_t));
    tbl->capacity = TABLE_SIZE;
    tbl->slots = calloc(tbl->capacity, sizeof(table_entry_t *));
    tbl->count = 0;
    tbl->comp_func = comp_func;
    tbl->hash_func = hash_func;
    return tbl;
#undef TABLE_SIZE
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x28, %edi
callq 0x20e0
movq %rax, %r15
movq $0xb, 0x8(%rax)
movl $0xb, %edi
movl $0x8, %esi
callq 0x20b0
movq %rax, (%r15)
movq $0x0, 0x10(%r15)
movq %rbx, 0x20(%r15)
movq %r14, 0x18(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/hash_table.c
// Function: hash_table_set
void hash_table_set(hash_table_t *tbl, void *key, void *value)
{
    size_t i = hash_table_hash(tbl, key);
    table_entry_t *ent = tbl->slots[i];
    while (ent != NULL) {
        if (hash_table_iseq(tbl, ent->key, key))
            break;
        ent = ent->next;
    }
    if (ent == NULL) {
        ent = malloc(sizeof(table_entry_t));
        ent->key = key;
        ent->next = tbl->slots[i];
        tbl->slots[i] = ent;
    }
    ent->value = value;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
callq *0x18(%r14)
xorl %edx, %edx
divq 0x8(%r14)
movq %rdx, %r12
movq (%r14), %rax
movq (%rax,%rdx,8), %r13
testq %r13, %r13
je 0x5df3
movq (%r13), %rdi
movq %r15, %rsi
callq *0x20(%r14)
testl %eax, %eax
jne 0x5e12
movq 0x10(%r13), %r13
jmp 0x5dd9
movl $0x18, %edi
callq 0x20e0
movq %rax, %r13
movq %r15, (%rax)
movq (%r14), %rax
movq (%rax,%r12,8), %rcx
movq %rcx, 0x10(%r13)
movq %r13, (%rax,%r12,8)
movq %rbx, 0x8(%r13)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/hash_table.c
// Function: hash_table_get
void *hash_table_get(hash_table_t *tbl, void *key, int *is_found)
{
    size_t i = hash_table_hash(tbl, key);
    table_entry_t *ent = tbl->slots[i];
    while (ent != NULL) {
        if (hash_table_iseq(tbl, ent->key, key)) {
            if (is_found != NULL)
                *is_found = 1;
            return ent->value;
        }
        ent = ent->next;
    }
    if (is_found != NULL)
        *is_found = 0;
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq *0x18(%r15)
xorl %edx, %edx
divq 0x8(%r15)
movq (%r15), %rax
movq (%rax,%rdx,8), %r12
testq %r12, %r12
je 0x5e60
movq (%r12), %rdi
movq %r14, %rsi
callq *0x20(%r15)
testl %eax, %eax
jne 0x5e6f
movq 0x10(%r12), %r12
jmp 0x5e45
testq %rbx, %rbx
je 0x5e6b
movl $0x0, (%rbx)
xorl %eax, %eax
jmp 0x5e7f
testq %rbx, %rbx
je 0x5e7a
movl $0x1, (%rbx)
movq 0x8(%r12), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/hash_table.c
// Function: hash_str
size_t hash_str(void *str)
{
    const char *_str = str;
    unsigned int seed = 131;
    unsigned int hash = 0;
    while (*_str != '\0') {
        hash = hash * seed + (*_str);
        _str++;
    }
    return hash & 0x7FFFFFFF;
}

// Assembly:
movb (%rdi), %cl
xorl %eax, %eax
testb %cl, %cl
je 0x5eb3
incq %rdi
movsbl %cl, %ecx
imull $0x83, %eax, %eax
addl %ecx, %eax
movb (%rdi), %cl
incq %rdi
testb %cl, %cl
jne 0x5e9a
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/seg_vector.c
// Function: seg_vector_new
seg_vector_t *seg_vector_new(seg_vector_t *next)
{
    seg_vector_t *sv = malloc(sizeof(*sv));
    sv->data = vector_new();
    sv->next = next;
    return sv;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x10, %edi
callq 0x20e0
movq %rax, %r14
callq 0x6282
movq %rax, (%r14)
movq %rbx, 0x8(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/seg_vector.c
// Function: seg_vector_locate
int seg_vector_locate(seg_vector_t *sv, const void *key, vec_comp_func_t comp_func, int *seg_index, int *vector_index)
{
    int si = 0;
    while (sv != NULL) {
        int vi = vector_posif(sv->data, (intptr_t)key, comp_func);
        if (vi != -1) {
            if (seg_index != NULL)
                *seg_index = si;
            if (vector_index != NULL)
                *vector_index = vi;
            return 1;
        }
        sv = sv->next;
        si++;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
xorl %ebx, %ebx
testq %rbp, %rbp
je 0x5f71
movq (%rbp), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x6306
cmpl $-0x1, %eax
je 0x5f5f
testq %r15, %r15
je 0x5f55
movl %ebx, (%r15)
testq %r14, %r14
je 0x5f65
movl %eax, (%r14)
jmp 0x5f65
movq 0x8(%rbp), %rbp
incl %ebx
cmpl $-0x1, %eax
je 0x5f34
movl $0x1, %eax
jmp 0x5f73
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/Liutos[P]Eloquent/utils/seg_vector.c
// Function: seg_vector_locate2
int seg_vector_locate2(seg_vector_t *sv, const void *key, vec_comp_func_t comp_func, int *seg_index, int *vector_index, int *is_last_seg)
{
    int si = 0;
    while (sv != NULL) {
        int vi = vector_posif(sv->data, (intptr_t)key, comp_func);
        if (vi != -1) {
            if (seg_index != NULL)
                *seg_index = si;
            if (vector_index != NULL)
                *vector_index = vi;
            if (is_last_seg != NULL) {
                if (sv->next == NULL)
                    *is_last_seg = 1;
                else
                    *is_last_seg = 0;
            }
            return 1;
        }
        sv = sv->next;
        si++;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, (%rsp)
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %rbx
xorl %r14d, %r14d
testq %rbx, %rbx
je 0x6005
movq (%rbx), %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x6306
cmpl $-0x1, %eax
je 0x5fe6
testq %r12, %r12
je 0x5fc4
movl %r14d, (%r12)
testq %r15, %r15
je 0x5fcc
movl %eax, (%r15)
cmpq $0x0, (%rsp)
je 0x5ff9
cmpq $0x0, 0x8(%rbx)
je 0x5fef
movq (%rsp), %rcx
movl $0x0, (%rcx)
jmp 0x5ff9
movq 0x8(%rbx), %rbx
incl %r14d
jmp 0x5ff9
movq (%rsp), %rcx
movl $0x1, (%rcx)
cmpl $-0x1, %eax
je 0x5fa3
movl $0x1, %eax
jmp 0x6007
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/Liutos[P]Eloquent/utils/seg_vector.c
// Function: seg_vector_set
int seg_vector_set(seg_vector_t *sv, void *obj, int i, int j)
{
    while (i > 0 && sv != NULL) {
        sv = sv->next;
        i--;
    }
    if (sv->data->count < j)
        return 0;
    vector_set(sv->data, (intptr_t)obj, j);
    return 1;
}

// Assembly:
pushq %rax
testl %edx, %edx
setle %al
testq %rdi, %rdi
sete %r8b
orb %al, %r8b
jne 0x6038
movq 0x8(%rdi), %rdi
cmpl $0x2, %edx
jl 0x6038
decl %edx
testq %rdi, %rdi
jne 0x6028
movq (%rdi), %rdi
movslq %ecx, %rdx
xorl %eax, %eax
cmpq %rdx, 0x10(%rdi)
jb 0x6052
movl %ecx, %edx
callq 0x62a5
movl $0x1, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/seg_vector.c
// Function: seg_vector_ref
void *seg_vector_ref(seg_vector_t *sv, int i, int j)
{
    while (i > 0 && sv != NULL) {
        sv = sv->next;
        i--;
    }
    if (sv->data->count < j)
        return NULL;
    return (void *)vector_ref(sv->data, j);
}

// Assembly:
pushq %rax
testl %esi, %esi
setle %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x6074
movq 0x8(%rdi), %rdi
cmpl $0x2, %esi
jl 0x6074
decl %esi
testq %rdi, %rdi
jne 0x6064
movq (%rdi), %rdi
movslq %edx, %rsi
cmpq %rsi, 0x10(%rdi)
jae 0x6084
xorl %eax, %eax
jmp 0x6089
callq 0x637e
popq %rcx
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/string.c
// Function: string_init
string_t *string_init(string_t *s)
{
    s->capacity = DELTA;
    s->length = 0;
    s->text = calloc(s->capacity, sizeof(char));
    return s;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq $0xa, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
movl $0xa, %edi
movl $0x1, %esi
callq 0x20b0
movq %rax, (%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/string.c
// Function: string_addc
void string_addc(string_t *s, char c)
{
    if (string_isfull(s))
        string_incr(s, DELTA);
    s->text[s->length] = c;
    s->length++;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rax
incq %rax
cmpq %rsi, %rax
jb 0x612c
addq $0xa, %rsi
movq %rsi, 0x8(%rbx)
movq (%rbx), %rdi
callq 0x2110
movq %rax, (%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb %bpl, (%rax,%rcx)
incq 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/string.c
// Function: string_assign
void string_assign(string_t *str, const char *src)
{
    while (*src != '\0') {
        string_addc(str, *src);
        src++;
    }
    string_addc(str, '\0');
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb (%rsi), %al
testb %al, %al
je 0x616a
movq %rsi, %r14
incq %r14
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6101
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x6155
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6101
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/string.c
// Function: string_printf
int string_printf(string_t *s, const char *fmt, ...)
{
    va_list ap;
    va_start(ap, fmt);
    int len = vsnprintf(s->text, s->capacity - 1, fmt, ap);
    if (len >= s->capacity - 1) {
        s->capacity = len + DELTA;
        s->text = realloc(s->text, s->capacity * sizeof(char));
    }
    return vsnprintf(s->text, s->capacity - 1, fmt, ap);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x20(%rsp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0x61f7
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rcx
movq %rsi, 0x10(%rcx)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rcx)
movq (%rdi), %rdi
movq 0x8(%r14), %rsi
decq %rsi
movq %rbx, %rdx
callq 0x2040
movslq %eax, %rcx
movq 0x8(%r14), %rdx
decq %rdx
cmpq %rcx, %rdx
ja 0x624d
addl $0xa, %eax
movslq %eax, %rsi
movq %rsi, 0x8(%r14)
movq (%r14), %rdi
callq 0x2110
movq %rax, (%r14)
movq (%r14), %rdi
movq 0x8(%r14), %rsi
decq %rsi
movq %rsp, %rcx
movq %rbx, %rdx
callq 0x2040
addq $0xd8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/vector.c
// Function: vector_push
void vector_push(vector_t *v, intptr_t data)
{
#define DELTA 10
    if (vector_isfull(v))
        vector_incr(v, DELTA);
    v->slots[v->count] = data;
    v->count++;
#undef DELTA
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
incq %rcx
cmpq %rax, %rcx
jb 0x62ef
leaq 0xa(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq (%rbx), %rdi
leaq 0x50(,%rax,8), %rsi
callq 0x2110
movq %rax, (%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movq %r14, (%rax,%rcx,8)
incq 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Liutos[P]Eloquent/utils/vector.c
// Function: vector_posif
int vector_posif(vector_t *v, intptr_t key, vec_comp_func_t comp_func)
{
    int i = 0;
    while (i < v->count) {
        if ((*comp_func)(v->slots[i], key))
            return i;
        i++;
    }
    return -1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpq $0x0, 0x10(%rdi)
je 0x6348
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %r13d, %r13d
movq (%r12), %rax
movq (%rax,%r13,8), %rdi
movq %r15, %rsi
callq *%r14
testl %eax, %eax
jne 0x6345
incq %r13
cmpq %r13, 0x10(%r12)
ja 0x6327
jmp 0x6348
movl %r13d, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Cotix[P]cReddit/src/global.c
// Function: alloc_sprintf
char *alloc_sprintf (const char *format, ...)
{
    char *ret;
    va_list lst;

    va_start(lst, format);
    ret = valloc_sprintf(format, lst);
    va_end(lst);

    return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %rbx
leaq 0x40(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x2507
movaps %xmm0, 0x70(%rsp)
movaps %xmm1, 0x80(%rsp)
movaps %xmm2, 0x90(%rsp)
movaps %xmm3, 0xa0(%rsp)
movaps %xmm4, 0xb0(%rsp)
movaps %xmm5, 0xc0(%rsp)
movaps %xmm6, 0xd0(%rsp)
movaps %xmm7, 0xe0(%rsp)
movq %rdi, 0x10(%rsp)
leaq 0x120(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
leaq 0x20(%rsp), %rcx
movq %rdi, 0x10(%rcx)
movq (%rsp), %rax
movq %rax, (%rcx)
movq 0x8(%rsp), %rax
movq %rax, 0x8(%rcx)
xorl %r14d, %r14d
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x2150
incl %eax
movslq %eax, %r15
movq %r15, %rdi
callq 0x2250
testq %rax, %rax
je 0x257b
movq %rax, %r12
movb $0x0, (%rax)
movq %rsp, %rcx
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2150
movq %r12, %r14
movq %r14, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Cotix[P]cReddit/src/main.c
// Function: linkScreenFree
void linkScreenFree(LinkScreen *screen)
{
    int i;
    if (screen == NULL)
        return ;
    for (i = 0; i < screen->allocLineCount; i++)
        free(screen->screenLines[i]);

    free(screen->screenLines);
    free(screen);
}

// Assembly:
testq %rdi, %rdi
je 0x2615
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x18(%rdi)
jle 0x25fd
xorl %r14d, %r14d
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x2220
incq %r14
movslq 0x18(%rbx), %rax
cmpq %rax, %r14
jl 0x25e4
movq 0x20(%rbx), %rdi
callq 0x2220
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2220
retq
// File: /workspace/github_c_makefile_star2_O1/Cotix[P]cReddit/src/main.c
// Function: linkScreenSetup
void linkScreenSetup(LinkScreen *screen, const char *subreddit, const RedditListType listType)
{
    screen->list = redditLinkListNew();
    screen->list->subreddit = redditCopyString(subreddit);
    screen->list->type = listType;

    redditGetListing(screen->list);

    screen->displayed = LINES - 1;
    screen->linkOpenSize = (screen->displayed / 5) * 4;

    screen->offset = 0;
    screen->selected = 0;

    /* Assign help-screen text */
    screen->helpText = linkScreenHelp;
    screen->helpLineCount = sizeof(linkScreenHelp)/sizeof(linkScreenHelp[0]);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorl %eax, %eax
callq 0x21e0
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x2060
movq (%rbx), %rdi
movq %rax, (%rdi)
movl %ebp, 0x10(%rdi)
callq 0x2140
movq 0x6977(%rip), %rax      # 0x8fc0
movl (%rax), %eax
decl %eax
movl %eax, 0x8(%rbx)
cltq
imulq $0x66666667, %rax, %rax # imm = 0x66666667
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x21, %rax
addl %ecx, %eax
shll $0x2, %eax
movl %eax, 0x28(%rbx)
movq $0x0, 0xc(%rbx)
leaq 0x6b65(%rip), %rax      # 0x91e0
movq %rax, 0x38(%rbx)
movl $0x1a, 0x30(%rbx)
popq %rbx
popq %r14
popq %rbp
retq