LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0xc274(%rip), %r15      # 0x18e94
leaq 0xc317(%rip), %r12      # 0x18f3e
movl 0x4(%rbx), %eax
cmpq $0x3, %rax
ja 0xcd3d
movslq (%r15,%rax,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x48(%r14), %rcx
movl $0xe, %esi
movl $0x1, %edx
leaq 0xc51a(%rip), %rdi      # 0x1916c
callq 0x7270
movq 0x10(%rbx), %r13
movq 0x48(%r14), %rdi
movq (%r13), %rdx
movq %r12, %rsi
xorl %eax, %eax
callq 0x7180
movq 0x8(%r13), %r13
testq %r13, %r13
jne 0xcc5b
jmp 0xcd2f
movq 0x48(%r14), %rcx
movl $0x11, %esi
movl $0x1, %edx
leaq 0xc501(%rip), %rdi      # 0x19191
callq 0x7270
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0xcc05
jmp 0xccdc
movq 0x48(%r14), %rcx
movl $0x14, %esi
movl $0x1, %edx
leaq 0xc4eb(%rip), %rdi      # 0x191a3
callq 0x7270
movq 0x10(%rbx), %r13
movq 0x48(%r14), %rdi
movq (%r13), %rdx
movq %r12, %rsi
xorl %eax, %eax
callq 0x7180
movq 0x8(%r13), %r13
testq %r13, %r13
jne 0xccc1
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0xc721
jmp 0xcd2f
movq 0x48(%r14), %rcx
movl $0x15, %esi
movl $0x1, %edx
leaq 0xc47c(%rip), %rdi      # 0x1917b
callq 0x7270
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0xcc05
movq 0x18(%rbx), %r13
movq 0x48(%r14), %rdi
movq (%r13), %rdx
movq %r12, %rsi
xorl %eax, %eax
callq 0x7180
movq 0x8(%r13), %r13
testq %r13, %r13
jne 0xcd14
movq 0x48(%r14), %rsi
movl $0x5d, %edi
callq 0x7140
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0xcc27
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x4(%rsi), %eax
cmpq $0x5, %rax
ja 0xce8f
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xc127(%rip), %rcx      # 0x18ea4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x8(%r14), %eax
testq %rax, %rax
je 0xcdac
movq 0x48(%rbx), %rdi
leaq 0x133e6(%rip), %rcx     # 0x20180
movq (%rcx,%rax,8), %rdx
leaq 0xc2ad(%rip), %rsi      # 0x19052
xorl %eax, %eax
callq 0x7180
movq 0x48(%rbx), %rdi
movl 0xc(%r14), %edx
leaq 0xc3fd(%rip), %rsi      # 0x191b8
jmp 0xce11
movq 0x48(%rbx), %rdi
movq 0x8(%r14), %rdx
leaq 0xc42b(%rip), %rsi      # 0x191f7
jmp 0xcdf0
movq 0x48(%rbx), %rdi
leaq 0xc00c(%rip), %rax      # 0x18de5
cmpb $0x0, 0x8(%r14)
leaq 0xc3fe(%rip), %rdx      # 0x191e3
cmovneq %rax, %rdx
leaq 0xc3e5(%rip), %rsi      # 0x191d5
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7180
movq 0x48(%rbx), %rdi
movsbl 0x8(%r14), %edx
leaq 0xc3d8(%rip), %rsi      # 0x191e9
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7180
movq 0x48(%rbx), %rdi
cvtss2sd 0x8(%r14), %xmm0
leaq 0xc393(%rip), %rsi      # 0x191c6
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7180
movl 0x8(%r14), %eax
testq %rax, %rax
je 0xce6a
movq 0x48(%rbx), %rdi
leaq 0x13328(%rip), %rcx     # 0x20180
movq (%rcx,%rax,8), %rdx
leaq 0xc1ef(%rip), %rsi      # 0x19052
xorl %eax, %eax
callq 0x7180
movq 0x10(%r14), %r15
leaq 0xc0c9(%rip), %r14      # 0x18f3e
movq 0x48(%rbx), %rdi
movq (%r15), %rdx
movq %r14, %rsi
xorl %eax, %eax
callq 0x7180
movq 0x8(%r15), %r15
testq %r15, %r15
jne 0xce75
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0xcee0
movq 0x8(%rbx), %rdi
callq 0xcfd6
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xcec4
callq 0xcee0
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xced2
callq 0xd016
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x72b0
// File: /workspace/github_c_makefile_star2_O3/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 0xcfec
callq 0xcee0
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xcffa
callq 0xcee0
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xd008
callq 0xcee0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x72b0
// File: /workspace/github_c_makefile_star2_O3/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 0xd02d
callq 0xd016
movl 0x4(%rbx), %eax
cmpq $0x7, %rax
ja 0xd0d5
leaq 0xc34f(%rip), %rcx      # 0x19390
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rbx), %rdi
callq 0xd223
movq 0x18(%rbx), %rdi
jmp 0xd0c5
movq 0x10(%rbx), %rdi
callq 0xd223
jmp 0xd06d
movq 0x10(%rbx), %rdi
callq 0xd110
movq 0x18(%rbx), %rdi
jmp 0xd0ac
movq 0x10(%rbx), %rdi
callq 0xd0e3
movq 0x18(%rbx), %rdi
callq 0xd110
movq 0x20(%rbx), %rdi
jmp 0xd0ac
movq 0x10(%rbx), %rdi
jmp 0xd0c5
movq 0x10(%rbx), %rdi
callq 0xd110
movq 0x18(%rbx), %rdi
callq 0xd016
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xd0d5
callq 0xd016
jmp 0xd0d5
movq 0x10(%rbx), %rdi
callq 0xd0e3
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xd0d5
callq 0xd110
jmp 0xd0d5
movq 0x10(%rbx), %rdi
callq 0xd223
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x72b0
// File: /workspace/github_c_makefile_star2_O3/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 0xd23a
callq 0xd223
movl 0x4(%rbx), %eax
cmpq $0x3, %rax
ja 0xd28a
leaq 0xc1c6(%rip), %rcx      # 0x19410
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rbx), %rdi
jmp 0xd285
movq 0x10(%rbx), %rdi
callq 0xd223
jmp 0xd26d
movq 0x10(%rbx), %rdi
callq 0xd0e3
movq 0x18(%rbx), %rdi
callq 0xd110
jmp 0xd28a
movq 0x10(%rbx), %rdi
callq 0xd223
movq 0x18(%rbx), %rdi
callq 0xd0e3
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x72b0
// File: /workspace/github_c_makefile_star2_O3/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, %r15
movq %rdi, %r12
leaq -0x2c(%rbp), %r14
movq %r12, %rdi
leaq -0x30(%rbp), %rsi
callq 0xd354
movq %rax, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0xd354
movq %rax, %r15
movl -0x30(%rbp), %r13d
movl -0x2c(%rbp), %ebx
movl %r13d, %edi
callq 0xd401
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %edi
callq 0xd401
movl %eax, -0x2c(%rbp)
movl %r13d, %ecx
orl %ebx, %ecx
je 0xd33c
cmpl %eax, -0x30(%rbp)
je 0xd2e8
cmpl %ebx, %r13d
jl 0xd340
jle 0xd2e8
movl $0x1, %eax
jmp 0xd345
xorl %eax, %eax
jmp 0xd345
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xd399
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
movl $0x4, %edx
movl $0x3, %r8d
jmp 0xd3f0
movl %ecx, %edx
andl $0xf0, %edx
cmpl $0xe0, %edx
jne 0xd3c8
shll $0xc, %ecx
movzwl %cx, %ecx
movzbl 0x1(%rax), %edi
andl $0x3f, %edi
shll $0x6, %edi
orl %ecx, %edi
movl $0x3, %edx
movl $0x2, %r8d
jmp 0xd3f0
movl %ecx, %edi
andl $0xe0, %edi
movl $0x1, %edx
cmpl $0xc0, %edi
jne 0xd3fa
andl $0x1f, %ecx
shll $0x6, %ecx
movl $0x2, %edx
movl $0x1, %r8d
movl %ecx, %edi
movzbl (%rax,%r8), %ecx
andl $0x3f, %ecx
orl %edi, %ecx
movl %ecx, (%rsi)
addq %rdx, %rax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8cat
void *utf8cat(void *utf8_restrict dst, const void *utf8_restrict src)
{
    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
    while ('\0' != *s) {
        *d++ = *s++;
    }

    // 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
movq %rcx, %rdi
incq %rcx
cmpb $0x0, (%rdi)
jne 0xd86a
movb (%rsi), %dl
testb %dl, %dl
je 0xd896
movq $-0x1, %rdi
movb %dl, (%rcx,%rdi)
movb 0x2(%rsi,%rdi), %dl
incq %rdi
testb %dl, %dl
jne 0xd882
addq %rdi, %rcx
movq %rcx, %rdi
movb $0x0, (%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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)
movl $0x0, -0x8(%rbp)
testl %esi, %esi
je 0xd8c0
cmpl $0x7f, %esi
ja 0xd8d2
movb %sil, -0x8(%rbp)
jmp 0xd948
decq %rdi
leaq 0x1(%rdi), %rax
cmpb $0x0, 0x1(%rdi)
movq %rax, %rdi
jne 0xd8c3
jmp 0xd951
movl %esi, %eax
cmpl $0x7ff, %esi            # imm = 0x7FF
ja 0xd8f2
shrl $0x6, %eax
orb $-0x40, %al
movb %al, -0x8(%rbp)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, -0x7(%rbp)
jmp 0xd948
cmpl $0xffff, %esi           # imm = 0xFFFF
ja 0xd91c
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 0xd948
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 0xd957
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xd9c9
movb (%rax), %dl
testb %dl, %dl
je 0xd9c7
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
leaq -0x14(%rbp), %r14
movb (%rbx), %sil
testb %sil, %sil
sete %cl
cmpb %sil, %dl
jne 0xd9a7
movl $0x1, %edx
movb (%rbx,%rdx), %sil
testb %sil, %sil
sete %cl
je 0xd9a7
movb (%rax,%rdx), %dil
testb %dil, %dil
je 0xd9a7
incq %rdx
cmpb %sil, %dil
je 0xd98a
testb %cl, %cl
jne 0xd9be
movq %rax, %rdi
movq %r14, %rsi
callq 0xd354
movb (%rax), %dl
testb %dl, %dl
jne 0xd977
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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
movb (%rdi), %cl
movb (%rsi), %dl
xorl %eax, %eax
movl %ecx, %r8d
orb %dl, %r8b
je 0xda09
movl $0x1, %r8d
cmpb %dl, %cl
jb 0xd9fd
ja 0xda04
movb (%rdi,%r8), %cl
movb (%rsi,%r8), %dl
incq %r8
movl %edx, %r9d
orb %cl, %r9b
jne 0xd9e2
jmp 0xda09
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xda09
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8cpy
void *utf8cpy(void *utf8_restrict dst, const void *utf8_restrict src)
{
    char *d = (char *)dst;
    const char *s = (const char *)src;

    // overwriting anything previously in dst, write byte-by-byte
    // from src
    while ('\0' != *s) {
        *d++ = *s++;
    }

    // append null terminating byte
    *d = '\0';

    return dst;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movb (%rsi), %cl
movq %rdi, %rdx
testb %cl, %cl
je 0xda2f
incq %rsi
movq %rax, %rdx
movb %cl, (%rdx)
incq %rdx
movb (%rsi), %cl
incq %rsi
testb %cl, %cl
jne 0xda21
movb $0x0, (%rdx)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8cspn
size_t utf8cspn(const void *src, const void *reject)
{
    const char *s = (const char *)src;
    size_t chars = 0;

    while ('\0' != *s) {
        const char *r = (const char *)reject;
        size_t offset = 0;

        while ('\0' != *r) {
            // checking that if *r is the start of a utf8 codepoint
            // (it is not 0b10xxxxxx) and we have successfully matched
            // a previous character (0 < offset) - we found a match
            if ((0x80 != (0xc0 & *r)) && (0 < offset)) {
                return chars;
            } else {
                if (*r == s[offset]) {
                    // part of a utf8 codepoint matched, so move our checking
                    // onwards to the next byte
                    offset++;
                    r++;
                } else {
                    // r could be in the middle of an unmatching utf8 code point,
                    // so we need to march it on to the next character beginning,

                    do {
                        r++;
                    } while (0x80 == (0xc0 & *r));

                    // reset offset too as we found a mismatch
                    offset = 0;
                }
            }
        }

        // the current utf8 codepoint in src did not match reject, but src
        // could have been partway through a utf8 codepoint, so we need to
        // march it onto the next utf8 codepoint starting byte
        do {
            s++;
        } while ((0x80 == (0xc0 & *s)));
        chars++;
    }

    return chars;
}

// Assembly:
cmpb $0x0, (%rdi)
je 0xdab0
pushq %rbp
movq %rsp, %rbp
movb (%rsi), %cl
xorl %eax, %eax
testb %cl, %cl
je 0xda95
movl %ecx, %r8d
xorl %r9d, %r9d
movq %rsi, %rdx
movl %r8d, %r10d
andb $-0x40, %r10b
negb %r10b
setno %r10b
testq %r9, %r9
setne %r11b
testb %r11b, %r10b
jne 0xdaae
cmpb (%rdi,%r9), %r8b
jne 0xda7a
incq %r9
movb 0x1(%rdx), %r8b
incq %rdx
jmp 0xda90
movb 0x1(%rdx), %r8b
incq %rdx
movl %r8d, %r9d
andb $-0x40, %r9b
negb %r9b
jo 0xda7a
xorl %r9d, %r9d
testb %r8b, %r8b
jne 0xda4e
movb 0x1(%rdi), %dl
incq %rdi
movl %edx, %r8d
andb $-0x40, %r8b
negb %r8b
jo 0xda95
incq %rax
testb %dl, %dl
jne 0xda41
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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:
movb (%rdi), %dl
testb %dl, %dl
je 0xdb52
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movzbl %dl, %edx
movl %edx, %esi
andl $-0x8, %esi
movl $0x4, %ecx
cmpl $0xf0, %esi
je 0xdb43
movl %edx, %esi
andl $-0x10, %esi
movl $0x3, %ecx
cmpl $0xe0, %esi
je 0xdb43
andl $-0x20, %edx
xorl %ecx, %ecx
cmpl $0xc0, %edx
sete %cl
incq %rcx
movb (%rdi,%rcx), %dl
addq %rcx, %rdi
incq %rax
testb %dl, %dl
jne 0xdb0b
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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
leaq -0x1c(%rbp), %rbx
movl $0x0, (%rbx)
movq %rbx, %rsi
callq 0xd354
movl (%rbx), %edi
testl %edi, %edi
je 0xde36
movq %rax, %r14
xorl %ebx, %ebx
leaq -0x1c(%rbp), %r15
callq 0xdb55
cltq
addq %rax, %rbx
movq %r14, %rdi
movq %r15, %rsi
callq 0xd354
movq %rax, %r14
movl -0x1c(%rbp), %edi
testl %edi, %edi
jne 0xde15
jmp 0xde38
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xdfe3
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 0xe010
cmpq %r8, %rdx
movq %r9, %r8
jne 0xdff5
movb $0x0, -0x1(%rcx,%r9)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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
xorl %eax, %eax
testq %rdx, %rdx
je 0xe052
xorl %ecx, %ecx
movb (%rdi,%rcx), %r8b
movb (%rsi,%rcx), %r9b
movl %r8d, %r10d
orb %r9b, %r10b
je 0xe052
cmpb %r9b, %r8b
jb 0xe046
ja 0xe04d
incq %rcx
cmpq %rcx, %rdx
jne 0xe025
jmp 0xe052
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xe052
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8ncpy
void *utf8ncpy(void *utf8_restrict dst, const void *utf8_restrict src,
               size_t n)
{
    char *d = (char *)dst;
    const char *s = (const char *)src;
    size_t index;

    // overwriting anything previously in dst, write byte-by-byte
    // from src
    for (index = 0; index < n; index++) {
        d[index] = s[index];
        if ('\0' == s[index]) {
            break;
        }
    }

    // append null terminating byte
    for (; index < n; index++) {
        d[index] = 0;
    }

    return dst;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %edi, %edi
testq %rdx, %rdx
je 0xe078
movb (%rsi,%rdi), %al
movb %al, (%rbx,%rdi)
testb %al, %al
je 0xe078
incq %rdi
cmpq %rdi, %rdx
jne 0xe064
jmp 0xe087
subq %rdi, %rdx
jbe 0xe087
addq %rbx, %rdi
xorl %esi, %esi
callq 0x7130
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8ndup
void *utf8ndup(const void *src, size_t n)
{
    const char *s = (const char *)src;
    char *c = utf8_null;
    size_t bytes = 0;

    // Find the end of the string or stop when n is reached
    while ('\0' != s[bytes] && bytes < n) {
        bytes++;
    }

    // In case bytes is actually less than n, we need to set it
    // to be used later in the copy byte by byte.
    n = bytes;

    c = (char *)malloc(bytes + 1);
    if (utf8_null == c) {
        // out of memory so we bail
        return utf8_null;
    }

    bytes = 0;

    // copy src byte-by-byte into our new utf8 string
    while ('\0' != s[bytes] && bytes < n) {
        c[bytes] = s[bytes];
        bytes++;
    }

    // append null terminating byte
    c[bytes] = '\0';
    return c;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %eax, %eax
leaq 0x1(%rax), %r14
cmpq %rsi, %rax
jae 0xe0af
cmpb $0x0, (%rbx,%rax)
movq %r14, %rax
jne 0xe09d
movq %r14, %rdi
callq 0x72b8
testq %rax, %rax
je 0xe0f4
movb (%rbx), %cl
testb %cl, %cl
sete %dl
cmpq $0x1, %r14
sete %sil
orb %dl, %sil
jne 0xe0ee
decq %r14
xorl %esi, %esi
movb %cl, (%rax,%rsi)
leaq 0x1(%rsi), %rdx
cmpq %r14, %rdx
jae 0xe0f0
movb 0x1(%rbx,%rsi), %cl
movq %rdx, %rsi
testb %cl, %cl
jne 0xe0d5
jmp 0xe0f0
xorl %edx, %edx
movb $0x0, (%rax,%rdx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8pbrk
void *utf8pbrk(const void *str, const void *accept)
{
    const char *s = (const char *)str;

    while ('\0' != *s) {
        const char *a = (const char *)accept;
        size_t offset = 0;

        while ('\0' != *a) {
            // checking that if *a is the start of a utf8 codepoint
            // (it is not 0b10xxxxxx) and we have successfully matched
            // a previous character (0 < offset) - we found a match
            if ((0x80 != (0xc0 & *a)) && (0 < offset)) {
                return (void *)s;
            } else {
                if (*a == s[offset]) {
                    // part of a utf8 codepoint matched, so move our checking
                    // onwards to the next byte
                    offset++;
                    a++;
                } else {
                    // r could be in the middle of an unmatching utf8 code point,
                    // so we need to march it on to the next character beginning,

                    do {
                        a++;
                    } while (0x80 == (0xc0 & *a));

                    // reset offset too as we found a mismatch
                    offset = 0;
                }
            }
        }

        // we found a match on the last utf8 codepoint
        if (0 < offset) {
            return (void *)s;
        }

        // the current utf8 codepoint in src did not match accept, but src
        // could have been partway through a utf8 codepoint, so we need to
        // march it onto the next utf8 codepoint starting byte
        do {
            s++;
        } while ((0x80 == (0xc0 & *s)));
    }

    return utf8_null;
}

// Assembly:
cmpb $0x0, (%rdi)
je 0xe282
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movb (%rsi), %cl
testb %cl, %cl
je 0xe269
movq %rsi, %rdx
xorl %r8d, %r8d
movl %ecx, %edi
cmpb (%rax,%r8), %dil
jne 0xe22d
incq %r8
movb 0x1(%rdx), %dil
testb %dil, %dil
je 0xe264
incq %rdx
jmp 0xe248
movb 0x1(%rdx), %dil
incq %rdx
movl %edi, %r8d
andb $-0x40, %r8b
negb %r8b
jo 0xe22d
testb %dil, %dil
je 0xe269
xorl %r8d, %r8d
movl %edi, %r9d
andb $-0x40, %r9b
negb %r9b
setno %r9b
testq %r8, %r8
setne %r10b
testb %r10b, %r9b
je 0xe216
jmp 0xe280
testq %r8, %r8
jne 0xe280
movb 0x1(%rax), %dl
incq %rax
movl %edx, %edi
andb $-0x40, %dil
negb %dil
jo 0xe269
testb %dl, %dl
jne 0xe20a
xorl %eax, %eax
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/neosploit[P]compiler/libfort/lib/fort.c
// Function: utf8spn
size_t utf8spn(const void *src, const void *accept)
{
    const char *s = (const char *)src;
    size_t chars = 0;

    while ('\0' != *s) {
        const char *a = (const char *)accept;
        size_t offset = 0;

        while ('\0' != *a) {
            // checking that if *r is the start of a utf8 codepoint
            // (it is not 0b10xxxxxx) and we have successfully matched
            // a previous character (0 < offset) - we found a match
            if ((0x80 != (0xc0 & *a)) && (0 < offset)) {
                // found a match, so increment the number of utf8 codepoints
                // that have matched and stop checking whether any other utf8
                // codepoints in a match
                chars++;
                s += offset;
                break;
            } else {
                if (*a == s[offset]) {
                    offset++;
                    a++;
                } else {
                    // a could be in the middle of an unmatching utf8 codepoint,
                    // so we need to march it on to the next character beginning,
                    do {
                        a++;
                    } while (0x80 == (0xc0 & *a));

                    // reset offset too as we found a mismatch
                    offset = 0;
                }
            }
        }

        // if a got to its terminating null byte, then we didn't find a match.
        // Return the current number of matched utf8 codepoints
        if ('\0' == *a) {
            return chars;
        }
    }

    return chars;
}

// Assembly:
cmpb $0x0, (%rdi)
je 0xe2f8
pushq %rbp
movq %rsp, %rbp
movb (%rsi), %cl
xorl %eax, %eax
testb %cl, %cl
je 0xe2fb
movl %ecx, %r8d
xorl %r9d, %r9d
movq %rsi, %rdx
movl %r8d, %r10d
andb $-0x40, %r10b
negb %r10b
setno %r10b
testq %r9, %r9
setne %r11b
testb %r11b, %r10b
jne 0xe2e8
cmpb (%rdi,%r9), %r8b
jne 0xe2cb
incq %r9
movb 0x1(%rdx), %r8b
incq %rdx
jmp 0xe2e1
movb 0x1(%rdx), %r8b
incq %rdx
movl %r8d, %r9d
andb $-0x40, %r9b
negb %r9b
jo 0xe2cb
xorl %r9d, %r9d
testb %r8b, %r8b
jne 0xe29f
jmp 0xe2fd
incq %rax
cmpb $0x0, (%rdi,%r9)
leaq (%rdi,%r9), %rdi
jne 0xe292
jmp 0xe2fd
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xe3b6
leaq -0x30(%rbp), %r15
leaq -0x2c(%rbp), %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd354
movq %rax, %r13
movq -0x38(%rbp), %rdi
movq %r12, %rsi
callq 0xd354
movq %rax, %r14
movl -0x30(%rbp), %edi
testl %edi, %edi
setne %cl
movl -0x2c(%rbp), %eax
testl %eax, %eax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
movq %r13, -0x40(%rbp)
jne 0xe3a4
callq 0xd401
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %edi
callq 0xd401
movl %eax, -0x2c(%rbp)
movl -0x30(%rbp), %edi
cmpl %eax, %edi
jne 0xe3a4
movq %r13, %rdi
movq %r15, %rsi
callq 0xd354
movq %rax, %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0xd354
movq %rax, %r14
movl -0x30(%rbp), %edi
movl -0x2c(%rbp), %eax
testl %edi, %edi
je 0xe3a4
testl %eax, %eax
jne 0xe360
testl %eax, %eax
je 0xe3b6
movq -0x40(%rbp), %rbx
testl %edi, %edi
jne 0xe328
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_O3/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 0xe4e4
testq %rdx, %rdx
je 0xe54c
movb %sil, (%rax)
incq %rax
jmp 0xe54e
cmpl $0x7ff, %esi            # imm = 0x7FF
ja 0xe50e
cmpq $0x2, %rdx
jb 0xe54c
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 0xe54e
cmpl $0xffff, %esi           # imm = 0xFFFF
ja 0xe546
cmpq $0x3, %rdx
jb 0xe54c
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 0xe54e
cmpq $0x4, %rdx
jae 0xe550
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 0xe54e
// File: /workspace/github_c_makefile_star2_O3/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, %r15
leaq -0x24(%rbp), %r14
movq %r14, %rsi
callq 0xd354
movl (%r14), %edi
testl %edi, %edi
je 0xeab0
movq %rax, %rbx
callq 0xd401
movl %eax, %r12d
movl %eax, %edi
callq 0xdfaa
cmpl -0x24(%rbp), %r12d
je 0xea98
movq %r15, %rdi
movl %r12d, %esi
movq %rax, %rdx
callq 0xe4cb
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd354
movq %rbx, %r15
movl -0x24(%rbp), %edi
movq %rax, %rbx
testl %edi, %edi
jne 0xea75
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
movl $0x1, %edi
movl $0x30, %esi
callq *0x116ec(%rip)          # 0x20230
testq %rax, %rax
je 0xec2a
movq %rax, %rbx
movl $0x20, %edi
callq *0x1186d(%rip)          # 0x203c8
testq %rax, %rax
je 0xebff
movq %rax, %r14
movl $0x50, %edi
callq *0x11856(%rip)          # 0x203c8
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0xebf6
movq $0x0, (%r14)
movq $0xa, 0x10(%r14)
movq $0x8, 0x18(%r14)
movq %r14, (%rbx)
movl $0x20, %edi
callq *0x11828(%rip)          # 0x203c8
testq %rax, %rax
je 0xec11
movq %rax, %r14
movl $0x50, %edi
callq *0x11815(%rip)          # 0x203c8
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0xec08
movq $0x0, (%r14)
movq $0xa, 0x10(%r14)
movq $0x8, 0x18(%r14)
movq %r14, 0x28(%rbx)
callq 0xec85
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0xec34
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x20(%rbx)
jmp 0xec2c
movq %r14, %rdi
callq *0x11639(%rip)          # 0x20238
movq $0x0, (%rbx)
jmp 0xec21
movq %r14, %rdi
callq *0x11627(%rip)          # 0x20238
movq $0x0, 0x28(%rbx)
movq (%rbx), %rdi
callq 0xec3f
movq %rbx, %rdi
callq *0x1160e(%rip)          # 0x20238
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq 0x28(%rbx), %rdi
callq 0xec3f
jmp 0xec19
// File: /workspace/github_c_makefile_star2_O3/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
movl $0x180, %edi            # imm = 0x180
movl $0x1, %esi
callq *0x11595(%rip)          # 0x20230
testq %rax, %rax
je 0xeced
movq %rax, %rbx
leaq 0x1159e(%rip), %rsi     # 0x20248
movl $0x180, %edx            # imm = 0x180
movq %rax, %rdi
callq 0x71e0
callq 0x1241c
movq %rax, 0x160(%rbx)
testq %rax, %rax
je 0xece4
movl 0x12eaa(%rip), %eax     # 0x21b78
movl %eax, 0x178(%rbx)
movups 0x12e8d(%rip), %xmm0    # 0x21b68
movups %xmm0, 0x168(%rbx)
jmp 0xecef
movq %rbx, %rdi
callq *0x1154b(%rip)          # 0x20238
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xedef
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xed4a
movq (%rdi), %r14
testq %r14, %r14
je 0xed45
xorl %r15d, %r15d
movq (%rbx), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rax
imulq %r15, %rax
movq (%rcx,%rax), %rdi
callq 0xedfa
incq %r15
cmpq %r15, %r14
jne 0xed22
movq (%rbx), %rdi
callq 0xec3f
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0xed89
movq (%rdi), %r14
testq %r14, %r14
je 0xed84
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rax
imulq %r15, %rax
movq (%rcx,%rax), %rdi
callq *0x114c0(%rip)          # 0x20238
incq %r15
cmpq %r15, %r14
jne 0xed5e
movq 0x28(%rbx), %rdi
callq 0xec3f
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0xedba
movq 0x160(%r14), %r15
testq %r15, %r15
je 0xedb1
movq 0x8(%r15), %rdi
callq *0x11490(%rip)          # 0x20238
movq %r15, %rdi
callq *0x11487(%rip)          # 0x20238
movq %r14, %rdi
callq *0x1147e(%rip)          # 0x20238
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0xeddc
movq (%r14), %rdi
callq *0x1146c(%rip)          # 0x20238
movq $0x0, (%r14)
movq %r14, %rdi
callq *0x1145c(%rip)          # 0x20238
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *0x11449(%rip)          # 0x20238
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xee2c
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xee1d
callq 0x12ba0
movq (%rbx), %rdi
callq 0xec3f
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *0x1140c(%rip)          # 0x20238
addq $0x8, %rsp
popq %rbx
popq %rbp
retq