// File: /workspace/github_c_makefile_star2_O1/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 0x27865(%rip), %rsi     # 0x414ae
xorl %edx, %edx
callq 0xc350
testl %r13d, %r13d
je 0x19cca
xorl %eax, %eax
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movq %r14, 0x8(%r14)
movzwl %r13w, %esi
leaq 0x277e6(%rip), %rdi     # 0x41454
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 0x27820(%rip), %rsi     # 0x414b8
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x19cca
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x19cbe
movq %r14, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x19ca3
xorl %r13d, %r13d
leaq 0x8(%rsp), %r14
movq %r13, (%r14)
movq %r14, 0x8(%r14)
testb %r12b, %r12b
leaq 0x277e6(%rip), %rax     # 0x414c9
leaq 0x277d8(%rip), %rsi     # 0x414c2
cmoveq %rax, %rsi
leaq 0x2775f(%rip), %rdi     # 0x41454
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 0x277b3(%rip), %rsi     # 0x414d0
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x19d4f
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x19d43
movq %r14, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x19d28
testb %r15b, %r15b
je 0x19dc7
xorl %r15d, %r15d
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
leaq 0x276ec(%rip), %rdi     # 0x41454
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 0x27746(%rip), %rsi     # 0x414de
movq %r14, %rdx
callq 0xcc00
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19dc7
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x19dc0
movq %r14, 0x10(%rsp)
callq 0xc0c0
jmp 0x19da0
testb %bpl, %bpl
je 0x19e3f
xorl %r15d, %r15d
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
leaq 0x27674(%rip), %rdi     # 0x41454
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 0x276d4(%rip), %rsi     # 0x414e4
movq %r14, %rdx
callq 0xcc00
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19e3f
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x19e38
movq %r14, 0x10(%rsp)
callq 0xc0c0
jmp 0x19e18
movq (%rbx), %rdi
leaq 0x27665(%rip), %rsi     # 0x414ae
callq 0xc060
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq