//
// SetupTriggerPopup::onSpawnedByTrigger from 0x10021b350 to 0x10021b39f (79 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::createMultiTriggerItems @ 0x10021ae0b
// > SetupPulsePopup::init @ 0x1003950fa
// > ColorSelectPopup::init @ 0x100804c00
//
// 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::onSpawnedByTrigger(__int64 a1)
{
char v1; // al
v1 = *(_BYTE *)(a1 + 697);
*(_BYTE *)(a1 + 697) = v1 ^ 1;
if ( !v1 )
{
*(_BYTE *)(a1 + 696) = 0;
SetupTriggerPopup::updateTouchTriggered(a1);
CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 704), *(unsigned __int8 *)(a1 + 696));
}
return SetupTriggerPopup::updateSpawnedByTrigger(a1);
}