//
// sub_A3F8C from 0xa3f8c to 0xa3ffa (110 bytes)
//
// 3 xrefs:
// > sub_A3C1E @ 0xa3cc2
// > sub_A3F10 @ 0xa3f7a
// > sub_A4376 @ 0xa43dc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:41:34 +0000
//
int __fastcall sub_A3F8C(int a1, int a2)
{
float v2; // s0
int v3; // s2
v2 = *(float *)(a2 + 8);
v3 = dword_1259E0;
if ( v2 < *(float *)&dword_1259E0 || (v3 = dword_1259E4, v2 > *(float *)&dword_1259E4) )
{
v2 = *(float *)&v3;
*(_DWORD *)(a2 + 8) = v3;
}
*(float *)(a1 + 1792) = v2;
sub_AC1BA(
a1 + 376,
COERCE_INT((float)(*(float *)(a1 + 1788) + v2) * 0.001),
1016672446,
1067785912,
(float)*(int *)(a1 + 1832));
return 0;
}