//
// DSP_Saturate from 0x105cf4 to 0x105d30 (60 bytes)
//
// 4 xrefs:
// > .DSP_Saturate @ 0x109e7c
// > ??> @ 0x4120
// > .DSP_Saturate @ 0x109e74
// > ??> @ 0x111800
//
// 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:15:15 +0000
//
__int64 __fastcall DSP_Saturate(float *a1)
{
if ( *a1 >= 0.99997 )
{
*a1 = 0.99997;
return 4294967293LL;
}
else if ( *a1 <= -1.0 )
{
*a1 = -1.0;
return 4294967292LL;
}
else
{
return 0;
}
}