LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/ast.c
// Function: ast_statement_io_write
Statement* ast_statement_io_write(Line line, Expression* write_list) {

    Statement* statement_ = MALLOC(statement_, Statement);

    statement_->line = line;
    statement_->tag = STATEMENT_IO_WRITE;
    statement_->next = NULL;
    statement_->io_write.write_list = write_list;

    return statement_;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %r14d
pushq $0x28
popq %rdi
callq 0x72b8
movq %rax, %r15
testq %rax, %rax
jne 0xbb1f
leaq 0xc2bb(%rip), %rdi      # 0x17dd5
callq 0xa7e4
movl %r14d, (%r15)
movl $0x7, 0x4(%r15)
andq $0x0, 0x8(%r15)
movq %rbx, 0x10(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/ast_print.c
// Function: ast_print_state_initialize
AstPrintState ast_print_state_initialize(AST* ast) {

    AstPrintState state;
    struct stat st;

    strcpy(state.filename, AST_OUTPUT_DIR_NAME);
    strcat(state.filename, "program.");
    strcat(state.filename, ast->header->program.id->identifier);
    strcat(state.filename, ".txt");

    state.indent = 0;

    if (stat(AST_OUTPUT_DIR_NAME, &st) < 0) {
        if (mkdir(AST_OUTPUT_DIR_NAME, 0600) < 0) {
            internal_error("mkdir");
        }
    }

    if (!(state.fp = fopen(state.filename, "w"))) {
        internal_error("fopen");
    }

    return state;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movabsq $0x7074756f5f747361, %rax # imm = 0x7074756F5F747361
movq %rax, (%rdi)
movl $0x2f7475, 0x8(%rdi)    # imm = 0x2F7475
leaq 0xc384(%rip), %r14      # 0x17efb
callq 0x70d0
movabsq $0x2e6d6172676f7270, %rcx # imm = 0x2E6D6172676F7270
movq %rcx, (%rbx,%rax)
xorl %r12d, %r12d
movb %r12b, 0x8(%rbx,%rax)
movq (%r15), %rax
movq 0x10(%rax), %rax
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x7250
movq %rbx, %rdi
callq 0x70d0
movb %r12b, 0x4(%rbx,%rax)
movl $0x7478742e, (%rbx,%rax) # imm = 0x7478742E
andl $0x0, 0x40(%rbx)
leaq -0xb0(%rbp), %rsi
movq %r14, %rdi
callq 0x71a0
testl %eax, %eax
jns 0xbbf0
leaq 0xc325(%rip), %rdi      # 0x17efb
movl $0x180, %esi            # imm = 0x180
callq 0x7060
testl %eax, %eax
jns 0xbbf0
leaq 0xc32a(%rip), %rdi      # 0x17f15
callq 0xa7e4
leaq 0xbffa(%rip), %rsi      # 0x17bf1
movq %rbx, %rdi
callq 0x7220
movq %rax, 0x48(%rbx)
testq %rax, %rax
jne 0xbc14
leaq 0xc30c(%rip), %rdi      # 0x17f1b
callq 0xa7e4
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/ast_print.c
// Function: ast_definition_print_state_initialize
AstPrintState ast_definition_print_state_initialize(Definition* definition) {

    AstPrintState state;
    struct stat st;

    strcpy(state.filename, AST_OUTPUT_DIR_NAME);

    if (definition->subprogram.sub_header->tag == DEFINITION_FUNCTION) {
        strcat(state.filename, "function.");
        strcat(state.filename, definition->subprogram.sub_header->function.id->identifier);
    } else {
        strcat(state.filename, "procedure.");
        strcat(state.filename, definition->subprogram.sub_header->procedure.id->identifier);
    }

    strcat(state.filename, ".txt");

    state.indent = 0;

    if (stat(AST_OUTPUT_DIR_NAME, &st) < 0) {
        if (mkdir(AST_OUTPUT_DIR_NAME, 0600) < 0) {
            internal_error("mkdir");
        }
    }

    if (!(state.fp = fopen(state.filename, "w"))) {
        internal_error("fopen");
    }

    return state;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
movabsq $0x7074756f5f747361, %rax # imm = 0x7074756F5F747361
movq %rax, (%rdi)
movl $0x2f7475, 0x8(%rdi)    # imm = 0x2F7475
movq 0x10(%rsi), %r14
movl 0x4(%r14), %r15d
callq 0x70d0
addq %rbx, %rax
cmpl $0x7, %r15d
jne 0xbc79
movabsq $0x6e6f6974636e7566, %rcx # imm = 0x6E6F6974636E7566
movq %rcx, (%rax)
movw $0x2e, 0x8(%rax)
jmp 0xbc8d
movabsq $0x72756465636f7270, %rcx # imm = 0x72756465636F7270
movq %rcx, (%rax)
movl $0x2e6572, 0x7(%rax)    # imm = 0x2E6572
movq 0x10(%r14), %rax
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x7250
movq %rbx, %rdi
callq 0x70d0
movl $0x7478742e, (%rbx,%rax) # imm = 0x7478742E
movb $0x0, 0x4(%rbx,%rax)
andl $0x0, 0x40(%rbx)
leaq 0xc240(%rip), %rdi      # 0x17efb
leaq -0xa8(%rbp), %rsi
callq 0x71a0
testl %eax, %eax
jns 0xbcec
leaq 0xc229(%rip), %rdi      # 0x17efb
movl $0x180, %esi            # imm = 0x180
callq 0x7060
testl %eax, %eax
jns 0xbcec
leaq 0xc22e(%rip), %rdi      # 0x17f15
callq 0xa7e4
leaq 0xbefe(%rip), %rsi      # 0x17bf1
movq %rbx, %rdi
callq 0x7220
movq %rax, 0x48(%rbx)
testq %rax, %rax
jne 0xbd10
leaq 0xc210(%rip), %rdi      # 0x17f1b
callq 0xa7e4
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/ast_print.c
// Function: ast_print
void ast_print(AstPrintState* state, AST* ast) {

    ast_definition_print(state, ast->header);
    ast_declaration_print(state, ast->declarations);
    if (ast->subprograms) ast_definition_print(state, ast->subprograms);
    if (ast->comp_statement) ast_statement_print(state, ast->comp_statement);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rsi
callq 0xbd6d
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0xc042
movq 0x10(%r14), %rsi
testq %rsi, %rsi
je 0xbd53
movq %rbx, %rdi
callq 0xbd6d
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0xbd68
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0xc08a
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/ast_print.c
// Function: ast_variable_print
void ast_variable_print(AstPrintState* state, Variable* variable) {

    switch (variable->tag) {
        case VARIABLE_ID:
            fprintf(state->fp, " [VARIABLE_ID:");
            ast_id_print(state, variable->id.id);
            fprintf(state->fp, "]");

            break;
        case VARIABLE_COMPONENT:
            fprintf(state->fp, " [VARIABLE_COMPONENT:");
            ast_variable_print(state, variable->component.variable);
            ast_id_print(state, variable->component.id);
            fprintf(state->fp, "]");

            break;
        case VARIABLE_INDEX:
            fprintf(state->fp, " [VARIABLE_INDEX:");
            ast_variable_print(state, variable->index.variable);
            ast_expression_print(state, variable->index.expressions);
            fprintf(state->fp, "]");

            break;
        case VARIABLE_LISTFUNC:
            fprintf(state->fp, " [VARIABLE_LISTFUNC:");
            ast_id_print(state, variable->listfunc.id);
            ast_expression_print(state, variable->listfunc.expression);
            fprintf(state->fp, "]");
    }

    if (variable->next) ast_variable_print(state, variable->next);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xb66f(%rip), %r12      # 0x17e8c
pushq $0x1
popq %r13
pushq $0x5d
popq %r15
movl 0x4(%rbx), %eax
cmpq $0x3, %rax
ja 0xc8e5
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
movq 0x48(%r14), %rcx
leaq 0xb91e(%rip), %rdi      # 0x18164
pushq $0xe
popq %rsi
movq %r13, %rdx
callq 0x7270
movq 0x10(%rbx), %rsi
jmp 0xc8d1
movq 0x48(%r14), %rcx
leaq 0xb927(%rip), %rdi      # 0x18189
pushq $0x11
popq %rsi
movq %r13, %rdx
callq 0x7270
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0xc802
jmp 0xc89d
movq 0x48(%r14), %rcx
leaq 0xb915(%rip), %rdi      # 0x1819b
pushq $0x14
popq %rsi
movq %r13, %rdx
callq 0x7270
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0xc32c
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0xc3e1
jmp 0xc8d9
movq 0x48(%r14), %rcx
leaq 0xb8bd(%rip), %rdi      # 0x18173
pushq $0x15
popq %rsi
movq %r13, %rdx
callq 0x7270
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0xc802
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0xc32c
movq 0x48(%r14), %rsi
movl %r15d, %edi
callq 0x7140
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0xc825
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/ast_print.c
// Function: ast_constant_print
void ast_constant_print(AstPrintState* state, Constant* constant) {

    switch (constant->tag) {
        case CONSTANT_INTEGER:
            if (constant->integer.operator != UNDEFINED) fprintf(state->fp, " (OPERATOR: %s)", OperatorString[constant->integer.operator]);
            fprintf(state->fp, " (ICONST: %d)", constant->integer.integer);

            break;
        case CONSTANT_REAL:
            fprintf(state->fp, " (RCONST: %lf)", constant->real);

            break;
        case CONSTANT_BOOLEAN:
            fprintf(state->fp, " (BCONST: %s)", constant->boolean ? "true" : "false");

            break;
        case CONSTANT_CHARACTER:
            fprintf(state->fp, " (CCONST: %c)", constant->character);

            break;
        case CONSTANT_STRING:
            fprintf(state->fp, " (SCONST: %s)", constant->string);

            break;
        case CONSTANT_ID:
            if (constant->id.operator != UNDEFINED) fprintf(state->fp, " (OPERATOR: %s)", OperatorString[constant->id.operator]);
            ast_id_print(state, constant->id.id);
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl 0x4(%rsi), %eax
cmpq $0x5, %rax
ja 0xca07
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xb57a(%rip), %rcx      # 0x17e9c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x8(%rbx), %eax
testq %rax, %rax
je 0xc950
movq 0x48(%r14), %rdi
leaq 0x13842(%rip), %rcx     # 0x20180
movq (%rcx,%rax,8), %rdx
leaq 0xb701(%rip), %rsi      # 0x1804a
xorl %eax, %eax
callq 0x7180
movq 0x48(%r14), %rdi
movl 0xc(%rbx), %edx
leaq 0xb852(%rip), %rsi      # 0x181b0
jmp 0xc9ac
movq 0x48(%r14), %rdi
movq 0x8(%rbx), %rdx
leaq 0xb880(%rip), %rsi      # 0x181ef
jmp 0xc992
movq 0x48(%r14), %rdi
leaq 0xb460(%rip), %rax      # 0x17ddc
cmpb $0x0, 0x8(%rbx)
leaq 0xb854(%rip), %rdx      # 0x181db
cmovneq %rax, %rdx
leaq 0xb83b(%rip), %rsi      # 0x181cd
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x7180
movq 0x48(%r14), %rdi
movsbl 0x8(%rbx), %edx
leaq 0xb835(%rip), %rsi      # 0x181e1
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x7180
movq 0x48(%r14), %rdi
cvtss2sd 0x8(%rbx), %xmm0
leaq 0xb7f7(%rip), %rsi      # 0x181be
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
jmp 0x7180
movl 0x8(%rbx), %eax
testq %rax, %rax
je 0xc9f7
movq 0x48(%r14), %rdi
leaq 0x1379b(%rip), %rcx     # 0x20180
movq (%rcx,%rax,8), %rdx
leaq 0xb65a(%rip), %rsi      # 0x1804a
xorl %eax, %eax
callq 0x7180
movq 0x10(%rbx), %rsi
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0xc32c
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/ast_free.c
// Function: ast_free
void ast_free(AST* ast) {

    ast_definition_free(ast->header);
    ast_declaration_free(ast->declarations);
    if (ast->subprograms) ast_definition_free(ast->subprograms);
    if (ast->comp_statement) ast_statement_free(ast->comp_statement);

    free(ast);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0xca50
movq 0x8(%rbx), %rdi
callq 0xcb46
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xca34
callq 0xca50
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xca42
callq 0xcb86
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x72b0
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/ast_free.c
// Function: ast_declaration_free
static void ast_declaration_free(Declaration* declaration) {

    if (declaration->constdefs) ast_definition_free(declaration->constdefs);
    if (declaration->typedefs) ast_definition_free(declaration->typedefs);
    if (declaration->vardefs) ast_definition_free(declaration->vardefs);

    free(declaration);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xcb5c
callq 0xca50
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xcb6a
callq 0xca50
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xcb78
callq 0xca50
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x72b0
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/ast_free.c
// Function: ast_statement_free
static void ast_statement_free(Statement* statement) {

    if (statement->next) ast_statement_free(statement->next);

    switch (statement->tag) {
        case STATEMENT_ASSIGNMENT:
            ast_variable_free(statement->assignment.variable);
            ast_expression_free(statement->assignment.expression);

            break;
        case STATEMENT_IF:
            ast_expression_free(statement->if_.expression);
            ast_statement_free(statement->if_.if_statement);
            if (statement->if_.else_statement) ast_statement_free(statement->if_.else_statement);

            break;
        case STATEMENT_WHILE:
            ast_expression_free(statement->while_.expression);
            ast_statement_free(statement->while_.statement);

            break;
        case STATEMENT_FOR:
            ast_id_free(statement->for_.id);
            ast_expression_free(statement->for_.iter_space);
            ast_statement_free(statement->for_.statement);

            break;
        case STATEMENT_WITH:
            ast_variable_free(statement->with.variable);
            ast_statement_free(statement->with.statement);

            break;
        case STATEMENT_PROCEDURE_CALL:
            ast_id_free(statement->procedure_call.id);
            if (statement->procedure_call.expressions) ast_expression_free(statement->procedure_call.expressions);

            break;
        case STATEMENT_IO_READ:
            ast_variable_free(statement->io_read.read_list);

            break;
        case STATEMENT_IO_WRITE:
            ast_expression_free(statement->io_write.write_list);
    }

    free(statement);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0xcb9d
callq 0xcb86
movl 0x4(%rbx), %eax
cmpq $0x7, %rax
ja 0xcc45
leaq 0xb7d7(%rip), %rcx      # 0x18388
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rbx), %rdi
callq 0xcd93
movq 0x18(%rbx), %rdi
jmp 0xcc35
movq 0x10(%rbx), %rdi
callq 0xcd93
jmp 0xcbdd
movq 0x10(%rbx), %rdi
callq 0xcc80
movq 0x18(%rbx), %rdi
jmp 0xcc1c
movq 0x10(%rbx), %rdi
callq 0xcc53
movq 0x18(%rbx), %rdi
callq 0xcc80
movq 0x20(%rbx), %rdi
jmp 0xcc1c
movq 0x10(%rbx), %rdi
jmp 0xcc35
movq 0x10(%rbx), %rdi
callq 0xcc80
movq 0x18(%rbx), %rdi
callq 0xcb86
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xcc45
callq 0xcb86
jmp 0xcc45
movq 0x10(%rbx), %rdi
callq 0xcc53
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xcc45
callq 0xcc80
jmp 0xcc45
movq 0x10(%rbx), %rdi
callq 0xcd93
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x72b0
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/ast_free.c
// Function: ast_variable_free
static void ast_variable_free(Variable* variable) {

    if (variable->next) ast_variable_free(variable->next);

    switch (variable->tag) {
        case VARIABLE_ID:
            ast_id_free(variable->id.id);

            break;
        case VARIABLE_COMPONENT:
            ast_variable_free(variable->component.variable);
            ast_id_free(variable->component.id);

            break;
        case VARIABLE_INDEX:
            ast_variable_free(variable->index.variable);
            ast_expression_free(variable->index.expressions);

            break;
        case VARIABLE_LISTFUNC:
            ast_id_free(variable->listfunc.id);
            ast_expression_free(variable->listfunc.expression);
    }

    free(variable);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0xcdaa
callq 0xcd93
movl 0x4(%rbx), %eax
cmpq $0x3, %rax
ja 0xcdfa
leaq 0xb64e(%rip), %rcx      # 0x18408
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rbx), %rdi
jmp 0xcdf5
movq 0x10(%rbx), %rdi
callq 0xcd93
jmp 0xcddd
movq 0x10(%rbx), %rdi
callq 0xcc53
movq 0x18(%rbx), %rdi
callq 0xcc80
jmp 0xcdfa
movq 0x10(%rbx), %rdi
callq 0xcd93
movq 0x18(%rbx), %rdi
callq 0xcc53
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x72b0
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8casecmp
int utf8casecmp(const void *src1, const void *src2)
{
    utf8_int32_t src1_cp, src2_cp, src1_orig_cp, src2_orig_cp;

    for (;;) {
        src1 = utf8codepoint(src1, &src1_cp);
        src2 = utf8codepoint(src2, &src2_cp);

        // Take a copy of src1 & src2
        src1_orig_cp = src1_cp;
        src2_orig_cp = src2_cp;

        // Lower the srcs if required
        src1_cp = utf8lwrcodepoint(src1_cp);
        src2_cp = utf8lwrcodepoint(src2_cp);

        // Check if the lowered codepoints match
        if ((0 == src1_orig_cp) && (0 == src2_orig_cp)) {
            return 0;
        } else if (src1_cp == src2_cp) {
            continue;
        }

        // If they don't match, then we return which of the original's are less
        if (src1_orig_cp < src2_orig_cp) {
            return -1;
        } else if (src1_orig_cp > src2_orig_cp) {
            return 1;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %r13
leaq -0x2c(%rbp), %r15
movq %r13, %rdi
leaq -0x30(%rbp), %rsi
callq 0xcebe
movq %rax, %r13
movq %r12, %rdi
movq %r15, %rsi
callq 0xcebe
movq %rax, %r12
movl -0x30(%rbp), %ebx
movl -0x2c(%rbp), %r14d
movl %ebx, %edi
callq 0xcf8d
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %edi
callq 0xcf8d
movl %eax, -0x2c(%rbp)
movl %ebx, %ecx
orl %r14d, %ecx
je 0xcea8
cmpl %eax, -0x30(%rbp)
je 0xce58
cmpl %r14d, %ebx
jl 0xceac
jle 0xce58
pushq $0x1
jmp 0xceae
xorl %eax, %eax
jmp 0xceaf
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8codepoint
void *utf8codepoint(const void *utf8_restrict str,
                    utf8_int32_t *utf8_restrict out_codepoint)
{
    const char *s = (const char *)str;

    if (0xf0 == (0xf8 & s[0])) {
        // 4 byte utf8 codepoint
        *out_codepoint = ((0x07 & s[0]) << 18) | ((0x3f & s[1]) << 12) |
                         ((0x3f & s[2]) << 6) | (0x3f & s[3]);
        s += 4;
    } else if (0xe0 == (0xf0 & s[0])) {
        // 3 byte utf8 codepoint
        *out_codepoint =
            ((0x0f & s[0]) << 12) | ((0x3f & s[1]) << 6) | (0x3f & s[2]);
        s += 3;
    } else if (0xc0 == (0xe0 & s[0])) {
        // 2 byte utf8 codepoint
        *out_codepoint = ((0x1f & s[0]) << 6) | (0x3f & s[1]);
        s += 2;
    } else {
        // 1 byte utf8 codepoint otherwise
        *out_codepoint = s[0];
        s += 1;
    }

    return (void *)s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movsbl (%rdi), %ecx
movl %ecx, %edx
andl $0xf8, %edx
cmpl $0xf0, %edx
jne 0xcf0c
andl $0x7, %ecx
shll $0x12, %ecx
movzbl 0x1(%rax), %edx
andl $0x3f, %edx
shll $0xc, %edx
orl %ecx, %edx
movzbl 0x2(%rax), %edi
andl $0x3f, %edi
shll $0x6, %edi
orl %edx, %edi
movabsq $0x4, %rdx
movabsq $0x3, %r8
jmp 0xcf70
movl %ecx, %edx
andl $0xf0, %edx
cmpl $0xe0, %edx
jne 0xcf44
shll $0xc, %ecx
movzwl %cx, %ecx
movzbl 0x1(%rax), %edi
andl $0x3f, %edi
shll $0x6, %edi
orl %ecx, %edi
movabsq $0x3, %rdx
movabsq $0x2, %r8
jmp 0xcf70
movl %ecx, %edx
andl $0xe0, %edx
cmpl $0xc0, %edx
jne 0xcf81
andl $0x1f, %ecx
shll $0x6, %ecx
movabsq $0x2, %rdx
movabsq $0x1, %r8
movl %ecx, %edi
movzbl (%rax,%r8), %ecx
andl $0x3f, %ecx
orl %edi, %ecx
movl %ecx, (%rsi)
addq %rdx, %rax
popq %rbp
retq
movabsq $0x1, %rdx
jmp 0xcf7a
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8chr
void *utf8chr(const void *src, utf8_int32_t chr)
{
    char c[5] = {'\0', '\0', '\0', '\0', '\0'};

    if (0 == chr) {
        // being asked to return position of null terminating byte, so
        // just run s to the end, and return!
        const char *s = (const char *)src;
        while ('\0' != *s) {
            s++;
        }
        return (void *)s;
    } else if (0 == ((utf8_int32_t)0xffffff80 & chr)) {
        // 1-byte/7-bit ascii
        // (0b0xxxxxxx)
        c[0] = (char)chr;
    } else if (0 == ((utf8_int32_t)0xfffff800 & chr)) {
        // 2-byte/11-bit utf8 code point
        // (0b110xxxxx 0b10xxxxxx)
        c[0] = 0xc0 | (char)(chr >> 6);
        c[1] = 0x80 | (char)(chr & 0x3f);
    } else if (0 == ((utf8_int32_t)0xffff0000 & chr)) {
        // 3-byte/16-bit utf8 code point
        // (0b1110xxxx 0b10xxxxxx 0b10xxxxxx)
        c[0] = 0xe0 | (char)(chr >> 12);
        c[1] = 0x80 | (char)((chr >> 6) & 0x3f);
        c[2] = 0x80 | (char)(chr & 0x3f);
    } else { // if (0 == ((int)0xffe00000 & chr)) {
        // 4-byte/21-bit utf8 code point
        // (0b11110xxx 0b10xxxxxx 0b10xxxxxx 0b10xxxxxx)
        c[0] = 0xf0 | (char)(chr >> 18);
        c[1] = 0x80 | (char)((chr >> 12) & 0x3f);
        c[2] = 0x80 | (char)((chr >> 6) & 0x3f);
        c[3] = 0x80 | (char)(chr & 0x3f);
    }

    // we've made c into a 2 utf8 codepoint string, one for the chr we are
    // seeking, another for the null terminating byte. Now use utf8str to
    // search
    return utf8str(src, c);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb $0x0, -0x4(%rbp)
andl $0x0, -0x8(%rbp)
testl %esi, %esi
je 0xd3fd
cmpl $0x7f, %esi
ja 0xd40f
movb %sil, -0x8(%rbp)
jmp 0xd485
decq %rdi
leaq 0x1(%rdi), %rax
cmpb $0x0, 0x1(%rdi)
movq %rax, %rdi
jne 0xd400
jmp 0xd48e
movl %esi, %eax
cmpl $0x7ff, %esi            # imm = 0x7FF
ja 0xd42f
shrl $0x6, %eax
orb $-0x40, %al
movb %al, -0x8(%rbp)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, -0x7(%rbp)
jmp 0xd485
cmpl $0xffff, %esi           # imm = 0xFFFF
ja 0xd459
shrl $0xc, %eax
orb $-0x20, %al
movb %al, -0x8(%rbp)
movl %esi, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, -0x7(%rbp)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, -0x6(%rbp)
jmp 0xd485
shrl $0x12, %eax
orb $-0x10, %al
movb %al, -0x8(%rbp)
movl %esi, %eax
shrl $0xc, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, -0x7(%rbp)
movl %esi, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, -0x6(%rbp)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, -0x5(%rbp)
leaq -0x8(%rbp), %rsi
callq 0xd494
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8str
void *utf8str(const void *haystack, const void *needle)
{
    const char *h = (const char *)haystack;
    utf8_int32_t throwaway_codepoint;

    // if needle has no utf8 codepoints before the null terminating
    // byte then return haystack
    if ('\0' == *((const char *)needle)) {
        return (void *)haystack;
    }

    while ('\0' != *h) {
        const char *maybeMatch = h;
        const char *n = (const char *)needle;

        while (*h == *n && (*h != '\0' && *n != '\0')) {
            n++;
            h++;
        }

        if ('\0' == *n) {
            // we found the whole utf8 string for needle in haystack at
            // maybeMatch, so return it
            return (void *)maybeMatch;
        } else {
            // h could be in the middle of an unmatching utf8 codepoint,
            // so we need to march it on to the next character beginning
            // starting from the current character
            h = (const char *)utf8codepoint(maybeMatch, &throwaway_codepoint);
        }
    }

    // no match
    return utf8_null;
}

// Assembly:
movq %rdi, %rax
cmpb $0x0, (%rsi)
je 0xd4f3
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
pushq $0x1
popq %r15
leaq -0x1c(%rbp), %r14
movb (%rax), %dl
testb %dl, %dl
je 0xd4e7
movq %r15, %rcx
movb -0x1(%rbx,%rcx), %sil
testb %sil, %sil
je 0xd4d5
testb %dl, %dl
je 0xd4d5
cmpb %sil, %dl
jne 0xd4d5
movb (%rax,%rcx), %dl
incq %rcx
jmp 0xd4ba
testb %sil, %sil
je 0xd4e9
movq %rax, %rdi
movq %r14, %rsi
callq 0xcebe
jmp 0xd4b1
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8cmp
int utf8cmp(const void *src1, const void *src2)
{
    const unsigned char *s1 = (const unsigned char *)src1;
    const unsigned char *s2 = (const unsigned char *)src2;

    while (('\0' != *s1) || ('\0' != *s2)) {
        if (*s1 < *s2) {
            return -1;
        } else if (*s1 > *s2) {
            return 1;
        }

        s1++;
        s2++;
    }

    // both utf8 strings matched
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0x1, %edx
xorl %r8d, %r8d
movb (%rdi,%r8), %r9b
movb (%rsi,%r8), %r10b
movl %r9d, %r11d
orb %r10b, %r11b
je 0xd529
cmpb %r10b, %r9b
jb 0xd523
ja 0xd527
incq %r8
jmp 0xd507
movl %ecx, %eax
jmp 0xd529
movl %edx, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8len
size_t utf8len(const void *str)
{
    const unsigned char *s = (const unsigned char *)str;
    size_t length = 0;

    while ('\0' != *s) {
        if (0xf0 == (0xf8 & *s)) {
            // 4-byte utf8 code point (began with 0b11110xxx)
            s += 4;
        } else if (0xe0 == (0xf0 & *s)) {
            // 3-byte utf8 code point (began with 0b1110xxxx)
            s += 3;
        } else if (0xc0 == (0xe0 & *s)) {
            // 2-byte utf8 code point (began with 0b110xxxxx)
            s += 2;
        } else { // if (0x00 == (0x80 & *s)) {
            // 1-byte ascii (began with 0b0xxxxxxx)
            s += 1;
        }

        // no matter the bytes we marched s forward by, it was
        // only 1 utf8 codepoint
        length++;
    }

    return length;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movabsq $0x4, %rcx
movabsq $0x3, %rdx
movzbl (%rdi), %esi
testl %esi, %esi
je 0xd65a
movl %esi, %r9d
andl $-0x8, %r9d
movq %rcx, %r8
cmpl $0xf0, %r9d
je 0xd652
movl %esi, %r9d
andl $-0x10, %r9d
movq %rdx, %r8
cmpl $0xe0, %r9d
je 0xd652
andl $-0x20, %esi
xorl %r8d, %r8d
cmpl $0xc0, %esi
sete %r8b
incq %r8
addq %r8, %rdi
incq %rax
jmp 0xd612
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8width
size_t utf8width(const void *str)
{
    size_t length = 0;
    utf8_int32_t c = 0;

    str = utf8codepoint(str, &c);
    while (c != 0) {
        length += utf8cwidth(c);
        str = utf8codepoint(str, &c);
    }
    return length;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r15
leaq -0x1c(%rbp), %rbx
andl $0x0, (%rbx)
xorl %r14d, %r14d
movq %r15, %rdi
movq %rbx, %rsi
callq 0xcebe
movl -0x1c(%rbp), %edi
testl %edi, %edi
je 0xd91c
movq %rax, %r15
callq 0xd65c
cltq
addq %rax, %r14
jmp 0xd8fb
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8codepointsize
size_t utf8codepointsize(utf8_int32_t chr)
{
    if (0 == ((utf8_int32_t)0xffffff80 & chr)) {
        return 1;
    } else if (0 == ((utf8_int32_t)0xfffff800 & chr)) {
        return 2;
    } else if (0 == ((utf8_int32_t)0xffff0000 & chr)) {
        return 3;
    } else { // if (0 == ((int)0xffe00000 & chr)) {
        return 4;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x80, %edi
jae 0xdaab
movabsq $0x1, %rax
jmp 0xdad3
cmpl $0x800, %edi            # imm = 0x800
jae 0xdabf
movabsq $0x2, %rax
jmp 0xdad3
cmpl $0x10000, %edi          # imm = 0x10000
movabsq $0x4, %rax
sbbq $0x0, %rax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8ncat
void *utf8ncat(void *utf8_restrict dst, const void *utf8_restrict src,
               size_t n)
{
    char *d = (char *)dst;
    const char *s = (const char *)src;

    // find the null terminating byte in dst
    while ('\0' != *d) {
        d++;
    }

    // overwriting the null terminating byte in dst, append src byte-by-byte
    // stopping if we run out of space
    do {
        *d++ = *s++;
    } while (('\0' != *s) && (0 != --n));

    // write out a new null terminating byte into dst
    *d = '\0';

    return dst;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movq %rdi, %rcx
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0xdadf
movb (%rsi), %dil
decq %rdx
xorl %r8d, %r8d
movb %dil, -0x1(%rcx,%r8)
movb 0x1(%rsi,%r8), %dil
leaq 0x1(%r8), %r9
testb %dil, %dil
je 0xdb0c
cmpq %r8, %rdx
movq %r9, %r8
jne 0xdaf1
movb $0x0, -0x1(%rcx,%r9)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8ncmp
int utf8ncmp(const void *src1, const void *src2, size_t n)
{
    const unsigned char *s1 = (const unsigned char *)src1;
    const unsigned char *s2 = (const unsigned char *)src2;

    while ((0 != n--) && (('\0' != *s1) || ('\0' != *s2))) {
        if (*s1 < *s2) {
            return -1;
        } else if (*s1 > *s2) {
            return 1;
        }

        s1++;
        s2++;
    }

    // both utf8 strings matched
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0x1, %r8d
xorl %r9d, %r9d
cmpq %r9, %rdx
je 0xdb51
movb (%rdi,%r9), %r10b
movb (%rsi,%r9), %r11b
movl %r10d, %ebx
orb %r11b, %bl
je 0xdb51
cmpb %r11b, %r10b
jb 0xdb4a
ja 0xdb4e
incq %r9
jmp 0xdb29
movl %ecx, %eax
jmp 0xdb51
movl %r8d, %eax
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8casestr
void *utf8casestr(const void *haystack, const void *needle)
{
    const void *h = haystack;

    // if needle has no utf8 codepoints before the null terminating
    // byte then return haystack
    if ('\0' == *((const char *)needle)) {
        return (void *)haystack;
    }

    for (;;) {
        const void *maybeMatch = h;
        const void *n = needle;
        utf8_int32_t h_cp, n_cp;

        // Get the next code point and track it
        const void *nextH = h = utf8codepoint(h, &h_cp);
        n = utf8codepoint(n, &n_cp);

        while ((0 != h_cp) && (0 != n_cp)) {
            h_cp = utf8lwrcodepoint(h_cp);
            n_cp = utf8lwrcodepoint(n_cp);

            // if we find a mismatch, bail out!
            if (h_cp != n_cp) {
                break;
            }

            h = utf8codepoint(h, &h_cp);
            n = utf8codepoint(n, &n_cp);
        }

        if (0 == n_cp) {
            // we found the whole utf8 string for needle in haystack at
            // maybeMatch, so return it
            return (void *)maybeMatch;
        }

        if (0 == h_cp) {
            // no match
            return utf8_null;
        }

        // Roll back to the next code point in the haystack to test
        h = nextH;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsi, -0x38(%rbp)
cmpb $0x0, (%rsi)
je 0xde21
leaq -0x30(%rbp), %r15
leaq -0x2c(%rbp), %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0xcebe
movq %rax, %r13
movq -0x38(%rbp), %r14
movq %rax, -0x40(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0xcebe
movq %rax, %r14
movl -0x30(%rbp), %edi
movl -0x2c(%rbp), %eax
testl %edi, %edi
je 0xde13
testl %eax, %eax
je 0xde13
callq 0xcf8d
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %edi
callq 0xcf8d
movl %eax, -0x2c(%rbp)
movl -0x30(%rbp), %edi
cmpl %eax, %edi
jne 0xde13
movq %r13, %rdi
movq %r15, %rsi
callq 0xcebe
movq %rax, %r13
jmp 0xddcd
testl %eax, %eax
je 0xde21
movq -0x40(%rbp), %rbx
testl %edi, %edi
jne 0xddb7
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8catcodepoint
void *utf8catcodepoint(void *utf8_restrict str, utf8_int32_t chr, size_t n)
{
    char *s = (char *)str;

    if (0 == ((utf8_int32_t)0xffffff80 & chr)) {
        // 1-byte/7-bit ascii
        // (0b0xxxxxxx)
        if (n < 1) {
            return utf8_null;
        }
        s[0] = (char)chr;
        s += 1;
    } else if (0 == ((utf8_int32_t)0xfffff800 & chr)) {
        // 2-byte/11-bit utf8 code point
        // (0b110xxxxx 0b10xxxxxx)
        if (n < 2) {
            return utf8_null;
        }
        s[0] = 0xc0 | (char)(chr >> 6);
        s[1] = 0x80 | (char)(chr & 0x3f);
        s += 2;
    } else if (0 == ((utf8_int32_t)0xffff0000 & chr)) {
        // 3-byte/16-bit utf8 code point
        // (0b1110xxxx 0b10xxxxxx 0b10xxxxxx)
        if (n < 3) {
            return utf8_null;
        }
        s[0] = 0xe0 | (char)(chr >> 12);
        s[1] = 0x80 | (char)((chr >> 6) & 0x3f);
        s[2] = 0x80 | (char)(chr & 0x3f);
        s += 3;
    } else { // if (0 == ((int)0xffe00000 & chr)) {
        // 4-byte/21-bit utf8 code point
        // (0b11110xxx 0b10xxxxxx 0b10xxxxxx 0b10xxxxxx)
        if (n < 4) {
            return utf8_null;
        }
        s[0] = 0xf0 | (char)(chr >> 18);
        s[1] = 0x80 | (char)((chr >> 12) & 0x3f);
        s[2] = 0x80 | (char)((chr >> 6) & 0x3f);
        s[3] = 0x80 | (char)(chr & 0x3f);
        s += 4;
    }

    return s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
cmpl $0x7f, %esi
ja 0xdf4e
testq %rdx, %rdx
je 0xdfb6
movb %sil, (%rax)
incq %rax
jmp 0xdfb8
cmpl $0x7ff, %esi            # imm = 0x7FF
ja 0xdf78
cmpq $0x2, %rdx
jb 0xdfb6
movl %esi, %ecx
shrl $0x6, %ecx
orb $-0x40, %cl
movb %cl, (%rax)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x1(%rax)
addq $0x2, %rax
jmp 0xdfb8
cmpl $0xffff, %esi           # imm = 0xFFFF
ja 0xdfb0
cmpq $0x3, %rdx
jb 0xdfb6
movl %esi, %ecx
shrl $0xc, %ecx
orb $-0x20, %cl
movb %cl, (%rax)
movl %esi, %ecx
shrl $0x6, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rax)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x2(%rax)
addq $0x3, %rax
jmp 0xdfb8
cmpq $0x4, %rdx
jae 0xdfba
xorl %eax, %eax
popq %rbp
retq
movl %esi, %ecx
shrl $0x12, %ecx
orb $-0x10, %cl
movb %cl, (%rax)
movl %esi, %ecx
shrl $0xc, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rax)
movl %esi, %ecx
shrl $0x6, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x2(%rax)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x3(%rax)
addq $0x4, %rax
jmp 0xdfb8
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8lwr
void utf8lwr(void *utf8_restrict str)
{
    void *p, *pn;
    utf8_int32_t cp;

    p = (char *)str;
    pn = utf8codepoint(p, &cp);

    while (cp != 0) {
        const utf8_int32_t lwr_cp = utf8lwrcodepoint(cp);
        const size_t size = utf8codepointsize(lwr_cp);

        if (lwr_cp != cp) {
            utf8catcodepoint(p, lwr_cp, size);
        }

        p = pn;
        pn = utf8codepoint(p, &cp);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq -0x24(%rbp), %rbx
movq %r14, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0xcebe
movl -0x24(%rbp), %edi
testl %edi, %edi
je 0xe4bd
movq %rax, %r14
callq 0xcf8d
movl %eax, %r12d
movl %eax, %edi
callq 0xda93
cmpl -0x24(%rbp), %r12d
je 0xe480
movq %r15, %rdi
movl %r12d, %esi
movq %rax, %rdx
callq 0xdf35
jmp 0xe480
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: ft_create_table
ft_table_t *ft_create_table(void)
{
    ft_table_t *result = (ft_table_t *)F_CALLOC(1, sizeof(ft_table_t));
    if (result == NULL)
        return NULL;

    result->rows = create_vector(sizeof(f_row_t *), DEFAULT_VECTOR_CAPACITY);
    if (result->rows == NULL) {
        F_FREE(result);
        return NULL;
    }
    result->separators = create_vector(sizeof(f_separator_t *), DEFAULT_VECTOR_CAPACITY);
    if (result->separators == NULL) {
        destroy_vector(result->rows);
        F_FREE(result);
        return NULL;
    }

    result->properties = create_table_properties();
    if (result->properties == NULL) {
        destroy_vector(result->separators);
        destroy_vector(result->rows);
        F_FREE(result);
        return NULL;
    }
    result->conv_buffer = NULL;
    result->cur_row = 0;
    result->cur_col = 0;
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq *0x11cf4(%rip)          # 0x20230
testq %rax, %rax
je 0xe5a1
movq %rax, %rbx
pushq $0x8
popq %rdi
pushq $0xa
popq %rsi
callq 0xe5ad
movq %rax, (%rbx)
testq %rax, %rax
je 0xe598
pushq $0x8
popq %rdi
pushq $0xa
popq %rsi
callq 0xe5ad
movq %rax, 0x28(%rbx)
testq %rax, %rax
je 0xe590
callq 0xe659
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0xe587
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
andq $0x0, 0x20(%rbx)
jmp 0xe5a3
movq 0x28(%rbx), %rdi
callq 0xe613
movq (%rbx), %rdi
callq 0xe613
movq %rbx, %rdi
callq *0x11c97(%rip)          # 0x20238
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: create_vector
FT_INTERNAL
f_vector_t *create_vector(size_t item_size, size_t capacity)
{
    f_vector_t *vector = (f_vector_t *)F_MALLOC(sizeof(f_vector_t));
    if (vector == NULL) {
        return NULL;
    }

    size_t init_size = MAX(item_size * capacity, 1);
    vector->m_data = F_MALLOC(init_size);
    if (vector->m_data == NULL) {
        F_FREE(vector);
        return NULL;
    }

    vector->m_size      = 0;
    vector->m_capacity  = capacity;
    vector->m_item_size = item_size;

    return vector;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
pushq $0x20
popq %rdi
callq *0x11e02(%rip)          # 0x203c8
testq %rax, %rax
je 0xe603
movq %rax, %rbx
movq %r15, %rdi
imulq %r14, %rdi
cmpq $0x1, %rdi
adcq $0x0, %rdi
callq *0x11de5(%rip)          # 0x203c8
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0xe5fa
andq $0x0, (%rbx)
movq %r15, 0x10(%rbx)
movq %r14, 0x18(%rbx)
jmp 0xe605
movq %rbx, %rdi
callq *0x11c35(%rip)          # 0x20238
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: create_table_properties
FT_INTERNAL
f_table_properties_t *create_table_properties(void)
{
    f_table_properties_t *properties = (f_table_properties_t *)F_CALLOC(sizeof(f_table_properties_t), 1);
    if (properties == NULL) {
        return NULL;
    }
    memcpy(properties, &g_table_properties, sizeof(f_table_properties_t));
    properties->cell_properties = create_cell_prop_container();
    if (properties->cell_properties == NULL) {
        destroy_table_properties(properties);
        return NULL;
    }
    memcpy(&properties->entire_table_properties, &g_entire_table_properties, sizeof(fort_entire_table_properties_t));
    return properties;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
pushq $0x1
popq %rsi
movl $0x180, %edi            # imm = 0x180
callq *0x11bc3(%rip)          # 0x20230
testq %rax, %rax
je 0xe6be
movq %rax, %rbx
leaq 0x11bcc(%rip), %rsi     # 0x20248
movl $0x180, %edx            # imm = 0x180
movq %rax, %rdi
callq 0x71e0
callq 0x119b3
movq %rax, 0x160(%rbx)
testq %rax, %rax
je 0xe6b6
movl 0x134d8(%rip), %eax     # 0x21b78
movl %eax, 0x178(%rbx)
movups 0x134bb(%rip), %xmm0    # 0x21b68
movups %xmm0, 0x168(%rbx)
jmp 0xe6c0
movq %rbx, %rdi
callq 0xe7e2
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: ft_destroy_table
void ft_destroy_table(ft_table_t *table)
{
    size_t i = 0;

    if (table == NULL)
        return;

    if (table->rows) {
        size_t row_n = vector_size(table->rows);
        for (i = 0; i < row_n; ++i) {
            destroy_row(VECTOR_AT(table->rows, i, f_row_t *));
        }
        destroy_vector(table->rows);
    }
    if (table->separators) {
        size_t row_n = vector_size(table->separators);
        for (i = 0; i < row_n; ++i) {
            destroy_separator(VECTOR_AT(table->separators, i, f_separator_t *));
        }
        destroy_vector(table->separators);
    }
    destroy_table_properties(table->properties);
    destroy_string_buffer(table->conv_buffer);
    F_FREE(table);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xe772
movq %rdi, %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0xe715
movq (%rax), %r14
xorl %r15d, %r15d
movq (%rbx), %rdi
cmpq %r15, %r14
je 0xe710
movq 0x8(%rdi), %rax
movq 0x18(%rdi), %rcx
imulq %r15, %rcx
movq (%rax,%rcx), %rdi
callq 0xe7a9
incq %r15
jmp 0xe6ee
callq 0xe613
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0xe74d
movq (%rax), %r14
xorl %r15d, %r15d
movq 0x28(%rbx), %rdi
cmpq %r15, %r14
je 0xe748
movq 0x8(%rdi), %rax
movq 0x18(%rdi), %rcx
imulq %r15, %rcx
movq (%rax,%rcx), %rdi
callq *0x11af5(%rip)          # 0x20238
incq %r15
jmp 0xe724
callq 0xe613
movq 0x8(%rbx), %rdi
callq 0xe7e2
movq 0x10(%rbx), %rdi
callq 0xe817
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *0x11ac6(%rip)          # 0x20238
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: destroy_row
FT_INTERNAL
void destroy_row(f_row_t *row)
{
    if (row == NULL)
        return;

    if (row->cells) {
        destroy_each_cell(row->cells);
        destroy_vector(row->cells);
    }

    F_FREE(row);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xe7db
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xe7cc
callq 0x12006
movq (%rbx), %rdi
callq 0xe613
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *0x11a5d(%rip)          # 0x20238
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: destroy_table_properties
FT_INTERNAL
void destroy_table_properties(f_table_properties_t *properties)
{
    if (properties == NULL)
        return;

    if (properties->cell_properties != NULL) {
        destroy_cell_prop_container(properties->cell_properties);
    }
    F_FREE(properties);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xe810
movq %rdi, %rbx
movq 0x160(%rdi), %rdi
testq %rdi, %rdi
je 0xe801
callq 0xe613
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *0x11a28(%rip)          # 0x20238
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: destroy_string_buffer
FT_INTERNAL
void destroy_string_buffer(f_string_buffer_t *buffer)
{
    if (buffer == NULL)
        return;
    F_FREE(buffer->str.data);
    buffer->str.data = NULL;
    F_FREE(buffer);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xe841
movq %rdi, %rbx
movq (%rdi), %rdi
callq *0x11a0a(%rip)          # 0x20238
andq $0x0, (%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *0x119f7(%rip)          # 0x20238
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: vector_push
FT_INTERNAL
int vector_push(f_vector_t *vector, const void *item)
{
    assert(vector);
    assert(item);

    if (vector->m_size == vector->m_capacity) {
        if (vector_reallocate_(vector, vector->m_capacity * 2) == -1)
            return FT_GEN_ERROR;
        vector->m_capacity = vector->m_capacity * 2;
    }

    size_t offset = vector->m_size * vector->m_item_size;
    memcpy((char *)vector->m_data + offset, item, vector->m_item_size);

    ++(vector->m_size);

    return FT_SUCCESS;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0xec75
movq %rsi, %r14
testq %rsi, %rsi
je 0xec94
movq %rdi, %rbx
movq (%rdi), %rsi
cmpq 0x10(%rdi), %rsi
jne 0xec4f
addq %rsi, %rsi
movq %rbx, %rdi
callq 0x12590
cmpl $-0x1, %eax
je 0xec70
shlq 0x10(%rbx)
movq (%rbx), %rsi
movq 0x18(%rbx), %rdx
imulq %rdx, %rsi
addq 0x8(%rbx), %rsi
movq %rsi, %rdi
movq %r14, %rsi
callq 0x71e0
incq (%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
pushq $-0x4
popq %rax
jmp 0xec6b
leaq 0xaad6(%rip), %rdi      # 0x19752
leaq 0x9df3(%rip), %rsi      # 0x18a76
leaq 0xb5dd(%rip), %rcx      # 0x1a267
movl $0x1c84, %edx           # imm = 0x1C84
callq 0x7120
leaq 0x74a1(%rip), %rdi      # 0x1613c
leaq 0x9dd4(%rip), %rsi      # 0x18a76
leaq 0xb5be(%rip), %rcx      # 0x1a267
movl $0x1c85, %edx           # imm = 0x1C85
callq 0x7120
// File: /workspace/github_c_makefile_star2_O2/neosploit[P]compiler/libfort/lib/fort.c
// Function: ft_ln
int ft_ln(ft_table_t *table)
{
    assert(table);
    fort_entire_table_properties_t *table_props = &table->properties->entire_table_properties;
    switch (table_props->add_strategy) {
        case FT_STRATEGY_INSERT: {
            f_row_t *new_row = NULL;
            if (FT_IS_ERROR(split_cur_row(table, &new_row))) {
                return FT_GEN_ERROR;
            }
            if (new_row) {
                if (FT_IS_ERROR(vector_insert(table->rows, &new_row, table->cur_row + 1))) {
                    destroy_row(new_row);
                    return FT_GEN_ERROR;
                }
            }
            break;
        }
        case FT_STRATEGY_REPLACE:
            // do nothing
            break;
        default:
            assert(0 && "Unexpected situation inside libfort");
            break;
    }
    table->cur_col = 0;
    table->cur_row++;
    return FT_SUCCESS;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xedf6
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movl 0x178(%rax), %eax
testl %eax, %eax
je 0xedb2
cmpl $0x1, %eax
jne 0xee15
movq (%rbx), %rdi
movq 0x18(%rbx), %r14
callq 0xe77d
cmpq %rax, %r14
jae 0xedb2
movq (%rbx), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rax
imulq 0x18(%rbx), %rax
movq (%rcx,%rax), %rax
testq %rax, %rax
je 0xedb2
movq (%rax), %r12
testq %r12, %r12
je 0xedb2
movq 0x20(%rbx), %r13
movq (%r12), %rax
cmpq %rax, %r13
jae 0xedb2
xorl %r15d, %r15d
subq %r13, %rax
cmovaeq %rax, %r15
movq 0x18(%r12), %rdi
movq %r15, %rsi
callq 0xe5ad
testq %rax, %rax
je 0xede7
movq %rax, %r14
cmpq %r15, 0x10(%rax)
jb 0xedd4
movq 0x18(%r12), %rdx
movq %rdx, %rsi
imulq %r13, %rsi
movq 0x8(%r14), %rdi
addq 0x8(%r12), %rsi
imulq %r15, %rdx
callq 0x71e0
movq %r15, (%r14)
movq %r13, (%r12)
pushq $0x1
popq %rdi
pushq $0x8
popq %rsi
callq *0x114a3(%rip)          # 0x20230
testq %rax, %rax
je 0xedcc
movq %rax, %r15
movq %r14, (%rax)
leaq -0x30(%rbp), %rsi
movq %rax, (%rsi)
movq (%rbx), %rdi
movq 0x18(%rbx), %rdx
incq %rdx
callq 0xee34
testl %eax, %eax
js 0xedec
andq $0x0, 0x20(%rbx)
incq 0x18(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x12006
movq 0x8(%r14), %rdi
callq *0x1145a(%rip)          # 0x20238
movq %r14, %rdi
callq *0x11451(%rip)          # 0x20238
pushq $-0x4
popq %rax
jmp 0xedbd
movq %r15, %rdi
callq 0xe7a9
jmp 0xede7
leaq 0x9c73(%rip), %rdi      # 0x18a70
leaq 0x9c72(%rip), %rsi      # 0x18a76
leaq 0x9c7e(%rip), %rcx      # 0x18a89
movl $0xad5, %edx            # imm = 0xAD5
callq 0x7120
leaq 0x9c85(%rip), %rdi      # 0x18aa1
leaq 0x9c53(%rip), %rsi      # 0x18a76
leaq 0x9c5f(%rip), %rcx      # 0x18a89
movl $0xae9, %edx            # imm = 0xAE9
callq 0x7120