//
// sub_1001B2294 from 0x1001b2294 to 0x1001b2300 (108 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::createEasingControls @ 0x1001b1d0c
// > SetupTriggerPopup::createEasingControls @ 0x1001b1e04
//
// 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 11:00:08 +0000
//
__int64 __fastcall sub_1001B2294(__int64 a1, __int64 a2)
{
int v3; // w9
int v4; // w8
__n128 v5; // q0
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
v3 = 1;
else
v3 = -1;
v4 = (*(_DWORD *)(a1 + 816) + v3) & ~((*(_DWORD *)(a1 + 816) + v3) >> 31);
if ( v4 >= 18 )
v4 = 18;
*(_DWORD *)(a1 + 816) = v4;
SetupTriggerPopup::valueChanged((_QWORD *)a1, 30, (float)(unsigned int)v4);
sub_1001B2300(a1, v5);
return sub_1001B24A8(a1);
}