// File: /workspace/github_cpp_makefile_star2_O1/cqbqdd11519[P]DockerClient/rapidjson/include/rapidjson/internal/itoa.h
// Function: rapidjson::internal::u32toa(unsigned int, char*)
inline char* u32toa(uint32_t value, char* buffer) {
    RAPIDJSON_ASSERT(buffer != 0);

    const char* cDigitsLut = GetDigitsLut();

    if (value < 10000) {
        const uint32_t d1 = (value / 100) << 1;
        const uint32_t d2 = (value % 100) << 1;

        if (value >= 1000)
            *buffer++ = cDigitsLut[d1];
        if (value >= 100)
            *buffer++ = cDigitsLut[d1 + 1];
        if (value >= 10)
            *buffer++ = cDigitsLut[d2];
        *buffer++ = cDigitsLut[d2 + 1];
    }
    else if (value < 100000000) {
        // value = bbbbcccc
        const uint32_t b = value / 10000;
        const uint32_t c = value % 10000;

        const uint32_t d1 = (b / 100) << 1;
        const uint32_t d2 = (b % 100) << 1;

        const uint32_t d3 = (c / 100) << 1;
        const uint32_t d4 = (c % 100) << 1;

        if (value >= 10000000)
            *buffer++ = cDigitsLut[d1];
        if (value >= 1000000)
            *buffer++ = cDigitsLut[d1 + 1];
        if (value >= 100000)
            *buffer++ = cDigitsLut[d2];
        *buffer++ = cDigitsLut[d2 + 1];

        *buffer++ = cDigitsLut[d3];
        *buffer++ = cDigitsLut[d3 + 1];
        *buffer++ = cDigitsLut[d4];
        *buffer++ = cDigitsLut[d4 + 1];
    }
    else {
        // value = aabbbbcccc in decimal

        const uint32_t a = value / 100000000; // 1 to 42
        value %= 100000000;

        if (a >= 10) {
            const unsigned i = a << 1;
            *buffer++ = cDigitsLut[i];
            *buffer++ = cDigitsLut[i + 1];
        }
        else
            *buffer++ = static_cast<char>('0' + static_cast<char>(a));

        const uint32_t b = value / 10000; // 0 to 9999
        const uint32_t c = value % 10000; // 0 to 9999

        const uint32_t d1 = (b / 100) << 1;
        const uint32_t d2 = (b % 100) << 1;

        const uint32_t d3 = (c / 100) << 1;
        const uint32_t d4 = (c % 100) << 1;

        *buffer++ = cDigitsLut[d1];
        *buffer++ = cDigitsLut[d1 + 1];
        *buffer++ = cDigitsLut[d2];
        *buffer++ = cDigitsLut[d2 + 1];
        *buffer++ = cDigitsLut[d3];
        *buffer++ = cDigitsLut[d3 + 1];
        *buffer++ = cDigitsLut[d4];
        *buffer++ = cDigitsLut[d4 + 1];
    }
    return buffer;
}

