//
// LevelEditorLayer::removeObject from 0x1000e2180 to 0x1000e2246 (198 bytes)
//
// 4 xrefs:
// > EditorUI::deleteObject @ 0x100032ab9
// > EditorUI::spriteFromObjectString @ 0x100034184
// > EditorUI::spriteFromObjectString @ 0x1000343a6
// > LevelEditorLayer::breakApartTextObject @ 0x1000f1712
//
// 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
//
void __fastcall LevelEditorLayer::removeObject(LevelEditorLayer *a1, GameObject *a2, bool a3)
{
UndoObject *v3; // r15
unsigned int v4; // r12d
if ( a2 )
{
if ( !a3 )
{
sub_100720270(a1->m_redoObjects);
v3 = UndoObject::create(a2, Delete);
sub_100720270(a1->m_redoObjects);
v4 = 200;
if ( a1->m_increaseMaxUndoRedo )
v4 = 1000;
if ( (unsigned int)sub_100720070(a1->m_undoObjects) >= v4 )
sub_100720230(a1->m_undoObjects, 0, 1);
sub_10071FCD0(a1->m_undoObjects, v3);
}
((void (__fastcall *)(GameObject *, __int64))a2->deactivateObject)(a2, 1);
GJBaseGameLayer::removeObjectFromSection(a1, a2);
LevelEditorLayer::removeSpecial(a1, a2);
a1->m_unk3b22 = 1;
}
}