//
// sub_CD9B4 from 0xcd9b4 to 0xcda00 (76 bytes)
//
// 2 xrefs:
// > sub_C4000 @ 0xc4064
// > sub_CD714 @ 0xcd77c
//
// 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_CD9B4(__int64 result, float a2, float a3, float a4, float a5)
{
int v5; // w9
__int64 v6; // x8
__int64 v7; // x9
int v8; // w10
v5 = (int)(float)(a5 * a2);
v6 = 0;
if ( !v5 )
v5 = 1;
*(float *)(result + 1124) = a2;
*(_DWORD *)(result + 1160) = v5;
while ( v6 != 28 )
{
v7 = result + v6;
*(float *)(v7 + 1128) = a3 + a2;
v8 = (int)(float)((float)(a3 + a2) * a5);
a3 = a3 * a4;
*(_DWORD *)(v7 + 1164) = v8;
v6 += 4;
}
return result;
}