//
// FMOD::Sound::getSyncPoint from 0xd970c to 0xd97a0 (148 bytes)
//
// 4 xrefs:
// > FMOD::Sound::getSyncPoint @ 0x1072dc
// > ??> @ 0x7858
// > FMOD::Sound::getSyncPoint @ 0x1072d4
// > ??> @ 0x110230
//
// 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::getSyncPoint(__int64 a1)
{
unsigned int v1; // w22
__int64 v2; // x0
char v3; // w8
__int64 v4; // x0
__int64 v6; // x0
int v7; // w8
char v8; // zf
__int64 v9; // x0
__int64 v10; // x8
v1 = sub_DA3AC(a1);
if ( !v1 )
{
v6 = sub_DA368();
if ( !v7 || (v6 = sub_DA358(v6), v8) )
{
v9 = sub_DA5A8(v6);
v2 = (*(__int64 (__fastcall **)(__int64))(v10 + 240))(v9);
v1 = v2;
if ( !(_DWORD)v2 )
goto LABEL_4;
}
else
{
v1 = 46;
}
}
v2 = sub_DA344();
if ( v3 < 0 )
{
v4 = sub_DA56C(v2);
sub_D97A0(v4);
v2 = sub_DA398(v1, 5);
}
LABEL_4:
sub_DA4E8(v2);
return v1;
}