//
// EditorUI::onDeleteSelectedType from 0x100476568 to 0x1004765e8 (128 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x100163548
// > EditorUI::setupDeleteMenu @ 0x100187150
//
// 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 11:05:41 +0000
//
__int64 __fastcall EditorUI::onDeleteSelectedType(__int64 result, double a2)
{
__int64 v2; // x8
__int64 v3; // x19
int v4; // w20
__int64 v5; // x0
int v6; // w21
int v7; // w22
_DWORD *v8; // x8
__n128 v9; // q0
v2 = *(_QWORD *)(result + 1496);
if ( v2 )
{
v3 = result;
v4 = *(_DWORD *)(v2 + 1028);
EditorUI::deselectAll(result, a2);
v5 = *(_QWORD *)(v3 + 1440);
v6 = *(_DWORD *)(v5 + 14272);
v7 = *(_DWORD *)(v5 + 14276);
LevelEditorLayer::removeAllObjectsOfType(v5, v4);
v8 = *(_DWORD **)(v3 + 1440);
v8[3678] += v6 - (v7 + v8[3568]) + v8[3569];
EditorBuildStats::noteAction((__int64)(v8 + 3676));
return EditorUI::updateButtons(v3, v9);
}
return result;
}