LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_expr
static fin_ast_expr_t* fin_ast_parse_expr(fin_ctx_t* ctx, fin_lex_t* lex, fin_ast_expr_t* expr) {
    if (!expr)
        expr = fin_ast_parse_cond_or_expr(ctx, lex);
    switch (fin_lex_get_type(lex)) {
        case fin_lex_type_question:
            return fin_ast_parse_cond_expr(ctx, lex, expr);
        case fin_lex_type_dot:
            return fin_ast_parse_id_expr(ctx, lex, expr);
        case fin_lex_type_l_paren:
            return fin_ast_parse_invoke_expr(ctx, lex, expr);
        case fin_lex_type_eq:
        case fin_lex_type_plus_eq:
        case fin_lex_type_minus_eq:
        case fin_lex_type_star_eq:
        case fin_lex_type_slash_eq:
        case fin_lex_type_percent_eq:
        case fin_lex_type_amp_eq:
        case fin_lex_type_pipe_eq:
        case fin_lex_type_caret_eq:
        case fin_lex_type_lt_lt_eq:
        case fin_lex_type_gt_gt_eq:
            return fin_ast_parse_assign_expr(ctx, lex, expr);
        default:
            return expr;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
jne 0x3afd
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3bcf
movq %rax, %r15
movq %rbx, %rdi
callq 0x57fc
cmpl $0x2e, %eax
ja 0x3b54
movl %eax, %ecx
movabsq $0x223fc0010000, %rdx   # imm = 0x223FC0010000
btq %rcx, %rdx
jae 0x3b32
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3d6b
cmpq $0xa, %rcx
je 0x3b6f
cmpq $0x2e, %rcx
jne 0x3b54
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3c9a
cmpl $0x8, %eax
jne 0x3bc3
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3c38
xorl %edi, %edi
movl $0x20, %esi
callq *(%r14)
movq %rax, %r12
movl $0x8, (%rax)
movq %r15, 0x8(%rax)
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3992
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3bcf
movq %rax, 0x10(%r12)
movq %rbx, %rdi
movl $0xb, %esi
callq 0x3992
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3bcf
movq %rax, 0x18(%r12)
movq %r12, %r15
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_cond_or_expr
static fin_ast_expr_t* fin_ast_parse_cond_or_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_expr_t* lhs = fin_ast_parse_cond_and_expr(ctx, lex);
    fin_ast_binary_type_t op;
    if (fin_lex_match(lex, fin_lex_type_pipe_pipe))
        op = fin_ast_binary_type_or;
    else
        return lhs;
    fin_ast_binary_expr_t* bin_expr = (fin_ast_binary_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_binary_expr_t));
    bin_expr->base.type = fin_ast_expr_type_binary;
    bin_expr->op = op;
    bin_expr->lhs = lhs;
    bin_expr->rhs = fin_ast_parse_cond_or_expr(ctx, lex);
    return &bin_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3ee8
movq %rax, %r15
movq %rbx, %rdi
movl $0x1a, %esi
callq 0x57da
testb %al, %al
je 0x3c2c
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r12
movabsq $0x1100000007, %rax     # imm = 0x1100000007
movq %rax, (%r12)
movq %r15, 0x8(%r12)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3bcf
movq %rax, 0x10(%r12)
movq %r12, %r15
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_id_expr
static fin_ast_expr_t* fin_ast_parse_id_expr(fin_ctx_t* ctx, fin_lex_t* lex, fin_ast_expr_t* primary) {
    fin_ast_id_expr_t* id_expr = (fin_ast_id_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_id_expr_t));
    id_expr->base.type = fin_ast_expr_type_id;
    id_expr->primary = primary;
    id_expr->name = fin_str_from_lex(ctx, fin_lex_consume_name(lex));
    if (fin_lex_match(lex, fin_lex_type_dot))
        return fin_ast_parse_id_expr(ctx, lex, &id_expr->base);
    return &id_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %r15, %r12
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r15
movl $0x0, (%rax)
movq %r12, 0x8(%rax)
movq %rbx, %rdi
callq 0x589c
movq %r14, %rdi
movq %rax, %rsi
callq 0x8040
movq %rax, 0x10(%r15)
movq %rbx, %rdi
movl $0x8, %esi
callq 0x57da
testb %al, %al
jne 0x3c4c
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_invoke_expr
static fin_ast_expr_t* fin_ast_parse_invoke_expr(fin_ctx_t* ctx, fin_lex_t* lex, fin_ast_expr_t* id) {
    fin_ast_invoke_expr_t* invoke_expr = (fin_ast_invoke_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_invoke_expr_t));
    invoke_expr->base.type = fin_ast_expr_type_invoke;
    invoke_expr->id = id;
    fin_ast_expect(lex, fin_lex_type_l_paren);
    fin_ast_arg_expr_t** tail = &invoke_expr->args;
    *tail = NULL;
    while (!fin_lex_match(lex, fin_lex_type_r_paren)) {
        if (invoke_expr->args)
            fin_ast_expect(lex, fin_lex_type_comma);
        *tail = fin_ast_parse_arg_expr(ctx, lex);
        tail = &(*tail)->next;
    }
    return &invoke_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r15
movl $0xa, (%rax)
movq %r12, 0x8(%rax)
movq %rbx, %rdi
movl $0x2e, %esi
callq 0x3992
movq %r15, -0x30(%rbp)
movq $0x0, 0x10(%r15)
movq %rbx, %rdi
movl $0x2f, %esi
callq 0x57da
testb %al, %al
jne 0x3d58
movq -0x30(%rbp), %r15
addq $0x10, %r15
movq %r15, %r13
cmpq $0x0, (%r15)
je 0x3d10
movq %rbx, %rdi
movl $0x9, %esi
callq 0x3992
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ad6
movq %rax, %r12
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movl $0x9, (%rax)
movq %r12, 0x8(%rax)
leaq 0x10(%rax), %r12
movq $0x0, 0x10(%rax)
movq %rax, (%r13)
movq %rbx, %rdi
movl $0x2f, %esi
callq 0x57da
movq %r12, %r13
testb %al, %al
je 0x3cfd
movq -0x30(%rbp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_cond_and_expr
static fin_ast_expr_t* fin_ast_parse_cond_and_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_expr_t* lhs = fin_ast_parse_or_expr(ctx, lex);
    fin_ast_binary_type_t op;
    if (fin_lex_match(lex, fin_lex_type_amp_amp))
        op = fin_ast_binary_type_and;
    else
        return lhs;
    fin_ast_binary_expr_t* bin_expr = (fin_ast_binary_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_binary_expr_t));
    bin_expr->base.type = fin_ast_expr_type_binary;
    bin_expr->op = op;
    bin_expr->lhs = lhs;
    bin_expr->rhs = fin_ast_parse_cond_and_expr(ctx, lex);
    return &bin_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3f51
movq %rax, %r15
movq %rbx, %rdi
movl $0x1b, %esi
callq 0x57da
testb %al, %al
je 0x3f45
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r12
movabsq $0x1000000007, %rax     # imm = 0x1000000007
movq %rax, (%r12)
movq %r15, 0x8(%r12)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3ee8
movq %rax, 0x10(%r12)
movq %r12, %r15
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_or_expr
static fin_ast_expr_t* fin_ast_parse_or_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_expr_t* lhs = fin_ast_parse_xor_expr(ctx, lex);
    fin_ast_binary_type_t op;
    if (fin_lex_match(lex, fin_lex_type_pipe))
        op = fin_ast_binary_type_bor;
    else
        return lhs;
    fin_ast_binary_expr_t* bin_expr = (fin_ast_binary_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_binary_expr_t));
    bin_expr->base.type = fin_ast_expr_type_binary;
    bin_expr->op = op;
    bin_expr->lhs = lhs;
    bin_expr->rhs = fin_ast_parse_or_expr(ctx, lex);
    return &bin_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3fba
movq %rax, %r15
movq %rbx, %rdi
movl $0x16, %esi
callq 0x57da
testb %al, %al
je 0x3fae
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r12
movabsq $0xe00000007, %rax      # imm = 0xE00000007
movq %rax, (%r12)
movq %r15, 0x8(%r12)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3f51
movq %rax, 0x10(%r12)
movq %r12, %r15
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_xor_expr
static fin_ast_expr_t* fin_ast_parse_xor_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_expr_t* lhs = fin_ast_parse_and_expr(ctx, lex);
    fin_ast_binary_type_t op;
    if (fin_lex_match(lex, fin_lex_type_caret))
        op = fin_ast_binary_type_bxor;
    else
        return lhs;
    fin_ast_binary_expr_t* bin_expr = (fin_ast_binary_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_binary_expr_t));
    bin_expr->base.type = fin_ast_expr_type_binary;
    bin_expr->op = op;
    bin_expr->lhs = lhs;
    bin_expr->rhs = fin_ast_parse_xor_expr(ctx, lex);
    return &bin_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4023
movq %rax, %r15
movq %rbx, %rdi
movl $0xd, %esi
callq 0x57da
testb %al, %al
je 0x4017
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r12
movabsq $0xf00000007, %rax      # imm = 0xF00000007
movq %rax, (%r12)
movq %r15, 0x8(%r12)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3fba
movq %rax, 0x10(%r12)
movq %r12, %r15
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_and_expr
static fin_ast_expr_t* fin_ast_parse_and_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_expr_t* lhs = fin_ast_parse_equality_expr(ctx, lex);
    fin_ast_binary_type_t op;
    if (fin_lex_match(lex, fin_lex_type_amp))
        op = fin_ast_binary_type_eq;
    else
        return lhs;
    fin_ast_binary_expr_t* bin_expr = (fin_ast_binary_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_binary_expr_t));
    bin_expr->base.type = fin_ast_expr_type_binary;
    bin_expr->op = op;
    bin_expr->lhs = lhs;
    bin_expr->rhs = fin_ast_parse_and_expr(ctx, lex);
    return &bin_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x408c
movq %rax, %r15
movq %rbx, %rdi
movl $0xf, %esi
callq 0x57da
testb %al, %al
je 0x4080
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r12
movabsq $0xb00000007, %rax      # imm = 0xB00000007
movq %rax, (%r12)
movq %r15, 0x8(%r12)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4023
movq %rax, 0x10(%r12)
movq %r12, %r15
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_equality_expr
static fin_ast_expr_t* fin_ast_parse_equality_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_expr_t* lhs = fin_ast_parse_relational_expr(ctx, lex);
    fin_ast_binary_type_t op;
    if (fin_lex_match(lex, fin_lex_type_eq_eq))
        op = fin_ast_binary_type_eq;
    else if (fin_lex_match(lex, fin_lex_type_bang_eq))
        op = fin_ast_binary_type_neq;
    else
        return lhs;
    fin_ast_binary_expr_t* bin_expr = (fin_ast_binary_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_binary_expr_t));
    bin_expr->base.type = fin_ast_expr_type_binary;
    bin_expr->op = op;
    bin_expr->lhs = lhs;
    bin_expr->rhs = fin_ast_parse_equality_expr(ctx, lex);
    return &bin_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x41a0
