//
// UndoObject::create from 0x463b0a to 0x463b4a (64 bytes)
//
// 6 xrefs:
// > LevelEditorLayer::removeObject @ 0x4643f0
// > LevelEditorLayer::createObjectsFromString @ 0x46e9ea
// > LevelEditorLayer::createObject @ 0x46ebec
// > LevelEditorLayer::handleAction @ 0x46f0be
// > EditorUI::createUndoObject @ 0x4821f4
// > EditorUI::moveObjectCall @ 0x70ed82
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:54 +0000
//
UndoObject *__fastcall UndoObject::create(GameObjectCopy *a1, int a2)
{
UndoObject *v4; // r4
int v5; // r3
UndoObject *v6; // r0
v4 = (UndoObject *)operator new(0x94u);
UndoObject::UndoObject(v4);
if ( UndoObject::init((int)v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v5 = *(_DWORD *)v4;
v6 = v4;
v4 = nullptr;
(*(void (__fastcall **)(UndoObject *))(v5 + 8))(v6);
}
return v4;
}