//
// ndigits from 0xb419c4 to 0xb41a1c (88 bytes)
//
// 3 xrefs:
// > alphaNumericallyLessThan @ 0xb41a34
// > alphaNumericallyLessThan @ 0xb41a40
// > ??> @ 0xa7f58
//
// 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
//
__int64 __fastcall ndigits(const char *a1)
{
int v2; // w3
__int64 v3; // x1
__int64 result; // x0
int v5; // w2
v2 = strlen(a1);
if ( v2 <= 0 )
return 0;
v3 = 0;
LODWORD(result) = 0;
do
{
v5 = (unsigned __int8)a1[v3++];
if ( (unsigned int)(v5 - 48) > 9 )
result = (unsigned int)result;
else
result = (unsigned int)(result + 1);
}
while ( v2 > (int)v3 );
return result;
}