//
// LevelEditorLayer::removeObject from 0x4643cc to 0x464424 (88 bytes)
//
// 7 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x4641cc
// > LevelEditorLayer::removeAllObjects @ 0x4644a6
// > LevelEditorLayer::removeAllObjectsOfType @ 0x464594
// > LevelEditorLayer::breakApartTextObject @ 0x46ec6c
// > EditorUI::deleteObject @ 0x481d2e
// > EditorUI::spriteFromObjectString @ 0x6f500e
// > EditorUI::spriteFromObjectString @ 0x6f502e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:54 +0000
//
int __fastcall LevelEditorLayer::removeObject(int this, GameObject *a2, int a3)
{
int v3; // r4
UndoObject *v6; // r0
v3 = this;
if ( a2 )
{
if ( !a3 )
{
++*(_DWORD *)(this + 12112);
cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(this + 11864));
v6 = UndoObject::create(a2, 1);
LevelEditorLayer::addToUndoList((cocos2d::CCArray **)v3, v6, a3);
}
(*(void (__fastcall **)(GameObject *, int))(*(_DWORD *)a2 + 656))(a2, 1);
GJBaseGameLayer::removeObjectFromSection((GJBaseGameLayer *)v3, a2);
this = LevelEditorLayer::removeSpecial((LevelEditorLayer *)v3, a2);
*(_BYTE *)(v3 + 12278) = 1;
}
return this;
}