LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/workbook.c
// Function: workbook_set_custom_property_string
lxw_error
workbook_set_custom_property_string(lxw_workbook *self, const char *name,
                                    const char *value)
{
    lxw_custom_property *custom_property;

    if (!name) {
        LXW_WARN_FORMAT("workbook_set_custom_property_string(): "
                        "parameter 'name' cannot be NULL.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    if (!value) {
        LXW_WARN_FORMAT("workbook_set_custom_property_string(): "
                        "parameter 'value' cannot be NULL.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    if (lxw_utf8_strlen(name) > 255) {
        LXW_WARN_FORMAT("workbook_set_custom_property_string(): parameter "
                        "'name' exceeds Excel length limit of 255.");
        return LXW_ERROR_255_STRING_LENGTH_EXCEEDED;
    }

    if (lxw_utf8_strlen(value) > 255) {
        LXW_WARN_FORMAT("workbook_set_custom_property_string(): parameter "
                        "'value' exceeds Excel length limit of 255.");
        return LXW_ERROR_255_STRING_LENGTH_EXCEEDED;
    }

    /* Create a struct to hold the custom property. */
    custom_property = calloc(1, sizeof(struct lxw_custom_property));
    RETURN_ON_MEM_ERROR(custom_property, LXW_ERROR_MEMORY_MALLOC_FAILED);

    custom_property->name = lxw_strdup(name);
    custom_property->u.string = lxw_strdup(value);
    custom_property->type = LXW_CUSTOM_STRING;

    STAILQ_INSERT_TAIL(self->custom_properties, custom_property,
                       list_pointers);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x2cfcf
movq %rdx, %r14
testq %rdx, %rdx
je 0x2cfd6
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xd0d0
cmpq $0x100, %rax            # imm = 0x100
jae 0x2cfe2
movq %r14, %rdi
callq 0xd0d0
cmpq $0x100, %rax            # imm = 0x100
jae 0x2cfe9
movl $0x1, %edi
movl $0x38, %esi
callq 0xc7f0
testq %rax, %rax
je 0x2cff5
movq %rax, %r12
movq %r15, %rdi
callq 0xcce0
movq %rax, 0x8(%r12)
movq %r14, %rdi
callq 0xcce0
movq %rax, 0x10(%r12)
movl $0x1, (%r12)
movq %r12, %rax
addq $0x30, %rax
movq 0x78(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %r12, (%rcx)
movq 0x78(%rbx), %rcx
movq %rax, 0x8(%rcx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0xe356
jmp 0x2cfdb
callq 0xe33a
movl $0xc, %eax
jmp 0x2cfc3
callq 0xe31e
jmp 0x2cfee
callq 0xe302
movl $0x14, %eax
jmp 0x2cfc3
callq 0xe2de
movl $0x1, %eax
jmp 0x2cfc3
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/workbook.c
// Function: workbook_set_custom_property_number
lxw_error
workbook_set_custom_property_number(lxw_workbook *self, const char *name,
                                    double value)
{
    lxw_custom_property *custom_property;

    if (!name) {
        LXW_WARN_FORMAT("workbook_set_custom_property_number(): parameter "
                        "'name' cannot be NULL.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    if (lxw_utf8_strlen(name) > 255) {
        LXW_WARN_FORMAT("workbook_set_custom_property_number(): parameter "
                        "'name' exceeds Excel length limit of 255.");
        return LXW_ERROR_255_STRING_LENGTH_EXCEEDED;
    }

    /* Create a struct to hold the custom property. */
    custom_property = calloc(1, sizeof(struct lxw_custom_property));
    RETURN_ON_MEM_ERROR(custom_property, LXW_ERROR_MEMORY_MALLOC_FAILED);

    custom_property->name = lxw_strdup(name);
    custom_property->u.number = value;
    custom_property->type = LXW_CUSTOM_DOUBLE;

    STAILQ_INSERT_TAIL(self->custom_properties, custom_property,
                       list_pointers);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
testq %rsi, %rsi
je 0x2d087
movq %rsi, %r14
movq %rdi, %rbx
movsd %xmm0, 0x8(%rsp)
movq %rsi, %rdi
callq 0xd0d0
cmpq $0x100, %rax            # imm = 0x100
jae 0x2d093
movl $0x1, %edi
movl $0x38, %esi
callq 0xc7f0
testq %rax, %rax
je 0x2d09f
movq %rax, %r15
movq %r14, %rdi
callq 0xcce0
movq %rax, 0x8(%r15)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x10(%r15)
movl $0x2, (%r15)
movq %r15, %rax
addq $0x30, %rax
movq 0x78(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %r15, (%rcx)
movq 0x78(%rbx), %rcx
movq %rax, 0x8(%rcx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
callq 0xe3b2
movl $0xc, %eax
jmp 0x2d07d
callq 0xe396
movl $0x14, %eax
jmp 0x2d07d
callq 0xe372
movl $0x1, %eax
jmp 0x2d07d
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/workbook.c
// Function: workbook_set_custom_property_integer
lxw_error
workbook_set_custom_property_integer(lxw_workbook *self, const char *name,
                                     int32_t value)
{
    lxw_custom_property *custom_property;

    if (!name) {
        LXW_WARN_FORMAT("workbook_set_custom_property_integer(): parameter "
                        "'name' cannot be NULL.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    if (strlen(name) > 255) {
        LXW_WARN_FORMAT("workbook_set_custom_property_integer(): parameter "
                        "'name' exceeds Excel length limit of 255.");
        return LXW_ERROR_255_STRING_LENGTH_EXCEEDED;
    }

    /* Create a struct to hold the custom property. */
    custom_property = calloc(1, sizeof(struct lxw_custom_property));
    RETURN_ON_MEM_ERROR(custom_property, LXW_ERROR_MEMORY_MALLOC_FAILED);

    custom_property->name = lxw_strdup(name);
    custom_property->u.integer = value;
    custom_property->type = LXW_CUSTOM_INTEGER;

    STAILQ_INSERT_TAIL(self->custom_properties, custom_property,
                       list_pointers);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x2d124
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xc480
cmpq $0x100, %rax            # imm = 0x100
jae 0x2d130
movl $0x1, %edi
movl $0x38, %esi
callq 0xc7f0
testq %rax, %rax
je 0x2d13c
movq %rax, %r15
movq %r14, %rdi
callq 0xcce0
movq %rax, 0x8(%r15)
movl %ebp, 0x10(%r15)
movl $0x3, (%r15)
movq %r15, %rax
addq $0x30, %rax
movq 0x78(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %r15, (%rcx)
movq 0x78(%rbx), %rcx
movq %rax, 0x8(%rcx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0xe40e
movl $0xc, %eax
jmp 0x2d119
callq 0xe3f2
movl $0x14, %eax
jmp 0x2d119
callq 0xe3ce
movl $0x1, %eax
jmp 0x2d119
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/workbook.c
// Function: workbook_set_custom_property_boolean
lxw_error
workbook_set_custom_property_boolean(lxw_workbook *self, const char *name,
                                     uint8_t value)
{
    lxw_custom_property *custom_property;

    if (!name) {
        LXW_WARN_FORMAT("workbook_set_custom_property_boolean(): parameter "
                        "'name' cannot be NULL.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    if (lxw_utf8_strlen(name) > 255) {
        LXW_WARN_FORMAT("workbook_set_custom_property_boolean(): parameter "
                        "'name' exceeds Excel length limit of 255.");
        return LXW_ERROR_255_STRING_LENGTH_EXCEEDED;
    }

    /* Create a struct to hold the custom property. */
    custom_property = calloc(1, sizeof(struct lxw_custom_property));
    RETURN_ON_MEM_ERROR(custom_property, LXW_ERROR_MEMORY_MALLOC_FAILED);

    custom_property->name = lxw_strdup(name);
    custom_property->u.boolean = value;
    custom_property->type = LXW_CUSTOM_BOOLEAN;

    STAILQ_INSERT_TAIL(self->custom_properties, custom_property,
                       list_pointers);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x2d1c1
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xd0d0
cmpq $0x100, %rax            # imm = 0x100
jae 0x2d1cd
movl $0x1, %edi
movl $0x38, %esi
callq 0xc7f0
testq %rax, %rax
je 0x2d1d9
movq %rax, %r15
movq %r14, %rdi
callq 0xcce0
movq %rax, 0x8(%r15)
movb %bpl, 0x10(%r15)
movl $0x4, (%r15)
movq %r15, %rax
addq $0x30, %rax
movq 0x78(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %r15, (%rcx)
movq 0x78(%rbx), %rcx
movq %rax, 0x8(%rcx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0xe46a
movl $0xc, %eax
jmp 0x2d1b6
callq 0xe44e
movl $0x14, %eax
jmp 0x2d1b6
callq 0xe42a
movl $0x1, %eax
jmp 0x2d1b6
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/workbook.c
// Function: workbook_set_custom_property_datetime
lxw_error
workbook_set_custom_property_datetime(lxw_workbook *self, const char *name,
                                      lxw_datetime *datetime)
{
    lxw_custom_property *custom_property;

    if (!name) {
        LXW_WARN_FORMAT("workbook_set_custom_property_datetime(): parameter "
                        "'name' cannot be NULL.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    if (lxw_utf8_strlen(name) > 255) {
        LXW_WARN_FORMAT("workbook_set_custom_property_datetime(): parameter "
                        "'name' exceeds Excel length limit of 255.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    if (!datetime) {
        LXW_WARN_FORMAT("workbook_set_custom_property_datetime(): parameter "
                        "'datetime' cannot be NULL.");
        return LXW_ERROR_NULL_PARAMETER_IGNORED;
    }

    /* Create a struct to hold the custom property. */
    custom_property = calloc(1, sizeof(struct lxw_custom_property));
    RETURN_ON_MEM_ERROR(custom_property, LXW_ERROR_MEMORY_MALLOC_FAILED);

    custom_property->name = lxw_strdup(name);

    memcpy(&custom_property->u.datetime, datetime, sizeof(lxw_datetime));
    custom_property->type = LXW_CUSTOM_DATETIME;

    STAILQ_INSERT_TAIL(self->custom_properties, custom_property,
                       list_pointers);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x2d27d
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xd0d0
cmpq $0x100, %rax            # imm = 0x100
jae 0x2d284
testq %r14, %r14
je 0x2d28b
movl $0x1, %edi
movl $0x38, %esi
callq 0xc7f0
testq %rax, %rax
je 0x2d297
movq %rax, %r12
movq %r15, %rdi
callq 0xcce0
movq %rax, 0x8(%r12)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm0, 0x10(%r12)
movups %xmm1, 0x20(%r12)
movl $0x5, (%r12)
movq %r12, %rax
addq $0x30, %rax
movq 0x78(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %r12, (%rcx)
movq 0x78(%rbx), %rcx
movq %rax, 0x8(%rcx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0xe4e2
jmp 0x2d290
callq 0xe4c6
jmp 0x2d290
callq 0xe4aa
movl $0xc, %eax
jmp 0x2d271
callq 0xe486
movl $0x1, %eax
jmp 0x2d271
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/workbook.c
// Function: workbook_get_worksheet_by_name
lxw_worksheet *
workbook_get_worksheet_by_name(lxw_workbook *self, const char *name)
{
    lxw_worksheet_name worksheet_name;
    lxw_worksheet_name *found;

    if (!name)
        return NULL;

    worksheet_name.name = name;
    found = RB_FIND(lxw_worksheet_names,
                    self->worksheet_names, &worksheet_name);

    if (found)
        return found->worksheet;
    else
        return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rsi, %rsi
je 0x2d2e4
movq 0x20(%rdi), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x2d2e4
movq %rsi, %r14
xorl %ebx, %ebx
movq (%r15), %rsi
movq %r14, %rdi
callq 0xc130
movl $0x10, %ecx
testl %eax, %eax
js 0x2d2d9
movl $0x18, %ecx
je 0x2d2ef
movq (%r15,%rcx), %r15
testq %r15, %r15
jne 0x2d2be
jmp 0x2d2e6
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x8(%r15), %rbx
jmp 0x2d2e6
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/workbook.c
// Function: workbook_get_chartsheet_by_name
lxw_chartsheet *
workbook_get_chartsheet_by_name(lxw_workbook *self, const char *name)
{
    lxw_chartsheet_name chartsheet_name;
    lxw_chartsheet_name *found;

    if (!name)
        return NULL;

    chartsheet_name.name = name;
    found = RB_FIND(lxw_chartsheet_names,
                    self->chartsheet_names, &chartsheet_name);

    if (found)
        return found->chartsheet;
    else
        return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rsi, %rsi
je 0x2d336
movq 0x28(%rdi), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x2d336
movq %rsi, %r14
xorl %ebx, %ebx
movq (%r15), %rsi
movq %r14, %rdi
callq 0xc130
movl $0x10, %ecx
testl %eax, %eax
js 0x2d32b
movl $0x18, %ecx
je 0x2d341
movq (%r15,%rcx), %r15
testq %r15, %r15
jne 0x2d310
jmp 0x2d338
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x8(%r15), %rbx
jmp 0x2d338
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/workbook.c
// Function: workbook_add_vba_project
lxw_error
workbook_add_vba_project(lxw_workbook *self, const char *filename)
{
    FILE *filehandle;

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

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

    self->vba_project = lxw_strdup(filename);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x2d3b2
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x12c7c(%rip), %rsi     # 0x40000
movq %rbx, %rdi
callq 0xc250
testq %rax, %rax
je 0x2d3be
movq %rax, %rdi
callq 0xc420
movq %rbx, %rdi
callq 0xcce0
movq %rax, 0xe8(%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0xe4fe
movl $0xc, %eax
jmp 0x2d3aa
movq 0x29c33(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
leaq 0x18e5b(%rip), %rsi     # 0x4622a
movq %rbx, %rdx
xorl %eax, %eax
callq 0xc870
movl $0xd, %eax
jmp 0x2d3aa
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/workbook.c
// Function: workbook_add_signed_vba_project
lxw_error
workbook_add_signed_vba_project(lxw_workbook *self,
                                const char *vba_project,
                                const char *signature)
{
    FILE *filehandle;

    lxw_error error = workbook_add_vba_project(self, vba_project);
    if (error != LXW_NO_ERROR)
        return error;

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

    /* Check that the vbaProjectSignature file exists and can be opened. */
    filehandle = lxw_fopen(signature, "rb");
    if (!filehandle) {
        LXW_WARN_FORMAT1("workbook_add_signed_vba_project(): "
                         "signature file doesn't exist or can't be opened: %s.",
                         signature);
        return LXW_ERROR_PARAMETER_VALIDATION;
    }
    fclose(filehandle);

    self->vba_project_signature = lxw_strdup(signature);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
callq 0xc990
testl %eax, %eax
jne 0x2d425
testq %rbx, %rbx
je 0x2d42d
leaq 0x12c01(%rip), %rsi     # 0x40000
movq %rbx, %rdi
callq 0xc250
testq %rax, %rax
je 0x2d439
movq %rax, %rdi
callq 0xc420
movq %rbx, %rdi
callq 0xcce0
movq %rax, 0xf0(%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0xe51a
movl $0xc, %eax
jmp 0x2d425
movq 0x29bb8(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
leaq 0x18e90(%rip), %rsi     # 0x462da
movq %rbx, %rdx
xorl %eax, %eax
callq 0xc870
movl $0xd, %eax
jmp 0x2d425
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: lxw_worksheet_find_cell_in_row
lxw_cell *
lxw_worksheet_find_cell_in_row(lxw_row *row, lxw_col_t col_num)
{
    lxw_cell tmp_cell;

    if (!row)
        return NULL;

    tmp_cell.col_num = col_num;

    return RB_FIND(lxw_table_cells, row->cells, &tmp_cell);
}

// Assembly:
testq %rdi, %rdi
je 0x2da4a
movq 0x20(%rdi), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x2da4a
movl $0x48, %ecx
cmpw %si, 0x4(%rax)
ja 0x2da44
movl $0x50, %ecx
je 0x2da4c
movq (%rax,%rcx), %rax
jmp 0x2da2d
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: free_row
STATIC void
_free_row(lxw_row *row)
{
    lxw_cell *cell;
    lxw_cell *next_cell;

    if (!row)
        return;

    for (cell = RB_MIN(lxw_table_cells, row->cells); cell; cell = next_cell) {
        next_cell = RB_NEXT(lxw_table_cells, row->cells, cell);
        RB_REMOVE(lxw_table_cells, row->cells, cell);
        _free_cell(cell);
    }

    free(row->cells);
    free(row);
}

// Assembly:
testq %rdi, %rdi
je 0x2fa61
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
movq (%rdi), %rax
testq %rax, %rax
je 0x2fa4f
movq %rax, %r14
movq 0x48(%rax), %rax
testq %rax, %rax
jne 0x2fa18
movq %r14, %rdi
callq 0x325b3
movq %rax, %r15
movq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x3d9b7
movq %r14, %rdi
callq 0x2fd13
movq %r15, %r14
testq %r15, %r15
jne 0x2fa24
movq 0x20(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: free_object_properties
STATIC void
_free_object_properties(lxw_object_properties *object_property)
{
    if (!object_property)
        return;

    free(object_property->filename);
    free(object_property->description);
    free(object_property->extension);
    free(object_property->url);
    free(object_property->tip);
    free(object_property->image_buffer);
    free(object_property->md5);
    free(object_property->image_position);
    free(object_property);
    object_property = NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x2fac2
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
callq 0xc0c0
movq 0x28(%rbx), %rdi
callq 0xc0c0
movq 0x78(%rbx), %rdi
callq 0xc0c0
movq 0x30(%rbx), %rdi
callq 0xc0c0
movq 0x38(%rbx), %rdi
callq 0xc0c0
movq 0x58(%rbx), %rdi
callq 0xc0c0
movq 0xa0(%rbx), %rdi
callq 0xc0c0
movq 0xa8(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
popq %rbx
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: free_vml_object
STATIC void
_free_vml_object(lxw_vml_obj *vml_obj)
{
    if (!vml_obj)
        return;

    free(vml_obj->author);
    free(vml_obj->font_name);
    free(vml_obj->text);
    free(vml_obj->image_position);
    free(vml_obj->name);
    free(vml_obj->macro);

    free(vml_obj);
}

// Assembly:
testq %rdi, %rdi
je 0x2fb1d
pushq %rbx
movq %rdi, %rbx
movq 0x88(%rdi), %rdi
callq 0xc0c0
movq 0x90(%rbx), %rdi
callq 0xc0c0
movq 0x98(%rbx), %rdi
callq 0xc0c0
movq 0xa0(%rbx), %rdi
callq 0xc0c0
movq 0xa8(%rbx), %rdi
callq 0xc0c0
movq 0xb0(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
popq %rbx
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: free_worksheet_table
STATIC void
_free_worksheet_table(lxw_table_obj *table)
{
    uint16_t i;

    if (!table)
        return;

    for (i = 0; i < table->num_cols; i++)
        _free_worksheet_table_column(table->columns[i]);

    free(table->name);
    free(table->total_string);
    free(table->columns);

    free(table);
}

// Assembly:
testq %rdi, %rdi
je 0x2fb9c
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movzwl 0x32(%rdi), %eax
testw %ax, %ax
je 0x2fb75
xorl %r15d, %r15d
movq 0x10(%rbx), %rcx
movq (%rcx,%r15,8), %r14
testq %r14, %r14
je 0x2fb6a
movq (%r14), %rdi
callq 0xc0c0
movq 0x8(%r14), %rdi
callq 0xc0c0
movq 0x10(%r14), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0xc0c0
movzwl 0x32(%rbx), %eax
incq %r15
movzwl %ax, %ecx
cmpq %rcx, %r15
jb 0x2fb37
movq (%rbx), %rdi
callq 0xc0c0
movq 0x8(%rbx), %rdi
callq 0xc0c0
movq 0x10(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: free_data_validation
STATIC void
_free_data_validation(lxw_data_val_obj *data_validation)
{
    if (!data_validation)
        return;

    free(data_validation->value_formula);
    free(data_validation->maximum_formula);
    free(data_validation->input_title);
    free(data_validation->input_message);
    free(data_validation->error_title);
    free(data_validation->error_message);
    free(data_validation->minimum_formula);

    free(data_validation);
}

// Assembly:
testq %rdi, %rdi
je 0x2fbfa
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0xc0c0
movq 0x58(%rbx), %rdi
callq 0xc0c0
movq 0x80(%rbx), %rdi
callq 0xc0c0
movq 0x88(%rbx), %rdi
callq 0xc0c0
movq 0x90(%rbx), %rdi
callq 0xc0c0
movq 0x98(%rbx), %rdi
callq 0xc0c0
movq 0x28(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
popq %rbx
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: free_relationship
STATIC void
_free_relationship(lxw_rel_tuple *relationship)
{
    if (!relationship)
        return;

    free(relationship->type);
    free(relationship->target);
    free(relationship->target_mode);

    free(relationship);
}

// Assembly:
testq %rdi, %rdi
je 0x2fc27
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0xc0c0
movq 0x8(%rbx), %rdi
callq 0xc0c0
movq 0x10(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
popq %rbx
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: free_cond_format
STATIC void
_free_cond_format(lxw_cond_format_obj *cond_format)
{
    if (!cond_format)
        return;

    free(cond_format->min_value_string);
    free(cond_format->mid_value_string);
    free(cond_format->max_value_string);
    free(cond_format->type_string);
    free(cond_format->guid);

    free(cond_format);
}

// Assembly:
testq %rdi, %rdi
je 0x2fcb8
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0xc0c0
movq 0x28(%rbx), %rdi
callq 0xc0c0
movq 0x40(%rbx), %rdi
callq 0xc0c0
movq 0x78(%rbx), %rdi
callq 0xc0c0
movq 0x80(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
popq %rbx
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: free_filter_rules
STATIC void
_free_filter_rules(lxw_worksheet *worksheet)
{
    uint16_t i;

    if (!worksheet->filter_rules)
        return;

    for (i = 0; i < worksheet->num_filter_rules; i++)
        _free_filter_rule(worksheet->filter_rules[i]);

    free(worksheet->filter_rules);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x3b0(%rdi), %rdi
testq %rdi, %rdi
je 0x2fd0b
cmpw $0x0, 0x3b8(%rbx)
je 0x2fcff
xorl %r14d, %r14d
movq 0x3b0(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x3b688
incq %r14
movzwl 0x3b8(%rbx), %eax
cmpq %rax, %r14
jb 0x2fcd9
movq 0x3b0(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc0c0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: free_cell
STATIC void
_free_cell(lxw_cell *cell)
{
    if (!cell)
        return;

    if (cell->type != NUMBER_CELL && cell->type != STRING_CELL
        && cell->type != BLANK_CELL && cell->type != BOOLEAN_CELL) {

        free((void *) cell->u.string);
    }

    free(cell->user_data1);
    free(cell->user_data2);

    _free_vml_object(cell->comment);

    free(cell);
}

// Assembly:
testq %rdi, %rdi
je 0x2fd52
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %eax
cmpl $0x9, %eax
ja 0x2fd53
movl $0x306, %ecx            # imm = 0x306
btl %eax, %ecx
jae 0x2fd53
movq 0x30(%rbx), %rdi
callq 0xc0c0
movq 0x38(%rbx), %rdi
callq 0xc0c0
movq 0x18(%rbx), %rdi
callq 0x2fac3
movq %rbx, %rdi
popq %rbx
jmp 0xc0c0
retq
movq 0x20(%rbx), %rdi
callq 0xc0c0
jmp 0x2fd2e
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: lxw_basename
const char *
lxw_basename(const char *path)
{

    const char *forward_slash;
    const char *back_slash;

    if (!path)
        return NULL;

    forward_slash = strrchr(path, '/');
    back_slash = strrchr(path, '\\');

    if (!forward_slash && !back_slash)
        return path;

    if (forward_slash > back_slash)
        return forward_slash + 1;
    else
        return back_slash + 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2fd99
movq %rdi, %rbx
movl $0x2f, %esi
callq 0xc5b0
movq %rax, %r14
movq %rbx, %rdi
movl $0x5c, %esi
callq 0xc5b0
movq %r14, %rcx
orq %rax, %rcx
je 0x2fda3
cmpq %rax, %r14
jbe 0x2fd9d
incq %r14
movq %r14, %rbx
jmp 0x2fda3
xorl %ebx, %ebx
jmp 0x2fda3
incq %rax
movq %rax, %rbx
movq %rbx, %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: validation_list_length
size_t
_validation_list_length(const char **list)
{
    uint8_t i = 0;
    size_t length = 0;

    if (!list || !list[0])
        return 0;

    while (list[i] && length < LXW_VALIDATION_MAX_STRING_LENGTH) {
        /* Include commas in the length. */
        length += 1 + lxw_utf8_strlen(list[i]);
        i++;
    }

    /* Adjust the count for extraneous comma at end. */
    length--;

    return length;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2fdf4
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x2fdf4
movb $0x1, %bpl
xorl %ecx, %ecx
movq %rcx, %r14
callq 0xd0d0
movzbl %bpl, %ecx
movq (%rbx,%rcx,8), %rdi
testq %rdi, %rdi
je 0x2fdef
leaq (%r14,%rax), %rcx
incq %rcx
incb %bpl
cmpq $0xff, %rcx
jb 0x2fdc7
addq %rax, %r14
jmp 0x2fdf7
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: validation_list_to_csv
char *
_validation_list_to_csv(const char **list)
{
    uint8_t i = 0;
    char *str;

    /* Create a buffer for the concatenated, and quoted, string. */
    /* Allow for 4 byte UTF-8 chars and add 3 bytes for quotes and EOL. */
    str = calloc(1, LXW_VALIDATION_MAX_STRING_LENGTH * 4 + 3);
    if (!str)
        return NULL;

    /* Add the start quote and first element. */
    strcat(str, "\"");
    strcat(str, list[0]);

    /* Add the other elements preceded by a comma. */
    i = 1;
    while (list[i]) {
        strcat(str, ",");
        strcat(str, list[i]);
        i++;
    }

    /* Add the end quote. */
    strcat(str, "\"");

    return str;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x1, %edi
movl $0x3ff, %esi            # imm = 0x3FF
callq 0xc7f0
movq %rax, %rbx
testq %rax, %rax
je 0x2fe7d
movq %rbx, %rdi
callq 0xc480
movw $0x22, (%rbx,%rax)
movq (%r14), %rsi
movq %rbx, %rdi
callq 0xcea0
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x2fe6f
movb $0x2, %r12b
movq %rbx, %rdi
callq 0xc480
movw $0x2c, (%rbx,%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xcea0
movzbl %r12b, %r12d
movq (%r14,%r12,8), %r15
incb %r12b
testq %r15, %r15
jne 0x2fe46
movq %rbx, %rdi
callq 0xc480
movw $0x22, (%rbx,%rax)
movq %rbx, %rax
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: set_custom_filter
void
_set_custom_filter(lxw_filter_rule_obj *rule_obj)
{
    rule_obj->is_custom = LXW_TRUE;

    if (rule_obj->criteria1 == LXW_FILTER_CRITERIA_EQUAL_TO)
        rule_obj->is_custom = LXW_FALSE;

    if (rule_obj->criteria1 == LXW_FILTER_CRITERIA_BLANKS)
        rule_obj->is_custom = LXW_FALSE;

    if (rule_obj->criteria2 != LXW_FILTER_CRITERIA_NONE) {
        if (rule_obj->criteria1 == LXW_FILTER_CRITERIA_EQUAL_TO)
            rule_obj->is_custom = LXW_FALSE;

        if (rule_obj->criteria1 == LXW_FILTER_CRITERIA_BLANKS)
            rule_obj->is_custom = LXW_FALSE;

        if (rule_obj->type == LXW_FILTER_TYPE_AND)
            rule_obj->is_custom = LXW_TRUE;
    }

    if (rule_obj->value1_string && strpbrk(rule_obj->value1_string, "*?"))
        rule_obj->is_custom = LXW_TRUE;

    if (rule_obj->value2_string && strpbrk(rule_obj->value2_string, "*?"))
        rule_obj->is_custom = LXW_TRUE;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl 0x6(%rdi), %eax
cmpl $0x1, %eax
setne %cl
cmpl $0x7, %eax
setne %dl
andb %cl, %dl
movb %dl, 0x1(%rdi)
cmpb $0x0, 0x7(%rdi)
je 0x2fec2
cmpl $0x7, %eax
je 0x2feb5
cmpl $0x1, %eax
jne 0x2feb9
movb $0x0, 0x1(%rbx)
cmpb $0x2, (%rbx)
jne 0x2fec2
movb $0x1, 0x1(%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x2fee0
leaq 0x16b81(%rip), %rsi     # 0x46a53
callq 0xcb10
testq %rax, %rax
je 0x2fee0
movb $0x1, 0x1(%rbx)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x2fefe
leaq 0x16b63(%rip), %rsi     # 0x46a53
callq 0xcb10
testq %rax, %rax
je 0x2fefe
movb $0x1, 0x1(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: set_default_table_columns
lxw_error
_set_default_table_columns(lxw_table_obj *table_obj)
{

    char col_name[LXW_ATTR_32];
    char *header;
    uint16_t i;
    lxw_table_column *column;
    uint16_t num_cols = table_obj->num_cols;
    lxw_table_column **columns = table_obj->columns;

    for (i = 0; i < num_cols; i++) {
        lxw_snprintf(col_name, LXW_ATTR_32, "Column%d", i + 1);

        column = calloc(num_cols, sizeof(lxw_table_column));
        RETURN_ON_MEM_ERROR(column, LXW_ERROR_MEMORY_MALLOC_FAILED);

        header = lxw_strdup(col_name);
        if (!header) {
            free(column);
            RETURN_ON_MEM_ERROR(header, LXW_ERROR_MEMORY_MALLOC_FAILED);
        }
        columns[i] = column;
        columns[i]->header = header;
    }

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movzwl 0x32(%rdi), %ebx
testq %rbx, %rbx
je 0x3006a
movq 0x10(%rdi), %r13
leaq 0x16c3c(%rip), %r14     # 0x46c59
movq %rsp, %r15
xorl %ebp, %ebp
leal 0x1(%rbp), %ecx
movl $0x20, %esi
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xc570
movl $0x38, %esi
movq %rbx, %rdi
callq 0xc7f0
testq %rax, %rax
je 0x3007b
movq %rax, %r12
movq %r15, %rdi
callq 0xcce0
testq %rax, %rax
je 0x30082
movq %r12, (%r13,%rbp,8)
movq %rax, (%r12)
incq %rbp
cmpq %rbp, %rbx
jne 0x30022
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x677, %edi            # imm = 0x677
jmp 0x3008f
movq %r12, %rdi
callq 0xc0c0
movl $0x67c, %edi            # imm = 0x67C
callq 0xe8d2
movl $0x1, %eax
jmp 0x3006c
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: expand_table_formula
char *
_expand_table_formula(const char *formula)
{
    char *expanded;
    const char *ptr;
    size_t i;
    size_t ref_count = 0;
    size_t expanded_len;

    ptr = formula;

    while (*ptr++) {
        if (*ptr == '@')
            ref_count++;
    }

    if (ref_count == 0) {
        /* String doesn't need to be expanded. Just copy it. */
        expanded = lxw_strdup_formula(formula);
    }
    else {
        /* Convert "@" in the formula string to "[#This Row],".  */
        expanded_len = strlen(formula) + (sizeof(LXW_THIS_ROW) * ref_count);
        expanded = calloc(1, expanded_len);

        if (!expanded)
            return NULL;

        i = 0;
        ptr = formula;
        /* Ignore the = in the formula. */
        if (*ptr == '=')
            ptr++;

        /* Do the "@" expansion. */
        while (*ptr) {
            if (*ptr == '@') {
                strcat(&expanded[i], LXW_THIS_ROW);
                i += sizeof(LXW_THIS_ROW) - 1;
            }
            else {
                expanded[i] = *ptr;
                i++;
            }

            ptr++;
        }
    }

    return expanded;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb (%rdi), %bpl
testb %bpl, %bpl
je 0x3015a
leaq 0x1(%rbx), %rax
xorl %r14d, %r14d
movb (%rax), %cl
xorl %edx, %edx
cmpb $0x40, %cl
sete %dl
addq %rdx, %r14
incq %rax
testb %cl, %cl
jne 0x300bc
testq %r14, %r14
je 0x3015a
movq %rbx, %rdi
callq 0xc480
leaq (%r14,%r14,2), %rcx
leaq (%r14,%rcx,4), %rsi
addq %rax, %rsi
movl $0x1, %edi
callq 0xc7f0
testq %rax, %rax
je 0x30170
movq %rax, %r14
xorl %eax, %eax
cmpb $0x3d, %bpl
sete %al
addq %rax, %rbx
xorl %r12d, %r12d
movabsq $0x522073696854235b, %r13 # imm = 0x522073696854235B
movabsq $0x2c5d776f522073, %rbp # imm = 0x2C5D776F522073
movzbl (%rbx), %eax
cmpl $0x40, %eax
je 0x30138
testl %eax, %eax
je 0x30173
movb %al, (%r14,%r12)
movl $0x1, %eax
jmp 0x30152
leaq (%r14,%r12), %r15
movq %r15, %rdi
callq 0xc480
movq %r13, (%rax,%r15)
movq %rbp, 0x5(%rax,%r15)
movl $0xc, %eax
addq %rax, %r12
incq %rbx
jmp 0x30121
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc0e0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: write_column_function
void
_write_column_function(lxw_worksheet *self, lxw_row_t row, lxw_col_t col,
                       lxw_table_column *column)
{
    size_t offset;
    char formula[LXW_MAX_ATTRIBUTE_LENGTH];
    lxw_format *format = column->format;
    uint8_t total_function = column->total_function;
    double value = column->total_value;
    const char *header = column->header;

    /* Write the subtotal formula number. */
    lxw_snprintf(formula, LXW_MAX_ATTRIBUTE_LENGTH, "SUBTOTAL(%d,[",
                 total_function);

    /* Copy the header string but escape any special characters. Note, this is
     * guaranteed to fit in the 2k buffer since the header is max 255
     * characters, checked in _set_custom_table_columns(). */
    offset = strlen(formula);
    while (*header) {
        switch (*header) {
            case '\'':
            case '#':
            case '[':
            case ']':
                formula[offset++] = '\'';
                formula[offset] = *header;
                break;
            default:
                formula[offset] = *header;
                break;
        }
        offset++;
        header++;
    }

    /* Write the end of the string. */
    memcpy(&formula[offset], "])\0", sizeof("])\0"));

    worksheet_write_formula_num(self, row, col, formula, format, value);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x838, %rsp            # imm = 0x838
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r15
movq (%rcx), %r13
movq 0x28(%rcx), %r14
movzbl 0x18(%rcx), %eax
movsd 0x30(%rcx), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x16a10(%rip), %rdx     # 0x46ccf
leaq 0x10(%rsp), %r12
movl $0x820, %esi            # imm = 0x820
movq %r12, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0xc570
movq %r12, %rdi
callq 0xc480
movabsq $0x500000000000011, %rcx # imm = 0x500000000000011
movb (%r13), %dl
movzbl %dl, %esi
leal -0x23(%rsi), %edi
cmpl $0x3a, %edi
ja 0x30310
btq %rdi, %rcx
jae 0x30310
movb $0x27, 0x10(%rsp,%rax)
incq %rax
movb %dl, 0x10(%rsp,%rax)
incq %rax
incq %r13
jmp 0x302e7
testl %esi, %esi
jne 0x30304
movl $0x295d, 0x10(%rsp,%rax) # imm = 0x295D
movzwl %bp, %edx
leaq 0x10(%rsp), %rcx
movq %r15, %rdi
movl %ebx, %esi
movq %r14, %r8
movsd 0x8(%rsp), %xmm0
callq 0xcd00
addq $0x838, %rsp            # imm = 0x838
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_formula_num
lxw_error
worksheet_write_formula_num(lxw_worksheet *self,
                            lxw_row_t row_num,
                            lxw_col_t col_num,
                            const char *formula,
                            lxw_format *format, double 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->formula_result = result;

    _insert_cell(self, row_num, col_num, cell);

    return LXW_NO_ERROR;
}

// Assembly:
testq %rcx, %rcx
je 0x303c9
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %r15
movq %rcx, %r12
movl %esi, %ebx
movq %rdi, %r14
movsd %xmm0, 0x8(%rsp)
movzwl %dx, %ebp
movl %ebp, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x39d04
testl %eax, %eax
jne 0x303bc
xorl %edi, %edi
cmpb $0x3d, (%r12)
sete %dil
addq %r12, %rdi
callq 0xcce0
movl %ebx, %edi
movl %ebp, %esi
movq %rax, %rdx
movq %r15, %rcx
callq 0x39f0c
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x28(%rax)
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
movq %rax, %rcx
callq 0x39de8
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
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: write_table_column_data
void
_write_table_column_data(lxw_worksheet *self, lxw_table_obj *table_obj)
{
    uint16_t i;
    lxw_table_column *column;
    lxw_table_column **columns = table_obj->columns;

    lxw_col_t col;
    lxw_row_t first_row = table_obj->first_row;
    lxw_col_t first_col = table_obj->first_col;
    lxw_row_t last_row = table_obj->last_row;
    lxw_row_t first_data_row = first_row;
    lxw_row_t last_data_row = last_row;

    if (!table_obj->no_header_row)
        first_data_row++;

    if (table_obj->total_row)
        last_data_row--;

    for (i = 0; i < table_obj->num_cols; i++) {
        col = first_col + i;
        column = columns[i];

        if (table_obj->no_header_row == LXW_FALSE)
            worksheet_write_string(self, first_row, col, column->header,
                                   column->header_format);

        if (column->total_string)
            worksheet_write_string(self, last_row, col, column->total_string,
                                   NULL);

        if (column->total_function)
            _write_column_function(self, last_row, col, column);

        if (column->formula)
            _write_column_formula(self, first_data_row, last_data_row, col,
                                  column);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpb $0x1, 0x1d(%rsi)
movl 0x24(%rsi), %eax
movl %eax, 0x14(%rsp)
adcl $0x0, %eax
movl %eax, 0xc(%rsp)
movl 0x2c(%rsi), %ebx
cmpb $0x1, 0x20(%rsi)
movl %ebx, 0x10(%rsp)
adcl $-0x1, %ebx
cmpw $0x0, 0x32(%rsi)
je 0x30534
movq %rdi, %r14
movq 0x10(%rsi), %rax
movq %rax, 0x20(%rsp)
movzwl 0x28(%rsi), %eax
movq %rax, 0x18(%rsp)
xorl %edx, %edx
movq %rsi, 0x28(%rsp)
movq 0x18(%rsp), %rax
addl %edx, %eax
movq 0x20(%rsp), %rcx
movq %rdx, 0x30(%rsp)
movq (%rcx,%rdx,8), %r13
cmpb $0x0, 0x1d(%rsi)
movzwl %ax, %r12d
jne 0x304af
movq (%r13), %rcx
movq 0x20(%r13), %r8
movq %r14, %rdi
movl 0x14(%rsp), %esi
movl %r12d, %edx
callq 0xc0f0
movq 0x10(%r13), %rcx
testq %rcx, %rcx
je 0x304ca
movq %r14, %rdi
movl 0x10(%rsp), %esi
movl %r12d, %edx
xorl %r8d, %r8d
callq 0xc0f0
cmpb $0x0, 0x18(%r13)
je 0x304e3
movq %r14, %rdi
movl 0x10(%rsp), %esi
movl %r12d, %edx
movq %r13, %rcx
callq 0xc7e0
movq 0x8(%r13), %rbp
testq %rbp, %rbp
je 0x3051a
cmpl %ebx, 0xc(%rsp)
ja 0x3051a
movq 0x28(%r13), %r13
movl 0xc(%rsp), %r15d
xorps %xmm0, %xmm0
movq %r14, %rdi
movl %r15d, %esi
movl %r12d, %edx
movq %rbp, %rcx
movq %r13, %r8
callq 0xcd00
incl %r15d
cmpl %ebx, %r15d
jbe 0x304fb
movq 0x30(%rsp), %rdx
incq %rdx
movq 0x28(%rsp), %rsi
movzwl 0x32(%rsi), %eax
cmpq %rax, %rdx
jb 0x30479
addq $0x38, %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: check_table_rows
lxw_error
_check_table_rows(lxw_row_t first_row, lxw_row_t last_row,
                  lxw_table_options *user_options)
{
    lxw_row_t num_non_header_rows = last_row - first_row;

    if (user_options && user_options->no_header_row == LXW_TRUE)
        num_non_header_rows++;

    if (num_non_header_rows == 0) {
        LXW_WARN_FORMAT("worksheet_add_table(): "
                        "table must have at least 1 non-header row.");
        return LXW_ERROR_PARAMETER_VALIDATION;
    }

    return LXW_NO_ERROR;
}

// Assembly:
subl %edi, %esi
testq %rdx, %rdx
je 0x30686
xorl %eax, %eax
cmpb $0x1, 0x8(%rdx)
sete %al
addl %eax, %esi
xorl %eax, %eax
testl %esi, %esi
je 0x3068d
retq
pushq %rax
callq 0xe9a5
movl $0xd, %eax
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: check_table_name
lxw_error
_check_table_name(lxw_table_options *user_options)
{
    const char *name;
    char *ptr;
    char first[2] = { 0, 0 };

    if (!user_options)
        return LXW_NO_ERROR;

    if (!user_options->name)
        return LXW_NO_ERROR;

    name = user_options->name;

    /* Check table name length. */
    if (lxw_utf8_strlen(name) > 255) {
        LXW_WARN_FORMAT("worksheet_add_table(): "
                        "Table name exceeds Excel's limit of 255.");
        return LXW_ERROR_255_STRING_LENGTH_EXCEEDED;
    }

    /* Check some short invalid names. */
    if (strlen(name) == 1
        && (name[0] == 'C' || name[0] == 'c' || name[0] == 'R'
            || name[0] == 'r')) {
        LXW_WARN_FORMAT1("worksheet_add_table(): "
                         "invalid table name \"%s\".", name);
        return LXW_ERROR_255_STRING_LENGTH_EXCEEDED;
    }

    /* Check for invalid characters in Table name, while trying to allow
     * for utf8 strings. */
    ptr = strpbrk(name, " !\"#$%&'()*+,-/:;<=>?@[\\]^`{|}~");
    if (ptr) {
        LXW_WARN_FORMAT2("worksheet_add_table(): "
                         "invalid character '%c' in table name \"%s\".",
                         *ptr, name);
        return LXW_ERROR_PARAMETER_VALIDATION;
    }

    /* Check for invalid initial character in Table name, while trying to allow
     * for utf8 strings. */
    first[0] = name[0];
    ptr = strpbrk(first, " !\"#$%&'()*+,-./0123456789:;<=>?@[\\]^`{|}~");
    if (ptr) {
        LXW_WARN_FORMAT2("worksheet_add_table(): "
                         "invalid first character '%c' in table name \"%s\".",
                         *ptr, name);
        return LXW_ERROR_PARAMETER_VALIDATION;
    }

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movw $0x0, 0x6(%rsp)
xorl %ebp, %ebp
testq %rdi, %rdi
je 0x3071d
movq (%rdi), %rbx
testq %rbx, %rbx
je 0x3071d
movq %rbx, %rdi
callq 0xd0d0
cmpq $0x100, %rax            # imm = 0x100
jae 0x30743
movq %rbx, %rdi
callq 0xc480
cmpq $0x1, %rax
jne 0x306ef
movzbl (%rbx), %eax
addl $-0x43, %eax
cmpl $0x2f, %eax
ja 0x306ef
movabsq $0x800100008001, %rcx   # imm = 0x800100008001
btq %rax, %rcx
jb 0x30726
leaq 0x166bd(%rip), %rsi     # 0x46db3
movq %rbx, %rdi
callq 0xcb10
testq %rax, %rax
jne 0x3074f
movb (%rbx), %al
leaq 0x6(%rsp), %rdi
movb %al, (%rdi)
leaq 0x1670e(%rip), %rsi     # 0x46e21
callq 0xcb10
testq %rax, %rax
jne 0x30765
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x268cb(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
leaq 0x16640(%rip), %rsi     # 0x46d77
movq %rbx, %rdx
xorl %eax, %eax
callq 0xc870
jmp 0x30748
callq 0xe9c1
movl $0x14, %ebp
jmp 0x3071d
movq 0x268a2(%rip), %rcx     # 0x56ff8
movq (%rcx), %rdi
movsbl (%rax), %edx
leaq 0x16670(%rip), %rsi     # 0x46dd3
jmp 0x30779
movq 0x2688c(%rip), %rcx     # 0x56ff8
movq (%rcx), %rdi
movsbl (%rax), %edx
leaq 0x166d3(%rip), %rsi     # 0x46e4c
movq %rbx, %rcx
xorl %eax, %eax
callq 0xc870
movl $0xd, %ebp
jmp 0x3071d
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_position_object_emus
STATIC void
_worksheet_position_object_emus(lxw_worksheet *self,
                                lxw_object_properties *image,
                                lxw_drawing_object *drawing_object)
{

    _worksheet_position_object_pixels(self, image, drawing_object);

    /* Convert the pixel values to EMUs. See above. */
    drawing_object->from.col_offset *= 9525;
    drawing_object->from.row_offset *= 9525;
    drawing_object->to.col_offset *= 9525;
    drawing_object->to.row_offset *= 9525;
    drawing_object->to.col_offset += 0.5;
    drawing_object->to.row_offset += 0.5;
    drawing_object->col_absolute *= 9525;
    drawing_object->row_absolute *= 9525;
}

// Assembly:
pushq %rbx
movq %rdx, %rbx
callq 0x30d42
movapd 0x14f14(%rip), %xmm0    # 0x46690
movupd 0x10(%rbx), %xmm1
movupd 0x28(%rbx), %xmm2
mulpd %xmm0, %xmm1
mulpd %xmm0, %xmm2
addpd 0x14eca(%rip), %xmm2    # 0x46660
movupd %xmm1, 0x10(%rbx)
movupd %xmm2, 0x28(%rbx)
imulq $0x2535, 0x38(%rbx), %rax # imm = 0x2535
movq %rax, 0x38(%rbx)
imulq $0x2535, 0x40(%rbx), %rax # imm = 0x2535
movq %rax, 0x40(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: lxw_worksheet_prepare_background
void
lxw_worksheet_prepare_background(lxw_worksheet *self,
                                 uint32_t image_ref_id,
                                 lxw_object_properties *object_props)
{
    lxw_rel_tuple *relationship = NULL;
    char filename[LXW_FILENAME_LENGTH];

    STAILQ_INSERT_TAIL(self->image_props, object_props, list_pointers);

    relationship = calloc(1, sizeof(lxw_rel_tuple));
    RETURN_VOID_ON_MEM_ERROR(relationship);

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

    lxw_snprintf(filename, 32, "../media/image%d.%s", image_ref_id,
                 object_props->extension);

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

    self->external_background_link = relationship;

    return;

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r14
leaq 0xb8(%rdx), %rax
movq $0x0, 0xb8(%rdx)
movq 0x60(%rdi), %rcx
movq 0x8(%rcx), %rcx
movq %rdx, (%rcx)
movq 0x60(%rdi), %rcx
movq %rax, 0x8(%rcx)
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x32016
movq %rax, %rbx
leaq 0x14fbb(%rip), %rdi     # 0x46f79
callq 0xcce0
movq %rax, %r15
movq %rax, (%rbx)
testq %rax, %rax
je 0x3201d
movq 0x78(%r12), %r8
leaq 0x14fa6(%rip), %rdx     # 0x46f80
movq %rsp, %r12
movl $0x20, %esi
movq %r12, %rdi
movl %ebp, %ecx
xorl %eax, %eax
callq 0xc570
movq %r12, %rdi
callq 0xcce0
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x32024
movq %rbx, 0x2c0(%r14)
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0xedc7
jmp 0x32006
callq 0xeda3
jmp 0x32029
callq 0xed79
movq %r15, %rdi
callq 0xc0c0
movq %rbx, %rdi
callq 0xc0c0
jmp 0x32006