//
// sub_1001E9A90 from 0x1001e9a90 to 0x1001e9af4 (100 bytes)
//
// 2 xrefs:
// > sub_1001E9AF4 @ 0x1001e9b0c
// > sub_1001E9AF4 @ 0x1001e9b18
//
// 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 11:00:35 +0000
//
__int64 __fastcall sub_1001E9A90(const char *a1)
{
const char *v1; // x19
int v2; // w8
__int64 result; // x0
__int64 v4; // x8
__int64 v5; // x10
__int64 v6; // t1
v1 = a1;
v2 = strlen(a1);
if ( v2 < 1 )
return 0;
result = 0;
v4 = v2 & 0x7FFFFFFF;
do
{
v6 = *v1++;
v5 = v6;
if ( (v6 & 0x8000000000000000LL) == 0 && (_DefaultRuneLocale.__runetype[v5] & 0x400) != 0 )
result = (unsigned int)(result + 1);
--v4;
}
while ( v4 );
return result;
}