// File: /workspace/github_c_makefile_star2_O3/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 0x155a9
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 0x2c042(%rip), %rsi     # 0x4128b
xorl %edx, %edx
callq 0xc350
testq %r12, %r12
sete %al
orb %bpl, %al
je 0x15292
testq %r15, %r15
je 0x152bf
leaq 0x8(%rsp), %rax
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
movzbl 0x8(%r15), %eax
cmpq $0x30, %rax
ja 0x15469
leaq 0x2b086(%rip), %rcx     # 0x4030c
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x15470
cmpb $0x0, 0x4(%r12)
je 0x152ad
movq (%rbx), %rdi
leaq 0x2c5d8(%rip), %rsi     # 0x4187c
xorl %edx, %edx
callq 0xcc00
jmp 0x152bf
movl (%r12), %esi
movzbl 0x5(%r12), %edx
movq %rbx, %rdi
callq 0x195a2
testq %r14, %r14
je 0x1558c
leaq 0x18(%rsp), %r15
movq $0x0, (%r15)
movq %r15, 0x8(%r15)
movss 0x8(%r14), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x15357
cvtss2sd %xmm0, %xmm0
addsd 0x2b1be(%rip), %xmm0    # 0x404b0
mulsd 0x2b1be(%rip), %xmm0    # 0x404b8
cvttsd2si %xmm0, %rax
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
mulss 0x2b1c7(%rip), %xmm0    # 0x404d8
cvtss2sd %xmm0, %xmm0
mulsd 0x2b1a3(%rip), %xmm0    # 0x404c0
addsd 0x2b1a3(%rip), %xmm0    # 0x404c8
cvttsd2si %xmm0, %rax
movl %eax, %esi
leaq 0x31160(%rip), %rdi     # 0x46493
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 0x1536f
cmpl $0x0, (%r14)
jne 0x1536f
cmpb $0x0, 0xc(%r14)
je 0x15551
movq (%rbx), %rdi
leaq 0x2c6a8(%rip), %rsi     # 0x41a21
leaq 0x18(%rsp), %rdx
callq 0xc350
cmpb $0x0, 0x4(%r14)
je 0x1539d
movq (%rbx), %rdi
leaq 0x2c4e8(%rip), %rsi     # 0x4187c
xorl %edx, %edx
callq 0xcc00
jmp 0x153b1
movl (%r14), %esi
testl %esi, %esi
je 0x153b1
movzbl 0xd(%r14), %edx
movq %rbx, %rdi
callq 0x195a2
movsbq 0xc(%r14), %rax
testq %rax, %rax
je 0x15455
leaq 0x8(%rsp), %rcx
movq $0x0, (%rcx)
movq %rcx, 0x8(%rcx)
cmpb $0xa, %al
ja 0x153e4
leaq 0x2aff6(%rip), %rcx     # 0x403d0
movslq -0x4(%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x153eb
leaq 0x2bd8a(%rip), %rsi     # 0x41175
leaq 0x2c05a(%rip), %rdi     # 0x4144c
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 0x2c655(%rip), %rsi     # 0x41a78
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x15455
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x15449
movq %r14, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x1542e
movq (%rbx), %rdi
leaq 0x2c5c2(%rip), %rsi     # 0x41a21
callq 0xc060
jmp 0x15582
leaq 0x2c58b(%rip), %rsi     # 0x419fb
leaq 0x2c40e(%rip), %rdi     # 0x41885
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 0x2c55c(%rip), %rsi     # 0x41a06
movq %r12, %rdx
callq 0xc350
movl (%r15), %ebp
testl %ebp, %ebp
je 0x154e4
movq (%rbx), %rdi
leaq 0x2c54e(%rip), %r13     # 0x41a11
movq %r13, %rsi
xorl %edx, %edx
callq 0xc350
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x195e5
movq (%rbx), %rdi
movq %r13, %rsi
callq 0xc060
movl 0x4(%r15), %ebp
testl %ebp, %ebp
je 0x15517
movq (%rbx), %rdi
leaq 0x2c523(%rip), %r15     # 0x41a19
movq %r15, %rsi
xorl %edx, %edx
callq 0xc350
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x195e5
movq (%rbx), %rdi
movq %r15, %rsi
callq 0xc060
movq (%rbx), %rdi
leaq 0x2c4e5(%rip), %rsi     # 0x41a06
callq 0xc060
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x152bf
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x1554a
movq %r12, 0x10(%rsp)
callq 0xc0c0
jmp 0x15526
movq (%rbx), %rdi
leaq 0x2c4c6(%rip), %rsi     # 0x41a21
leaq 0x18(%rsp), %rdx
callq 0xcc00
jmp 0x15582
movq 0x1040(%rdi), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
jne 0x1557d
movq %r15, 0x20(%rsp)
callq 0xc0c0
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
jne 0x15567
movq (%rbx), %rdi
leaq 0x2bcf5(%rip), %rsi     # 0x4128b
callq 0xc060
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq