//
// fmt::internal::CountDigits from 0x81b8f4 to 0x81b932 (62 bytes)
//
// 4 xrefs:
// > fmt::BasicWriter
::FormatInt @ 0x81cf08
// > fmt::BasicWriter::FormatInt @ 0x81d0e4
// > fmt::BasicWriter::FormatInt @ 0x81e4f8
// > fmt::BasicWriter::FormatInt @ 0x81e6d8
//
// 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 __int64 this, unsigned __int64 a2)
{
unsigned int v2; // r2
if ( HIDWORD(this) )
v2 = __clz(HIDWORD(this));
else
v2 = __clz(this | 1) + 32;
return (this >= fmt::internal::POWERS_OF_10_64[(int)(1233 * (64 - v2)) >> 12]) + ((int)(1233 * (64 - v2)) >> 12);
}