//
// EditorUI::shouldDeleteObject from 0x7c1aec to 0x7c1be8 (252 bytes)
//
// 5 xrefs:
// > EditorUI::onDelete @ 0x7d182c
// > EditorUI::onDelete @ 0x7d1aec
// > EditorUI::onDeleteSelected @ 0x7d1d38
// > EditorUI::onDeleteSelected @ 0x7d1df0
// > ??> @ 0xd4530
//
// 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:06 +0000
//
bool __fastcall EditorUI::shouldDeleteObject(EditorUI *this, GameObject *a2)
{
GameManager *v2; // x0
GameManager *v4; // x0
GameManager *IntGameVariable; // x0
_BOOL4 v6; // w1
_BOOL8 result; // x0
GameManager *v8; // x0
int v9; // w0
if ( !a2 )
return 0;
v2 = (GameManager *)*((unsigned int *)a2 + 257);
if ( (_DWORD)v2 == 749 )
return 0;
v4 = (GameManager *)GameManager::sharedState(v2);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v4, "0005");
v6 = 0;
switch ( (int)IntGameVariable )
{
case 0:
return 1;
case 1:
v6 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1800LL))(a2) == 7;
goto LABEL_4;
case 2:
v9 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1800LL))(a2);
v6 = 1;
if ( v9 )
v6 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1800LL))(a2) == 25;
goto LABEL_4;
case 3:
v8 = (GameManager *)GameManager::sharedState(IntGameVariable);
v6 = GameManager::getIntGameVariable(v8, "0006") == *((_DWORD *)a2 + 257);
goto LABEL_4;
default:
LABEL_4:
result = v6;
break;
}
return result;
}