//
// EditorUI::findPassesFilters from 0x6f4370 to 0x6f43c6 (86 bytes)
//
// 2 xrefs:
// > EditorUI::findObject @ 0x6f4c32
// > EditorUI::findObject @ 0x6f4dde
//
// 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:57:38 +0000
//
bool __fastcall EditorUI::findPassesFilters(EditorUI *this, GameManager **a2)
{
GameManager *v3; // r0
GameManager *IntGameVariable; // r0
GameManager *v5; // r0
GJSpriteColor *v6; // r4
GameManager *v7; // r4
GameManager *v8; // r0
_BOOL4 result; // r0
v3 = (GameManager *)GameManager::sharedState(this);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v3, "0005");
result = false;
if ( IntGameVariable != (GameManager *)((char *)&dword_0 + 3)
|| (v7 = a2[223],
v8 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 3)),
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v8, "0006"),
v7 == IntGameVariable) )
{
v5 = (GameManager *)GameManager::sharedState(IntGameVariable);
v6 = (GJSpriteColor *)GameManager::getIntGameVariable(v5, "0139");
if ( !v6
|| GameObject::getMainColorMode((GameObject *)a2) == v6
|| GameObject::getSecondaryColorMode((GameObject *)a2) == v6 )
{
return true;
}
}
return result;
}