//
// SetupTriggerPopup::onMultiTrigger from 0x10012f8b0 to 0x10012f928 (120 bytes)
//
// 4 xrefs:
// > SetupCountTriggerPopup::init @ 0x1000f44e0
// > SetupTriggerPopup::createMultiTriggerItems @ 0x10012f4e0
// > SetupPulsePopup::init @ 0x1003b49c4
// > ColorSelectPopup::init @ 0x10041d240
//
// 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 SetupTriggerPopup::onMultiTrigger(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
bool v2; // w8
EffectGameObject *m_gameObject; // x9
cocos2d::CCArray *m_gameObjects; // x0
__int64 v6; // x20
v2 = !a1->m_multiTriggered;
a1->m_multiTriggered = v2;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_isMultiTriggered = v2;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_10024A36C(m_gameObjects) )
{
v6 = 0;
do
{
*(_BYTE *)(sub_10024A388(a1->m_gameObjects, v6) + 1664) = a1->m_multiTriggered;
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
}
}