//
// sub_C4A50 from 0xc4a50 to 0xc4af8 (168 bytes)
//
// 1 xrefs:
// > sub_C4188 @ 0xc41bc
//
// 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 12:14:45 +0000
//
__int64 __fastcall sub_C4A50(__int64 a1, float *a2)
{
float v2; // s0
float v3; // s1
v2 = 0.1;
v3 = (float)((float)((float)(a2[6] * 0.01) * (float)(a2[6] * 0.01)) * (float)(a2[6] * 0.009)) + 0.1;
if ( v3 >= 0.1 )
{
v2 = (float)((float)((float)(a2[6] * 0.01) * (float)(a2[6] * 0.01)) * (float)(a2[6] * 0.009)) + 0.1;
if ( v3 > 1.0 )
v2 = 1.0;
}
sub_CDA78(a1 + 544, v2 * 0.061, 1.32, 0.0015, 1.47, (float)*(int *)(a1 + 2080));
sub_C3E48(a1, a2);
return 0;
}