//
// UndoObject::initWithTransformObjects from 0x78f9ec to 0x78fa68 (124 bytes)
//
// 2 xrefs:
// > UndoObject::createWithTransformObjects @ 0x78fb28
// > ??> @ 0xabd78
//
// 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::initWithTransformObjects(__int64 a1, cocos2d::CCArray *a2, int a3)
{
unsigned int v6; // w19
GameObjectCopy *v7; // x0
GameObject *v8; // x1
cocos2d::CCObject *v9; // x0
bool v10; // cf
unsigned int v11; // w1
v6 = 0;
for ( *(_QWORD *)(a1 + 72) = cocos2d::CCArray::create((cocos2d::CCArray *)a1);
;
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 72), v9) )
{
v10 = v6 >= (unsigned int)cocos2d::CCArray::count(a2);
v11 = v6++;
if ( v10 )
break;
v7 = (GameObjectCopy *)cocos2d::CCArray::objectAtIndex(a2, v11);
v9 = (cocos2d::CCObject *)GameObjectCopy::create(v7, v8);
}
cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 72));
*(_DWORD *)(a1 + 64) = a3;
return 1;
}