//
// SetupTriggerPopup::determineStartValues from 0x140475400 to 0x1404754fa (250 bytes)
//
// 99 xrefs:
// > ColorSelectPopup::determineStartValues @ 0x14009045d
// > EditTriggersPopup::determineStartValues @ 0x14028f240
// > SetupEnterTriggerPopup::determineStartValues @ 0x14028f7ed
// > SetupAnimationPopup::determineStartValues @ 0x140409b5d
// > SetupAreaTintTriggerPopup::determineStartValues @ 0x14041050d
// > SetupCameraEdgePopup::determineStartValues @ 0x1404139dd
// > SetupCameraModePopup::determineStartValues @ 0x140414bfe
// > SetupCameraOffsetTrigger::determineStartValues @ 0x1404166c2
// > SetupCollisionTriggerPopup::determineStartValues @ 0x1404191ad
// > SetupCountTriggerPopup::determineStartValues @ 0x14041c06d
// > SetupEndPopup::determineStartValues @ 0x14041d58d
// > SetupEnterEffectPopup::determineStartValues @ 0x14042025a
// > SetupGradientPopup::determineStartValues @ 0x140421b8b
// > SetupInstantCountPopup::determineStartValues @ 0x1404232ed
// > SetupMGTrigger::determineStartValues @ 0x14042825e
// > SetupOpacityPopup::determineStartValues @ 0x14042b3ed
// > SetupPulsePopup::determineStartValues @ 0x14043b1cd
// > SetupRandTriggerPopup::determineStartValues @ 0x1404408bd
// > SetupShakePopup::determineStartValues @ 0x140455a7a
// > SetupTimeWarpPopup::determineStartValues @ 0x1404638dd
// > SetupTouchTogglePopup::determineStartValues @ 0x14046496d
// > ??> @ 0x14053fad0
// > ??> @ 0x140544d10
// > ??> @ 0x14056d028
// > ??> @ 0x1405728e0
// > ??> @ 0x140575868
// > ??> @ 0x1405766f0
// > ??> @ 0x140578590
// > ??> @ 0x140578f78
// > ??> @ 0x14057adc8
// > ??> @ 0x14057b2c0
// > ??> @ 0x14057bd98
// > ??> @ 0x14057d2b8
// > ??> @ 0x140586b28
// > ??> @ 0x14058e280
// > ??> @ 0x14058f418
// > ??> @ 0x1405d6b00
// > ??> @ 0x1405d7888
// > ??> @ 0x1405d9380
// > ??> @ 0x1405d9818
// > ??> @ 0x1405d9f30
// > ??> @ 0x1405dadf0
// > ??> @ 0x1405dc278
// > ??> @ 0x1405dc710
// > ??> @ 0x1405dcc98
// > ??> @ 0x1405dd780
// > ??> @ 0x1405ddc90
// > ??> @ 0x1405e03a8
// > ??> @ 0x1405e1568
// > ??> @ 0x1405e1c38
// > ??> @ 0x1405e33a0
// > ??> @ 0x1405e5890
// > ??> @ 0x1405e67d8
// > ??> @ 0x1405e6c98
// > ??> @ 0x1405e7a30
// > ??> @ 0x1405e8060
// > ??> @ 0x1405e8928
// > ??> @ 0x1405ea8e0
// > ??> @ 0x1405eafc0
// > ??> @ 0x1405ec130
// > ??> @ 0x1405ed238
// > ??> @ 0x1405ed900
// > ??> @ 0x1405edf70
// > ??> @ 0x1405ee838
// > ??> @ 0x1405ef790
// > ??> @ 0x1405efc50
// > ??> @ 0x1405f00e8
// > ??> @ 0x1405f0a28
// > ??> @ 0x1405f2aa8
// > ??> @ 0x1405f6c98
// > ??> @ 0x1405f76b0
// > ??> @ 0x1405f7e68
// > ??> @ 0x1405f8fb0
// > ??> @ 0x1405f97d0
// > ??> @ 0x1405f9c80
// > ??> @ 0x1405fb3a8
// > ??> @ 0x1405fd1a0
// > ??> @ 0x1405fd648
// > ??> @ 0x1405fde88
// > ??> @ 0x1405fe5d8
// > ??> @ 0x1405fec88
// > ??> @ 0x1405ff608
// > ??> @ 0x1405ffd78
// > ??> @ 0x140600310
// > ??> @ 0x140600850
// > ??> @ 0x140600d00
// > ??> @ 0x140601548
// > ??> @ 0x140601aa8
// > ??> @ 0x140602040
// > ??> @ 0x140602548
// > ??> @ 0x1406029e0
// > ??> @ 0x140602ef0
// > ??> @ 0x140603440
// > ??> @ 0x140603c10
// > ??> @ 0x1406041e0
// > ??> @ 0x1406a56dc
// > ??> @ 0x1406a56f0
// > ??> @ 0x1406a5700
// > ??> @ 0x1406db504
//
// 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::determineStartValues(SetupTriggerPopup *a1)
{
cocos2d::CCArray *m_gameObjects; // rsi
unsigned int v3; // edi
struct cocos2d::CCObject *v4; // rax
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
if ( m_gameObjects )
{
if ( cocos2d::CCArray::count(m_gameObjects) )
{
v3 = 0;
*(_WORD *)&a1->m_touchTriggered = 257;
a1->m_multiTriggered = 1;
a1->m_effectObjects = 1;
if ( cocos2d::CCArray::count(m_gameObjects) )
{
while ( 1 )
{
v4 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v3);
if ( v4[22].m_uAutoReleaseCount != 1 )
break;
if ( !LOBYTE(v4[26].m_uIndexInArray) )
a1->m_touchTriggered = 0;
if ( !BYTE1(v4[26].m_uIndexInArray) )
a1->m_spawnTriggered = 0;
if ( !LOBYTE(v4[30].__vftable) )
a1->m_multiTriggered = 0;
if ( ++v3 >= cocos2d::CCArray::count(m_gameObjects) )
return;
}
a1->m_effectObjects = 0;
}
}
}
}