//
// SetupPickupTriggerPopup::onCustomToggleTriggerValue from 0x957734 to 0x9577dc (168 bytes)
//
// 2 xrefs:
// > ??> @ 0x9dec0
// > ??> @ 0x11b9a90
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SetupPickupTriggerPopup::onCustomToggleTriggerValue(SetupPickupTriggerPopup *a1, cocos2d::CCObject *a2)
{
int v3; // w20
bool v4; // w2
bool v5; // w21
v3 = a2->getTag(a2);
if ( v3 == (int)a1->getValue(a1, 88) )
{
v5 = 0;
v4 = 0;
v3 = 0;
}
else
{
v4 = v3 == 1;
v5 = v3 == 2;
}
SetupTriggerPopup::updateCustomToggleTrigger(a1, 1, v4);
SetupTriggerPopup::updateCustomToggleTrigger(a1, 2, v5);
SetupTriggerPopup::updateValue(a1, 88, (float)v3);
SetupPickupTriggerPopup::updateState(a1);
}