//
// cocos2d::getCharacterCountInUTF8String from 0x7f51f6 to 0x7f5204 (14 bytes)
//
// 1 xrefs:
// > cocos2d::cc_utf8_strlen @ 0x7f5872
//
// 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:08 +0000
//
size_t __fastcall cocos2d::getCharacterCountInUTF8String(int a1)
{
if ( (*(_BYTE *)a1 & 1) != 0 )
return getUTF8StringLength(*(const char **)(a1 + 8));
else
return getUTF8StringLength((const char *)(a1 + 1));
}