// File: cqbqdd11519[P]DockerClient/rapidjson/include/rapidjson/internal/dtoa.h
// Function: rapidjson::internal::DigitGen(rapidjson::internal::DiyFp const&, rapidjson::internal::DiyFp const&, unsigned long, char*, int*, int*)
inline void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buffer, int* len, int* K) {
    static const uint32_t kPow10[] = { 1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000 };
    const DiyFp one(uint64_t(1) << -Mp.e, Mp.e);
    const DiyFp wp_w = Mp - W;
    uint32_t p1 = static_cast<uint32_t>(Mp.f >> -one.e);
    uint64_t p2 = Mp.f & (one.f - 1);
    int kappa = CountDecimalDigit32(p1); // kappa in [0, 9]
    *len = 0;

    while (kappa > 0) {
        uint32_t d = 0;
        switch (kappa) {
            case  9: d = p1 /  100000000; p1 %=  100000000; break;
            case  8: d = p1 /   10000000; p1 %=   10000000; break;
            case  7: d = p1 /    1000000; p1 %=    1000000; break;
            case  6: d = p1 /     100000; p1 %=     100000; break;
            case  5: d = p1 /      10000; p1 %=      10000; break;
            case  4: d = p1 /       1000; p1 %=       1000; break;
            case  3: d = p1 /        100; p1 %=        100; break;
            case  2: d = p1 /         10; p1 %=         10; break;
            case  1: d = p1;              p1 =           0; break;
            default:;
        }
        if (d || *len)
            buffer[(*len)++] = static_cast<char>('0' + static_cast<char>(d));
        kappa--;
        uint64_t tmp = (static_cast<uint64_t>(p1) << -one.e) + p2;
        if (tmp <= delta) {
            *K += kappa;
            GrisuRound(buffer, *len, delta, tmp, static_cast<uint64_t>(kPow10[kappa]) << -one.e, wp_w.f);
            return;
        }
    }

    // kappa = 0
    for (;;) {
        p2 *= 10;
        delta *= 10;
        char d = static_cast<char>(p2 >> -one.e);
        if (d || *len)
            buffer[(*len)++] = static_cast<char>('0' + d);
        p2 &= one.f - 1;
        kappa--;
        if (p2 < delta) {
            *K += kappa;
            int index = -kappa;
            GrisuRound(buffer, *len, delta, p2, one.f, wp_w.f * (index < 9 ? kPow10[index] : 0));
            return;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %edx
movb %dl, %cl
negb %cl
movl $0x1, %esi
shlq %cl, %rsi
leaq -0x40(%rbp), %rdi
callq 0xf260
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0xf570
movl %edx, -0x58(%rbp)
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x50(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
xorl %ecx, %ecx
subl -0x38(%rbp), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
subq $0x1, %rcx
andq %rcx, %rax
movq %rax, -0x70(%rbp)
movl -0x64(%rbp), %edi
callq 0xe830
movl %eax, -0x74(%rbp)
movq -0x28(%rbp), %rax
movl $0x0, (%rax)
cmpl $0x0, -0x74(%rbp)
jle 0x168f0
movl $0x0, -0x78(%rbp)
movl -0x74(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x90(%rbp)
subl $0x8, %eax
ja 0x1683a
movq -0x90(%rbp), %rax
leaq 0x7932(%rip), %rcx      # 0x1e048
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x64(%rbp), %eax
movl $0x5f5e100, %ecx        # imm = 0x5F5E100
xorl %edx, %edx
divl %ecx
movl %eax, -0x78(%rbp)
movl -0x64(%rbp), %eax
movl $0x5f5e100, %ecx        # imm = 0x5F5E100
xorl %edx, %edx
divl %ecx
movl %edx, -0x64(%rbp)
jmp 0x1683c
movl -0x64(%rbp), %eax
movl $0x989680, %ecx         # imm = 0x989680
xorl %edx, %edx
divl %ecx
movl %eax, -0x78(%rbp)
movl -0x64(%rbp), %eax
movl $0x989680, %ecx         # imm = 0x989680
xorl %edx, %edx
divl %ecx
movl %edx, -0x64(%rbp)
jmp 0x1683c
movl -0x64(%rbp), %eax
movl $0xf4240, %ecx          # imm = 0xF4240
xorl %edx, %edx
divl %ecx
movl %eax, -0x78(%rbp)
movl -0x64(%rbp), %eax
movl $0xf4240, %ecx          # imm = 0xF4240
xorl %edx, %edx
divl %ecx
movl %edx, -0x64(%rbp)
jmp 0x1683c
movl -0x64(%rbp), %eax
movl $0x186a0, %ecx          # imm = 0x186A0
xorl %edx, %edx
divl %ecx
movl %eax, -0x78(%rbp)
movl -0x64(%rbp), %eax
movl $0x186a0, %ecx          # imm = 0x186A0
xorl %edx, %edx
divl %ecx
movl %edx, -0x64(%rbp)
jmp 0x1683c
movl -0x64(%rbp), %eax
movl $0x2710, %ecx           # imm = 0x2710
xorl %edx, %edx
divl %ecx
movl %eax, -0x78(%rbp)
movl -0x64(%rbp), %eax
movl $0x2710, %ecx           # imm = 0x2710
xorl %edx, %edx
divl %ecx
movl %edx, -0x64(%rbp)
jmp 0x1683c
movl -0x64(%rbp), %eax
movl $0x3e8, %ecx            # imm = 0x3E8
xorl %edx, %edx
divl %ecx
movl %eax, -0x78(%rbp)
movl -0x64(%rbp), %eax
movl $0x3e8, %ecx            # imm = 0x3E8
xorl %edx, %edx
divl %ecx
movl %edx, -0x64(%rbp)
jmp 0x1683c
movl -0x64(%rbp), %eax
movl $0x64, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0x78(%rbp)
movl -0x64(%rbp), %eax
movl $0x64, %ecx
xorl %edx, %edx
divl %ecx
movl %edx, -0x64(%rbp)
jmp 0x1683c
movl -0x64(%rbp), %eax
movl $0xa, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0x78(%rbp)
movl -0x64(%rbp), %eax
movl $0xa, %ecx
xorl %edx, %edx
divl %ecx
movl %edx, -0x64(%rbp)
jmp 0x1683c
movl -0x64(%rbp), %eax
movl %eax, -0x78(%rbp)
movl $0x0, -0x64(%rbp)
jmp 0x1683c
jmp 0x1683c
cmpl $0x0, -0x78(%rbp)
jne 0x1684b
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x1686d
movl -0x78(%rbp), %eax
movsbl %al, %eax
addl $0x30, %eax
movb %al, %dl
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rsi
movl (%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, (%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x74(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x74(%rbp)
movl -0x64(%rbp), %eax
xorl %ecx, %ecx
subl -0x38(%rbp), %ecx
movl %ecx, %ecx
shlq %cl, %rax
addq -0x70(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
cmpq -0x18(%rbp), %rax
ja 0x168eb
movl -0x74(%rbp), %ecx
movq -0x30(%rbp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
movq -0x18(%rbp), %rdx
movq -0x80(%rbp), %rax
movq %rax, -0x98(%rbp)
movslq -0x74(%rbp), %rcx
movq 0x106bc(%rip), %rax     # 0x26f80
movl (%rax,%rcx,4), %eax
movl %eax, %r8d
xorl %eax, %eax
subl -0x38(%rbp), %eax
movl %eax, %eax
movl %eax, %ecx
shlq %cl, %r8
movq -0x98(%rbp), %rcx
movq -0x50(%rbp), %r9
callq 0xebf0
jmp 0x16a3a
jmp 0x166e0
jmp 0x168f2
imulq $0xa, -0x70(%rbp), %rax
movq %rax, -0x70(%rbp)
imulq $0xa, -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x70(%rbp), %rax
xorl %ecx, %ecx
subl -0x38(%rbp), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movb %al, -0x81(%rbp)
cmpb $0x0, -0x81(%rbp)
jne 0x1692a
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x1694d
movsbl -0x81(%rbp), %eax
addl $0x30, %eax
movb %al, %dl
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rsi
movl (%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, (%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movq -0x40(%rbp), %rax
subq $0x1, %rax
andq -0x70(%rbp), %rax
movq %rax, -0x70(%rbp)
movl -0x74(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x74(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x16a35
movl -0x74(%rbp), %ecx
movq -0x30(%rbp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
xorl %eax, %eax
subl -0x74(%rbp), %eax
movl %eax, -0x88(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xbc(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpl $0x9, -0x88(%rbp)
jge 0x169ef
movslq -0x88(%rbp), %rcx
movq 0x1059c(%rip), %rax     # 0x26f80
movl (%rax,%rcx,4), %eax
movl %eax, -0xcc(%rbp)
jmp 0x169f9
xorl %eax, %eax
movl %eax, -0xcc(%rbp)
jmp 0x169f9
movq -0xa8(%rbp), %r8
movq -0xb0(%rbp), %rcx
movq -0xb8(%rbp), %rdx
movl -0xbc(%rbp), %esi
movq -0xc8(%rbp), %rdi
movq -0xa0(%rbp), %r9
movl -0xcc(%rbp), %eax
movl %eax, %eax
imulq %rax, %r9
callq 0xebf0
jmp 0x16a3a
jmp 0x168f2
addq $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)