//
// cocos2d::CCPlace::copyWithZone from 0xd30018 to 0xd300cc (180 bytes)
//
// 2 xrefs:
// > ??> @ 0x102490
// > ??> @ 0x1513250
//
// 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:20 +0000
//
cocos2d::CCPlace *__fastcall cocos2d::CCPlace::copyWithZone(cocos2d::CCPlace *this, cocos2d::CCZone *a2)
{
cocos2d::CCPlace *v3; // x19
__int64 v5; // x19
cocos2d::CCZone *v6; // x21
if ( a2 && (v3 = *(cocos2d::CCPlace **)a2) != nullptr )
{
cocos2d::CCActionInstant::copyWithZone(this, a2);
cocos2d::CCPlace::initWithPosition(v3, (cocos2d::CCPlace *)((char *)this + 84));
return v3;
}
else
{
v5 = operator new(0x60u);
cocos2d::CCActionInstant::CCActionInstant((cocos2d::CCActionInstant *)v5);
*(_QWORD *)v5 = &off_1513250;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 84));
v6 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v6, (cocos2d::CCObject *)v5);
cocos2d::CCActionInstant::copyWithZone(this, v6);
cocos2d::CCPlace::initWithPosition((cocos2d::CCPlace *)v5, (cocos2d::CCPlace *)((char *)this + 84));
operator delete(v6);
return (cocos2d::CCPlace *)v5;
}
}