//
// GameObjectCopy::create from 0x78f7b4 to 0x78f878 (196 bytes)
//
// 4 xrefs:
// > UndoObject::init @ 0x78f894
// > UndoObject::initWithTransformObjects @ 0x78fa1c
// > LevelEditorLayer::handleAction @ 0x7a1ce4
// > ??> @ 0x7fa68
//
// 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 12:53:28 +0000
//
_QWORD *__fastcall GameObjectCopy::create(GameObjectCopy *this, GameObject *a2)
{
_QWORD *v3; // x19
v3 = (_QWORD *)operator new(0x60u);
*v3 = 0;
v3[1] = 0;
v3[2] = 0;
v3[3] = 0;
v3[4] = 0;
v3[5] = 0;
v3[6] = 0;
v3[7] = 0;
v3[8] = 0;
v3[9] = 0;
v3[10] = 0;
v3[11] = 0;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v3);
*v3 = &off_14361B0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 8));
if ( (unsigned __int8)GameObjectCopy::init((GameObjectCopy *)v3, this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return v3;
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v3 + 16LL))(v3);
return nullptr;
}
}