//
// SetupMoveCommandPopup::onCustomToggleTriggerValue from 0xa3d8c0 to 0xa3d980 (192 bytes)
//
// 2 xrefs:
// > ??> @ 0xf3580
// > ??> @ 0x1487ab0
//
// 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 12:59:55 +0000
//
__int64 __fastcall SetupMoveCommandPopup::onCustomToggleTriggerValue(
SetupMoveCommandPopup *this,
cocos2d::CCObject *a2)
{
int v3; // w19
__int64 result; // x0
bool v5; // w21
float v6; // s0
bool v7; // w19
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
result = (unsigned int)(v3 - 1);
if ( (unsigned int)result <= 1 )
{
if ( v3 == (int)(*(float (__fastcall **)(SetupMoveCommandPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 101) )
{
v6 = 0.0;
v7 = 0;
v5 = 0;
}
else
{
v5 = v3 == 1;
v6 = (float)v3;
v7 = v3 == 2;
}
SetupTriggerPopup::updateValue(this, 101, v6);
SetupTriggerPopup::updateCustomToggleTrigger(this, 1, v5);
return SetupTriggerPopup::updateCustomToggleTrigger(this, 2, v7);
}
return result;
}