//
// SetupTriggerPopup::onSpawnedByTrigger from 0x14060cad0 to 0x14060cb1a (74 bytes)
//
// 4 xrefs:
// > ColorSelectPopup::init @ 0x140127cc9
// > SetupPulsePopup::init @ 0x1405ceada
// > SetupTriggerPopup::createMultiTriggerItems @ 0x14060c727
// > ??> @ 0x14092fd08
//
// 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::onSpawnedByTrigger(__int64 a1)
{
char v1; // dl
v1 = *(_BYTE *)(a1 + 697);
*(_BYTE *)(a1 + 697) = v1 == 0;
if ( !v1 )
{
*(_BYTE *)(a1 + 696) = 0;
SetupTriggerPopup::updateSpawnedByTrigger(a1);
CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 704), *(unsigned __int8 *)(a1 + 696));
}
return SetupTriggerPopup::updateTouchTriggered(a1);
}