//
// SetupCountTriggerPopup::updateTargetCount from 0x14041c770 to 0x14041c7f9 (137 bytes)
//
// 6 xrefs:
// > SetupCountTriggerPopup::onTargetCountArrow @ 0x14041c27a
// > SetupCountTriggerPopup::textChanged @ 0x14041c4d5
// > SetupInstantCountPopup::textChanged @ 0x140423645
// > ??> @ 0x1406a0194
// > ??> @ 0x1406a01a4
// > ??> @ 0x1406d935c
//
// 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
//
// Merged with: SetupCountTriggerPopup::updateTargetCount, SetupInstantCountPopup::updateTargetCount
void __fastcall SetupCountTriggerPopup::updateTargetCount(__int64 a1)
{
__int64 v2; // rcx
cocos2d::CCArray *v3; // rcx
unsigned int v4; // edi
struct cocos2d::CCObject *v5; // rax
v2 = *(_QWORD *)(a1 + 656);
if ( v2 )
{
*(_DWORD *)(v2 + 1856) = *(_DWORD *)(a1 + 968);
}
else
{
v3 = *(cocos2d::CCArray **)(a1 + 664);
if ( v3 )
{
v4 = 0;
if ( cocos2d::CCArray::count(v3) )
{
do
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 664), v4++);
v5[33].m_uID = *(_DWORD *)(a1 + 968);
}
while ( v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664)) );
}
}
}
}