//
// GameObject::getGroupID from 0x3564e6 to 0x3564fa (20 bytes)
//
// 29 xrefs:
// > PlayLayer::addToGroupOld @ 0x3115e6
// > PlayLayer::removeFromGroupOld @ 0x311654
// > GameObject::copyGroups @ 0x356520
// > GameObject::duplicateValues @ 0x358962
// > GameObject::getColorKey @ 0x3634fc
// > LevelEditorLayer::updateObjectColors @ 0x3678d0
// > LevelEditorLayer::updateObjectColors @ 0x367944
// > LevelEditorLayer::updateObjectColors @ 0x367a7c
// > LevelEditorLayer::updateObjectColors @ 0x367ad0
// > LevelEditorLayer::applyGroupState @ 0x368b04
// > LevelEditorLayer::updateVisibility @ 0x36996e
// > LevelEditorLayer::updateVisibility @ 0x3699e6
// > LevelEditorLayer::updateVisibility @ 0x369b1e
// > LevelEditorLayer::updateVisibility @ 0x369bfa
// > LevelEditorLayer::recreateGroups @ 0x36e83c
// > LevelEditorLayer::addSpecial @ 0x370bb0
// > LevelEditorLayer::getNextFreeGroupID @ 0x372048
// > processTraceInSource @ 0x377c5c
// > processTrace @ 0x379042
// > EditorUI::replaceGroupID @ 0x37e408
// > EditorUI::updateObjectInfoLabel @ 0x3a0e82
// > EditorUI::dynamicGroupUpdate @ 0x3a60da
// > GJBaseGameLayer::opacityForObject @ 0x46c1b4
// > GJBaseGameLayer::addToGroups @ 0x470d26
// > GJBaseGameLayer::removeFromGroups @ 0x470d5e
// > GJBaseGameLayer::moveObjectToStaticGroup @ 0x4756be
// > saveAdvFollowSetup @ 0x494a50
// > SetGroupIDLayer::updateGroupIDButtons @ 0x50978c
// > SetGroupIDLayer::updateGroupIDButtons @ 0x5097e8
//
// 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; // r0
if ( (unsigned int)a2 > 9 )
return 0;
result = (int)a1->m_groups->__elems_;
if ( result )
return *(__int16 *)(result + 2 * a2);
return result;
}