//
// sub_C48B0 from 0xc48b0 to 0xc4960 (176 bytes)
//
// 2 xrefs:
// > sub_C3E48 @ 0xc3f3c
// > sub_C4210 @ 0xc4268
//
// 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_C48B0(float a1, float a2, float a3, __int64 a4, int *a5)
{
float v5; // s3
int v7; // s0
float v8; // s9
float v9; // s1
float v10; // s1
v5 = fminf(a1, 1.0);
v7 = 0;
if ( v5 == 1.0
|| (v8 = (float)(v5 * v5) + -1.0,
v9 = 2.0 - (float)((float)((float)(v5 * v5) + (float)(v5 * v5)) * cosf((float)(a2 * 6.2832) / a3)),
v7 = 0,
v10 = (float)(sqrtf(fmaxf((float)(v8 * (float)(v8 * -4.0)) + (float)(v9 * v9), 0.0)) - v9) / (float)(v8 + v8),
*(float *)a5 = v10,
v10 < 0.0)
|| (v7 = 1065185444, v10 > 0.99) )
{
*a5 = v7;
}
return 0;
}