//
// fmt::internal::CountDigits from 0x81b938 to 0x81b960 (40 bytes)
//
// 5 xrefs:
// > fmt::internal::FormatSystemErrorMessage @ 0x81cab2
// > fmt::BasicWriter::FormatInt @ 0x81cd66
// > fmt::BasicWriter::FormatInt @ 0x81d2ae
// > fmt::BasicWriter::FormatInt @ 0x81e350
// > fmt::BasicWriter::FormatInt @ 0x81e8a6
//
// 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
//
int __fastcall fmt::internal::CountDigits(unsigned int this, unsigned int a2)
{
int v2; // r3
v2 = (int)(1233 * (32 - __clz(this | 1))) >> 12;
if ( this >= fmt::internal::POWERS_OF_10_32[v2] )
return v2 + 1;
else
return v2;
}