//
// UndoObject::init from 0x4639a0 to 0x4639c2 (34 bytes)
//
// 1 xrefs:
// > UndoObject::createWithArray @ 0x4639da
//
// 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:54 +0000
//
int __fastcall UndoObject::init(int a1, cocos2d::CCArray *a2, int a3)
{
cocos2d::CCArray *v6; // r0
if ( a2 )
{
v6 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
*(_DWORD *)(a1 + 60) = v6;
cocos2d::CCArray::addObjectsFromArray(v6, a2);
cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 60));
}
*(_DWORD *)(a1 + 56) = a3;
return 1;
}