//
// EditorUI::shouldDeleteObject from 0x481c8c to 0x481d06 (122 bytes)
//
// 4 xrefs:
// > EditorUI::onDelete @ 0x48c4fa
// > EditorUI::onDelete @ 0x48c530
// > EditorUI::onDeleteSelected @ 0x48c878
// > EditorUI::onDeleteSelected @ 0x48c8f4
//
// 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::shouldDeleteObject(EditorUI *this, GameObject *a2)
{
int result; // r0
GameManager *v4; // r0
GameManager *IntGameVariable; // r0
bool v6; // zf
GameManager *v7; // r0
if ( !a2 )
return 0;
if ( *((_DWORD *)a2 + 223) == 749 )
return 0;
v4 = (GameManager *)GameManager::sharedState(this);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v4, "0005");
switch ( (unsigned int)IntGameVariable )
{
case 0u:
goto LABEL_13;
case 1u:
v6 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 900))(a2) == 7;
goto LABEL_9;
case 2u:
if ( (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 900))(a2) )
{
v6 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 900))(a2) == 25;
LABEL_9:
result = v6;
}
else
{
LABEL_13:
result = 1;
}
break;
case 3u:
v7 = (GameManager *)GameManager::sharedState(IntGameVariable);
v6 = *((_DWORD *)a2 + 223) == GameManager::getIntGameVariable(v7, "0006");
goto LABEL_9;
default:
return 0;
}
return result;
}