//
// sub_A3F10 from 0xa3f10 to 0xa3f82 (114 bytes)
//
// 2 xrefs:
// > sub_A3C1E @ 0xa3cba
// > sub_A4376 @ 0xa43be
//
// 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
//
int __fastcall sub_A3F10(int a1, int a2)
{
float v2; // s0
int v3; // s2
float v4; // s0
int v5; // r1
v2 = *(float *)(a2 + 4);
v3 = dword_125998;
if ( v2 < *(float *)&dword_125998 || (v3 = dword_12599C, v2 > *(float *)&dword_12599C) )
{
v2 = *(float *)&v3;
*(_DWORD *)(a2 + 4) = v3;
}
*(float *)(a1 + 1788) = v2;
v4 = v2 * 0.001;
*(float *)(a1 + 1432) = v4;
v5 = (int)(float)(v4 * (float)*(int *)(a1 + 1832));
if ( !v5 )
v5 = 1;
*(_DWORD *)(a1 + 1468) = v5;
sub_A3F8C(a1, a1 + 1784);
return 0;
}