//
// EditorUI::onDeleteSelectedType from 0x7c88a4 to 0x7c8930 (140 bytes)
//
// 4 xrefs:
// > EditorUI::handleEditorAction @ 0xbd7734
// > ??> @ 0xe7868
// > EditorUI::setupDeleteMenu @ 0xbdeb38
// > ??> @ 0x1546fb8
//
// 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 12:54:09 +0000
//
EditorUI *__fastcall EditorUI::onDeleteSelectedType(EditorUI *this, cocos2d::CCObject *a2)
{
EditorUI *v2; // x19
__int64 v3; // x1
cocos2d::CCArray *v4; // x0
int v5; // w20
int v6; // [xsp+28h] [xbp+28h]
v2 = this;
v3 = *((_QWORD *)this + 187);
if ( v3 )
{
v6 = *(_DWORD *)(v3 + 1028);
EditorUI::deselectAll(this);
v4 = *((cocos2d::CCArray **)v2 + 180);
v5 = *((_DWORD *)v4 + 3568) - *((_DWORD *)v4 + 3569);
LevelEditorLayer::removeAllObjectsOfType(v4, v6);
*(_DWORD *)(*((_QWORD *)v2 + 180) + 14712LL) += v5
- (*(_DWORD *)(*((_QWORD *)v2 + 180) + 14272LL)
- *(_DWORD *)(*((_QWORD *)v2 + 180) + 14276LL));
EditorBuildStats::noteAction((EditorBuildStats *)(*((_QWORD *)v2 + 180) + 14704LL));
return (EditorUI *)EditorUI::updateButtons(v2);
}
return this;
}