LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: validate_conditional_top
lxw_error
_validate_conditional_top(lxw_cond_format_obj *cond_format,
                          lxw_conditional_format *user_options)
{
    /* Restrict the range of rank values to Excel's allowed range. */
    if (user_options->criteria ==
        LXW_CONDITIONAL_CRITERIA_TOP_OR_BOTTOM_PERCENT) {
        if (user_options->value < 0.0 || user_options->value > 100.0) {

            LXW_WARN_FORMAT1("worksheet_conditional_format_cell()/_range(): "
                             "For type = LXW_CONDITIONAL_TYPE_TOP/BOTTOM, "
                             "top/bottom percent (%g%%) must by in range 0-100",
                             user_options->value);

            return LXW_ERROR_PARAMETER_VALIDATION;
        }
    }
    else {
        if (user_options->value < 1.0 || user_options->value > 1000.0) {

            LXW_WARN_FORMAT1("worksheet_conditional_format_cell()/_range(): "
                             "For type = LXW_CONDITIONAL_TYPE_TOP/BOTTOM, "
                             "top/bottom items (%g) must by in range 1-1000",
                             user_options->value);

            return LXW_ERROR_PARAMETER_VALIDATION;
        }
    }

    cond_format->min_value = (uint16_t) user_options->value;

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rax
cmpb $0x21, 0x1(%rsi)
movsd 0x8(%rsi), %xmm0
jne 0x31247
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x31234
ucomisd 0xc29e(%rip), %xmm0     # 0x3d4d0
jbe 0x3125f
movq 0x21dbd(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x12f0b(%rip), %rsi     # 0x44150
jmp 0x31284
movsd 0xe801(%rip), %xmm1     # 0x3fa50
ucomisd %xmm0, %xmm1
ja 0x31273
ucomisd 0x12483(%rip), %xmm0    # 0x436e0
ja 0x31273
cvttsd2si %xmm0, %eax
movzwl %ax, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rdi)
xorl %eax, %eax
popq %rcx
retq
movq 0x21d7e(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x12f63(%rip), %rsi     # 0x441e7
movb $0x1, %al
callq 0xc8d0
pushq $0xd
popq %rax
jmp 0x31271
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: validate_conditional_text
lxw_error
_validate_conditional_text(lxw_cond_format_obj *cond_format,
                           lxw_conditional_format *user_options)
{
    if (!user_options->value_string) {

        LXW_WARN_FORMAT("worksheet_conditional_format_cell()/_range(): "
                        "For type = LXW_CONDITIONAL_TYPE_TEXT, "
                        "value_string can not be NULL. "
                        "Text must be specified.");

        return LXW_ERROR_PARAMETER_VALIDATION;
    }

    if (strlen(user_options->value_string) >= LXW_MAX_ATTRIBUTE_LENGTH) {

        LXW_WARN_FORMAT2("worksheet_conditional_format_cell()/_range(): "
                         "For type = LXW_CONDITIONAL_TYPE_TEXT, "
                         "value_string length (%d) must be less than %d.",
                         (uint16_t) strlen(user_options->value_string),
                         LXW_MAX_ATTRIBUTE_LENGTH);

        return LXW_ERROR_PARAMETER_VALIDATION;
    }

    if (user_options->criteria < LXW_CONDITIONAL_CRITERIA_TEXT_CONTAINING ||
        user_options->criteria > LXW_CONDITIONAL_CRITERIA_TEXT_ENDS_WITH) {

        LXW_WARN_FORMAT1("worksheet_conditional_format_cell()/_range(): "
                         "For type = LXW_CONDITIONAL_TYPE_TEXT, "
                         "invalid criteria value (%d).",
                         user_options->criteria);

        return LXW_ERROR_PARAMETER_VALIDATION;
    }

    cond_format->min_value_string =
        lxw_strdup_formula(user_options->value_string);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x10(%rsi), %r14
testq %r14, %r14
je 0x31334
movq %rsi, %r15
movq %rdi, %rbx
movq %r14, %rdi
callq 0xc4c0
cmpq $0x820, %rax            # imm = 0x820
jae 0x31354
movzbl 0x1(%r15), %edx
leal -0xd(%rdx), %eax
cmpb $-0x5, %al
jbe 0x31376
movq %r14, %rdi
callq 0xc0f0
movq %rax, 0x10(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
movq 0x21cbd(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x1303a(%rip), %rdi     # 0x4437f
pushq $0x1
popq %rdx
movl $0x95, %esi
callq 0xd000
jmp 0x3138e
movq 0x21c9d(%rip), %rcx     # 0x52ff8
movq (%rcx), %rdi
movzwl %ax, %edx
leaq 0x130ad(%rip), %rsi     # 0x44415
movl $0x820, %ecx            # imm = 0x820
xorl %eax, %eax
callq 0xc8d0
jmp 0x3138e
movq 0x21c7b(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x1311d(%rip), %rsi     # 0x444a4
xorl %eax, %eax
callq 0xc8d0
pushq $0xd
popq %rax
jmp 0x3132e
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: validate_conditional_formula
lxw_error
_validate_conditional_formula(lxw_cond_format_obj *cond_format,
                              lxw_conditional_format *user_options)
{
    if (!user_options->value_string) {

        LXW_WARN_FORMAT("worksheet_conditional_format_cell()/_range(): "
                        "For type = LXW_CONDITIONAL_TYPE_FORMULA, "
                        "value_string can not be NULL. "
                        "Formula must be specified.");

        return LXW_ERROR_PARAMETER_VALIDATION;
    }

    cond_format->min_value_string =
        lxw_strdup_formula(user_options->value_string);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rsi), %rdi
testq %rdi, %rdi
je 0x313ad
callq 0xc0f0
movq %rax, 0x10(%rbx)
xorl %eax, %eax
popq %rbx
retq
movq 0x21c44(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x13163(%rip), %rdi     # 0x44521
pushq $0x1
popq %rdx
movl $0x9b, %esi
callq 0xd000
pushq $0xd
popq %rax
jmp 0x313ab
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: validate_conditional_cell
lxw_error
_validate_conditional_cell(lxw_cond_format_obj *cond_format,
                           lxw_conditional_format *user_options)
{
    cond_format->min_value = user_options->value;
    cond_format->min_value_string =
        lxw_strdup_formula(user_options->value_string);

    if (cond_format->criteria == LXW_CONDITIONAL_CRITERIA_BETWEEN
        || cond_format->criteria == LXW_CONDITIONAL_CRITERIA_NOT_BETWEEN) {
        cond_format->has_max = LXW_TRUE;
        cond_format->min_value = user_options->min_value;
        cond_format->max_value = user_options->max_value;
        cond_format->min_value_string =
            lxw_strdup_formula(user_options->min_value_string);
        cond_format->max_value_string =
            lxw_strdup_formula(user_options->max_value_string);
    }

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movsd 0x8(%rsi), %xmm0
movsd %xmm0, 0x8(%rdi)
movq 0x10(%rsi), %rdi
callq 0xc0f0
movq %rax, 0x10(%rbx)
movb 0x1(%rbx), %al
addb $-0x7, %al
cmpb $0x1, %al
ja 0x3142e
movb $0x1, 0x74(%rbx)
movsd 0x20(%r14), %xmm0
movsd %xmm0, 0x8(%rbx)
movsd 0x50(%r14), %xmm0
movsd %xmm0, 0x38(%rbx)
movq 0x28(%r14), %rdi
callq 0xc0f0
movq %rax, 0x10(%rbx)
movq 0x58(%r14), %rdi
callq 0xc0f0
movq %rax, 0x40(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_page_margins
STATIC void
_worksheet_write_page_margins(lxw_worksheet *self)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    double left = self->margin_left;
    double right = self->margin_right;
    double top = self->margin_top;
    double bottom = self->margin_bottom;
    double header = self->margin_header;
    double footer = self->margin_footer;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_DBL("left", left);
    LXW_PUSH_ATTRIBUTES_DBL("right", right);
    LXW_PUSH_ATTRIBUTES_DBL("top", top);
    LXW_PUSH_ATTRIBUTES_DBL("bottom", bottom);
    LXW_PUSH_ATTRIBUTES_DBL("header", header);
    LXW_PUSH_ATTRIBUTES_DBL("footer", footer);

    lxw_xml_empty_tag(self->file, "pageMargins", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
movsd 0x168(%rdi), %xmm0
movsd 0x170(%rdi), %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x178(%rdi), %xmm1
movsd %xmm1, 0x10(%rsp)
movsd 0x180(%rdi), %xmm1
movsd %xmm1, 0x18(%rsp)
movsd 0x188(%rdi), %xmm1
movsd %xmm1, 0x20(%rsp)
movsd 0x190(%rdi), %xmm1
movsd %xmm1, 0x28(%rsp)
leaq 0x30(%rsp), %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x107ac(%rip), %rdi     # 0x42659
callq 0xccf0
movl $0x1040, %r15d          # imm = 0x1040
andq $0x0, 0x1040(%rax)
leaq (%rax,%r15), %rcx
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xe86f(%rip), %rdi      # 0x40745
movsd 0x8(%rsp), %xmm0
callq 0xccf0
andq $0x0, 0x1040(%rax)
leaq (%rax,%r15), %rcx
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xe84c(%rip), %rdi      # 0x4074b
movsd 0x10(%rsp), %xmm0
callq 0xccf0
andq $0x0, 0x1040(%rax)
leaq (%rax,%r15), %rcx
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xe827(%rip), %rdi      # 0x4074f
movsd 0x18(%rsp), %xmm0
callq 0xccf0
andq $0x0, 0x1040(%rax)
leaq (%rax,%r15), %rcx
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xcb5a(%rip), %rdi      # 0x3eaab
movsd 0x20(%rsp), %xmm0
callq 0xccf0
andq $0x0, 0x1040(%rax)
leaq (%rax,%r15), %rcx
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xcb3c(%rip), %rdi      # 0x3eab6
movsd 0x28(%rsp), %xmm0
callq 0xccf0
addq %rax, %r15
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r15, 0x8(%rbx)
movq (%r14), %rdi
leaq 0xcb1a(%rip), %rsi      # 0x3eabf
movq %rbx, %rdx
callq 0xcc70
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x31fd4
movq 0x1040(%rdi), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
jne 0x31fcd
movq %rbx, 0x38(%rsp)
callq 0xc0d0
jmp 0x31fad
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_drawings
STATIC void
_worksheet_write_drawings(lxw_worksheet *self)
{
    if (!self->drawing)
        return;

    self->rel_count++;

    _worksheet_write_drawing(self, self->rel_count);
}

// Assembly:
cmpq $0x0, 0x290(%rdi)
je 0x3209f
pushq %r15
pushq %r14
pushq %rbx
subq $0x830, %rsp            # imm = 0x830
movq %rdi, %r14
movl 0x134(%rdi), %eax
incl %eax
movw %ax, 0x134(%rdi)
movzwl %ax, %ecx
leaq 0xd763(%rip), %rdx      # 0x3f779
leaq 0x10(%rsp), %r15
pushq $0x20
popq %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0xc5b0
movq %rsp, %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0xd745(%rip), %rdi      # 0x3f77f
movq %r15, %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x11e4b(%rip), %rsi     # 0x43eb1
movq %rbx, %rdx
callq 0xcc70
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x32093
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3208c
movq %rbx, 0x8(%rsp)
callq 0xc0d0
jmp 0x3206e
addq $0x830, %rsp            # imm = 0x830
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_header_footer
STATIC void
_worksheet_write_header_footer(lxw_worksheet *self)
{
    if (!self->header_footer_changed)
        return;

    lxw_xml_start_tag(self->file, "headerFooter", NULL);

    if (self->header)
        _worksheet_write_odd_header(self);

    if (self->footer)
        _worksheet_write_odd_footer(self);

    lxw_xml_end_tag(self->file, "headerFooter");
}

// Assembly:
cmpb $0x0, 0x1ac(%rdi)
je 0x32b58
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0xbf8e(%rip), %rsi      # 0x3ea95
xorl %edx, %edx
callq 0xc380
movq 0x1b0(%rbx), %rdx
testq %rdx, %rdx
je 0x32b2b
movq (%rbx), %rdi
leaq 0x13086(%rip), %rsi     # 0x45baa
xorl %ecx, %ecx
callq 0xcba0
movq 0x1b8(%rbx), %rdx
testq %rdx, %rdx
je 0x32b48
movq (%rbx), %rdi
leaq 0x13073(%rip), %rsi     # 0x45bb4
xorl %ecx, %ecx
callq 0xcba0
movq (%rbx), %rdi
leaq 0xbf43(%rip), %rsi      # 0x3ea95
popq %rbx
jmp 0xc060
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_number
lxw_error
worksheet_write_number(lxw_worksheet *self,
                       lxw_row_t row_num,
                       lxw_col_t col_num, double value, lxw_format *format)
{
    lxw_cell *cell;
    lxw_error err;

    err = _check_dimensions(self, row_num, col_num, LXW_FALSE, LXW_FALSE);
    if (err)
        return err;

    cell = _new_number_cell(row_num, col_num, value, format);

    _insert_cell(self, row_num, col_num, cell);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r15
movsd %xmm0, 0x8(%rsp)
movl %edx, %r12d
movl %esi, %ebx
movq %rdi, %r14
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x36a6c
movl %eax, %ebp
testl %eax, %eax
jne 0x36a5d
movzwl %r12w, %r12d
movl %ebx, %edi
movl %r12d, %esi
movsd 0x8(%rsp), %xmm0
movq %r15, %rdx
callq 0x36aee
movq %r14, %rdi
movl %ebx, %esi
movl %r12d, %edx
movq %rax, %rcx
callq 0x36b65
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: check_dimensions
STATIC lxw_error
_check_dimensions(lxw_worksheet *self,
                  lxw_row_t row_num,
                  lxw_col_t col_num, int8_t ignore_row, int8_t ignore_col)
{
    if (row_num >= LXW_ROW_MAX)
        return LXW_ERROR_WORKSHEET_INDEX_OUT_OF_RANGE;

    if (col_num >= LXW_COL_MAX)
        return LXW_ERROR_WORKSHEET_INDEX_OUT_OF_RANGE;

    /* In optimization mode we don't change dimensions for rows that are */
    /* already written. */
    if (!ignore_row && !ignore_col && self->optimize) {
        if (row_num < self->optimize_row->row_num)
            return LXW_ERROR_WORKSHEET_INDEX_OUT_OF_RANGE;
    }

    if (!ignore_row) {
        if (row_num < self->dim_rowmin)
            self->dim_rowmin = row_num;
        if (row_num > self->dim_rowmax)
            self->dim_rowmax = row_num;
    }

    if (!ignore_col) {
        if (col_num < self->dim_colmin)
            self->dim_colmin = col_num;
        if (col_num > self->dim_colmax)
            self->dim_colmax = col_num;
    }

    return LXW_NO_ERROR;
}

// Assembly:
cmpl $0x100000, %esi         # imm = 0x100000
setae %al
cmpw $0x4000, %dx            # imm = 0x4000
setae %r9b
orb %al, %r9b
pushq $0x17
popq %rax
jne 0x36ab5
movl %r8d, %r9d
orb %cl, %r9b
je 0x36ab6
testb %cl, %cl
jne 0x36aae
cmpl %esi, 0xa4(%rdi)
jbe 0x36aa0
movl %esi, 0xa4(%rdi)
cmpl %esi, 0xa8(%rdi)
jae 0x36aae
movl %esi, 0xa8(%rdi)
xorl %eax, %eax
testb %r8b, %r8b
je 0x36acd
retq
cmpb $0x0, 0x11c(%rdi)
je 0x36a8e
movq 0x120(%rdi), %r9
cmpl %esi, (%r9)
jbe 0x36a8e
jmp 0x36ab5
cmpw %dx, 0xac(%rdi)
jbe 0x36add
movw %dx, 0xac(%rdi)
cmpw %dx, 0xae(%rdi)
jae 0x36ab5
movw %dx, 0xae(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: new_number_cell
STATIC lxw_cell *
_new_number_cell(lxw_row_t row_num,
                 lxw_col_t col_num, double value, lxw_format *format)
{
    lxw_cell *cell = calloc(1, sizeof(lxw_cell));
    RETURN_ON_MEM_ERROR(cell, cell);

    cell->row_num = row_num;
    cell->col_num = col_num;
    cell->type = NUMBER_CELL;
    cell->format = format;
    cell->u.number = value;

    return cell;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movsd %xmm0, (%rsp)
movl %esi, %ebp
movl %edi, %r15d
pushq $0x1
popq %rdi
pushq $0x68
popq %rsi
callq 0xc850
movq %rax, %rbx
testq %rax, %rax
je 0x36b3f
movl %r15d, (%rbx)
movw %bp, 0x4(%rbx)
movl $0x1, 0x8(%rbx)
movq %r14, 0x10(%rbx)
movsd (%rsp), %xmm0
movsd %xmm0, 0x20(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x1c4b2(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x6590(%rip), %rsi      # 0x3d0e0
leaq 0xce89(%rip), %rdx      # 0x439e0
movl $0x34b, %ecx            # imm = 0x34B
xorl %eax, %eax
callq 0xc8d0
jmp 0x36b31
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: insert_cell
STATIC void
_insert_cell(lxw_worksheet *self, lxw_row_t row_num, lxw_col_t col_num,
             lxw_cell *cell)
{
    lxw_row *row = _get_row(self, row_num);

    if (!self->optimize) {
        row->data_changed = LXW_TRUE;
        _insert_cell_list(row->cells, cell, col_num);
    }
    else {
        if (row) {
            row->data_changed = LXW_TRUE;

            /* Overwrite an existing cell if necessary. */
            if (self->array[col_num])
                _free_cell(self->array[col_num]);

            self->array[col_num] = cell;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movq %rdi, %r14
callq 0x3819f
cmpb $0x0, 0x11c(%r14)
je 0x36bb5
testq %rax, %rax
je 0x36baa
movb $0x1, 0x1c(%rax)
movq 0x38(%r14), %rax
movzwl %bp, %r15d
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x36ba6
callq 0x2caea
movq 0x38(%r14), %rax
movq %rbx, (%rax,%r15,8)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, 0x1c(%rax)
movq 0x20(%rax), %rdi
movzwl %bp, %edx
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3bf07
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_blank
lxw_error
worksheet_write_blank(lxw_worksheet *self,
                      lxw_row_t row_num, lxw_col_t col_num,
                      lxw_format *format)
{
    lxw_cell *cell;
    lxw_error err;

    /* Blank cells without formatting are ignored by Excel. */
    if (!format)
        return LXW_NO_ERROR;

    err = _check_dimensions(self, row_num, col_num, LXW_FALSE, LXW_FALSE);
    if (err)
        return err;

    cell = _new_blank_cell(row_num, col_num, format);

    _insert_cell(self, row_num, col_num, cell);

    return LXW_NO_ERROR;
}

// Assembly:
testq %rcx, %rcx
je 0x36c21
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r15
movl %esi, %ebx
movq %rdi, %r14
movzwl %dx, %ebp
movl %ebp, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x36a6c
testl %eax, %eax
jne 0x36c16
movl %ebx, %edi
movl %ebp, %esi
movq %r15, %rdx
callq 0x37072
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
movq %rax, %rcx
callq 0x36b65
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: new_string_cell
STATIC lxw_cell *
_new_string_cell(lxw_row_t row_num,
                 lxw_col_t col_num, int32_t string_id, char *sst_string,
                 lxw_format *format)
{
    lxw_cell *cell = calloc(1, sizeof(lxw_cell));
    RETURN_ON_MEM_ERROR(cell, cell);

    cell->row_num = row_num;
    cell->col_num = col_num;
    cell->type = STRING_CELL;
    cell->format = format;
    cell->u.string_id = string_id;
    cell->sst_string = sst_string;

    return cell;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %r14
movl %edx, %ebp
movl %esi, %r12d
movl %edi, %r13d
pushq $0x1
popq %rdi
pushq $0x68
popq %rsi
callq 0xc850
movq %rax, %rbx
testq %rax, %rax
je 0x36c7c
movl %r13d, (%rbx)
movw %r12w, 0x4(%rbx)
movl $0x2, 0x8(%rbx)
movq %r15, 0x10(%rbx)
movl %ebp, 0x20(%rbx)
movq %r14, 0x40(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1c375(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x6453(%rip), %rsi      # 0x3d0e0
leaq 0xcd4c(%rip), %rdx      # 0x439e0
movl $0x35f, %ecx            # imm = 0x35F
xorl %eax, %eax
callq 0xc8d0
jmp 0x36c6a
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: new_formula_cell
STATIC lxw_cell *
_new_formula_cell(lxw_row_t row_num,
                  lxw_col_t col_num, char *formula, lxw_format *format)
{
    lxw_cell *cell = calloc(1, sizeof(lxw_cell));
    RETURN_ON_MEM_ERROR(cell, cell);

    cell->row_num = row_num;
    cell->col_num = col_num;
    cell->type = FORMULA_CELL;
    cell->format = format;
    cell->u.string = formula;

    return cell;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movl %edi, %r12d
pushq $0x1
popq %rdi
pushq $0x68
popq %rsi
callq 0xc850
movq %rax, %rbx
testq %rax, %rax
je 0x36cea
movl %r12d, (%rbx)
movw %bp, 0x4(%rbx)
movl $0x5, 0x8(%rbx)
movq %r15, 0x10(%rbx)
movq %r14, 0x20(%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x1c307(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x63e5(%rip), %rsi      # 0x3d0e0
leaq 0xccde(%rip), %rdx      # 0x439e0
movl $0x39a, %ecx            # imm = 0x39A
xorl %eax, %eax
callq 0xc8d0
jmp 0x36cde
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_formula_str
lxw_error
worksheet_write_formula_str(lxw_worksheet *self,
                            lxw_row_t row_num,
                            lxw_col_t col_num,
                            const char *formula,
                            lxw_format *format, const char *result)
{
    lxw_cell *cell;
    char *formula_copy;
    lxw_error err;

    if (!formula)
        return LXW_ERROR_NULL_PARAMETER_IGNORED;

    err = _check_dimensions(self, row_num, col_num, LXW_FALSE, LXW_FALSE);
    if (err)
        return err;

    /* Strip leading "=" from formula. */
    if (formula[0] == '=')
        formula_copy = lxw_strdup(formula + 1);
    else
        formula_copy = lxw_strdup(formula);

    cell = _new_formula_cell(row_num, col_num, formula_copy, format);
    cell->user_data2 = lxw_strdup(result);

    _insert_cell(self, row_num, col_num, cell);

    return LXW_NO_ERROR;
}

// Assembly:
testq %rcx, %rcx
je 0x36d93
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r15
movq %r8, %r12
movq %rcx, %r13
movl %esi, %ebx
movq %rdi, %r14
movzwl %dx, %ebp
movl %ebp, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x36a6c
testl %eax, %eax
jne 0x36d84
xorl %edi, %edi
cmpb $0x3d, (%r13)
sete %dil
addq %r13, %rdi
callq 0xcd50
movl %ebx, %edi
movl %ebp, %esi
movq %rax, %rdx
movq %r12, %rcx
callq 0x36ca2
movq %rax, %r12
movq %r15, %rdi
callq 0xcd50
movq %rax, 0x38(%r12)
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
movq %r12, %rcx
callq 0x36b65
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0xc
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: new_blank_cell
STATIC lxw_cell *
_new_blank_cell(lxw_row_t row_num, lxw_col_t col_num, lxw_format *format)
{
    lxw_cell *cell = calloc(1, sizeof(lxw_cell));
    RETURN_ON_MEM_ERROR(cell, cell);

    cell->row_num = row_num;
    cell->col_num = col_num;
    cell->type = BLANK_CELL;
    cell->format = format;

    return cell;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebp
movl %edi, %r15d
pushq $0x1
popq %rdi
pushq $0x68
popq %rsi
callq 0xc850
movq %rax, %rbx
testq %rax, %rax
je 0x370b4
movl %r15d, (%rbx)
movw %bp, 0x4(%rbx)
movl $0x8, 0x8(%rbx)
movq %r14, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x1bf3d(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x601b(%rip), %rsi      # 0x3d0e0
leaq 0xc914(%rip), %rdx      # 0x439e0
movl $0x3c4, %ecx            # imm = 0x3C4
xorl %eax, %eax
callq 0xc8d0
jmp 0x370a6
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_boolean
lxw_error
worksheet_write_boolean(lxw_worksheet *self,
                        lxw_row_t row_num, lxw_col_t col_num,
                        int value, lxw_format *format)
{
    lxw_cell *cell;
    lxw_error err;

    err = _check_dimensions(self, row_num, col_num, LXW_FALSE, LXW_FALSE);
    if (err)
        return err;

    cell = _new_boolean_cell(row_num, col_num, value, format);

    _insert_cell(self, row_num, col_num, cell);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r13
movl %ecx, %r12d
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r14
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x36a6c
movl %eax, %r15d
testl %eax, %eax
jne 0x37150
movl %r12d, 0x4(%rsp)
pushq $0x1
popq %rdi
pushq $0x68
popq %rsi
callq 0xc850
movq %rax, %r12
testq %rax, %rax
je 0x37162
movl %ebx, (%r12)
movw %bp, 0x4(%r12)
movl $0x9, 0x8(%r12)
movq %r13, 0x10(%r12)
cvtsi2sdl 0x4(%rsp), %xmm0
movsd %xmm0, 0x20(%r12)
movzwl %bp, %edx
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rcx
callq 0x36b65
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1be8f(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x5f6d(%rip), %rsi      # 0x3d0e0
leaq 0xc866(%rip), %rdx      # 0x439e0
movl $0x3d6, %ecx            # imm = 0x3D6
xorl %eax, %eax
callq 0xc8d0
jmp 0x37140
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_datetime
lxw_error
worksheet_write_datetime(lxw_worksheet *self,
                         lxw_row_t row_num,
                         lxw_col_t col_num, lxw_datetime *datetime,
                         lxw_format *format)
{
    lxw_cell *cell;
    double excel_date;
    lxw_error err;

    err = _check_dimensions(self, row_num, col_num, LXW_FALSE, LXW_FALSE);
    if (err)
        return err;

    excel_date = lxw_datetime_to_excel_date_epoch(datetime, LXW_EPOCH_1900);

    cell = _new_number_cell(row_num, col_num, excel_date, format);

    _insert_cell(self, row_num, col_num, cell);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %r13
movl %edx, %r12d
movl %esi, %ebx
movq %rdi, %r14
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x36a6c
movl %eax, %ebp
testl %eax, %eax
jne 0x371dc
movq %r13, %rdi
xorl %esi, %esi
callq 0xccb0
movzwl %r12w, %r12d
movl %ebx, %edi
movl %r12d, %esi
movq %r15, %rdx
callq 0x36aee
movq %r14, %rdi
movl %ebx, %esi
movl %r12d, %edx
movq %rax, %rcx
callq 0x36b65
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_unixtime
lxw_error
worksheet_write_unixtime(lxw_worksheet *self,
                         lxw_row_t row_num,
                         lxw_col_t col_num,
                         int64_t unixtime, lxw_format *format)
{
    lxw_cell *cell;
    double excel_date;
    lxw_error err;

    err = _check_dimensions(self, row_num, col_num, LXW_FALSE, LXW_FALSE);
    if (err)
        return err;

    excel_date = lxw_unixtime_to_excel_date_epoch(unixtime, LXW_EPOCH_1900);

    cell = _new_number_cell(row_num, col_num, excel_date, format);

    _insert_cell(self, row_num, col_num, cell);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %r13
movl %edx, %r12d
movl %esi, %ebx
movq %rdi, %r14
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x36a6c
movl %eax, %ebp
testl %eax, %eax
jne 0x37241
movq %r13, %rdi
xorl %esi, %esi
callq 0xcad0
movzwl %r12w, %r12d
movl %ebx, %edi
movl %r12d, %esi
movq %r15, %rdx
callq 0x36aee
movq %r14, %rdi
movl %ebx, %esi
movl %r12d, %edx
movq %rax, %rcx
callq 0x36b65
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: next_power_of_two
STATIC lxw_col_t
_next_power_of_two(uint16_t col)
{
    col--;
    col |= col >> 1;
    col |= col >> 2;
    col |= col >> 4;
    col |= col >> 8;
    col++;

    return col;
}

// Assembly:
leal -0x1(%rdi), %eax
movl $0xffff, %ecx           # imm = 0xFFFF
movl %eax, %edx
andl %ecx, %edx
shrl %edx
orl %eax, %edx
movl %edx, %eax
andl %ecx, %eax
shrl $0x2, %eax
orl %edx, %eax
andl %eax, %ecx
shrl $0x4, %ecx
orl %eax, %ecx
movzbl %ch, %eax
orl %ecx, %eax
incl %eax
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_set_column_pixels
STATIC double
_pixels_to_width(double pixels)
{
    double max_digit_width = 7.0;
    double padding = 5.0;
    double width;

    if (pixels == LXW_DEF_COL_WIDTH_PIXELS)
        width = LXW_DEF_COL_WIDTH;
    else if (pixels <= 12.0)
        width = pixels / (max_digit_width + padding);
    else
        width = (pixels - padding) / max_digit_width;

    return width;
}

// Assembly:
cmpl $0x40, %ecx
jne 0x3802f
movsd 0xb6fb(%rip), %xmm0     # 0x43728
jmp 0x38055
movl %ecx, %eax
cvtsi2sd %rax, %xmm0
cmpl $0xc, %ecx
jbe 0x3804d
addsd 0xb74d(%rip), %xmm0     # 0x43790
divsd 0xb6ad(%rip), %xmm0     # 0x436f8
jmp 0x38055
divsd 0xb6ab(%rip), %xmm0     # 0x43700
movzwl %si, %esi
movzwl %dx, %edx
movq %r8, %rcx
xorl %r8d, %r8d
jmp 0xc7a0
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_set_row_opt
lxw_error
worksheet_set_row_opt(lxw_worksheet *self,
                      lxw_row_t row_num,
                      double height,
                      lxw_format *format, lxw_row_col_options *user_options)
{

    lxw_col_t min_col;
    uint8_t hidden = LXW_FALSE;
    uint8_t level = 0;
    uint8_t collapsed = LXW_FALSE;
    lxw_row *row;
    lxw_error err;

    if (user_options) {
        hidden = user_options->hidden;
        level = user_options->level;
        collapsed = user_options->collapsed;
    }

    /* Use minimum col in _check_dimensions(). */
    if (self->dim_colmin != LXW_COL_MAX)
        min_col = self->dim_colmin;
    else
        min_col = 0;

    err = _check_dimensions(self, row_num, min_col, LXW_FALSE, LXW_FALSE);
    if (err)
        return err;

    /* If the height is 0 the row is hidden and the height is the default. */
    if (height == 0) {
        hidden = LXW_TRUE;
        height = self->default_row_height;
    }

    /* Ensure the level is <= 7). */
    if (level > 7)
        level = 7;

    if (level > self->outline_row_level)
        self->outline_row_level = level;

    /* Store the row properties. */
    row = _get_row(self, row_num);

    row->height = height;
    row->format = format;
    row->hidden = hidden;
    row->level = level;
    row->collapsed = collapsed;
    row->row_changed = LXW_TRUE;

    if (height != self->default_row_height)
        row->height_changed = LXW_TRUE;

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movl %esi, %ebp
movq %rdi, %rbx
xorl %eax, %eax
testq %rcx, %rcx
je 0x380de
movb (%rcx), %r13b
movb 0x1(%rcx), %r14b
movb 0x2(%rcx), %r12b
jmp 0x380e7
xorl %r13d, %r13d
xorl %r14d, %r14d
xorl %r12d, %r12d
movl 0xac(%rbx), %ecx
cmpw $0x4000, %cx            # imm = 0x4000
cmovel %eax, %ecx
movzwl %cx, %edx
movq %rbx, %rdi
movl %ebp, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x36a6c
movl %eax, %r15d
testl %eax, %eax
jne 0x3818d
xorpd %xmm0, %xmm0
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x38131
jp 0x38131
movsd 0x198(%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
movb $0x1, %r13b
movzbl %r14b, %eax
cmpb $0x7, %al
pushq $0x7
popq %r14
cmovbl %eax, %r14d
cmpb 0x1aa(%rbx), %r14b
jbe 0x3814f
movb %r14b, 0x1aa(%rbx)
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3819f
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x10(%rax)
movb %r13b, 0x18(%rax)
movb %r14b, 0x19(%rax)
movb %r12b, 0x1a(%rax)
movb $0x1, 0x1b(%rax)
ucomisd 0x198(%rbx), %xmm0
jne 0x38189
jnp 0x3818d
movb $0x1, 0x1d(%rax)
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: get_row
STATIC lxw_row *
_get_row(lxw_worksheet *self, lxw_row_t row_num)
{
    lxw_row *row;

    if (!self->optimize) {
        row = _get_row_list(self->table, row_num);
        return row;
    }
    else {
        if (row_num < self->optimize_row->row_num) {
            return NULL;
        }
        else if (row_num == self->optimize_row->row_num) {
            return self->optimize_row;
        }
        else {
            /* Flush row. */
            lxw_worksheet_write_single_row(self);
            row = self->optimize_row;
            row->row_num = row_num;
            return row;
        }
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
cmpb $0x0, 0x11c(%rdi)
je 0x381c0
movq 0x120(%r14), %rax
cmpl %ebx, (%rax)
jbe 0x381d2
xorl %eax, %eax
jmp 0x381e5
movq 0x20(%r14), %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3c198
je 0x381e5
movq %r14, %rdi
callq 0xc3e0
movq 0x120(%r14), %rax
movl %ebx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_autofilter
lxw_error
worksheet_autofilter(lxw_worksheet *self, lxw_row_t first_row,
                     lxw_col_t first_col, lxw_row_t last_row,
                     lxw_col_t last_col)
{
    lxw_row_t tmp_row;
    lxw_col_t tmp_col;
    lxw_error err;
    lxw_filter_rule_obj **filter_rules;
    lxw_col_t num_filter_rules;

    /* Swap last row/col with first row/col as necessary */
    if (first_row > last_row) {
        tmp_row = last_row;
        last_row = first_row;
        first_row = tmp_row;
    }
    if (first_col > last_col) {
        tmp_col = last_col;
        last_col = first_col;
        first_col = tmp_col;
    }

    /* Check that column number is valid and store the max value */
    err = _check_dimensions(self, last_row, last_col, LXW_FALSE, LXW_FALSE);
    if (err)
        return err;

    /* Create a array to hold filter rules. */
    self->autofilter.in_use = LXW_FALSE;
    self->autofilter.has_rules = LXW_FALSE;
    _free_filter_rules(self);
    num_filter_rules = last_col - first_col + 1;
    filter_rules = calloc(num_filter_rules, sizeof(lxw_filter_rule_obj *));
    RETURN_ON_MEM_ERROR(filter_rules, LXW_ERROR_MEMORY_MALLOC_FAILED);

    self->autofilter.in_use = LXW_TRUE;
    self->autofilter.first_row = first_row;
    self->autofilter.first_col = first_col;
    self->autofilter.last_row = last_row;
    self->autofilter.last_col = last_col;

    self->filter_rules = filter_rules;
    self->num_filter_rules = num_filter_rules;

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movl %ecx, %ebp
cmpl %ecx, %esi
movl %ecx, %r14d
cmoval %esi, %r14d
cmovbl %esi, %ebp
cmpw %bx, %dx
movl %r8d, %r12d
cmoval %edx, %r12d
movq %rdi, %r15
cmovbl %edx, %ebx
movl %r14d, %esi
movl %r12d, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x36a6c
testl %eax, %eax
jne 0x3840f
andw $0x0, 0x1e4(%r15)
movq %r15, %rdi
callq 0x2caa8
movl %r12d, %r13d
subl %ebx, %r13d
incl %r13d
movzwl %r13w, %edi
pushq $0x8
popq %rsi
callq 0xc850
testq %rax, %rax
je 0x3841e
movb $0x1, 0x1e4(%r15)
movl %ebp, 0x1e8(%r15)
movw %bx, 0x1f0(%r15)
movl %r14d, 0x1ec(%r15)
movw %r12w, 0x1f2(%r15)
movq %rax, 0x3b0(%r15)
movw %r13w, 0x3b8(%r15)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1abd3(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x4cb1(%rip), %rsi      # 0x3d0e0
leaq 0xb5aa(%rip), %rdx      # 0x439e0
movl $0x231d, %ecx           # imm = 0x231D
xorl %eax, %eax
callq 0xc8d0
pushq $0x1
popq %rax
jmp 0x3840f
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: free_filter_rule
STATIC void
_free_filter_rule(lxw_filter_rule_obj *rule_obj)
{
    uint16_t i;

    if (!rule_obj)
        return;

    free(rule_obj->value1_string);
    free(rule_obj->value2_string);

    if (rule_obj->list) {
        for (i = 0; i < rule_obj->num_list_filters; i++)
            free(rule_obj->list[i]);

        free(rule_obj->list);
    }

    free(rule_obj);
}

// Assembly:
testq %rdi, %rdi
je 0x3860a
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0xc0d0
movq 0x20(%rbx), %rdi
callq 0xc0d0
cmpq $0x0, 0x30(%rbx)
je 0x385fb
xorl %r14d, %r14d
movzwl 0x28(%rbx), %eax
movq 0x30(%rbx), %rdi
cmpq %rax, %r14
jae 0x385f6
movq (%rdi,%r14,8), %rdi
callq 0xc0d0
incq %r14
jmp 0x385db
callq 0xc0d0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc0d0
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_set_h_pagebreaks
lxw_error
worksheet_set_h_pagebreaks(lxw_worksheet *self, lxw_row_t hbreaks[])
{
    uint16_t count = 0;

    if (hbreaks == NULL)
        return LXW_ERROR_NULL_PARAMETER_IGNORED;

    while (hbreaks[count])
        count++;

    /* The Excel 2007 specification says that the maximum number of page
     * breaks is 1026. However, in practice it is actually 1023. */
    if (count > LXW_BREAKS_MAX)
        count = LXW_BREAKS_MAX;

    self->hbreaks = calloc(count, sizeof(lxw_row_t));
    RETURN_ON_MEM_ERROR(self->hbreaks, LXW_ERROR_MEMORY_MALLOC_FAILED);
    memcpy(self->hbreaks, hbreaks, count * sizeof(lxw_row_t));
    self->hbreaks_count = count;

    return LXW_NO_ERROR;
}

// Assembly:
testq %rsi, %rsi
je 0x3969a
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movw $0xffff, %ax            # imm = 0xFFFF
incl %eax
movzwl %ax, %ecx
cmpl $0x0, (%r14,%rcx,4)
jne 0x39641
cmpw $0x3ff, %ax             # imm = 0x3FF
movl $0x3ff, %ebp            # imm = 0x3FF
cmovbl %eax, %ebp
movzwl %bp, %r15d
pushq $0x4
popq %rsi
movq %r15, %rdi
callq 0xc850
movq %rax, 0x1f8(%rbx)
testq %rax, %rax
je 0x3969e
shll $0x2, %r15d
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xc960
movw %bp, 0x208(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0xc
popq %rax
retq
movq 0x19953(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x3a31(%rip), %rsi      # 0x3d0e0
leaq 0xa32a(%rip), %rdx      # 0x439e0
movl $0x277f, %ecx           # imm = 0x277F
xorl %eax, %eax
callq 0xc8d0
pushq $0x1
popq %rax
jmp 0x3968f
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_set_v_pagebreaks
lxw_error
worksheet_set_v_pagebreaks(lxw_worksheet *self, lxw_col_t vbreaks[])
{
    uint16_t count = 0;

    if (vbreaks == NULL)
        return LXW_ERROR_NULL_PARAMETER_IGNORED;

    while (vbreaks[count])
        count++;

    /* The Excel 2007 specification says that the maximum number of page
     * breaks is 1026. However, in practice it is actually 1023. */
    if (count > LXW_BREAKS_MAX)
        count = LXW_BREAKS_MAX;

    self->vbreaks = calloc(count, sizeof(lxw_col_t));
    RETURN_ON_MEM_ERROR(self->vbreaks, LXW_ERROR_MEMORY_MALLOC_FAILED);
    memcpy(self->vbreaks, vbreaks, count * sizeof(lxw_col_t));
    self->vbreaks_count = count;

    return LXW_NO_ERROR;
}

// Assembly:
testq %rsi, %rsi
je 0x39736
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movw $0xffff, %ax            # imm = 0xFFFF
incl %eax
movzwl %ax, %ecx
cmpw $0x0, (%r14,%rcx,2)
jne 0x396dd
cmpw $0x3ff, %ax             # imm = 0x3FF
movl $0x3ff, %ebp            # imm = 0x3FF
cmovbl %eax, %ebp
movzwl %bp, %r15d
pushq $0x2
popq %rsi
movq %r15, %rdi
callq 0xc850
movq %rax, 0x200(%rbx)
testq %rax, %rax
je 0x3973a
addl %r15d, %r15d
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xc960
movw %bp, 0x20a(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0xc
popq %rax
retq
movq 0x198b7(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x3995(%rip), %rsi      # 0x3d0e0
leaq 0xa28e(%rip), %rdx      # 0x439e0
movl $0x279a, %ecx           # imm = 0x279A
xorl %eax, %eax
callq 0xc8d0
pushq $0x1
popq %rax
jmp 0x3972b
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_set_zoom
void
worksheet_set_zoom(lxw_worksheet *self, uint16_t scale)
{
    /* Confine the scale to Excel"s range */
    if (scale < 10 || scale > 400) {
        LXW_WARN("worksheet_set_zoom(): "
                 "Zoom factor scale outside range: 10 <= zoom <= 400.");
        return;
    }

    self->zoom = scale;
}

// Assembly:
leal -0x191(%rsi), %eax
cmpw $0xfe78, %ax            # imm = 0xFE78
jbe 0x39777
movw %si, 0x138(%rdi)
retq
movq 0x1987a(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0xb4a9(%rip), %rdi      # 0x44c31
pushq $0x55
popq %rsi
pushq $0x1
popq %rdx
jmp 0xd000
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_set_default_row
void
worksheet_set_default_row(lxw_worksheet *self, double height,
                          uint8_t hide_unused_rows)
{
    if (height < 0)
        height = self->default_row_height;

    if (height != self->default_row_height) {
        self->default_row_height = height;
        self->row_size_changed = LXW_TRUE;
    }

    if (hide_unused_rows)
        self->default_row_zeroed = LXW_TRUE;

    self->default_row_set = LXW_TRUE;
}

// Assembly:
movsd 0x198(%rdi), %xmm2
xorpd %xmm3, %xmm3
movapd %xmm0, %xmm1
cmpltsd %xmm3, %xmm1
movapd %xmm1, %xmm3
andpd %xmm2, %xmm3
andnpd %xmm0, %xmm1
orpd %xmm3, %xmm1
ucomisd %xmm2, %xmm1
jne 0x3986a
jnp 0x39879
movsd %xmm1, 0x198(%rdi)
movb $0x1, 0x11b(%rdi)
testb %sil, %sil
je 0x39885
movb $0x1, 0x1a8(%rdi)
movb $0x1, 0x1a9(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_set_background
lxw_error
worksheet_set_background(lxw_worksheet *self, const char *filename)
{
    FILE *image_stream;
    lxw_object_properties *object_props;

    if (!filename) {
        LXW_WARN("worksheet_set_background(): "
                 "filename must be specified.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    /* Check that the image file exists and can be opened. */
    image_stream = lxw_fopen(filename, "rb");
    if (!image_stream) {
        LXW_WARN_FORMAT1("worksheet_set_background(): "
                         "file doesn't exist or can't be opened: %s.",
                         filename);
        return LXW_ERROR_PARAMETER_VALIDATION;
    }

    /* Create a new object to hold the image properties. */
    object_props = calloc(1, sizeof(lxw_object_properties));
    if (!object_props) {
        fclose(image_stream);
        return LXW_ERROR_MEMORY_MALLOC_FAILED;
    }

    /* Copy other options or set defaults. */
    object_props->filename = lxw_strdup(filename);
    object_props->stream = image_stream;
    object_props->is_background = LXW_TRUE;

    if (_get_image_properties(object_props) == LXW_NO_ERROR) {
        _free_object_properties(self->background_image);
        self->background_image = object_props;
        self->has_background_image = LXW_TRUE;
        fclose(image_stream);
        return LXW_NO_ERROR;
    }
    else {
        _free_object_properties(object_props);
        fclose(image_stream);
        return LXW_ERROR_IMAGE_DIMENSIONS;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x39d93
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x330e(%rip), %rsi      # 0x3d000
movq %r15, %rdi
callq 0xc270
testq %rax, %rax
je 0x39db3
movq %rax, %r14
pushq $0x1
popq %rdi
movl $0xc0, %esi
callq 0xc850
testq %rax, %rax
je 0x39d56
movq %rax, %r12
movq %r15, %rdi
callq 0xcd50
movq %rax, 0x20(%r12)
movq %r14, 0x48(%r12)
movb $0x1, 0x99(%r12)
movq %r12, %rdi
callq 0x306b6
testl %eax, %eax
je 0x39d63
movq %r12, %rdi
callq 0x2c85b
movq %r14, %rdi
callq 0xc450
pushq $0x1a
jmp 0x39d60
movq %r14, %rdi
callq 0xc450
pushq $0x1
popq %rax
jmp 0x39d87
movq 0x3a8(%rbx), %rdi
callq 0x2c85b
movq %r12, 0x3a8(%rbx)
movb $0x1, 0x2a3(%rbx)
movq %r14, %rdi
callq 0xc450
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x1925e(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0xb02d(%rip), %rdi      # 0x44dd1
pushq $0x43
popq %rsi
pushq $0x1
popq %rdx
callq 0xd000
pushq $0xc
jmp 0x39d60
movq 0x1923e(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0xb051(%rip), %rsi      # 0x44e15
movq %r15, %rdx
xorl %eax, %eax
callq 0xc8d0
pushq $0xd
jmp 0x39d60
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_insert_button
lxw_error
worksheet_insert_button(lxw_worksheet *self, lxw_row_t row_num,
                        lxw_col_t col_num, lxw_button_options *options)
{
    lxw_error err;
    lxw_vml_obj *button;

    err = _check_dimensions(self, row_num, col_num, LXW_TRUE, LXW_TRUE);
    if (err)
        return err;

    button = calloc(1, sizeof(lxw_vml_obj));
    GOTO_LABEL_ON_MEM_ERROR(button, mem_error);

    button->row = row_num;
    button->col = col_num;

    /* Set user and default parameters for the button. */
    err = _get_button_params(button, 1 + self->num_buttons, options);
    if (err)
        goto mem_error;

    /* Calculate the worksheet position of the button. */
    _worksheet_position_vml_object(self, button);

    self->has_vml = LXW_TRUE;
    self->has_buttons = LXW_TRUE;
    self->num_buttons++;

    STAILQ_INSERT_TAIL(self->button_objs, button, list_pointers);

    return LXW_NO_ERROR;

mem_error:
    if (button)
        _free_vml_object(button);

    return LXW_ERROR_MEMORY_MALLOC_FAILED;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movl %edx, %ebp
cmpl $0x100000, %esi         # imm = 0x100000
setae %al
cmpw $0x4000, %bp            # imm = 0x4000
setae %cl
orb %al, %cl
je 0x3a9e6
pushq $0x17
jmp 0x3aa30
movl %esi, %r12d
movq %rdi, %rbx
pushq $0x1
popq %rdi
movl $0xc0, %esi
callq 0xc850
testq %rax, %rax
je 0x3aa88
movq %rax, %r14
movl %r12d, (%rax)
movw %bp, 0x4(%rax)
movl 0x160(%rbx), %eax
incl %eax
movzwl %ax, %esi
movq %r14, %rdi
movq %r15, %rdx
callq 0xc390
testl %eax, %eax
je 0x3aa3a
movq %r14, %rdi
callq 0x2c8bc
pushq $0x1
popq %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
callq 0xcc40
movb $0x1, %al
movb %al, 0x2a0(%rbx)
movb %al, 0x2a4(%rbx)
incw 0x160(%rbx)
andq $0x0, 0xb8(%r14)
movq %r14, %rax
addq $0xb8, %rax
movq 0x90(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %r14, (%rcx)
movq 0x90(%rbx), %rcx
movq %rax, 0x8(%rcx)
xorl %eax, %eax
jmp 0x3aa31
movq 0x18569(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x2647(%rip), %rsi      # 0x3d0e0
leaq 0x8f40(%rip), %rdx      # 0x439e0
movl $0x2ba7, %ecx           # imm = 0x2BA7
xorl %eax, %eax
callq 0xc8d0
jmp 0x3aa2e
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_set_vba_name
lxw_error
worksheet_set_vba_name(lxw_worksheet *self, const char *name)
{
    if (!name) {
        LXW_WARN("worksheet_set_vba_name(): " "name must be specified.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    self->vba_codename = lxw_strdup(name);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbx
testq %rsi, %rsi
je 0x3aaca
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xcd50
movq %rax, 0x158(%rbx)
xorl %eax, %eax
popq %rbx
retq
movq 0x18527(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0xaa27(%rip), %rdi      # 0x45502
pushq $0x3d
popq %rsi
pushq $0x1
popq %rdx
callq 0xd000
pushq $0xc
popq %rax
jmp 0x3aac8