//
// sub_1004B39C0 from 0x1004b39c0 to 0x1004b3a1c (92 bytes)
//
// 0 xrefs:
//
// 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_1004B39C0(__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;
}