//
// GameObject::belongsToGroup from 0x10025d554 to 0x10025d588 (52 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::stopTriggersInGroup @ 0x100361794
// > EditorUI::canSelectObject @ 0x1003ed584
// > EditorUI::selectObjects @ 0x1003ed6ec
//
// 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 __fastcall GameObject::belongsToGroup(GameObject *a1, int a2)
{
__int64 m_groupCount; // x8
bool v3; // cc
__int64 v4; // x8
std::array *m_groups; // x9
int v6; // t1
bool result; // w0
m_groupCount = a1->m_groupCount;
v3 = m_groupCount < 1;
v4 = m_groupCount - 1;
if ( v3 )
return 0;
m_groups = a1->m_groups;
do
{
v6 = m_groups->__elems_[0];
m_groups = (std::array *)((char *)m_groups + 2);
result = v6 == a2;
}
while ( v6 != a2 && v4-- != 0 );
return result;
}