//
// GameObject::belongsToGroup from 0x646c10 to 0x646c60 (80 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::stopTriggersInGroup @ 0x66d148
// > EditorUI::canSelectObject @ 0x6890a4
// > EditorUI::selectObjects @ 0x6be980
// > ??> @ 0x61de8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool GameObject::belongsToGroup(GameObject *a1, int a2)
{
int m_groupCount; // w4
std::array *m_groups; // x2
__int16 *v4; // x2
int v5; // w0
int v6; // t1
m_groupCount = a1->m_groupCount;
if ( m_groupCount <= 0 )
return 0;
m_groups = a1->m_groups;
if ( m_groups->__elems_[0] != a2 )
{
v4 = &m_groups->__elems_[1];
v5 = 0;
while ( ++v5 != m_groupCount )
{
v6 = *v4++;
if ( v6 == a2 )
return 1;
}
return 0;
}
return 1;
}