//
// UndoObject::init from 0x78f528 to 0x78f574 (76 bytes)
//
// 2 xrefs:
// > UndoObject::createWithArray @ 0x78f634
// > ??> @ 0xd7710
//
// 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:28 +0000
//
__int64 __fastcall UndoObject::init(__int64 a1, cocos2d::CCArray *a2, int a3)
{
cocos2d::CCArray *v4; // x0
int v6; // [xsp+20h] [xbp+20h]
if ( a2 )
{
v6 = a3;
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
*(_QWORD *)(a1 + 72) = v4;
cocos2d::CCArray::addObjectsFromArray(v4, a2);
cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 72));
a3 = v6;
}
*(_DWORD *)(a1 + 64) = a3;
return 1;
}