//
// SetupInstantCountPopup::updateTargetCount from 0x1001bce94 to 0x1001bcf00 (108 bytes)
//
// 2 xrefs:
// > SetupInstantCountPopup::onTargetCountArrow @ 0x1001bca20
// > SetupInstantCountPopup::textChanged @ 0x1001bd100
//
// 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 SetupInstantCountPopup::updateTargetCount(SetupInstantCountPopup *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) );
}
}
}