movq %rax, %r15
movq %rbx, %rdi
movl $0x26, %esi
callq 0x57da
movl $0x7, %r13d
testb %al, %al
jne 0x4104
movq %rbx, %rdi
movl $0x2a, %esi
callq 0x57da
movl $0x9, %r13d
testb %al, %al
jne 0x4104
movq %rbx, %rdi
movl $0x28, %esi
callq 0x57da
movl $0x8, %r13d
testb %al, %al
jne 0x4104
movq %rbx, %rdi
movl $0x2c, %esi
callq 0x57da
movl $0xa, %r13d
testb %al, %al
je 0x4132
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r12
movl $0x7, (%rax)
movl %r13d, 0x4(%rax)
movq %r15, 0x8(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x41a0
movq %rax, 0x10(%r12)
movq %r12, %r15
movq %rbx, %rdi
movl $0x1c, %esi
callq 0x57da
movl $0xb, %r13d
testb %al, %al
jne 0x4160
movq %rbx, %rdi
movl $0x1d, %esi
callq 0x57da
movl $0xc, %r13d
testb %al, %al
je 0x418e
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r12
movl $0x7, (%rax)
movl %r13d, 0x4(%rax)
movq %r15, 0x8(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x408c
movq %rax, 0x10(%r12)
movq %r12, %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_shift_expr
static fin_ast_expr_t* fin_ast_parse_shift_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_expr_t* lhs = fin_ast_parse_additive_expr(ctx, lex);
    fin_ast_binary_type_t op;
    if (fin_lex_match(lex, fin_lex_type_lt_lt))
        op = fin_ast_binary_type_shl;
    else if (fin_lex_match(lex, fin_lex_type_gt_gt))
        op = fin_ast_binary_type_shr;
    else
        return lhs;
    fin_ast_binary_expr_t* bin_expr = (fin_ast_binary_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_binary_expr_t));
    bin_expr->base.type = fin_ast_expr_type_binary;
    bin_expr->op = op;
    bin_expr->lhs = lhs;
    bin_expr->rhs = fin_ast_parse_shift_expr(ctx, lex);
    return &bin_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x422a
movq %rax, %r15
movq %rbx, %rdi
movl $0x27, %esi
callq 0x57da
movl $0x5, %r13d
testb %al, %al
jne 0x41ea
movq %rbx, %rdi
movl $0x2b, %esi
callq 0x57da
movl $0x6, %r13d
testb %al, %al
je 0x4218
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r12
movl $0x7, (%rax)
movl %r13d, 0x4(%rax)
movq %r15, 0x8(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x41a0
movq %rax, 0x10(%r12)
movq %r12, %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_additive_expr
static fin_ast_expr_t* fin_ast_parse_additive_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_expr_t* lhs = fin_ast_parse_multiplicative_expr(ctx, lex);
    fin_ast_binary_type_t op;
    if (fin_lex_match(lex, fin_lex_type_plus))
        op = fin_ast_binary_type_add;
    else if (fin_lex_match(lex, fin_lex_type_minus))
        op = fin_ast_binary_type_sub;
    else
        return lhs;
    fin_ast_binary_expr_t* bin_expr = (fin_ast_binary_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_binary_expr_t));
    bin_expr->base.type = fin_ast_expr_type_binary;
    bin_expr->op = op;
    bin_expr->lhs = lhs;
    bin_expr->rhs = fin_ast_parse_additive_expr(ctx, lex);
    return &bin_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x42b1
movq %rax, %r15
movq %rbx, %rdi
movl $0x12, %esi
callq 0x57da
xorl %r13d, %r13d
testb %al, %al
jne 0x4271
movq %rbx, %rdi
movl $0x13, %esi
callq 0x57da
movl $0x1, %r13d
testb %al, %al
je 0x429f
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r12
movl $0x7, (%rax)
movl %r13d, 0x4(%rax)
movq %r15, 0x8(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x422a
movq %rax, 0x10(%r12)
movq %r12, %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_multiplicative_expr
static fin_ast_expr_t* fin_ast_parse_multiplicative_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_expr_t* lhs = fin_ast_parse_unary_expr(ctx, lex);
    fin_ast_binary_type_t op;
    if (fin_lex_match(lex, fin_lex_type_star))
        op = fin_ast_binary_type_mul;
    else if (fin_lex_match(lex, fin_lex_type_slash))
        op = fin_ast_binary_type_div;
    else if (fin_lex_match(lex, fin_lex_type_percent))
        op = fin_ast_binary_type_mod;
    else
        return lhs;
    fin_ast_binary_expr_t* bin_expr = (fin_ast_binary_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_binary_expr_t));
    bin_expr->base.type = fin_ast_expr_type_binary;
    bin_expr->op = op;
    bin_expr->lhs = lhs;
    bin_expr->rhs = fin_ast_parse_multiplicative_expr(ctx, lex);
    return &bin_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4352
movq %rax, %r15
movq %rbx, %rdi
movl $0x14, %esi
callq 0x57da
movl $0x2, %r13d
testb %al, %al
jne 0x4312
movq %rbx, %rdi
movl $0x15, %esi
callq 0x57da
movl $0x3, %r13d
testb %al, %al
jne 0x4312
movq %rbx, %rdi
movl $0x17, %esi
callq 0x57da
movl $0x4, %r13d
testb %al, %al
je 0x4340
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r12
movl $0x7, (%rax)
movl %r13d, 0x4(%rax)
movq %r15, 0x8(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x42b1
movq %rax, 0x10(%r12)
movq %r12, %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_const_expr
static fin_ast_expr_t* fin_ast_parse_const_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    if (fin_lex_get_type(lex) == fin_lex_type_bool) {
        fin_ast_bool_expr_t* bool_expr = (fin_ast_bool_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_bool_expr_t));
        bool_expr->base.type = fin_ast_expr_type_bool;
        bool_expr->value = fin_lex_consume_bool(lex);
        return &bool_expr->base;
    }
    else if (fin_lex_get_type(lex) == fin_lex_type_int) {
        fin_ast_int_expr_t* int_expr = (fin_ast_int_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_int_expr_t));
        int_expr->base.type = fin_ast_expr_type_int;
        int_expr->value = fin_lex_consume_int(lex);
        return &int_expr->base;
    }
    else if (fin_lex_get_type(lex) == fin_lex_type_float) {
        fin_ast_float_expr_t* float_expr = (fin_ast_float_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_float_expr_t));
        float_expr->base.type = fin_ast_expr_type_float;
        float_expr->value = fin_lex_consume_float(lex);
        return &float_expr->base;
    }
    else if (fin_lex_get_type(lex) == fin_lex_type_string) {
        fin_ast_str_expr_t* str_expr = (fin_ast_str_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_str_expr_t));
        str_expr->base.type = fin_ast_expr_type_str;
        str_expr->value = fin_str_from_lex(ctx, fin_lex_consume_string(lex));
        return &str_expr->base;
    }
    else {
        assert(0);
        return NULL;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x57fc
testl %eax, %eax
je 0x4517
movq %rbx, %rdi
callq 0x57fc
cmpl $0x1, %eax
jne 0x4538
xorl %edi, %edi
movl $0x10, %esi
callq *(%r14)
movq %rax, %r15
movl $0x2, (%rax)
movq %rbx, %rdi
callq 0x5823
jmp 0x459b
xorl %edi, %edi
movl $0x8, %esi
callq *(%r14)
movq %rax, %r15
movl $0x1, (%rax)
movq %rbx, %rdi
callq 0x5805
movb %al, 0x4(%r15)
jmp 0x459f
movq %rbx, %rdi
callq 0x57fc
cmpl $0x2, %eax
jne 0x4568
xorl %edi, %edi
movl $0x10, %esi
callq *(%r14)
movq %rax, %r15
movl $0x3, (%rax)
movq %rbx, %rdi
callq 0x5850
movsd %xmm0, 0x8(%r15)
jmp 0x459f
movq %rbx, %rdi
callq 0x57fc
cmpl $0x3, %eax
jne 0x45ad
xorl %edi, %edi
movl $0x10, %esi
callq *(%r14)
movq %rax, %r15
movl $0x4, (%rax)
movq %rbx, %rdi
callq 0x587d
movq %r14, %rdi
movq %rax, %rsi
callq 0x8040
movq %rax, 0x8(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5b0d(%rip), %rdi      # 0xa0c1
leaq 0x5b08(%rip), %rsi      # 0xa0c3
leaq 0x5b40(%rip), %rcx      # 0xa102
movl $0x88, %edx
callq 0x3120
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_str_interp_expr
static fin_ast_expr_t* fin_ast_parse_str_interp_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_str_interp_expr_t* expr = NULL;
    fin_ast_str_interp_expr_t** tail = &expr;
    fin_ast_expect(lex, fin_lex_type_quot);
    while (!fin_lex_match(lex, fin_lex_type_quot)) {
        fin_ast_expr_t* next = NULL;
        if (fin_lex_get_type(lex) == fin_lex_type_string)
            next = fin_ast_parse_const_expr(ctx, lex);
        else if (fin_lex_match(lex, fin_lex_type_l_str_interp)) {
            next = fin_ast_parse_expr(ctx, lex, NULL);
            fin_ast_expect(lex, fin_lex_type_r_str_interp);
        }
        *tail = (fin_ast_str_interp_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_str_interp_expr_t));
        (*tail)->base.type = fin_ast_expr_type_str_interp;
        (*tail)->expr = next;
        (*tail)->next = NULL;
        tail = &(*tail)->next;
    }
    return &expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq $0x0, -0x28(%rbp)
movq %rsi, %rdi
movl $0x5, %esi
callq 0x3992
movq %rbx, %rdi
movl $0x5, %esi
callq 0x57da
testb %al, %al
je 0x460e
xorl %eax, %eax
jmp 0x46a7
leaq -0x28(%rbp), %r12
movq %rbx, %rdi
callq 0x57fc
cmpl $0x3, %eax
jne 0x462f
movq %r14, %rdi
movq %rbx, %rsi
callq 0x44ce
movq %rax, %r15
jmp 0x4662
movq %rbx, %rdi
movl $0x6, %esi
callq 0x57da
testb %al, %al
je 0x465f
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ad6
movq %rax, %r15
movq %rbx, %rdi
movl $0x7, %esi
callq 0x3992
jmp 0x4662
xorl %r15d, %r15d
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, (%r12)
movl $0x5, (%rax)
movq %r15, 0x8(%rax)
movq (%r12), %rax
movq $0x0, 0x10(%rax)
movq (%r12), %r12
addq $0x10, %r12
movq %rbx, %rdi
movl $0x5, %esi
callq 0x57da
testb %al, %al
je 0x4612
movq -0x28(%rbp), %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_block_stmt
static fin_ast_block_stmt_t* fin_ast_parse_block_stmt(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_block_stmt_t* block = (fin_ast_block_stmt_t*)ctx->alloc(NULL, sizeof(fin_ast_block_stmt_t));
    block->base.type = fin_ast_stmt_type_block;
    block->base.next = NULL;
    fin_ast_expect(lex, fin_lex_type_l_brace);
    fin_ast_stmt_t** tail = &block->stmts;
    *tail = NULL;
    while (!fin_lex_match(lex, fin_lex_type_r_brace)) {
        *tail = fin_ast_parse_stmt(ctx, lex);
        tail = &(*tail)->next;
    }
    return block;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r12d, %r12d
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r15
movl $0x7, (%rax)
movq %r12, 0x8(%rax)
movq %rbx, %rdi
movl $0x32, %esi
callq 0x3992
movq %r12, 0x10(%r15)
movq %rbx, %rdi
movl $0x33, %esi
callq 0x57da
testb %al, %al
jne 0x4735
movq %r15, %r13
addq $0x10, %r13
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4747
movq %rax, %r12
movq %rax, (%r13)
addq $0x8, %r12
movq %rbx, %rdi
movl $0x33, %esi
callq 0x57da
movq %r12, %r13
testb %al, %al
je 0x470b
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_expr_stmt
static fin_ast_stmt_t* fin_ast_parse_expr_stmt(fin_ctx_t* ctx, fin_lex_t* lex, fin_ast_expr_t* expr) {
    if (expr == NULL)
        expr = fin_ast_parse_expr(ctx, lex, NULL);
    fin_ast_expr_stmt_t* stmt = (fin_ast_expr_stmt_t*)ctx->alloc(NULL, sizeof(fin_ast_expr_stmt_t));
    stmt->base.type = fin_ast_stmt_type_expr;
    stmt->base.next = NULL;
    stmt->expr = expr;
    fin_ast_expect(lex, fin_lex_type_semicolon);
    return &stmt->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
jne 0x4bea
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ad6
movq %rax, %r15
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movq %rax, %r14
movl $0x0, (%rax)
movq $0x0, 0x8(%rax)
movq %r15, 0x10(%rax)
movq %rbx, %rdi
movl $0xc, %esi
callq 0x3992
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_parse_init_expr
static fin_ast_expr_t* fin_ast_parse_init_expr(fin_ctx_t* ctx, fin_lex_t* lex) {
    fin_ast_init_expr_t* init_expr = (fin_ast_init_expr_t*)ctx->alloc(NULL, sizeof(fin_ast_init_expr_t));
    init_expr->base.type = fin_ast_expr_type_init;
    fin_ast_expect(lex, fin_lex_type_l_brace);
    fin_ast_arg_expr_t** tail = &init_expr->args;
    *tail = NULL;
    while (!fin_lex_match(lex, fin_lex_type_r_brace)) {
        if (init_expr->args)
            fin_ast_expect(lex, fin_lex_type_comma);
        *tail = fin_ast_parse_arg_expr(ctx, lex);
        tail = &(*tail)->next;
    }
    return &init_expr->base;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %edi, %edi
movl $0x10, %esi
callq *(%r14)
movq %rax, %r15
movl $0xb, (%rax)
movq %rbx, %rdi
movl $0x32, %esi
callq 0x3992
movq %r15, -0x30(%rbp)
movq $0x0, 0x8(%r15)
movq %rbx, %rdi
movl $0x33, %esi
callq 0x57da
testb %al, %al
jne 0x4cdb
movq -0x30(%rbp), %r15
addq $0x8, %r15
movq %r15, %r13
cmpq $0x0, (%r15)
je 0x4c93
movq %rbx, %rdi
movl $0x9, %esi
callq 0x3992
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ad6
movq %rax, %r12
xorl %edi, %edi
movl $0x18, %esi
callq *(%r14)
movl $0x9, (%rax)
movq %r12, 0x8(%rax)
leaq 0x10(%rax), %r12
movq $0x0, 0x10(%rax)
movq %rax, (%r13)
movq %rbx, %rdi
movl $0x33, %esi
callq 0x57da
movq %r12, %r13
testb %al, %al
je 0x4c80
movq -0x30(%rbp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_param_destroy
static void fin_ast_param_destroy(fin_ast_module_t* mod, fin_ast_param_t* param) {
    if (!param)
        return;
    fin_ast_param_destroy(mod, param->next);
    fin_ast_type_ref_destroy(mod, param->type);
    fin_str_destroy(mod->ctx, param->name);
    mod->ctx->alloc(param, 0);
}

// Assembly:
testq %rsi, %rsi
je 0x4d31
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %rsi
callq 0x4cee
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4e19
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x8217
movq (%r14), %rax
movq (%rax), %rax
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_type_ref_destroy
static void fin_ast_type_ref_destroy(fin_ast_module_t* mod, fin_ast_type_ref_t* type) {
    fin_str_destroy(mod->ctx, type->name);
    if (type->module)
        fin_str_destroy(mod->ctx, type->module);
    mod->ctx->alloc(type, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq 0x8(%rsi), %rsi
callq 0x8217
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x4e42
movq (%r14), %rdi
callq 0x8217
movq (%r14), %rax
movq (%rax), %rax
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ast.c
// Function: fin_ast_field_destroy
static void fin_ast_field_destroy(fin_ast_module_t* mod, fin_ast_field_t* field) {
    if (!field)
        return;
    fin_ast_field_destroy(mod, field->next);
    fin_str_destroy(mod->ctx, field->name);
    fin_ast_type_ref_destroy(mod, field->type);
    mod->ctx->alloc(field, 0);
}

// Assembly:
testq %rsi, %rsi
je 0x4f8b
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %rsi
callq 0x4f48
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x8217
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4e19
movq (%r14), %rax
movq (%rax), %rax
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ctx.c
// Function: fin_ctx_create
fin_ctx_t* fin_ctx_create(fin_alloc alloc) {
    fin_ctx_t* ctx = (fin_ctx_t*)alloc(NULL, sizeof(fin_ctx_t));
    ctx->alloc = alloc;
    ctx->pool = fin_str_pool_create(alloc);
    ctx->mod = NULL;
    fin_io_register(ctx); // this should be optional
    fin_math_register(ctx); // this should be optional
    fin_time_register(ctx); // this should be optional
    fin_std_register(ctx); // this should be optional
    return ctx;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %edi, %edi
movl $0x18, %esi
callq *%rbx
movq %rax, %r14
movq %rbx, (%rax)
movq %rbx, %rdi
callq 0x7ff6
movq %rax, 0x8(%r14)
movq $0x0, 0x10(%r14)
movq %r14, %rdi
callq 0x8818
movq %r14, %rdi
callq 0x88e4
movq %r14, %rdi
callq 0x9030
movq %r14, %rdi
callq 0x8c64
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ctx.c
// Function: fin_allocator
static void* fin_allocator(void* ptr, unsigned int size) {
    if (ptr) {
        if (size) {
            return realloc(ptr, size);
        }
        else {
            free(ptr);
            return NULL;
        }
    }
    else if (size) {
        return malloc(size);
    }
    return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x5002
testl %esi, %esi
je 0x500d
movl %esi, %esi
jmp 0x3230
testl %esi, %esi
je 0x5017
movl %esi, %edi
jmp 0x31f0
pushq %rbp
movq %rsp, %rbp
callq 0x3030
popq %rbp
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ctx.c
// Function: fin_ctx_destroy
void fin_ctx_destroy(fin_ctx_t* ctx) {
    fin_mod_t* mod = ctx->mod;
    while (mod) {
        fin_mod_t* tmp = mod;
        mod = mod->next;
        fin_mod_destroy(ctx, tmp);
    }

    fin_str_pool_destroy(ctx->pool);
    ctx->alloc(ctx, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rsi
testq %rsi, %rsi
je 0x5041
movq 0x40(%rsi), %r14
movq %rbx, %rdi
callq 0x6363
movq %r14, %rsi
testq %r14, %r14
jne 0x502d
movq 0x8(%rbx), %rdi
callq 0x8019
movq (%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ctx.c
// Function: fin_ctx_eval_str
void fin_ctx_eval_str(fin_ctx_t* ctx, const char* cstr) {
    fin_mod_t* mod = fin_mod_compile(ctx, cstr);
    if (mod && mod->entry) {
        fin_vm_t* vm = fin_vm_create(ctx);
        fin_vm_invoke(vm, mod->entry);
        fin_vm_destroy(vm);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x5e19
testq %rax, %rax
je 0x5099
movq %rax, %r14
cmpq $0x0, 0x38(%rax)
je 0x5099
movq %rbx, %rdi
callq 0x8740
movq %rax, %rbx
movq 0x38(%r14), %rsi
movq %rax, %rdi
callq 0x8789
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x8776
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_ctx.c
// Function: fin_ctx_eval_file
void fin_ctx_eval_file(fin_ctx_t* ctx, const char* path) {
    FILE* fp = fopen(path, "rb");
    if (!fp)
        return;

    fseek(fp, 0, SEEK_END);
    int32_t file_size = (int32_t)ftell(fp);
    fseek(fp, 0, SEEK_SET);

    char* buffer = (char*)ctx->alloc(NULL, file_size + 1);
    assert(buffer);
    int32_t read = (int32_t)fread(buffer, 1, file_size, fp);
    buffer[file_size] = '\0';
    assert(read == file_size);
    fclose(fp);

    fin_ctx_eval_str(ctx, buffer);

    ctx->alloc(buffer, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x508c(%rip), %rsi      # 0xa145
movq %rax, %rdi
callq 0x3250
testq %rax, %rax
je 0x514e
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x3220
movq %r14, %rdi
callq 0x31b0
movq %rax, %r15
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3220
leal 0x1(%r15), %esi
xorl %edi, %edi
callq *(%rbx)
testq %rax, %rax
je 0x515d
movq %rax, %r12
movslq %r15d, %r13
movl $0x1, %esi
movq %rax, %rdi
movq %r13, %rdx
movq %r14, %rcx
callq 0x30a0
movb $0x0, (%r12,%r13)
cmpl %r15d, %eax
jne 0x517c
movq %r14, %rdi
callq 0x30f0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5058
movq (%rbx), %rax
movq %r12, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4fe4(%rip), %rdi      # 0xa148
leaq 0x4fe4(%rip), %rsi      # 0xa14f
leaq 0x4feb(%rip), %rcx      # 0xa15d
movl $0x51, %edx
callq 0x3120
leaq 0x500c(%rip), %rdi      # 0xa18f
leaq 0x4fc5(%rip), %rsi      # 0xa14f
leaq 0x4fcc(%rip), %rcx      # 0xa15d
movl $0x54, %edx
callq 0x3120
nop
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_lex.c
// Function: fin_lex_consume_string
fin_lex_str_t fin_lex_consume_string(fin_lex_t* lex) {
    fin_lex_str_t value;
    value.cstr = lex->token.cstr;
    value.len = lex->token.len;
    fin_lex_next(lex);
    return value;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x18(%rdi), %rbx
movl 0x20(%rdi), %r14d
callq 0x51ea
movq %rbx, %rax
movl %r14d, %edx
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_lex.c
// Function: fin_lex_create_name_token
static fin_lex_token_t fin_lex_create_name_token(fin_lex_t* lex) {
    fin_lex_token_t token;
    token.cstr = lex->cstr - 1;
    token.line = lex->line;

    while (fin_lex_is_name(*lex->cstr) || fin_lex_is_digit(*lex->cstr))
        lex->cstr++;
    token.len = (int32_t)(lex->cstr - token.cstr);

    for (int32_t i=0; i<FIN_COUNT_OF(fin_lex_keywords); i++) {
        const char* keyword = fin_lex_keywords[i].cstr;
        if (strncmp(keyword, token.cstr, token.len) == 0 && keyword[token.len] == '\0') {
            token.type = fin_lex_keywords[i].type;
            return token;
        }
    }

    token.type = fin_lex_type_name;
    return token;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rsi), %rax
leaq -0x1(%rax), %r14
movq %r14, 0x8(%rdi)
movl 0x8(%rsi), %ecx
movl %ecx, 0x14(%rdi)
movb (%rax), %cl
leal -0x30(%rcx), %edx
cmpb $0xa, %dl
jb 0x5925
cmpb $0x5f, %cl
je 0x5925
andb $-0x21, %cl
addb $-0x41, %cl
cmpb $0x19, %cl
ja 0x594b
incq %rax
movq %rax, (%rsi)
movb (%rax), %cl
leal -0x30(%rcx), %edx
incq %rax
cmpb $0xa, %dl
jb 0x5928
cmpb $0x5f, %cl
je 0x5928
andb $-0x21, %cl
addb $-0x41, %cl
cmpb $0x1a, %cl
jb 0x5928
decq %rax
subq %r14, %rax
movq %rdi, -0x30(%rbp)
movl %eax, 0x10(%rdi)
movslq %eax, %r15
movl $0x8, %r13d
leaq 0x8e6b(%rip), %rbx      # 0xe7d0
movq -0x8(%r13,%rbx), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3080
testl %eax, %eax
jne 0x5983
cmpb $0x0, (%r12,%r15)
je 0x5997
addq $0x10, %r13
cmpq $0xe8, %r13
jne 0x5965
movl $0x4, %eax
jmp 0x599c
movl (%r13,%rbx), %eax
movq -0x30(%rbp), %rcx
movl %eax, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_lex.c
// Function: fin_lex_create_number_token
static fin_lex_token_t fin_lex_create_number_token(fin_lex_t* lex) {
    fin_lex_token_t token;
    token.cstr = lex->cstr - 1;
    token.line = lex->line;

    bool is_float = false;
    while (fin_lex_is_digit(*lex->cstr))
        lex->cstr++;
    if (fin_lex_match_char(lex, '.'))
        is_float = true;
    while (fin_lex_is_digit(*lex->cstr))
        lex->cstr++;

    token.type = is_float ? fin_lex_type_float : fin_lex_type_int;
    return token;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rax
leaq -0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl 0x8(%rsi), %ecx
movl %ecx, 0x14(%rdi)
movb (%rax), %cl
leal -0x30(%rcx), %edx
cmpb $0x9, %dl
ja 0x59e6
incq %rax
movq %rax, (%rsi)
movb (%rax), %cl
leal -0x30(%rcx), %edx
incq %rax
cmpb $0xa, %dl
jb 0x59d3
decq %rax
cmpb $0x2e, %cl
jne 0x59fa
leaq 0x1(%rax), %r8
movq %r8, (%rsi)
movb 0x1(%rax), %dl
movq %r8, %rax
jmp 0x59fc
movl %ecx, %edx
addb $-0x30, %dl
cmpb $0x9, %dl
ja 0x5a17
incq %rax
movq %rax, (%rsi)
movb (%rax), %dl
addb $-0x30, %dl
incq %rax
cmpb $0xa, %dl
jb 0x5a07
xorl %eax, %eax
cmpb $0x2e, %cl
sete %al
incl %eax
movl %eax, (%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_mod.c
// Function: fin_mod_register
static void fin_mod_register(fin_ctx_t* ctx, fin_mod_t* mod) {
    mod->next = ctx->mod;
    ctx->mod = mod;

    for (int32_t i=0; i<mod->binds_count; i++) {
        fin_mod_t* m = ctx->mod;
        while (m) {
            for (int32_t f=0; f<m->funcs_count; f++) {
                if (m->funcs[f].sign == mod->binds[i].sign) {
                    mod->binds[i].func = &m->funcs[f];
                    break;
                }
            }
            if (mod->binds[i].func)
                break;
            m = m->next;
        }
        if (!mod->binds[i].func) {
            printf("Unresolved function %s\n", fin_str_cstr(mod->binds[i].sign));
            assert(mod->binds[i].func);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rax
movq %rax, 0x40(%rsi)
movq %rsi, 0x10(%rdi)
movl 0x34(%rsi), %ecx
testl %ecx, %ecx
jle 0x5deb
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rsi), %rax
leaq 0x46da(%rip), %r15      # 0xa427
xorl %r12d, %r12d
movq 0x10(%r14), %rdx
testq %rdx, %rdx
je 0x5da1
movq %r12, %rdi
shlq $0x4, %rdi
leaq (%rax,%rdi), %rsi
movq 0x8(%rax,%rdi), %rdi
movslq 0x2c(%rdx), %r8
testq %r8, %r8
jle 0x5d91
movq 0x10(%rdx), %r9
movq (%rsi), %r10
cmpq %r10, 0x10(%r9)
je 0x5d8a
addq $0x38, %r9
decq %r8
jne 0x5d79
jmp 0x5d91
movq %r9, 0x8(%rsi)
movq %r9, %rdi
testq %rdi, %rdi
jne 0x5ddc
movq 0x40(%rdx), %rdx
testq %rdx, %rdx
jne 0x5d69
jmp 0x5db0
movq %r12, %rdx
shlq $0x4, %rdx
cmpq $0x0, 0x8(%rax,%rdx)
jne 0x5ddc
movq %r12, %r13
shlq $0x4, %r13
movq (%rax,%r13), %rdi
callq 0x83b1
movq %r15, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x3110
movq 0x20(%rbx), %rax
cmpq $0x0, 0x8(%rax,%r13)
je 0x5dfa
movl 0x34(%rbx), %ecx
incq %r12
movslq %ecx, %rdx
cmpq %rdx, %r12
jl 0x5d50
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x463e(%rip), %rdi      # 0xa43f
leaq 0x464a(%rip), %rsi      # 0xa452
leaq 0x4651(%rip), %rcx      # 0xa460
movl $0x307, %edx            # imm = 0x307
callq 0x3120
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_mod.c
// Function: fin_mod_find_func
static fin_mod_func_t* fin_mod_find_func(fin_ctx_t* ctx, fin_mod_t* mod, fin_str_t* sign) {
    for (int32_t i=0; i<mod->funcs_count; i++) {
        if (mod->funcs[i].sign == sign)
            return &mod->funcs[i];
    }
    fin_mod_t* m = ctx->mod;
    while (m) {
        for (int32_t i=0; i<m->funcs_count; i++) {
            if (m->funcs[i].sign == sign)
                return &m->funcs[i];
        }
        m = m->next;
    }
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq 0x2c(%rsi), %rcx
testq %rcx, %rcx
jle 0x6334
movq 0x10(%rsi), %rax
cmpq %rdx, 0x10(%rax)
je 0x6361
addq $0x38, %rax
decq %rcx
jne 0x6325
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0x635f
movslq 0x2c(%rcx), %rsi
testq %rsi, %rsi
jle 0x6359
movq 0x10(%rcx), %rax
cmpq %rdx, 0x10(%rax)
je 0x6361
addq $0x38, %rax
decq %rsi
jne 0x634a
movq 0x40(%rcx), %rcx
jmp 0x6338
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_mod.c
// Function: fin_mod_destroy
void fin_mod_destroy(fin_ctx_t* ctx, fin_mod_t* mod) {
    if (mod->name)
        fin_str_destroy(ctx, mod->name);
    for (int32_t i=0; i<mod->types_count; i++) {
        fin_mod_type_t* type = &mod->types[i];
        fin_str_destroy(ctx, type->name);
        for (int32_t j=0; j<type->fields_count; j++) {
            fin_str_destroy(ctx, type->fields[j].name);
            fin_str_destroy(ctx, type->fields[j].type);
        }
        ctx->alloc(type->fields, 0);
    }
    for (int32_t i=0; i<mod->funcs_count; i++) {
        fin_mod_func_t* func = &mod->funcs[i];
        if (func->ret_type)
            fin_str_destroy(ctx, func->ret_type);
        ctx->alloc(func->code, 0);
        fin_str_destroy(ctx, func->sign);
    }
    if (mod->binds) {
        for (int32_t i=0; i<mod->binds_count; i++) {
            fin_mod_func_bind_t* bind = &mod->binds[i];
            fin_str_destroy(ctx, bind->sign);
        }
        ctx->alloc(mod->binds, 0);
    }
    if (mod->consts)
        ctx->alloc(mod->consts, 0);
    if (mod->funcs)
        ctx->alloc(mod->funcs, 0);
    if (mod->types)
        ctx->alloc(mod->types, 0);
    ctx->alloc(mod, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r13
movq %rdi, %r14
movq (%rsi), %rsi
testq %rsi, %rsi
je 0x6387
movq %r14, %rdi
callq 0x8217
cmpl $0x0, 0x28(%r13)
jle 0x6408
xorl %r15d, %r15d
movq %r13, -0x30(%rbp)
movq 0x8(%r13), %rax
leaq (%r15,%r15,2), %rcx
leaq (%rax,%rcx,8), %r12
movq (%r12), %rsi
movq %r14, %rdi
callq 0x8217
cmpl $0x0, 0x10(%r12)
jle 0x63ee
xorl %r13d, %r13d
xorl %ebx, %ebx
movq 0x8(%r12), %rax
movq (%rax,%r13), %rsi
movq %r14, %rdi
callq 0x8217
movq 0x8(%r12), %rax
movq 0x8(%rax,%r13), %rsi
movq %r14, %rdi
callq 0x8217
incq %rbx
movslq 0x10(%r12), %rax
addq $0x10, %r13
cmpq %rax, %rbx
jl 0x63ba
movq 0x8(%r12), %rdi
xorl %esi, %esi
callq *(%r14)
incq %r15
movq -0x30(%rbp), %r13
movslq 0x28(%r13), %rax
cmpq %rax, %r15
jl 0x6395
cmpl $0x0, 0x2c(%r13)
jle 0x6454
movl $0x28, %r15d
xorl %r12d, %r12d
movq 0x10(%r13), %rbx
movq -0x20(%rbx,%r15), %rsi
testq %rsi, %rsi
je 0x642e
movq %r14, %rdi
callq 0x8217
movq (%rbx,%r15), %rdi
xorl %esi, %esi
callq *(%r14)
movq -0x18(%rbx,%r15), %rsi
movq %r14, %rdi
callq 0x8217
incq %r12
movslq 0x2c(%r13), %rax
addq $0x38, %r15
cmpq %rax, %r12
jl 0x6418
movq 0x20(%r13), %rdi
testq %rdi, %rdi
je 0x6492
cmpl $0x0, 0x34(%r13)
jle 0x648d
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x20(%r13), %rax
movq (%rax,%rbx), %rsi
movq %r14, %rdi
callq 0x8217
incq %r15
movslq 0x34(%r13), %rax
addq $0x10, %rbx
cmpq %rax, %r15
jl 0x6469
movq 0x20(%r13), %rdi
xorl %esi, %esi
callq *(%r14)
movq 0x18(%r13), %rdi
testq %rdi, %rdi
je 0x64a0
xorl %esi, %esi
callq *(%r14)
movq 0x10(%r13), %rdi
testq %rdi, %rdi
je 0x64ae
xorl %esi, %esi
callq *(%r14)
movq 0x8(%r13), %rdi
testq %rdi, %rdi
je 0x64bc
xorl %esi, %esi
callq *(%r14)
movq (%r14), %rax
movq %r13, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_mod.c
// Function: fin_mod_compile_init_expr
static void fin_mod_compile_init_expr(fin_ctx_t* ctx, fin_mod_compiler_t* cmp, fin_ast_init_expr_t* expr, fin_str_t* type_name) {
    fin_mod_type_t* type = fin_mod_find_type(ctx, cmp->mod, type_name);
    assert(type);
    int32_t args_count = 0;
    for (fin_ast_arg_expr_t* e = expr->args; e; e = e->next)
        args_count++;
    assert(args_count == type->fields_count);
    int32_t idx = 0;
    for (fin_ast_arg_expr_t* e = expr->args; e; e = e->next) {
        fin_str_t* arg_type = fin_mod_resolve_type(ctx, cmp, e->expr);
        assert(arg_type == type->fields[idx].type);
        fin_str_destroy(ctx, arg_type);
        fin_mod_compile_expr(ctx, cmp, e->expr);
        idx++;
    }
    fin_mod_code_emit_uint8(ctx, &cmp->code, fin_op_new);
    fin_mod_code_emit_uint8(ctx, &cmp->code, type->fields_count);
    FIN_LOG("\tnew        %2d         // %s\n", type->fields_count, fin_str_cstr(type->name));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rsi
movq %rcx, %rdx
callq 0x7dcc
testq %rax, %rax
je 0x750e
movq %rax, %r15
movq 0x8(%r12), %r12
testq %r12, %r12
je 0x7488
xorl %eax, %eax
movq %r12, %rcx
incl %eax
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0x7410
cmpl %eax, 0x10(%r15)
jne 0x752d
movq %r15, %r13
addq $0x10, %r13
testq %r12, %r12
je 0x749a
movq %r13, -0x30(%rbp)
movl $0x8, %r13d
movq 0x8(%r12), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x754c
movq 0x8(%r15), %rcx
cmpq (%rcx,%r13), %rax
jne 0x74ef
movq %r14, %rdi
movq %rax, %rsi
callq 0x8217
movq 0x8(%r12), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6be0
movq 0x10(%r12), %r12
addq $0x10, %r13
testq %r12, %r12
jne 0x743b
movq -0x30(%rbp), %r13
jmp 0x749a
cmpl $0x0, 0x10(%r15)
jne 0x752d
addq $0x10, %r15
movq %r15, %r13
leaq 0x18(%rbx), %r15
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x7e19
movq 0x18(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x18(%rbx)
movb $0xd, (%rax)
movb (%r13), %r12b
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x7e19
movq 0x18(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x18(%rbx)
movb %r12b, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x329e(%rip), %rdi      # 0xa794
leaq 0x2f55(%rip), %rsi      # 0xa452
leaq 0x3209(%rip), %rcx      # 0xa70d
movl $0x21b, %edx            # imm = 0x21B
callq 0x3120
leaq 0x329d(%rip), %rdi      # 0xa7b2
leaq 0x2f36(%rip), %rsi      # 0xa452
leaq 0x31ea(%rip), %rcx      # 0xa70d
movl $0x213, %edx            # imm = 0x213
callq 0x3120
leaq 0x323f(%rip), %rdi      # 0xa773
leaq 0x2f17(%rip), %rsi      # 0xa452
leaq 0x31cb(%rip), %rcx      # 0xa70d
movl $0x217, %edx            # imm = 0x217
callq 0x3120
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_mod.c
// Function: fin_mod_resolve_field
static int32_t fin_mod_resolve_field(fin_ctx_t* ctx, fin_mod_t* mod, fin_str_t* type_name, fin_str_t* field_name) {
    fin_mod_type_t* type = fin_mod_find_type(ctx, mod, type_name);
    for (int32_t i=0; i<type->fields_count; i++) {
        if (type->fields[i].name == field_name)
            return i;
    }
    return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rcx, %rbx
callq 0x7dcc
movq %rax, %rcx
movslq 0x10(%rax), %rdx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rdx, %rdx
jle 0x77c6
movq 0x8(%rcx), %rsi
xorl %ecx, %ecx
cmpq %rbx, (%rsi)
je 0x77c4
incq %rcx
addq $0x10, %rsi
cmpq %rcx, %rdx
jne 0x77b1
jmp 0x77c6
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/naleksiev[P]fin/src/fin_mod.c
// Function: fin_mod_bind_idx
static int16_t fin_mod_bind_idx(fin_mod_compiler_t* cmp, fin_str_t* sign) {
    fin_mod_t* mod = cmp->mod;
    for (int32_t i=0; i<mod->binds_count; i++) {
        if (sign == mod->binds[i].sign)
            return i;
    }
    mod->binds[mod->binds_count].sign = fin_str_clone(sign);
    mod->binds[mod->binds_count].func = NULL;
    return mod->binds_count++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x34(%rdi), %rcx
testq %rcx, %rcx
jle 0x77f6
movq 0x20(%rbx), %rdx
xorl %eax, %eax
cmpq %rsi, (%rdx)
je 0x7823
incq %rax
addq $0x10, %rdx
cmpq %rax, %rcx
jne 0x77e5
movq %rsi, %rdi
callq 0x824c
movq %rax, %rcx
movq 0x20(%rbx), %rdx
movslq 0x34(%rbx), %rax
movq %rax, %rsi
shlq $0x4, %rsi
movq %rcx, (%rdx,%rsi)
movq $0x0, 0x8(%rdx,%rsi)
leal 0x1(%rax), %ecx
movl %ecx, 0x34(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq