//
// sub_D0660 from 0xd0660 to 0xd06fc (156 bytes)
//
// 1 xrefs:
// > FMOD::ChannelControl::getDelay @ 0xd05fc
//
// 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_D0660(__int64 a1, __int64 a2, _QWORD *a3, _QWORD *a4, _BYTE *a5)
{
int v7; // w21
int v9; // w23
__int64 v10; // x23
v7 = a2;
v9 = sub_71698(a1, a2, a3);
v10 = (int)sub_715AC((_BYTE *)(a1 + v9), v7 - v9, ", ") + (__int64)v9;
LODWORD(a4) = v10 + sub_71698(a1 + v10, (unsigned int)(v7 - v10), a4);
LODWORD(a4) = (_DWORD)a4 + sub_715AC((_BYTE *)(a1 + (int)a4), v7 - (int)a4, ", ");
return (unsigned int)a4 + (unsigned int)sub_716D4(a1 + (int)a4, (unsigned int)(v7 - (_DWORD)a4), a5);
}