//
// EditorUI::onUpdateDeleteFilter from 0x1000107d0 to 0x100010851 (129 bytes)
//
// 3 xrefs:
// > EditorUI::setupDeleteMenu @ 0x10063b763
// > EditorUI::setupDeleteMenu @ 0x10063b7fd
// > EditorUI::setupDeleteMenu @ 0x10063b96d
//
// 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:52 +0000
//
__int64 __fastcall EditorUI::onUpdateDeleteFilter(__int64 a1, __int64 a2)
{
unsigned int v3; // eax
__int64 v4; // rdx
unsigned int v5; // r14d
__int64 v6; // rax
const std::string::value_type *v7; // rsi
__int64 v8; // rdi
__int64 v9; // rdx
__int64 v11; // r14
__int64 v12; // rax
__int64 v13; // rdx
__int64 v14; // rax
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 >= 3 )
{
if ( v3 != 3 )
return EditorUI::updateDeleteButtons(a1);
v11 = *(_QWORD *)(a1 + 1496);
v12 = GameManager::sharedState(a2, a2, v4);
v7 = "0005";
v8 = v12;
if ( v11 )
{
GameManager::setIntGameVariable(v12, "0005", 3);
v14 = GameManager::sharedState(v8, "0005", v13);
v9 = *(unsigned int *)(v11 + 1028);
v7 = "0006";
v8 = v14;
}
else
{
v9 = 0;
}
}
else
{
v5 = v3;
v6 = GameManager::sharedState(a2, a2, v4);
v7 = "0005";
v8 = v6;
v9 = v5;
}
GameManager::setIntGameVariable(v8, v7, v9);
return EditorUI::updateDeleteButtons(a1);
}