//
// SetupCountTriggerPopup::updateTargetCount from 0x1000f4c10 to 0x1000f4c7c (108 bytes)
//
// 2 xrefs:
// > SetupCountTriggerPopup::onTargetCountArrow @ 0x1000f47f0
// > SetupCountTriggerPopup::textChanged @ 0x1000f4e7c
//
// 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 SetupCountTriggerPopup::updateTargetCount(SetupCountTriggerPopup *a1)
{
EffectGameObject *m_gameObject; // x8
cocos2d::CCArray *m_gameObjects; // x0
__int64 v4; // x20
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
*(_DWORD *)(&m_gameObject->m_canSpawnTriggers + 1) = a1->m_targetCount;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_10024A36C(m_gameObjects) )
{
v4 = 0;
do
{
*(_DWORD *)(sub_10024A388(a1->m_gameObjects, v4) + 1836) = a1->m_targetCount;
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
}
}