//
// UndoObject::createWithArray from 0x1000e29f0 to 0x1000e2ac7 (215 bytes)
//
// 15 xrefs:
// > EditorUI::onDeleteSelected @ 0x10000c233
// > EditorUI::onDeleteSelected @ 0x10000c289
// > EditorUI::onDeselectAll @ 0x10002c213
// > EditorUI::clickOnPosition @ 0x10002dba6
// > EditorUI::onDelete @ 0x10002de6d
// > EditorUI::onCreate @ 0x10002e228
// > EditorUI::createUndoSelectObject @ 0x10002e759
// > EditorUI::pasteObjects @ 0x10003b927
// > EditorUI::selectObjectsInRect @ 0x10003cc2a
// > EditorUI::processSelectObjects @ 0x10003d255
// > EditorUI::createSmartObjectsFromTemplate @ 0x1000432a3
// > EditorUI::createSmartObjectsFromTemplate @ 0x100043312
// > EditorUI::keyDown @ 0x10005063a
// > LevelEditorLayer::removeAllObjectsOfType @ 0x1000e290c
// > LevelEditorLayer::handleAction @ 0x1000e2d1e
//
// 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
//
// local variable allocation has failed, the output may be wrong!
UndoObject *__fastcall UndoObject::createWithArray(cocos2d::CCArray *a1, UndoCommand a2)
{
char *v2; // rbx
__int64 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 = sub_10071F9E0(v2 + 140, *(_QWORD *)&a2);
*((_QWORD *)v2 + 9) = v3;
sub_100720050(v3, a1);
cocos2d::CCObject::retain(*((cocos2d::CCObject **)v2 + 9));
}
*((_DWORD *)v2 + 16) = a2;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (UndoObject *)v2;
}