//
// sub_1005B9640 from 0x1005b9640 to 0x1005b96c6 (134 bytes)
//
// 2 xrefs:
// > EditorUI::findObject @ 0x1005b974a
// > EditorUI::findObject @ 0x1005b9815
//
// This function is hookable on this platform (idp: pc, 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:32:43 +0000
//
bool __fastcall sub_1005B9640(double a1, __int64 a2, __int64 a3)
{
__int64 v3; // rax
int v4; // r14d
__int64 v5; // rax
__int64 v6; // rax
int IntGameVariable; // eax
int v8; // r14d
bool result; // al
v3 = GameManager::sharedState();
result = false;
if ( (unsigned int)GameManager::getIntGameVariable(v3, "0005") != 3
|| (v4 = *(_DWORD *)(a3 + 1028),
v5 = GameManager::sharedState(),
v4 == (unsigned int)GameManager::getIntGameVariable(v5, "0006")) )
{
v6 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v6, "0139");
if ( !IntGameVariable )
return true;
v8 = IntGameVariable;
if ( (unsigned int)GameObject::getMainColorMode(a3) == IntGameVariable
|| (unsigned int)GameObject::getSecondaryColorMode(a3, a1) == v8 )
{
return true;
}
}
return result;
}