//
// GameObjectCopy::create from 0x36a308 to 0x36a36a (98 bytes)
//
// 3 xrefs:
// > UndoObject::init @ 0x36a37a
// > UndoObject::initWithTransformObjects @ 0x36a3ee
// > LevelEditorLayer::handleAction @ 0x37184a
//
// 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)
{
GameObjectCopy *v2; // r4
GameObjectCopy_vtbl *v3; // r3
GameObjectCopy *v4; // r0
v2 = (GameObjectCopy *)operator new(0x54u);
memset(v2, 0, sizeof(GameObjectCopy));
cocos2d::CCObject::CCObject(v2);
v2->__vftable = (GameObjectCopy_vtbl *)&off_A4BC70;
cocos2d::CCPoint::CCPoint(&v2->m_position);
if ( GameObjectCopy::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->__vftable;
v4 = v2;
v2 = nullptr;
v3->~GameObjectCopy_0(v4);
}
return v2;
}