//
// cocos2d::CCString::copyWithZone from 0x180010250 to 0x1800102bd (109 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e6688
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae0ec
//
// 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
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCObject *__fastcall cocos2d::CCString::copyWithZone(
cocos2d::CCString *this,
struct cocos2d::CCZone *a2)
{
cocos2d::CCObject *v3; // rax
_QWORD *v4; // rdi
std::string *p_m_sString; // rbx
v3 = (cocos2d::CCObject *)operator new(0x58u);
v4 = &v3->__vftable;
if ( !v3 )
return nullptr;
p_m_sString = &this->m_sString;
if ( p_m_sString->m_data.m_capacity > 0xF )
p_m_sString = (std::string *)p_m_sString->m_data.m_bigStorage;
cocos2d::CCObject::CCObject(v3);
*v4 = &cocos2d::CCString::`vftable';
sub_180005910(v4 + 7, p_m_sString);
return (struct cocos2d::CCObject *)v4;
}