//
// EditorUI::onUpdateDeleteFilter from 0x7c2058 to 0x7c2114 (188 bytes)
//
// 6 xrefs:
// > ??> @ 0x6acc0
// > EditorUI::setupDeleteMenu @ 0xbdebf0
// > EditorUI::setupDeleteMenu @ 0xbdec84
// > EditorUI::setupDeleteMenu @ 0xbdecf8
// > EditorUI::setupDeleteMenu @ 0xbdedfc
// > ??> @ 0x1542a20
//
// 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:07 +0000
//
__int64 __fastcall EditorUI::onUpdateDeleteFilter(EditorUI *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
__int64 v4; // x20
GameManager *v5; // x0
GameManager *v6; // x0
GameManager *v7; // x0
GameManager *v8; // x0
unsigned int v10; // [xsp+28h] [xbp+28h]
v3 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( ((unsigned int)v3 & 0x80000000) != 0 )
return EditorUI::updateDeleteButtons(this);
if ( (int)v3 > 2 )
{
if ( (_DWORD)v3 == 3 )
{
v4 = *((_QWORD *)this + 187);
v5 = (GameManager *)GameManager::sharedState(v3);
if ( v4 )
{
v6 = (GameManager *)GameManager::setIntGameVariable(v5, "0005", 3u);
v7 = (GameManager *)GameManager::sharedState(v6);
GameManager::setIntGameVariable(v7, "0006", *(_DWORD *)(v4 + 1028));
}
else
{
GameManager::setIntGameVariable(v5, "0005", 0);
}
}
return EditorUI::updateDeleteButtons(this);
}
v10 = (unsigned int)v3;
v8 = (GameManager *)GameManager::sharedState(v3);
GameManager::setIntGameVariable(v8, "0005", v10);
return EditorUI::updateDeleteButtons(this);
}