// Assembly:
testq %rsi, %rsi
je 0xcbee
cmpl $0x270f, %edi           # imm = 0x270F
ja 0xca53
movl %edi, %eax
imulq $0x51eb851f, %rax, %rcx # imm = 0x51EB851F
shrq $0x25, %rcx
imull $0x64, %ecx, %edx
addl %ecx, %ecx
cmpl $0x3e8, %edi            # imm = 0x3E8
jb 0xca0b
movq 0xb55d(%rip), %rax      # 0x17f60
movb (%rax,%rcx), %al
movb %al, (%rsi)
incq %rsi
movl %edi, %eax
subl %edx, %eax
cmpl $0x64, %edi
jb 0xca26
movl %ecx, %ecx
movq 0xb543(%rip), %rdx      # 0x17f60
movb 0x1(%rdx,%rcx), %cl
movb %cl, (%rsi)
incq %rsi
addl %eax, %eax
cmpl $0xa, %edi
jb 0xca3c
movq 0xb52c(%rip), %rcx      # 0x17f60
movb (%rcx,%rax), %cl
movb %cl, (%rsi)
incq %rsi
movl %eax, %eax
movq 0xb51b(%rip), %rcx      # 0x17f60
movb 0x1(%rcx,%rax), %al
movb %al, (%rsi)
incq %rsi
jmp 0xcbea
cmpl $0x5f5e0ff, %edi        # imm = 0x5F5E0FF
ja 0xcb38
movl %edi, %edx
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
imull $0x2710, %ecx, %r8d     # imm = 0x2710
movl %edi, %eax
subl %r8d, %eax
imulq $0x431bde83, %rdx, %r8  # imm = 0x431BDE83
shrq $0x31, %r8
andl $-0x2, %r8d
imulq $0x28f5c29, %rcx, %rdx  # imm = 0x28F5C29
shrq $0x20, %rdx
imull $0x64, %edx, %r9d
imulq $0x28f5c29, %rax, %rdx  # imm = 0x28F5C29
shrq $0x20, %rdx
imull $0x64, %edx, %r10d
subl %r10d, %eax
cmpl $0x989680, %edi         # imm = 0x989680
jb 0xcac3
movq 0xb4a7(%rip), %r10      # 0x17f60
movb (%r10,%r8), %r10b
movb %r10b, (%rsi)
incq %rsi
subl %r9d, %ecx
addl %edx, %edx
addl %eax, %eax
cmpl $0xf4240, %edi          # imm = 0xF4240
jb 0xcae7
movl %r8d, %r8d
movq 0xb484(%rip), %r9       # 0x17f60
movb 0x1(%r9,%r8), %r8b
movb %r8b, (%rsi)
incq %rsi
addl %ecx, %ecx
cmpl $0x186a0, %edi          # imm = 0x186A0
jb 0xcb02
movq 0xb468(%rip), %rdi      # 0x17f60
movb (%rdi,%rcx), %dil
movb %dil, (%rsi)
incq %rsi
movl %ecx, %ecx
movq 0xb455(%rip), %rdi      # 0x17f60
movb 0x1(%rdi,%rcx), %cl
movb %cl, (%rsi)
movb (%rdi,%rdx), %cl
movb %cl, 0x1(%rsi)
movl %edx, %ecx
movb 0x1(%rdi,%rcx), %cl
movb %cl, 0x2(%rsi)
movb (%rdi,%rax), %cl
movb %cl, 0x3(%rsi)
movl %eax, %eax
movb 0x1(%rdi,%rax), %al
movb %al, 0x4(%rsi)
addq $0x5, %rsi
jmp 0xcbea
movl %edi, %eax
imulq $0x55e63b89, %rax, %rcx # imm = 0x55E63B89
shrq $0x39, %rcx
imull $0x5f5e100, %ecx, %edx  # imm = 0x5F5E100
movl %edi, %eax
subl %edx, %eax
cmpl $0x3b9aca00, %edi       # imm = 0x3B9ACA00
jb 0xcb6d
movl %ecx, %ecx
movq 0xb400(%rip), %rdx      # 0x17f60
movzwl (%rdx,%rcx,2), %ecx
movw %cx, (%rsi)
addq $0x2, %rsi
jmp 0xcb75
orb $0x30, %cl
movb %cl, (%rsi)
incq %rsi
movl %eax, %edx
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
imull $0x2710, %ecx, %edi     # imm = 0x2710
subl %edi, %eax
imulq $0x431bde83, %rdx, %rdx # imm = 0x431BDE83
shrq $0x31, %rdx
andl $-0x2, %edx
imulq $0x28f5c29, %rcx, %rdi  # imm = 0x28F5C29
shrq $0x20, %rdi
imull $0x64, %edi, %edi
subl %edi, %ecx
imulq $0x28f5c29, %rax, %rdi  # imm = 0x28F5C29
shrq $0x20, %rdi
imull $0x64, %edi, %r8d
subl %r8d, %eax
movq 0xb39d(%rip), %r8       # 0x17f60
movzwl (%r8,%rdx), %edx
movw %dx, (%rsi)
movzwl (%r8,%rcx,2), %ecx
movw %cx, 0x2(%rsi)
movzwl (%r8,%rdi,2), %ecx
movw %cx, 0x4(%rsi)
movzwl (%r8,%rax,2), %eax
movw %ax, 0x6(%rsi)
addq $0x8, %rsi
movq %rsi, %rax
retq
pushq %rbp
movq %rsp, %rbp
leaq 0x4471(%rip), %rdi      # 0x1106a
leaq 0x4476(%rip), %rsi      # 0x11076
leaq 0x44ce(%rip), %rcx      # 0x110d5
movl $0x28, %edx
callq 0x72c0