//
// LevelEditorLayer::applyGroupState from 0x1000c7ab0 to 0x1000c7b49 (153 bytes)
//
// 0 xrefs:
//
// 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:20:36 +0000
//
__int64 __fastcall LevelEditorLayer::applyGroupState(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
int v5; // r12d
__int64 GroupID; // r13
GJBaseGameLayer::removeFromGroups(a1, a2);
GameObject::resetGroups(a2);
result = GameObject::resetGroupDisabled(a2);
if ( *(__int16 *)(a3 + 1168) > 0 )
{
v5 = 0;
do
{
GroupID = (unsigned int)GameObject::getGroupID(a3, (unsigned int)v5);
if ( (*(unsigned int (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1600LL))(a2, GroupID) == 1 )
(*(void (__fastcall **)(__int64, __int64, _QWORD, __int64))(*(_QWORD *)a1 + 1352LL))(
a1,
a2,
(unsigned int)GroupID,
1);
++v5;
result = (unsigned int)*(__int16 *)(a3 + 1168);
}
while ( v5 < (int)result );
}
return result;
}