//
// cocos2d::CCString::length from 0x1007ab090 to 0x1007ab0a6 (22 bytes)
//
// 2 xrefs:
// > cocos2d::CCFileUtils::getNewFilename @ 0x10043b0b6
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x10046daf3
//
// 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
//
unsigned int __fastcall cocos2d::CCString::length(cocos2d::CCString *a1)
{
unsigned int sizex2; // eax
__int64 v2; // rax
sizex2 = a1->m_sString.m_data.m_short.sizex2;
if ( (sizex2 & 1) != 0 )
return a1->m_sString.m_data.m_long.size;
else
LODWORD(v2) = sizex2 >> 1;
return v2;
}