// File: /workspace/github_c_makefile_star2_O2/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, 0x10(%rsp)
movq %rdi, %rbx
testq %rdx, %rdx
je 0x15ded
movl 0x14(%r15), %r13d
jmp 0x15df0
xorl %r13d, %r13d
movq (%rbx), %rdi
leaq 0x283db(%rip), %rsi     # 0x3e1d5
xorl %edx, %edx
callq 0xc380
movzbl %r12b, %edx
movq %rbx, %rdi
movl %r13d, %esi
callq 0x161bd
movq %rbx, %rdi
callq 0x162e7
movq (%rbx), %rdi
leaq 0x283ef(%rip), %rsi     # 0x3e211
xorl %edx, %edx
callq 0xc380
testb %bpl, %bpl
jne 0x15e39
movq %rbx, %rdi
movq %r15, %rsi
callq 0x162f8
movq (%rbx), %rdi
leaq 0x28434(%rip), %rsi     # 0x3e277
xorl %ebp, %ebp
xorl %edx, %edx
callq 0xc380
movq %rsp, %r13
andq $0x0, (%r13)
movq %r13, 0x8(%r13)
leaq 0x28990(%rip), %rdi     # 0x3e7ef
leaq 0x28415(%rip), %rsi     # 0x3e27b
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%r13), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r13)
testq %r15, %r15
je 0x15eac
movl 0x18(%r15), %eax
testl %eax, %eax
setne %bpl
movb $0x1, %r14b
cmpq $0x0, (%r15)
movb $0x1, %r12b
jne 0x15ed5
cmpb $0x0, 0x1c(%r15)
je 0x15eb4
movb $0x1, %r14b
jmp 0x15ed5
xorl %r14d, %r14d
jmp 0x16016
testl %eax, %eax
setne %al
cmpb $0x0, 0x1d(%r15)
setne %r14b
orb %r14b, %al
testb $0x1, %al
jne 0x15ed5
cmpb $-0x1, 0x1e(%r15)
sete %r12b
xorl %r14d, %r14d
movsd 0x8(%r15), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x15f0d
leaq 0x2832f(%rip), %rdi     # 0x3e21b
callq 0xccf0
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movzbl 0x10(%r15), %esi
testb %r12b, %r12b
je 0x15f51
testq %rsi, %rsi
je 0x15f47
andl $0x1, %esi
leaq 0x270df(%rip), %rdi     # 0x3d005
callq 0xc1a0
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movb 0x11(%r15), %al
testb %al, %al
jne 0x15f80
jmp 0x15fad
andl $0x1, %esi
leaq 0x270aa(%rip), %rdi     # 0x3d005
callq 0xc1a0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movb 0x11(%r15), %al
andb $0x1, %al
movzbl %al, %esi
leaq 0x2fc1c(%rip), %rdi     # 0x45ba8
callq 0xc1a0
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
cmpb $0x0, 0x12(%r15)
je 0x15fe3
leaq 0x2974d(%rip), %rdi     # 0x3f708
leaq 0x2825c(%rip), %rsi     # 0x3e21e
callq 0xc030
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movsbq 0x1e(%r15), %rsi
cmpq $-0x1, %rsi
je 0x16016
leaq 0x2822d(%rip), %rdi     # 0x3e222
callq 0xc1a0
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movl %r14d, %eax
orb %bpl, %al
movq (%rbx), %rdi
leaq 0x2825b(%rip), %rsi     # 0x3e281
testb $0x1, %al
je 0x16076
movq %rsp, %r12
movq %r12, %rdx
callq 0xc380
testb %bpl, %bpl
je 0x16048
movl 0x18(%r15), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x16654
testb %r14b, %r14b
je 0x16137
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x16083
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x1606f
movq %r12, 0x8(%rsp)
callq 0xc0d0
jmp 0x16051
movq %rsp, %rdx
callq 0xcc70
jmp 0x16162
movq (%r15), %rsi
testq %rsi, %rsi
je 0x160b3
leaq 0x281a2(%rip), %rdi     # 0x3e234
callq 0xc030
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movzbl 0x1c(%r15), %esi
testq %rsi, %rsi
je 0x160f2
leaq 0x28179(%rip), %rdi     # 0x3e23d
callq 0xc1a0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
cmpb $0x0, 0x1c(%r15)
je 0x160f2
movb 0x1d(%r15), %al
jmp 0x160fa
movb 0x1d(%r15), %al
testb %al, %al
je 0x16125
movzbl %al, %esi
leaq 0x28145(%rip), %rdi     # 0x3e249
callq 0xc1a0
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x28122(%rip), %rsi     # 0x3e251
movq %rsp, %rdx
callq 0xcc70
movq (%rbx), %rdi
leaq 0x28140(%rip), %rsi     # 0x3e281
callq 0xc060
jmp 0x16162
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x1615d
movq %r13, 0x8(%rsp)
callq 0xc0d0
movq (%rsp), %rdi
testq %rdi, %rdi
jne 0x16148
movq (%rbx), %rdi
leaq 0x28112(%rip), %rsi     # 0x3e287
movq 0x10(%rsp), %rdx
xorl %ecx, %ecx
callq 0xcba0
movq (%rbx), %rdi
leaq 0x280ec(%rip), %rsi     # 0x3e277
callq 0xc060
movq (%rbx), %rdi
leaq 0x28077(%rip), %rsi     # 0x3e211
callq 0xc060
movq (%rbx), %rdi
leaq 0x2802c(%rip), %rsi     # 0x3e1d5
callq 0xc060
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq