//
// SetupItemEditTriggerPopup::onOpButton from 0x14046bd50 to 0x14046be22 (210 bytes)
//
// 2 xrefs:
// > SetupItemEditTriggerPopup::init @ 0x14046ba47
// > ??> @ 0x1406db1c8
//
// 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 SetupItemEditTriggerPopup::onOpButton(SetupItemEditTriggerPopup *a1, cocos2d::CCObject *a2)
{
__int64 v4; // rdi
int v5; // ebx
int v6; // eax
SetupItemEditTriggerPopup *v7; // rcx
v4 = (unsigned int)a2->getTag(a2);
v5 = (int)a1->getValue(a1, v4) + 1;
if ( (unsigned int)(v4 - 485) <= 1 )
{
if ( v5 > 3 )
v5 = 0;
}
else if ( (unsigned int)(v4 - 578) <= 1 )
{
v6 = 0;
if ( v5 <= 2 )
v6 = v5;
v5 = v6;
}
else if ( v5 > 4 )
{
v5 = 0;
}
if ( (_DWORD)v4 == 481 )
{
if ( v5 < 1 )
v5 = 1;
}
else if ( (_DWORD)v4 == 482 && v5 < 3 )
{
v5 = 3;
}
SetupTriggerPopup::updateValue(a1, v4, (float)v5);
SetupItemEditTriggerPopup::updateOpButton(v7, (CCMenuItemSpriteExtra *)a2, v5, v4);
SetupItemEditTriggerPopup::updateFormulaLabel(a1);
}