// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_rich
STATIC void
_chart_write_rich(lxw_chart *self, char *name, lxw_chart_font *font,
                  uint8_t is_horizontal, uint8_t ignore_rich_pr)
{
    int32_t rotation = 0;

    if (font)
        rotation = font->rotation;

    lxw_xml_start_tag(self->file, "c:rich", 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_rich(self, name, font, ignore_rich_pr);

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movl %ecx, %r12d
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
testq %rdx, %rdx
je 0x18aca
movl 0x14(%r15), %r13d
jmp 0x18acd
xorl %r13d, %r13d
movq (%rbx), %rdi
leaq 0x28706(%rip), %rsi     # 0x411dd
xorl %edx, %edx
callq 0xc350
movzbl %r12b, %edx
movq %rbx, %rdi
movl %r13d, %esi
callq 0x18e92
movq (%rbx), %rdi
leaq 0x28717(%rip), %rsi     # 0x4120e
xorl %edx, %edx
callq 0xcc00
movq (%rbx), %rdi
leaq 0x28711(%rip), %rsi     # 0x41219
xorl %edx, %edx
callq 0xc350
testb %bpl, %bpl
jne 0x18b1f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x18fcd
movq %r14, 0x10(%rsp)
movq (%rbx), %rdi
leaq 0x28751(%rip), %rsi     # 0x4127f
xorl %ebp, %ebp
xorl %edx, %edx
callq 0xc350
movq %rsp, %r13
movq %rbp, (%r13)
movq %r13, 0x8(%r13)
leaq 0x28cae(%rip), %rdi     # 0x417f7
leaq 0x28733(%rip), %rsi     # 0x41283
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %rbp, 0x1040(%rax)
movq 0x8(%r13), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r13)
testq %r15, %r15
je 0x18cdc
movl 0x18(%r15), %eax
testl %eax, %eax
setne %bpl
movb $0x1, %r12b
cmpq $0x0, (%r15)
movb $0x1, %r14b
jne 0x18ba0
cmpb $0x0, 0x1c(%r15)
movb $0x1, %r14b
jne 0x18ba0
cmpb $0x0, 0x1d(%r15)
setne %r14b
testl %eax, %eax
jne 0x18bb2
testb %r14b, %r14b
jne 0x18bb2
cmpb $-0x1, 0x1e(%r15)
sete %r12b
movsd 0x8(%r15), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x18bed
leaq 0x2865a(%rip), %rdi     # 0x41223
callq 0xcc80
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
testb %r12b, %r12b
je 0x18bf9
cmpb $0x0, 0x10(%r15)
je 0x18c2c
movzbl 0x10(%r15), %esi
andl $0x1, %esi
leaq 0x273fd(%rip), %rdi     # 0x40005
callq 0xc180
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
testb %r12b, %r12b
je 0x18c38
cmpb $0x0, 0x11(%r15)
je 0x18c6b
movzbl 0x11(%r15), %esi
andl $0x1, %esi
leaq 0x2fe8c(%rip), %rdi     # 0x48ad3
callq 0xc180
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
cmpb $0x0, 0x12(%r15)
je 0x18ca4
leaq 0x29a7f(%rip), %rdi     # 0x426f8
leaq 0x285a6(%rip), %rsi     # 0x41226
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movsbq 0x1e(%r15), %rsi
cmpq $-0x1, %rsi
je 0x18cdf
leaq 0x28574(%rip), %rdi     # 0x4122a
callq 0xc180
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
jmp 0x18cdf
xorl %r14d, %r14d
movl %r14d, %eax
orb %bpl, %al
movq (%rbx), %rdi
leaq 0x2859a(%rip), %rsi     # 0x41289
testb $0x1, %al
je 0x18d44
movq %rsp, %r12
movq %r12, %rdx
callq 0xc350
testb %bpl, %bpl
je 0x18d11
movl 0x18(%r15), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x19311
testb %r14b, %r14b
movq 0x10(%rsp), %r14
je 0x18e0e
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x18d56
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x18d3d
movq %r12, 0x8(%rsp)
callq 0xc0c0
jmp 0x18d1f
movq %rsp, %rdx
callq 0xcc00
movq 0x10(%rsp), %r14
jmp 0x18e39
movq (%r15), %rsi
testq %rsi, %rsi
je 0x18d89
leaq 0x284d7(%rip), %rdi     # 0x4123c
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movzbl 0x1c(%r15), %esi
testq %rsi, %rsi
je 0x18dbe
leaq 0x284ab(%rip), %rdi     # 0x41245
callq 0xc180
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
cmpb $0x0, 0x1c(%r15)
jne 0x18dcc
cmpb $0x0, 0x1d(%r15)
je 0x18dfc
movzbl 0x1d(%r15), %esi
leaq 0x28479(%rip), %rdi     # 0x41251
callq 0xc180
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x28453(%rip), %rsi     # 0x41259
movq %rsp, %rdx
callq 0xcc00
movq (%rbx), %rdi
leaq 0x28471(%rip), %rsi     # 0x41289
callq 0xc060
jmp 0x18e39
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x18e34
movq %r13, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
testq %rdi, %rdi
jne 0x18e1f
movq (%rbx), %rdi
leaq 0x28443(%rip), %rsi     # 0x4128f
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xcb30
movq (%rbx), %rdi
leaq 0x2841f(%rip), %rsi     # 0x4127f
callq 0xc060
movq (%rbx), %rdi
leaq 0x283aa(%rip), %rsi     # 0x41219
callq 0xc060
movq (%rbx), %rdi
leaq 0x2835f(%rip), %rsi     # 0x411dd
callq 0xc060
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq