//
// sub_FE000 from 0xfe000 to 0xfe05c (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x11c0c8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:15:10 +0000
//
__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;
}