//
// LevelEditorLayer::addToGroup from 0x461fd0 to 0x462016 (70 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:53 +0000
//
GJBaseGameLayer *__fastcall LevelEditorLayer::addToGroup(GJBaseGameLayer *this, GameObject *a2, int a3, _BOOL4 a4)
{
GJBaseGameLayer *v4; // r5
cocos2d::CCObject *TriggerGroup; // r0
cocos2d::CCArray *v9; // r6
v4 = this;
if ( a3 <= 9999 )
{
this = (GJBaseGameLayer *)GJBaseGameLayer::addToGroup(this, a2, a3, a4);
if ( *((_BYTE *)a2 + 1089) )
{
TriggerGroup = LevelEditorLayer::getTriggerGroup(v4, a3);
v9 = TriggerGroup;
if ( a4 || (this = (GJBaseGameLayer *)cocos2d::CCArray::containsObject(TriggerGroup, a2)) == nullptr )
this = (GJBaseGameLayer *)cocos2d::CCArray::addObject(v9, a2);
}
*((_BYTE *)v4 + 12278) = 1;
}
return this;
}