//
// sub_FE000 from 0xfe000 to 0xfe05c (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x11c0c8
//
// 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 sub_FE000(__int64 result, __int64 a2, int a3)
{
__int64 i; // x8
float v4; // s1
float v5; // s2
float v6; // s0
for ( i = 0; i < a3; ++i )
{
v4 = *(float *)(result + 4 * i);
v5 = *(float *)(a2 + 4 * i);
v6 = v4 - v5;
if ( v4 <= 0.0 )
{
if ( v5 > 0.0 )
{
v6 = v5 + v4;
goto LABEL_9;
}
}
else
{
if ( v5 > 0.0 )
goto LABEL_9;
v6 = v5 + v4;
}
*(float *)(result + 4 * i) = v6;
v6 = v4;
LABEL_9:
*(float *)(a2 + 4 * i) = v6;
}
return result;
}