//
// sub_A4990 from 0xa4990 to 0xa4a16 (134 bytes)
//
// 1 xrefs:
// > sub_A4110 @ 0xa4148
//
// 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_A4990(int a1, int a2)
{
float v2; // s0
float v5; // s4
float v6; // s6
float v7; // s0
float v8; // s2
v2 = *(float *)(a2 + 24);
v5 = v2 * 0.009;
v6 = (float)(v2 * 0.01) * (float)(v2 * 0.01);
v7 = 0.1;
v8 = (float)(v6 * v5) + 0.1;
if ( v8 >= 0.1 )
{
v7 = (float)(v6 * v5) + 0.1;
if ( v8 > 1.0 )
v7 = 1.0;
}
sub_AC2A8(a1 + 376, COERCE_INT(v7 * 0.061), 1068037571, 985963430, 1.47, (float)*(int *)(a1 + 1832));
sub_A3DF8(a1, a2);
return 0;
}