//
// cocos2d::cc_wcslen from 0xb1d094 to 0xb1d0bc (40 bytes)
//
// 7 xrefs:
// > sub_AE27CC @ 0xae27e4
// > cocos2d::CCLabelBMFont::createFontChars @ 0xae5d54
// > cocos2d::CCLabelBMFont::updateLabel @ 0xae80c0
// > cocos2d::cc_utf16_vec_from_utf16_str @ 0xb1d1a8
// > cocos2d::cc_utf8_to_utf16 @ 0xb1d360
// > cocos2d::cc_utf16_to_utf8 @ 0xb1da54
// > ??> @ 0xb68e0
//
// 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_wcslen(const unsigned __int16 *a1)
{
const unsigned __int16 *v1; // x1
int result; // w0
int v3; // t1
v1 = a1 + 1;
if ( !*a1 )
return 0;
result = 0;
do
{
v3 = *v1++;
++result;
}
while ( v3 );
return result;
}