//
// cocos2d::CCString::copyWithZone from 0x100268d58 to 0x100268d9c (68 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007d26c8
//
// 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
//
cocos2d::CCObject *__fastcall cocos2d::CCString::copyWithZone(cocos2d::CCString *a1, cocos2d::CCZone *a2)
{
cocos2d::CCObject *v3; // x0
cocos2d::CCObject *v4; // x19
std::string *p_m_sString; // x1
v3 = (cocos2d::CCObject *)operator new(0x50u);
v4 = v3;
p_m_sString = &a1->m_sString;
if ( a1->m_sString.m_data.m_short.shortStorage.__elems_[22] < 0 )
p_m_sString = (std::string *)p_m_sString->m_data.m_long.capacitym1;
sub_100268A68((__int64)v3, (char *)p_m_sString);
return v4;
}