//
// SetItemIDLayer::onCustomToggleTriggerValue from 0x4f226e to 0x4f2350 (226 bytes)
//
// 0 xrefs:
//
// 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 SetItemIDLayer::onCustomToggleTriggerValue(SetItemIDLayer *a1, cocos2d::CCObject *a2)
{
int v3; // r4
float (__fastcall *getValue)(SetupTriggerPopup *__hidden, int); // r3
v3 = a2->getTag(a2);
getValue = a1->getValue;
if ( (unsigned int)(v3 - 1) > 1 )
{
if ( v3 == (int)getValue(a1, 390) )
v3 = 0;
SetupTriggerPopup::updateValue(a1, 390, (float)v3);
SetupTriggerPopup::updateCustomToggleTrigger(a1, -1, v3 == -1);
SetupTriggerPopup::updateCustomToggleTrigger(a1, -2, v3 == -2);
SetupTriggerPopup::updateCustomToggleTrigger(a1, -3, v3 == -3);
SetupTriggerPopup::updateValue(a1, 80, 0.0);
}
else
{
if ( v3 == (int)getValue(a1, 391) )
v3 = 0;
SetupTriggerPopup::updateValue(a1, 391, (float)v3);
SetupTriggerPopup::updateCustomToggleTrigger(a1, 1, v3 == 1);
SetupTriggerPopup::updateCustomToggleTrigger(a1, 2, v3 == 2);
}
}