//
// GameObject::belongsToGroup from 0x10068fd70 to 0x10068fdac (60 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::stopTriggersInGroup @ 0x1000c387e
// > SetGroupIDLayer::onAddGroupParent @ 0x1002ffbeb
// > EditorUI::canSelectObject @ 0x1005b88a4
// > EditorUI::selectObjects @ 0x1005b8b31
//
// This function is hookable on this platform (idp: pc, 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:35:07 +0000
//
bool __fastcall GameObject::belongsToGroup(__int64 a1, int a2)
{
__int64 v2; // rcx
__int64 v3; // rdx
__int64 v4; // rcx
__int64 v5; // rdi
bool result; // al
v2 = *(__int16 *)(a1 + 1168);
if ( v2 <= 0 )
return 0;
v3 = *(_QWORD *)(a1 + 1160);
v4 = v2 - 1;
v5 = 0;
do
{
result = *(__int16 *)(v3 + 2 * v5) == a2;
if ( *(__int16 *)(v3 + 2 * v5) == a2 )
break;
}
while ( v4 != v5++ );
return result;
}