//
// SetupTriggerPopup::onMultiTrigger from 0x14060cc50 to 0x14060ccda (138 bytes)
//
// 6 xrefs:
// > ColorSelectPopup::init @ 0x140127dba
// > SetupPulsePopup::init @ 0x1405cec16
// > SetupTriggerPopup::createMultiTriggerItems @ 0x14060c80e
// > ??> @ 0x1408e508c
// > ??> @ 0x1408e509c
// > ??> @ 0x14092fd5c
//
// 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
//
char __fastcall SetupTriggerPopup::onMultiTrigger(__int64 a1)
{
unsigned int v2; // eax
__int64 v3; // rcx
cocos2d::CCArray *v4; // rcx
unsigned int v5; // edi
struct cocos2d::CCObject *v6; // rax
LOBYTE(v2) = *(_BYTE *)(a1 + 728) == 0;
*(_BYTE *)(a1 + 728) = v2;
v3 = *(_QWORD *)(a1 + 680);
if ( v3 )
{
*(_BYTE *)(v3 + 1680) = v2;
}
else
{
v4 = *(cocos2d::CCArray **)(a1 + 688);
if ( v4 )
{
v5 = 0;
v2 = cocos2d::CCArray::count(v4);
if ( v2 )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v5++);
*((_BYTE *)v6 + 1680) = *(_BYTE *)(a1 + 728);
v2 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688));
}
while ( v5 < v2 );
}
}
}
return v2;
}