//
// cocos2d::CCString::copyWithZone from 0x1800103e0 to 0x18001044d (109 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800ec6d0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b81a0
//
// 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 11:21:22 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCObject *__fastcall cocos2d::CCString::copyWithZone(
cocos2d::CCString *this,
struct cocos2d::CCZone *a2)
{
cocos2d::CCObject *v3; // rax
cocos2d::CCObject *v4; // rdi
char *v5; // rbx
v3 = (cocos2d::CCObject *)sub_1800E4AC0(0x58u);
v4 = v3;
if ( !v3 )
return nullptr;
v5 = (char *)this + 56;
if ( *((_QWORD *)v5 + 3) > 0xFu )
v5 = *(char **)v5;
cocos2d::CCObject::CCObject(v3);
*(_QWORD *)v4 = &cocos2d::CCString::`vftable';
sub_180005A10((_QWORD *)v4 + 7, v5);
return v4;
}