//
// sub_CD6B4 from 0xcd6b4 to 0xcd6c0 (12 bytes)
//
// 2 xrefs:
// > sub_C825C @ 0xc8340
// > sub_C825C @ 0xc83f0
//
// 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_CD6B4(double a1, __int64 a2, __int64 a3, __int64 a4, unsigned int a5, __int64 a6)
{
__int64 v7; // x8
_DWORD *v8; // x9
__int64 v10; // x19
int v11; // w21
__int64 v12; // x0
v12 = v10;
if ( a6 )
{
*(_WORD *)(a6 + 528) = a5;
*(_DWORD *)(a6 + 520) = *(_DWORD *)(v12 + 96);
if ( a3 )
{
((void (__fastcall *)(__int64, int, int, float *, __int64, double))*off_11A7A0)(
a3,
v11,
a5,
(float *)(a6 + 128),
a6,
a1);
}
else
{
v7 = a5;
v8 = (_DWORD *)(a6 + 128);
if ( a5 )
{
do
{
*(v8 - 32) = 0;
*v8++ = 0;
--v7;
}
while ( v7 );
}
}
*(_DWORD *)(a6 + 524) += v11;
}
return 0;
}