// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_sp_pr
STATIC void
_chart_write_sp_pr(lxw_chart *self, lxw_chart_line *line,
                   lxw_chart_fill *fill, lxw_chart_pattern *pattern)
{
    if (!line && !fill && !pattern)
        return;

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

    /* Write the series fill. Note: a pattern fill overrides a solid fill. */
    if (fill && !pattern) {
        if (fill->none) {
            /* Write the a:noFill element. */
            _chart_write_a_no_fill(self);
        }
        else {
            /* Write the a:solidFill element. */
            _chart_write_a_solid_fill(self, fill->color, fill->transparency);
        }
    }

    if (pattern) {
        /* Write the a:pattFill element. */
        _chart_write_a_patt_fill(self, pattern);
    }

    if (line) {
        /* Write the a:ln element. */
        _chart_write_a_ln(self, line);
    }

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

// Assembly:
movq %rsi, %rax
orq %rdx, %rax
orq %rcx, %rax
je 0x1534e
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
testq %rcx, %rcx
setne %bpl
movq (%rdi), %rdi
leaq 0x2c29b(%rip), %rsi     # 0x41293
xorl %edx, %edx
callq 0xc350
testq %r12, %r12
sete %al
orb %bpl, %al
jne 0x15037
cmpb $0x0, 0x4(%r12)
je 0x15025
movq (%rbx), %rdi
leaq 0x2c868(%rip), %rsi     # 0x41884
xorl %edx, %edx
callq 0xcc00
jmp 0x15037
movl (%r12), %esi
movzbl 0x5(%r12), %edx
movq %rbx, %rdi
callq 0x19311
testq %r15, %r15
je 0x1514f
leaq 0x8(%rsp), %rax
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
movzbl 0x8(%r15), %eax
cmpq $0x30, %rax
ja 0x1506b
leaq 0x2b2be(%rip), %rcx     # 0x40320
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x15072
leaq 0x2c991(%rip), %rsi     # 0x41a03
leaq 0x2c814(%rip), %rdi     # 0x4188d
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
leaq 0x8(%rsp), %r12
movq 0x8(%r12), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r12)
movq (%rbx), %rdi
leaq 0x2c962(%rip), %rsi     # 0x41a0e
movq %r12, %rdx
callq 0xc350
movl (%r15), %ebp
testl %ebp, %ebp
je 0x150e6
movq (%rbx), %rdi
leaq 0x2c954(%rip), %r13     # 0x41a19
movq %r13, %rsi
xorl %edx, %edx
callq 0xc350
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x19354
movq (%rbx), %rdi
movq %r13, %rsi
callq 0xc060
movl 0x4(%r15), %ebp
testl %ebp, %ebp
je 0x15119
movq (%rbx), %rdi
leaq 0x2c929(%rip), %r15     # 0x41a21
movq %r15, %rsi
xorl %edx, %edx
callq 0xc350
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x19354
movq (%rbx), %rdi
movq %r15, %rsi
callq 0xc060
movq (%rbx), %rdi
leaq 0x2c8eb(%rip), %rsi     # 0x41a0e
callq 0xc060
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1514f
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x15148
movq %r12, 0x10(%rsp)
callq 0xc0c0
jmp 0x15128
testq %r14, %r14
je 0x15331
leaq 0x18(%rsp), %r15
movq $0x0, (%r15)
movq %r15, 0x8(%r15)
movss 0x8(%r14), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x151e7
cvtss2sd %xmm0, %xmm0
addsd 0x2b336(%rip), %xmm0    # 0x404b8
mulsd 0x2b336(%rip), %xmm0    # 0x404c0
cvttsd2si %xmm0, %rax
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
mulss 0x2b33f(%rip), %xmm0    # 0x404e0
cvtss2sd %xmm0, %xmm0
mulsd 0x2b31b(%rip), %xmm0    # 0x404c8
addsd 0x2b31b(%rip), %xmm0    # 0x404d0
cvttsd2si %xmm0, %rax
movl %eax, %esi
leaq 0x312c0(%rip), %rdi     # 0x46483
callq 0xc180
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x20(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x20(%rsp)
cmpb $0x0, 0x4(%r14)
jne 0x151ff
cmpl $0x0, (%r14)
jne 0x151ff
cmpb $0x0, 0xc(%r14)
je 0x152f6
movq (%rbx), %rdi
leaq 0x2c820(%rip), %rsi     # 0x41a29
leaq 0x18(%rsp), %rdx
callq 0xc350
cmpb $0x0, 0x4(%r14)
je 0x1522d
movq (%rbx), %rdi
leaq 0x2c660(%rip), %rsi     # 0x41884
xorl %edx, %edx
callq 0xcc00
jmp 0x15241
movl (%r14), %esi
testl %esi, %esi
je 0x15241
movzbl 0xd(%r14), %edx
movq %rbx, %rdi
callq 0x19311
movsbq 0xc(%r14), %rax
testq %rax, %rax
je 0x152e5
leaq 0x8(%rsp), %rcx
movq $0x0, (%rcx)
movq %rcx, 0x8(%rcx)
cmpb $0xa, %al
ja 0x15274
leaq 0x2b17a(%rip), %rcx     # 0x403e4
movslq -0x4(%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x1527b
leaq 0x2bf02(%rip), %rsi     # 0x4117d
leaq 0x2c1d2(%rip), %rdi     # 0x41454
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
leaq 0x8(%rsp), %r14
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
movq (%rbx), %rdi
leaq 0x2c7cd(%rip), %rsi     # 0x41a80
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x152e5
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x152d9
movq %r14, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x152be
movq (%rbx), %rdi
leaq 0x2c73a(%rip), %rsi     # 0x41a29
callq 0xc060
jmp 0x15327
movq (%rbx), %rdi
leaq 0x2c729(%rip), %rsi     # 0x41a29
leaq 0x18(%rsp), %rdx
callq 0xcc00
jmp 0x15327
movq 0x1040(%rdi), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
jne 0x15322
movq %r15, 0x20(%rsp)
callq 0xc0c0
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
jne 0x1530c
movq (%rbx), %rdi
leaq 0x2bf58(%rip), %rsi     # 0x41293
callq 0xc060
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq