//
// sub_5FE98 from 0x5fe98 to 0x5feec (84 bytes)
//
// 6 xrefs:
// > sub_5FBCC @ 0x5fca8
// > sub_605FC @ 0x60748
// > sub_8D6F8 @ 0x8e6e0
// > sub_94D7C @ 0x9510c
// > sub_9F200 @ 0x9f62c
// > sub_A40E0 @ 0xa46ac
//
// 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:13:53 +0000
//
__int64 __fastcall sub_5FE98(__int64 a1, int a2)
{
int v2; // w9
float v3; // s0
if ( a2 <= 1 )
v2 = 1;
else
v2 = a2;
v3 = (float)v2 * (float)(0.4 * *(float *)(a1 + 3028));
*(_DWORD *)(a1 + 3060) = v2;
if ( v3 >= 0.01 )
*(_DWORD *)(a1 + 2132) = (int)(float)((float)*(int *)(*(_QWORD *)(a1 + 8) + 16LL) / v3);
return 0;
}