LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_axis_set_name
void
chart_axis_set_name(lxw_chart_axis *axis, const char *name)
{
    if (!name)
        return;

    if (name[0] == '=')
        axis->title.range->formula = lxw_strdup(name + 1);
    else
        axis->title.name = lxw_strdup(name);
}

// Assembly:
testq %rsi, %rsi
je 0x1351b
pushq %rbx
movq %rdi, %rbx
cmpb $0x3d, (%rsi)
jne 0x1350f
incq %rsi
movq %rsi, %rdi
callq 0xcd50
movq 0x20(%rbx), %rcx
movq %rax, (%rcx)
jmp 0x1351a
movq %rsi, %rdi
callq 0xcd50
movq %rax, (%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_axis_set_name_range
void
chart_axis_set_name_range(lxw_chart_axis *axis, const char *sheetname,
                          lxw_row_t row, lxw_col_t col)
{
    if (!sheetname) {
        LXW_WARN("chart_axis_set_name_range(): sheetname must be specified");
        return;
    }

    /* Start and end row, col are the same for single cell range. */
    _chart_set_range(axis->title.range, sheetname, row, col, row, col);
}

// Assembly:
testq %rsi, %rsi
je 0x13533
movq 0x20(%rdi), %rdi
movzwl %cx, %ecx
movl %edx, %r8d
movl %ecx, %r9d
jmp 0x126ba
movq 0x3fabe(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x2a67e(%rip), %rdi     # 0x3dbc2
pushq $0x44
popq %rsi
pushq $0x1
popq %rdx
jmp 0xd000
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_axis_set_log_base
void
chart_axis_set_log_base(lxw_chart_axis *axis, uint16_t log_base)
{
    LXW_WARN_VALUE_AXIS_ONLY("chart_axis_set_log_base");

    /* Excel log range is 2-1000. */
    if (log_base >= 2 && log_base <= 1000)
        axis->log_base = log_base;
}

// Assembly:
cmpb $0x0, 0xaa(%rdi)
je 0x1377c
leal -0x2(%rsi), %eax
cmpw $0x3e6, %ax             # imm = 0x3E6
ja 0x1377b
movw %si, 0xf4(%rdi)
retq
movq 0x3f875(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x2a557(%rip), %rdi     # 0x3dce4
pushq $0x42
popq %rsi
pushq $0x1
popq %rdx
jmp 0xd000
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_axis_major_gridlines_set_line
void
chart_axis_major_gridlines_set_line(lxw_chart_axis *axis,
                                    lxw_chart_line *line)
{
    if (!line)
        return;

    /* Free any previously allocated resource. */
    free(axis->major_gridlines.line);

    axis->major_gridlines.line = _chart_convert_line_args(line);

    /* If the gridline has a format it should also be visible. */
    if (axis->major_gridlines.line)
        axis->major_gridlines.visible = LXW_TRUE;
}

// Assembly:
testq %rsi, %rsi
je 0x13924
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x70(%rdi), %rdi
callq 0xc0d0
movq %r14, %rdi
callq 0x127d2
movq %rax, 0x70(%rbx)
testq %rax, %rax
je 0x1391d
movb $0x1, 0x68(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_axis_minor_gridlines_set_line
void
chart_axis_minor_gridlines_set_line(lxw_chart_axis *axis,
                                    lxw_chart_line *line)
{
    if (!line)
        return;

    /* Free any previously allocated resource. */
    free(axis->minor_gridlines.line);

    axis->minor_gridlines.line = _chart_convert_line_args(line);

    /* If the gridline has a format it should also be visible. */
    if (axis->minor_gridlines.line)
        axis->minor_gridlines.visible = LXW_TRUE;
}

// Assembly:
testq %rsi, %rsi
je 0x13964
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x80(%rdi), %rdi
callq 0xc0d0
movq %r14, %rdi
callq 0x127d2
movq %rax, 0x80(%rbx)
testq %rax, %rax
je 0x1395d
movb $0x1, 0x78(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_title_set_name
void
chart_title_set_name(lxw_chart *self, const char *name)
{
    if (!name)
        return;

    if (name[0] == '=')
        self->title.range->formula = lxw_strdup(name + 1);
    else
        self->title.name = lxw_strdup(name);
}

// Assembly:
testq %rsi, %rsi
je 0x1399c
pushq %rbx
movq %rdi, %rbx
cmpb $0x3d, (%rsi)
jne 0x1398f
incq %rsi
movq %rsi, %rdi
callq 0xcd50
movq 0x50(%rbx), %rcx
movq %rax, (%rcx)
jmp 0x1399b
movq %rsi, %rdi
callq 0xcd50
movq %rax, 0x30(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_title_set_name_range
void
chart_title_set_name_range(lxw_chart *self, const char *sheetname,
                           lxw_row_t row, lxw_col_t col)
{
    if (!sheetname) {
        LXW_WARN("chart_title_set_name_range(): sheetname must be specified");
        return;
    }

    /* Start and end row, col are the same for single cell range. */
    _chart_set_range(self->title.range, sheetname, row, col, row, col);
}

// Assembly:
testq %rsi, %rsi
je 0x139b4
movq 0x50(%rdi), %rdi
movzwl %cx, %ecx
movl %edx, %r8d
movl %ecx, %r9d
jmp 0x126ba
movq 0x3f63d(%rip), %rax     # 0x52ff8
movq (%rax), %rcx
leaq 0x2a4e8(%rip), %rdi     # 0x3dead
pushq $0x45
popq %rsi
pushq $0x1
popq %rdx
jmp 0xd000
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_legend_delete_series
lxw_error
chart_legend_delete_series(lxw_chart *self, int16_t delete_series[])
{
    uint16_t count = 0;

    if (delete_series == NULL)
        return LXW_ERROR_NULL_PARAMETER_IGNORED;

    while (delete_series[count] >= 0)
        count++;

    if (count == 0)
        return LXW_ERROR_NULL_PARAMETER_IGNORED;

    /* The maximum number of series in a chart is 255. */
    if (count > 255)
        count = 255;

    self->delete_series = calloc(count, sizeof(int16_t));
    RETURN_ON_MEM_ERROR(self->delete_series, LXW_ERROR_MEMORY_MALLOC_FAILED);
    memcpy(self->delete_series, delete_series, count * sizeof(int16_t));
    self->delete_series_count = count;

    return LXW_NO_ERROR;
}

// Assembly:
pushq $0xc
popq %rax
testq %rsi, %rsi
je 0x13aa8
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movw $0xffff, %cx            # imm = 0xFFFF
incl %ecx
movzwl %cx, %edx
cmpw $0x0, (%r14,%rdx,2)
jns 0x13a4a
testw %cx, %cx
je 0x13a9e
cmpw $0xff, %cx
movl $0xff, %ebp
cmovbl %ecx, %ebp
movzwl %bp, %r15d
pushq $0x2
popq %rsi
movq %r15, %rdi
callq 0xc850
movq %rax, 0xc0(%rbx)
testq %rax, %rax
je 0x13aa9
addl %r15d, %r15d
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xc960
movw %bp, 0xc8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x3f548(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x29626(%rip), %rsi     # 0x3d0e0
leaq 0x29a1b(%rip), %rdx     # 0x3d4dc
movl $0x1959, %ecx           # imm = 0x1959
xorl %eax, %eax
callq 0xc8d0
pushq $0x1
popq %rax
jmp 0x13a9e
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_set_up_down_bars_format
void
chart_set_up_down_bars_format(lxw_chart *self, lxw_chart_line *up_bar_line,
                              lxw_chart_fill *up_bar_fill,
                              lxw_chart_line *down_bar_line,
                              lxw_chart_fill *down_bar_fill)
{
    self->has_up_down_bars = LXW_TRUE;

    /* Free any previously allocated resource. */
    free(self->up_bar_line);
    free(self->up_bar_fill);
    free(self->down_bar_line);
    free(self->down_bar_fill);

    self->up_bar_line = _chart_convert_line_args(up_bar_line);
    self->up_bar_fill = _chart_convert_fill_args(up_bar_fill);
    self->down_bar_line = _chart_convert_line_args(down_bar_line);
    self->down_bar_fill = _chart_convert_fill_args(down_bar_fill);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
movb $0x1, 0x142(%rdi)
movq 0x148(%rdi), %rdi
callq 0xc0d0
movq 0x158(%rbx), %rdi
callq 0xc0d0
movq 0x150(%rbx), %rdi
callq 0xc0d0
movq 0x160(%rbx), %rdi
callq 0xc0d0
movq %r13, %rdi
callq 0x127d2
movq %rax, 0x148(%rbx)
movq %r12, %rdi
callq 0x12881
movq %rax, 0x158(%rbx)
movq %r15, %rdi
callq 0x127d2
movq %rax, 0x150(%rbx)
movq %r14, %rdi
callq 0x12881
movq %rax, 0x160(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_set_series_overlap
void
chart_set_series_overlap(lxw_chart *self, int8_t overlap)
{
    if (overlap >= -100 && overlap <= 100)
        self->overlap_y1 = overlap;
    else
        LXW_WARN_FORMAT1("chart_set_series_overlap(): Chart series overlap "
                         "'%d' outside Excel range: -100 <= overlap <= 100",
                         overlap);
}

// Assembly:
leal 0x64(%rsi), %eax
cmpb $-0x38, %al
ja 0x13d7c
movb %sil, 0xa2(%rdi)
retq
movsbl %sil, %edx
movq 0x3f271(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x2a162(%rip), %rsi     # 0x3def3
xorl %eax, %eax
jmp 0xc8d0
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_set_series_gap
void
chart_set_series_gap(lxw_chart *self, uint16_t gap)
{
    if (gap <= 500)
        self->gap_y1 = gap;
    else
        LXW_WARN_FORMAT1("chart_set_series_gap(): Chart series gap '%d' "
                         "outside Excel range: 0 <= gap <= 500", gap);
}

// Assembly:
cmpw $0x1f4, %si             # imm = 0x1F4
ja 0x13db7
movw %si, 0xa4(%rdi)
retq
movzwl %si, %edx
movq 0x3f237(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x2a196(%rip), %rsi     # 0x3df61
xorl %eax, %eax
jmp 0xc8d0
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_set_rotation
void
chart_set_rotation(lxw_chart *self, uint16_t rotation)
{
    if (rotation <= 360)
        self->rotation = rotation;
    else
        LXW_WARN_FORMAT1("chart_set_rotation(): Chart rotation '%d' outside "
                         "Excel range: 0 <= rotation <= 360", rotation);
}

// Assembly:
cmpw $0x168, %si             # imm = 0x168
ja 0x13de1
movw %si, 0x9c(%rdi)
retq
movzwl %si, %edx
movq 0x3f20d(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x2a1cb(%rip), %rsi     # 0x3dfc0
xorl %eax, %eax
jmp 0xc8d0
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_set_hole_size
void
chart_set_hole_size(lxw_chart *self, uint8_t size)
{
    if (size >= 10 && size <= 90)
        self->hole_size = size;
    else
        LXW_WARN_FORMAT1("chart_set_hole_size(): Hole size '%d' outside "
                         "Excel range: 10 <= size <= 90", size);
}

// Assembly:
leal -0xa(%rsi), %eax
cmpb $0x50, %al
ja 0x13e0f
movzbl %sil, %eax
movw %ax, 0x9e(%rdi)
retq
movzbl %sil, %edx
movq 0x3f1de(%rip), %rax     # 0x52ff8
movq (%rax), %rdi
leaq 0x2a1fc(%rip), %rsi     # 0x3e020
xorl %eax, %eax
jmp 0xc8d0
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_area_chart
STATIC void
_chart_write_area_chart(lxw_chart *self)
{
    lxw_chart_series *series;

    lxw_xml_start_tag(self->file, "c:areaChart", NULL);

    /* Write the c:grouping element. */
    _chart_write_grouping(self, self->grouping);

    STAILQ_FOREACH(series, self->series_list, list_pointers) {
        /* Write the c:ser element. */
        _chart_write_ser(self, series);
    }

    /* Write the c:dropLines element. */
    _chart_write_drop_lines(self);

    /* Write the c:axId elements. */
    _chart_write_axis_ids(self);

    lxw_xml_end_tag(self->file, "c:areaChart");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x2a278(%rip), %rsi     # 0x3e0b4
xorl %edx, %edx
callq 0xc380
movzbl 0xa8(%rbx), %esi
movq %rbx, %rdi
callq 0x145da
movq 0x128(%rbx), %r14
movq (%r14), %r14
movq %rbx, %rdi
testq %r14, %r14
je 0x13e75
movq %r14, %rsi
callq 0x1467e
addq $0x110, %r14            # imm = 0x110
jmp 0x13e59
callq 0x1483e
movq %rbx, %rdi
callq 0x148ae
movq (%rbx), %rdi
leaq 0x2a228(%rip), %rsi     # 0x3e0b4
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc060
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_grouping
STATIC void
_chart_write_grouping(lxw_chart *self, uint8_t grouping)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();

    if (grouping == LXW_GROUPING_STANDARD)
        LXW_PUSH_ATTRIBUTES_STR("val", "standard");
    else if (grouping == LXW_GROUPING_PERCENTSTACKED)
        LXW_PUSH_ATTRIBUTES_STR("val", "percentStacked");
    else if (grouping == LXW_GROUPING_STACKED)
        LXW_PUSH_ATTRIBUTES_STR("val", "stacked");
    else
        LXW_PUSH_ATTRIBUTES_STR("val", "clustered");

    lxw_xml_empty_tag(self->file, "c:grouping", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rdi, %r14
movq %rbx, 0x8(%rbx)
decb %sil
cmpb $0x2, %sil
ja 0x1460e
movzbl %sil, %eax
leaq 0x28df3(%rip), %rcx     # 0x3d3f8
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x14615
leaq 0x29acb(%rip), %rsi     # 0x3e0e0
leaq 0x29e30(%rip), %rdi     # 0x3e44c
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%r14), %rdi
leaq 0x29aa3(%rip), %rsi     # 0x3e0ea
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x14676
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x1466f
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x1464f
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_drop_lines
STATIC void
_chart_write_drop_lines(lxw_chart *self)
{
    if (!self->has_drop_lines)
        return;

    if (self->drop_lines_line) {
        lxw_xml_start_tag(self->file, "c:dropLines", NULL);

        _chart_write_sp_pr(self, self->drop_lines_line, NULL, NULL);

        lxw_xml_end_tag(self->file, "c:dropLines");
    }
    else {
        lxw_xml_empty_tag(self->file, "c:dropLines", NULL);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpb $0x0, 0x108(%rdi)
je 0x14891
movq %rdi, %rbx
cmpq $0x0, 0x110(%rdi)
movq (%rdi), %rdi
je 0x14899
leaq 0x29c1e(%rip), %r14     # 0x3e480
movq %r14, %rsi
xorl %edx, %edx
callq 0xc380
movq 0x110(%rbx), %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1201b
movq (%rbx), %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc060
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x29be0(%rip), %rsi     # 0x3e480
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xcc70
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_axis_ids
STATIC void
_chart_write_axis_ids(lxw_chart *self)
{
    if (!self->axis_id_1)
        _chart_add_axis_ids(self);

    _chart_write_axis_id(self, self->axis_id_1);
    _chart_write_axis_id(self, self->axis_id_2);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x84(%rdi), %esi
testl %esi, %esi
jne 0x148d9
movl 0x80(%rbx), %eax
leal 0x2fb1791(%rax), %esi
movl %esi, 0x84(%rbx)
addl $0x2fb1792, %eax        # imm = 0x2FB1792
movl %eax, 0x88(%rbx)
movq %rbx, %rdi
callq 0x16cbe
movl 0x88(%rbx), %esi
movq %rbx, %rdi
popq %rbx
jmp 0x16cbe
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_idx
STATIC void
_chart_write_idx(lxw_chart *self, uint16_t index)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

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

    lxw_xml_empty_tag(self->file, "c:idx", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rdi, %r14
movq %rbx, 0x8(%rbx)
movl %esi, %esi
leaq 0x29b3c(%rip), %rdi     # 0x3e44c
callq 0xc1a0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x297c2(%rip), %rsi     # 0x3e0fb
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x14968
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x14961
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x14941
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_order
STATIC void
_chart_write_order(lxw_chart *self, uint16_t index)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

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

    lxw_xml_empty_tag(self->file, "c:order", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rdi, %r14
movq %rbx, 0x8(%rbx)
movl %esi, %esi
leaq 0x29abc(%rip), %rdi     # 0x3e44c
callq 0xc1a0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x29748(%rip), %rsi     # 0x3e101
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x149e8
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x149e1
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x149c1
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_series_name
STATIC void
_chart_write_series_name(lxw_chart *self, lxw_chart_series *series)
{
    if (series->title.name) {
        /* Write the c:tx element. */
        _chart_write_tx_value(self, series->title.name);
    }
    else if (series->title.range->formula) {
        /* Write the c:tx element. */
        _chart_write_tx_formula(self, &series->title);

    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rsi), %r14
testq %r14, %r14
je 0x14a30
movq (%rbx), %rdi
leaq 0x296fe(%rip), %r15     # 0x3e109
movq %r15, %rsi
xorl %edx, %edx
callq 0xc380
movq %rbx, %rdi
movq %r14, %rsi
callq 0x157ad
movq (%rbx), %rdi
movq %r15, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xc060
movq 0x30(%rsi), %rax
cmpq $0x0, (%rax)
je 0x14a4b
addq $0x10, %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x15772
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_marker
STATIC void
_chart_write_marker(lxw_chart *self, lxw_chart_marker *marker)
{
    /* If there isn't a user defined marker use the default, if this chart
     * type one. The default usually turns the marker off. */
    if (!marker)
        marker = self->default_marker;

    if (!marker)
        return;

    if (marker->type == LXW_CHART_MARKER_AUTOMATIC)
        return;

    lxw_xml_start_tag(self->file, "c:marker", NULL);

    /* Write the c:symbol element. */
    _chart_write_symbol(self, marker->type);

    /* Write the c:size element. */
    if (marker->size)
        _chart_write_marker_size(self, marker->size);

    /* Write the c:spPr element. */
    _chart_write_sp_pr(self, marker->line, marker->fill, marker->pattern);

    lxw_xml_end_tag(self->file, "c:marker");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
jne 0x14a75
movq 0xd0(%rbx), %r14
testq %r14, %r14
je 0x14bb3
cmpb $0x0, (%r14)
je 0x14bb3
movq (%rbx), %rdi
leaq 0x296b6(%rip), %rsi     # 0x3e13f
xorl %edx, %edx
callq 0xc380
movb (%r14), %al
movq %rsp, %r15
andq $0x0, (%r15)
movq %r15, 0x8(%r15)
addb $-0x2, %al
cmpb $0x8, %al
ja 0x14ab7
movzbl %al, %eax
leaq 0x28956(%rip), %rcx     # 0x3d404
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x14abe
leaq 0x296c8(%rip), %rsi     # 0x3e186
leaq 0x29987(%rip), %rdi     # 0x3e44c
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x2969b(%rip), %rsi     # 0x3e18b
movq %r15, %rdx
callq 0xcc70
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x14b1d
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x14b16
movq %r15, 0x8(%rsp)
callq 0xc0d0
jmp 0x14af8
movzbl 0x1(%r14), %esi
testq %rsi, %rsi
je 0x14b90
andq $0x0, (%rsp)
movq %r15, 0x8(%rsp)
leaq 0x29914(%rip), %rdi     # 0x3e44c
callq 0xc1a0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x29631(%rip), %rsi     # 0x3e194
movq %r15, %rdx
callq 0xcc70
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x14b90
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x14b89
movq %r15, 0x8(%rsp)
callq 0xc0d0
jmp 0x14b6b
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
movq 0x18(%r14), %rcx
movq %rbx, %rdi
callq 0x1201b
movq (%rbx), %rdi
leaq 0x29591(%rip), %rsi     # 0x3e13f
callq 0xc060
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_points
STATIC void
_chart_write_points(lxw_chart *self, lxw_chart_series *series)
{
    uint16_t index;

    for (index = 0; index < series->point_count; index++) {
        lxw_chart_point *point = &series->points[index];

        /* Ignore empty points. */
        if (!point->line && !point->fill && !point->pattern)
            continue;

        /* Write the c:dPt element. */
        _chart_write_d_pt(self, &series->points[index], index);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x10
popq %r13
xorl %ebp, %ebp
leaq 0x295d3(%rip), %r15     # 0x3e1ae
movzwl 0x90(%rbx), %eax
cmpq %rax, %rbp
jae 0x14c8e
movq 0x80(%rbx), %r12
cmpq $0x0, -0x10(%r12,%r13)
jne 0x14c09
cmpq $0x0, -0x8(%r12,%r13)
jne 0x14c09
cmpq $0x0, (%r12,%r13)
je 0x14c82
movq (%r14), %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0xc380
movzwl %bp, %esi
movq %r14, %rdi
callq 0x148f0
movzbl 0x95(%r14), %eax
orl $0x4, %eax
cmpl $0xf, %eax
jne 0x14c42
movq (%r14), %rdi
leaq 0x29504(%rip), %rsi     # 0x3e13f
xorl %edx, %edx
callq 0xc380
movq -0x10(%r12,%r13), %rsi
movq -0x8(%r12,%r13), %rdx
movq (%r12,%r13), %rcx
movq %r14, %rdi
callq 0x1201b
movzbl 0x95(%r14), %eax
orl $0x4, %eax
cmpl $0xf, %eax
jne 0x14c77
movq (%r14), %rdi
leaq 0x294cd(%rip), %rsi     # 0x3e13f
callq 0xc060
movq (%r14), %rdi
movq %r15, %rsi
callq 0xc060
incq %rbp
addq $0x18, %r13
jmp 0x14bdb
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/chart.c
// Function: chart_write_smooth
STATIC void
_chart_write_smooth(lxw_chart *self, uint8_t smooth)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    if (!smooth)
        return;

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

    lxw_xml_empty_tag(self->file, "c:smooth", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
testl %esi, %esi
je 0x15771
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x28d41(%rip), %rdi     # 0x3e44c
leaq 0x2d036(%rip), %rsi     # 0x42748
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x28d3c(%rip), %rsi     # 0x3e477
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1576a
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x15763
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x15743
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_str_ref
STATIC void
_chart_write_str_ref(lxw_chart *self, lxw_series_range *range)
{
    lxw_xml_start_tag(self->file, "c:strRef", NULL);

    /* Write the c:f element. */
    _chart_write_f(self, range->formula);

    if (!STAILQ_EMPTY(range->data_cache)) {
        /* Write the c:strCache element. */
        _chart_write_str_cache(self, range);
    }

    lxw_xml_end_tag(self->file, "c:strRef");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x28933(%rip), %rsi     # 0x3e112
xorl %edx, %edx
callq 0xc380
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x1591d
movq 0x20(%r14), %rax
cmpq $0x0, (%rax)
je 0x158ff
movq (%rbx), %rdi
leaq 0x28916(%rip), %rsi     # 0x3e11f
xorl %r13d, %r13d
xorl %edx, %edx
callq 0xc380
movzwl 0x1e(%r14), %esi
movq %rbx, %rdi
callq 0x15931
movq 0x20(%r14), %rbp
leaq 0x8(%rsp), %r14
leaq 0x288cd(%rip), %r15     # 0x3e0fd
leaq 0x288fd(%rip), %r12     # 0x3e134
movq (%rbp), %rbp
testq %rbp, %rbp
je 0x158f0
cmpb $0x0, 0x18(%rbp)
je 0x15853
incl %r13d
addq $0x20, %rbp
jmp 0x15837
andq $0x0, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movzwl %r13w, %esi
movq %r15, %rdi
callq 0xc1a0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%rbx), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0xc380
cmpb $0x0, (%rbp)
je 0x158ad
movq 0x10(%rbp), %rsi
testq %rsi, %rsi
je 0x158ad
movq %rbx, %rdi
callq 0x157ad
jmp 0x158ba
movsd 0x8(%rbp), %xmm0
movq %rbx, %rdi
callq 0x159b1
movq (%rbx), %rdi
movq %r12, %rsi
callq 0xc060
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1584a
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x158e9
movq %r14, 0x10(%rsp)
callq 0xc0d0
jmp 0x158c5
movq (%rbx), %rdi
leaq 0x28825(%rip), %rsi     # 0x3e11f
callq 0xc060
movq (%rbx), %rdi
leaq 0x28809(%rip), %rsi     # 0x3e112
callq 0xc060
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_pt_count
STATIC void
_chart_write_pt_count(lxw_chart *self, uint16_t num_data_points)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

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

    lxw_xml_empty_tag(self->file, "c:ptCount", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rdi, %r14
movq %rbx, 0x8(%rbx)
movl %esi, %esi
leaq 0x28afb(%rip), %rdi     # 0x3e44c
callq 0xc1a0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x287b0(%rip), %rsi     # 0x3e12a
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x159a9
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x159a2
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x15982
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_tx_pr
STATIC void
_chart_write_tx_pr(lxw_chart *self, uint8_t is_horizontal,
                   lxw_chart_font *font)
{
    int32_t rotation = 0;

    if (font)
        rotation = font->rotation;

    lxw_xml_start_tag(self->file, "c:txPr", NULL);

    /* Write the a:bodyPr element. */
    _chart_write_a_body_pr(self, rotation, is_horizontal);

    /* Write the a:lstStyle element. */
    _chart_write_a_lst_style(self);

    /* Write the a:p element. */
    _chart_write_a_p_formula(self, font);

    lxw_xml_end_tag(self->file, "c:txPr");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
testq %rdx, %rdx
je 0x15a0c
movl 0x14(%r15), %r12d
jmp 0x15a0f
xorl %r12d, %r12d
movq (%rbx), %rdi
leaq 0x2888f(%rip), %r14     # 0x3e2a8
movq %r14, %rsi
xorl %edx, %edx
callq 0xc380
movzbl %bpl, %edx
movq %rbx, %rdi
movl %r12d, %esi
callq 0x161bd
movq %rbx, %rdi
callq 0x162e7
movq (%rbx), %rdi
leaq 0x287cd(%rip), %r12     # 0x3e211
movq %r12, %rsi
xorl %edx, %edx
callq 0xc380
movq (%rbx), %rdi
leaq 0x287bd(%rip), %r13     # 0x3e215
movq %r13, %rsi
xorl %edx, %edx
callq 0xc380
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16332
movq (%rbx), %rdi
movq %r13, %rsi
callq 0xc060
movq %rbx, %rdi
callq 0x167d6
movq (%rbx), %rdi
movq %r12, %rsi
callq 0xc060
movq (%rbx), %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc060
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_d_lbl_pos
STATIC void
_chart_write_d_lbl_pos(lxw_chart *self, uint8_t position)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();

    if (position == LXW_CHART_LABEL_POSITION_RIGHT)
        LXW_PUSH_ATTRIBUTES_STR("val", "r");
    else if (position == LXW_CHART_LABEL_POSITION_LEFT)
        LXW_PUSH_ATTRIBUTES_STR("val", "l");
    else if (position == LXW_CHART_LABEL_POSITION_ABOVE)
        LXW_PUSH_ATTRIBUTES_STR("val", "t");
    else if (position == LXW_CHART_LABEL_POSITION_BELOW)
        LXW_PUSH_ATTRIBUTES_STR("val", "b");
    else if (position == LXW_CHART_LABEL_POSITION_INSIDE_BASE)
        LXW_PUSH_ATTRIBUTES_STR("val", "inBase");
    else if (position == LXW_CHART_LABEL_POSITION_INSIDE_END)
        LXW_PUSH_ATTRIBUTES_STR("val", "inEnd");
    else if (position == LXW_CHART_LABEL_POSITION_OUTSIDE_END)
        LXW_PUSH_ATTRIBUTES_STR("val", "outEnd");
    else if (position == LXW_CHART_LABEL_POSITION_BEST_FIT)
        LXW_PUSH_ATTRIBUTES_STR("val", "bestFit");
    else
        LXW_PUSH_ATTRIBUTES_STR("val", "ctr");

    lxw_xml_empty_tag(self->file, "c:dLblPos", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rdi, %r14
movq %rbx, 0x8(%rbx)
addb $-0x2, %sil
cmpb $0x7, %sil
ja 0x15ad9
movzbl %sil, %eax
leaq 0x2797c(%rip), %rcx     # 0x3d44c
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x15ae0
leaq 0x287f8(%rip), %rsi     # 0x3e2d8
leaq 0x28965(%rip), %rdi     # 0x3e44c
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%r14), %rdi
leaq 0x287ca(%rip), %rsi     # 0x3e2dc
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x15b41
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x15b3a
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x15b1a
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_show_val
STATIC void
_chart_write_show_val(lxw_chart *self)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

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

    lxw_xml_empty_tag(self->file, "c:showVal", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x288e5(%rip), %rdi     # 0x3e44c
leaq 0x2cbda(%rip), %rsi     # 0x42748
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x2875f(%rip), %rsi     # 0x3e2f6
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x15bc6
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x15bbf
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x15b9f
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_show_cat_name
STATIC void
_chart_write_show_cat_name(lxw_chart *self)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

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

    lxw_xml_empty_tag(self->file, "c:showCatName", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x28860(%rip), %rdi     # 0x3e44c
leaq 0x2cb55(%rip), %rsi     # 0x42748
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x286e4(%rip), %rsi     # 0x3e300
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x15c4b
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x15c44
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x15c24
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_show_ser_name
STATIC void
_chart_write_show_ser_name(lxw_chart *self)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

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

    lxw_xml_empty_tag(self->file, "c:showSerName", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x287db(%rip), %rdi     # 0x3e44c
leaq 0x2cad0(%rip), %rsi     # 0x42748
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x2866d(%rip), %rsi     # 0x3e30e
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x15cd0
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x15cc9
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x15ca9
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_delete
STATIC void
_chart_write_delete(lxw_chart *self)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

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

    lxw_xml_empty_tag(self->file, "c:delete", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x28756(%rip), %rdi     # 0x3e44c
leaq 0x2ca4b(%rip), %rsi     # 0x42748
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x2849d(%rip), %rsi     # 0x3e1c3
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x15d55
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x15d4e
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x15d2e
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_custom_label_format_only
STATIC void
_chart_write_custom_label_format_only(lxw_chart *self,
                                      lxw_chart_custom_label *data_label)
{
    if (data_label->line || data_label->fill || data_label->pattern) {
        _chart_write_sp_pr(self, data_label->line, data_label->fill,
                           data_label->pattern);
        _chart_write_tx_pr(self, LXW_FALSE, data_label->font);
    }
    else if (data_label->font) {
        lxw_xml_empty_tag(self->file, "c:spPr", NULL);
        _chart_write_tx_pr(self, LXW_FALSE, data_label->font);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rsi), %rsi
movq 0x20(%r14), %rdx
movq %rdx, %rax
orq %rsi, %rax
jne 0x15d80
cmpq $0x0, 0x28(%r14)
je 0x15da1
xorl %edx, %edx
movq 0x28(%r14), %rcx
movq %rbx, %rdi
callq 0x1201b
movq 0x10(%r14), %rdx
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x159ee
cmpq $0x0, 0x10(%r14)
je 0x15dbb
movq (%rbx), %rdi
leaq 0x284d9(%rip), %rsi     # 0x3e28b
xorl %edx, %edx
callq 0xcc70
jmp 0x15d8c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_a_body_pr
STATIC void
_chart_write_a_body_pr(lxw_chart *self, int32_t rotation,
                       uint8_t is_horizontal)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();

    if (rotation == 0 && is_horizontal)
        rotation = -5400000;

    if (rotation) {
        if (rotation == 16200000) {
            /* 270 deg/stacked angle. */
            LXW_PUSH_ATTRIBUTES_STR("rot", "0");
            LXW_PUSH_ATTRIBUTES_STR("vert", "wordArtVert");
        }
        else if (rotation == 16260000) {
            /* 271 deg/East Asian vertical. */
            LXW_PUSH_ATTRIBUTES_STR("rot", "0");
            LXW_PUSH_ATTRIBUTES_STR("vert", "eaVert");
        }
        else if (rotation == 21600000) {
            /* 360 deg = 0 for y axis. */
            LXW_PUSH_ATTRIBUTES_STR("rot", "0");
            LXW_PUSH_ATTRIBUTES_STR("vert", "horz");
        }
        else {
            LXW_PUSH_ATTRIBUTES_INT("rot", rotation);
            LXW_PUSH_ATTRIBUTES_STR("vert", "horz");
        }
    }

    lxw_xml_empty_tag(self->file, "a:bodyPr", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
movq %rsp, %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
testl %edx, %edx
movl $0xffad9a40, %eax       # imm = 0xFFAD9A40
cmovel %esi, %eax
testl %esi, %esi
cmovnel %esi, %eax
testl %eax, %eax
je 0x162a6
cmpl $0x1499700, %eax        # imm = 0x1499700
je 0x1621c
cmpl $0xf81ba0, %eax         # imm = 0xF81BA0
je 0x16231
cmpl $0xf73140, %eax         # imm = 0xF73140
jne 0x1624d
leaq 0x27fd5(%rip), %rdi     # 0x3e1dc
leaq 0x2c598(%rip), %rsi     # 0x427a6
callq 0xc030
leaq 0x27fcb(%rip), %rsi     # 0x3e1e5
jmp 0x16263
leaq 0x27fb9(%rip), %rdi     # 0x3e1dc
leaq 0x2c57c(%rip), %rsi     # 0x427a6
callq 0xc030
jmp 0x1625c
leaq 0x27fa4(%rip), %rdi     # 0x3e1dc
leaq 0x2c567(%rip), %rsi     # 0x427a6
callq 0xc030
leaq 0x27fa6(%rip), %rsi     # 0x3e1f1
jmp 0x16263
movslq %eax, %rsi
leaq 0x27f85(%rip), %rdi     # 0x3e1dc
callq 0xc1a0
leaq 0x27f95(%rip), %rsi     # 0x3e1f8
movl $0x1040, %r15d          # imm = 0x1040
andq $0x0, 0x1040(%rax)
leaq (%rax,%r15), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
leaq 0x27f57(%rip), %rdi     # 0x3e1e0
callq 0xc030
andq $0x0, 0x1040(%rax)
addq %rax, %r15
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq %r15, 0x8(%rsp)
movq (%r14), %rdi
leaq 0x27f4d(%rip), %rsi     # 0x3e1fd
movq %rbx, %rdx
callq 0xcc70
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x162dd
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x162d6
movq %rbx, 0x8(%rsp)
callq 0xc0d0
jmp 0x162b8
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_a_srgb_clr
STATIC void
_chart_write_a_srgb_clr(lxw_chart *self, lxw_color_t color,
                        uint8_t transparency)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    char rgb_str[LXW_ATTR_32];

    LXW_INIT_ATTRIBUTES();

    lxw_snprintf(rgb_str, LXW_ATTR_32, "%06X", color & LXW_COLOR_MASK);
    LXW_PUSH_ATTRIBUTES_STR("val", rgb_str);

    if (transparency) {
        lxw_xml_start_tag(self->file, "a:srgbClr", &attributes);

        /* Write the a:alpha element. */
        _chart_write_a_alpha(self, transparency);

        lxw_xml_end_tag(self->file, "a:srgbClr");
    }
    else {
        lxw_xml_empty_tag(self->file, "a:srgbClr", &attributes);
    }

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movq %rsp, %r15
andq $0x0, (%r15)
movl %esi, %ecx
movq %rdi, %rbx
movq %r15, 0x8(%r15)
andl $0xffffff, %ecx         # imm = 0xFFFFFF
leaq 0x29d0b(%rip), %rdx     # 0x403cb
leaq 0x20(%rsp), %r14
pushq $0x20
popq %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0xc5b0
leaq 0x27d73(%rip), %rdi     # 0x3e44c
movq %r14, %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%r15), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r15)
movq (%rbx), %rdi
leaq 0x27b60(%rip), %rsi     # 0x3e265
movq %rsp, %rdx
testl %ebp, %ebp
je 0x167a1
callq 0xc380
leaq 0x10(%rsp), %r14
andq $0x0, (%r14)
movq %r14, 0x8(%r14)
movzbl %bpl, %eax
pushq $0x64
popq %rcx
subl %eax, %ecx
imull $0x3e8, %ecx, %esi      # imm = 0x3E8
leaq 0x27d14(%rip), %rdi     # 0x3e44c
callq 0xc1a0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
movq (%rbx), %rdi
leaq 0x27b0e(%rip), %rsi     # 0x3e26f
movq %r14, %rdx
callq 0xcc70
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x16790
movq 0x1040(%rdi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x16789
movq %r14, 0x18(%rsp)
callq 0xc0d0
jmp 0x16769
movq (%rbx), %rdi
leaq 0x27acb(%rip), %rsi     # 0x3e265
callq 0xc060
jmp 0x167c2
callq 0xcc70
jmp 0x167c2
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x167bd
movq %r15, 0x8(%rsp)
callq 0xc0d0
movq (%rsp), %rdi
testq %rdi, %rdi
jne 0x167a8
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_a_end_para_rpr
STATIC void
_chart_write_a_end_para_rpr(lxw_chart *self)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("lang", "en-US");

    lxw_xml_empty_tag(self->file, "a:endParaRPr", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x27ffb(%rip), %rdi     # 0x3e7ef
leaq 0x27a80(%rip), %rsi     # 0x3e27b
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x27a8b(%rip), %rsi     # 0x3e2af
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x16853
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x1684c
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x1682c
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_data_cache
STATIC void
_chart_write_data_cache(lxw_chart *self, lxw_series_range *range,
                        uint8_t has_string_cache)
{
    if (has_string_cache) {
        /* Write the c:strRef element. */
        _chart_write_str_ref(self, range);
    }
    else {
        /* Write the c:numRef element. */
        _chart_write_num_ref(self, range);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
testl %edx, %edx
je 0x16b7b
movq %rbx, %rdi
movq %r14, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x157c1
movq (%rbx), %rdi
leaq 0x278d1(%rip), %rsi     # 0x3e456
xorl %edx, %edx
callq 0xc380
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x1591d
movq 0x20(%r14), %rax
cmpq $0x0, (%rax)
je 0x16ca0
movq (%rbx), %rdi
leaq 0x278b0(%rip), %rsi     # 0x3e45f
xorl %r13d, %r13d
xorl %edx, %edx
callq 0xc380
movq (%rbx), %rdi
leaq 0x278a7(%rip), %rsi     # 0x3e46a
leaq 0x2691a(%rip), %rdx     # 0x3d4e4
xorl %ecx, %ecx
callq 0xcba0
movzwl 0x1e(%r14), %esi
movq %rbx, %rdi
callq 0x15931
movq 0x20(%r14), %rbp
leaq 0x8(%rsp), %r14
leaq 0x2750f(%rip), %r15     # 0x3e0fd
leaq 0x2753f(%rip), %r12     # 0x3e134
movq (%rbp), %rbp
testq %rbp, %rbp
je 0x16c91
cmpb $0x0, 0x18(%rbp)
je 0x16c11
incl %r13d
addq $0x20, %rbp
jmp 0x16bf5
andq $0x0, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movzwl %r13w, %esi
movq %r15, %rdi
callq 0xc1a0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%rbx), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0xc380
movsd 0x8(%rbp), %xmm0
movq %rbx, %rdi
callq 0x159b1
movq (%rbx), %rdi
movq %r12, %rsi
callq 0xc060
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x16c08
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x16c8a
movq %r14, 0x10(%rsp)
callq 0xc0d0
jmp 0x16c6a
movq (%rbx), %rdi
leaq 0x277c4(%rip), %rsi     # 0x3e45f
callq 0xc060
movq (%rbx), %rdi
leaq 0x277ac(%rip), %rsi     # 0x3e456
callq 0xc060
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_axis_id
STATIC void
_chart_write_axis_id(lxw_chart *self, uint32_t axis_id)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

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

    lxw_xml_empty_tag(self->file, "c:axId", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rdi, %r14
movq %rbx, 0x8(%rbx)
movl %esi, %esi
leaq 0x2776e(%rip), %rdi     # 0x3e44c
callq 0xc1a0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x27785(%rip), %rsi     # 0x3e48c
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x16d36
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x16d2f
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x16d0f
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_adjust_max_crossing
STATIC void
_chart_adjust_max_crossing(lxw_chart *self)
{
    if (self->x_axis->crossing_max)
        self->y_axis->axis_position ^= 1;

    if (self->y_axis->crossing_max)
        self->x_axis->axis_position ^= 1;
}

// Assembly:
movq 0x20(%rdi), %rax
movq 0x28(%rdi), %rcx
cmpb $0x0, 0xfa(%rax)
je 0x16d67
xorb $0x1, 0xab(%rcx)
cmpb $0x0, 0xfa(%rcx)
je 0x16d77
xorb $0x1, 0xab(%rax)
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_axis_pos
STATIC void
_chart_write_axis_pos(lxw_chart *self, uint8_t position, uint8_t reverse)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();

    /* Reverse the axis direction if required. */
    position ^= reverse;

    if (position == LXW_CHART_AXIS_RIGHT)
        LXW_PUSH_ATTRIBUTES_STR("val", "r");
    else if (position == LXW_CHART_AXIS_LEFT)
        LXW_PUSH_ATTRIBUTES_STR("val", "l");
    else if (position == LXW_CHART_AXIS_TOP)
        LXW_PUSH_ATTRIBUTES_STR("val", "t");
    else if (position == LXW_CHART_AXIS_BOTTOM)
        LXW_PUSH_ATTRIBUTES_STR("val", "b");

    lxw_xml_empty_tag(self->file, "c:axPos", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rdi, %r14
movq %rbx, 0x8(%rbx)
cmpb %dl, %sil
jne 0x1717e
leaq 0x270fd(%rip), %rsi     # 0x3e279
jmp 0x17199
xorb %sil, %dl
decb %dl
cmpb $0x2, %dl
ja 0x171c1
movzbl %dl, %eax
leaq 0x262e6(%rip), %rcx     # 0x3d478
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
leaq 0x272ac(%rip), %rdi     # 0x3e44c
callq 0xc030
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%r14), %rdi
leaq 0x27317(%rip), %rsi     # 0x3e4e2
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x171fa
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x171f3
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x171d3
addq $0x18, %rsp
popq %rbx
popq %r14
retq