LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: write_chart_files
STATIC lxw_error
_write_chart_files(lxw_packager *self)
{
    lxw_workbook *workbook = self->workbook;
    lxw_chart *chart;
    char sheetname[LXW_FILENAME_LENGTH] = { 0 };
    char *buffer = NULL;
    size_t buffer_size = 0;
    uint32_t index = 1;
    lxw_error err;

    STAILQ_FOREACH(chart, workbook->ordered_charts, ordered_list_pointers) {

        lxw_snprintf(sheetname, LXW_FILENAME_LENGTH,
                     "xl/charts/chart%d.xml", index++);

        chart->file = lxw_get_filehandle(&buffer, &buffer_size, self->tmpdir);
        if (!chart->file)
            return LXW_ERROR_CREATING_TMPFILE;

        lxw_chart_assemble_xml_file(chart);

        err = _add_to_zip(self, chart->file, &buffer, &buffer_size,
                          sheetname);
        fclose(chart->file);
        free(buffer);
        RETURN_ON_ERROR(err);
    }

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq 0x8(%rdi), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
xorl %r12d, %r12d
movq %r12, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq 0x50(%rax), %rax
movq (%rax), %r14
testq %r14, %r14
je 0x20c4f
movq %rdi, %rbx
movl $0x1, %ecx
leaq 0x20(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x18(%rsp), %r15
movl $0x80, %esi
movq %r12, %rdi
leaq 0x221f8(%rip), %rdx     # 0x42dbc
movl %ecx, 0xc(%rsp)
xorl %eax, %eax
callq 0xc570
movq 0x70(%rbx), %rdx
movq %r13, %rdi
movq %r15, %rsi
callq 0xce00
movq %rax, (%r14)
testq %rax, %rax
je 0x20c49
movq %r14, %rdi
callq 0xc860
movq (%r14), %rsi
movq %rbx, %rbp
movq %rbx, %rdi
movq %r15, %rcx
movq %r13, %rbx
movq %r13, %rdx
movq %r12, %r13
movq %r12, %r8
callq 0x22482
movl %eax, %r12d
movq (%r14), %rdi
callq 0xc420
movq 0x10(%rsp), %rdi
callq 0xc0c0
testl %r12d, %r12d
jne 0x20c4f
movl 0xc(%rsp), %ecx
incl %ecx
movq 0x170(%r14), %r14
testq %r14, %r14
movq %r13, %r12
movq %rbx, %r13
movq %rbp, %rbx
jne 0x20bb5
xorl %r12d, %r12d
jmp 0x20c4f
movl $0x3, %r12d
movl %r12d, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: write_drawing_files
STATIC lxw_error
_write_drawing_files(lxw_packager *self)
{
    lxw_workbook *workbook = self->workbook;
    lxw_sheet *sheet;
    lxw_worksheet *worksheet;
    lxw_drawing *drawing;
    char filename[LXW_FILENAME_LENGTH] = { 0 };
    char *buffer = NULL;
    size_t buffer_size = 0;
    uint32_t index = 1;
    lxw_error err;

    STAILQ_FOREACH(sheet, workbook->sheets, list_pointers) {
        if (sheet->is_chartsheet)
            worksheet = sheet->u.chartsheet->worksheet;
        else
            worksheet = sheet->u.worksheet;

        drawing = worksheet->drawing;

        if (drawing) {
            lxw_snprintf(filename, LXW_FILENAME_LENGTH,
                         "xl/drawings/drawing%d.xml", index++);

            drawing->file = lxw_get_filehandle(&buffer, &buffer_size,
                                               self->tmpdir);
            if (!drawing->file)
                return LXW_ERROR_CREATING_TMPFILE;

            lxw_drawing_assemble_xml_file(drawing);

            err = _add_to_zip(self, drawing->file, &buffer, &buffer_size,
                              filename);
            fclose(drawing->file);
            free(buffer);
            RETURN_ON_ERROR(err);
        }
    }

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq 0x8(%rdi), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
xorl %r13d, %r13d
movq %r13, 0x8(%rsp)
movq %r13, 0x18(%rsp)
movq 0x8(%rax), %rax
movq (%rax), %r12
testq %r12, %r12
je 0x20d99
movq %rdi, %rbx
movl $0x1, %ecx
leaq 0x20(%rsp), %r13
leaq 0x8(%rsp), %r15
leaq 0x18(%rsp), %rbp
movq %rdi, 0x10(%rsp)
cmpb $0x0, (%r12)
movq %r12, %rax
je 0x20cf2
movq 0x8(%r12), %rax
movq 0x8(%rax), %rax
movq 0x290(%rax), %r14
testq %r14, %r14
je 0x20d80
movl $0x80, %esi
movq %r13, %rdi
leaq 0x220c2(%rip), %rdx     # 0x42dd3
movl %ecx, 0x4(%rsp)
xorl %eax, %eax
callq 0xc570
movq 0x70(%rbx), %rdx
movq %r15, %rdi
movq %rbp, %rsi
callq 0xce00
movq %rax, (%r14)
testq %rax, %rax
je 0x20d93
movq %r14, %rdi
callq 0xc330
movq (%r14), %rsi
movq %rbp, %rcx
movq %rbx, %rdi
movq %r15, %rbx
movq %r15, %rdx
movq %r13, %r15
movq %r13, %r8
callq 0x22482
movl %eax, %r13d
movq (%r14), %rdi
callq 0xc420
movq 0x8(%rsp), %rdi
callq 0xc0c0
testl %r13d, %r13d
jne 0x20d99
movl 0x4(%rsp), %ecx
incl %ecx
movq %r15, %r13
movq %rbx, %r15
movq 0x10(%rsp), %rbx
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0x20ce3
xorl %r13d, %r13d
jmp 0x20d99
movl $0x3, %r13d
movl %r13d, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: write_comment_files
STATIC lxw_error
_write_comment_files(lxw_packager *self)
{
    lxw_workbook *workbook = self->workbook;
    lxw_sheet *sheet;
    lxw_worksheet *worksheet;
    lxw_comment *comment;
    char filename[LXW_FILENAME_LENGTH] = { 0 };
    char *buffer = NULL;
    size_t buffer_size = 0;
    uint32_t index = 1;
    lxw_error err;

    STAILQ_FOREACH(sheet, workbook->sheets, list_pointers) {
        if (sheet->is_chartsheet)
            continue;
        else
            worksheet = sheet->u.worksheet;

        if (!worksheet->has_comments)
            continue;

        comment = lxw_comment_new();
        if (!comment)
            return LXW_ERROR_MEMORY_MALLOC_FAILED;

        lxw_snprintf(filename, LXW_FILENAME_LENGTH,
                     "xl/comments%d.xml", index++);

        comment->file = lxw_get_filehandle(&buffer, &buffer_size,
                                           self->tmpdir);
        if (!comment->file) {
            lxw_comment_free(comment);
            return LXW_ERROR_CREATING_TMPFILE;
        }

        comment->comment_objs = worksheet->comment_objs;
        comment->comment_author = worksheet->comment_author;

        lxw_comment_assemble_xml_file(comment);

        err = _add_to_zip(self, comment->file, &buffer, &buffer_size,
                          filename);

        fclose(comment->file);
        free(buffer);
        lxw_comment_free(comment);

        RETURN_ON_ERROR(err);
    }

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq 0x8(%rdi), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
xorl %r15d, %r15d
movq %r15, (%rsp)
movq %r15, 0x10(%rsp)
movq 0x8(%rax), %rax
movq (%rax), %r12
testq %r12, %r12
je 0x212a4
movq %rdi, 0x18(%rsp)
movl $0x1, %ebp
leaq 0x20(%rsp), %rbx
cmpb $0x0, (%r12)
jne 0x21293
movq 0x8(%r12), %r15
cmpb $0x0, 0x2a1(%r15)
je 0x21293
callq 0xce60
testq %rax, %rax
je 0x212b9
movq %rax, %r14
movl $0x80, %esi
movq %rbx, %r13
movq %rbx, %rdi
leaq 0x21bfc(%rip), %rdx     # 0x42e05
movl %ebp, 0xc(%rsp)
movl %ebp, %ecx
xorl %eax, %eax
callq 0xc570
movq 0x18(%rsp), %rbp
movq 0x70(%rbp), %rdx
movq %rsp, %rdi
leaq 0x10(%rsp), %rsi
callq 0xce00
movq %rax, (%r14)
testq %rax, %rax
je 0x212c1
movq 0x80(%r15), %rax
movq %rax, 0x8(%r14)
movq 0x2c8(%r15), %rax
movq %rax, 0x18(%r14)
movq %r14, %rdi
callq 0xc2a0
movq (%r14), %rsi
movq %rbp, %rdi
movq %rsp, %rdx
leaq 0x10(%rsp), %rcx
movq %r13, %r8
callq 0x22482
movl %eax, %r15d
movq (%r14), %rdi
callq 0xc420
movq (%rsp), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0xc2c0
testl %r15d, %r15d
jne 0x212a4
movl 0xc(%rsp), %ebp
incl %ebp
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0x211c8
xorl %r15d, %r15d
movl %r15d, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %r15d
jmp 0x212a4
movq %r14, %rdi
callq 0xc2c0
movl $0x3, %r15d
jmp 0x212a4
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: write_shared_strings_file
STATIC lxw_error
_write_shared_strings_file(lxw_packager *self)
{
    lxw_sst *sst = self->workbook->sst;
    char *buffer = NULL;
    size_t buffer_size = 0;
    lxw_error err;

    /* Skip the sharedStrings file if there are no shared strings. */
    if (!sst->string_count)
        return LXW_NO_ERROR;

    sst->file = lxw_get_filehandle(&buffer, &buffer_size, self->tmpdir);
    if (!sst->file)
        return LXW_ERROR_CREATING_TMPFILE;

    lxw_sst_assemble_xml_file(sst);

    err = _add_to_zip(self, sst->file, &buffer, &buffer_size,
                      "xl/sharedStrings.xml");
    fclose(sst->file);
    free(buffer);
    RETURN_ON_ERROR(err);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x8(%rdi), %rax
movq 0x68(%rax), %rbx
xorl %r15d, %r15d
movq %r15, 0x10(%rsp)
movq %r15, 0x8(%rsp)
cmpl $0x0, 0x8(%rbx)
je 0x214de
movq %rdi, %r14
movq 0x70(%rdi), %rdx
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xce00
movq %rax, (%rbx)
testq %rax, %rax
je 0x214d8
movq %rbx, %rdi
callq 0xc280
movq (%rbx), %rsi
leaq 0x20d53(%rip), %r8      # 0x42200
leaq 0x10(%rsp), %r12
leaq 0x8(%rsp), %rcx
movq %r14, %rdi
movq %r12, %rdx
callq 0x22482
movl %eax, %r15d
movq (%rbx), %rdi
callq 0xc420
movq (%r12), %rdi
callq 0xc0c0
jmp 0x214de
movl $0x3, %r15d
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: write_custom_file
STATIC lxw_error
_write_custom_file(lxw_packager *self)
{
    lxw_custom *custom;
    char *buffer = NULL;
    size_t buffer_size = 0;
    lxw_error err = LXW_NO_ERROR;

    if (STAILQ_EMPTY(self->workbook->custom_properties))
        return LXW_NO_ERROR;

    custom = lxw_custom_new();
    if (!custom) {
        err = LXW_ERROR_MEMORY_MALLOC_FAILED;
        goto mem_error;
    }

    custom->file = lxw_get_filehandle(&buffer, &buffer_size, self->tmpdir);
    if (!custom->file) {
        err = LXW_ERROR_CREATING_TMPFILE;
        goto mem_error;
    }

    custom->custom_properties = self->workbook->custom_properties;

    lxw_custom_assemble_xml_file(custom);

    err = _add_to_zip(self, custom->file, &buffer, &buffer_size,
                      "docProps/custom.xml");

    fclose(custom->file);
    free(buffer);

mem_error:
    lxw_custom_free(custom);
    return err;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
xorl %r15d, %r15d
movq %r15, 0x10(%rsp)
movq %r15, 0x8(%rsp)
movq 0x8(%rdi), %rax
movq 0x78(%rax), %rax
cmpq %r15, (%rax)
je 0x215a0
movq %rdi, %r14
callq 0xc390
movq %rax, %rbx
testq %rax, %rax
je 0x2158a
movq 0x70(%r14), %rdx
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xce00
movq %rax, (%rbx)
testq %rax, %rax
je 0x21592
movq 0x8(%r14), %rax
movq 0x78(%rax), %rax
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0xc560
movq (%rbx), %rsi
leaq 0x20d61(%rip), %r8      # 0x422c0
leaq 0x10(%rsp), %r12
leaq 0x8(%rsp), %rcx
movq %r14, %rdi
movq %r12, %rdx
callq 0x22482
movl %eax, %r15d
movq (%rbx), %rdi
callq 0xc420
movq (%r12), %rdi
callq 0xc0c0
jmp 0x21598
movl $0x1, %r15d
jmp 0x21598
movl $0x3, %r15d
movq %rbx, %rdi
callq 0xcf40
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: write_theme_file
STATIC lxw_error
_write_theme_file(lxw_packager *self)
{
    lxw_error err = LXW_NO_ERROR;
    lxw_theme *theme = lxw_theme_new();
    char *buffer = NULL;
    size_t buffer_size = 0;

    if (!theme) {
        err = LXW_ERROR_MEMORY_MALLOC_FAILED;
        goto mem_error;
    }

    theme->file = lxw_get_filehandle(&buffer, &buffer_size, self->tmpdir);
    if (!theme->file) {
        err = LXW_ERROR_CREATING_TMPFILE;
        goto mem_error;
    }

    lxw_theme_assemble_xml_file(theme);

    err = _add_to_zip(self, theme->file, &buffer, &buffer_size,
                      "xl/theme/theme1.xml");

    fclose(theme->file);
    free(buffer);

mem_error:
    lxw_theme_free(theme);

    return err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
callq 0xc1e0
movq %rax, %rbx
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movq %rax, 0x8(%rsp)
testq %rbx, %rbx
je 0x2162b
movq 0x70(%r14), %rdx
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xce00
movq %rax, (%rbx)
testq %rax, %rax
je 0x21632
movq %rbx, %rdi
callq 0xce50
movq (%rbx), %rsi
leaq 0x209d8(%rip), %r8      # 0x41fda
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rdx
callq 0x22482
movl %eax, %ebp
movq (%rbx), %rdi
callq 0xc420
movq (%r15), %rdi
callq 0xc0c0
jmp 0x21637
movl $0x1, %ebp
jmp 0x21637
movl $0x3, %ebp
movq %rbx, %rdi
callq 0xcf20
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: add_vba_project
STATIC lxw_error
_add_vba_project(lxw_packager *self)
{
    lxw_workbook *workbook = self->workbook;
    lxw_error err;
    FILE *image_stream;

    if (!workbook->vba_project)
        return LXW_NO_ERROR;

    /* Check that the image file exists and can be opened. */
    image_stream = lxw_fopen(workbook->vba_project, "rb");
    if (!image_stream) {
        LXW_WARN_FORMAT1("Error adding vbaProject.bin to xlsx file: "
                         "file doesn't exist or can't be opened: %s.",
                         workbook->vba_project);
        return LXW_ERROR_CREATING_TMPFILE;
    }

    err = _add_file_to_zip(self, image_stream, "xl/vbaProject.bin");
    fclose(image_stream);
    RETURN_ON_ERROR(err);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %r14
movq 0xe8(%r14), %rdi
testq %rdi, %rdi
je 0x21f99
leaq 0x1e094(%rip), %rsi     # 0x40000
callq 0xc250
testq %rax, %rax
je 0x21fa1
movq %rax, %r15
leaq 0x211ac(%rip), %rdx     # 0x4312c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x22673
movl %eax, %ebx
movq %r15, %rdi
callq 0xc420
movl %ebx, %eax
jmp 0x21f9b
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
addq $0xe8, %r14
movq %r14, %rdi
callq 0xdcbc
movl $0x3, %eax
jmp 0x21f9b
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: add_vba_project_signature
STATIC lxw_error
_add_vba_project_signature(lxw_packager *self)
{
    lxw_workbook *workbook = self->workbook;
    lxw_error err;
    FILE *image_stream;

    if (!workbook->vba_project_signature)
        return LXW_NO_ERROR;

    /* Check that the image file exists and can be opened. */
    image_stream = lxw_fopen(workbook->vba_project_signature, "rb");
    if (!image_stream) {
        LXW_WARN_FORMAT1("Error adding vbaProjectSignature.bin to xlsx file: "
                         "file doesn't exist or can't be opened: %s.",
                         workbook->vba_project_signature);
        return LXW_ERROR_CREATING_TMPFILE;
    }

    err = _add_file_to_zip(self, image_stream, "xl/vbaProjectSignature.bin");
    fclose(image_stream);
    RETURN_ON_ERROR(err);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %r14
movq 0xf0(%r14), %rdi
testq %rdi, %rdi
je 0x22003
leaq 0x1e02a(%rip), %rsi     # 0x40000
callq 0xc250
testq %rax, %rax
je 0x2200b
movq %rax, %r15
leaq 0x20d51(%rip), %rdx     # 0x42d3b
movq %rbx, %rdi
movq %rax, %rsi
callq 0x22673
movl %eax, %ebx
movq %r15, %rdi
callq 0xc420
movl %ebx, %eax
jmp 0x22005
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
addq $0xf0, %r14
movq %r14, %rdi
callq 0xdcda
movl $0x3, %eax
jmp 0x22005
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: write_vba_project_rels_file
STATIC lxw_error
_write_vba_project_rels_file(lxw_packager *self)
{
    lxw_relationships *rels;
    lxw_workbook *workbook = self->workbook;
    lxw_error err = LXW_NO_ERROR;
    char *buffer = NULL;
    size_t buffer_size = 0;

    if (!workbook->vba_project_signature)
        return LXW_NO_ERROR;

    rels = lxw_relationships_new();
    if (!rels) {
        err = LXW_ERROR_MEMORY_MALLOC_FAILED;
        goto mem_error;
    }

    rels->file = lxw_get_filehandle(&buffer, &buffer_size, self->tmpdir);
    if (!rels->file) {
        err = LXW_ERROR_CREATING_TMPFILE;
        goto mem_error;
    }

    lxw_add_ms_package_relationship(rels, "/vbaProjectSignature",
                                    "vbaProjectSignature.bin");

    lxw_relationships_assemble_xml_file(rels);

    err = _add_to_zip(self, rels->file, &buffer, &buffer_size,
                      "xl/_rels/vbaProject.bin.rels");

    fclose(rels->file);
    free(buffer);

mem_error:
    lxw_free_relationships(rels);

    return err;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x8(%rdi), %rax
xorl %r15d, %r15d
movq %r15, 0x10(%rsp)
movq %r15, 0x8(%rsp)
cmpq %r15, 0xf0(%rax)
je 0x220de
movq %rdi, %r14
callq 0xcf00
movq %rax, %rbx
testq %rax, %rax
je 0x220c8
movq 0x70(%r14), %rdx
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xce00
movq %rax, (%rbx)
testq %rax, %rax
je 0x220d0
leaq 0x2112c(%rip), %rsi     # 0x431a8
leaq 0x20cbb(%rip), %rdx     # 0x42d3e
movq %rbx, %rdi
callq 0xc450
movq %rbx, %rdi
callq 0xc310
movq (%rbx), %rsi
leaq 0x21120(%rip), %r8      # 0x431bd
leaq 0x10(%rsp), %r12
leaq 0x8(%rsp), %rcx
movq %r14, %rdi
movq %r12, %rdx
callq 0x22482
movl %eax, %r15d
movq (%rbx), %rdi
callq 0xc420
movq (%r12), %rdi
callq 0xc0c0
jmp 0x220d6
movl $0x1, %r15d
jmp 0x220d6
movl $0x3, %r15d
movq %rbx, %rdi
callq 0xc290
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: write_core_file
STATIC lxw_error
_write_core_file(lxw_packager *self)
{
    lxw_error err = LXW_NO_ERROR;
    lxw_core *core = lxw_core_new();
    char *buffer = NULL;
    size_t buffer_size = 0;

    if (!core) {
        err = LXW_ERROR_MEMORY_MALLOC_FAILED;
        goto mem_error;
    }

    core->file = lxw_get_filehandle(&buffer, &buffer_size, self->tmpdir);
    if (!core->file) {
        err = LXW_ERROR_CREATING_TMPFILE;
        goto mem_error;
    }

    core->properties = self->workbook->properties;

    lxw_core_assemble_xml_file(core);

    err = _add_to_zip(self, core->file, &buffer, &buffer_size,
                      "docProps/core.xml");

    fclose(core->file);
    free(buffer);

mem_error:
    lxw_core_free(core);

    return err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
callq 0xc940
movq %rax, %rbx
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movq %rax, 0x8(%rsp)
testq %rbx, %rbx
je 0x22175
movq 0x70(%r14), %rdx
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xce00
movq %rax, (%rbx)
testq %rax, %rax
je 0x2217c
movq 0x8(%r14), %rax
movq 0x70(%rax), %rax
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0xcd70
movq (%rbx), %rsi
leaq 0x1fdea(%rip), %r8      # 0x41f36
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rdx
callq 0x22482
movl %eax, %ebp
movq (%rbx), %rdi
callq 0xc420
movq (%r15), %rdi
callq 0xc0c0
jmp 0x22181
movl $0x1, %ebp
jmp 0x22181
movl $0x3, %ebp
movq %rbx, %rdi
callq 0xd0a0
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: write_metadata_file
STATIC lxw_error
_write_metadata_file(lxw_packager *self)
{
    lxw_error err = LXW_NO_ERROR;
    lxw_metadata *metadata;
    char *buffer = NULL;
    size_t buffer_size = 0;

    if (!self->workbook->has_metadata)
        return LXW_NO_ERROR;

    metadata = lxw_metadata_new();

    if (!metadata) {
        err = LXW_ERROR_MEMORY_MALLOC_FAILED;
        goto mem_error;
    }

    metadata->file = lxw_get_filehandle(&buffer, &buffer_size, self->tmpdir);
    if (!metadata->file) {
        err = LXW_ERROR_CREATING_TMPFILE;
        goto mem_error;
    }

    lxw_metadata_assemble_xml_file(metadata);

    err = _add_to_zip(self, metadata->file, &buffer, &buffer_size,
                      "xl/metadata.xml");

    fclose(metadata->file);
    free(buffer);

mem_error:
    lxw_metadata_free(metadata);

    return err;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
xorl %r15d, %r15d
movq %r15, 0x10(%rsp)
movq %r15, 0x8(%rsp)
movq 0x8(%rdi), %rax
cmpb $0x0, 0xd5(%rax)
je 0x22239
movq %rdi, %r14
callq 0xc4d0
movq %rax, %rbx
testq %rax, %rax
je 0x22223
movq 0x70(%r14), %rdx
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xce00
movq %rax, (%rbx)
testq %rax, %rax
je 0x2222b
movq %rbx, %rdi
callq 0xc440
movq (%rbx), %rsi
leaq 0x20121(%rip), %r8      # 0x42319
leaq 0x10(%rsp), %r12
leaq 0x8(%rsp), %rcx
movq %r14, %rdi
movq %r12, %rdx
callq 0x22482
movl %eax, %r15d
movq (%rbx), %rdi
callq 0xc420
movq (%r12), %rdi
callq 0xc0c0
jmp 0x22231
movl $0x1, %r15d
jmp 0x22231
movl $0x3, %r15d
movq %rbx, %rdi
callq 0xc260
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/packager.c
// Function: add_to_zip
STATIC lxw_error
_add_to_zip(lxw_packager *self, FILE * file, char **buffer,
            size_t *buffer_size, const char *filename)
{
    /* Flush to ensure buffer is updated when using a memory-backed file. */
    fflush(file);
    return *buffer ?
        _add_buffer_to_zip(self, *buffer, *buffer_size, filename) :
        _add_file_to_zip(self, file, filename);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %r15
movq %rsi, %rdi
callq 0xca60
movq (%r13), %rsi
testq %rsi, %rsi
je 0x224bf
movq (%r14), %rdx
movq %r15, %rdi
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x224d6
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x22673
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/relationships.c
// Function: lxw_relationships_new
lxw_relationships *
lxw_relationships_new(void)
{
    lxw_relationships *rels = calloc(1, sizeof(lxw_relationships));
    GOTO_LABEL_ON_MEM_ERROR(rels, mem_error);

    rels->relationships = calloc(1, sizeof(struct lxw_rel_tuples));
    GOTO_LABEL_ON_MEM_ERROR(rels->relationships, mem_error);
    STAILQ_INIT(rels->relationships);

    return rels;

mem_error:
    lxw_free_relationships(rels);
    return NULL;
}

// Assembly:
pushq %rbx
movl $0x1, %edi
movl $0x18, %esi
callq 0xc7f0
movq %rax, %rbx
testq %rax, %rax
je 0x22920
movl $0x1, %edi
movl $0x10, %esi
callq 0xc7f0
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x22927
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
movq %rbx, %rax
popq %rbx
retq
movl $0x20, %edi
jmp 0x2292c
movl $0x23, %edi
movq %rbx, %rsi
callq 0xdcf8
xorl %ebx, %ebx
jmp 0x2291b
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/relationships.c
// Function: lxw_free_relationships
void
lxw_free_relationships(lxw_relationships *rels)
{
    lxw_rel_tuple *relationship;

    if (!rels)
        return;

    if (rels->relationships) {
        while (!STAILQ_EMPTY(rels->relationships)) {
            relationship = STAILQ_FIRST(rels->relationships);
            STAILQ_REMOVE_HEAD(rels->relationships, list_pointers);
            free(relationship->type);
            free(relationship->target);
            free(relationship->target_mode);
            free(relationship);
        }

        free(rels->relationships);
    }

    free(rels);
}

// Assembly:
testq %rdi, %rdi
je 0x2299f
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x10(%rdi)
jne 0x2297f
jmp 0x22990
movq 0x18(%r14), %rax
movq %rax, (%rdi)
testq %rax, %rax
jne 0x2295d
movq %rdi, 0x8(%rdi)
movq (%r14), %rdi
callq 0xc0c0
movq 0x8(%r14), %rdi
callq 0xc0c0
movq 0x10(%r14), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0xc0c0
movq 0x10(%rbx), %rdi
movq (%rdi), %r14
testq %r14, %r14
jne 0x2294d
callq 0xc0c0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/relationships.c
// Function: lxw_relationships_assemble_xml_file
void
lxw_relationships_assemble_xml_file(lxw_relationships *self)
{
    /* Write the XML declaration. */
    _relationships_xml_declaration(self);

    _write_relationships(self);

    /* Close the relationships tag. */
    lxw_xml_end_tag(self->file, "Relationships");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x858, %rsp            # imm = 0x858
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0xcf30
xorl %r14d, %r14d
leaq 0x18(%rsp), %r15
movq %r14, (%r15)
movq %r15, 0x8(%r15)
leaq 0x1d73f(%rip), %rdi     # 0x40111
leaq 0x20882(%rip), %rsi     # 0x4325b
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r14, 0x1040(%rax)
movq 0x8(%r15), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r15)
movq (%rbx), %rdi
leaq 0x20808(%rip), %rsi     # 0x43209
movq %r15, %rdx
callq 0xc350
movq %rbx, 0x10(%rsp)
movq 0x10(%rbx), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x22b6c
movq %rsp, %r13
movq (%r15), %rbp
movq 0x8(%r15), %rax
movq %rax, 0x28(%rsp)
movq 0x10(%r15), %r14
movl $0x820, %edx            # imm = 0x820
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xc640
movq 0x10(%rsp), %rax
movl 0x8(%rax), %ecx
incl %ecx
movl %ecx, 0x8(%rax)
movl $0x20, %esi
movq %rbx, %rdi
leaq 0x1fd08(%rip), %rdx     # 0x42769
xorl %eax, %eax
callq 0xc570
xorl %r12d, %r12d
movq %r12, (%rsp)
movq %r13, 0x8(%rsp)
leaq 0x23a42(%rip), %rdi     # 0x464bd
movq %rbx, %rsi
callq 0xc030
movl $0x1040, %ebx           # imm = 0x1040
leaq (%rax,%rbx), %rcx
movq %r12, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
leaq 0x200be(%rip), %rdi     # 0x42b65
movq %rbp, %rsi
callq 0xc030
leaq (%rax,%rbx), %rcx
movq %r12, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
leaq 0x20801(%rip), %rdi     # 0x432cf
movq 0x28(%rsp), %rsi
callq 0xc030
leaq (%rax,%rbx), %rcx
movq %r12, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
testq %r14, %r14
je 0x22b23
leaq 0x207da(%rip), %rdi     # 0x432d6
movq %r14, %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq (%rax), %rdi
leaq 0x207af(%rip), %rsi     # 0x432e1
movq %r13, %rdx
callq 0xcc00
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x22b5f
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x22b58
movq %r13, 0x8(%rsp)
callq 0xc0c0
jmp 0x22b3a
movq 0x18(%r15), %r15
testq %r15, %r15
jne 0x22a21
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
leaq 0x18(%rsp), %r14
je 0x22ba0
movq 0x1040(%rdi), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
jne 0x22b91
movq %r14, 0x20(%rsp)
callq 0xc0c0
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
jne 0x22b7b
movq 0x10(%rsp), %rax
movq (%rax), %rdi
leaq 0x2065a(%rip), %rsi     # 0x43209
callq 0xc060
addq $0x858, %rsp            # imm = 0x858
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/relationships.c
// Function: add_relationship
STATIC void
_add_relationship(lxw_relationships *self, const char *schema,
                  const char *type, const char *target,
                  const char *target_mode)
{
    lxw_rel_tuple *relationship;

    if (!schema || !type || !target)
        return;

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

    relationship->type = calloc(1, LXW_MAX_ATTRIBUTE_LENGTH);
    GOTO_LABEL_ON_MEM_ERROR(relationship->type, mem_error);

    /* Add the schema to the relationship type. */
    lxw_snprintf(relationship->type, LXW_MAX_ATTRIBUTE_LENGTH, "%s%s",
                 schema, type);

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

    if (target_mode) {
        relationship->target_mode = lxw_strdup(target_mode);
        GOTO_LABEL_ON_MEM_ERROR(relationship->target_mode, mem_error);
    }

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

    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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
testq %rsi, %rsi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
testq %r12, %r12
sete %al
orb %cl, %al
jne 0x22ca5
movq %r8, %r15
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %r14
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x22cb4
movq %rax, %rbx
movl $0x1, %edi
movl $0x820, %esi            # imm = 0x820
callq 0xc7f0
movq %rax, (%rbx)
testq %rax, %rax
je 0x22cbb
leaq 0x1d441(%rip), %rdx     # 0x40088
movl $0x820, %esi            # imm = 0x820
movq %rax, %rdi
movq %rbp, %rcx
movq %r13, %r8
xorl %eax, %eax
callq 0xc570
movq %r12, %rdi
callq 0xcce0
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x22cc2
testq %r15, %r15
je 0x22c83
movq %r15, %rdi
callq 0xcce0
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x22cc9
movq %rbx, %rax
addq $0x18, %rax
movq $0x0, 0x18(%rbx)
movq 0x10(%r14), %rcx
movq 0x8(%rcx), %rcx
movq %rbx, (%rcx)
movq 0x10(%r14), %rcx
movq %rax, 0x8(%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xdd84
jmp 0x22ca5
movl $0xae, %esi
jmp 0x22cce
movl $0xb5, %esi
jmp 0x22cce
movl $0xb9, %esi
xorl %edx, %edx
testq %rbx, %rbx
sete %dl
movq %rbx, %rdi
callq 0xdd26
jmp 0x22ca5
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/shared_strings.c
// Function: lxw_sst_new
lxw_sst *
lxw_sst_new(void)
{
    /* Create the new shared string table. */
    lxw_sst *sst = calloc(1, sizeof(lxw_sst));
    RETURN_ON_MEM_ERROR(sst, NULL);

    /* Add the sst RB tree. */
    sst->rb_tree = calloc(1, sizeof(struct sst_rb_tree));
    GOTO_LABEL_ON_MEM_ERROR(sst->rb_tree, mem_error);

    /* Add a list for tracking the insertion order. */
    sst->order_list = calloc(1, sizeof(struct sst_order_list));
    GOTO_LABEL_ON_MEM_ERROR(sst->order_list, mem_error);

    /* Initialize the order list. */
    STAILQ_INIT(sst->order_list);

    /* Initialize the RB tree. */
    RB_INIT(sst->rb_tree);

    return sst;

mem_error:
    lxw_sst_free(sst);
    return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x22d85
movq %rax, %rbx
movl $0x1, %edi
movl $0x8, %esi
callq 0xc7f0
movq %rax, 0x18(%rbx)
testq %rax, %rax
je 0x22d8c
movq %rax, %r14
movl $0x1, %edi
movl $0x10, %esi
callq 0xc7f0
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x22d93
xorl %ecx, %ecx
movq %rcx, (%rax)
movq %rax, 0x8(%rax)
movq %rcx, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0xddd6
jmp 0x22da0
movl $0x2d, %edi
jmp 0x22d98
movl $0x31, %edi
movq %rbx, %rsi
callq 0xdda8
xorl %ebx, %ebx
jmp 0x22d7a
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/shared_strings.c
// Function: lxw_sst_free
void
lxw_sst_free(lxw_sst *sst)
{
    struct sst_element *sst_element;
    struct sst_element *sst_element_temp;

    if (!sst)
        return;

    /* Free the sst_elements and their data using the ordered linked list. */
    if (sst->order_list) {
        STAILQ_FOREACH_SAFE(sst_element, sst->order_list, sst_order_pointers,
                            sst_element_temp) {

            if (sst_element && sst_element->string)
                free(sst_element->string);
            if (sst_element)
                free(sst_element);
        }
    }

    free(sst->order_list);
    free(sst->rb_tree);
    free(sst);
}

// Assembly:
testq %rdi, %rdi
je 0x22e03
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x22de4
movq (%rax), %r14
testq %r14, %r14
je 0x22de4
movq 0x8(%r14), %rdi
movq 0x18(%r14), %r15
testq %rdi, %rdi
je 0x22dd4
callq 0xc0c0
movq %r14, %rdi
callq 0xc0c0
movq %r15, %r14
testq %r15, %r15
jne 0x22dc2
movq 0x10(%rbx), %rdi
callq 0xc0c0
movq 0x18(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: lxw_styles_new
lxw_styles *
lxw_styles_new(void)
{
    lxw_styles *styles = calloc(1, sizeof(lxw_styles));
    GOTO_LABEL_ON_MEM_ERROR(styles, mem_error);

    styles->xf_formats = calloc(1, sizeof(struct lxw_formats));
    GOTO_LABEL_ON_MEM_ERROR(styles->xf_formats, mem_error);
    STAILQ_INIT(styles->xf_formats);

    styles->dxf_formats = calloc(1, sizeof(struct lxw_formats));
    GOTO_LABEL_ON_MEM_ERROR(styles->dxf_formats, mem_error);
    STAILQ_INIT(styles->dxf_formats);

    return styles;

mem_error:
    lxw_styles_free(styles);
    return NULL;
}

// Assembly:
pushq %rbx
movl $0x1, %edi
movl $0x38, %esi
callq 0xc7f0
movq %rax, %rbx
testq %rax, %rax
je 0x2339f
movl $0x1, %edi
movl $0x10, %esi
callq 0xc7f0
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x233a6
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
movl $0x1, %edi
movl $0x10, %esi
callq 0xc7f0
movq %rax, 0x28(%rbx)
testq %rax, %rax
je 0x233ad
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
movq %rbx, %rax
popq %rbx
retq
movl $0x21, %edi
jmp 0x233b2
movl $0x24, %edi
jmp 0x233b2
movl $0x28, %edi
movq %rbx, %rsi
callq 0xddf8
xorl %ebx, %ebx
jmp 0x2339a
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: lxw_styles_free
void
lxw_styles_free(lxw_styles *styles)
{
    lxw_format *format;

    if (!styles)
        return;

    /* Free the xf formats in the styles. */
    if (styles->xf_formats) {
        while (!STAILQ_EMPTY(styles->xf_formats)) {
            format = STAILQ_FIRST(styles->xf_formats);
            STAILQ_REMOVE_HEAD(styles->xf_formats, list_pointers);
            free(format);
        }
        free(styles->xf_formats);
    }

    /* Free the dxf formats in the styles. */
    if (styles->dxf_formats) {
        while (!STAILQ_EMPTY(styles->dxf_formats)) {
            format = STAILQ_FIRST(styles->dxf_formats);
            STAILQ_REMOVE_HEAD(styles->dxf_formats, list_pointers);
            free(format);
        }
        free(styles->dxf_formats);
    }

    free(styles);
}

// Assembly:
testq %rdi, %rdi
je 0x2343a
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x20(%rdi)
jne 0x233eb
jmp 0x233fc
movq 0x230(%rax), %rcx
movq %rcx, (%rdi)
testq %rcx, %rcx
jne 0x233e3
movq %rdi, 0x8(%rdi)
movq %rax, %rdi
callq 0xc0c0
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
testq %rax, %rax
jne 0x233d0
callq 0xc0c0
cmpq $0x0, 0x28(%rbx)
jne 0x23420
jmp 0x23431
movq 0x230(%rax), %rcx
movq %rcx, (%rdi)
testq %rcx, %rcx
jne 0x23418
movq %rdi, 0x8(%rdi)
movq %rax, %rdi
callq 0xc0c0
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
testq %rax, %rax
jne 0x23405
callq 0xc0c0
movq %rbx, %rdi
popq %rbx
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: lxw_styles_write_string_fragment
void
lxw_styles_write_string_fragment(lxw_styles *self, const char *string)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();

    /* Add attribute to preserve leading or trailing whitespace. */
    if (isspace((unsigned char) string[0])
        || isspace((unsigned char) string[strlen(string) - 1]))
        LXW_PUSH_ATTRIBUTES_STR("xml:space", "preserve");

    lxw_xml_data_element(self->file, "t", string, &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %rax
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
callq 0xd0f0
movq (%rax), %r15
movzbl (%rbx), %eax
testb $0x20, 0x1(%r15,%rax,2)
jne 0x23480
movq %rbx, %rdi
callq 0xc480
movzbl -0x1(%rbx,%rax), %eax
testb $0x20, 0x1(%r15,%rax,2)
je 0x234b2
leaq 0x1fe88(%rip), %rdi     # 0x4330f
leaq 0x1fe8b(%rip), %rsi     # 0x43319
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%r14), %rdi
leaq 0x1ddd5(%rip), %rsi     # 0x41291
movq %rsp, %r14
movq %rbx, %rdx
movq %r14, %rcx
callq 0xcb30
movq (%r14), %rdi
testq %rdi, %rdi
je 0x234f2
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x234e7
movq %r14, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x234cd
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: write_font_vert_align
STATIC void
_write_font_vert_align(lxw_styles *self, const char *align)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("val", align);

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

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
xorl %r15d, %r15d
movq %rsp, %rbx
movq %r15, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x1c7b3(%rip), %rdi     # 0x41454
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x1e6e6(%rip), %rsi     # 0x433af
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x24cf9
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x24cee
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x24cd4
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: write_font_size
STATIC void
_write_font_size(lxw_styles *self, double font_size)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_DBL("val", font_size);

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

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
xorl %r15d, %r15d
movq %rsp, %rbx
movq %r15, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x1c731(%rip), %rdi     # 0x41454
callq 0xcc80
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x1c4d8(%rip), %rsi     # 0x41223
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x24d7b
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x24d70
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x24d56
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: write_font_color_theme
STATIC void
_write_font_color_theme(lxw_styles *self, uint8_t theme)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_INT("theme", theme);

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

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
xorl %r15d, %r15d
movq %rsp, %rbx
movq %r15, (%rbx)
movq %rbx, 0x8(%rbx)
movl %esi, %esi
leaq 0x1e1b0(%rip), %rdi     # 0x42f57
callq 0xc180
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x206a1(%rip), %rsi     # 0x45470
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x24dff
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x24df4
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x24dda
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: write_font_color_indexed
STATIC void
_write_font_color_indexed(lxw_styles *self, uint8_t index)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_INT("indexed", index);

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

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
xorl %r15d, %r15d
movq %rsp, %rbx
movq %r15, (%rbx)
movq %rbx, 0x8(%rbx)
movl %esi, %esi
leaq 0x1d03d(%rip), %rdi     # 0x41e68
callq 0xc180
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x2061d(%rip), %rsi     # 0x45470
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x24e83
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x24e78
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x24e5e
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: write_font_name
STATIC void
_write_font_name(lxw_styles *self, const char *font_name,
                 uint8_t is_rich_string)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();

    if (*font_name)
        LXW_PUSH_ATTRIBUTES_STR("val", font_name);
    else
        LXW_PUSH_ATTRIBUTES_STR("val", LXW_DEFAULT_FONT_NAME);

    if (is_rich_string)
        lxw_xml_empty_tag(self->file, "rFont", &attributes);
    else
        lxw_xml_empty_tag(self->file, "name", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
xorl %r15d, %r15d
leaq 0x8(%rsp), %rbx
movq %r15, (%rbx)
movq %rbx, 0x8(%rbx)
cmpb $0x0, (%rsi)
movq %rdi, %r14
leaq 0x1e4b9(%rip), %rax     # 0x4336e
cmoveq %rax, %rsi
leaq 0x1c594(%rip), %rdi     # 0x41454
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
testl %ebp, %ebp
leaq 0x1c480(%rip), %rax     # 0x41367
leaq 0x1cf89(%rip), %rsi     # 0x41e77
cmoveq %rax, %rsi
movq (%r14), %rdi
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x24f27
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x24f1b
movq %rbx, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x24f00
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: write_font_family
STATIC void
_write_font_family(lxw_styles *self, uint8_t font_family)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_INT("val", font_family);

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

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
xorl %r15d, %r15d
movq %rsp, %rbx
movq %r15, (%rbx)
movq %rbx, 0x8(%rbx)
movl %esi, %esi
leaq 0x1c500(%rip), %rdi     # 0x41454
callq 0xc180
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x1cf01(%rip), %rsi     # 0x41e7d
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x24fac
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x24fa1
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x24f87
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: write_default_fill
STATIC void
_write_default_fill(lxw_styles *self, const char *pattern)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("patternType", pattern);

    lxw_xml_start_tag(self->file, "fill", NULL);
    lxw_xml_empty_tag(self->file, "patternFill", &attributes);
    lxw_xml_end_tag(self->file, "fill");

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
xorl %r15d, %r15d
movq %rsp, %rbx
movq %r15, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x1e55b(%rip), %rdi     # 0x4362e
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x203ab(%rip), %r15     # 0x454a6
movq %r15, %rsi
xorl %edx, %edx
callq 0xc350
movq (%r14), %rdi
leaq 0x1e52b(%rip), %rsi     # 0x4363a
movq %rbx, %rdx
callq 0xcc00
movq (%r14), %rdi
movq %r15, %rsi
callq 0xc060
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2514a
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x2513f
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x25125
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/styles.c
// Function: write_sub_border
STATIC void
_write_sub_border(lxw_styles *self, const char *type, uint8_t style,
                  lxw_color_t color)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    char *border_styles[] = {
        "none",
        "thin",
        "medium",
        "dashed",
        "dotted",
        "thick",
        "double",
        "hair",
        "mediumDashed",
        "dashDot",
        "mediumDashDot",
        "dashDotDot",
        "mediumDashDotDot",
        "slantDashDot",
    };

    if (!style) {
        lxw_xml_empty_tag(self->file, type, NULL);
        return;
    }

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("style", border_styles[style]);

    lxw_xml_start_tag(self->file, type, &attributes);

    _write_border_color(self, color);

    lxw_xml_end_tag(self->file, type);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %r15
testl %edx, %edx
je 0x25691
movl %ecx, %ebp
xorl %r12d, %r12d
movq %rsp, %rbx
movq %r12, (%rbx)
movq %rbx, 0x8(%rbx)
movzbl %dl, %eax
leaq 0x1e410(%rip), %rcx     # 0x43a28
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
leaq 0x1c1d8(%rip), %rdi     # 0x417fe
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r12, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xc350
leaq 0x10(%rsp), %rax
movq %r12, (%rax)
movq %rax, 0x8(%rax)
testl %ebp, %ebp
je 0x256aa
andl $0xffffff, %ebp         # imm = 0xFFFFFF
leaq 0x1dd4a(%rip), %rdx     # 0x433b9
leaq 0x20(%rsp), %r12
movl $0x20, %esi
movq %r12, %rdi
movl %ebp, %ecx
xorl %eax, %eax
callq 0xc570
leaq 0x1dd34(%rip), %rdi     # 0x433c0
movq %r12, %rsi
jmp 0x256b8
movq (%r15), %rdi
movq %r14, %rsi
xorl %edx, %edx
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xcc00
leaq 0x1becd(%rip), %rdi     # 0x4157e
leaq 0x20080(%rip), %rsi     # 0x45738
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
leaq 0x10(%rsp), %r12
movq 0x8(%r12), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r12)
movq (%r15), %rdi
leaq 0x1fd85(%rip), %rsi     # 0x45470
movq %r12, %rdx
callq 0xcc00
movq (%r12), %rdi
testq %rdi, %rdi
je 0x2571e
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x25712
movq %r12, 0x18(%rsp)
callq 0xc0c0
movq 0x10(%rsp), %rdi
jmp 0x256f7
movq (%r15), %rdi
movq %r14, %rsi
callq 0xc060
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2574e
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x25747
movq %rbx, 0x8(%rsp)
callq 0xc0c0
jmp 0x25729
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq