//
// sub_1005F7EC4 from 0x1005f7ec4 to 0x1005f7f40 (124 bytes)
//
// 1 xrefs:
// > sub_1005F7DDC @ 0x1005f7ea4
//
// 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 11:09:52 +0000
//
float __fastcall sub_1005F7EC4(float a1, float a2)
{
float result; // s0
float v4; // s0
float v5; // s3
if ( a1 != 0.0 || (result = 0.0, a2 != 0.0) )
{
v4 = -a2;
if ( a2 >= 0.0 )
v4 = a2;
v5 = -a1;
if ( a1 >= 0.0 )
v5 = a1;
if ( v5 <= v4 )
{
result = (float)(a1 / v4) + 1.0;
if ( a2 < 0.0 )
return 6.0 - result;
}
else
{
result = 3.0 - (float)(a2 / v5);
if ( a1 < 0.0 )
return 10.0 - result;
}
}
return result;
}