//
// LevelEditorLayer::addToUndoList from 0x1000af350 to 0x1000af3c4 (116 bytes)
//
// 12 xrefs:
// > EditorUI::onDeleteSelected @ 0x1000083d4
// > EditorUI::onDeleteSelected @ 0x10000849d
// > EditorUI::clickOnPosition @ 0x10000c81b
// > EditorUI::onDelete @ 0x10000cd75
// > EditorUI::onCreate @ 0x10000cf41
// > EditorUI::createUndoSelectObject @ 0x10000d4a1
// > EditorUI::createUndoObject @ 0x100011e01
// > EditorUI::createSmartObjectsFromTemplate @ 0x1000144c6
// > EditorUI::createSmartObjectsFromTemplate @ 0x100014502
// > EditorUI::pasteObjects @ 0x1005b799c
// > EditorUI::ccTouchEnded @ 0x10060b02c
// > EditorUI::moveObjectCall_1 @ 0x10060e55e
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:20:19 +0000
//
__int64 __fastcall LevelEditorLayer::addToUndoList(__int64 a1, __int64 a2, int a3)
{
unsigned int v3; // r15d
if ( !a3 )
sub_1007FF190(*(_QWORD *)(a1 + 14264));
v3 = 200;
if ( *(_BYTE *)(a1 + 14007) )
v3 = 1000;
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 14256)) >= v3 )
sub_1007FF150(*(_QWORD *)(a1 + 14256), 0, 1);
return sub_1007FEBF0(*(_QWORD *)(a1 + 14256), a2);
}