//
// UndoObject::create from 0x1000dfbe0 to 0x1000dfcae (206 bytes)
//
// 6 xrefs:
// > EditorUI::createUndoObject @ 0x10003cd62
// > EditorUI::moveObjectCall_1 @ 0x10004a54d
// > LevelEditorLayer::createObjectsFromString @ 0x1000df959
// > LevelEditorLayer::createObject @ 0x1000e04f1
// > LevelEditorLayer::removeObject @ 0x1000e21b2
// > LevelEditorLayer::handleAction @ 0x1000e2fd0
//
// 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)
{
char *v2; // rbx
GameObjectCopy *v3; // rax
v2 = (char *)operator new(0xA0u);
cocos2d::CCObject::CCObject(v2);
*(_QWORD *)v2 = off_1008C0900;
*((_QWORD *)v2 + 7) = 0;
*((_DWORD *)v2 + 16) = 0;
*((_QWORD *)v2 + 9) = 0;
*((_WORD *)v2 + 40) = 0;
*((_DWORD *)v2 + 27) = 0;
v2[112] = 0;
sub_10028CC30(v2 + 124);
sub_10028CC30(v2 + 132);
sub_10028CC30(v2 + 140);
*(_QWORD *)(v2 + 84) = 0x3F8000003F800000LL;
*(_OWORD *)(v2 + 92) = 0;
*(_OWORD *)(v2 + 116) = 0;
*(_QWORD *)(v2 + 148) = 0x3F8000003F800000LL;
if ( a1 )
{
v3 = GameObjectCopy::create(a1);
*((_QWORD *)v2 + 7) = v3;
cocos2d::CCObject::retain(v3);
}
*((_DWORD *)v2 + 16) = a2;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (UndoObject *)v2;
}