//
// cocos2d::CCString::length from 0x10088e330 to 0x10088e346 (22 bytes)
//
// 2 xrefs:
// > cocos2d::CCFileUtils::getNewFilename @ 0x100428b36
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x100461ee3
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:37:03 +0000
//
__int64 __fastcall cocos2d::CCString::length(__int64 a1)
{
unsigned int v1; // eax
v1 = *(unsigned __int8 *)(a1 + 56);
if ( (v1 & 1) != 0 )
return *(_QWORD *)(a1 + 64);
else
return v1 >> 1;
}