//
// LevelEditorLayer::addToGroup from 0x100361c50 to 0x100361cd8 (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007f4318
//
// 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)
{
cocos2d::CCArray *TriggerGroup; // x0
__int64 v9; // x22
if ( a3 <= 9999 )
{
GJBaseGameLayer::addToGroup(a1, a2, a3, a4);
if ( a2->m_isSpawnOrderTrigger )
{
TriggerGroup = LevelEditorLayer::getTriggerGroup(a1, a3);
v9 = (__int64)TriggerGroup;
if ( a4 || (sub_10024A420((__int64)TriggerGroup, (__int64)a2) & 1) == 0 )
sub_10024A2D0(v9);
}
a1->m_unk3b22 = 1;
}
}