//
// SetupTriggerPopup::onEase from 0x1406148b0 to 0x14061491f (111 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::createEasingControls @ 0x140613f62
// > SetupTriggerPopup::createEasingControls @ 0x14061404d
// > ??> @ 0x140930068
//
// 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 11:35:17 +0000
//
__int64 __fastcall SetupTriggerPopup::onEase(__int64 a1, __int64 a2)
{
int v3; // eax
int v4; // r8d
int v5; // r8d
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = 1;
if ( v3 != 1 )
v4 = -1;
v5 = *(_DWORD *)(a1 + 816) + v4;
if ( v5 >= 0 )
{
if ( v5 > 18 )
v5 = 18;
}
else
{
v5 = 0;
}
*(_DWORD *)(a1 + 816) = v5;
SetupTriggerPopup::valueChanged(a1, 30, (float)v5);
SetupTriggerPopup::updateEaseLabel(a1);
return SetupTriggerPopup::toggleEaseRateVisibility(a1);
}