//
// LevelEditorLayer::addToUndoList from 0x1000dfb60 to 0x1000dfbd4 (116 bytes)
//
// 16 xrefs:
// > EditorUI::onDeleteSelected @ 0x10000c244
// > EditorUI::onDeleteSelected @ 0x10000c29a
// > EditorUI::onDeselectAll @ 0x10002c228
// > EditorUI::clickOnPosition @ 0x10002dbbb
// > EditorUI::onDelete @ 0x10002de7f
// > EditorUI::onCreate @ 0x10002e23d
// > EditorUI::createUndoSelectObject @ 0x10002e771
// > EditorUI::pasteObjects @ 0x10003b93c
// > EditorUI::selectObjectsInRect @ 0x10003cc3f
// > EditorUI::createUndoObject @ 0x10003cea0
// > EditorUI::processSelectObjects @ 0x10003d26a
// > EditorUI::createSmartObjectsFromTemplate @ 0x1000432b6
// > EditorUI::createSmartObjectsFromTemplate @ 0x100043323
// > EditorUI::moveObjectCall_1 @ 0x10004a55e
// > EditorUI::ccTouchEnded @ 0x10005014e
// > EditorUI::keyDown @ 0x10005064f
//
// 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
//
void __fastcall LevelEditorLayer::addToUndoList(LevelEditorLayer *a1, UndoObject *a2, bool a3)
{
unsigned int v3; // r15d
if ( !a3 )
sub_100720270(a1->m_redoObjects);
v3 = 200;
if ( a1->m_increaseMaxUndoRedo )
v3 = 1000;
if ( (unsigned int)sub_100720070(a1->m_undoObjects) >= v3 )
sub_100720230(a1->m_undoObjects, 0, 1);
sub_10071FCD0(a1->m_undoObjects, a2);
}