//
// EditorUI::onDeleteSelectedType from 0x4864bc to 0x48651a (94 bytes)
//
// 1 xrefs:
// > EditorUI::handleEditorAction @ 0x6f226e
//
// 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:49:25 +0000
//
EditorUI *__fastcall EditorUI::onDeleteSelectedType(EditorUI *this, cocos2d::CCObject *a2)
{
cocos2d::CCArray **v2; // r5
int v3; // r3
int v4; // r8
cocos2d::CCArray *v5; // r0
int v6; // r4
v2 = (cocos2d::CCArray **)this;
v3 = *((_DWORD *)this + 249);
if ( v3 )
{
v4 = *(_DWORD *)(v3 + 892);
EditorUI::deselectAll(this);
v5 = v2[236];
v6 = *((_DWORD *)v5 + 2967) - *((_DWORD *)v5 + 2968);
LevelEditorLayer::removeAllObjectsOfType(v5, v4);
*((_DWORD *)v2[236] + 3028) += v6 - (*((_DWORD *)v2[236] + 2967) - *((_DWORD *)v2[236] + 2968));
EditorBuildStats::noteAction((cocos2d::CCArray *)((char *)v2[236] + 12104));
return (EditorUI *)EditorUI::updateButtons(v2);
}
return this;
}