//
// EditorUI::onUpdateDeleteFilter from 0x481f3c to 0x481f9c (96 bytes)
//
// 0 xrefs:
//
// 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:23 +0000
//
int __fastcall EditorUI::onUpdateDeleteFilter(EditorUI *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v4; // r4
GameManager *v5; // r0
int v6; // r3
const char *v7; // r2
char *v8; // r1
int v9; // r5
GameManager *v10; // r0
v3 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = v3;
if ( (int)v3 >= 0 )
{
if ( (int)v3 <= 2 )
{
v5 = (GameManager *)GameManager::sharedState(v3);
v7 = (const char *)v4;
v8 = "0005";
}
else
{
if ( v3 != (GameManager *)((char *)&dword_0 + 3) )
return EditorUI::updateDeleteButtons(this);
v9 = *((_DWORD *)this + 249);
v5 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 3));
if ( v9 )
{
v10 = (GameManager *)GameManager::setIntGameVariable(v5, "0005", (_BYTE *)&dword_0 + 3, v6);
v5 = (GameManager *)GameManager::sharedState(v10);
v7 = *(const char **)(v9 + 892);
v8 = "0006";
}
else
{
v7 = nullptr;
v8 = "0005";
}
}
GameManager::setIntGameVariable(v5, v8, v7, v6);
}
return EditorUI::updateDeleteButtons(this);
}