LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 0x29cf2
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xc4c0
cmpq $0x100, %rax            # imm = 0x100
jae 0x29d12
pushq $0x1
popq %rdi
pushq $0x38
popq %rsi
callq 0xc850
testq %rax, %rax
je 0x29d32
movq %rax, %r15
movq %r14, %rdi
callq 0xcd50
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
movq 0x292ff(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x19220(%rip), %rdi     # 0x42f23
pushq $0x54
popq %rsi
pushq $0x1
popq %rdx
callq 0xd000
pushq $0xc
jmp 0x29d58
movq 0x292df(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x19255(%rip), %rdi     # 0x42f78
pushq $0x67
popq %rsi
pushq $0x1
popq %rdx
callq 0xd000
pushq $0x14
jmp 0x29d58
movq 0x292bf(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x1339d(%rip), %rsi     # 0x3d0e0
leaq 0x18c07(%rip), %rdx     # 0x42951
movl $0x9a4, %ecx            # imm = 0x9A4
xorl %eax, %eax
callq 0xc8d0
pushq $0x1
popq %rax
jmp 0x29ce7
// File: /workspace/github_c_makefile_star2_O2/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 0x29dd4
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xd150
cmpq $0x100, %rax            # imm = 0x100
jae 0x29df4
pushq $0x1
popq %rdi
pushq $0x38
popq %rsi
callq 0xc850
testq %rax, %rax
je 0x29e14
movq %rax, %r15
movq %r14, %rdi
callq 0xcd50
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
movq 0x2921d(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x191fb(%rip), %rdi     # 0x42fe0
pushq $0x54
popq %rsi
pushq $0x1
popq %rdx
callq 0xd000
pushq $0xc
jmp 0x29e3a
movq 0x291fd(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x19230(%rip), %rdi     # 0x43035
pushq $0x67
popq %rsi
pushq $0x1
popq %rdx
callq 0xd000
pushq $0x14
jmp 0x29e3a
movq 0x291dd(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x132bb(%rip), %rsi     # 0x3d0e0
leaq 0x18b25(%rip), %rdx     # 0x42951
movl $0x9c7, %ecx            # imm = 0x9C7
xorl %eax, %eax
callq 0xc8d0
pushq $0x1
popq %rax
jmp 0x29dc9
// File: /workspace/github_c_makefile_star2_O2/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 0x29ecf
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xd150
cmpq $0x100, %rax            # imm = 0x100
jae 0x29ee4
testq %r14, %r14
je 0x29ef9
pushq $0x1
popq %rdi
pushq $0x38
popq %rsi
callq 0xc850
testq %rax, %rax
je 0x29f19
movq %rax, %r12
movq %r15, %rdi
callq 0xcd50
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
jmp 0x29f40
movq 0x29122(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x191bd(%rip), %rdi     # 0x4309d
pushq $0x55
jmp 0x29f0c
movq 0x2910d(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x191fe(%rip), %rdi     # 0x430f3
pushq $0x68
jmp 0x29f0c
movq 0x290f8(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x19252(%rip), %rdi     # 0x4315c
pushq $0x59
popq %rsi
pushq $0x1
popq %rdx
callq 0xd000
pushq $0xc
jmp 0x29f3f
movq 0x290d8(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x131b6(%rip), %rsi     # 0x3d0e0
leaq 0x18a20(%rip), %rdx     # 0x42951
movl $0x9f0, %ecx            # imm = 0x9F0
xorl %eax, %eax
callq 0xc8d0
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
testq %rsi, %rsi
je 0x29f96
movq %rsp, %r14
movq %rsi, (%r14)
movq 0x20(%rdi), %r15
xorl %ebx, %ebx
pushq $0x10
popq %r12
pushq $0x18
popq %r13
movq (%r15), %r15
testq %r15, %r15
je 0x29f9e
movq %r14, %rdi
movq %r15, %rsi
callq 0x2a14e
movq %r12, %rcx
testl %eax, %eax
js 0x29f91
movq %r13, %rcx
je 0x29f9a
addq %rcx, %r15
jmp 0x29f72
xorl %ebx, %ebx
jmp 0x29f9e
movq 0x8(%r15), %rbx
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
testq %rsi, %rsi
je 0x29ff9
movq %rsp, %r14
movq %rsi, (%r14)
movq 0x28(%rdi), %r15
xorl %ebx, %ebx
pushq $0x10
popq %r12
pushq $0x18
popq %r13
movq (%r15), %r15
testq %r15, %r15
je 0x2a001
movq %r14, %rdi
movq %r15, %rsi
callq 0x2a159
movq %r12, %rcx
testl %eax, %eax
js 0x29ff4
movq %r13, %rcx
je 0x29ffd
addq %rcx, %r15
jmp 0x29fd5
xorl %ebx, %ebx
jmp 0x2a001
movq 0x8(%r15), %rbx
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2a079
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x12fb5(%rip), %rsi     # 0x3d000
movq %rbx, %rdi
callq 0xc270
testq %rax, %rax
je 0x2a099
movq %rax, %rdi
callq 0xc450
movq %rbx, %rdi
callq 0xcd50
movq %rax, 0xe8(%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x28f78(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x19134(%rip), %rdi     # 0x431be
pushq $0x4b
popq %rsi
pushq $0x1
popq %rdx
callq 0xd000
pushq $0xc
jmp 0x2a0b6
movq 0x28f58(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x19160(%rip), %rsi     # 0x4320a
movq %rbx, %rdx
xorl %eax, %eax
callq 0xc8d0
pushq $0xd
popq %rax
jmp 0x2a071
// File: /workspace/github_c_makefile_star2_O2/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 0xc9f0
testl %eax, %eax
jne 0x2a0fe
testq %rbx, %rbx
je 0x2a106
leaq 0x12f28(%rip), %rsi     # 0x3d000
movq %rbx, %rdi
callq 0xc270
testq %rax, %rax
je 0x2a126
movq %rax, %rdi
callq 0xc450
movq %rbx, %rdi
callq 0xcd50
movq %rax, 0xf0(%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x28eeb(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x1914e(%rip), %rdi     # 0x43265
pushq $0x54
popq %rsi
pushq $0x1
popq %rdx
callq 0xd000
pushq $0xc
jmp 0x2a143
movq 0x28ecb(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x19183(%rip), %rsi     # 0x432ba
movq %rbx, %rdx
xorl %eax, %eax
callq 0xc8d0
pushq $0xd
popq %rax
jmp 0x2a0fe
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/workbook.c
// Function: store_image_type
STATIC void
_store_image_type(lxw_workbook *self, uint8_t image_type)
{
    if (image_type == LXW_IMAGE_PNG)
        self->has_png = LXW_TRUE;

    if (image_type == LXW_IMAGE_JPEG)
        self->has_jpeg = LXW_TRUE;

    if (image_type == LXW_IMAGE_BMP)
        self->has_bmp = LXW_TRUE;

    if (image_type == LXW_IMAGE_GIF)
        self->has_gif = LXW_TRUE;
}

// Assembly:
decl %esi
cmpl $0x3, %esi
ja 0x2a192
leaq 0x187c6(%rip), %rax     # 0x42938
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movb $0x1, 0xcf(%rdi)
retq
movb $0x1, 0xd1(%rdi)
retq
movb $0x1, 0xd2(%rdi)
retq
movb $0x1, 0xd0(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2c85a
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rax
xorl %ecx, %ecx
movq %rcx, %r14
movq (%rax), %rcx
leaq 0x48(%rcx), %rax
testq %rcx, %rcx
jne 0x2c80c
jmp 0x2c83f
movq %r14, %rdi
callq 0x2f5d6
movq %rax, %r15
movq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x3ab96
movq %r14, %rdi
callq 0x2caea
movq %r15, %r14
testq %r14, %r14
jne 0x2c81d
movq 0x20(%rbx), %rdi
callq 0xc0d0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0xc0d0
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2c8bb
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
callq 0xc0d0
movq 0x28(%rbx), %rdi
callq 0xc0d0
movq 0x78(%rbx), %rdi
callq 0xc0d0
movq 0x30(%rbx), %rdi
callq 0xc0d0
movq 0x38(%rbx), %rdi
callq 0xc0d0
movq 0x58(%rbx), %rdi
callq 0xc0d0
movq 0xa0(%rbx), %rdi
callq 0xc0d0
movq 0xa8(%rbx), %rdi
callq 0xc0d0
movq %rbx, %rdi
popq %rbx
jmp 0xc0d0
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2c916
pushq %rbx
movq %rdi, %rbx
movq 0x88(%rdi), %rdi
callq 0xc0d0
movq 0x90(%rbx), %rdi
callq 0xc0d0
movq 0x98(%rbx), %rdi
callq 0xc0d0
movq 0xa0(%rbx), %rdi
callq 0xc0d0
movq 0xa8(%rbx), %rdi
callq 0xc0d0
movq 0xb0(%rbx), %rdi
callq 0xc0d0
movq %rbx, %rdi
popq %rbx
jmp 0xc0d0
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2c98b
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r15d, %r15d
movzwl 0x32(%rbx), %eax
cmpq %rax, %r15
jae 0x2c964
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0x2c95f
movq (%r14), %rdi
callq 0xc0d0
movq 0x8(%r14), %rdi
callq 0xc0d0
movq 0x10(%r14), %rdi
callq 0xc0d0
movq %r14, %rdi
callq 0xc0d0
incq %r15
jmp 0x2c927
movq (%rbx), %rdi
callq 0xc0d0
movq 0x8(%rbx), %rdi
callq 0xc0d0
movq 0x10(%rbx), %rdi
callq 0xc0d0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0xc0d0
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2c9e9
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0xc0d0
movq 0x58(%rbx), %rdi
callq 0xc0d0
movq 0x80(%rbx), %rdi
callq 0xc0d0
movq 0x88(%rbx), %rdi
callq 0xc0d0
movq 0x90(%rbx), %rdi
callq 0xc0d0
movq 0x98(%rbx), %rdi
callq 0xc0d0
movq 0x28(%rbx), %rdi
callq 0xc0d0
movq %rbx, %rdi
popq %rbx
jmp 0xc0d0
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2ca16
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0xc0d0
movq 0x8(%rbx), %rdi
callq 0xc0d0
movq 0x10(%rbx), %rdi
callq 0xc0d0
movq %rbx, %rdi
popq %rbx
jmp 0xc0d0
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2caa7
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0xc0d0
movq 0x28(%rbx), %rdi
callq 0xc0d0
movq 0x40(%rbx), %rdi
callq 0xc0d0
movq 0x78(%rbx), %rdi
callq 0xc0d0
movq 0x80(%rbx), %rdi
callq 0xc0d0
movq %rbx, %rdi
popq %rbx
jmp 0xc0d0
retq
// File: /workspace/github_c_makefile_star2_O2/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:
cmpq $0x0, 0x3b0(%rdi)
je 0x2cae9
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movzwl 0x3b8(%rbx), %eax
movq 0x3b0(%rbx), %rdi
cmpq %rax, %r14
jae 0x2cadd
movq (%rdi,%r14,8), %rdi
callq 0x385b3
incq %r14
jmp 0x2cabc
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc0d0
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: 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 0x2cb29
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %eax
cmpl $0x9, %eax
ja 0x2cb2a
movl $0x306, %ecx            # imm = 0x306
btl %eax, %ecx
jae 0x2cb2a
movq 0x30(%rbx), %rdi
callq 0xc0d0
movq 0x38(%rbx), %rdi
callq 0xc0d0
movq 0x18(%rbx), %rdi
callq 0x2c8bc
movq %rbx, %rdi
popq %rbx
jmp 0xc0d0
retq
movq 0x20(%rbx), %rdi
callq 0xc0d0
jmp 0x2cb05
// File: /workspace/github_c_makefile_star2_O2/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 0x2cb6c
movq %rdi, %rbx
pushq $0x2f
popq %rsi
callq 0xc5f0
movq %rax, %r14
pushq $0x5c
popq %rsi
movq %rbx, %rdi
callq 0xc5f0
movq %r14, %rcx
orq %rax, %rcx
je 0x2cb76
cmpq %rax, %r14
jbe 0x2cb70
incq %r14
movq %r14, %rbx
jmp 0x2cb76
xorl %ebx, %ebx
jmp 0x2cb76
incq %rax
movq %rax, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: 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 %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2cbc1
movq %rdi, %r14
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x2cbc1
movb $0x1, %r15b
xorl %ebx, %ebx
testq %rdi, %rdi
je 0x2cbc5
cmpq $0xfe, %rbx
ja 0x2cbc5
callq 0xd150
addq %rax, %rbx
incq %rbx
movzbl %r15b, %r15d
movq (%r14,%r15,8), %rdi
incb %r15b
jmp 0x2cb9b
xorl %ebx, %ebx
jmp 0x2cbc8
decq %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rdi
movl $0x3ff, %esi            # imm = 0x3FF
callq 0xc850
movq %rax, %r14
testq %rax, %rax
je 0x2cc40
movq %r14, %rdi
callq 0xc4c0
movw $0x22, (%r14,%rax)
movq (%rbx), %rsi
movq %r14, %rdi
callq 0xcf20
movb $0x1, %bpl
movzbl %bpl, %eax
movq (%rbx,%rax,8), %r15
movq %r14, %rdi
callq 0xc4c0
testq %r15, %r15
je 0x2cc39
movw $0x2c, (%r14,%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0xcf20
incb %bpl
jmp 0x2cc0d
movw $0x22, (%r14,%rax)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2cc84
cmpl $0x7, %eax
je 0x2cc77
cmpl $0x1, %eax
jne 0x2cc7b
movb $0x0, 0x1(%rbx)
cmpb $0x2, (%rbx)
jne 0x2cc84
movb $0x1, 0x1(%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x2cca2
leaq 0x16dab(%rip), %rsi     # 0x43a3f
callq 0xcb80
testq %rax, %rax
je 0x2cca2
movb $0x1, 0x1(%rbx)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x2ccc0
leaq 0x16d8d(%rip), %rsi     # 0x43a3f
callq 0xcb80
testq %rax, %rax
je 0x2ccc0
movb $0x1, 0x1(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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), %r14d
movq 0x10(%rdi), %r15
movq %rsp, %r12
pushq $0x38
popq %rbp
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x2ce20
leal 0x1(%r13), %ecx
movq %r12, %rdi
pushq $0x20
popq %rsi
leaq 0x16e58(%rip), %rdx     # 0x43c45
xorl %eax, %eax
callq 0xc5b0
movq %r14, %rdi
movq %rbp, %rsi
callq 0xc850
testq %rax, %rax
je 0x2ce31
movq %rax, %rbx
movq %r12, %rdi
callq 0xcd50
testq %rax, %rax
je 0x2ce38
movq %rbx, (%r15,%r13,8)
movq %rax, (%rbx)
incq %r13
jmp 0x2cdd7
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x677, %ecx            # imm = 0x677
jmp 0x2ce45
movq %rbx, %rdi
callq 0xc0d0
movl $0x67c, %ecx            # imm = 0x67C
movq 0x261ac(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x1028a(%rip), %rsi     # 0x3d0e0
leaq 0x16b83(%rip), %rdx     # 0x439e0
xorl %eax, %eax
callq 0xc8d0
pushq $0x1
popq %rax
jmp 0x2ce22
// File: /workspace/github_c_makefile_star2_O2/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
leaq 0x1(%rdi), %rax
xorl %r14d, %r14d
movl %ebp, %ecx
testb %cl, %cl
je 0x2ce99
movb (%rax), %cl
xorl %edx, %edx
cmpb $0x40, %cl
sete %dl
addq %rdx, %r14
incq %rax
jmp 0x2ce83
testq %r14, %r14
je 0x2cf18
movq %rbx, %rdi
callq 0xc4c0
imulq $0xd, %r14, %rsi
addq %rax, %rsi
pushq $0x1
popq %rdi
callq 0xc850
testq %rax, %rax
je 0x2cf2e
movq %rax, %r14
xorl %eax, %eax
cmpb $0x3d, %bpl
sete %al
addq %rax, %rbx
xorl %r13d, %r13d
movabsq $0x2c5d776f522073, %r15 # imm = 0x2C5D776F522073
pushq $0xc
popq %rbp
movzbl (%rbx), %eax
cmpl $0x40, %eax
je 0x2ceee
testl %eax, %eax
je 0x2cf31
movb %al, (%r14,%r13)
pushq $0x1
popq %rax
jmp 0x2cf10
leaq (%r14,%r13), %r12
movq %r12, %rdi
callq 0xc4c0
movabsq $0x522073696854235b, %rcx # imm = 0x522073696854235B
movq %rcx, (%rax,%r12)
movq %r15, 0x5(%rax,%r12)
movq %rbp, %rax
addq %rax, %r13
incq %rbx
jmp 0x2ced9
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc0f0
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_O2/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 0x16bd6(%rip), %rdx     # 0x43cbb
leaq 0x10(%rsp), %r12
movl $0x820, %esi            # imm = 0x820
movq %r12, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0xc5b0
movq %r12, %rdi
callq 0xc4c0
movabsq $0x500000000000011, %rcx # imm = 0x500000000000011
movb (%r13), %dl
movzbl %dl, %esi
leal -0x23(%rsi), %edi
cmpl $0x3a, %edi
ja 0x2d136
btq %rdi, %rcx
jae 0x2d136
movb $0x27, 0x10(%rsp,%rax)
incq %rax
movb %dl, 0x10(%rsp,%rax)
incq %rax
incq %r13
jmp 0x2d10d
testl %esi, %esi
jne 0x2d12a
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 0xcd80
addq $0x838, %rsp            # imm = 0x838
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_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 0x2d1ef
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 0x36a6c
testl %eax, %eax
jne 0x2d1e2
xorl %edi, %edi
cmpb $0x3d, (%r12)
sete %dil
addq %r12, %rdi
callq 0xcd50
movl %ebx, %edi
movl %ebp, %esi
movq %rax, %rdx
movq %r15, %rcx
callq 0x36ca2
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x28(%rax)
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
movq %rax, %rcx
callq 0x36b65
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0xc
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: write_column_formula
void
_write_column_formula(lxw_worksheet *self, lxw_row_t first_row,
                      lxw_row_t last_row, lxw_col_t col,
                      lxw_table_column *column)
{
    lxw_row_t row;
    const char *formula = column->formula;
    lxw_format *format = column->format;

    for (row = first_row; row <= last_row; row++)
        worksheet_write_formula(self, row, col, formula, format);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movq 0x8(%r8), %r15
movq 0x28(%r8), %r12
movzwl %cx, %r13d
cmpl %ebx, %ebp
ja 0x2d22c
movq %r14, %rdi
movl %ebp, %esi
movl %r13d, %edx
movq %r15, %rcx
movq %r12, %r8
callq 0xcb10
incl %ebp
jmp 0x2d211
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: 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 $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %rax
movq %rax, 0x20(%rsp)
movl 0x24(%rsi), %eax
movzwl 0x28(%rsi), %ecx
movq %rcx, 0x18(%rsp)
movl 0x2c(%rsi), %r15d
cmpb $0x1, 0x1d(%rsi)
movl %eax, 0xc(%rsp)
adcl $0x0, %eax
movl %eax, 0x14(%rsp)
cmpb $0x1, 0x20(%rsi)
movl %r15d, %eax
adcl $-0x1, %eax
movl %eax, 0x10(%rsp)
xorl %r12d, %r12d
movzwl 0x32(%rbx), %eax
cmpq %rax, %r12
jae 0x2d326
movq 0x18(%rsp), %rax
leaq (%rax,%r12), %r13
movq 0x20(%rsp), %rax
movq (%rax,%r12,8), %rbp
cmpb $0x0, 0x1d(%rbx)
jne 0x2d2cd
movq (%rbp), %rcx
movq 0x20(%rbp), %r8
movzwl %r13w, %edx
movq %r14, %rdi
movl 0xc(%rsp), %esi
callq 0xc100
movq 0x10(%rbp), %rcx
testq %rcx, %rcx
je 0x2d2e8
movzwl %r13w, %edx
movq %r14, %rdi
movl %r15d, %esi
xorl %r8d, %r8d
callq 0xc100
cmpb $0x0, 0x18(%rbp)
je 0x2d300
movzwl %r13w, %edx
movq %r14, %rdi
movl %r15d, %esi
movq %rbp, %rcx
callq 0xc840
cmpq $0x0, 0x8(%rbp)
je 0x2d31e
movzwl %r13w, %ecx
movq %r14, %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
movq %rbp, %r8
callq 0xc130
incq %r12
jmp 0x2d290
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: 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 0x2d49a
xorl %eax, %eax
cmpb $0x1, 0x8(%rdx)
sete %al
addl %eax, %esi
xorl %eax, %eax
testl %esi, %esi
je 0x2d4a1
retq
pushq %rax
movq 0x25b4f(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x16816(%rip), %rdi     # 0x43cc9
pushq $0x4d
popq %rsi
pushq $0x1
popq %rdx
callq 0xd000
pushq $0xd
popq %rax
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_position_vml_object
void
_worksheet_position_vml_object(lxw_worksheet *self, lxw_vml_obj *vml_obj)
{
    lxw_object_properties object_props;
    lxw_drawing_object drawing_object;

    object_props.col = vml_obj->start_col;
    object_props.row = vml_obj->start_row;
    object_props.x_offset = vml_obj->x_offset;
    object_props.y_offset = vml_obj->y_offset;
    object_props.width = vml_obj->width;
    object_props.height = vml_obj->height;

    drawing_object.anchor = LXW_OBJECT_DONT_MOVE_DONT_SIZE;

    _worksheet_position_object_pixels(self, &object_props, &drawing_object);

    vml_obj->from.col = drawing_object.from.col;
    vml_obj->from.row = drawing_object.from.row;
    vml_obj->from.col_offset = drawing_object.from.col_offset;
    vml_obj->from.row_offset = drawing_object.from.row_offset;
    vml_obj->to.col = drawing_object.to.col;
    vml_obj->to.row = drawing_object.to.row;
    vml_obj->to.col_offset = drawing_object.to.col_offset;
    vml_obj->to.row_offset = drawing_object.to.row_offset;
    vml_obj->col_absolute = drawing_object.col_absolute;
    vml_obj->row_absolute = drawing_object.row_absolute;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rsi, %rbx
movzwl 0xc(%rsi), %eax
leaq 0x88(%rsp), %rsi
movw %ax, 0x1c(%rsi)
movl 0x8(%rbx), %eax
movl %eax, 0x18(%rsi)
movq 0x10(%rbx), %rax
movq %rax, (%rsi)
movsd 0x28(%rbx), %xmm0
xorpd %xmm1, %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x15b07(%rip), %xmm1    # 0x43630
orpd %xmm1, %xmm0
subpd %xmm1, %xmm0
movupd %xmm0, 0x68(%rsi)
leaq 0x8(%rsp), %r14
movb $0x3, 0x1(%r14)
movq %r14, %rdx
callq 0x2db7e
movq 0x8(%r14), %rax
movq %rax, 0x58(%rbx)
movups 0x10(%r14), %xmm0
movups %xmm0, 0x60(%rbx)
movq 0x20(%r14), %rax
movq %rax, 0x70(%rbx)
movups 0x28(%r14), %xmm0
movups %xmm0, 0x78(%rbx)
movups 0x38(%r14), %xmm0
movups %xmm0, 0x18(%rbx)
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2db7e
movapd 0x1512f(%rip), %xmm0    # 0x43670
movupd 0x10(%rbx), %xmm1
movupd 0x28(%rbx), %xmm2
mulpd %xmm0, %xmm1
mulpd %xmm0, %xmm2
addpd 0x150e5(%rip), %xmm2    # 0x43640
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_O2/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, %r15
leaq 0xb8(%rdx), %rax
andq $0x0, 0xb8(%rdx)
movq 0x60(%rdi), %rcx
movq 0x8(%rcx), %rcx
movq %rdx, (%rcx)
movq 0x60(%rdi), %rcx
movq %rax, 0x8(%rcx)
pushq $0x1
popq %rdi
pushq $0x20
popq %rsi
callq 0xc850
testq %rax, %rax
je 0x2ee63
movq %rax, %rbx
leaq 0x15158(%rip), %rdi     # 0x43f65
callq 0xcd50
movq %rax, %r14
movq %rax, (%rbx)
testq %rax, %rax
je 0x2ee96
movq 0x78(%r12), %r8
leaq 0x15143(%rip), %rdx     # 0x43f6c
movq %rsp, %r12
pushq $0x20
popq %rsi
movq %r12, %rdi
movl %ebp, %ecx
xorl %eax, %eax
callq 0xc5b0
movq %r12, %rdi
callq 0xcd50
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x2eeb5
movq %rbx, 0x2c0(%r15)
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x2418e(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0xe26c(%rip), %rsi      # 0x3d0e0
leaq 0x14b65(%rip), %rdx     # 0x439e0
movl $0xdd8, %ecx            # imm = 0xDD8
xorl %eax, %eax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xc8d0
movq 0x2415b(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0xe239(%rip), %rsi      # 0x3d0e0
leaq 0x14b32(%rip), %rdx     # 0x439e0
movl $0xddb, %ecx            # imm = 0xDDB
jmp 0x2eed2
movq 0x2413c(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0xe21a(%rip), %rsi      # 0x3d0e0
leaq 0x14b13(%rip), %rdx     # 0x439e0
movl $0xde1, %ecx            # imm = 0xDE1
xorl %eax, %eax
callq 0xc8d0
movq %r14, %rdi
callq 0xc0d0
movq %rbx, %rdi
callq 0xc0d0
jmp 0x2ee53
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x120(%rdi), %rbx
cmpb $0x0, 0x1b(%rbx)
movb 0x1c(%rbx), %al
je 0x2fd7f
testb %al, %al
jne 0x2fd87
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x2fe17
jmp 0x2fdf0
testb %al, %al
je 0x2fe0c
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x2fe17
movzwl 0xac(%r14), %ebp
cmpw 0xae(%r14), %bp
ja 0x2fde1
movq 0x38(%r14), %rax
movzwl %bp, %r15d
movq (%rax,%r15,8), %rsi
testq %rsi, %rsi
je 0x2fddd
movq 0x10(%rbx), %rdx
movq %r14, %rdi
callq 0x300e4
movq 0x38(%r14), %rax
shll $0x3, %r15d
movq (%rax,%r15), %rdi
callq 0x2caea
movq 0x38(%r14), %rax
andq $0x0, (%rax,%r15)
incl %ebp
jmp 0x2fd9c
movq (%r14), %rdi
leaq 0xf936(%rip), %rsi      # 0x3f721
callq 0xc060
movabsq $0x402e000000000000, %rax # imm = 0x402E000000000000
movq %rax, 0x8(%rbx)
andq $0x0, 0x10(%rbx)
andl $0x0, 0x17(%rbx)
andw $0x0, 0x1b(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq