LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/column.c
// Function: cx_column_cursor_skip
static size_t cx_column_cursor_skip(struct cx_column_cursor *cursor,
                                    enum cx_column_type type, size_t size,
                                    size_t count)
{
    assert(cursor->column->type == type);
    size_t remaining =
        ((uintptr_t)cursor->end - (uintptr_t)cursor->position) / size;
    if (remaining < count)
        count = remaining;
    cx_column_cursor_advance(cursor, size * count);
    return count;
}

// Assembly:
pushq %rax
movq (%rdi), %rax
cmpl %esi, 0x20(%rax)
jne 0x5f65
movq %rdx, %r8
movq 0x10(%rdi), %rsi
movq 0x18(%rdi), %r9
movq %rsi, %rax
subq %r9, %rax
xorl %edx, %edx
divq %r8
cmpq %rcx, %rax
cmovbq %rax, %rcx
imulq %rcx, %r8
addq %r9, %r8
movq %r8, 0x18(%rdi)
cmpq %r8, %rsi
jb 0x5f84
movq %rcx, %rax
popq %rcx
retq
leaq 0x6223(%rip), %rdi      # 0xc18f
leaq 0x60c5(%rip), %rsi      # 0xc038
leaq 0x6232(%rip), %rcx      # 0xc1ac
movl $0x130, %edx            # imm = 0x130
callq 0x5350
leaq 0x627e(%rip), %rdi      # 0xc209
leaq 0x60a6(%rip), %rsi      # 0xc038
leaq 0x6290(%rip), %rcx      # 0xc229
movl $0x129, %edx            # imm = 0x129
callq 0x5350
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/column.c
// Function: cx_column_cursor_skip_str
size_t cx_column_cursor_skip_str(struct cx_column_cursor *cursor, size_t count)
{
    assert(cursor->column->type == CX_COLUMN_STR);
    size_t skipped = 0;
    // TODO: vectorise this
    for (; skipped < count && cx_column_cursor_valid(cursor); skipped++)
        cx_column_cursor_advance(cursor, cx_strlen(cursor->position) + 1);
    return skipped;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdi), %rax
