//
// sub_C05D8 from 0xc05d8 to 0xc05e0 (8 bytes)
//
// 1 xrefs:
// > ??> @ 0x11a090
//
// 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:43 +0000
//
float *__fastcall sub_C05D8(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 < 4 )
{
v7 = *(_DWORD *)(a4 + 4);
v8 = *(__int16 *)(a3 + 2LL * (unsigned int)(v5 + 4 * v7));
v9 = *(__int16 *)(a3 + 2LL * (unsigned int)(v5 + 4 * (v7 + 1)));
++v5;
*result++ = (float)((float)((float)(1.0 - v6) * (float)v8) + (float)(v6 * (float)v9)) * 0.000030518;
}
--a2;
}
return result;
}