//
// SetupItemEditTriggerPopup::onOpButton from 0x10057f4d0 to 0x10057f592 (194 bytes)
//
// 1 xrefs:
// > SetupItemEditTriggerPopup::init @ 0x10057f13b
//
// 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 __fastcall SetupItemEditTriggerPopup::onOpButton(SetupItemEditTriggerPopup *a1, cocos2d::CCObject *a2)
{
__int64 v2; // r15
int v3; // ecx
int v4; // eax
bool v5; // cc
int v6; // r12d
v2 = ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v3 = (int)((float (__fastcall *)(SetupItemEditTriggerPopup *, __int64))a1->getValue)(a1, v2);
v4 = v3 + 1;
if ( (unsigned int)(v2 - 485) <= 1 )
{
v5 = v3 < 3;
goto LABEL_5;
}
if ( (v2 & 0xFFFFFFFE) == 0x242 )
{
v5 = v3 < 2;
LABEL_5:
if ( !v5 )
v4 = 0;
LABEL_7:
v6 = 3;
if ( v4 >= 4 )
v6 = v4;
if ( (_DWORD)v2 != 482 )
v6 = v4;
goto LABEL_11;
}
if ( v3 >= 4 )
v4 = 0;
if ( (_DWORD)v2 != 481 )
goto LABEL_7;
v6 = 1;
if ( v4 > 0 )
goto LABEL_7;
LABEL_11:
SetupTriggerPopup::updateValue(a1, v2, (float)v6);
SetupItemEditTriggerPopup::updateOpButton(a1, (CCMenuItemSpriteExtra *)a2, v6, v2);
SetupItemEditTriggerPopup::updateFormulaLabel(a1);
}