//
// SetupInstantCountPopup::onTargetCountArrow from 0x1005e9a10 to 0x1005e9ab1 (161 bytes)
//
// 1 xrefs:
// > SetupInstantCountPopup::init @ 0x1005e8fb8
//
// 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::onTargetCountArrow(SetupInstantCountPopup *a1, cocos2d::CCObject *a2)
{
int v3; // eax
EffectGameObject *m_gameObject; // rcx
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v6; // r14d
v3 = a1->m_targetCount + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) != 1) - 1;
a1->m_targetCount = v3;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
*(_DWORD *)(&m_gameObject->m_canSpawnTriggers + 1) = v3;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )
{
v6 = 0;
do
*(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v6++) + 1836) = a1->m_targetCount;
while ( v6 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
SetupInstantCountPopup::updateCountTextInputLabel(a1);
}