LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: lxw_worksheet_prepare_header_vml_objects
void
lxw_worksheet_prepare_header_vml_objects(lxw_worksheet *self,
                                         uint32_t vml_header_id,
                                         uint32_t vml_drawing_id)
{

    lxw_rel_tuple *relationship;
    char filename[LXW_FILENAME_LENGTH];
    char *vml_data_id_str;

    self->vml_header_id = vml_header_id;

    /* Set up the VML relationship for header images. */
    relationship = calloc(1, sizeof(lxw_rel_tuple));
    GOTO_LABEL_ON_MEM_ERROR(relationship, mem_error);

    relationship->type = lxw_strdup("/vmlDrawing");
    GOTO_LABEL_ON_MEM_ERROR(relationship->type, mem_error);

    lxw_snprintf(filename, 32, "../drawings/vmlDrawing%d.vml",
                 vml_drawing_id);

    relationship->target = lxw_strdup(filename);
    GOTO_LABEL_ON_MEM_ERROR(relationship->target, mem_error);

    self->external_vml_header_link = relationship;

    /* If this allocation fails it will be dealt with in packager.c. */
    vml_data_id_str = calloc(1, sizeof("4294967295"));
    GOTO_LABEL_ON_MEM_ERROR(vml_data_id_str, mem_error);

    lxw_snprintf(vml_data_id_str, sizeof("4294967295"), "%d", vml_header_id);

    self->vml_header_id_str = vml_data_id_str;

    return;

mem_error:
    if (relationship) {
        free(relationship->type);
        free(relationship->target);
        free(relationship->target_mode);
        free(relationship);
    }

    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %edx, %r12d
movl %esi, %ebp
movq %rdi, %r14
movl %esi, 0x2e4(%rdi)
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x326c0
movq %rax, %rbx
leaq 0x14981(%rip), %rdi     # 0x46fb1
callq 0xcce0
movq %rax, (%rbx)
testq %rax, %rax
je 0x326c7
movq %rax, %r15
leaq 0x14972(%rip), %rdx     # 0x46fbd
movq %rsp, %r13
movl $0x20, %esi
movq %r13, %rdi
movl %r12d, %ecx
xorl %eax, %eax
callq 0xc570
movq %r13, %rdi
callq 0xcce0
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x326d1
movq %rbx, 0x2b8(%r14)
movl $0x1, %edi
movl $0xb, %esi
callq 0xc7f0
testq %rax, %rax
je 0x326d8
movq %rax, %r15
leaq 0x12eba(%rip), %rdx     # 0x45550
movl $0xb, %esi
movq %rax, %rdi
movl %ebp, %ecx
xorl %eax, %eax
callq 0xc570
movq %r15, 0x2d8(%r14)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xf067
jmp 0x326ae
callq 0xf043
xorl %r15d, %r15d
jmp 0x326ff
callq 0xf019
jmp 0x326ff
movq 0x24919(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
leaq 0xd9f7(%rip), %rsi      # 0x400e0
leaq 0x14304(%rip), %rdx     # 0x469f4
movl $0xee4, %ecx            # imm = 0xEE4
xorl %eax, %eax
callq 0xc870
movq (%rbx), %r15
movq %r15, %rdi
callq 0xc0c0
movq 0x8(%rbx), %rdi
callq 0xc0c0
movq 0x10(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
callq 0xc0c0
jmp 0x326ae
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: lxw_worksheet_prepare_tables
void
lxw_worksheet_prepare_tables(lxw_worksheet *self, uint32_t table_id)
{
    lxw_table_obj *table_obj;
    lxw_rel_tuple *relationship;
    char name[LXW_ATTR_32];
    char filename[LXW_FILENAME_LENGTH];

    STAILQ_FOREACH(table_obj, self->table_objs, list_pointers) {

        relationship = calloc(1, sizeof(lxw_rel_tuple));
        GOTO_LABEL_ON_MEM_ERROR(relationship, mem_error);

        relationship->type = lxw_strdup("/table");
        GOTO_LABEL_ON_MEM_ERROR(relationship->type, mem_error);

        lxw_snprintf(filename, LXW_FILENAME_LENGTH,
                     "../tables/table%d.xml", table_id);

        relationship->target = lxw_strdup(filename);
        GOTO_LABEL_ON_MEM_ERROR(relationship->target, mem_error);

        STAILQ_INSERT_TAIL(self->external_table_links, relationship,
                           list_pointers);

        if (!table_obj->name) {
            lxw_snprintf(name, LXW_ATTR_32, "Table%d", table_id);
            table_obj->name = lxw_strdup(name);
            GOTO_LABEL_ON_MEM_ERROR(table_obj->name, mem_error);
        }
        table_obj->id = table_id;
        table_id++;
    }

    return;

mem_error:
    if (relationship) {
        free(relationship->type);
        free(relationship->target);
        free(relationship->target_mode);
        free(relationship);
    }

    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq 0x98(%rdi), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x3283c
movl %esi, %ebx
movq %rdi, %r14
leaq 0x148ae(%rip), %r12     # 0x47001
leaq 0x30(%rsp), %r13
movq %rdi, 0x8(%rsp)
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x3284e
movq %rax, %rbp
leaq 0x1487b(%rip), %rdi     # 0x46ffa
callq 0xcce0
movq %rax, (%rbp)
testq %rax, %rax
je 0x32855
movl $0x80, %esi
movq %r13, %rdi
movq %r12, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0xc570
movq %r13, %rdi
callq 0xcce0
movq %rax, 0x8(%rbp)
testq %rax, %rax
je 0x3285c
movq %rbp, %rax
addq $0x18, %rax
movq $0x0, 0x18(%rbp)
movq 0x238(%r14), %rcx
movq 0x8(%rcx), %rcx
movq %rbp, (%rcx)
movq 0x238(%r14), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, (%r15)
jne 0x32826
movl $0x20, %esi
movq %r13, %r14
movq %r12, %r13
leaq 0x10(%rsp), %r12
movq %r12, %rdi
leaq 0x14815(%rip), %rdx     # 0x47017
movl %ebx, %ecx
xorl %eax, %eax
callq 0xc570
movq %r12, %rdi
movq %r13, %r12
movq %r14, %r13
movq 0x8(%rsp), %r14
callq 0xcce0
movq %rax, (%r15)
testq %rax, %rax
je 0x32863
movl %ebx, 0x34(%r15)
incl %ebx
movq 0x1078(%r15), %r15
testq %r15, %r15
jne 0x3275d
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xf0d4
jmp 0x3283c
movl $0xf08, %edi            # imm = 0xF08
jmp 0x32868
movl $0xf0e, %edi            # imm = 0xF0E
jmp 0x32868
movl $0xf16, %edi            # imm = 0xF16
movq %rbp, %rsi
callq 0xf08b
jmp 0x3283c
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: lxw_worksheet_write_single_row
void
lxw_worksheet_write_single_row(lxw_worksheet *self)
{
    lxw_row *row = self->optimize_row;
    lxw_col_t col;

    /* skip row if it doesn't contain row formatting, cell data or a comment. */
    if (!(row->row_changed || row->data_changed))
        return;

    /* Write the cells if the row contains data. */
    if (!row->data_changed) {
        /* Row data only. No cells. */
        _write_row(self, row, NULL);
    }
    else {
        /* Row and cell data. */
        _write_row(self, row, NULL);

        for (col = self->dim_colmin; col <= self->dim_colmax; col++) {
            if (self->array[col]) {
                _write_cell(self, self->array[col], row->format);
                _free_cell(self->array[col]);
                self->array[col] = NULL;
            }
        }

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

    /* Reset the row. */
    row->height = LXW_DEF_ROW_HEIGHT;
    row->format = NULL;
    row->hidden = LXW_FALSE;
    row->level = 0;
    row->collapsed = LXW_FALSE;
    row->data_changed = LXW_FALSE;
    row->row_changed = LXW_FALSE;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x120(%rdi), %rbx
cmpb $0x0, 0x1b(%rbx)
movb 0x1c(%rbx), %al
je 0x32cc6
testb %al, %al
jne 0x32cce
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x32d7a
jmp 0x32d4b
testb %al, %al
je 0x32d6e
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x32d7a
movzwl 0xac(%r14), %r15d
movzwl 0xae(%r14), %eax
cmpw %ax, %r15w
ja 0x32d3c
movq 0x38(%r14), %rcx
movzwl %r15w, %r15d
movq (%rcx,%r15,8), %rsi
testq %rsi, %rsi
je 0x32d37
movq 0x10(%rbx), %rdx
movq %r14, %rdi
callq 0x33061
movq 0x38(%r14), %rax
leal (,%r15,8), %r12d
movq (%rax,%r12), %rdi
callq 0x2fd13
movq 0x38(%r14), %rax
movq $0x0, (%rax,%r12)
movzwl 0xae(%r14), %eax
incl %r15d
jmp 0x32ceb
movq (%r14), %rdi
leaq 0xf9db(%rip), %rsi      # 0x42721
callq 0xc060
movabsq $0x402e000000000000, %rax # imm = 0x402E000000000000
movq %rax, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
movl $0x0, 0x17(%rbx)
movw $0x0, 0x1b(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x34203
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x341f0
ucomisd 0xc2e2(%rip), %xmm0     # 0x404d0
jbe 0x3421b
movq 0x22e01(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
leaq 0x12f63(%rip), %rsi     # 0x47164
jmp 0x34243
movsd 0xe845(%rip), %xmm1     # 0x42a50
ucomisd %xmm0, %xmm1
ja 0x34232
ucomisd 0x124e7(%rip), %xmm0    # 0x46700
ja 0x34232
cvttsd2si %xmm0, %eax
movzwl %ax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rdi)
xorl %eax, %eax
popq %rcx
retq
movq 0x22dbf(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
leaq 0x12fb8(%rip), %rsi     # 0x471fb
movb $0x1, %al
callq 0xc870
movl $0xd, %eax
jmp 0x34230
// File: /workspace/github_c_makefile_star2_O3/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 %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
movsd 0x168(%rdi), %xmm0
movsd 0x170(%rdi), %xmm1
movsd %xmm1, (%rsp)
movsd 0x178(%rdi), %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x180(%rdi), %xmm1
movsd %xmm1, 0x10(%rsp)
movsd 0x188(%rdi), %xmm1
movsd %xmm1, 0x18(%rsp)
movsd 0x190(%rdi), %xmm1
movsd %xmm1, 0x20(%rsp)
xorl %r15d, %r15d
leaq 0x28(%rsp), %rbx
movq %r15, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x107e7(%rip), %rdi     # 0x45659
callq 0xcc80
movl $0x1040, %r12d          # imm = 0x1040
leaq (%rax,%r12), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xe8ab(%rip), %rdi      # 0x43745
movsd (%rsp), %xmm0
callq 0xcc80
leaq (%rax,%r12), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xe88a(%rip), %rdi      # 0x4374b
movsd 0x8(%rsp), %xmm0
callq 0xcc80
leaq (%rax,%r12), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xe866(%rip), %rdi      # 0x4374f
movsd 0x10(%rsp), %xmm0
callq 0xcc80
leaq (%rax,%r12), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xcb9a(%rip), %rdi      # 0x41aab
movsd 0x18(%rsp), %xmm0
callq 0xcc80
leaq (%rax,%r12), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xcb7d(%rip), %rdi      # 0x41ab6
movsd 0x20(%rsp), %xmm0
callq 0xcc80
addq %rax, %r12
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r12, 0x8(%rbx)
movq (%r14), %rdi
leaq 0xcb5c(%rip), %rsi      # 0x41abf
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x34f95
movq 0x1040(%rdi), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
jne 0x34f89
movq %rbx, 0x30(%rsp)
callq 0xc0c0
movq 0x28(%rsp), %rdi
jmp 0x34f6e
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3506c
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x838, %rsp            # imm = 0x838
movq %rdi, %r14
movl 0x134(%rdi), %eax
incl %eax
movw %ax, 0x134(%rdi)
movzwl %ax, %ecx
leaq 0xd79e(%rip), %rdx      # 0x42779
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
movl $0x20, %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0xc570
movq %rsp, %rbx
movq %r12, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0xd77c(%rip), %rdi      # 0x4277f
movq %r15, %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r12, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x11e97(%rip), %rsi     # 0x46ec5
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3505e
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x35053
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x35039
addq $0x838, %rsp            # imm = 0x838
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x35bb8
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0xbf2e(%rip), %rsi      # 0x41a95
xorl %edx, %edx
callq 0xc350
movq 0x1b0(%rbx), %rdx
testq %rdx, %rdx
je 0x35b8b
movq (%rbx), %rdi
leaq 0x1303a(%rip), %rsi     # 0x48bbe
xorl %ecx, %ecx
callq 0xcb30
movq 0x1b8(%rbx), %rdx
testq %rdx, %rdx
je 0x35ba8
movq (%rbx), %rdi
leaq 0x13027(%rip), %rsi     # 0x48bc8
xorl %ecx, %ecx
callq 0xcb30
movq (%rbx), %rdi
leaq 0xbee3(%rip), %rsi      # 0x41a95
popq %rbx
jmp 0xc060
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x39d04
movl %eax, %ebp
testl %eax, %eax
jne 0x39cf5
movzwl %r12w, %r12d
movl %ebx, %edi
movl %r12d, %esi
movsd 0x8(%rsp), %xmm0
movq %r15, %rdx
callq 0x39d89
movq %r14, %rdi
movl %ebx, %esi
movl %r12d, %edx
movq %rax, %rcx
callq 0x39de8
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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
cmpl $0x4000, %edx           # imm = 0x4000
setae %r9b
orb %al, %r9b
movl $0x17, %eax
jne 0x39d50
movl %r8d, %r9d
orb %cl, %r9b
je 0x39d51
testb %cl, %cl
jne 0x39d49
cmpl %esi, 0xa4(%rdi)
jbe 0x39d3b
movl %esi, 0xa4(%rdi)
cmpl %esi, 0xa8(%rdi)
jae 0x39d49
movl %esi, 0xa8(%rdi)
xorl %eax, %eax
testb %r8b, %r8b
je 0x39d68
retq
cmpb $0x0, 0x11c(%rdi)
je 0x39d29
movq 0x120(%rdi), %r9
cmpl %esi, (%r9)
jbe 0x39d29
jmp 0x39d50
cmpw %dx, 0xac(%rdi)
jbe 0x39d78
movw %dx, 0xac(%rdi)
cmpw %dx, 0xae(%rdi)
jae 0x39d50
movw %dx, 0xae(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/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, %rbx
movsd %xmm0, (%rsp)
movl %esi, %ebp
movl %edi, %r15d
movl $0x1, %edi
movl $0x68, %esi
callq 0xc7f0
movq %rax, %r14
testq %rax, %rax
je 0x39de1
movl %r15d, (%r14)
movw %bp, 0x4(%r14)
movl $0x1, 0x8(%r14)
movq %rbx, 0x10(%r14)
movsd (%rsp), %xmm0
movsd %xmm0, 0x20(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0xf291
jmp 0x39dd3
// File: /workspace/github_c_makefile_star2_O3/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 0x3b2d7
cmpb $0x0, 0x11c(%r14)
je 0x39e38
testq %rax, %rax
je 0x39e2d
movb $0x1, 0x1c(%rax)
movq 0x38(%r14), %rax
movzwl %bp, %r15d
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x39e29
callq 0x2fd13
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 0x3edcf
// File: /workspace/github_c_makefile_star2_O3/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 0x39ea4
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 0x39d04
testl %eax, %eax
jne 0x39e99
movl %ebx, %edi
movl %ebp, %esi
movq %r15, %rdx
callq 0x3a30f
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
movq %rax, %rcx
callq 0x39de8
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_O3/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, %r14
movq %rdx, %rbx
movl %esi, %ebp
movl %edi, %r12d
movl $0x1, %edi
movl $0x68, %esi
callq 0xc7f0
movq %rax, %r15
testq %rax, %rax
je 0x39f5a
movl %r12d, (%r15)
movw %bp, 0x4(%r15)
movl $0x5, 0x8(%r15)
movq %r14, 0x10(%r15)
movq %rbx, 0x20(%r15)
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0xf2d9
jmp 0x39f4e
// File: /workspace/github_c_makefile_star2_O3/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 0x39fe4
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 0x39d04
testl %eax, %eax
jne 0x39fd5
xorl %edi, %edi
cmpb $0x3d, (%r13)
sete %dil
addq %r13, %rdi
callq 0xcce0
movl %ebx, %edi
movl %ebp, %esi
movq %rax, %rdx
movq %r12, %rcx
callq 0x39f0c
movq %rax, %r12
movq %r15, %rdi
callq 0xcce0
movq %rax, 0x38(%r12)
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
movq %r12, %rcx
callq 0x39de8
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xc, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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, %rbx
movl %esi, %ebp
movl %edi, %r15d
movl $0x1, %edi
movl $0x68, %esi
callq 0xc7f0
movq %rax, %r14
testq %rax, %rax
je 0x3a357
movl %r15d, (%r14)
movw %bp, 0x4(%r14)
movl $0x8, 0x8(%r14)
movq %rbx, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0xf321
jmp 0x3a349
// File: /workspace/github_c_makefile_star2_O3/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 0x39d04
movl %eax, %r15d
testl %eax, %eax
jne 0x3a3d8
movl %r12d, 0x4(%rsp)
movl $0x1, %edi
movl $0x68, %esi
callq 0xc7f0
movq %rax, %r12
testq %rax, %rax
je 0x3a3ea
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 0x39de8
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xf345
jmp 0x3a3c8
// File: /workspace/github_c_makefile_star2_O3/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 0x39d04
movl %eax, %ebp
testl %eax, %eax
jne 0x3a445
movq %r13, %rdi
xorl %esi, %esi
callq 0xcc40
movzwl %r12w, %r12d
movl %ebx, %edi
movl %r12d, %esi
movq %r15, %rdx
callq 0x39d89
movq %r14, %rdi
movl %ebx, %esi
movl %r12d, %edx
movq %rax, %rcx
callq 0x39de8
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_O3/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 0x39d04
movl %eax, %ebp
testl %eax, %eax
jne 0x3a4aa
movq %r13, %rdi
xorl %esi, %esi
callq 0xca70
movzwl %r12w, %r12d
movl %ebx, %edi
movl %r12d, %esi
movq %r15, %rdx
callq 0x39d89
movq %r14, %rdi
movl %ebx, %esi
movl %r12d, %edx
movq %rax, %rcx
callq 0x39de8
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_O3/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 0x3b162
movsd 0xb5e8(%rip), %xmm0     # 0x46748
jmp 0x3b188
movl %ecx, %eax
cvtsi2sd %rax, %xmm0
cmpl $0xc, %ecx
jbe 0x3b180
addsd 0xb63a(%rip), %xmm0     # 0x467b0
divsd 0xb59a(%rip), %xmm0     # 0x46718
jmp 0x3b188
divsd 0xb598(%rip), %xmm0     # 0x46720
movzwl %si, %esi
movzwl %dx, %edx
movq %r8, %rcx
xorl %r8d, %r8d
jmp 0xc740
// File: /workspace/github_c_makefile_star2_O3/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 0x3b211
movb (%rcx), %r13b
movb 0x1(%rcx), %r14b
movb 0x2(%rcx), %r12b
jmp 0x3b21a
xorl %r13d, %r13d
xorl %r14d, %r14d
xorl %r12d, %r12d
movzwl 0xac(%rbx), %edx
cmpl $0x4000, %edx           # imm = 0x4000
cmovel %eax, %edx
movq %rbx, %rdi
movl %ebp, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x39d04
movl %eax, %r15d
testl %eax, %eax
jne 0x3b2c5
xorpd %xmm0, %xmm0
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x3b267
jp 0x3b267
movsd 0x198(%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
movb $0x1, %r13b
movzbl %r14b, %eax
cmpb $0x7, %al
movl $0x7, %r14d
cmovbl %eax, %r14d
cmpb 0x1aa(%rbx), %r14b
jbe 0x3b287
movb %r14b, 0x1aa(%rbx)
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3b2d7
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 0x3b2c1
jnp 0x3b2c5
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_O3/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 0x3b2f8
movq 0x120(%r14), %rax
cmpl %ebx, (%rax)
jbe 0x3b30a
xorl %eax, %eax
jmp 0x3b31d
movq 0x20(%r14), %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3f05b
je 0x3b31d
movq %r14, %rdi
callq 0xc3b0
movq 0x120(%r14), %rax
movl %ebx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x39d04
testl %eax, %eax
jne 0x3b53c
movw $0x0, 0x1e4(%r15)
movq %r15, %rdi
callq 0x2fcb9
movl %r12d, %r13d
subl %ebx, %r13d
incl %r13d
movzwl %r13w, %edi
movl $0x8, %esi
callq 0xc7f0
testq %rax, %rax
je 0x3b54b
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
callq 0xf647
movl $0x1, %eax
jmp 0x3b53c
// File: /workspace/github_c_makefile_star2_O3/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 0x3b6ea
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0xc0c0
movq 0x20(%rbx), %rdi
callq 0xc0c0
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x3b6db
cmpw $0x0, 0x28(%rbx)
je 0x3b6d6
xorl %r14d, %r14d
movq 0x30(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0xc0c0
incq %r14
movzwl 0x28(%rbx), %eax
cmpq %rax, %r14
jb 0x3b6b9
movq 0x30(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3c635
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movw $0xffff, %ax            # imm = 0xFFFF
incl %eax
movzwl %ax, %r12d
cmpl $0x0, (%r14,%r12,4)
jne 0x3c5d7
movl $0x3ff, %eax            # imm = 0x3FF
cmpl %eax, %r12d
cmovael %eax, %r12d
movzwl %r12w, %r15d
movl $0x4, %esi
movq %r15, %rdi
callq 0xc7f0
movq %rax, 0x1f8(%rbx)
testq %rax, %rax
je 0x3c63b
shll $0x2, %r15d
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xc900
movw %r12w, 0x208(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0xc, %eax
retq
callq 0xf90c
movl $0x1, %eax
jmp 0x3c629
// File: /workspace/github_c_makefile_star2_O3/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 0x3c6bc
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movw $0xffff, %ax            # imm = 0xFFFF
incl %eax
movzwl %ax, %r12d
cmpw $0x0, (%r14,%r12,2)
jne 0x3c65e
movl $0x3ff, %eax            # imm = 0x3FF
cmpl %eax, %r12d
cmovael %eax, %r12d
movzwl %r12w, %r15d
movl $0x2, %esi
movq %r15, %rdi
callq 0xc7f0
movq %rax, 0x200(%rbx)
testq %rax, %rax
je 0x3c6c2
addl %r15d, %r15d
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xc900
movw %r12w, 0x20a(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0xc, %eax
retq
callq 0xf930
movl $0x1, %eax
jmp 0x3c6b0
// File: /workspace/github_c_makefile_star2_O3/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 0x3c7ca
jnp 0x3c7d9
movsd %xmm1, 0x198(%rdi)
movb $0x1, 0x11b(%rdi)
testb %sil, %sil
je 0x3c7e5
movb $0x1, 0x1a8(%rdi)
movb $0x1, 0x1a9(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3ccf4
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x33aa(%rip), %rsi      # 0x40000
movq %r15, %rdi
callq 0xc250
testq %rax, %rax
je 0x3cd00
movq %rax, %r14
movl $0x1, %edi
movl $0xc0, %esi
callq 0xc7f0
testq %rax, %rax
je 0x3ccbf
movq %rax, %r12
movq %r15, %rdi
callq 0xcce0
movq %rax, 0x20(%r12)
movq %r14, 0x48(%r12)
movb $0x1, 0x99(%r12)
movq %r12, %rdi
callq 0x33611
testl %eax, %eax
je 0x3ccce
movq %r12, %rdi
callq 0x2fa62
movq %r14, %rdi
callq 0xc420
movl $0x1a, %eax
jmp 0x3cd20
movq %r14, %rdi
callq 0xc420
movl $0x1, %eax
jmp 0x3cd20
movq 0x3a8(%rbx), %rdi
callq 0x2fa62
movq %r12, 0x3a8(%rbx)
movb $0x1, 0x2a3(%rbx)
movq %r14, %rdi
callq 0xc420
xorl %eax, %eax
jmp 0x3cd20
callq 0xf9a8
movl $0xc, %eax
jmp 0x3cd20
movq 0x1a2f1(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
leaq 0xb118(%rip), %rsi      # 0x47e29
movq %r15, %rdx
xorl %eax, %eax
callq 0xc870
movl $0xd, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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
cmpl $0x100000, %esi         # imm = 0x100000
setae %al
cmpl $0x4000, %edx           # imm = 0x4000
setae %cl
orb %al, %cl
movl $0x17, %eax
jne 0x3d8f7
movl %edx, %ebp
movl %esi, %r12d
movq %rdi, %rbx
movl $0x1, %edi
movl $0xc0, %esi
callq 0xc7f0
testq %rax, %rax
je 0x3d900
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 0xc360
testl %eax, %eax
je 0x3d8a8
movq %r14, %rdi
callq 0x2fac3
movl $0x1, %eax
jmp 0x3d8f7
movq %rbx, %rdi
movq %r14, %rsi
callq 0xcbd0
movb $0x1, %al
movb %al, 0x2a0(%rbx)
movb %al, 0x2a4(%rbx)
incw 0x160(%rbx)
movq %r14, %rax
addq $0xb8, %rax
movq $0x0, 0xb8(%r14)
movq 0x90(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %r14, (%rcx)
movq 0x90(%rbx), %rcx
movq %rax, 0x8(%rcx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0xfbfc
jmp 0x3d8a1
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: write_array_formula_num_cell
STATIC void
_write_array_formula_num_cell(lxw_worksheet *self, lxw_cell *cell)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    char data[LXW_ATTR_32];

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("t", "array");
    LXW_PUSH_ATTRIBUTES_STR("ref", cell->user_data1);

    lxw_sprintf_dbl(data, cell->formula_result);

    lxw_xml_data_element(self->file, "f", cell->u.string, &attributes);
    lxw_xml_data_element(self->file, "v", data, NULL);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r15
movq %rdi, %r14
xorl %r12d, %r12d
movq %rsp, %rbx
movq %r12, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x32e9(%rip), %rdi      # 0x41289
leaq 0xa84a(%rip), %rsi      # 0x487f1
callq 0xc030
movl $0x1040, %r13d          # imm = 0x1040
leaq (%rax,%r13), %rcx
movq %r12, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq 0x30(%r15), %rsi
leaq 0xb649(%rip), %rdi      # 0x4961c
callq 0xc030
addq %rax, %r13
movq %r12, 0x1040(%rax)
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r13, 0x8(%rbx)
movsd 0x28(%r15), %xmm0
leaq 0x313f(%rip), %rdx      # 0x41139
leaq 0x10(%rsp), %r12
movl $0x20, %esi
movq %r12, %rdi
movb $0x1, %al
callq 0xc570
movq (%r14), %rdi
movq 0x20(%r15), %rdx
leaq 0x3101(%rip), %rsi      # 0x4111d
movq %rbx, %rcx
callq 0xcb30
movq (%r14), %rdi
leaq 0x30e2(%rip), %rsi      # 0x41110
movq %r12, %rdx
xorl %ecx, %ecx
callq 0xcb30
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e060
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3e055
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x3e03b
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq