//
// cocos2d::cc_wcslen from 0x100660340 to 0x100660362 (34 bytes)
//
// 4 xrefs:
// > cocos2d::CCLabelBMFont::createFontChars @ 0x1005d8e33
// > cocos2d::CCLabelBMFont::setString @ 0x1005d97ff
// > cocos2d::CCLabelBMFont::setString @ 0x1005d9851
// > cocos2d::CCLabelBMFont::updateLabel @ 0x1005dadf1
//
// 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 __fastcall cocos2d::cc_wcslen(const unsigned __int16 *a1)
{
__int64 v1; // rax
if ( *a1 )
{
v1 = 0;
while ( a1[++v1] != 0 )
;
}
else
{
LODWORD(v1) = 0;
}
return v1;
}