//
// SetupTriggerPopup::updateSpawnedByTrigger from 0x9e55fc to 0x9e5678 (124 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::onTouchTriggered @ 0x9e569c
// > SetupTriggerPopup::onSpawnedByTrigger @ 0x9e56fc
// > ??> @ 0x991b0
//
// 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; // x0
cocos2d::CCArray *m_gameObjects; // x1
unsigned int v4; // w20
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_isSpawnTriggered = a1->m_spawnTriggered;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v4 = 0;
while ( 1 )
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v7 = v4++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7);
m_gameObjects = a1->m_gameObjects;
*(_BYTE *)(v5 + 1457) = a1->m_spawnTriggered;
}
}
}
SetupTriggerPopup::updateMultiTriggerBtn(a1);
}