//
// UndoObject::create from 0x1000af3d0 to 0x1000af49e (206 bytes)
//
// 6 xrefs:
// > EditorUI::createUndoObject @ 0x100011d6f
// > LevelEditorLayer::createObjectsFromString @ 0x1000af149
// > LevelEditorLayer::createObject @ 0x1000afced
// > LevelEditorLayer::removeObject @ 0x1000b19b8
// > LevelEditorLayer::handleAction @ 0x1000b2908
// > EditorUI::moveObjectCall_1 @ 0x10060e54d
//
// This function is hookable on this platform (idp: pc, 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:20:19 +0000
//
char *__fastcall UndoObject::create(__int64 a1, int a2)
{
char *v2; // rbx
__int64 v3; // rax
v2 = (char *)operator new(0xA0u);
cocos2d::CCObject::CCObject(v2);
*(_QWORD *)v2 = off_100AC40C0;
*((_QWORD *)v2 + 7) = 0;
*((_DWORD *)v2 + 16) = 0;
*((_QWORD *)v2 + 9) = 0;
*((_WORD *)v2 + 40) = 0;
*((_DWORD *)v2 + 27) = 0;
v2[112] = 0;
sub_1002782A0(v2 + 124);
sub_1002782A0(v2 + 132);
sub_1002782A0(v2 + 140);
*(_QWORD *)(v2 + 84) = 0x3F8000003F800000LL;
*(_OWORD *)(v2 + 92) = 0;
*(_OWORD *)(v2 + 116) = 0;
*(_QWORD *)(v2 + 148) = 0x3F8000003F800000LL;
if ( a1 )
{
v3 = GameObjectCopy::create(a1);
*((_QWORD *)v2 + 7) = v3;
cocos2d::CCObject::retain(v3);
}
*((_DWORD *)v2 + 16) = a2;
cocos2d::CCObject::autorelease(v2);
return v2;
}