//
// SetItemIDLayer::onCustomToggleTriggerValue from 0x94b708 to 0x94b858 (336 bytes)
//
// 2 xrefs:
// > ??> @ 0x37b60
// > ??> @ 0x11b4aa0
//
// 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; // w19
SetItemIDLayer_vtbl *v4; // x2
bool v5; // w22
bool v6; // w21
float v7; // s0
bool v8; // w19
bool v9; // w21
float v10; // s0
bool v11; // w19
v3 = a2->getTag(a2);
v4 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( (unsigned int)(v3 - 1) <= 1 )
{
if ( v3 == (int)v4->getValue(a1, 391) )
{
v10 = 0.0;
v11 = 0;
v9 = 0;
}
else
{
v9 = v3 == 1;
v10 = (float)v3;
v11 = v3 == 2;
}
SetupTriggerPopup::updateValue(a1, 391, v10);
SetupTriggerPopup::updateCustomToggleTrigger(a1, 1, v9);
SetupTriggerPopup::updateCustomToggleTrigger(a1, 2, v11);
}
else
{
if ( v3 == (int)v4->getValue(a1, 390) )
{
v7 = 0.0;
v8 = 0;
v6 = 0;
v5 = 0;
}
else
{
v5 = v3 == -1;
v6 = v3 == -2;
v7 = (float)v3;
v8 = v3 == -3;
}
SetupTriggerPopup::updateValue(a1, 390, v7);
SetupTriggerPopup::updateCustomToggleTrigger(a1, -1, v5);
SetupTriggerPopup::updateCustomToggleTrigger(a1, -2, v6);
SetupTriggerPopup::updateCustomToggleTrigger(a1, -3, v8);
SetupTriggerPopup::updateValue(a1, 80, 0.0);
}
}