//
// SetupItemEditTriggerPopup::onOpButton from 0x6b9bbc to 0x6b9c66 (170 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:56:45 +0000
//
int __fastcall SetupItemEditTriggerPopup::onOpButton(cocos2d::CCDictionary **this, cocos2d::CCObject *a2)
{
int v4; // r5
signed int v5; // r4
v4 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v5 = (int)(*((float (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, v4) + 1;
if ( (unsigned int)(v4 - 485) <= 1 )
{
if ( v5 >= 4 )
v5 = 0;
goto LABEL_19;
}
if ( (unsigned int)(v4 - 578) <= 1 )
{
if ( v5 <= 2 )
goto LABEL_13;
LABEL_20:
if ( v4 == 482 )
v5 = 3;
else
v5 = 0;
goto LABEL_19;
}
if ( v5 > 4 )
{
if ( v4 == 481 )
{
v5 = 1;
goto LABEL_19;
}
goto LABEL_20;
}
if ( v4 != 481 )
{
LABEL_13:
if ( v4 == 482 && v5 < 3 )
v5 = 3;
goto LABEL_19;
}
if ( v5 < 1 )
v5 = 1;
LABEL_19:
SetupTriggerPopup::updateValue(this, v4, (float)v5);
SetupItemEditTriggerPopup::updateOpButton((SetupItemEditTriggerPopup *)this, a2, v5, v4);
return SetupItemEditTriggerPopup::updateFormulaLabel((SetupItemEditTriggerPopup *)this);
}