//
// SetupItemCompareTriggerPopup::onOpButton from 0x57c954 to 0x57c9e2 (142 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 SetupItemCompareTriggerPopup::onOpButton(SetupItemCompareTriggerPopup *a1, cocos2d::CCObject *a2)
{
int v4; // r5
int v5; // r4
bool v6; // cc
v4 = a2->getTag(a2);
v5 = (int)a1->getValue(a1, v4) + 1;
if ( v4 == 482 )
{
v6 = v5 < 6;
}
else if ( (unsigned int)(v4 - 485) > 1 )
{
if ( (unsigned int)(v4 - 578) > 1 )
v6 = v5 < 5;
else
v6 = v5 < 3;
}
else
{
v6 = v5 < 4;
}
if ( !v6 )
v5 = 0;
if ( (unsigned int)(v4 - 480) <= 1 && v5 < 1 )
v5 = 1;
SetupTriggerPopup::updateValue(a1, v4, (float)v5);
SetupItemCompareTriggerPopup::updateOpButton(a1, (CCMenuItemSpriteExtra *)a2, v5, v4);
SetupItemCompareTriggerPopup::updateFormulaLabel(a1);
}