//
// EditorUI::onDeleteSelectedType from 0x10000ffa0 to 0x10001001d (125 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10060cb9a
// > EditorUI::setupDeleteMenu @ 0x10063b694
//
// 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:18:51 +0000
//
__int64 __fastcall EditorUI::onDeleteSelectedType(__int64 a1)
{
__int64 result; // rax
unsigned int v2; // ebx
__int64 v4; // rdi
int v5; // r15d
int v6; // r12d
_DWORD *v7; // rdi
result = *(_QWORD *)(a1 + 1496);
if ( result )
{
v2 = *(_DWORD *)(result + 1028);
EditorUI::deselectAll(a1);
v4 = *(_QWORD *)(a1 + 1440);
v5 = *(_DWORD *)(v4 + 14272);
v6 = *(_DWORD *)(v4 + 14276);
LevelEditorLayer::removeAllObjectsOfType(v4, v2);
v7 = *(_DWORD **)(a1 + 1440);
v7[3678] += v7[3569] + v5 - (v7[3568] + v6);
EditorBuildStats::noteAction(v7 + 3676);
return EditorUI::updateButtons(a1);
}
return result;
}