//
// SetupCollisionTriggerPopup::onEnableGroup from 0x140419330 to 0x1404193bb (139 bytes)
//
// 6 xrefs:
// > SetupCollisionTriggerPopup::init @ 0x140418f40
// > SetupCountTriggerPopup::init @ 0x14041bfd7
// > SetupInstantCountPopup::init @ 0x140423027
// > ??> @ 0x14069fe10
// > ??> @ 0x14069fe20
// > ??> @ 0x1406d90bc
//
// 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
//
// Merged with: SetupCollisionTriggerPopup::onEnableGroup, SetupCountTriggerPopup::onEnableGroup, SetupInstantCountPopup::onEnableGroup
int __fastcall SetupCollisionTriggerPopup::onEnableGroup(__int64 a1)
{
bool v2; // cl
__int64 v3; // rax
cocos2d::CCArray *v4; // rcx
unsigned int v5; // edi
struct cocos2d::CCObject *v6; // rax
v2 = *(_BYTE *)(a1 + 972) == 0;
*(_BYTE *)(a1 + 972) = v2;
v3 = *(_QWORD *)(a1 + 656);
if ( v3 )
{
*(_BYTE *)(v3 + 1653) = v2;
}
else
{
v4 = *(cocos2d::CCArray **)(a1 + 664);
if ( v4 )
{
v5 = 0;
for ( LODWORD(v3) = cocos2d::CCArray::count(v4);
v5 < (unsigned int)v3;
LODWORD(v3) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664)) )
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 664), v5++);
BYTE1(v6[29].m_eObjType) = *(_BYTE *)(a1 + 972);
}
}
}
return v3;
}