//
// fmt::internal::FormatDecimal
from 0xddd430 to 0xddd4ec (188 bytes)
//
// 4 xrefs:
// > fmt::BasicWriter::FormatInt @ 0xde03bc
// > fmt::BasicWriter::FormatInt @ 0xde0600
// > fmt::BasicWriter::FormatInt @ 0xde0868
// > ??> @ 0x4f348
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:09:07 +0000
//
_BYTE *__fastcall fmt::internal::FormatDecimal(_BYTE *result, unsigned __int64 a2, int a3)
{
int i; // w2
__int64 v4; // x7
int v5; // w3
__int64 v6; // x3
__int64 v7; // x4
__int64 v8; // x1
char v9; // w3
for ( i = a3 - 1; a2 > 0x63; result[v4] = v6 )
{
v4 = (unsigned int)(i - 1);
v5 = a2 % 0x64;
a2 /= 0x64u;
v6 = (unsigned int)(2 * v5);
v7 = (unsigned int)(v6 + 1);
LOBYTE(v6) = fmt::internal::DIGITS[v6];
result[i] = fmt::internal::DIGITS[v7];
i -= 2;
}
if ( a2 <= 9 )
{
*result = a2 + 48;
}
else
{
v8 = (unsigned int)(2 * a2);
v9 = fmt::internal::DIGITS[(unsigned int)(v8 + 1)];
LOBYTE(v8) = fmt::internal::DIGITS[v8];
result[1] = v9;
*result = v8;
}
return result;
}