//
// 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!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}
}