//
// SetupTriggerPopup::updateSpawnedByTrigger from 0x1404756c0 to 0x140475751 (145 bytes)
//
// 5 xrefs:
// > SetupTriggerPopup::onTouchTriggered @ 0x1404755a5
// > SetupTriggerPopup::onSpawnedByTrigger @ 0x1404756b5
// > ??> @ 0x1406a5738
// > ??> @ 0x1406a5748
// > ??> @ 0x1406db57c
//
// 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::updateSpawnedByTrigger(SetupTriggerPopup *a1)
{
EffectGameObject *m_gameObject; // rcx
cocos2d::CCArray *m_gameObjects; // rcx
unsigned int v4; // edi
struct cocos2d::CCObject *v5; // rax
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_isSpawnTriggered = a1->m_spawnTriggered;
SetupTriggerPopup::updateMultiTriggerBtn(a1);
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v4 = 0;
if ( cocos2d::CCArray::count(m_gameObjects) )
{
do
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v4++);
BYTE1(v5[26].m_uIndexInArray) = a1->m_spawnTriggered;
}
while ( v4 < cocos2d::CCArray::count(a1->m_gameObjects) );
}
}
SetupTriggerPopup::updateMultiTriggerBtn(a1);
}
}