//
// fmt::internal::FormatDecimal from 0x81c388 to 0x81c3e0 (88 bytes)
//
// 2 xrefs:
// > fmt::BasicWriter::FormatInt @ 0x81e372
// > fmt::BasicWriter::FormatInt @ 0x81e8c8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:46 +0000
//
unsigned int __fastcall fmt::internal::FormatDecimal(
unsigned int result,
unsigned int a2,
int a3)
{
unsigned int v3; // r6
_DWORD *v4; // r5
unsigned int v6; // r1
int v7; // r3
int v8; // r4
char *v9; // r2
v3 = result + 4 * a3;
v4 = (_DWORD *)result;
while ( a2 > 0x63 )
{
v6 = a2 % 0x64;
result = a2 / 0x64;
a2 /= 0x64u;
v7 = (unsigned __int8)fmt::internal::DIGITS[2 * v6];
*(_DWORD *)(v3 - 4) = (unsigned __int8)fmt::internal::DIGITS[2 * v6 + 1];
*(_DWORD *)(v3 - 8) = v7;
v3 -= 8;
}
if ( a2 > 9 )
{
v9 = &fmt::internal::DIGITS[2 * a2];
v8 = (unsigned __int8)*v9;
v4[1] = (unsigned __int8)v9[1];
}
else
{
v8 = (unsigned __int8)(a2 + 48);
}
*v4 = v8;
return result;
}