//
// fmt::internal::FormatDecimal from 0x60bce4 to 0x60bd3e (90 bytes)
//
// 2 xrefs:
// > fmt::BasicWriter::FormatInt @ 0x60dd7a
// > fmt::BasicWriter::FormatInt @ 0x60e2d0
//
// 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
//
_DWORD *__fastcall fmt::internal::FormatDecimal(_DWORD *result, unsigned int a2, int a3)
{
_DWORD *v3; // r2
unsigned int v4; // r4
int v5; // r3
int v6; // r1
char *v7; // r2
v3 = &result[a3];
while ( a2 > 0x63 )
{
v4 = a2 % 0x64;
a2 /= 0x64u;
v5 = (unsigned __int8)fmt::internal::DIGITS[2 * v4];
*(v3 - 1) = (unsigned __int8)fmt::internal::DIGITS[2 * v4 + 1];
*(v3 - 2) = v5;
v3 -= 2;
}
if ( a2 > 9 )
{
v7 = &fmt::internal::DIGITS[2 * a2];
v6 = (unsigned __int8)*v7;
result[1] = (unsigned __int8)v7[1];
}
else
{
v6 = (unsigned __int8)(a2 + 48);
}
*result = v6;
return result;
}