//
// sub_D1E9E from 0xd1e9e to 0xd1ef0 (82 bytes)
//
// 1 xrefs:
// > sub_D2114 @ 0xd22f8
//
// 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
//
float *__fastcall sub_D1E9E(float *result, float *a2, int a3)
{
int i; // r3
float v4; // s0
float v5; // s2
float v6; // s2
for ( i = 0; i < a3; ++i )
{
v4 = *result;
v5 = *a2;
if ( *result <= 0.0 )
{
if ( v5 > 0.0 )
{
v4 = v5 + v4;
goto LABEL_11;
}
v6 = v4 - v5;
}
else
{
if ( v5 > 0.0 )
{
v4 = v4 - v5;
goto LABEL_11;
}
v6 = v5 + v4;
}
*result = v6;
LABEL_11:
*a2++ = v4;
++result;
}
return result;
}