//
// SetupTriggerPopup::updateSpawnedByTrigger from 0x14060ca30 to 0x14060cac1 (145 bytes)
//
// 5 xrefs:
// > SetupTriggerPopup::onTouchTriggered @ 0x14060ca25
// > SetupTriggerPopup::onSpawnedByTrigger @ 0x14060caf5
// > ??> @ 0x1408e5020
// > ??> @ 0x1408e5030
// > ??> @ 0x14092fce4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:35:14 +0000
//
__int64 __fastcall SetupTriggerPopup::updateSpawnedByTrigger(__int64 a1)
{
__int64 v2; // rcx
cocos2d::CCArray *v4; // rcx
unsigned int v5; // edi
struct cocos2d::CCObject *v6; // rax
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
{
*(_BYTE *)(v2 + 1488) = *(_BYTE *)(a1 + 696);
return SetupTriggerPopup::updateMultiTriggerBtn(a1);
}
else
{
v4 = *(cocos2d::CCArray **)(a1 + 688);
if ( v4 )
{
v5 = 0;
if ( cocos2d::CCArray::count(v4) )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v5++);
*((_BYTE *)v6 + 1488) = *(_BYTE *)(a1 + 696);
}
while ( v5 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) );
}
}
return SetupTriggerPopup::updateMultiTriggerBtn(a1);
}
}