//
// FMOD::Sound::addSyncPoint from 0xd99f4 to 0xd9aa8 (180 bytes)
//
// 4 xrefs:
// > FMOD::Sound::addSyncPoint @ 0x1072fc
// > ??> @ 0x24e8
// > FMOD::Sound::addSyncPoint @ 0x1072f4
// > ??> @ 0x110240
//
// 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 FMOD::Sound::addSyncPoint()
{
unsigned int v0; // w22
unsigned int v1; // w23
__int64 v2; // x29
__int64 v3; // x0
__int64 v4; // x4
__int64 v5; // x20
__int64 v6; // x3
__int64 v7; // x21
unsigned int v8; // w24
__int64 v9; // x0
char v10; // w8
__int64 v11; // x0
__int64 v13; // x0
int v14; // w8
char v15; // zf
v3 = sub_DA510();
v5 = v4;
v7 = v6;
v8 = sub_DA504(v3);
if ( !v8 )
{
v13 = sub_DA3A0();
if ( !v14 || (sub_DA358(v13), v15) )
{
v9 = (*(__int64 (__fastcall **)(_QWORD, _QWORD, _QWORD, __int64, __int64, __int64, __int64))(**(_QWORD **)(v2 - 56)
+ 256LL))(
*(_QWORD *)(v2 - 56),
v1,
v0,
v7,
v5,
0xFFFFFFFFLL,
1);
v8 = v9;
if ( !(_DWORD)v9 )
goto LABEL_4;
}
else
{
v8 = 46;
}
}
v9 = sub_DA344();
if ( v10 < 0 )
{
v11 = sub_DA674(v9);
sub_D9AA8(v11);
v9 = sub_DA398(v8, 5);
}
LABEL_4:
sub_DA5F0(v9);
return v8;
}