//
// LevelEditorLayer::addToRedoList from 0x789f6c to 0x789fd4 (104 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::handleAction @ 0x7a1c70
// > ??> @ 0x8a0b8
//
// 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 12:53:26 +0000
//
__int64 __fastcall LevelEditorLayer::addToRedoList(LevelEditorLayer *this, UndoObject *a2)
{
int v4; // w1
cocos2d::CCArray *v5; // x0
unsigned int v6; // w20
v4 = *((unsigned __int8 *)this + 14007);
v5 = *((cocos2d::CCArray **)this + 1783);
if ( v4 )
v6 = 1000;
else
v6 = 200;
if ( (unsigned int)cocos2d::CCArray::count(v5) >= v6 )
cocos2d::CCArray::removeObjectAtIndex(*((cocos2d::CCArray **)this + 1783), 0, 1);
return cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1783), a2);
}