//
// FMOD::Sound::getNumSyncPoints from 0xd9688 to 0xd970c (132 bytes)
//
// 4 xrefs:
// > FMOD::Sound::getNumSyncPoints @ 0x1072cc
// > ??> @ 0x47f8
// > FMOD::Sound::getNumSyncPoints @ 0x1072c4
// > ??> @ 0x110228
//
// 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 FMOD::Sound::getNumSyncPoints(FMOD::Sound *this, int *a2)
{
unsigned int v2; // w21
__int64 v3; // x0
char v4; // w8
__int64 v5; // x0
__int64 v7; // x0
int v8; // w8
char v9; // zf
__int64 v10; // x0
__int64 v11; // x8
__int64 v12; // [xsp+0h] [xbp-130h] BYREF
v2 = sub_DA3C4(this);
if ( !v2 )
{
v7 = sub_DA368();
if ( !v8 || (v7 = sub_DA358(v7), v9) )
{
v10 = sub_DA478(v7);
v3 = (*(__int64 (__fastcall **)(__int64))(v11 + 232))(v10);
v2 = v3;
if ( !(_DWORD)v3 )
goto LABEL_4;
}
else
{
v2 = 46;
}
}
v3 = sub_DA344();
if ( v4 < 0 )
{
v5 = sub_DA540(&v12);
v3 = sub_DA388(v5);
}
LABEL_4:
sub_DA538(v3);
return v2;
}