//
// sub_10049FC00 from 0x10049fc00 to 0x10049fcbc (188 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_10049FC00(float a1, float a2, float a3, __int64 a4, float *a5)
{
float v6; // s3
int v7; // s0
float v8; // s9
float v9; // s10
float v10; // s0
float v11; // s1
float v12; // s1
v6 = fminf(a1, 1.0);
v7 = 0;
if ( v6 == 1.0 )
goto LABEL_4;
v8 = v6 * v6;
v9 = (float)(v6 * v6) + -1.0;
v10 = cosf((float)(a2 * 6.2832) / a3);
v11 = (float)(1.0 - (float)(v8 * v10)) + (float)(1.0 - (float)(v8 * v10));
v7 = 0;
v12 = (float)(sqrtf(fmaxf((float)(v9 * (float)(v9 * -4.0)) + (float)(v11 * v11), 0.0)) - v11) / (float)(v9 + v9);
*a5 = v12;
if ( v12 < 0.0 || (v7 = 1065185444, v12 > 0.99) )
LABEL_4:
*(_DWORD *)a5 = v7;
return 0;
}