//
// sub_C0668 from 0xc0668 to 0xc0670 (8 bytes)
//
// 1 xrefs:
// > ??> @ 0x11a098
//
// 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
//
float *__fastcall sub_C0668(float *result, int a2, __int64 a3, __int64 a4, _QWORD *a5)
{
int v5; // w10
float v6; // s1
int v7; // w11
int v8; // w12
int v9; // w11
for ( ; a2; *(_QWORD *)a4 += *a5 )
{
v5 = 0;
v6 = (float)*(unsigned int *)a4 * 2.3283e-10;
while ( v5 < 6 )
{
v7 = *(_DWORD *)(a4 + 4);
v8 = *(__int16 *)(a3 + 2LL * (unsigned int)(v5 + 6 * v7));
v9 = *(__int16 *)(a3 + 2LL * (unsigned int)(v5 + 6 * (v7 + 1)));
++v5;
*result++ = (float)((float)((float)(1.0 - v6) * (float)v8) + (float)(v6 * (float)v9)) * 0.000030518;
}
--a2;
}
return result;
}