// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_scaling
STATIC void
_chart_write_scaling(lxw_chart *self, uint8_t reverse,
                     uint8_t has_min, double min,
                     uint8_t has_max, double max, uint16_t log_base)
{
    lxw_xml_start_tag(self->file, "c:scaling", NULL);

    /* Write the c:logBase element. */
    _chart_write_log_base(self, log_base);

    /* Write the c:orientation element. */
    _chart_write_orientation(self, reverse);

    if (has_max) {
        /* Write the c:max element. */
        _chart_write_max(self, max);
    }

    if (has_min) {
        /* Write the c:min element. */
        _chart_write_min(self, min);
    }

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %r13d
movsd %xmm1, 0x18(%rsp)
movl %ecx, %r15d
movsd %xmm0, 0x20(%rsp)
movl %edx, %ebp
movl %esi, %r12d
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x275b5(%rip), %rsi     # 0x414a6
xorl %edx, %edx
callq 0xc350
testl %r13d, %r13d
je 0x19f72
xorl %eax, %eax
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movq %r14, 0x8(%r14)
movzwl %r13w, %esi
leaq 0x27536(%rip), %rdi     # 0x4144c
callq 0xc180
leaq 0x1040(%rax), %rcx
xorl %edx, %edx
movq %rdx, 0x1040(%rax)
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
movq (%rbx), %rdi
leaq 0x27570(%rip), %rsi     # 0x414b0
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x19f72
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x19f66
movq %r14, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x19f4b
xorl %r13d, %r13d
leaq 0x8(%rsp), %r14
movq %r13, (%r14)
movq %r14, 0x8(%r14)
testb %r12b, %r12b
leaq 0x27536(%rip), %rax     # 0x414c1
leaq 0x27528(%rip), %rsi     # 0x414ba
cmoveq %rax, %rsi
leaq 0x274af(%rip), %rdi     # 0x4144c
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r13, 0x1040(%rax)
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
movq (%rbx), %rdi
leaq 0x27503(%rip), %rsi     # 0x414c8
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x19ff7
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x19feb
movq %r14, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x19fd0
testb %r15b, %r15b
je 0x1a06f
xorl %r15d, %r15d
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
leaq 0x2743c(%rip), %rdi     # 0x4144c
movsd 0x18(%rsp), %xmm0
callq 0xcc80
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%rbx), %rdi
leaq 0x27496(%rip), %rsi     # 0x414d6
movq %r14, %rdx
callq 0xcc00
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1a06f
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x1a068
movq %r14, 0x10(%rsp)
callq 0xc0c0
jmp 0x1a048
testb %bpl, %bpl
je 0x1a0e7
xorl %r15d, %r15d
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
leaq 0x273c4(%rip), %rdi     # 0x4144c
movsd 0x20(%rsp), %xmm0
callq 0xcc80
leaq 0x1040(%rax), %rcx
movq %r15, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%rbx), %rdi
leaq 0x27424(%rip), %rsi     # 0x414dc
movq %r14, %rdx
callq 0xcc00
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1a0e7
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x1a0e0
movq %r14, 0x10(%rsp)
callq 0xc0c0
jmp 0x1a0c0
movq (%rbx), %rdi
leaq 0x273b5(%rip), %rsi     # 0x414a6
callq 0xc060
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq