//
// GameObject::belongsToGroup from 0x44dc06 to 0x44dc2e (40 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::stopTriggersInGroup @ 0x467738
// > SetGroupIDLayer::onAddGroupParent @ 0x63a65a
// > EditorUI::canSelectObject @ 0x6f432a
// > EditorUI::selectObjects @ 0x6f4664
//
// 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::belongsToGroup(GameObject *this, int a2)
{
int v2; // r2
int i; // r3
v2 = *((__int16 *)this + 510);
if ( v2 > 0 )
{
for ( i = 0; i < v2; ++i )
{
if ( *(__int16 *)(*((_DWORD *)this + 254) + 2 * i) == a2 )
return 1;
}
}
return 0;
}