//
// SetupTriggerPopup::onEase from 0x100224270 to 0x1002242d4 (100 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::createEasingControls @ 0x100223ca5
// > SetupTriggerPopup::createEasingControls @ 0x100223d93
//
// 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:27:04 +0000
//
__int64 __fastcall SetupTriggerPopup::onEase(__int64 a1, __int64 a2)
{
int v2; // eax
int v3; // ecx
int v4; // eax
v2 = *(_DWORD *)(a1 + 816) + 2 * ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1) - 1;
v3 = 0;
if ( v2 > 0 )
v3 = v2;
v4 = 18;
if ( v3 < 18 )
v4 = v3;
*(_DWORD *)(a1 + 816) = v4;
SetupTriggerPopup::valueChanged((_QWORD *)a1, 30, (float)v4);
SetupTriggerPopup::updateEaseLabel(a1);
return sub_1002244E0(a1);
}