//
// GJBaseGameLayer::addToGroups from 0x10013cf30 to 0x10013cf98 (104 bytes)
//
// 4 xrefs:
// > PlayLayer::addObject @ 0x1000b209b
// > PlayLayer::addObject @ 0x1000b22d5
// > PlayLayer::addObject @ 0x1000b29e3
// > LevelEditorLayer::addSpecial @ 0x1000e02a1
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJBaseGameLayer::addToGroups(GJBaseGameLayer *a1, GameObject *a2, bool a3)
{
int v3; // r15d
_BOOL4 v4; // r12d
unsigned int GroupID; // eax
if ( a2->m_groupCount > 0 )
{
v3 = 0;
v4 = a3;
do
{
GroupID = GameObject::getGroupID(a2, v3);
((void (__fastcall *)(GJBaseGameLayer *, GameObject *, _QWORD, _BOOL4))a1->addToGroup)(a1, a2, GroupID, v4);
++v3;
}
while ( v3 < a2->m_groupCount );
}
}