//
// UndoObject::init from 0x664928 to 0x664968 (64 bytes)
//
// 2 xrefs:
// > UndoObject::create @ 0x664a20
// > ??> @ 0xa1d78
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool UndoObject::init(UndoObject *a1, GameObject *a2, UndoCommand a3)
{
GameObjectCopy *v4; // x0
UndoCommand v6; // [xsp+28h] [xbp+28h]
if ( a2 )
{
v6 = a3;
v4 = GameObjectCopy::create(a2);
a1->m_objectCopy = v4;
cocos2d::CCObject::retain(v4);
a3 = v6;
}
a1->m_command = a3;
return 1;
}