LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_new_bit_eq
struct cx_predicate *cx_predicate_new_bit_eq(size_t column, bool value)
{
    struct cx_predicate *predicate = cx_predicate_new();
    if (!predicate)
        return NULL;
    predicate->column = column;
    predicate->type = CX_PREDICATE_EQ;
    predicate->column_type = CX_COLUMN_BIT;
    predicate->value.bit = value;
    return predicate;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
callq 0xb490
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x90de
movq $0x0, -0x8(%rbp)
jmp 0x9114
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x2, (%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0x4(%rax)
movb -0x11(%rbp), %cl
movq -0x20(%rbp), %rax
andb $0x1, %cl
movb %cl, 0x10(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_new_i32
static struct cx_predicate *cx_predicate_new_i32(size_t column, int32_t value,
                                                 enum cx_predicate_type type)
{
    struct cx_predicate *predicate = cx_predicate_new();
    if (!predicate)
        return NULL;
    predicate->column = column;
    predicate->type = type;
    predicate->column_type = CX_COLUMN_I32;
    predicate->value.i32 = value;
    return predicate;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
callq 0xb490
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x917c
movq $0x0, -0x8(%rbp)
jmp 0x91ae
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x18(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rax
movl $0x1, 0x4(%rax)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_new_i64
static struct cx_predicate *cx_predicate_new_i64(size_t column, int64_t value,
                                                 enum cx_predicate_type type)
{
    struct cx_predicate *predicate = cx_predicate_new();
    if (!predicate)
        return NULL;
    predicate->column = column;
    predicate->type = type;
    predicate->column_type = CX_COLUMN_I64;
    predicate->value.i64 = value;
    return predicate;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
callq 0xb490
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x927d
movq $0x0, -0x8(%rbp)
jmp 0x92b1
movq -0x10(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x1c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movl $0x2, 0x4(%rax)
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_new_flt
static struct cx_predicate *cx_predicate_new_flt(size_t column, float value,
                                                 enum cx_predicate_type type)
{
    struct cx_predicate *predicate = cx_predicate_new();
    if (!predicate)
        return NULL;
    predicate->column = column;
    predicate->type = type;
    predicate->column_type = CX_COLUMN_FLT;
    predicate->value.flt = value;
    return predicate;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movss %xmm0, -0x14(%rbp)
movl %esi, -0x18(%rbp)
callq 0xb490
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x937e
movq $0x0, -0x8(%rbp)
jmp 0x93b4
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x18(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rax
movl $0x3, 0x4(%rax)
movss -0x14(%rbp), %xmm0
movq -0x20(%rbp), %rax
movss %xmm0, 0x10(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_new_dbl
static struct cx_predicate *cx_predicate_new_dbl(size_t column, double value,
                                                 enum cx_predicate_type type)
{
    struct cx_predicate *predicate = cx_predicate_new();
    if (!predicate)
        return NULL;
    predicate->column = column;
    predicate->type = type;
    predicate->column_type = CX_COLUMN_DBL;
    predicate->value.dbl = value;
    return predicate;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movl %esi, -0x1c(%rbp)
callq 0xb490
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x947e
movq $0x0, -0x8(%rbp)
jmp 0x94b4
movq -0x10(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x1c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movl $0x4, 0x4(%rax)
movsd -0x18(%rbp), %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x10(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_new_str
static struct cx_predicate *cx_predicate_new_str(size_t column,
                                                 const char *value,
                                                 enum cx_predicate_type type,
                                                 bool case_sensitive)
{
    struct cx_predicate *predicate = cx_predicate_new();
    if (!predicate)
        return NULL;
    predicate->column = column;
    predicate->type = type;
    predicate->column_type = CX_COLUMN_STR;
    size_t length = strlen(value);
#if CX_SSE42
    predicate->string = calloc(1, length + 1 + 16);
#else
    predicate->string = malloc(length + 1);
#endif
    if (!predicate->string)
        goto error;
    memcpy(predicate->string, value, length + 1);
    predicate->value.str.ptr = predicate->string;
    predicate->value.str.len = length;
    predicate->case_sensitive = case_sensitive;
    return predicate;
error:
    free(predicate);
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %cl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
andb $0x1, %al
movb %al, -0x1d(%rbp)
callq 0xb490
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x9597
movq $0x0, -0x8(%rbp)
jmp 0x9646
movq -0x10(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x1c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movl $0x5, 0x4(%rax)
movq -0x18(%rbp), %rdi
callq 0x5290
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
addq $0x1, %rdi
callq 0x5630
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x28(%rbp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x95e9
jmp 0x9635
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
addq $0x1, %rdx
callq 0x5570
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x18(%rax)
movb -0x1d(%rbp), %cl
movq -0x28(%rbp), %rax
andb $0x1, %cl
movb %cl, 0x3c(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x9646
movq -0x28(%rbp), %rdi
callq 0x50a0
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_new_str_contains
struct cx_predicate *cx_predicate_new_str_contains(
    size_t column, const char *value, bool case_sensitive,
    enum cx_str_location location)
{
    struct cx_predicate *predicate = cx_predicate_new_str(
        column, value, CX_PREDICATE_CONTAINS, case_sensitive);
    if (!predicate)
        return NULL;
    predicate->location = location;
    return predicate;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
movl %ecx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movb -0x19(%rbp), %al
movl $0x5, %edx
andb $0x1, %al
movzbl %al, %ecx
callq 0x9560
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x9719
movq $0x0, -0x8(%rbp)
jmp 0x972b
movl -0x20(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x38(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_new_custom
struct cx_predicate *cx_predicate_new_custom(size_t column,
                                             enum cx_column_type type,
                                             cx_index_match_rows_t match_rows,
                                             cx_index_match_index_t match_index,
                                             int cost, void *data)
{
    struct cx_predicate *predicate = cx_predicate_new();
    if (!predicate)
        return NULL;
    predicate->column = column;
    predicate->type = CX_PREDICATE_CUSTOM;
    predicate->column_type = type;
    predicate->custom.match_rows = match_rows;
    predicate->custom.match_index = match_index;
    predicate->custom.data = data;
    predicate->custom.cost = cost;
    return predicate;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq %r9, -0x38(%rbp)
callq 0xb490
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x9779
movq $0x0, -0x8(%rbp)
jmp 0x97cf
movq -0x10(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x40(%rbp), %rax
movl $0x8, (%rax)
movl -0x14(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x28(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x58(%rax)
movl -0x2c(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x50(%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_new_operator
static struct cx_predicate *cx_predicate_new_operator(
    enum cx_predicate_type type, size_t count, va_list operands)
{
    if (!count)
        return NULL;
    struct cx_predicate *predicate = cx_predicate_new();
    if (!predicate)
        return NULL;
    predicate->operand_count = count;
    predicate->type = type;
    predicate->operands = calloc(count, sizeof(struct cx_predicate *));
    if (!predicate->operands)
        goto error;
    for (size_t i = 0; i < count; i++) {
        predicate->operands[i] = va_arg(operands, struct cx_predicate *);
        if (!predicate->operands[i])
            goto error;
    }
    return predicate;
error:
    cx_predicate_free(predicate);
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x98d7
movq $0x0, -0x8(%rbp)
jmp 0x99e4
callq 0xb490
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x98f4
movq $0x0, -0x8(%rbp)
jmp 0x99e4
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x20(%rax)
movl -0xc(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rdi
movl $0x8, %esi
callq 0x54d0
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x28(%rbp), %rax
cmpq $0x0, 0x28(%rax)
jne 0x9932
jmp 0x99d3
movq $0x0, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x99c9
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movl (%rax), %eax
movl %eax, -0x34(%rbp)
cmpl $0x28, %eax
ja 0x9973
movq -0x40(%rbp), %rcx
movl -0x34(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x48(%rbp)
jmp 0x998a
movq -0x40(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq (%rax), %rdx
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x30(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x30(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x99b6
jmp 0x99d3
jmp 0x99b8
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x993a
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x99e4
movq -0x28(%rbp), %rdi
callq 0x5440
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_new_operator_array
static struct cx_predicate *cx_predicate_new_operator_array(
    enum cx_predicate_type type, size_t count, struct cx_predicate **operands)
{
    if (!count)
        return NULL;
    struct cx_predicate *predicate = cx_predicate_new();
    if (!predicate)
        return NULL;
    predicate->operand_count = count;
    predicate->type = type;
    predicate->operands = calloc(count, sizeof(struct cx_predicate *));
    if (!predicate->operands)
        goto error;
    for (size_t i = 0; i < count; i++) {
        predicate->operands[i] = operands[i];
        if (!predicate->operands[i])
            goto error;
    }
    return predicate;
error:
    cx_predicate_free(predicate);
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x9a47
movq $0x0, -0x8(%rbp)
jmp 0x9b0d
callq 0xb490
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x9a64
movq $0x0, -0x8(%rbp)
jmp 0x9b0d
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x20(%rax)
movl -0xc(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rdi
movl $0x8, %esi
callq 0x54d0
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x28(%rbp), %rax
cmpq $0x0, 0x28(%rax)
jne 0x9a9f
jmp 0x9afc
movq $0x0, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x9af2
movq -0x20(%rbp), %rax
movq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x30(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x30(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x9ae2
jmp 0x9afc
jmp 0x9ae4
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x9aa7
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x9b0d
movq -0x28(%rbp), %rdi
callq 0x5440
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_valid
bool cx_predicate_valid(const struct cx_predicate *predicate,
                        const struct cx_row_group *row_group)
{
    if (predicate->column >= cx_row_group_column_count(row_group))
        return false;

    enum cx_column_type column_type =
        cx_row_group_column_type(row_group, predicate->column);
    if (!cx_predicate_is_operator(predicate) &&
        predicate->type != CX_PREDICATE_TRUE &&
        predicate->type != CX_PREDICATE_NULL &&
        predicate->column_type != column_type)
        return false;

    switch (predicate->type) {
        case CX_PREDICATE_TRUE:
        case CX_PREDICATE_NULL:
        case CX_PREDICATE_EQ:
        case CX_PREDICATE_CUSTOM:
            break;
        case CX_PREDICATE_LT:
        case CX_PREDICATE_GT:
            return column_type != CX_COLUMN_BIT;
        case CX_PREDICATE_CONTAINS:
            return column_type == CX_COLUMN_STR;
        case CX_PREDICATE_AND:
        case CX_PREDICATE_OR:
            for (size_t i = 0; i < predicate->operand_count; i++)
                if (!cx_predicate_valid(predicate->operands[i], row_group))
                    return false;
            break;
    }

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
callq 0x54c0
movq %rax, %rcx
movq -0x30(%rbp), %rax
cmpq %rcx, %rax
jb 0x9c9a
movb $0x0, -0x1(%rbp)
jmp 0x9d73
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x5970
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x9d80
testb $0x1, %al
jne 0x9ce2
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x9ce2
movq -0x10(%rbp), %rax
cmpl $0x1, (%rax)
je 0x9ce2
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
cmpl -0x1c(%rbp), %eax
je 0x9ce2
movb $0x0, -0x1(%rbp)
jmp 0x9d73
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x38(%rbp)
subq $0x8, %rax
ja 0x9d6f
movq -0x38(%rbp), %rax
leaq 0x6c8f(%rip), %rcx      # 0x1098c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x9d6f
cmpl $0x0, -0x1c(%rbp)
setne %al
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x9d73
cmpl $0x5, -0x1c(%rbp)
sete %al
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x9d73
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x20(%rcx), %rax
jae 0x9d6d
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x18(%rbp), %rsi
callq 0x5120
testb $0x1, %al
jne 0x9d5d
movb $0x0, -0x1(%rbp)
jmp 0x9d73
jmp 0x9d5f
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x9d2c
jmp 0x9d6f
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x40, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_mask_cap
static inline uint64_t cx_mask_cap(uint64_t mask, size_t count)
{
    assert(count <= 64);
    if (count < 64)
        mask &= ((uint64_t)1 << count) - 1;
    return mask;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x40, -0x10(%rbp)
ja 0xa139
jmp 0xa158
leaq 0x6a30(%rip), %rdi      # 0x10b70
leaq 0x6995(%rip), %rsi      # 0x10adc
movl $0x1a4, %edx            # imm = 0x1A4
leaq 0x6a29(%rip), %rcx      # 0x10b7c
callq 0x53a0
cmpq $0x40, -0x10(%rbp)
jae 0xa177
movq -0x10(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
subq $0x1, %rax
andq -0x8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_index_match_index_lt
static enum cx_index_match cx_index_match_index_lt(
    const struct cx_predicate *predicate, enum cx_column_type type,
    const struct cx_index *index)
{
    enum cx_index_match result = CX_INDEX_MATCH_UNKNOWN;
    switch (type) {
        case CX_COLUMN_BIT:
            break;
        case CX_COLUMN_I32:
            assert(predicate->column_type == CX_COLUMN_I32);
            result = cx_index_match_i32_lt(index, predicate->value.i32);
            break;
        case CX_COLUMN_I64:
            assert(predicate->column_type == CX_COLUMN_I64);
            result = cx_index_match_i64_lt(index, predicate->value.i64);
            break;
        case CX_COLUMN_FLT:
            assert(predicate->column_type == CX_COLUMN_FLT);
            result = cx_index_match_flt_lt(index, predicate->value.flt);
            break;
        case CX_COLUMN_DBL:
            assert(predicate->column_type == CX_COLUMN_DBL);
            result = cx_index_match_dbl_lt(index, predicate->value.dbl);
            break;
        case CX_COLUMN_STR:
            break;
    }
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0x28(%rbp)
subq $0x5, %rax
ja 0xb211
movq -0x28(%rbp), %rax
leaq 0x597a(%rip), %rcx      # 0x10a70
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0xb211
movq -0x8(%rbp), %rax
cmpl $0x1, 0x4(%rax)
jne 0xb110
jmp 0xb12f
leaq 0x5b37(%rip), %rdi      # 0x10c4e
leaq 0x59be(%rip), %rsi      # 0x10adc
movl $0x252, %edx            # imm = 0x252
leaq 0x5df0(%rip), %rcx      # 0x10f1a
callq 0x53a0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x10(%rax), %esi
callq 0x5860
movl %eax, -0x1c(%rbp)
jmp 0xb211
movq -0x8(%rbp), %rax
cmpl $0x2, 0x4(%rax)
jne 0xb153
jmp 0xb172
leaq 0x5b1c(%rip), %rdi      # 0x10c76
leaq 0x597b(%rip), %rsi      # 0x10adc
movl $0x256, %edx            # imm = 0x256
leaq 0x5dad(%rip), %rcx      # 0x10f1a
callq 0x53a0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x5920
movl %eax, -0x1c(%rbp)
jmp 0xb211
movq -0x8(%rbp), %rax
cmpl $0x3, 0x4(%rax)
jne 0xb197
jmp 0xb1b6
leaq 0x5b00(%rip), %rdi      # 0x10c9e
leaq 0x5937(%rip), %rsi      # 0x10adc
movl $0x25a, %edx            # imm = 0x25A
leaq 0x5d69(%rip), %rcx      # 0x10f1a
callq 0x53a0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movss 0x10(%rax), %xmm0
callq 0x5a60
movl %eax, -0x1c(%rbp)
jmp 0xb211
movq -0x8(%rbp), %rax
cmpl $0x4, 0x4(%rax)
jne 0xb1d9
jmp 0xb1f8
leaq 0x5ae6(%rip), %rdi      # 0x10cc6
leaq 0x58f5(%rip), %rsi      # 0x10adc
movl $0x25e, %edx            # imm = 0x25E
leaq 0x5d27(%rip), %rcx      # 0x10f1a
callq 0x53a0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movsd 0x10(%rax), %xmm0
callq 0x5a10
movl %eax, -0x1c(%rbp)
jmp 0xb211
jmp 0xb211
movl -0x1c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_index_match_index_gt
static enum cx_index_match cx_index_match_index_gt(
    const struct cx_predicate *predicate, enum cx_column_type type,
    const struct cx_index *index)
{
    enum cx_index_match result = CX_INDEX_MATCH_UNKNOWN;
    switch (type) {
        case CX_COLUMN_BIT:
            break;
        case CX_COLUMN_I32:
            assert(predicate->column_type == CX_COLUMN_I32);
            result = cx_index_match_i32_gt(index, predicate->value.i32);
            break;
        case CX_COLUMN_I64:
            assert(predicate->column_type == CX_COLUMN_I64);
            result = cx_index_match_i64_gt(index, predicate->value.i64);
            break;
        case CX_COLUMN_FLT:
            assert(predicate->column_type == CX_COLUMN_FLT);
            result = cx_index_match_flt_gt(index, predicate->value.flt);
            break;
        case CX_COLUMN_DBL:
            assert(predicate->column_type == CX_COLUMN_DBL);
            result = cx_index_match_dbl_gt(index, predicate->value.dbl);
            break;
        case CX_COLUMN_STR:
            break;
    }
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0x28(%rbp)
subq $0x5, %rax
ja 0xb371
movq -0x28(%rbp), %rax
leaq 0x5832(%rip), %rcx      # 0x10a88
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0xb371
movq -0x8(%rbp), %rax
cmpl $0x1, 0x4(%rax)
jne 0xb270
jmp 0xb28f
leaq 0x59d7(%rip), %rdi      # 0x10c4e
leaq 0x585e(%rip), %rsi      # 0x10adc
movl $0x2a9, %edx            # imm = 0x2A9
leaq 0x5d07(%rip), %rcx      # 0x10f91
callq 0x53a0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x10(%rax), %esi
callq 0x5420
movl %eax, -0x1c(%rbp)
jmp 0xb371
movq -0x8(%rbp), %rax
cmpl $0x2, 0x4(%rax)
jne 0xb2b3
jmp 0xb2d2
leaq 0x59bc(%rip), %rdi      # 0x10c76
leaq 0x581b(%rip), %rsi      # 0x10adc
movl $0x2ad, %edx            # imm = 0x2AD
leaq 0x5cc4(%rip), %rcx      # 0x10f91
callq 0x53a0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x51d0
movl %eax, -0x1c(%rbp)
jmp 0xb371
movq -0x8(%rbp), %rax
cmpl $0x3, 0x4(%rax)
jne 0xb2f7
jmp 0xb316
leaq 0x59a0(%rip), %rdi      # 0x10c9e
leaq 0x57d7(%rip), %rsi      # 0x10adc
movl $0x2b1, %edx            # imm = 0x2B1
leaq 0x5c80(%rip), %rcx      # 0x10f91
callq 0x53a0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movss 0x10(%rax), %xmm0
callq 0x5260
movl %eax, -0x1c(%rbp)
jmp 0xb371
movq -0x8(%rbp), %rax
cmpl $0x4, 0x4(%rax)
jne 0xb339
jmp 0xb358
leaq 0x5986(%rip), %rdi      # 0x10cc6
leaq 0x5795(%rip), %rsi      # 0x10adc
movl $0x2b5, %edx            # imm = 0x2B5
leaq 0x5c3e(%rip), %rcx      # 0x10f91
callq 0x53a0
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movsd 0x10(%rax), %xmm0
callq 0x5490
movl %eax, -0x1c(%rbp)
jmp 0xb371
jmp 0xb371
movl -0x1c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_optimize
void cx_predicate_optimize(struct cx_predicate *predicate,
                           const struct cx_row_group *row_group)
{
#ifdef __APPLE__
    qsort_r(predicate->operands, predicate->operand_count,
            sizeof(struct cx_predicate *), (void *)row_group, cx_predicate_cmp);
#else
    qsort_r(predicate->operands, predicate->operand_count,
            sizeof(struct cx_predicate *), cx_predicate_cmp, (void *)row_group);
#endif
    if (cx_predicate_is_operator(predicate)) {
        for (size_t i = 0; i < predicate->operand_count; i++)
            cx_predicate_optimize(predicate->operands[i], row_group);
        return;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rsi
movq -0x10(%rbp), %r8
movl $0x8, %edx
leaq 0x60(%rip), %rcx        # 0xb410
callq 0x55d0
movq -0x8(%rbp), %rdi
callq 0x9d80
testb $0x1, %al
jne 0xb3c4
jmp 0xb403
movq $0x0, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x20(%rcx), %rax
jae 0xb401
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x10(%rbp), %rsi
callq 0x5aa0
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0xb3cc
jmp 0xb403
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_cost
static int cx_predicate_cost(const struct cx_predicate *predicate,
                             const struct cx_row_group *row_group)
{
    // in future, this function should look at more than just the
    // column type to determine the cost of evaluating the predicate.
    // for example, it could check the size of each column, whether
    // it's compressed and/or encoded, and the compression ratio
    int cost = 0;
    switch (predicate->type) {
        case CX_PREDICATE_TRUE:
            break;
        case CX_PREDICATE_NULL:
            cost = cx_column_cost(CX_COLUMN_BIT);
            break;
        case CX_PREDICATE_EQ:
        case CX_PREDICATE_LT:
        case CX_PREDICATE_GT:
        case CX_PREDICATE_CONTAINS:
            cost = cx_column_cost(
                cx_row_group_column_type(row_group, predicate->column));
            break;
        case CX_PREDICATE_AND:
        case CX_PREDICATE_OR:
            for (size_t i = 0; i < predicate->operand_count; i++)
                cost += cx_predicate_cost(predicate->operands[i], row_group);
            break;
        case CX_PREDICATE_CUSTOM:
            if (predicate->custom.cost >= 0)
                cost = predicate->custom.cost;
            else
                cost = cx_column_cost(
                    cx_row_group_column_type(row_group, predicate->column));
            break;
    }
    return cost;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x8(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x28(%rbp)
subq $0x8, %rax
ja 0xb598
movq -0x28(%rbp), %rax
leaq 0x55ba(%rip), %rcx      # 0x10aa0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0xb598
xorl %edi, %edi
callq 0xb5b0
movl %eax, -0x14(%rbp)
jmp 0xb598
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x5970
movl %eax, %edi
callq 0xb5b0
movl %eax, -0x14(%rbp)
jmp 0xb598
movq $0x0, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x20(%rcx), %rax
jae 0xb563
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x10(%rbp), %rsi
callq 0xb4b0
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0xb528
jmp 0xb598
movq -0x8(%rbp), %rax
cmpl $0x0, 0x50(%rax)
jl 0xb57b
movq -0x8(%rbp), %rax
movl 0x50(%rax), %eax
movl %eax, -0x14(%rbp)
jmp 0xb596
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x5970
movl %eax, %edi
callq 0xb5b0
movl %eax, -0x14(%rbp)
jmp 0xb598
movl -0x14(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/predicate.c
// Function: cx_column_cost
static int cx_column_cost(enum cx_column_type type)
{
    int cost = 0;
    switch (type) {
        case CX_COLUMN_BIT:
            cost = 1;
            break;
        case CX_COLUMN_I32:
        case CX_COLUMN_FLT:
            cost = 8;
            break;
        case CX_COLUMN_I64:
        case CX_COLUMN_DBL:
            cost = 16;
            break;
        case CX_COLUMN_STR:
            cost = 128;
            break;
    }
    return cost;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl $0x0, -0x8(%rbp)
movl -0x4(%rbp), %eax
movq %rax, -0x10(%rbp)
subq $0x5, %rax
ja 0xb601
movq -0x10(%rbp), %rax
leaq 0x54ee(%rip), %rcx      # 0x10ac4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, -0x8(%rbp)
jmp 0xb601
movl $0x8, -0x8(%rbp)
jmp 0xb601
movl $0x10, -0x8(%rbp)
jmp 0xb601
movl $0x80, -0x8(%rbp)
movl -0x8(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_reader_new_impl
static struct cx_reader *cx_reader_new_impl(const char *path,
                                            struct cx_predicate *predicate,
                                            bool match_all_rows)
{
    if (!predicate)
        return NULL;
    struct cx_reader *reader = calloc(1, sizeof(*reader));
    if (!reader)
        return NULL;
    reader->reader = cx_row_group_reader_new(path);
    if (!reader->reader)
        goto error;
    reader->predicate = predicate;
    reader->match_all_rows = match_all_rows;
    reader->row_group_count =
        cx_row_group_reader_row_group_count(reader->reader);
    // validate and optimize the predicate
    if (reader->row_group_count && !match_all_rows) {
        struct cx_row_group *row_group =
            cx_row_group_reader_get(reader->reader, 0);
        if (!row_group)
            goto error;
        if (!cx_predicate_valid(predicate, row_group)) {
            cx_row_group_free(row_group);
            goto error;
        }
        cx_predicate_optimize(predicate, row_group);
        cx_row_group_free(row_group);
    }
    return reader;
error:
    free(reader);
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0xb66b
movq $0x0, -0x8(%rbp)
jmp 0xb75f
movl $0x1, %edi
movl $0x38, %esi
callq 0x54d0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0xb692
movq $0x0, -0x8(%rbp)
jmp 0xb75f
movq -0x10(%rbp), %rdi
callq 0x5680
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
cmpq $0x0, (%rax)
jne 0xb6b4
jmp 0xb74e
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movb -0x19(%rbp), %cl
movq -0x28(%rbp), %rax
andb $0x1, %cl
movb %cl, 0x30(%rax)
movq -0x28(%rbp), %rax
movq (%rax), %rdi
callq 0x5610
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x28(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0xb744
testb $0x1, -0x19(%rbp)
jne 0xb744
movq -0x28(%rbp), %rax
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x5ad0
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0xb712
jmp 0xb74e
movq -0x18(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x5120
testb $0x1, %al
jne 0xb72e
movq -0x30(%rbp), %rdi
callq 0x5900
jmp 0xb74e
movq -0x18(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x5aa0
movq -0x30(%rbp), %rdi
callq 0x5900
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xb75f
movq -0x28(%rbp), %rdi
callq 0x50a0
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_reader_free
void cx_reader_free(struct cx_reader *reader)
{
    if (reader->row_cursor)
        cx_row_cursor_free(reader->row_cursor);
    if (reader->row_group)
        cx_row_group_free(reader->row_group);
    cx_predicate_free(reader->predicate);
    cx_row_group_reader_free(reader->reader);
    free(reader);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0xb7c4
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x5720
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0xb7dc
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5900
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x5440
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x5a30
movq -0x8(%rbp), %rdi
callq 0x50a0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_row_group_reader_free
void cx_row_group_reader_free(struct cx_row_group_reader *reader)
{
    if (reader->mmap_ptr)
        munmap(reader->mmap_ptr, reader->file_size);
    fclose(reader->file);
    cx_column_free(reader->strings);
    free(reader);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0xb83c
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x5790
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x5220
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x5990
movq -0x8(%rbp), %rdi
callq 0x50a0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_row_group_reader_metadata
bool cx_row_group_reader_metadata(const struct cx_row_group_reader *reader,
                                  const char **metadata)
{
    if (reader->metadata < 0) {
        *metadata = NULL;
        return true;
    }
    const char *string = cx_row_group_reader_string(reader, reader->metadata);
    if (!string)
        return false;
    *metadata = string;
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x48(%rax)
jge 0xb8cb
movq -0x18(%rbp), %rax
movq $0x0, (%rax)
movb $0x1, -0x1(%rbp)
jmp 0xb8fc
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movslq 0x48(%rax), %rsi
callq 0x52b0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0xb8ed
movb $0x0, -0x1(%rbp)
jmp 0xb8fc
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_reader_rewind
void cx_reader_rewind(struct cx_reader *reader)
{
    if (reader->row_cursor)
        cx_row_cursor_free(reader->row_cursor);
    if (reader->row_group)
        cx_row_group_free(reader->row_group);
    reader->row_cursor = NULL;
    reader->row_group = NULL;
    reader->position = 0;
    reader->error = false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0xb934
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x5720
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0xb94c
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5900
movq -0x8(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x31(%rax)
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_reader_next
bool cx_reader_next(struct cx_reader *reader)
{
    if (reader->error)
        return false;
    for (; cx_reader_valid(reader); cx_reader_advance(reader)) {
        if (!reader->row_cursor)
            if (!cx_reader_load_cursor(reader))
                goto error;
        if (cx_row_cursor_next(reader->row_cursor))
            return true;
        if (cx_row_cursor_error(reader->row_cursor))
            goto error;
    }
    return false;
error:
    reader->error = true;
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
testb $0x1, 0x31(%rax)
je 0xb99c
movb $0x0, -0x1(%rbp)
jmp 0xba16
jmp 0xb99e
movq -0x10(%rbp), %rdi
callq 0xba30
testb $0x1, %al
jne 0xb9ad
jmp 0xba04
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0xb9c9
movq -0x10(%rbp), %rdi
callq 0xba50
testb $0x1, %al
jne 0xb9c7
jmp 0xba0a
jmp 0xb9c9
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x53b0
testb $0x1, %al
jne 0xb9dc
jmp 0xb9e2
movb $0x1, -0x1(%rbp)
jmp 0xba16
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x5690
testb $0x1, %al
jne 0xb9f5
jmp 0xb9f7
jmp 0xba0a
jmp 0xb9f9
movq -0x10(%rbp), %rdi
callq 0xbaf0
jmp 0xb99e
movb $0x0, -0x1(%rbp)
jmp 0xba16
movq -0x10(%rbp), %rax
movb $0x1, 0x31(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_reader_load_cursor
static bool cx_reader_load_cursor(struct cx_reader *reader)
{
    reader->row_group =
        cx_row_group_reader_get(reader->reader, reader->position);
    if (!reader->row_group)
        goto error;
    reader->row_cursor =
        cx_row_cursor_new(reader->row_group, reader->predicate);
    if (!reader->row_cursor)
        goto error;
    return true;
error:
    if (reader->row_group)
        cx_row_group_free(reader->row_group);
    reader->row_group = NULL;
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0x5ad0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0xba88
jmp 0xbabb
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x5310
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0xbab5
jmp 0xbabb
movb $0x1, -0x1(%rbp)
jmp 0xbae3
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0xbad3
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5900
movq -0x10(%rbp), %rax
movq $0x0, 0x10(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_reader_advance
static void cx_reader_advance(struct cx_reader *reader)
{
    if (reader->row_cursor) {
        cx_row_cursor_free(reader->row_cursor);
        reader->row_cursor = NULL;
    }
    if (reader->row_group) {
        cx_row_group_free(reader->row_group);
        reader->row_group = NULL;
    }
    reader->position++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0xbb20
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x5720
movq -0x8(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0xbb44
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5900
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x28(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_reader_row_count
size_t cx_reader_row_count(struct cx_reader *reader)
{
    size_t total_row_count = cx_row_group_reader_row_count(reader->reader);
    if (reader->match_all_rows || !total_row_count)
        return total_row_count;
    cx_reader_rewind(reader);
    size_t count = 0;
    for (; cx_reader_valid(reader); cx_reader_advance(reader)) {
        if (!cx_reader_load_cursor(reader))
            goto error;
        count += cx_row_cursor_count(reader->row_cursor);
        if (cx_row_cursor_error(reader->row_cursor))
            goto error;
    }
    return count;
error:
    reader->error = true;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x5360
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
testb $0x1, 0x30(%rax)
jne 0xbbad
cmpq $0x0, -0x18(%rbp)
jne 0xbbba
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xbc3a
movq -0x10(%rbp), %rdi
callq 0x51c0
movq $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0xba30
testb $0x1, %al
jne 0xbbda
jmp 0xbc20
movq -0x10(%rbp), %rdi
callq 0xba50
testb $0x1, %al
jne 0xbbe9
jmp 0xbc2a
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x5330
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x5690
testb $0x1, %al
jne 0xbc11
jmp 0xbc13
jmp 0xbc2a
jmp 0xbc15
movq -0x10(%rbp), %rdi
callq 0xbaf0
jmp 0xbbcb
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xbc3a
movq -0x10(%rbp), %rax
movb $0x1, 0x31(%rax)
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_reader_query_thread
static void *cx_reader_query_thread(void *ptr)
{
    struct cx_reader_query_context *context = ptr;
    struct cx_row_group *row_group = NULL;
    struct cx_row_cursor *cursor = NULL;
    for (;;) {
        pthread_mutex_lock(&context->mutex);
        size_t position = context->position++;
        pthread_mutex_unlock(&context->mutex);
        if (position >= context->row_group_count)
            break;
        row_group = cx_row_group_reader_get(context->reader, position);
        if (!row_group)
            goto error;
        cursor = cx_row_cursor_new(row_group, context->predicate);
        if (!cursor)
            goto error;
        context->iter(cursor, &context->mutex, context->data);
        if (cx_row_cursor_error(cursor))
            goto error;
        cx_row_group_free(row_group);
        cx_row_cursor_free(cursor);
        row_group = NULL;
        cursor = NULL;
    }
    return NULL;
error:
    if (row_group)
        cx_row_group_free(row_group);
    if (cursor)
        cx_row_cursor_free(cursor);
    pthread_mutex_lock(&context->mutex);
    context->error = true;
    pthread_mutex_unlock(&context->mutex);
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x18(%rbp), %rdi
addq $0x38, %rdi
callq 0x5a80
movq -0x18(%rbp), %rcx
movq 0x10(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x10(%rcx)
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
addq $0x38, %rdi
callq 0x5600
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
cmpq 0x18(%rcx), %rax
jb 0xbea8
jmp 0xbf39
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x30(%rbp), %rsi
callq 0x5ad0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0xbec5
jmp 0xbf43
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x5310
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0xbee3
jmp 0xbf43
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq $0x38, %rsi
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rdx
callq *%rax
movq -0x28(%rbp), %rdi
callq 0x5690
testb $0x1, %al
jne 0xbf10
jmp 0xbf12
jmp 0xbf43
movq -0x20(%rbp), %rdi
callq 0x5900
movq -0x28(%rbp), %rdi
callq 0x5720
movq $0x0, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
jmp 0xbe64
movq $0x0, -0x8(%rbp)
jmp 0xbf8d
cmpq $0x0, -0x20(%rbp)
je 0xbf53
movq -0x20(%rbp), %rdi
callq 0x5900
cmpq $0x0, -0x28(%rbp)
je 0xbf63
movq -0x28(%rbp), %rdi
callq 0x5720
movq -0x18(%rbp), %rdi
addq $0x38, %rdi
callq 0x5a80
movq -0x18(%rbp), %rax
movb $0x1, 0x30(%rax)
movq -0x18(%rbp), %rdi
addq $0x38, %rdi
callq 0x5600
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_row_group_reader_column_name
const char *cx_row_group_reader_column_name(
    const struct cx_row_group_reader *reader, size_t column)
{
    if (column >= reader->columns.count)
        return NULL;
    return cx_row_group_reader_string(reader,
                                      reader->columns.descriptors[column].name);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x30(%rcx), %rax
jb 0xc038
movq $0x0, -0x8(%rbp)
jmp 0xc059
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
imulq $0x18, -0x18(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, %esi
callq 0x52b0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chriso[P]columnix/lib/reader.c
// Function: cx_row_group_reader_column_compression
enum cx_compression_type cx_row_group_reader_column_compression(
    const struct cx_row_group_reader *reader, size_t column, int *level)
{
    assert(column < reader->columns.count);
    const struct cx_column_descriptor *descriptor =
        &reader->columns.descriptors[column];
    if (level)
        *level = descriptor->compression_level;
    return descriptor->compression;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x30(%rcx), %rax
jae 0xc1e4
jmp 0xc203
leaq 0x4ef3(%rip), %rdi      # 0x110de
leaq 0x4e4a(%rip), %rsi      # 0x1103c
movl $0x20d, %edx            # imm = 0x20D
leaq 0x4fc5(%rip), %rcx      # 0x111c3
callq 0x53a0
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
imulq $0x18, -0x10(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0xc22b
movq -0x20(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rax
movl 0xc(%rax), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)