//
// DSP_Saturate from 0xda6c4 to 0xda700 (60 bytes)
//
// 4 xrefs:
// > j_DSP_Saturate @ 0xe3418
// > ??> @ 0x1dac
// > j_DSP_Saturate @ 0xe3418
// > ??> @ 0xe7270
//
// 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
//
int __fastcall DSP_Saturate(float *a1)
{
if ( *a1 >= 0.99997 )
{
*a1 = 0.99997;
return -3;
}
else if ( *a1 > -1.0 )
{
return 0;
}
else
{
*a1 = -1.0;
return -4;
}
}