//
// sub_CDA38 from 0xcda38 to 0xcda78 (64 bytes)
//
// 1 xrefs:
// > sub_CD714 @ 0xcd7dc
//
// 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_CDA38(__int64 result, float a2)
{
__int64 v2; // x8
__int64 v3; // x9
float v4; // s1
float v5; // s1
v2 = 0;
*(_QWORD *)(result + 1440) = 0x3BFC50483BC154CALL;
while ( v2 != 8 )
{
v3 = result + v2;
v4 = *(float *)(result + v2 + 1440);
v2 += 4;
v5 = v4 * a2;
*(_DWORD *)(v3 + 1448) = (int)v5;
*(_DWORD *)(v3 + 1472) = (int)v5 - 1;
}
return result;
}