//
// GameObjectCopy::create from 0x664864 to 0x664928 (196 bytes)
//
// 4 xrefs:
// > UndoObject::init @ 0x664944
// > UndoObject::initWithTransformObjects @ 0x664ac4
// > LevelEditorLayer::handleAction @ 0x672594
// > ??> @ 0x5d420
//
// 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
//
GameObjectCopy *GameObjectCopy::create(GameObject *a1)
{
__int64 v2; // x19
v2 = operator new(0x60u);
*(_QWORD *)v2 = 0;
*(_QWORD *)(v2 + 8) = 0;
*(_QWORD *)(v2 + 16) = 0;
*(_QWORD *)(v2 + 24) = 0;
*(_QWORD *)(v2 + 32) = 0;
*(_QWORD *)(v2 + 40) = 0;
*(_QWORD *)(v2 + 48) = 0;
*(_QWORD *)(v2 + 56) = 0;
*(_QWORD *)(v2 + 64) = 0;
*(_QWORD *)(v2 + 72) = 0;
*(_QWORD *)(v2 + 80) = 0;
*(_QWORD *)(v2 + 88) = 0;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v2);
*(_QWORD *)v2 = &off_1155560;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 64));
if ( GameObjectCopy::init((GameObjectCopy *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (GameObjectCopy *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}