//
// fmt::FormatInt::FormatDecimal from 0x180018820 to 0x1800188c9 (169 bytes)
//
// 10 xrefs:
// > fmt::FormatInt::FormatInt @ 0x18001737a
// > fmt::FormatInt::FormatInt @ 0x180017392
// > fmt::FormatInt::FormatInt @ 0x1800173bb
// > fmt::FormatInt::FormatInt @ 0x1800173f0
// > fmt::FormatInt::FormatInt @ 0x180017429
// > fmt::FormatInt::FormatSigned @ 0x1800188f0
// > ??> @ 0x1801339a8
// > ??> @ 0x1801339b8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae860
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char *__fastcall fmt::FormatInt::FormatDecimal(fmt::FormatInt *this, unsigned __int64 a2)
{
_BYTE *v2; // r10
unsigned __int64 i; // r8
__int64 v4; // rcx
char *result; // rax
__int64 v6; // r8
v2 = (char *)this + 21;
for ( i = a2; i >= 0x64; *v2 = a00010203040506[v4] )
{
v4 = 2 * (unsigned int)(i % 0x64);
i /= 0x64u;
*(v2 - 1) = a00010203040506[(unsigned int)(v4 + 1)];
v2 -= 2;
}
result = v2 - 1;
if ( i >= 0xA )
{
v6 = (unsigned int)(2 * i);
*result = a00010203040506[(unsigned int)(v6 + 1)];
*(v2 - 2) = a00010203040506[v6];
return v2 - 2;
}
else
{
*result = i + 48;
}
return result;
}