//
// GameObject::belongsToGroup from 0x76fdb0 to 0x76fe00 (80 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::stopTriggersInGroup @ 0x79558c
// > SetGroupIDLayer::onAddGroupParent @ 0xabab90
// > EditorUI::canSelectObject @ 0xbdc7f0
// > EditorUI::selectObjects @ 0xbdcc9c
// > ??> @ 0x85918
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:53:12 +0000
//
__int64 __fastcall GameObject::belongsToGroup(GameObject *this, int a2)
{
int v2; // w4
__int16 *v3; // x2
__int16 *v4; // x2
int v5; // w0
int v6; // t1
v2 = *((__int16 *)this + 584);
if ( v2 <= 0 )
return 0;
v3 = *((__int16 **)this + 145);
if ( *v3 != a2 )
{
v4 = v3 + 1;
v5 = 0;
while ( ++v5 != v2 )
{
v6 = *v4++;
if ( v6 == a2 )
return 1;
}
return 0;
}
return 1;
}