//
// LevelEditorLayer::addToUndoList from 0x1003f9a58 to 0x1003f9acc (116 bytes)
//
// 15 xrefs:
// > EditorUI::moveObjectCall_1 @ 0x10015ce84
// > EditorUI::ccTouchEnded @ 0x100161dc4
// > EditorUI::pasteObjects @ 0x10018a5f0
// > LevelEditorLayer::createObjectsFromString @ 0x1003f9920
// > LevelEditorLayer::createObject @ 0x1003fa1a0
// > LevelEditorLayer::removeObject @ 0x1003fb4b8
// > LevelEditorLayer::removeAllObjectsOfType @ 0x1003fbaf4
// > LevelEditorLayer::handleAction @ 0x1003fbf84
// > EditorUI::onDeleteSelected @ 0x10047112c
// > EditorUI::onDeleteSelected @ 0x1004711a4
// > EditorUI::onDelete @ 0x100474438
// > EditorUI::createUndoSelectObject @ 0x1004747ac
// > EditorUI::createUndoObject @ 0x100477c74
// > EditorUI::createSmartObjectsFromTemplate @ 0x1004794e0
// > EditorUI::createSmartObjectsFromTemplate @ 0x10047954c
//
// This function is hookable on this platform (idp: arm, 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 11:04:35 +0000
//
__int64 __fastcall LevelEditorLayer::addToUndoList(__int64 a1, __int64 a2, char a3)
{
unsigned int v4; // w21
if ( (a3 & 1) == 0 )
sub_1002E7674(*(_QWORD *)(a1 + 14264));
if ( *(_BYTE *)(a1 + 14007) )
v4 = 1000;
else
v4 = 200;
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 14256)) >= v4 )
sub_1002E7664(*(_QWORD *)(a1 + 14256), 0, 1);
return sub_1002E74E0(*(_QWORD *)(a1 + 14256));
}