//
// SetupTriggerPopup::onTouchTriggered from 0x14060c9e0 to 0x14060ca2a (74 bytes)
//
// 4 xrefs:
// > ColorSelectPopup::init @ 0x140127c38
// > SetupPulsePopup::init @ 0x1405ce9c7
// > SetupTriggerPopup::createMultiTriggerItems @ 0x14060c647
// > ??> @ 0x14092fcd8
//
// 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::onTouchTriggered(__int64 a1)
{
char v1; // dl
v1 = *(_BYTE *)(a1 + 696);
*(_BYTE *)(a1 + 696) = v1 == 0;
if ( !v1 )
{
*(_BYTE *)(a1 + 697) = 0;
SetupTriggerPopup::updateTouchTriggered();
CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 712), *(unsigned __int8 *)(a1 + 697));
}
return SetupTriggerPopup::updateSpawnedByTrigger(a1);
}