//
// LevelEditorLayer::removeObject from 0x1003fb46c to 0x1003fb504 (152 bytes)
//
// 5 xrefs:
// > EditorUI::spriteFromObjectString @ 0x100184d74
// > EditorUI::spriteFromObjectString @ 0x100184dd4
// > LevelEditorLayer::removeAllObjectsOfType @ 0x1003fbb20
// > sub_100403E28 @ 0x100403e78
// > EditorUI::deleteObject @ 0x1004764f0
//
// 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:36 +0000
//
__int64 __fastcall LevelEditorLayer::removeObject(__int64 result, __int64 a2, char a3)
{
__int64 v4; // x19
_QWORD *v5; // x0
if ( a2 )
{
v4 = result;
if ( (a3 & 1) == 0 )
{
++*(_DWORD *)(result + 14712);
sub_1002E7674(*(_QWORD *)(result + 14264));
v5 = UndoObject::create(a2, 1);
LevelEditorLayer::addToUndoList(v4, (__int64)v5, 0);
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1312LL))(a2, 1);
GJBaseGameLayer::removeObjectFromSection(v4, a2);
result = LevelEditorLayer::removeSpecial(v4, a2);
*(_BYTE *)(v4 + 14938) = 1;
}
return result;
}