//
// FMOD::Sound::setLoopPoints from 0xd9df8 to 0xd9ea4 (172 bytes)
//
// 4 xrefs:
// > FMOD::Sound::setLoopPoints @ 0x10735c
// > ??> @ 0xe68
// > FMOD::Sound::setLoopPoints @ 0x107354
// > ??> @ 0x110270
//
// 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::setLoopPoints(FMOD::Sound *this)
{
unsigned int v1; // w22
unsigned int v2; // w23
__int64 v3; // x29
__int64 v4; // x0
unsigned int v5; // w4
unsigned int v6; // w20
unsigned int v7; // w3
unsigned int v8; // w21
unsigned int v9; // w24
__int64 v10; // x0
char v11; // w8
_BYTE *v12; // x0
__int64 v13; // x1
unsigned int v14; // w2
unsigned int v15; // w3
__int64 v17; // x0
int v18; // w8
char v19; // zf
v4 = sub_DA510(this);
v6 = v5;
v8 = v7;
v9 = sub_DA504(v4);
if ( !v9 )
{
v17 = sub_DA3A0();
if ( !v18 || (sub_DA358(v17), v19) )
{
v10 = (*(__int64 (__fastcall **)(_QWORD, _QWORD, _QWORD, _QWORD, _QWORD))(**(_QWORD **)(v3 - 56) + 312LL))(
*(_QWORD *)(v3 - 56),
v2,
v1,
v8,
v6);
v9 = v10;
if ( !(_DWORD)v10 )
goto LABEL_4;
}
else
{
v9 = 46;
}
}
v10 = sub_DA344();
if ( v11 < 0 )
{
v12 = (_BYTE *)sub_DA674(v10);
sub_CF0C4(v12, v13, v14, v15, v8, v6);
v10 = sub_DA398(v9, 5);
}
LABEL_4:
sub_DA5F0(v10);
return v9;
}