//
// LevelEditorLayer::removeObject from 0x1000b1980 to 0x1000b1a4c (204 bytes)
//
// 12 xrefs:
// > EditorUI::onDeleteSelected @ 0x100008379
// > EditorUI::onDeleteSelected @ 0x100008450
// > EditorUI::onDelete @ 0x10000cd10
// > sub_10000FEF0 @ 0x10000ff26
// > EditorUI::addObjectsToSmartTemplate @ 0x10001387d
// > EditorUI::createSmartObjectsFromTemplate @ 0x100014578
// > EditorUI::deleteSmartBlocksFromObjects @ 0x100014711
// > EditorUI::deleteTypeFromObjects @ 0x100014daf
// > EditorUI::createSmartObjectsFromType @ 0x100015288
// > LevelEditorLayer::breakApartTextObject @ 0x1000c4e65
// > EditorUI::spriteFromObjectString @ 0x100638ac4
// > EditorUI::spriteFromObjectString @ 0x100638ce6
//
// 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:20 +0000
//
void __fastcall LevelEditorLayer::removeObject(__int64 a1, __int64 a2, char a3)
{
char *v3; // r15
unsigned int v4; // r12d
if ( a2 )
{
if ( !a3 )
{
++*(_DWORD *)(a1 + 14712);
sub_1007FF190(*(_QWORD *)(a1 + 14264));
v3 = UndoObject::create(a2, 1);
sub_1007FF190(*(_QWORD *)(a1 + 14264));
v4 = 200;
if ( *(_BYTE *)(a1 + 14007) )
v4 = 1000;
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 14256)) >= v4 )
sub_1007FF150(*(_QWORD *)(a1 + 14256), 0, 1);
sub_1007FEBF0(*(_QWORD *)(a1 + 14256), v3);
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1312LL))(a2, 1);
GJBaseGameLayer::removeObjectFromSection(a1, a2);
LevelEditorLayer::removeSpecial(a1, a2);
*(_BYTE *)(a1 + 14938) = 1;
}
}