//
// GameObject::getGroupID from 0x44dbbe to 0x44dbd2 (20 bytes)
//
// 30 xrefs:
// > PlayLayer::addToGroupOld @ 0x400aa2
// > PlayLayer::removeFromGroupOld @ 0x400b10
// > GameObject::copyGroups @ 0x44dbf8
// > GameObject::duplicateValues @ 0x44ecc8
// > GameObject::getColorKey @ 0x45cd08
// > LevelEditorLayer::updateObjectColors @ 0x461660
// > LevelEditorLayer::updateObjectColors @ 0x4616d4
// > LevelEditorLayer::updateObjectColors @ 0x46180c
// > LevelEditorLayer::updateObjectColors @ 0x461860
// > LevelEditorLayer::applyGroupState @ 0x4624d4
// > LevelEditorLayer::updateVisibility @ 0x463168
// > LevelEditorLayer::updateVisibility @ 0x4631e0
// > LevelEditorLayer::updateVisibility @ 0x463316
// > LevelEditorLayer::updateVisibility @ 0x463372
// > LevelEditorLayer::recreateGroups @ 0x468084
// > LevelEditorLayer::addSpecial @ 0x46e4b0
// > LevelEditorLayer::getNextFreeGroupID @ 0x4782f8
// > processTraceInSource @ 0x47dd34
// > processTrace @ 0x47e14c
// > EditorUI::replaceGroupID @ 0x482e4a
// > EditorUI::updateObjectInfoLabel @ 0x48989c
// > EditorUI::dynamicGroupUpdate @ 0x48cc50
// > GJBaseGameLayer::opacityForObject @ 0x58b61c
// > GJBaseGameLayer::addToGroups @ 0x59078c
// > GJBaseGameLayer::removeFromGroups @ 0x5907c4
// > GJBaseGameLayer::moveObjectToStaticGroup @ 0x59516a
// > GJBaseGameLayer::moveObjectToStaticGroup @ 0x595186
// > saveAdvFollowSetup @ 0x5bf9d4
// > SetGroupIDLayer::updateGroupIDButtons @ 0x63a2c4
// > SetGroupIDLayer::updateGroupIDButtons @ 0x63a336
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:48:35 +0000
//
int __fastcall GameObject::getGroupID(GameObject *this, unsigned int a2)
{
int result; // r0
if ( a2 > 9 )
return 0;
result = *((_DWORD *)this + 254);
if ( result )
return *(__int16 *)(result + 2 * a2);
return result;
}