//
// SetupTriggerPopup::triggerArrowChanged from 0xb24f04 to 0xb2500c (264 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::triggerArrowLeft @ 0xb25040
// > SetupTriggerPopup::triggerArrowRight @ 0xb25078
// > ??> @ 0xca030
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:38 +0000
//
__int64 __fastcall SetupTriggerPopup::triggerArrowChanged(
cocos2d::CCDictionary **this,
signed int a2,
unsigned __int8 a3)
{
int v5; // w22
__int64 v6; // x0
int v7; // w20
char v8; // w23
int v9; // w20
__int64 result; // x0
v5 = a3;
v6 = cocos2d::CCDictionary::objectForKey(*(this + 104), a2);
if ( v6 )
v7 = (int)*(float *)(v6 + 56);
else
v7 = 0;
if ( v5 )
{
v8 = *((_BYTE *)this + 744);
*((_BYTE *)this + 744) = 1;
v9 = v7 + 1;
if ( !(unsigned __int8)SetupTriggerPopup::shouldLimitArrowValue((__int64 **)this, a2) )
goto LABEL_5;
}
else
{
v8 = *((_BYTE *)this + 744);
*((_BYTE *)this + 744) = 1;
v9 = v7 - 1;
if ( !(unsigned __int8)SetupTriggerPopup::shouldLimitArrowValue((__int64 **)this, a2) )
goto LABEL_5;
}
SetupTriggerPopup::toggleLimitValue((__int64 **)this, a2, 1);
LABEL_5:
SetupTriggerPopup::updateValueControls((SetupTriggerPopup *)this, a2, (float)v9);
SetupTriggerPopup::valueChanged((SetupTriggerPopup *)this, a2, (float)v9);
result = (unsigned __int8)SetupTriggerPopup::shouldLimitArrowValue((__int64 **)this, a2);
if ( (_BYTE)result )
result = SetupTriggerPopup::toggleLimitValue((__int64 **)this, a2, 0);
*((_BYTE *)this + 744) = v8;
return result;
}