// File: /workspace/github_cpp_makefile_star2_O1/king1600[P]cordpp/./include/json.h
// Function: nlohmann::detail::serializer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::dump_float(double)
void dump_float(number_float_t x)
    {
        // NaN / inf
        if (not std::isfinite(x) or std::isnan(x))
        {
            o->write_characters("null", 4);
            return;
        }

        // special case for 0.0 and -0.0
        if (x == 0)
        {
            if (std::signbit(x))
            {
                o->write_characters("-0.0", 4);
            }
            else
            {
                o->write_characters("0.0", 3);
            }
            return;
        }

        // get number of digits for a text -> float -> text round-trip
        static constexpr auto d = std::numeric_limits<number_float_t>::digits10;

        // the actual conversion
        std::ptrdiff_t len = snprintf(number_buffer.data(), number_buffer.size(), "%.*g", d, x);

        // negative value indicates an error
        assert(len > 0);
        // check if buffer was large enough
        assert(static_cast<std::size_t>(len) < number_buffer.size());

        // erase thousands separator
        if (thousands_sep != '\0')
        {
            const auto end = std::remove(number_buffer.begin(),
                                         number_buffer.begin() + len, thousands_sep);
            std::fill(end, number_buffer.end(), '\0');
            assert((end - number_buffer.begin()) <= len);
            len = (end - number_buffer.begin());
        }

        // convert decimal point to '.'
        if (decimal_point != '\0' and decimal_point != '.')
        {
            const auto dec_pos = std::find(number_buffer.begin(), number_buffer.end(), decimal_point);
            if (dec_pos != number_buffer.end())
            {
                *dec_pos = '.';
            }
        }

        o->write_characters(number_buffer.data(), static_cast<std::size_t>(len));

        // determine if need to append ".0"
        const bool value_is_int_like =
            std::none_of(number_buffer.begin(), number_buffer.begin() + len + 1,
                         [](char c)
        {
            return (c == '.' or c == 'e');
        });

        if (value_is_int_like)
        {
            o->write_characters(".0", 2);
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %xmm0, %rcx
movq %rcx, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rdx # imm = 0x7FF0000000000000
cmpq %rdx, %rax
jl 0x16710
movq (%rbx), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
leaq 0x25fb0(%rip), %rsi     # 0x3c6b6
movl $0x4, %edx
jmp 0x16829
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x16740
jp 0x16740
movq (%rbx), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
testq %rcx, %rcx
js 0x16807
leaq 0x27403(%rip), %rsi     # 0x3db39
movl $0x3, %edx
jmp 0x16829
leaq 0x10(%rbx), %r14
leaq 0x273f2(%rip), %rdx     # 0x3db3d
movl $0x40, %esi
movq %r14, %rdi
movl $0xf, %ecx
movb $0x1, %al
callq 0xa970
testl %eax, %eax
jle 0x16836
cmpl $0x40, %eax
jae 0x16855
movslq %eax, %r15
cmpb $0x0, 0x58(%rbx)
je 0x167ae
leaq 0x58(%rbx), %rdx
leaq (%r14,%r15), %rsi
movq %r14, %rdi
callq 0x16b07
movq %rax, %r12
leaq 0x50(%rbx), %rdx
subq %rax, %rdx
je 0x1679f
movq %r12, %rdi
xorl %esi, %esi
callq 0xa350
subq %r14, %r12
cmpq %r15, %r12
movq %r12, %r15
jg 0x16874
movzbl 0x59(%rbx), %eax
testl %eax, %eax
je 0x167d6
cmpl $0x2e, %eax
je 0x167d6
leaq 0x59(%rbx), %rdx
leaq 0x50(%rbx), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x16b49
cmpq %r12, %rax
je 0x167d6
movb $0x2e, (%rax)
movq (%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq %r15, %rdx
callq *0x8(%rax)
addq %r14, %r15
incq %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x16bd8
cmpq %r15, %rax
je 0x16813
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2732a(%rip), %rsi     # 0x3db38
jmp 0x16706
movq (%rbx), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
leaq 0x27316(%rip), %rsi     # 0x3db3a
movl $0x2, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
leaq 0x27305(%rip), %rdi     # 0x3db42
leaq 0x25ad8(%rip), %rsi     # 0x3c31c
leaq 0x272ff(%rip), %rcx     # 0x3db4a
movl $0x19e5, %edx           # imm = 0x19E5
callq 0xa3c0
leaq 0x2736d(%rip), %rdi     # 0x3dbc9
leaq 0x25ab9(%rip), %rsi     # 0x3c31c
leaq 0x272e0(%rip), %rcx     # 0x3db4a
movl $0x19e7, %edx           # imm = 0x19E7
callq 0xa3c0
leaq 0x27383(%rip), %rdi     # 0x3dbfe
leaq 0x25a9a(%rip), %rsi     # 0x3c31c
leaq 0x272c1(%rip), %rcx     # 0x3db4a
movl $0x19ef, %edx           # imm = 0x19EF
callq 0xa3c0
nop