//
// GJBaseGameLayer::removeFromGroups from 0x1402240c0 to 0x14022414a (138 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x1402d86e0
// > LevelEditorLayer::applyGroupState @ 0x1402e13e7
// > ??> @ 0x14067ff68
// > ??> @ 0x14067ff78
// > ??> @ 0x1406cd65c
//
// 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 GJBaseGameLayer::removeFromGroups(GJBaseGameLayer *a1, GameObject *a2)
{
int v4; // ebp
__int64 v5; // rsi
unsigned __int64 v6; // rdi
std::array *m_groups; // rax
__int64 v8; // r8
if ( a2->m_groupCount > 0 )
{
v4 = 0;
v5 = 0;
v6 = 0;
do
{
if ( v6 <= 9 && (m_groups = a2->m_groups) != nullptr )
v8 = (unsigned int)m_groups->_Elems[v5];
else
v8 = 0;
a1->removeFromGroup(a1, a2, v8);
++v4;
++v6;
++v5;
}
while ( v4 < a2->m_groupCount );
}
}