//
// cocos2d::CCString::length from 0xd46420 to 0xd4643c (28 bytes)
//
// 8 xrefs:
// > cocos2d::CCString::intValue @ 0xd4644c
// > cocos2d::CCString::uintValue @ 0xd4648c
// > cocos2d::CCString::floatValue @ 0xd464cc
// > cocos2d::CCString::doubleValue @ 0xd46510
// > cocos2d::CCString::boolValue @ 0xd46558
// > cocos2d::CCFileUtils::getNewFilename @ 0xd74e08
// > cocos2d::CCAnimationCache::parseVersion2 @ 0xd858a4
// > ??> @ 0x9d078
//
// This function is hookable on this platform (idp: arm, 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 13:07:34 +0000
//
__int64 __fastcall cocos2d::CCString::length(cocos2d::CCString *this)
{
unsigned __int8 v1; // w1
char *v2; // x2
__int64 result; // x0
v1 = *((_BYTE *)this + 56);
v2 = (char *)this + 56;
result = v1 >> 1;
if ( (v1 & 1) != 0 )
return *((_QWORD *)v2 + 1);
return result;
}