//
// UndoObject::create from 0x100359ba4 to 0x100359c00 (92 bytes)
//
// 6 xrefs:
// > LevelEditorLayer::createObjectsFromString @ 0x1003599fc
// > LevelEditorLayer::createObject @ 0x10035a254
// > LevelEditorLayer::removeObject @ 0x10035b560
// > LevelEditorLayer::handleAction @ 0x10035c080
// > EditorUI::createUndoObject @ 0x1003ee01c
// > EditorUI::moveObjectCall_1 @ 0x1003f5fd4
//
// 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 *__fastcall UndoObject::create(GameObject *a1, UndoCommand a2)
{
UndoObject *v4; // x19
GameObjectCopy *v5; // x0
v4 = (UndoObject *)operator new(0xA0u);
UndoObject::UndoObject(v4);
if ( a1 )
{
v5 = GameObjectCopy::create(a1);
v4->m_objectCopy = v5;
cocos2d::CCObject::retain(v5);
}
v4->m_command = a2;
cocos2d::CCObject::autorelease(v4);
return v4;
}