//
// SetupTriggerPopup::onMultiTrigger from 0x1404757f0 to 0x14047587b (139 bytes)
//
// 7 xrefs:
// > ColorSelectPopup::init @ 0x14008eec0
// > SetupCountTriggerPopup::init @ 0x14041beac
// > SetupPulsePopup::init @ 0x14043944e
// > SetupTriggerPopup::createMultiTriggerItems @ 0x1404753b0
// > ??> @ 0x1406a5780
// > ??> @ 0x1406a5790
// > ??> @ 0x1406db5c4
//
// 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 SetupTriggerPopup::onMultiTrigger(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
bool v3; // cl
EffectGameObject *m_gameObject; // rax
cocos2d::CCArray *m_gameObjects; // rcx
unsigned int v6; // edi
struct cocos2d::CCObject *v7; // rax
v3 = !a1->m_multiTriggered;
a1->m_multiTriggered = v3;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_isMultiTriggered = v3;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v6 = 0;
if ( cocos2d::CCArray::count(m_gameObjects) )
{
do
{
v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v6++);
LOBYTE(v7[30].__vftable) = a1->m_multiTriggered;
}
while ( v6 < cocos2d::CCArray::count(a1->m_gameObjects) );
}
}
}
}