//
// UndoObject::create from 0x1003f9acc to 0x1003f9b28 (92 bytes)
//
// 6 xrefs:
// > EditorUI::moveObjectCall_1 @ 0x10015ce74
// > LevelEditorLayer::createObjectsFromString @ 0x1003f9910
// > LevelEditorLayer::createObject @ 0x1003fa190
// > LevelEditorLayer::removeObject @ 0x1003fb4a8
// > LevelEditorLayer::handleAction @ 0x1003fc060
// > EditorUI::createUndoObject @ 0x100477bcc
//
// 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 11:04:35 +0000
//
_QWORD *__fastcall UndoObject::create(__int64 a1, int a2)
{
_QWORD *v4; // x19
__int64 v5; // x0
v4 = operator new(0xA8u);
sub_10041110C();
if ( a1 )
{
v5 = sub_1003FC41C(a1);
v4[7] = v5;
cocos2d::CCObject::retain(v5);
}
*((_DWORD *)v4 + 16) = a2;
cocos2d::CCObject::autorelease((__int64)v4);
return v4;
}