//
// LevelEditorLayer::addToGroup from 0x1000f0c80 to 0x1000f0d2d (173 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008c06b0
//
// 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 LevelEditorLayer::addToGroup(LevelEditorLayer *a1, GameObject *a2, int a3, bool a4)
{
intptr_t v6; // r13
cocos2d::CCArray *v7; // r12
if ( a3 <= 9999 )
{
GJBaseGameLayer::addToGroup(a1, a2, a3, a4);
if ( a2->m_isSpawnOrderTrigger )
{
v6 = a3;
v7 = a1->m_triggerGroups.__begin_[a3];
if ( v7 )
{
if ( a4 )
goto LABEL_8;
}
else
{
v7 = (cocos2d::CCArray *)sub_10071F9E0(a1, a2);
a1->m_triggerGroups.__begin_[v6] = v7;
cocos2d::CCDictionary::setObject(a1->m_triggerGroupsDict, v7, v6);
if ( a4 )
{
LABEL_8:
sub_10071FCD0(v7, a2);
goto LABEL_9;
}
}
if ( !(unsigned __int8)sub_100720160(v7, a2) )
goto LABEL_8;
}
LABEL_9:
a1->m_unk3b22 = 1;
}
}