//
// sub_1005D9B28 from 0x1005d9b28 to 0x1005d9b84 (92 bytes)
//
// 0 xrefs:
//
// 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:36 +0000
//
__int64 __fastcall sub_1005D9B28(__int64 a1, float a2)
{
int v2; // w8
float v3; // s0
*(float *)(a1 + 3028) = a2;
v2 = *(_DWORD *)(a1 + 3060);
if ( v2 <= 1 )
v2 = 1;
*(_DWORD *)(a1 + 3060) = v2;
v3 = (float)((float)((float)v2 + (float)v2) / 5.0) * a2;
if ( v3 >= 0.01 )
*(_DWORD *)(a1 + 2132) = (int)(float)((float)*(int *)(*(_QWORD *)(a1 + 8) + 16LL) / v3);
return 0;
}