//
// cocos2d::getCharacterCountInUTF8String from 0xd8dac4 to 0xd8daec (40 bytes)
//
// 3 xrefs:
// > cocos2d::cc_utf8_strlen @ 0xd8dba0
// > cocos2d::cc_utf8_strlen @ 0xd8dbf4
// > ??> @ 0x53530
//
// 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 13:08:17 +0000
//
__int64 __fastcall cocos2d::getCharacterCountInUTF8String(char *a1)
{
const char *v2; // x0
char v3; // t1
v3 = *a1;
v2 = a1 + 1;
if ( (v3 & 1) != 0 )
v2 = *((const char **)a1 + 2);
return (int)getUTF8StringLength(v2);
}