//
// sub_1004763E0 from 0x1004763e0 to 0x1004764b8 (216 bytes)
//
// 4 xrefs:
// > EditorUI::onDeleteSelected @ 0x100471080
// > EditorUI::onDeleteSelected @ 0x100471148
// > EditorUI::onDelete @ 0x1004741b8
// > EditorUI::onDelete @ 0x1004741f8
//
// 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 11:05:41 +0000
//
bool __fastcall sub_1004763E0(__int64 a1, _DWORD *a2)
{
__int64 v4; // x0
int IntGameVariable; // w0
__int64 v7; // x0
if ( !a2 )
return 0;
if ( a2[257] == 749 )
return 0;
v4 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v4, "0005");
if ( IntGameVariable <= 1 )
{
if ( IntGameVariable )
{
if ( IntGameVariable != 1 )
return 0;
return (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1800LL))(a2) == 7;
}
return 1;
}
if ( IntGameVariable == 2 )
{
if ( !(*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1800LL))(a2) )
return 1;
return (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1800LL))(a2) == 25;
}
else
{
if ( IntGameVariable != 3 )
return 0;
v7 = GameManager::sharedState();
return a2[257] == (unsigned int)GameManager::getIntGameVariable(v7, "0006");
}
}