// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_err_bars
STATIC void
_chart_write_err_bars(lxw_chart *self, lxw_series_error_bars *error_bars)
{
    if (!error_bars->is_set)
        return;

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

    /* Write the c:errDir element, except for Column/Bar charts. */
    if (error_bars->chart_group != LXW_CHART_BAR
        && error_bars->chart_group != LXW_CHART_COLUMN) {

        _chart_write_err_dir(self, error_bars->is_x);
    }

    /* Write the c:errBarType element. */
    _chart_write_err_bar_type(self, error_bars->direction);

    /* Write the c:errValType element. */
    _chart_write_err_val_type(self, error_bars->type);

    /* Write the c:noEndCap element. */
    if (error_bars->endcap == LXW_CHART_ERROR_BAR_NO_CAP)
        _chart_write_no_end_cap(self);

    /* Write the c:val element. */
    if (error_bars->has_value)
        _chart_write_error_val(self, error_bars->value);

    /* Write the c:spPr element. */
    _chart_write_sp_pr(self, error_bars->line, NULL, NULL);

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

// Assembly:
cmpb $0x0, 0x4(%rsi)
je 0x197b7
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x27e9f(%rip), %rsi     # 0x413ed
xorl %edx, %edx
callq 0xc350
movzbl 0x6(%r14), %eax
cmpl $0x4, %eax
je 0x19568
cmpl $0x7, %eax
jne 0x197b8
movb 0x1(%r14), %al
xorl %r12d, %r12d
leaq 0x8(%rsp), %r15
movq %r12, (%r15)
movq %r15, 0x8(%r15)
cmpb $0x2, %al
leaq 0x27e7c(%rip), %rcx     # 0x41400
leaq 0x27e7b(%rip), %rdx     # 0x41406
cmoveq %rcx, %rdx
cmpb $0x1, %al
leaq 0x27bf1(%rip), %rsi     # 0x41189
cmovneq %rdx, %rsi
leaq 0x27eb1(%rip), %rdi     # 0x41454
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r12, 0x1040(%rax)
movq 0x8(%r15), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r15)
movq (%rbx), %rdi
leaq 0x27e40(%rip), %rsi     # 0x4140b
movq %r15, %rdx
callq 0xcc00
movq (%r15), %rdi
testq %rdi, %rdi
je 0x195fd
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x195f1
movq %r15, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x195d6
movb (%r14), %al
movq $0x0, 0x8(%rsp)
movq %r15, 0x10(%rsp)
decb %al
cmpb $0x2, %al
ja 0x19627
movzbl %al, %eax
leaq 0x26e52(%rip), %rcx     # 0x40470
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x1962e
leaq 0x27e05(%rip), %rsi     # 0x41433
leaq 0x27e1f(%rip), %rdi     # 0x41454
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
leaq 0x8(%rsp), %r15
movq 0x8(%r15), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r15)
movq (%rbx), %rdi
leaq 0x27dd4(%rip), %rsi     # 0x4143a
movq %r15, %rdx
callq 0xcc00
movq (%r15), %rdi
testq %rdi, %rdi
je 0x19698
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x1968c
movq %r15, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x19671
cmpb $0x1, 0x2(%r14)
jne 0x19713
xorl %r12d, %r12d
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
leaq 0x27da1(%rip), %rdi     # 0x41454
leaq 0x2c07e(%rip), %rsi     # 0x45738
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r12, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%rbx), %rdi
leaq 0x27d63(%rip), %rsi     # 0x41447
movq %r15, %rdx
callq 0xcc00
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19713
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x1970c
movq %r15, 0x10(%rsp)
callq 0xc0c0
jmp 0x196ec
cmpb $0x0, 0x3(%r14)
je 0x1978d
movsd 0x8(%r14), %xmm0
xorl %r12d, %r12d
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
leaq 0x27d20(%rip), %rdi     # 0x41454
callq 0xcc80
leaq 0x1040(%rax), %rcx
movq %r12, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%rbx), %rdi
leaq 0x27cf4(%rip), %rsi     # 0x41452
movq %r15, %rdx
callq 0xcc00
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1978d
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x19786
movq %r15, 0x10(%rsp)
callq 0xc0c0
jmp 0x19766
movq 0x10(%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x14fbe
movq (%rbx), %rdi
leaq 0x27c46(%rip), %rsi     # 0x413ed
callq 0xc060
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %r12d, %r12d
cmpb $0x0, 0x5(%r14)
leaq 0x8(%rsp), %r15
movq %r12, (%r15)
movq %r15, 0x8(%r15)
leaq 0x28d77(%rip), %rax     # 0x4254a
leaq 0x2fe6f(%rip), %rsi     # 0x49649
cmoveq %rax, %rsi
leaq 0x27c6f(%rip), %rdi     # 0x41454
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r12, 0x1040(%rax)
movq 0x8(%r15), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r15)
movq (%rbx), %rdi
leaq 0x27bea(%rip), %rsi     # 0x413f7
movq %r15, %rdx
callq 0xcc00
movq (%r15), %rdi
testq %rdi, %rdi
je 0x19568
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x19837
movq %r15, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x19818