//
// GameObject::getGroupID from 0x646b88 to 0x646ba8 (32 bytes)
//
// 30 xrefs:
// > PlayLayer::addToGroupOld @ 0x5cd06c
// > PlayLayer::removeFromGroupOld @ 0x5cd134
// > GameObject::copyGroups @ 0x646be4
// > GameObject::duplicateValues @ 0x64a4d8
// > GameObject::getColorKey @ 0x6569c4
// > LevelEditorLayer::updateObjectColors @ 0x65f888
// > LevelEditorLayer::updateObjectColors @ 0x65f984
// > LevelEditorLayer::updateObjectColors @ 0x65fa7c
// > LevelEditorLayer::updateObjectColors @ 0x65fb60
// > LevelEditorLayer::recreateGroups @ 0x660a38
// > LevelEditorLayer::applyGroupState @ 0x661910
// > LevelEditorLayer::updateVisibility @ 0x662f0c
// > LevelEditorLayer::updateVisibility @ 0x663010
// > LevelEditorLayer::updateVisibility @ 0x663438
// > LevelEditorLayer::updateVisibility @ 0x663534
// > LevelEditorLayer::addSpecial @ 0x670790
// > LevelEditorLayer::getNextFreeGroupID @ 0x67355c
// > processTraceInSource @ 0x681150
// > processTrace @ 0x681428
// > EditorUI::replaceGroupID @ 0x68a58c
// > EditorUI::updateObjectInfoLabel @ 0x6badc0
// > EditorUI::dynamicGroupUpdate @ 0x6c3c94
// > GJBaseGameLayer::opacityForObject @ 0x855754
// > GJBaseGameLayer::addToGroups @ 0x85d214
// > GJBaseGameLayer::removeFromGroups @ 0x85d284
// > GJBaseGameLayer::moveObjectToStaticGroup @ 0x863e98
// > saveAdvFollowSetup @ 0x896f1c
// > SetGroupIDLayer::updateGroupIDButtons @ 0x976444
// > SetGroupIDLayer::updateGroupIDButtons @ 0x976784
// > ??> @ 0x376c8
//
// 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
//
int GameObject::getGroupID(GameObject *a1, int a2)
{
int result; // w0
std::array *m_groups; // x2
result = 0;
if ( (unsigned int)a2 <= 9 )
{
m_groups = a1->m_groups;
if ( m_groups )
return m_groups->__elems_[a2];
}
return result;
}