//
// GameObject::belongsToGroup from 0x1005be6c0 to 0x1005be6fc (60 bytes)
//
// 4 xrefs:
// > EditorUI::onDelete @ 0x10002dd6d
// > EditorUI::canSelectObject @ 0x10003c104
// > EditorUI::selectObjects @ 0x10003c2a1
// > LevelEditorLayer::stopTriggersInGroup @ 0x1000f012e
//
// 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; // rcx
std::array *m_groups; // rdx
__int64 v4; // rcx
__int64 v5; // rdi
bool result; // al
m_groupCount = a1->m_groupCount;
if ( m_groupCount <= 0 )
return 0;
m_groups = a1->m_groups;
v4 = m_groupCount - 1;
v5 = 0;
do
{
result = m_groups->__elems_[v5] == a2;
if ( m_groups->__elems_[v5] == a2 )
break;
}
while ( v4 != v5++ );
return result;
}