//
// sub_D9AA8 from 0xd9aa8 to 0xd9b78 (208 bytes)
//
// 1 xrefs:
// > FMOD::Sound::addSyncPoint @ 0xd9a28
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:14:54 +0000
//
__int64 __fastcall sub_D9AA8(_BYTE *a1, __int64 a2, unsigned int a3, unsigned int a4, const char *a5, const void *a6)
{
int v9; // w22
int v11; // w24
__int64 v12; // x24
int v13; // w21
int v14; // w21
v9 = a2;
v11 = sub_71514(a1, a2, a3);
v12 = (int)sub_715AC(&a1[v11], v9 - v11, ", ") + (__int64)v11;
v13 = v12 + sub_71514(&a1[v12], (unsigned int)(v9 - v12), a4);
v14 = v13 + sub_715AC(&a1[v13], v9 - v13, ", ");
LODWORD(a5) = v14 + sub_715AC(&a1[v14], v9 - v14, a5);
LODWORD(a5) = (_DWORD)a5 + sub_715AC(&a1[(int)a5], v9 - (int)a5, ", ");
return (unsigned int)a5 + (unsigned int)sub_71798((__int64)&a1[(int)a5], (unsigned int)(v9 - (_DWORD)a5), a6);
}