//
// SetupTriggerPopup::onTouchTriggered from 0x10021b300 to 0x10021b34f (79 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::createMultiTriggerItems @ 0x10021ad21
// > SetupPulsePopup::init @ 0x100394ff3
// > ColorSelectPopup::init @ 0x100804b6e
//
// 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 12:27:01 +0000
//
__int64 __fastcall SetupTriggerPopup::onTouchTriggered(__int64 a1)
{
char v1; // al
v1 = *(_BYTE *)(a1 + 696);
*(_BYTE *)(a1 + 696) = v1 ^ 1;
if ( !v1 )
{
*(_BYTE *)(a1 + 697) = 0;
SetupTriggerPopup::updateSpawnedByTrigger(a1);
CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 712), *(unsigned __int8 *)(a1 + 697));
}
return SetupTriggerPopup::updateTouchTriggered(a1);
}