//
// LevelEditorLayer::addToRedoList from 0x65d5c8 to 0x65d630 (104 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::handleAction @ 0x6725f4
// > LevelEditorLayer::handleAction @ 0x6727ec
// > ??> @ 0x659b8
//
// 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 LevelEditorLayer::addToRedoList(LevelEditorLayer *a1, UndoObject *a2)
{
_BOOL4 m_increaseMaxUndoRedo; // w1
cocos2d::CCArray *m_redoObjects; // x0
unsigned int v6; // w20
m_increaseMaxUndoRedo = a1->m_increaseMaxUndoRedo;
m_redoObjects = a1->m_redoObjects;
if ( m_increaseMaxUndoRedo )
v6 = 1000;
else
v6 = 200;
if ( (unsigned int)cocos2d::CCArray::count(m_redoObjects) >= v6 )
cocos2d::CCArray::removeObjectAtIndex(a1->m_redoObjects, 0, 1);
cocos2d::CCArray::addObject(a1->m_redoObjects, a2);
}