//
// GJBaseGameLayer::addToGroups from 0x1001f23f8 to 0x1001f246c (116 bytes)
//
// 4 xrefs:
// > PlayLayer::addObject @ 0x10011897c
// > PlayLayer::addObject @ 0x100118fb0
// > PlayLayer::addObject @ 0x1001192b4
// > LevelEditorLayer::addSpecial @ 0x10035a070
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GJBaseGameLayer::addToGroups(GJBaseGameLayer *a1, GameObject *a2, bool a3)
{
_BOOL8 v3; // x19
int v6; // w22
__int64 GroupID; // x0
if ( a2->m_groupCount >= 1 )
{
v3 = a3;
v6 = 0;
do
{
GroupID = GameObject::getGroupID(a2, v6);
((void (__fastcall *)(GJBaseGameLayer *, GameObject *, __int64, _BOOL8))a1->addToGroup)(a1, a2, GroupID, v3);
++v6;
}
while ( v6 < a2->m_groupCount );
}
}