// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_plot_area
STATIC void
_chart_write_plot_area(lxw_chart *self)
{
    lxw_xml_start_tag(self->file, "c:plotArea", NULL);

    /* Write the c:layout element. */
    _chart_write_layout(self);

    /* Write subclass chart type elements for primary and secondary axes. */
    self->write_chart_type(self);

    /* Reverse the opposite axis position if crossing position is "max". */
    _chart_adjust_max_crossing(self);

    /* Write the c:catAx element. */
    _chart_write_cat_axis(self);

    /* Write the c:valAx element. */
    _chart_write_val_axis(self);

    /* Write the c:dTable element. */
    _chart_write_d_table(self);

    /* Write the c:spPr element for the plotarea formatting. */
    _chart_write_sp_pr(self, self->plotarea_line, self->plotarea_fill,
                       self->plotarea_pattern);

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

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x2a98c(%rip), %rsi     # 0x4149b
xorl %edx, %edx
callq 0xc350
movq (%rbx), %rdi
leaq 0x2a6b4(%rip), %rsi     # 0x411d4
xorl %edx, %edx
callq 0xcc00
movq %rbx, %rdi
callq *0x10(%rbx)
movq 0x20(%rbx), %rax
cmpb $0x0, 0xfa(%rax)
je 0x16b45
movq 0x28(%rbx), %rcx
xorb $0x1, 0xab(%rcx)
movq 0x28(%rbx), %rcx
cmpb $0x0, 0xfa(%rcx)
je 0x16b59
xorb $0x1, 0xab(%rax)
movq (%rbx), %rdi
leaq 0x2a943(%rip), %rsi     # 0x414a6
xorl %edx, %edx
callq 0xc350
movl 0x84(%rbx), %esi
movq %rbx, %rdi
callq 0x199ed
movq 0x20(%rbx), %rax
movzbl 0xb0(%rax), %esi
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x19c17
movq 0x20(%rbx), %rax
cmpb $0x0, 0xaf(%rax)
je 0x16bad
movq %rbx, %rdi
callq 0x189b1
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rcx
movzbl 0xab(%rax), %esi
movzbl 0xb0(%rcx), %edx
movq %rbx, %rdi
callq 0x19e5d
movq 0x20(%rbx), %rsi
movq %rbx, %rdi
callq 0x19f0a
movq 0x20(%rbx), %rsi
movq %rbx, %rdi
callq 0x19f6f
movb 0x98(%rbx), %al
movq 0x20(%rbx), %rsi
movb %al, 0x19(%rsi)
movq %rbx, %rdi
callq 0x19fda
movq 0x20(%rbx), %r14
movq 0x50(%r14), %r15
testq %r15, %r15
jne 0x16c09
movq 0x58(%r14), %r15
movq 0x58(%r14), %rsi
movq %r15, %rdi
callq 0xc800
testl %eax, %eax
jne 0x171a4
cmpb $0x0, 0x96(%rbx)
jne 0x171a4
movq 0x20(%rbx), %rsi
movq %rbx, %rdi
callq 0x1a0b8
movq 0x20(%rbx), %rsi
movq %rbx, %rdi
callq 0x1a16b
movq 0x20(%rbx), %rsi
movq %rbx, %rdi
callq 0x1a21e
movq 0x20(%rbx), %rax
movq 0x90(%rax), %rsi
movq 0x98(%rax), %rdx
movq 0xa0(%rax), %rcx
movq %rbx, %rdi
callq 0x14fbe
movq 0x20(%rbx), %rax
movq 0x88(%rax), %rsi
movq %rbx, %rdi
callq 0x1a2d0
movl 0x88(%rbx), %esi
movq %rbx, %rdi
callq 0x1a363
movq 0x28(%rbx), %rsi
cmpb $0x0, 0xf8(%rsi)
je 0x16cb3
cmpb $0x0, 0xf9(%rsi)
jne 0x16cb3
cmpb $0x0, 0xfa(%rsi)
je 0x17251
movq %rbx, %rdi
callq 0x1a3e7
xorl %r15d, %r15d
movq %rsp, %r14
movq %r15, (%r14)
movq %r14, 0x8(%r14)
leaq 0x2a785(%rip), %rdi     # 0x41454
leaq 0x2ea62(%rip), %rsi     # 0x45738
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
movq (%rbx), %rdi
leaq 0x2a87e(%rip), %rsi     # 0x4157c
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x16d2e
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x16d23
movq %r14, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x16d09
movq 0x20(%rbx), %rax
xorl %r15d, %r15d
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
movb 0xae(%rax), %al
cmpb $0x2, %al
leaq 0x2a534(%rip), %rcx     # 0x41281
leaq 0x2a58c(%rip), %rdx     # 0x412e0
cmoveq %rcx, %rdx
cmpb $0x1, %al
leaq 0x2a6be(%rip), %rsi     # 0x4141f
cmovneq %rdx, %rsi
leaq 0x2a6e8(%rip), %rdi     # 0x41454
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x2a7ed(%rip), %rsi     # 0x41583
movq %r14, %rdx
callq 0xcc00
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x16dc3
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x16dbc
movq %r14, 0x8(%rsp)
callq 0xc0c0
jmp 0x16d9e
xorl %r15d, %r15d
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
leaq 0x2a67e(%rip), %rdi     # 0x41454
leaq 0x2a7b0(%rip), %rsi     # 0x4158d
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x2a78a(%rip), %rsi     # 0x41591
movq %r14, %rdx
callq 0xcc00
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x16e34
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x16e2d
movq %r14, 0x8(%rsp)
callq 0xc0c0
jmp 0x16e0f
movq 0x20(%rbx), %rax
movzwl 0xf0(%rax), %esi
testq %rsi, %rsi
je 0x16eae
xorl %r15d, %r15d
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
leaq 0x2a5fd(%rip), %rdi     # 0x41454
callq 0xc180
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x2a71c(%rip), %rsi     # 0x4159d
movq %r14, %rdx
callq 0xcc00
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x16eae
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x16ea7
movq %r14, 0x8(%rsp)
callq 0xc0c0
jmp 0x16e89
movq 0x20(%rbx), %rax
movzwl 0xf2(%rax), %esi
testq %rsi, %rsi
je 0x16f28
xorl %r15d, %r15d
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
leaq 0x2a583(%rip), %rdi     # 0x41454
callq 0xc180
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x2a6b0(%rip), %rsi     # 0x415ab
movq %r14, %rdx
callq 0xcc00
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x16f28
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x16f21
movq %r14, 0x8(%rsp)
callq 0xc0c0
jmp 0x16f03
movq (%rbx), %rdi
leaq 0x2a574(%rip), %rsi     # 0x414a6
callq 0xc060
movq %rbx, %rdi
callq 0x19a71
cmpb $0x0, 0x130(%rbx)
je 0x1716a
movq (%rbx), %rdi
leaq 0x2a734(%rip), %rsi     # 0x4168a
xorl %edx, %edx
callq 0xc350
cmpb $0x0, 0x132(%rbx)
je 0x16fd7
xorl %r15d, %r15d
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
leaq 0x2a4db(%rip), %rdi     # 0x41454
leaq 0x2e7b8(%rip), %rsi     # 0x45738
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x2a6e9(%rip), %rsi     # 0x41693
movq %r14, %rdx
callq 0xcc00
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x16fd7
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x16fd0
movq %r14, 0x8(%rsp)
callq 0xc0c0
jmp 0x16fb2
cmpb $0x0, 0x131(%rbx)
je 0x17051
xorl %r15d, %r15d
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
leaq 0x2a461(%rip), %rdi     # 0x41454
leaq 0x2e73e(%rip), %rsi     # 0x45738
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x2a680(%rip), %rsi     # 0x416a4
movq %r14, %rdx
callq 0xcc00
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x17051
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x1704a
movq %r14, 0x8(%rsp)
callq 0xc0c0
jmp 0x1702c
cmpb $0x0, 0x133(%rbx)
je 0x170cb
xorl %r15d, %r15d
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
leaq 0x2a3e7(%rip), %rdi     # 0x41454
leaq 0x2e6c4(%rip), %rsi     # 0x45738
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x2a617(%rip), %rsi     # 0x416b5
movq %r14, %rdx
callq 0xcc00
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x170cb
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x170c4
movq %r14, 0x8(%rsp)
callq 0xc0c0
jmp 0x170a6
cmpb $0x0, 0x134(%rbx)
je 0x17145
xorl %r15d, %r15d
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
leaq 0x2a36d(%rip), %rdi     # 0x41454
leaq 0x2e64a(%rip), %rsi     # 0x45738
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x2a5ab(%rip), %rsi     # 0x416c3
movq %r14, %rdx
callq 0xcc00
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x17145
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x1713e
movq %r14, 0x8(%rsp)
callq 0xc0c0
jmp 0x17120
movq 0x138(%rbx), %rdx
testq %rdx, %rdx
je 0x1715b
movq %rbx, %rdi
xorl %esi, %esi
callq 0x186a6
movq (%rbx), %rdi
leaq 0x2a525(%rip), %rsi     # 0x4168a
callq 0xc060
movq 0xf0(%rbx), %rsi
movq 0xf8(%rbx), %rdx
movq 0x100(%rbx), %rcx
movq %rbx, %rdi
callq 0x14fbe
movq (%rbx), %rdi
leaq 0x2a30a(%rip), %rsi     # 0x4149b
callq 0xc060
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
testl %eax, %eax
sete %al
cmpb $0x0, 0x60(%r14)
setne %cl
orb %al, %cl
movzbl %cl, %r12d
xorl %r13d, %r13d
movq %rsp, %r14
movq %r13, (%r14)
movq %r14, 0x8(%r14)
leaq 0x2a2a9(%rip), %rdi     # 0x41474
movq %r15, %rsi
callq 0xc030
movl $0x1040, %r15d          # imm = 0x1040
leaq (%rax,%r15), %rcx
movq %r13, 0x1040(%rax)
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
leaq 0x2a0a4(%rip), %rdi     # 0x4129a
movq %r12, %rsi
callq 0xc180
addq %rax, %r15
movq %r13, 0x1040(%rax)
movq 0x8(%r14), %rcx
movq %rax, (%rcx)
movq %r15, 0x8(%r14)
movq (%rbx), %rdi
leaq 0x2a08a(%rip), %rsi     # 0x412a7
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x16c2a
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x17246
movq %r14, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x17228
movq %rbx, %rdi
callq 0x1a49e
jmp 0x16cbb