//
// 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 (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:42:05 +0000
//
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;
}
}