//
// sub_100476BE8 from 0x100476be8 to 0x100476c74 (140 bytes)
//
// 1 xrefs:
// > EditorUI::setupDeleteMenu @ 0x100187218
//
// 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
//
__int64 __fastcall sub_100476BE8(__int64 a1, __int64 a2)
{
unsigned int v3; // w0
unsigned int v4; // w20
__int64 v5; // x0
const std::string::value_type *v6; // x1
int v7; // w2
__int64 v9; // x20
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 >= 3 )
{
if ( v3 != 3 )
return EditorUI::updateDeleteButtons(a1);
v9 = *(_QWORD *)(a1 + 1496);
v5 = GameManager::sharedState();
v6 = "0005";
if ( v9 )
{
GameManager::setIntGameVariable(v5, "0005", 3);
v5 = GameManager::sharedState();
v7 = *(_DWORD *)(v9 + 1028);
v6 = "0006";
}
else
{
v7 = 0;
}
}
else
{
v4 = v3;
v5 = GameManager::sharedState();
v6 = "0005";
v7 = v4;
}
GameManager::setIntGameVariable(v5, v6, v7);
return EditorUI::updateDeleteButtons(a1);
}