//
// SetupTriggerPopup::onMultiTrigger from 0xb1a744 to 0xb1a7bc (120 bytes)
//
// 5 xrefs:
// > ??> @ 0x62128
// > ColorSelectPopup::init @ 0x865b64
// > SetupPulsePopup::init @ 0xa47e64
// > SetupTriggerPopup::createMultiTriggerItems @ 0xb1e52c
// > ??> @ 0x1542578
//
// This function is hookable on this platform (idp: arm, 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 13:01:34 +0000
//
__int64 __fastcall SetupTriggerPopup::onMultiTrigger(SetupTriggerPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x1
__int64 result; // x0
unsigned int v5; // w20
bool v6; // cf
unsigned int v7; // w1
v3 = *((_QWORD *)this + 85);
result = *((unsigned __int8 *)this + 728) ^ 1u;
*((_BYTE *)this + 728) = result;
if ( v3 )
{
*(_BYTE *)(v3 + 1664) = result;
}
else
{
result = *((_QWORD *)this + 86);
if ( result )
{
v5 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count((cocos2d::CCArray *)result);
v6 = v5 >= (unsigned int)result;
v7 = v5++;
if ( v6 )
break;
*(_BYTE *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v7) + 1664) = *((_BYTE *)this + 728);
result = *((_QWORD *)this + 86);
}
}
}
return result;
}