cmpl $0x5, 0x20(%rax)
jne 0x606b
movq %rsi, %rbx
testq %rsi, %rsi
je 0x603c
movq %rdi, %r14
movq 0x10(%rdi), %r13
movq 0x18(%rdi), %r12
xorl %r15d, %r15d
cmpq %r13, %r12
jae 0x603f
movq %r12, %rdi
callq 0x5250
addq %rax, %r12
incq %r12
movq %r12, 0x18(%r14)
cmpq %r12, %r13
jb 0x604c
incq %r15
cmpq %r15, %rbx
jne 0x6013
movq %rbx, %r15
jmp 0x603f
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x61b6(%rip), %rdi      # 0xc209
leaq 0x5fde(%rip), %rsi      # 0xc038
leaq 0x61c8(%rip), %rcx      # 0xc229
movl $0x129, %edx            # imm = 0x129
callq 0x5350
leaq 0x6013(%rip), %rdi      # 0xc085
leaq 0x5fbf(%rip), %rsi      # 0xc038
leaq 0x602b(%rip), %rcx      # 0xc0ab
movl $0x171, %edx            # imm = 0x171
callq 0x5350
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/column.c
// Function: cx_column_cursor_next_batch_str
const struct cx_string *cx_column_cursor_next_batch_str(
    struct cx_column_cursor *cursor, size_t *available)
{
    assert(cursor->column->type == CX_COLUMN_STR);
    size_t i = 0;
    struct cx_string *strings = (struct cx_string *)cursor->buffer;
    for (; i < CX_BATCH_SIZE && cx_column_cursor_valid(cursor); i++) {
        strings[i].ptr = cursor->position;
        strings[i].len = cx_strlen(cursor->position);
        cx_column_cursor_advance(cursor, strings[i].len + 1);
    }
    *available = i;
    return strings;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, (%rsp)
movq (%rdi), %rax
cmpl $0x5, 0x20(%rax)
jne 0x6201
movq %rdi, %r15
leaq 0x20(%rdi), %r14
movq 0x10(%rdi), %rbp
movq 0x18(%rdi), %r12
leaq 0x28(%rdi), %rbx
xorl %r13d, %r13d
cmpq %rbp, %r12
jae 0x61c9
movq %r12, -0x8(%rbx)
movq %r12, %rdi
callq 0x5250
movq %rax, (%rbx)
addq %rax, %r12
incq %r12
movq %r12, 0x18(%r15)
cmpq %r12, %rbp
jb 0x61e2
incq %r13
addq $0x10, %rbx
cmpq $0x40, %r13
jne 0x6193
movl $0x40, %r13d
movq (%rsp), %rax
movq %r13, (%rax)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6020(%rip), %rdi      # 0xc209
leaq 0x5e48(%rip), %rsi      # 0xc038
leaq 0x6032(%rip), %rcx      # 0xc229
movl $0x129, %edx            # imm = 0x129
callq 0x5350
leaq 0x5e7d(%rip), %rdi      # 0xc085
leaq 0x5e29(%rip), %rsi      # 0xc038
leaq 0x5ed9(%rip), %rcx      # 0xc0ef
movl $0x1a4, %edx            # imm = 0x1A4
callq 0x5350
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/column.c
// Function: cx_column_resize
__attribute__((noinline)) static bool cx_column_resize(struct cx_column *column,
                                                       size_t alloc_size)
{
    size_t size = column->size;
    size_t required_size = column->offset + alloc_size;
#ifdef CX_COLUMN_OVER_ALLOC
    required_size += CX_COLUMN_OVER_ALLOC;
#endif
    while (size < required_size) {
        assert(size * 2 > size);
        size *= 2;
    }
    void *buffer = realloc(column->buffer.mutable, size);
    if (!buffer)
        return false;
#ifdef CX_COLUMN_OVER_ALLOC
    memset((void *)((uintptr_t)buffer + column->offset), 0,
           size - column->offset);
#endif
    column->buffer.mutable = buffer;
    column->size = size;
    return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %r14
addq 0x10(%rdi), %rsi
cmpq %rsi, %r14
jae 0x623e
testq %r14, %r14
jle 0x6263
addq %r14, %r14
jmp 0x622f
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x56d0
testq %rax, %rax
je 0x6255
movq %rax, (%rbx)
movq %r14, 0x18(%rbx)
testq %rax, %rax
setne %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x5ee2(%rip), %rdi      # 0xc14c
leaq 0x5dc7(%rip), %rsi      # 0xc038
leaq 0x5ee4(%rip), %rcx      # 0xc15c
movl $0xa1, %edx
callq 0x5350
nop
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/compress.c
// Function: cx_compress
void *cx_compress(enum cx_compression_type type, int level, const void *src,
                  size_t src_size, size_t *dest_size)
{
    if (type == CX_COMPRESSION_LZ4)
        return cx_compress_lz4(level, src, src_size, dest_size);
    else if (type == CX_COMPRESSION_LZ4HC)
        return cx_compress_lz4hc(level, src, src_size, dest_size);
    else if (type == CX_COMPRESSION_ZSTD)
        return cx_compress_zstd(level, src, src_size, dest_size);
    else
        return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebp
cmpl $0x3, %edi
je 0x6346
cmpl $0x2, %edi
je 0x62fb
cmpl $0x1, %edi
jne 0x6390
cmpq $0x7fffffff, %r15       # imm = 0x7FFFFFFF
ja 0x6390
movl %r15d, %edi
callq 0x5170
testl %eax, %eax
je 0x6390
movl %eax, %r13d
movslq %eax, %rdi
callq 0x5590
testq %rax, %rax
je 0x6390
movq %rax, %r14
movq %r12, %rdi
movq %rax, %rsi
movl %r15d, %edx
movl %r13d, %ecx
movl %ebp, %r8d
callq 0x5730
jmp 0x633b
cmpq $0x7fffffff, %r15       # imm = 0x7FFFFFFF
ja 0x6390
movl %r15d, %edi
callq 0x5170
testl %eax, %eax
je 0x6390
movl %eax, %r13d
movslq %eax, %rdi
callq 0x5590
testq %rax, %rax
je 0x6390
movq %rax, %r14
movq %r12, %rdi
movq %rax, %rsi
movl %r15d, %edx
movl %r13d, %ecx
movl %ebp, %r8d
callq 0x5050
testl %eax, %eax
je 0x6388
cltq
movq %rax, (%rbx)
jmp 0x6393
movq %r15, %rdi
callq 0x57b0
testl %eax, %eax
je 0x6390
movslq %eax, %r13
movq %r13, %rdi
callq 0x5590
testq %rax, %rax
je 0x6390
movq %rax, %r14
movq %rax, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
movl %ebp, %r8d
callq 0x5200
movq %rax, %r15
movq %rax, %rdi
callq 0x5150
testl %eax, %eax
je 0x63a5
movq %r14, %rdi
callq 0x5080
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, (%rbx)
jmp 0x6393
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/compress.c
// Function: cx_decompress
bool cx_decompress(enum cx_compression_type type, const void *src,
                   size_t src_size, void *dest, size_t dest_size)
{
    if (type == CX_COMPRESSION_LZ4 || type == CX_COMPRESSION_LZ4HC)
        return cx_decompress_lz4(src, src_size, dest, dest_size);
    else if (type == CX_COMPRESSION_ZSTD)
        return cx_decompress_zstd(src, src_size, dest, dest_size);
    else
        return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rdx, %rax
movq %rsi, %rdx
leal -0x1(%rdi), %esi
cmpl $0x1, %esi
ja 0x63da
movq %rdx, %rdi
movq %rcx, %rsi
movl %eax, %edx
movl %ebx, %ecx
callq 0x5680
testl %eax, %eax
setne %cl
cltq
cmpq %rbx, %rax
jmp 0x6400
cmpl $0x3, %edi
jne 0x6407
movq %rcx, %rdi
movq %rbx, %rsi
movq %rax, %rcx
callq 0x51e0
movq %rax, %r14
movq %rax, %rdi
callq 0x5150
testl %eax, %eax
sete %cl
cmpq %rbx, %r14
sete %al
andb %cl, %al
jmp 0x6409
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_free
void cx_predicate_free(struct cx_predicate *predicate)
{
    if (predicate->operands) {
        for (size_t i = 0; i < predicate->operand_count; i++)
            if (predicate->operands[i])
                cx_predicate_free(predicate->operands[i]);
        free(predicate->operands);
    }
    if (predicate->string)
        free(predicate->string);
    free(predicate);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x73b3
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x73ae
xorl %r14d, %r14d
movq 0x28(%rbx), %rcx
movq (%rcx,%r14,8), %rdi
testq %rdi, %rdi
je 0x73a2
callq 0x53e0
movq 0x20(%rbx), %rax
incq %r14
cmpq %rax, %r14
jb 0x738c
movq 0x28(%rbx), %rdi
callq 0x5080
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x73c1
callq 0x5080
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5080
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/predicate.c
// Function: cx_predicate_new_null
struct cx_predicate *cx_predicate_new_null(size_t column)
{
    struct cx_predicate *predicate = cx_predicate_new();
    if (!predicate)
        return NULL;
    predicate->type = CX_PREDICATE_NULL;
    predicate->column = column;
    return predicate;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
movl $0x60, %esi
callq 0x5450
testq %rax, %rax
je 0x7401
movl $0x1, (%rax)
movq %rbx, 0x8(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl $0x1, %edi
movl $0x60, %esi
callq 0x5450
testq %rax, %rax
je 0x742d
movq %r14, 0x8(%rax)
movl $0x2, (%rax)
movb %bl, 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %r12
movl $0x1, %edi
movl $0x60, %esi
callq 0x5450
testq %rax, %rax
je 0x77b4
movq %rax, %rbx
movq %r12, 0x8(%rax)
movl %r15d, (%rax)
movl $0x5, 0x4(%rax)
movq %r14, %rdi
callq 0x5250
movq %rax, %r15
leaq 0x1(%rax), %r12
movq %r12, %rdi
callq 0x5590
movq %rax, 0x30(%rbx)
testq %rax, %rax
je 0x77ac
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x54e0
movq %r13, 0x10(%rbx)
movq %r15, 0x18(%rbx)
movb %bpl, 0x3c(%rbx)
jmp 0x77b6
movq %rbx, %rdi
callq 0x5080
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movl %r8d, %ebx
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r13
movl $0x1, %edi
movl $0x60, %esi
callq 0x5450
testq %rax, %rax
je 0x7845
movq %r13, 0x8(%rax)
movl $0x8, (%rax)
movl %ebp, 0x4(%rax)
movq %r12, 0x40(%rax)
movq %r15, 0x48(%rax)
movq %r14, 0x58(%rax)
movl %ebx, 0x50(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x797d
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
movl $0x1, %edi
movl $0x60, %esi
callq 0x5450
testq %rax, %rax
je 0x797d
movq %rax, %rbx
movq %r15, 0x20(%rax)
movl %ebp, (%rax)
movl $0x8, %esi
movq %r15, %rdi
callq 0x5450
movq %rax, 0x28(%rbx)
testq %rax, %rax
je 0x7975
movl (%r14), %ecx
xorl %edx, %edx
cmpl $0x28, %ecx
ja 0x7953
movl %ecx, %esi
addq 0x10(%r14), %rsi
addl $0x8, %ecx
movl %ecx, (%r14)
jmp 0x795f
movq 0x8(%r14), %rsi
leaq 0x8(%rsi), %rdi
movq %rdi, 0x8(%r14)
movq (%rsi), %rsi
movq %rsi, (%rax,%rdx,8)
testq %rsi, %rsi
je 0x7975
incq %rdx
cmpq %rdx, %r15
jne 0x7940
jmp 0x797f
movq %rbx, %rdi
callq 0x53e0
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/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x7a02
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
movl $0x1, %edi
movl $0x60, %esi
callq 0x5450
testq %rax, %rax
je 0x7a02
movq %rax, %rbx
movq %r15, 0x20(%rax)
movl %ebp, (%rax)
movl $0x8, %esi
movq %r15, %rdi
callq 0x5450
movq %rax, 0x28(%rbx)
testq %rax, %rax
je 0x79fa
xorl %ecx, %ecx
movq (%r14,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
testq %rdx, %rdx
je 0x79fa
incq %rcx
cmpq %rcx, %r15
jne 0x79e3
jmp 0x7a04
movq %rbx, %rdi
callq 0x53e0
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/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 %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %r15
movq %rsi, %rdi
callq 0x5440
cmpq %rax, %r15
jae 0x7b4a
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x58d0
movl %eax, %ecx
movl (%rbx), %edx
movb $0x1, %al
cmpl $0x2, %edx
jb 0x7b4c
leal -0x6(%rdx), %esi
cmpl $0x2, %esi
jae 0x7b36
cmpq $0x0, 0x20(%rbx)
je 0x7b4c
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rdi
movq %r14, %rsi
callq 0x50f0
testb %al, %al
je 0x7b4c
incq %r15
cmpq 0x20(%rbx), %r15
jb 0x7b17
jmp 0x7b4c
cmpl %ecx, 0x4(%rbx)
jne 0x7b4a
leal -0x3(%rdx), %esi
cmpl $0x2, %esi
jae 0x7b52
testl %ecx, %ecx
setne %al
jmp 0x7b4c
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
cmpl $0x5, %edx
jne 0x7b4c
cmpl $0x5, %ecx
sete %al
jmp 0x7b4c
// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rsi
movq 0x28(%rdi), %rdi
leaq 0x41(%rip), %rcx        # 0x8ac1
movl $0x8, %edx
movq %rbx, %r8
callq 0x5540
movl (%r14), %eax
andl $-0x2, %eax
cmpl $0x6, %eax
jne 0x8abb
cmpq $0x0, 0x20(%r14)
je 0x8abb
xorl %r15d, %r15d
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rdi
movq %rbx, %rsi
callq 0x59e0
incq %r15
cmpq 0x20(%r14), %r15
jb 0x8aa2
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl (%rdi), %eax
xorl %ebp, %ebp
decl %eax
cmpl $0x7, %eax
ja 0x8b81
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x3f65(%rip), %rcx      # 0xca7c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x58d0
movl $0x0, %ebp
cmpl $0x6, %eax
jae 0x8b81
movl %eax, %eax
leaq 0x3f5d(%rip), %rcx      # 0xca9c
movl (%rcx,%rax,4), %ebp
jmp 0x8b81
cmpq $0x0, 0x20(%r14)
movl $0x0, %ebp
je 0x8b81
xorl %r15d, %r15d
xorl %ebp, %ebp
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rdi
movq %rbx, %rsi
callq 0x8af8
addl %eax, %ebp
incq %r15
cmpq 0x20(%r14), %r15
jb 0x8b55
jmp 0x8b81
movl $0x1, %ebp
jmp 0x8b81
movl 0x50(%r14), %ebp
testl %ebp, %ebp
js 0x8b20
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x8c47
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movl $0x1, %edi
movl $0x38, %esi
callq 0x5450
testq %rax, %rax
je 0x8c47
movq %rax, %rbx
movq %r15, %rdi
callq 0x55e0
movq %rax, (%rbx)
testq %rax, %rax
je 0x8c3f
movq %r14, 0x8(%rbx)
movb %bpl, 0x30(%rbx)
movq 0x40(%rax), %rcx
movq %rcx, 0x20(%rbx)
testq %rcx, %rcx
sete %cl
orb %bpl, %cl
jne 0x8c49
movq %rax, %rdi
xorl %esi, %esi
callq 0x5a10
testq %rax, %rax
je 0x8c3f
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x50f0
testb %al, %al
je 0x8c37
movq %r14, %rdi
movq %r15, %rsi
callq 0x59e0
movq %r15, %rdi
callq 0x5860
jmp 0x8c49
movq %r15, %rdi
callq 0x5860
movq %rbx, %rdi
callq 0x5080
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/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 %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x8c70
callq 0x5690
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x8c7e
callq 0x5860
movq 0x8(%rbx), %rdi
callq 0x53e0
movq (%rbx), %rdi
callq 0x5980
movq %rbx, %rdi
popq %rbx
jmp 0x5080
// File: /workspace/github_c_makefile_star2_O3/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 %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x8cae
movq 0x10(%rbx), %rsi
callq 0x5700
movq (%rbx), %rdi
callq 0x51f0
movq 0x20(%rbx), %rdi
callq 0x58f0
movq %rbx, %rdi
popq %rbx
jmp 0x5080
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x8d28
callq 0x5690
leaq 0x10(%rbx), %r14
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x8d3a
callq 0x5860
movq $0x0, 0x28(%rbx)
movb $0x0, 0x31(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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
pushq %rbx
pushq %rax
cmpb $0x0, 0x31(%rdi)
jne 0x8db4
movq %rdi, %rbx
movq 0x28(%rdi), %rax
cmpq 0x20(%rdi), %rax
jae 0x8db4
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
jne 0x8d84
movq %rbx, %rdi
callq 0x8dbf
testb %al, %al
je 0x8db0
movq 0x18(%rbx), %rdi
callq 0x5360
movl %eax, %ebp
testb %al, %al
jne 0x8db6
movq 0x18(%rbx), %rdi
callq 0x55f0
testb %al, %al
jne 0x8db0
movq %rbx, %rdi
callq 0x8e0c
movq 0x28(%rbx), %rax
cmpq 0x20(%rbx), %rax
jb 0x8d6b
jmp 0x8db6
movb $0x1, 0x31(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x28(%rbx), %rsi
callq 0x5a10
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x8e00
movq 0x8(%rbx), %rsi
movq %rax, %rdi
callq 0x52d0
movq %rax, %rcx
movq %rax, 0x18(%rbx)
movb $0x1, %al
testq %rcx, %rcx
jne 0x8e0a
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x8e00
callq 0x5860
movq $0x0, 0x10(%rbx)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x8e26
callq 0x5690
movq $0x0, 0x18(%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x8e3c
callq 0x5860
movq $0x0, 0x10(%rbx)
incq 0x28(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
movq (%rdi), %rax
movq 0x18(%rax), %r14
testq %r14, %r14
sete %al
orb 0x30(%rdi), %al
jne 0x8eb5
movq %rdi, %rbx
callq 0x5190
movq 0x28(%rbx), %rax
cmpq 0x20(%rbx), %rax
jae 0x8eb2
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x8dbf
testb %al, %al
je 0x8eae
movq 0x18(%rbx), %rdi
callq 0x52f0
movq %rax, %r15
movq 0x18(%rbx), %rdi
callq 0x55f0
testb %al, %al
jne 0x8eae
addq %r15, %r14
movq %rbx, %rdi
callq 0x8e0c
movq 0x28(%rbx), %rax
cmpq 0x20(%rbx), %rax
jb 0x8e72
jmp 0x8eb5
movb $0x1, 0x31(%rbx)
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/reader.c
// Function: cx_reader_query
bool cx_reader_query(struct cx_reader *reader, int thread_count, void *data,
                     void (*iter)(struct cx_row_cursor *, pthread_mutex_t *,
                                  void *))
{
    if (thread_count <= 0)
        return false;
    if (!reader->row_group_count)
        return true;
    pthread_t *threads = NULL;
    struct cx_reader_query_context query_context = {
        .reader = reader->reader,
        .predicate = reader->predicate,
        .position = 0,
        .row_group_count = reader->row_group_count,
        .iter = iter,
        .data = data,
        .error = false};
    if (pthread_mutex_init(&query_context.mutex, NULL))
        return false;
    threads = malloc(thread_count * sizeof(pthread_t));
    if (!threads)
        goto error;
    for (int i = 0; i < thread_count; i++)
        if (pthread_create(&threads[i], NULL, cx_reader_query_thread,
                           &query_context))
            goto error;
    for (int i = 0; i < thread_count; i++)
        pthread_join(threads[i], NULL);
    free(threads);
    pthread_mutex_destroy(&query_context.mutex);
    return !query_context.error;
error:
    free(threads);
    pthread_mutex_destroy(&query_context.mutex);
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
testl %esi, %esi
jle 0x8fb3
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x8f9e
movl %esi, %ebp
movups (%rdi), %xmm0
leaq 0x38(%rsp), %rbx
movaps %xmm0, -0x38(%rbx)
xorl %r14d, %r14d
movq %r14, -0x28(%rbx)
movq %rax, -0x20(%rbx)
movq %rcx, -0x18(%rbx)
movq %rdx, -0x10(%rbx)
movb $0x0, -0x8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x10(%rbx)
movq %r14, 0x20(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5970
testl %eax, %eax
jne 0x8fb6
movl %ebp, %ebp
leaq (,%rbp,8), %r15
movq %r15, %rdi
callq 0x5590
movq %rax, %r14
testq %rax, %rax
je 0x8fa3
xorl %r12d, %r12d
movq %rsp, %r13
leaq (%r14,%r12), %rdi
xorl %esi, %esi
leaq 0x70(%rip), %rdx        # 0x8fc8
movq %r13, %rcx
callq 0x5740
testl %eax, %eax
jne 0x8fa3
addq $0x8, %r12
cmpq %r12, %r15
jne 0x8f4b
xorl %r15d, %r15d
movq (%r14,%r15,8), %rdi
xorl %esi, %esi
callq 0x5920
incq %r15
cmpq %r15, %rbp
jne 0x8f70
movq %r14, %rdi
callq 0x5080
movq %rbx, %rdi
callq 0x5320
movb 0x30(%rsp), %r14b
xorb $0x1, %r14b
jmp 0x8fb6
movb $0x1, %r14b
jmp 0x8fb6
movq %r14, %rdi
callq 0x5080
movq %rbx, %rdi
callq 0x5320
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
leaq 0x38(%rdi), %rbx
movq %rbx, %rdi
callq 0x59c0
movq 0x10(%r14), %r15
leaq 0x1(%r15), %rax
movq %rax, 0x10(%r14)
movq %rbx, %rdi
callq 0x5570
cmpq 0x18(%r14), %r15
jae 0x906c
movq (%r14), %rdi
movq %r15, %rsi
callq 0x5a10
testq %rax, %rax
je 0x9057
movq %rax, %r15
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x52d0
testq %rax, %rax
je 0x904f
movq %rax, %r12
movq 0x28(%r14), %rdx
movq %rax, %rdi
movq %rbx, %rsi
callq *0x20(%r14)
movq %r12, %rdi
callq 0x55f0
movl %eax, %ebp
movq %r15, %rdi
callq 0x5860
movq %r12, %rdi
callq 0x5690
testb %bpl, %bpl
je 0x8fd7
jmp 0x9057
movq %r15, %rdi
callq 0x5860
movq %rbx, %rdi
callq 0x59c0
movb $0x1, 0x30(%r14)
movq %rbx, %rdi
callq 0x5570
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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:
cmpq %rsi, 0x30(%rdi)
jbe 0x91b3
leaq (%rsi,%rsi,2), %rax
shlq $0x3, %rax
addq 0x28(%rdi), %rax
testq %rdx, %rdx
je 0x91af
movl 0x10(%rax), %ecx
movl %ecx, (%rdx)
movl 0xc(%rax), %eax
retq
pushq %rax
leaq 0x3efb(%rip), %rdi      # 0xd0b6
leaq 0x3e52(%rip), %rsi      # 0xd014
leaq 0x3fd2(%rip), %rcx      # 0xd19b
movl $0x20d, %edx            # imm = 0x20D
callq 0x5350
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/reader.c
// Function: cx_row_group_reader_string
const char *cx_row_group_reader_string(const struct cx_row_group_reader *reader,
                                       size_t index)
{
    size_t size;
    assert(cx_column_type(reader->strings) == CX_COLUMN_STR);
    assert(cx_column_encoding(reader->strings) == CX_ENCODING_NONE);
    const char *string = cx_column_export(reader->strings, &size);
    const char *end = string + size;
    for (; index && string < end; index--)
        string += strlen(string) + 1;
    assert(string <= end);
    return index == 0 && string != end ? string : NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rdi
callq 0x5470
cmpl $0x5, %eax
jne 0x948d
movq 0x20(%r14), %rdi
callq 0x50c0
testl %eax, %eax
jne 0x94ac
movq 0x20(%r14), %rdi
movq %rsp, %r15
movq %r15, %rsi
callq 0x5140
movq %rax, %r14
movq (%r15), %rax
movq %r14, %r15
addq %rax, %r15
testq %rbx, %rbx
setne %cl
testq %rax, %rax
setg %al
andb %cl, %al
cmpb $0x1, %al
jne 0x9469
movq %rbx, %r12
movq %r14, %rdi
callq 0x5250
addq %rax, %r14
incq %r14
decq %rbx
cmpq $0x1, %r12
je 0x9469
cmpq %r15, %r14
jb 0x944a
cmpq %r15, %r14
ja 0x94cb
xorl %eax, %eax
cmpq %r15, %r14
cmoveq %rax, %r14
testq %rbx, %rbx
cmovneq %rax, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x3b4f(%rip), %rdi      # 0xcfe3
leaq 0x3b79(%rip), %rsi      # 0xd014
leaq 0x3b7b(%rip), %rcx      # 0xd01d
movl $0x1db, %edx            # imm = 0x1DB
callq 0x5350
leaq 0x3bbd(%rip), %rdi      # 0xd070
leaq 0x3b5a(%rip), %rsi      # 0xd014
leaq 0x3b5c(%rip), %rcx      # 0xd01d
movl $0x1dc, %edx            # imm = 0x1DC
callq 0x5350
leaq 0x3bd6(%rip), %rdi      # 0xd0a8
leaq 0x3b3b(%rip), %rsi      # 0xd014
leaq 0x3b3d(%rip), %rcx      # 0xd01d
movl $0x1e1, %edx            # imm = 0x1E1
callq 0x5350
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/row.c
// Function: cx_row_cursor_new
struct cx_row_cursor *cx_row_cursor_new(struct cx_row_group *row_group,
                                        const struct cx_predicate *predicate)
{
    struct cx_row_cursor *cursor = calloc(1, sizeof(*cursor));
    if (!cursor)
        return NULL;
    cursor->row_group = row_group;
    cursor->cursor = cx_row_group_cursor_new(row_group);
    if (!cursor->cursor)
        goto error;
    cursor->predicate = predicate;
    cursor->index_match =
        cx_index_match_indexes(cursor->predicate, cursor->row_group);
    cx_row_cursor_rewind(cursor);
    return cursor;
error:
    free(cursor);
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movl $0x1, %edi
movl $0x38, %esi
callq 0x5450
testq %rax, %rax
je 0x96a0
movq %rax, %rbx
movq %r14, (%rax)
movq %r14, %rdi
callq 0x5610
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x9698
movq %rax, %r12
movq %r15, 0x10(%rbx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x5180
movl %eax, 0x30(%rbx)
movq $0x40, 0x28(%rbx)
movq %r12, %rdi
callq 0x5850
jmp 0x96a2
movq %rbx, %rdi
callq 0x5080
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/row.c
// Function: cx_row_cursor_next
bool cx_row_cursor_next(struct cx_row_cursor *cursor)
{
    if (cursor->position < 63) {
        uint64_t mask = cursor->row_mask >> (cursor->position + 1);
        if (mask) {
            cursor->position += __builtin_ctzll(mask) + 1;
            return true;
        }
    }
    cursor->row_mask = cx_row_cursor_load_row_mask(cursor);
    if (!cursor->row_mask)
        return false;
    cursor->position = __builtin_ctzll(cursor->row_mask);
    return true;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %rcx
cmpq $0x3e, %rcx
ja 0x9710
movq 0x20(%rbx), %rax
incq %rcx
shrq %cl, %rax
testq %rax, %rax
je 0x9710
bsfq %rax, %rax
addq %rax, %rcx
jmp 0x9725
movq %rbx, %rdi
callq 0x9731
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x972d
bsfq %rax, %rcx
movq %rcx, 0x28(%rbx)
movb $0x1, %al
jmp 0x972f
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/row.c
// Function: cx_row_cursor_load_row_mask
static uint64_t cx_row_cursor_load_row_mask(struct cx_row_cursor *cursor)
{
    uint64_t row_mask = 0;
    while (!row_mask && cx_row_group_cursor_next(cursor->cursor)) {
        size_t count;
        if (cursor->index_match == CX_INDEX_MATCH_ALL) {
            count = cx_row_group_cursor_batch_count(cursor->cursor);
            row_mask = (uint64_t)-1;
            if (count < 64)
                row_mask &= ((uint64_t)1 << count) - 1;
        } else if (!cx_index_match_rows(cursor->predicate, cursor->row_group,
                                        cursor->cursor, &row_mask, &count))
            goto error;
    }
    return row_mask;
error:
    cursor->error = true;
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq %rsp, %r14
movq $0x0, (%r14)
leaq 0x8(%rsp), %r15
movq 0x8(%rbx), %rdi
callq 0x5930
testb %al, %al
je 0x97a9
cmpl $0x1, 0x30(%rbx)
jne 0x9784
movq 0x8(%rbx), %rdi
callq 0x59f0
cmpq $0x40, %rax
jae 0x97b7
movq %rax, %rcx
movq $-0x1, %rax
shlq %cl, %rax
notq %rax
movq %rax, (%rsp)
jmp 0x97a2
movq 0x10(%rbx), %rdi
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rcx
movq %r15, %r8
callq 0x5670
testb %al, %al
je 0x97af
movq (%rsp), %rax
testq %rax, %rax
je 0x974c
jmp 0x97be
movq (%rsp), %rax
jmp 0x97be
movb $0x1, 0x35(%rbx)
xorl %eax, %eax
jmp 0x97be
movq $-0x1, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/row.c
// Function: cx_row_cursor_count
size_t cx_row_cursor_count(struct cx_row_cursor *cursor)
{
    if (cursor->index_match == CX_INDEX_MATCH_NONE)
        return 0;
    else if (cursor->index_match == CX_INDEX_MATCH_ALL)
        return cx_row_group_row_count(cursor->row_group);
    cx_row_cursor_rewind(cursor);
    size_t count = 0;
    for (;;) {
        uint64_t row_mask = cx_row_cursor_load_row_mask(cursor);
        if (!row_mask)
            break;
        count += __builtin_popcountll(row_mask);
    }
    return count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x30(%rdi), %eax
cmpl $-0x1, %eax
je 0x9899
movq %rdi, %rbx
cmpl $0x1, %eax
jne 0x9801
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5430
movq $0x0, 0x20(%rbx)
movq $0x40, 0x28(%rbx)
movq 0x8(%rbx), %rdi
callq 0x5850
movb $0x0, 0x35(%rbx)
movq %rbx, %rdi
callq 0x9731
testq %rax, %rax
je 0x9899
xorl %r14d, %r14d
movabsq $0x5555555555555555, %r15 # imm = 0x5555555555555555
movabsq $0x3333333333333333, %r12 # imm = 0x3333333333333333
movabsq $0xf0f0f0f0f0f0f0f, %r13 # imm = 0xF0F0F0F0F0F0F0F
movabsq $0x101010101010101, %rbp # imm = 0x101010101010101
movq %rax, %rcx
shrq %rcx
andq %r15, %rcx
subq %rcx, %rax
movq %rax, %rcx
andq %r12, %rcx
shrq $0x2, %rax
andq %r12, %rax
addq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
addq %rax, %rcx
andq %r13, %rcx
imulq %rbp, %rcx
shrq $0x38, %rcx
addq %rcx, %r14
movq %rbx, %rdi
callq 0x9731
testq %rax, %rax
jne 0x9856
jmp 0x989c
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/row.c
// Function: cx_row_cursor_get_null
bool cx_row_cursor_get_null(const struct cx_row_cursor *cursor,
                            size_t column_index, bool *value)
{
    assert(cursor->row_mask);
    size_t count;
    const uint64_t *nulls =
        cx_row_group_cursor_batch_nulls(cursor->cursor, column_index, &count);
    uint64_t row_bit = (uint64_t)1 << cursor->position;
    if (!count || !nulls)
        return false;
    *value = *nulls & row_bit;
    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
cmpq $0x0, 0x20(%rdi)
je 0x9903
movq %rdx, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rdx
callq 0x50d0
movq %rax, %rcx
cmpq $0x0, (%r15)
setne %dl
testq %rax, %rax
setne %al
andb %dl, %al
cmpb $0x1, %al
jne 0x98f9
movq (%rcx), %rcx
movl 0x28(%r14), %edx
btq %rdx, %rcx
setb (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3904(%rip), %rdi      # 0xd20e
leaq 0x390e(%rip), %rsi      # 0xd21f
leaq 0x390d(%rip), %rcx      # 0xd225
movl $0x71, %edx
callq 0x5350
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/row.c
// Function: cx_row_cursor_get_bit
bool cx_row_cursor_get_bit(const struct cx_row_cursor *cursor,
                           size_t column_index, bool *value)
{
    assert(cursor->row_mask);
    size_t count;
    const uint64_t *bitset =
        cx_row_group_cursor_batch_bit(cursor->cursor, column_index, &count);
    uint64_t row_bit = (uint64_t)1 << cursor->position;
    if (!count || !bitset)
        return false;
    *value = *bitset & row_bit;
    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
cmpq $0x0, 0x20(%rdi)
je 0x9977
movq %rdx, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rdx
callq 0x5500
movq %rax, %rcx
cmpq $0x0, (%r15)
setne %dl
testq %rax, %rax
setne %al
andb %dl, %al
cmpb $0x1, %al
jne 0x996d
movq (%rcx), %rcx
movl 0x28(%r14), %edx
btq %rdx, %rcx
setb (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3890(%rip), %rdi      # 0xd20e
leaq 0x389a(%rip), %rsi      # 0xd21f
leaq 0x38e5(%rip), %rcx      # 0xd271
movl $0x7f, %edx
callq 0x5350
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/row.c
// Function: cx_row_cursor_get_i32
bool cx_row_cursor_get_i32(const struct cx_row_cursor *cursor,
                           size_t column_index, int32_t *value)
{
    assert(cursor->row_mask);
    size_t count;
    const int32_t *batch =
        cx_row_group_cursor_batch_i32(cursor->cursor, column_index, &count);
    if (!batch || !count)
        return false;
    *value = batch[cursor->position];
    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
cmpq $0x0, 0x20(%rdi)
je 0x99e6
movq %rdx, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rdx
callq 0x5800
testq %rax, %rax
setne %dl
cmpq $0x0, (%r15)
setne %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x99da
movq 0x28(%r14), %rdx
movl (%rax,%rdx,4), %eax
movl %eax, (%rbx)
movl %ecx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3821(%rip), %rdi      # 0xd20e
leaq 0x382b(%rip), %rsi      # 0xd21f
leaq 0x38c1(%rip), %rcx      # 0xd2bc
movl $0x8d, %edx
callq 0x5350
// File: /workspace/github_c_makefile_star2_O3/chriso[P]columnix/lib/row.c
// Function: cx_row_cursor_get_i64
bool cx_row_cursor_get_i64(const struct cx_row_cursor *cursor,
                           size_t column_index, int64_t *value)
{
    assert(cursor->row_mask);
    size_t count;
    const int64_t *batch =
        cx_row_group_cursor_batch_i64(cursor->cursor, column_index, &count);
    if (!batch || !count)
        return false;
    *value = batch[cursor->position];
    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
cmpq $0x0, 0x20(%rdi)
je 0x9a57
movq %rdx, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rdx
callq 0x58b0
testq %rax, %rax
setne %dl
cmpq $0x0, (%r15)
setne %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x9a4b
movq 0x28(%r14), %rdx
movq (%rax,%rdx,8), %rax
movq %rax, (%rbx)
movl %ecx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x37b0(%rip), %rdi      # 0xd20e
leaq 0x37ba(%rip), %rsi      # 0xd21f
leaq 0x389d(%rip), %rcx      # 0xd309
movl $0x9a, %edx
callq 0x5350