LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: lxw_chart_add_data_cache
lxw_error
lxw_chart_add_data_cache(lxw_series_range *range, uint8_t *data,
                         uint16_t rows, uint8_t cols, uint8_t col)
{
    struct lxw_series_data_point *data_point;
    uint16_t i;

    range->ignore_cache = LXW_TRUE;
    range->num_data_points = rows;

    /* Initialize the series range data cache. */
    for (i = 0; i < rows; i++) {
        data_point = calloc(1, sizeof(struct lxw_series_data_point));
        RETURN_ON_MEM_ERROR(data_point, LXW_ERROR_MEMORY_MALLOC_FAILED);
        STAILQ_INSERT_TAIL(range->data_cache, data_point, list_pointers);
        data_point->number = data[i * cols + col];
    }

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movb $0x1, 0x1c(%rdi)
movw %dx, 0x1e(%rdi)
xorl %ebx, %ebx
testl %edx, %edx
je 0x153c9
movq %rsi, %r14
movq %rdi, %r15
movzbl %cl, %r12d
movzbl %r8b, %eax
addq %rax, %r14
movzwl %dx, %r13d
movl $0x1, %edi
movl $0x28, %esi
callq 0xc7f0
testq %rax, %rax
je 0x153d5
movq %rax, %rcx
addq $0x20, %rcx
movq $0x0, 0x20(%rax)
movq 0x20(%r15), %rdx
movq 0x8(%rdx), %rdx
movq %rax, (%rdx)
movq 0x20(%r15), %rdx
movq %rcx, 0x8(%rdx)
movzbl (%r14), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movsd %xmm0, 0x8(%rax)
addq %r12, %r14
decq %r13
jne 0x1537b
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
callq 0xd27f
movl $0x1, %ebx
jmp 0x153c9
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_name
void
chart_series_set_name(lxw_chart_series *series, const char *name)
{
    if (!name)
        return;

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

// Assembly:
testq %rsi, %rsi
je 0x15620
pushq %rbx
movq %rdi, %rbx
cmpb $0x3d, (%rsi)
jne 0x15613
incq %rsi
movq %rsi, %rdi
callq 0xcce0
movq 0x30(%rbx), %rcx
movq %rax, (%rcx)
jmp 0x1561f
movq %rsi, %rdi
callq 0xcce0
movq %rax, 0x10(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_set_range
STATIC void
_chart_set_range(lxw_series_range *range, const char *sheetname,
                 lxw_row_t first_row, lxw_col_t first_col,
                 lxw_row_t last_row, lxw_col_t last_col)
{
    char formula[LXW_MAX_FORMULA_RANGE_LENGTH] = { 0 };

    /* Set the range properties. */
    range->sheetname = lxw_strdup(sheetname);
    range->first_row = first_row;
    range->first_col = first_col;
    range->last_row = last_row;
    range->last_col = last_col;

    /* Free any existing range. */
    free(range->formula);

    /* Convert the range properties to a formula like: Sheet1!$A$1:$A$5. */
    lxw_rowcol_to_formula_abs(formula, sheetname,
                              first_row, first_col, last_row, last_col);

    range->formula = lxw_strdup(formula);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %r9d, %ebp
movl %r8d, %r14d
movl %ecx, %r15d
movl %edx, %r13d
movq %rsi, %r12
movq %rdi, %rbx
movq %rsp, %rdi
movl $0x9b, %edx
xorl %esi, %esi
callq 0xc640
movq %r12, %rdi
callq 0xcce0
movq %rax, 0x8(%rbx)
movl %r13d, 0x10(%rbx)
movw %r15w, 0x18(%rbx)
movl %r14d, 0x14(%rbx)
movw %bp, 0x1a(%rbx)
movq (%rbx), %rdi
callq 0xc0c0
movq %rsp, %rdi
movq %r12, %rsi
movl %r13d, %edx
movl %r15d, %ecx
movl %r14d, %r8d
movl %ebp, %r9d
callq 0xd100
movq %rsp, %rdi
callq 0xcce0
movq %rax, (%rbx)
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/chart.c
// Function: chart_convert_line_args
STATIC lxw_chart_line *
_chart_convert_line_args(lxw_chart_line *user_line)
{
    lxw_chart_line *line;

    if (!user_line)
        return NULL;

    line = calloc(1, sizeof(struct lxw_chart_line));
    RETURN_ON_MEM_ERROR(line, NULL);

    /* Copy the user supplied properties. */
    line->color = user_line->color;
    line->none = user_line->none;
    line->width = user_line->width;
    line->dash_type = user_line->dash_type;
    line->transparency = user_line->transparency;

    if (line->transparency > 100)
        line->transparency = 0;

    return line;
}

// Assembly:
testq %rdi, %rdi
je 0x15775
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
movl $0x10, %esi
callq 0xc7f0
testq %rax, %rax
je 0x15778
movl (%rbx), %ecx
movl %ecx, (%rax)
movb 0x4(%rbx), %cl
movb %cl, 0x4(%rax)
movss 0x8(%rbx), %xmm0
movss %xmm0, 0x8(%rax)
movb 0xc(%rbx), %cl
movb %cl, 0xc(%rax)
movzbl 0xd(%rbx), %ecx
xorl %edx, %edx
cmpb $0x65, %cl
cmovbl %ecx, %edx
movb %dl, 0xd(%rax)
popq %rbx
retq
xorl %eax, %eax
retq
callq 0xd334
xorl %eax, %eax
jmp 0x15773
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_convert_fill_args
STATIC lxw_chart_fill *
_chart_convert_fill_args(lxw_chart_fill *user_fill)
{
    lxw_chart_fill *fill;

    if (!user_fill)
        return NULL;

    fill = calloc(1, sizeof(struct lxw_chart_fill));
    RETURN_ON_MEM_ERROR(fill, NULL);

    /* Copy the user supplied properties. */
    fill->color = user_fill->color;
    fill->none = user_fill->none;
    fill->transparency = user_fill->transparency;

    if (fill->transparency > 100)
        fill->transparency = 0;

    return fill;
}

// Assembly:
testq %rdi, %rdi
je 0x157e5
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
movl $0x8, %esi
callq 0xc7f0
testq %rax, %rax
je 0x157e8
movl (%rbx), %ecx
movl %ecx, (%rax)
movb 0x4(%rbx), %cl
movb %cl, 0x4(%rax)
movzbl 0x5(%rbx), %ecx
xorl %edx, %edx
cmpb $0x65, %cl
cmovbl %ecx, %edx
movb %dl, 0x5(%rax)
popq %rbx
retq
xorl %eax, %eax
retq
callq 0xd358
xorl %eax, %eax
jmp 0x157e3
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_convert_pattern_args
STATIC lxw_chart_pattern *
_chart_convert_pattern_args(lxw_chart_pattern *user_pattern)
{
    lxw_chart_pattern *pattern;

    if (!user_pattern)
        return NULL;

    if (!user_pattern->type) {
        LXW_WARN("chart_xxx_set_pattern: 'type' must be specified");
        return NULL;
    }

    if (!user_pattern->fg_color) {
        LXW_WARN("chart_xxx_set_pattern: 'fg_color' must be specified");
        return NULL;
    }

    pattern = calloc(1, sizeof(struct lxw_chart_pattern));
    RETURN_ON_MEM_ERROR(pattern, NULL);

    /* Copy the user supplied properties. */
    pattern->fg_color = user_pattern->fg_color;
    pattern->bg_color = user_pattern->bg_color;
    pattern->type = user_pattern->type;

    if (!pattern->bg_color) {
        /* Default background color in Excel is white, when unspecified. */
        pattern->bg_color = LXW_COLOR_WHITE;
    }

    return pattern;
}

// Assembly:
testq %rdi, %rdi
je 0x15870
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movb 0x8(%rdi), %bpl
testb %bpl, %bpl
je 0x15873
movl (%rbx), %r14d
testl %r14d, %r14d
je 0x1587a
movl $0x1, %edi
movl $0xc, %esi
callq 0xc7f0
testq %rax, %rax
je 0x15881
movl %r14d, (%rax)
movl 0x4(%rbx), %ecx
movl %ecx, 0x4(%rax)
movb %bpl, 0x8(%rax)
testl %ecx, %ecx
jne 0x15888
movl $0xffffff, 0x4(%rax)    # imm = 0xFFFFFF
jmp 0x15888
xorl %eax, %eax
retq
callq 0xd3bc
jmp 0x15886
callq 0xd3a0
jmp 0x15886
callq 0xd37c
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_marker_type
void
chart_series_set_marker_type(lxw_chart_series *series, uint8_t type)
{
    if (!series->marker) {
        lxw_chart_marker *marker = calloc(1, sizeof(struct lxw_chart_marker));
        RETURN_VOID_ON_MEM_ERROR(marker);
        series->marker = marker;
    }

    series->marker->type = type;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
cmpq $0x0, 0x78(%rdi)
jne 0x158be
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
movq %rax, %r15
testq %rax, %rax
je 0x158ca
movq %r15, 0x78(%r14)
testq %r15, %r15
je 0x158c4
movq 0x78(%r14), %rax
movb %bl, (%rax)
popq %rbx
popq %r14
popq %r15
retq
callq 0xd3d8
jmp 0x158b9
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_marker_size
void
chart_series_set_marker_size(lxw_chart_series *series, uint8_t size)
{
    if (!series->marker) {
        lxw_chart_marker *marker = calloc(1, sizeof(struct lxw_chart_marker));
        RETURN_VOID_ON_MEM_ERROR(marker);
        series->marker = marker;
    }

    series->marker->size = size;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
cmpq $0x0, 0x78(%rdi)
jne 0x15902
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
movq %rax, %r15
testq %rax, %rax
je 0x1590f
movq %r15, 0x78(%r14)
testq %r15, %r15
je 0x15909
movq 0x78(%r14), %rax
movb %bl, 0x1(%rax)
popq %rbx
popq %r14
popq %r15
retq
callq 0xd3fc
jmp 0x158fd
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_marker_line
void
chart_series_set_marker_line(lxw_chart_series *series, lxw_chart_line *line)
{
    if (!line)
        return;

    if (!series->marker) {
        lxw_chart_marker *marker = calloc(1, sizeof(struct lxw_chart_marker));
        RETURN_VOID_ON_MEM_ERROR(marker);
        series->marker = marker;
    }

    /* Free any previously allocated resource. */
    free(series->marker->line);

    series->marker->line = _chart_convert_line_args(line);
}

// Assembly:
testq %rsi, %rsi
je 0x1596f
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x78(%rdi)
jne 0x1594d
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
movq %rax, %r15
testq %rax, %rax
je 0x15970
movq %r15, 0x78(%rbx)
testq %r15, %r15
je 0x1596a
movq 0x78(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0x1572d
movq 0x78(%rbx), %rcx
movq %rax, 0x8(%rcx)
popq %rbx
popq %r14
popq %r15
retq
callq 0xd420
jmp 0x15948
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_marker_fill
void
chart_series_set_marker_fill(lxw_chart_series *series, lxw_chart_fill *fill)
{
    if (!fill)
        return;

    if (!series->marker) {
        lxw_chart_marker *marker = calloc(1, sizeof(struct lxw_chart_marker));
        RETURN_VOID_ON_MEM_ERROR(marker);
        series->marker = marker;
    }

    /* Free any previously allocated resource. */
    free(series->marker->fill);

    series->marker->fill = _chart_convert_fill_args(fill);
}

// Assembly:
testq %rsi, %rsi
je 0x159d0
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x78(%rdi)
jne 0x159ae
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
movq %rax, %r15
testq %rax, %rax
je 0x159d1
movq %r15, 0x78(%rbx)
testq %r15, %r15
je 0x159cb
movq 0x78(%rbx), %rax
movq 0x10(%rax), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0x157ad
movq 0x78(%rbx), %rcx
movq %rax, 0x10(%rcx)
popq %rbx
popq %r14
popq %r15
retq
callq 0xd444
jmp 0x159a9
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_marker_pattern
void
chart_series_set_marker_pattern(lxw_chart_series *series,
                                lxw_chart_pattern *pattern)
{
    if (!pattern)
        return;

    if (!series->marker) {
        lxw_chart_marker *marker = calloc(1, sizeof(struct lxw_chart_marker));
        RETURN_VOID_ON_MEM_ERROR(marker);
        series->marker = marker;
    }

    /* Free any previously allocated resource. */
    free(series->marker->pattern);

    series->marker->pattern = _chart_convert_pattern_args(pattern);
}

// Assembly:
testq %rsi, %rsi
je 0x15a31
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x78(%rdi)
jne 0x15a0f
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
movq %rax, %r15
testq %rax, %rax
je 0x15a32
movq %r15, 0x78(%rbx)
testq %r15, %r15
je 0x15a2c
movq 0x78(%rbx), %rax
movq 0x18(%rax), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0x15825
movq 0x78(%rbx), %rcx
movq %rax, 0x18(%rcx)
popq %rbx
popq %r14
popq %r15
retq
callq 0xd468
jmp 0x15a0a
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_points
lxw_error
chart_series_set_points(lxw_chart_series *series, lxw_chart_point *points[])
{
    uint16_t i = 0;
    uint16_t point_count = 0;

    if (points == NULL)
        return LXW_ERROR_NULL_PARAMETER_IGNORED;

    while (points[point_count])
        point_count++;

    if (point_count == 0)
        return LXW_ERROR_NULL_PARAMETER_IGNORED;

    /* Free any existing resource. */
    _chart_free_points(series);

    series->points = calloc(point_count, sizeof(lxw_chart_point));
    RETURN_ON_MEM_ERROR(series->points, LXW_ERROR_MEMORY_MALLOC_FAILED);

    for (i = 0; i < point_count; i++) {
        lxw_chart_point *src_point = points[i];
        lxw_chart_point *dst_point = &series->points[i];

        dst_point->line = _chart_convert_line_args(src_point->line);
        dst_point->fill = _chart_convert_fill_args(src_point->fill);
        dst_point->pattern = _chart_convert_pattern_args(src_point->pattern);
    }

    series->point_count = point_count;

    return LXW_NO_ERROR;
}

// Assembly:
movl $0xc, %eax
testq %rsi, %rsi
je 0x15b00
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movw $0xffff, %bp            # imm = 0xFFFF
incl %ebp
movzwl %bp, %r15d
cmpq $0x0, (%r14,%r15,8)
jne 0x15a5c
testw %bp, %bp
je 0x15af2
movq %rbx, %rdi
callq 0x15b0d
movl $0x18, %esi
movq %r15, %rdi
callq 0xc7f0
movq %rax, 0x80(%rbx)
testq %rax, %rax
je 0x15b01
shll $0x3, %r15d
leaq (%r15,%r15,2), %rax
movq %rax, (%rsp)
xorl %r12d, %r12d
movq (%r14), %r13
movq %rbx, %r15
movq 0x80(%rbx), %rbx
movq (%r13), %rdi
callq 0x1572d
movq %rax, (%rbx,%r12)
movq 0x8(%r13), %rdi
callq 0x157ad
movq %rax, 0x8(%rbx,%r12)
movq 0x10(%r13), %rdi
callq 0x15825
movq %rax, 0x10(%rbx,%r12)
movq %r15, %rbx
addq $0x8, %r14
addq $0x18, %r12
cmpq %r12, (%rsp)
jne 0x15aa2
movw %bp, 0x90(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xd48c
movl $0x1, %eax
jmp 0x15af2
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_free_points
STATIC void
_chart_free_points(lxw_chart_series *series)
{
    uint16_t index;

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

        free(point->line);
        free(point->fill);
        free(point->pattern);
    }

    series->point_count = 0;
    free(series->points);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x90(%rdi)
je 0x15b62
movl $0x10, %r14d
xorl %r15d, %r15d
movq 0x80(%rbx), %r12
movq -0x10(%r12,%r14), %rdi
callq 0xc0c0
movq -0x8(%r12,%r14), %rdi
callq 0xc0c0
movq (%r12,%r14), %rdi
callq 0xc0c0
incq %r15
movzwl 0x90(%rbx), %eax
addq $0x18, %r14
cmpq %rax, %r15
jb 0x15b2b
movw $0x0, 0x90(%rbx)
movq 0x80(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc0c0
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_free_data_labels
STATIC void
_chart_free_data_labels(lxw_chart_series *series)
{
    uint16_t index;

    for (index = 0; index < series->data_label_count; index++) {
        lxw_chart_custom_label *data_label = &series->data_labels[index];

        free(data_label->value);
        _chart_free_range(data_label->range);
        _chart_free_font(data_label->font);
        free(data_label->line);
        free(data_label->fill);
        free(data_label->pattern);
    }

    series->data_label_count = 0;
    free(series->data_labels);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x92(%rdi)
je 0x15dda
movl $0x30, %r14d
xorl %r15d, %r15d
movq 0x88(%rbx), %r12
movq -0x30(%r12,%r14), %rdi
callq 0xc0c0
movq (%r12,%r14), %rdi
callq 0x1413e
movq -0x20(%r12,%r14), %rdi
callq 0x14123
movq -0x18(%r12,%r14), %rdi
callq 0xc0c0
movq -0x10(%r12,%r14), %rdi
callq 0xc0c0
movq -0x8(%r12,%r14), %rdi
callq 0xc0c0
incq %r15
movzwl 0x92(%rbx), %eax
addq $0x60, %r14
cmpq %rax, %r15
jb 0x15d85
movw $0x0, 0x92(%rbx)
movq 0x88(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc0c0
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_convert_font_args
STATIC lxw_chart_font *
_chart_convert_font_args(lxw_chart_font *user_font)
{
    lxw_chart_font *font;

    if (!user_font)
        return NULL;

    font = calloc(1, sizeof(struct lxw_chart_font));
    RETURN_ON_MEM_ERROR(font, NULL);

    /* Copy the user supplied properties. */
    font->name = lxw_strdup(user_font->name);
    font->size = user_font->size;
    font->bold = user_font->bold;
    font->italic = user_font->italic;
    font->underline = user_font->underline;
    font->rotation = user_font->rotation;
    font->color = user_font->color;
    font->pitch_family = user_font->pitch_family;
    font->charset = user_font->charset;
    font->baseline = user_font->baseline;

    /* Convert font size units. */
    if (font->size > 0.0)
        font->size = font->size * 100.0;

    /* Convert rotation into 60,000ths of a degree. */
    if (font->rotation)
        font->rotation = font->rotation * 60000;

    return font;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x15e9a
movq %rdi, %r14
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x15e95
movq %rax, %rbx
movq (%r14), %rdi
callq 0xcce0
movq %rax, (%rbx)
movsd 0x8(%r14), %xmm0
movsd %xmm0, 0x8(%rbx)
movb 0x10(%r14), %al
movb %al, 0x10(%rbx)
movb 0x11(%r14), %al
movb %al, 0x11(%rbx)
movb 0x12(%r14), %al
movb %al, 0x12(%rbx)
movl 0x14(%r14), %eax
movl %eax, 0x14(%rbx)
movl 0x18(%r14), %ecx
movl %ecx, 0x18(%rbx)
movb 0x1c(%r14), %cl
movb %cl, 0x1c(%rbx)
movb 0x1d(%r14), %cl
movb %cl, 0x1d(%rbx)
movb 0x1e(%r14), %cl
movb %cl, 0x1e(%rbx)
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x15e86
mulsd 0x2a657(%rip), %xmm0    # 0x404d8
movsd %xmm0, 0x8(%rbx)
testl %eax, %eax
je 0x15e9c
imull $0xea60, %eax, %eax     # imm = 0xEA60
movl %eax, 0x14(%rbx)
jmp 0x15e9c
callq 0xd4f8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_error_bars
void
chart_series_set_error_bars(lxw_series_error_bars *error_bars,
                            uint8_t type, double value)
{
    if (_chart_check_error_bars(error_bars, ""))
        return;

    error_bars->type = type;
    error_bars->value = value;
    error_bars->has_value = LXW_TRUE;
    error_bars->is_set = LXW_TRUE;

    if (type == LXW_CHART_ERROR_BAR_TYPE_STD_ERROR)
        error_bars->has_value = LXW_FALSE;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movsd %xmm0, (%rsp)
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x334c5(%rip), %rsi     # 0x49659
callq 0xc8e0
testl %eax, %eax
jne 0x161b9
movb %bpl, (%rbx)
movsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rbx)
movw $0x101, 0x3(%rbx)       # imm = 0x101
testb %bpl, %bpl
jne 0x161b9
movb $0x0, 0x3(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_error_bars_line
void
chart_series_set_error_bars_line(lxw_series_error_bars *error_bars,
                                 lxw_chart_line *line)
{
    if (_chart_check_error_bars(error_bars, "_line"))
        return;

    if (!line)
        return;

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

    error_bars->line = _chart_convert_line_args(line);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2a9a9(%rip), %rsi     # 0x40bc4
callq 0xc8e0
testq %r14, %r14
je 0x1623e
testl %eax, %eax
jne 0x1623e
movq 0x10(%rbx), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0x1572d
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x16296
pushq %rbx
movq %rdi, %rbx
cmpb $0x3d, (%rsi)
jne 0x1628a
incq %rsi
movq %rsi, %rdi
callq 0xcce0
movq 0x20(%rbx), %rcx
movq %rax, (%rcx)
jmp 0x16295
movq %rsi, %rdi
callq 0xcce0
movq %rax, (%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x164b4
leal -0x2(%rsi), %eax
movzwl %ax, %eax
cmpl $0x3e6, %eax            # imm = 0x3E6
ja 0x164b3
movw %si, 0xf4(%rdi)
retq
pushq %rax
callq 0xd68a
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x165e5
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x70(%rdi), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0x1572d
movq %rax, 0x70(%rbx)
testq %rax, %rax
je 0x165de
movb $0x1, 0x68(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x16625
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x80(%rdi), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0x1572d
movq %rax, 0x80(%rbx)
testq %rax, %rax
je 0x1661e
movb $0x1, 0x78(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1665d
pushq %rbx
movq %rdi, %rbx
cmpb $0x3d, (%rsi)
jne 0x16650
incq %rsi
movq %rsi, %rdi
callq 0xcce0
movq 0x50(%rbx), %rcx
movq %rax, (%rcx)
jmp 0x1665c
movq %rsi, %rdi
callq 0xcce0
movq %rax, 0x30(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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:
movl $0xc, %eax
testq %rsi, %rsi
je 0x16756
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movw $0xffff, %bp            # imm = 0xFFFF
incl %ebp
movzwl %bp, %ecx
cmpw $0x0, (%r14,%rcx,2)
jns 0x166f9
testw %bp, %bp
je 0x1674c
movl $0xff, %eax
cmpl %eax, %ecx
cmovael %eax, %ebp
movzwl %bp, %r15d
movl $0x2, %esi
movq %r15, %rdi
callq 0xc7f0
movq %rax, 0xc0(%rbx)
testq %rax, %rax
je 0x16757
addl %r15d, %r15d
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xc900
movw %bp, 0xc8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0xd76a
movl $0x1, %eax
jmp 0x1674c
// File: /workspace/github_c_makefile_star2_O1/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 0xc0c0
movq 0x158(%rbx), %rdi
callq 0xc0c0
movq 0x150(%rbx), %rdi
callq 0xc0c0
movq 0x160(%rbx), %rdi
callq 0xc0c0
movq %r13, %rdi
callq 0x1572d
movq %rax, 0x148(%rbx)
movq %r12, %rdi
callq 0x157ad
movq %rax, 0x158(%rbx)
movq %r15, %rdi
callq 0x1572d
movq %rax, 0x150(%rbx)
movq %r14, %rdi
callq 0x157ad
movq %rax, 0x160(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x2a623(%rip), %rsi     # 0x410bc
xorl %edx, %edx
callq 0xc350
movzbl 0xa8(%rbx), %esi
movq %rbx, %rdi
callq 0x1725e
movq 0x128(%rbx), %rax
movq (%rax), %r14
movq %rbx, %rdi
testq %r14, %r14
je 0x16ad2
movq %r14, %rsi
callq 0x1730e
movq 0x110(%r14), %r14
jmp 0x16ab9
callq 0x174e5
movq %rbx, %rdi
callq 0x17555
movq (%rbx), %rdi
leaq 0x2a5d3(%rip), %rsi     # 0x410bc
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc060
// File: /workspace/github_c_makefile_star2_O1/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
movq %rdi, %r14
leaq 0x8(%rsp), %rax
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
decb %sil
cmpb $0x2, %sil
ja 0x17295
movzbl %sil, %eax
leaq 0x29180(%rip), %rcx     # 0x4040c
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x1729c
leaq 0x29e4c(%rip), %rsi     # 0x410e8
leaq 0x2a1b1(%rip), %rdi     # 0x41454
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
leaq 0x8(%rsp), %rbx
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x29e1e(%rip), %rsi     # 0x410f2
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x17306
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x172fa
movq %rbx, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x172df
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x17538
movq %rdi, %rbx
cmpq $0x0, 0x110(%rdi)
movq (%rdi), %rdi
je 0x17540
leaq 0x29f7f(%rip), %r14     # 0x41488
movq %r14, %rsi
xorl %edx, %edx
callq 0xc350
movq 0x110(%rbx), %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x14fbe
movq (%rbx), %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc060
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x29f41(%rip), %rsi     # 0x41488
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xcc00
// File: /workspace/github_c_makefile_star2_O1/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
cmpl $0x0, 0x84(%rdi)
jne 0x1757f
movl 0x80(%rbx), %eax
leal 0x2fb1791(%rax), %ecx
movl %ecx, 0x84(%rbx)
addl $0x2fb1792, %eax        # imm = 0x2FB1792
movl %eax, 0x88(%rbx)
movl 0x84(%rbx), %esi
movq %rbx, %rdi
callq 0x199ed
movl 0x88(%rbx), %esi
movq %rbx, %rdi
popq %rbx
jmp 0x199ed
// File: /workspace/github_c_makefile_star2_O1/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 %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 0x29e96(%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 0x29b1d(%rip), %rsi     # 0x41103
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x17616
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x1760b
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x175f1
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 %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 0x29e12(%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 0x29a9f(%rip), %rsi     # 0x41109
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1769a
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x1768f
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x17675
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x176ed
movq (%rbx), %rdi
leaq 0x29a52(%rip), %r15     # 0x41111
movq %r15, %rsi
xorl %edx, %edx
callq 0xc350
movq (%rbx), %rdi
leaq 0x29a43(%rip), %rsi     # 0x41116
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xcb30
movq (%rbx), %rdi
movq %r15, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xc060
movq 0x30(%rsi), %rax
cmpq $0x0, (%rax)
je 0x17708
addq $0x10, %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1845a
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
jne 0x1772b
movq 0xd0(%rbx), %r14
testq %r14, %r14
je 0x17886
cmpb $0x0, (%r14)
je 0x17886
movq (%rbx), %rdi
leaq 0x299ff(%rip), %rsi     # 0x41147
xorl %edx, %edx
callq 0xc350
movb (%r14), %al
leaq 0x8(%rsp), %rcx
movq $0x0, (%rcx)
movq %rcx, 0x8(%rcx)
addb $-0x2, %al
cmpb $0x8, %al
ja 0x1777b
movzbl %al, %eax
leaq 0x28ca6(%rip), %rcx     # 0x40418
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x17782
leaq 0x29a0c(%rip), %rsi     # 0x4118e
leaq 0x29ccb(%rip), %rdi     # 0x41454
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
leaq 0x8(%rsp), %r15
movq 0x8(%r15), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r15)
movq (%rbx), %rdi
leaq 0x299d9(%rip), %rsi     # 0x41193
movq %r15, %rdx
callq 0xcc00
movq (%r15), %rdi
testq %rdi, %rdi
je 0x177ec
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x177e0
movq %r15, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x177c5
movzbl 0x1(%r14), %esi
testq %rsi, %rsi
je 0x17863
xorl %r12d, %r12d
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
leaq 0x29c4a(%rip), %rdi     # 0x41454
callq 0xc180
leaq 0x1040(%rax), %rcx
movq %r12, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%rbx), %rdi
leaq 0x29968(%rip), %rsi     # 0x4119c
movq %r15, %rdx
callq 0xcc00
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x17863
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x1785c
movq %r15, 0x10(%rsp)
callq 0xc0c0
jmp 0x1783c
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
movq 0x18(%r14), %rcx
movq %rbx, %rdi
callq 0x14fbe
movq (%rbx), %rdi
leaq 0x298c6(%rip), %rsi     # 0x41147
callq 0xc060
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/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:
cmpw $0x0, 0x90(%rsi)
je 0x1797c
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x10, %r13d
xorl %ebp, %ebp
leaq 0x298f6(%rip), %r15     # 0x411b6
movq 0x80(%rbx), %r12
cmpq $0x0, -0x10(%r12,%r13)
jne 0x178de
cmpq $0x0, -0x8(%r12,%r13)
jne 0x178de
cmpq $0x0, (%r12,%r13)
je 0x17957
movq (%r14), %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0xc350
movzwl %bp, %esi
movq %r14, %rdi
callq 0x1759c
movzbl 0x95(%r14), %eax
orl $0x4, %eax
cmpl $0xf, %eax
jne 0x17917
movq (%r14), %rdi
leaq 0x29837(%rip), %rsi     # 0x41147
xorl %edx, %edx
callq 0xc350
movq -0x10(%r12,%r13), %rsi
movq -0x8(%r12,%r13), %rdx
movq (%r12,%r13), %rcx
movq %r14, %rdi
callq 0x14fbe
movzbl 0x95(%r14), %eax
orl $0x4, %eax
cmpl $0xf, %eax
jne 0x1794c
movq (%r14), %rdi
leaq 0x29800(%rip), %rsi     # 0x41147
callq 0xc060
movq (%r14), %rdi
movq %r15, %rsi
callq 0xc060
incq %rbp
movzwl 0x90(%rbx), %eax
addq $0x18, %r13
cmpq %rax, %rbp
jb 0x178c0
addq $0x8, %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/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 0x18459
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 0x29063(%rip), %rdi     # 0x41454
leaq 0x2d340(%rip), %rsi     # 0x45738
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 0x2905f(%rip), %rsi     # 0x4147f
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x18450
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x18445
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x1842b
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x28c67(%rip), %rsi     # 0x4111a
xorl %edx, %edx
callq 0xc350
movq (%r14), %rdx
movq (%rbx), %rdi
leaq 0x28c5c(%rip), %rsi     # 0x41123
xorl %ecx, %ecx
callq 0xcb30
movq 0x20(%r14), %rax
cmpq $0x0, (%rax)
je 0x18604
movq (%rbx), %rdi
leaq 0x28c41(%rip), %rsi     # 0x41127
xorl %edx, %edx
callq 0xc350
movzwl 0x1e(%r14), %esi
movq %rbx, %rdi
callq 0x18622
movq 0x20(%r14), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x185f5
movq %rsp, %r14
leaq 0x28c28(%rip), %r12     # 0x4113c
xorl %ebp, %ebp
cmpb $0x0, 0x18(%r15)
je 0x1852d
incl %ebp
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0x18516
jmp 0x185f5
xorl %r13d, %r13d
movq %r13, (%rsp)
movq %r14, 0x8(%rsp)
movzwl %bp, %esi
leaq 0x28bc2(%rip), %rdi     # 0x41105
callq 0xc180
leaq 0x1040(%rax), %rcx
movq %r13, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0xc350
cmpb $0x0, (%r15)
je 0x1858c
movq 0x10(%r15), %rdx
testq %rdx, %rdx
je 0x1858c
movq (%rbx), %rdi
leaq 0x28b8c(%rip), %rsi     # 0x41116
jmp 0x185ba
movsd 0x8(%r15), %xmm0
movl $0x20, %esi
leaq 0x10(%rsp), %r13
movq %r13, %rdi
leaq 0x28b9b(%rip), %rdx     # 0x41141
movb $0x1, %al
callq 0xc570
movq (%rbx), %rdi
leaq 0x28b5f(%rip), %rsi     # 0x41116
movq %r13, %rdx
xorl %ecx, %ecx
callq 0xcb30
movq (%rbx), %rdi
movq %r12, %rsi
callq 0xc060
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1851d
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x185ee
movq %r14, 0x8(%rsp)
callq 0xc0c0
jmp 0x185cc
movq (%rbx), %rdi
leaq 0x28b28(%rip), %rsi     # 0x41127
callq 0xc060
movq (%rbx), %rdi
leaq 0x28b0c(%rip), %rsi     # 0x4111a
callq 0xc060
addq $0x38, %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/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 %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 0x28e10(%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 0x28ac6(%rip), %rsi     # 0x41132
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1869c
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x18691
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x18677
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x186c4
movl 0x14(%r15), %r12d
jmp 0x186c7
xorl %r12d, %r12d
movq (%rbx), %rdi
leaq 0x28bdf(%rip), %r14     # 0x412b0
movq %r14, %rsi
xorl %edx, %edx
callq 0xc350
movzbl %bpl, %edx
movq %rbx, %rdi
movl %r12d, %esi
callq 0x18e92
movq (%rbx), %rdi
leaq 0x28b1a(%rip), %rsi     # 0x4120e
xorl %edx, %edx
callq 0xcc00
movq (%rbx), %rdi
leaq 0x28b14(%rip), %r12     # 0x41219
movq %r12, %rsi
xorl %edx, %edx
callq 0xc350
movq (%rbx), %rdi
leaq 0x28b04(%rip), %r13     # 0x4121d
movq %r13, %rsi
xorl %edx, %edx
callq 0xc350
movq %rbx, %rdi
movq %r15, %rsi
callq 0x19007
movq (%rbx), %rdi
movq %r13, %rsi
callq 0xc060
movq %rbx, %rdi
callq 0x194a0
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_O1/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
movq %rdi, %r14
leaq 0x8(%rsp), %rax
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
addb $-0x2, %sil
cmpb $0x7, %sil
ja 0x1879d
movzbl %sil, %eax
leaq 0x27cbc(%rip), %rcx     # 0x40450
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x187a4
leaq 0x28b3c(%rip), %rsi     # 0x412e0
leaq 0x28ca9(%rip), %rdi     # 0x41454
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
leaq 0x8(%rsp), %rbx
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x28b08(%rip), %rsi     # 0x412e4
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1880e
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x18802
movq %rbx, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x187e7
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 %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 0x28c1e(%rip), %rdi     # 0x41454
leaq 0x2cefb(%rip), %rsi     # 0x45738
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 0x28a99(%rip), %rsi     # 0x412fe
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x18895
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x1888a
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x18870
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq