//
// sub_100519D8C from 0x100519d8c to 0x100519e14 (136 bytes)
//
// 1 xrefs:
// > sub_10051A0BC @ 0x10051a6c8
//
// 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_100519D8C(float *result, int a2, __int64 a3, _DWORD *a4, _QWORD *a5, int a6)
{
__int64 v6; // x11
__int64 v7; // x10
if ( a2 )
{
LODWORD(v6) = *a4;
do
{
if ( a6 >= 1 )
{
v7 = 0;
do
{
*result++ = (float)((float)((float)(unsigned int)v6 * 2.3283e-10)
* *(float *)(a3 + 4LL * (unsigned int)(v7 + a6 + a4[1] * a6)))
+ (float)(*(float *)(a3 + 4LL * (unsigned int)(v7 + a4[1] * a6))
* (float)(1.0 - (float)((float)(unsigned int)v6 * 2.3283e-10)));
++v7;
}
while ( a6 != (_DWORD)v7 );
}
v6 = *(_QWORD *)a4 + *a5;
*(_QWORD *)a4 = v6;
--a2;
}
while ( a2 );
}
return result;
}