//
// LevelEditorLayer::addToRedoList from 0x46024a to 0x460288 (62 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::handleAction @ 0x46f2c8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:52 +0000
//
int __fastcall LevelEditorLayer::addToRedoList(LevelEditorLayer *this, UndoObject *a2)
{
int v2; // r3
cocos2d::CCArray *v4; // r0
unsigned int v6; // r7
v2 = *((unsigned __int8 *)this + 11699);
v4 = *((cocos2d::CCArray **)this + 2966);
if ( v2 )
v6 = 1000;
else
v6 = 200;
if ( cocos2d::CCArray::count(v4) >= v6 )
cocos2d::CCArray::removeObjectAtIndex(*((cocos2d::CCArray **)this + 2966), 0, 1);
return cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 2966), a2);
}