//
// SetupMoveCommandPopup::onCustomToggleTriggerValue from 0x1006e07b0 to 0x1006e0847 (151 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b92f90
//
// This function is hookable on this platform (idp: pc, 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:35:44 +0000
//
__int64 __fastcall SetupMoveCommandPopup::onCustomToggleTriggerValue(_QWORD *a1, __int64 a2)
{
int v2; // r14d
__int64 result; // rax
int v4; // r15d
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
result = (unsigned int)(v2 - 1);
if ( (unsigned int)result <= 1 )
{
v4 = 0;
if ( v2 != (int)(*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL))(a1, 101) )
v4 = v2;
SetupTriggerPopup::updateValue(a1, 0x65u, (float)v4);
SetupTriggerPopup::updateCustomToggleTrigger((__int64)a1, 1, v4 == 1);
return SetupTriggerPopup::updateCustomToggleTrigger((__int64)a1, 2, v4 == 2);
}
return result;
}