//
// FMOD::Sound::getLoopPoints from 0xd9ea4 to 0xd9f68 (196 bytes)
//
// 4 xrefs:
// > FMOD::Sound::getLoopPoints @ 0x10736c
// > ??> @ 0x46d8
// > FMOD::Sound::getLoopPoints @ 0x107364
// > ??> @ 0x110278
//
// 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::getLoopPoints(FMOD::Sound *this, unsigned int *a2, unsigned int a3, unsigned int *a4)
{
unsigned int v4; // w20
_DWORD *v5; // x23
__int64 v7; // x0
_DWORD *v8; // x3
_DWORD *v9; // x21
unsigned int v10; // w24
__int64 v11; // x0
char v12; // w8
__int64 v14; // x0
int v15; // w8
char v16; // zf
_BYTE v17[272]; // [xsp+8h] [xbp-148h] BYREF
__int64 v18; // [xsp+118h] [xbp-38h]
v7 = sub_DA5BC(this, a2);
v9 = v8;
v10 = sub_DA504(v7);
if ( !v10 )
{
v14 = sub_DA3A0();
if ( !v15 || (sub_DA358(v14), v16) )
{
v11 = (*(__int64 (__fastcall **)(__int64, _DWORD *, _QWORD, _DWORD *, _QWORD))(*(_QWORD *)v18 + 320LL))(
v18,
v5,
a3,
v9,
v4);
v10 = v11;
if ( !(_DWORD)v11 )
goto LABEL_4;
}
else
{
v10 = 46;
}
}
v11 = sub_DA344();
if ( v12 < 0 )
{
sub_CF25C((__int64)v17, 256, v5, a3, v9, v4);
v11 = sub_DA398(v10, 5);
}
LABEL_4:
sub_DA5F0(v11);
return v10;
}