//
// cocos2d::cc_utf8_strlen from 0x5ea4a4 to 0x5ea4e4 (64 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCEditBoxImplAndroid::setText @ 0x5ab468
//
// 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
//
int cocos2d::cc_utf8_strlen(const char *a1, int a2)
{
size_t CharacterCountInUTF8String; // r5
const char *v4; // [sp+8h] [bp-8h] BYREF
if ( !a1 )
return 0;
sub_776584((int)&v4, (char *)a1);
CharacterCountInUTF8String = cocos2d::getCharacterCountInUTF8String(&v4);
sub_774008(&v4);
return CharacterCountInUTF8String;
}