//
// LevelEditorLayer::addToGroup from 0x3682f4 to 0x36833a (70 bytes)
//
// 0 xrefs:
//
// 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 LevelEditorLayer::addToGroup(LevelEditorLayer *a1, GameObject *a2, int a3, bool a4)
{
_BOOL4 v7; // r7
cocos2d::CCArray *TriggerGroup; // r0
cocos2d::CCArray *v9; // r6
v7 = a4;
if ( a3 <= 9999 )
{
GJBaseGameLayer::addToGroup(a1, a2, a3, a4);
if ( a2->m_isSpawnOrderTrigger )
{
TriggerGroup = LevelEditorLayer::getTriggerGroup(a1, a3);
v9 = TriggerGroup;
if ( v7 || !cocos2d::CCArray::containsObject(TriggerGroup, a2) )
cocos2d::CCArray::addObject(v9, a2);
}
a1->m_unk3b22 = 1;
}
}