//
// LevelEditorLayer::addToGroup from 0x78cdd8 to 0x78ce78 (160 bytes)
//
// 2 xrefs:
// > ??> @ 0x71ab8
// > ??> @ 0x1435ee8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:53:27 +0000
//
GJBaseGameLayer *__fastcall LevelEditorLayer::addToGroup(GJBaseGameLayer *this, GameObject *a2, int a3, bool a4)
{
_BOOL4 v4; // w22
GJBaseGameLayer *v6; // x19
cocos2d::CCObject *TriggerGroup; // x0
cocos2d::CCArray *v9; // x20
v4 = a4;
if ( a3 <= 9999 )
{
v6 = this;
GJBaseGameLayer::addToGroup(this, a2, a3, a4);
if ( *((_BYTE *)a2 + 1253) )
{
TriggerGroup = LevelEditorLayer::getTriggerGroup(v6, a3);
v9 = TriggerGroup;
if ( v4 || !(unsigned __int8)cocos2d::CCArray::containsObject(TriggerGroup, a2) )
cocos2d::CCArray::addObject(v9, a2);
}
*((_BYTE *)v6 + 14938) = 1;
return (GJBaseGameLayer *)(&dword_0 + 1);
}
return this;
}