//
// SetGroupIDLayer::removeGroupID from 0x10003ef3c to 0x10003f008 (204 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::callRemoveFromGroup @ 0x10003ef28
//
// 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 SetGroupIDLayer::removeGroupID(SetGroupIDLayer *a1, int a2)
{
__int64 v2; // x20
GameObject *m_targetObject; // x0
GameManager *v5; // x0
__int64 v6; // x21
__int64 v7; // x22
GameManager *v8; // x0
v2 = *(_QWORD *)&a2;
a1->m_addedGroup = 1;
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
((void (__fastcall *)(GameObject *, _QWORD))m_targetObject->removeFromGroup)(m_targetObject, *(_QWORD *)&a2);
v5 = GameManager::sharedState();
((void (__fastcall *)(LevelEditorLayer *, GameObject *, __int64))v5->m_levelEditorLayer->removeFromGroup)(
v5->m_levelEditorLayer,
a1->m_targetObject,
v2);
}
else if ( (unsigned int)sub_10024A36C(a1->m_targetObjects) )
{
v6 = 0;
do
{
v7 = sub_10024A388(a1->m_targetObjects, v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 1592LL))(v7, v2);
v8 = GameManager::sharedState();
((void (__fastcall *)(LevelEditorLayer *, __int64, __int64))v8->m_levelEditorLayer->removeFromGroup)(
v8->m_levelEditorLayer,
v7,
v2);
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_targetObjects) );
}
SetGroupIDLayer::updateGroupIDButtons(a1);
}