//
// UndoObject::create from 0x36a38a to 0x36a3ca (64 bytes)
//
// 6 xrefs:
// > LevelEditorLayer::removeObject @ 0x36ac0e
// > LevelEditorLayer::createObjectsFromString @ 0x3712ce
// > LevelEditorLayer::createObject @ 0x3714b0
// > LevelEditorLayer::handleAction @ 0x37187a
// > EditorUI::createUndoObject @ 0x39d1ea
// > EditorUI::moveObjectCall @ 0x39f7e0
//
// 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
//
UndoObject *UndoObject::create(GameObject *a1, UndoCommand a2)
{
UndoObject *v4; // r4
UndoObject_vtbl *v5; // r3
UndoObject *v6; // r0
v4 = (UndoObject *)operator new(0x8Cu);
UndoObject::UndoObject(v4);
if ( UndoObject::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v5 = v4->__vftable;
v6 = v4;
v4 = nullptr;
v5->~UndoObject_0(v6);
}
return v4;
}